"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/web/js/source/jui/js/jquery-ui.min.js" between
yii-1.1.23.445827.tar.gz and yii-1.1.24.a5ab20.tar.gz

About: Yii is a high-performance component-based PHP framework for developing large-scale Web applications. Hint: Yii 1.1 is now in maintenance mode.

jquery-ui.min.js  (yii-1.1.23.445827):jquery-ui.min.js  (yii-1.1.24.a5ab20)
/*! jQuery UI - v1.11.2 - 2014-10-16 /*! jQuery UI - v1.12.1 - 2016-09-14
* http://jqueryui.com * http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplet * Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, ef
e.js, button.js, datepicker.js, dialog.js, draggable.js, droppable.js, effect.js fects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects
, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-expl /effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effe
ode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, eff ct-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-
ect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.j pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-siz
s, effect-transfer.js, menu.js, progressbar.js, resizable.js, selectable.js, sel e.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-re
ectmenu.js, slider.js, sortable.js, spinner.js, tabs.js, tooltip.js set-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.j
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ s, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.j
s, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, wid
gets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, wid
gets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.
js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinn
er.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery (function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery
)})(function(e){function t(t,s){var n,a,o,r=t.nodeName.toLowerCase();return"area )})(function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)t=t.p
"===r?(n=t.parentNode,a=n.name,t.href&&a&&"map"===n.nodeName.toLowerCase()?(o=e( arent(),e=t.css("visibility");return"hidden"!==e}function i(t){for(var e,i;t.len
"img[usemap='#"+a+"']")[0],!!o&&i(o)):!1):(/input|select|textarea|button|object/ gth&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"
.test(r)?!t.disabled:"a"===r?t.href||s:s)&&i(t)}function i(t){return e.expr.filt fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.pare
ers.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.c nt()}return 0}function s(){this._curInst=null,this._keyEvent=!1,this._disabledIn
ss(this,"visibility")}).length}function s(e){for(var t,i;e.length&&e[0]!==docume puts=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepic
nt;){if(t=e.css("position"),("absolute"===t||"relative"===t||"fixed"===t)&&(i=pa ker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepick
rseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}func er-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-date
tion n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._date picker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableCla
pickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inl ss="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",t
ineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._t his._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[
riggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",thi ""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthN
s._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker- ames:["January","February","March","April","May","June","July","August","Septemb
unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass= er","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","M
"ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Do ay","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tues
ne",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","F day","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue
ebruary","March","April","May","June","July","August","September","October","Nov ","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],week
ember","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","A Header:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,year
ug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday"," Suffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defau
Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri ltDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hid
","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFo eIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeY
rmat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._d ear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1
efaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,append ,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,
Text:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,n duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYe
avigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:" ar:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMon
c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:thi ths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1
s.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",be ,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.exte
foreShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:nu nd(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.
ll,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"" en),this.dpDiv=n(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget
,altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.ex ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(e){var
tend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regi i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td
onal[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=a(e a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1
("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content !==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepic
ui-helper-clearfix ui-corner-all'></div>"))}function a(t){var i="button, .ui-da ker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).remo
tepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.deleg veClass("ui-datepicker-next-hover")}).on("mouseover",i,o)}function o(){t.datepic
ate(i,"mouseout",function(){e(this).removeClass("ui-state-hover"),-1!==this.clas ker._isDisabledDatepicker(m.inline?m.dpDiv.parent()[0]:m.input[0])||(t(this).par
sName.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hov ents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).
er"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui- addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(
datepicker-next-hover")}).delegate(i,"mouseover",o)}function o(){e.datepicker._i this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datep
sDisabledDatepicker(v.inline?v.dpDiv.parent()[0]:v.input[0])||(e(this).parents(" icker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){t.ex
.ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addCla tend(e,i);for(var s in i)null==i[s]&&(e[s]=i[s]);return e}function r(t){return f
ss("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this). unction(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==t
addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker- his.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.ui.version="1.12.1";
next")&&e(this).addClass("ui-datepicker-next-hover"))}function r(t,i){e.extend(t var h=0,l=Array.prototype.slice;t.cleanData=function(e){return function(i){var s
,i);for(var s in i)null==i[s]&&(t[s]=i[s]);return t}function h(e){return functio ,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).trig
n(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.el gerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var
ement.val()&&this._trigger("change")}}e.ui=e.ui||{},e.extend(e.ui,{version:"1.11 n,o,a,r={},h=e.split(".")[0];e=e.split(".")[1];var l=h+"-"+e;return s||(s=i,i=t.
.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,H Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][l.toLo
OME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38} werCase()]=function(e){return!!t.data(e,l)},t[h]=t[h]||{},n=t[h][e],o=t[h][e]=fu
}),e.fn.extend({scrollParent:function(t){var i=this.css("position"),s="absolute" nction(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e)
===i,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function ,void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_chil
(){var t=e(this);return s&&"static"===t.css("position")?!1:n.test(t.css("overflo dConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,func
w")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&a.length tion(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototyp
?a:e(this[0].ownerDocument||document)},uniqueId:function(){var e=0;return functi e[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}ret
on(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUn urn function(){var e,i=this._super,o=this._superApply;return this._super=t,this.
iqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(thi _superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),v
s).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.c oid 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.wi
reatePseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,s dgetEventPrefix||e:e},r,{constructor:o,namespace:h,widgetName:e,widgetFullName:l
){return!!e.data(t,s[3])},focusable:function(i){return t(i,!isNaN(e.attr(i,"tabi }),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.nam
ndex")))},tabbable:function(i){var s=e.attr(i,"tabindex"),n=isNaN(s);return(n||s espace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConst
>=0)&&t(i,!n)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],functi ructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,s,
on(t,i){function s(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"pa n=l.call(arguments,1),o=0,a=n.length;a>o;o++)for(i in n[o])s=n[o][i],n[o].hasOwn
dding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(i-=pa Property(i)&&void 0!==s&&(e[i]=t.isPlainObject(s)?t.isPlainObject(e[i])?t.widget
rseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["To .extend({},e[i],s):t.widget.extend({},s):s);return e},t.widget.bridge=function(e
p","Bottom"],a=i.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.in ,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(n){var o="string"==type
nerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+ of n,a=l.call(arguments,1),r=this;return o?this.length||"instance"!==n?this.each
i]=function(t){return void 0===t?o["inner"+i].call(this):this.each(function(){e( (function(){var i,o=t.data(this,s);return"instance"===n?(r=o,!1):o?t.isFunction(
this).css(a,s(this,t)+"px")})},e.fn["outer"+i]=function(t,n){return"number"!=typ o[n])&&"_"!==n.charAt(0)?(i=o[n].apply(o,a),i!==o&&void 0!==i?(r=i&&i.jquery?r.p
eof t?o["outer"+i].call(this,t):this.each(function(){e(this).css(a,s(this,t,!0,n ushStack(i.get()):i,!1):void 0):t.error("no such method '"+n+"' for "+e+" widget
)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?thi instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"at
s.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a tempted to call method '"+n+"'")}):r=void 0:(a.length&&(n=t.widget.extend.apply(
-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return argumen null,[n].concat(a))),this.each(function(){var e=t.data(this,s);e?(e.option(n||{}
ts.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=! ),e._init&&e._init()):t.data(this,s,new i(n,this))})),r}},t.Widget=function(){},
!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.fn.extend({focus:functi t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEve
on(t){return function(i,s){return"number"==typeof i?this.each(function(){var t=t ntPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},
his;setTimeout(function(){e(t).focus(),s&&s.call(t)},i)}):t.apply(this,arguments _createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(
)}}(e.fn.focus),disableSelection:function(){var e="onselectstart"in document.cre i),this.uuid=h++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings
ateElement("div")?"selectstart":"mousedown";return function(){return this.bind(e =t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this
+".ui-disableSelection",function(e){e.preventDefault()})}}(),enableSelection:fun &&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(
ction(){return this.unbind(".ui-disableSelection")},zIndex:function(t){if(void 0 t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.doc
!==t)return this.css("zIndex",t);if(this.length)for(var i,s,n=e(this[0]);n.lengt ument||i),this.window=t(this.document[0].defaultView||this.document[0].parentWin
h&&n[0]!==document;){if(i=n.css("position"),("absolute"===i||"relative"===i||"fi dow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),t
xed"===i)&&(s=parseInt(n.css("zIndex"),10),!isNaN(s)&&0!==s))return s;n=n.parent his._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabl
()}return 0}}),e.ui.plugin={add:function(t,i,s){var n,a=e.ui[t].prototype;for(n ed),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCr
in s)a.plugins[n]=a.plugins[n]||[],a.plugins[n].push([i,s[n]])},call:function(e, eateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init
t,i,s){var n,a=e.plugins[t];if(a&&(s||e.element[0].parentNode&&11!==e.element[0] :t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElement
.parentNode.nodeType))for(n=0;a.length>n;n++)e.options[a[n][0]]&&a[n][1].apply(e Lookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace)
.element,i)}};var l=0,u=Array.prototype.slice;e.cleanData=function(t){return fun .removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAt
ction(i){var s,n,a;for(a=0;null!=(n=i[a]);a++)try{s=e._data(n,"events"),s&&s.rem tr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widg
ove&&e(n).triggerHandler("remove")}catch(o){}t(i)}}(e.cleanData),e.widget=functi et:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arg
on(t,i,s){var n,a,o,r,h={},l=t.split(".")[0];return t=t.split(".")[1],n=l+"-"+t, uments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a
s||(s=i,i=e.Widget),e.expr[":"][n.toLowerCase()]=function(t){return!!e.data(t,n) ={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.opti
},e[l]=e[l]||{},a=e[l][t],o=e[l][t]=function(e,t){return this._createWidget?(arg ons[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===argu
uments.length&&this._createWidget(e,t),void 0):new o(e,t)},e.extend(o,a,{version ments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)
:s.version,_proto:e.extend({},s),_childConstructors:[]}),r=new i,r.options=e.wid return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOpti
get.extend({},r.options),e.each(s,function(t,s){return e.isFunction(s)?(h[t]=fun ons(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);re
ction(){var e=function(){return i.prototype[t].apply(this,arguments)},n=function turn this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(
(e){return i.prototype[t].apply(this,e)};return function(){var t,i=this._super,a e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOption
=this._superApply;return this._super=e,this._superApply=n,t=s.apply(this,argumen Classes:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==t
ts),this._super=i,this._superApply=a,t}}(),void 0):(h[t]=s,void 0)}),o.prototype his.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addC
=e.widget.extend(r,{widgetEventPrefix:a?r.widgetEventPrefix||t:t},h,{constructor lass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:fu
:o,namespace:l,widgetName:t,widgetFullName:n}),a?(e.each(a._childConstructors,fu nction(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!
nction(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)} !t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClas
),delete a._childConstructors):i._childConstructors.push(o),e.widget.bridge(t,o) s(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOpti
,o},e.widget.extend=function(t){for(var i,s,n=u.call(arguments,1),a=0,o=n.length ons({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_
;o>a;a++)for(i in n[a])s=n[a][i],n[a].hasOwnProperty(i)&&void 0!==s&&(t[i]=e.isP classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesEl
lainObject(s)?e.isPlainObject(t[i])?e.widget.extend({},t[i],s):e.widget.extend({ ementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.
},s):s);return t},e.widget.bridge=function(t,i){var s=i.prototype.widgetFullName not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i
||t;e.fn[t]=function(n){var a="string"==typeof n,o=u.call(arguments,1),r=this;re [r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.el
turn n=!a&&o.length?e.widget.extend.apply(null,[n].concat(o)):n,a?this.each(func ement,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackC
tion(){var i,a=e.data(this,s);return"instance"===n?(r=a,!1):a?e.isFunction(a[n]) lassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match
&&"_"!==n.charAt(0)?(i=a[n].apply(a,o),i!==a&&void 0!==i?(r=i&&i.jquery?r.pushSt (/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(
ack(i.get()):i,!1):void 0):e.error("no such method '"+n+"' for "+t+" widget inst i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesEleme
ance"):e.error("cannot call methods on "+t+" prior to initialization; "+"attempt ntLookup[s]=t(n.not(e.target).get()))})},_removeClass:function(t,e,i){return thi
ed to call method '"+n+"'")}):this.each(function(){var t=e.data(this,s);t?(t.opt s._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e
ion(n||{}),t._init&&t._init()):e.data(this,s,new i(n,this))}),r}},e.Widget=funct ,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"=
ion(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",w =typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};re
idgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_cr turn o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o
eateWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i), =this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.binding
this.uuid=l++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e( s.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r
),this.hoverable=e(),this.focusable=e(),i!==this&&(e.data(i,this.widgetFullName, (){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("s
this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()} tring"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a
}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.doc .guid=a.guid||r.guid||t.guid++);var h=s.match(/^([\w:-]*)\s*(.*)$/),l=h[1]+o.eve
ument[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.exte ntNamespace,c=h[2];c?n.on(l,c,r):i.on(l,r)})},_off:function(e,i){i=(i||"").split
nd({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("cre (" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bin
ate",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_ge dings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()
tCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._des ),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i
troy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName). (){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTim
removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventName eout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._
space).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+ on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-ho
"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.re ver")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-stat
moveClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destr e-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._
oy:e.noop,widget:function(){return this.element},option:function(t,i){var s,n,a, on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus
o=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"= ")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-foc
=typeof t)if(o={},s=t.split("."),t=s.shift(),s.length){for(n=o[t]=e.widget.exten us")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event
d({},this.options[t]),a=0;s.length-1>a;a++)n[s[a]]=n[s[a]]||{},n=n[s[a]];if(t=s. (i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase()
pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=i}else{if(1===arg ,i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);retur
uments.length)return void 0===this.options[t]?null:this.options[t];o[t]=i}return n this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].conca
this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOpt t(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},func
ion(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disa tion(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effe
bled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(t ct:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==ty
his.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state peof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.d
-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disab elay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.ea
le:function(){return this._setOptions({disabled:!0})},_on:function(t,i,s){var n, sing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,funct
a=this;"boolean"!=typeof t&&(s=i,i=t,t=!1),s?(i=n=e(i),this.bindings=this.bindin ion(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloa
gs.add(i)):(s=i,i=this.element,n=this.widget()),e.each(s,function(s,o){function t(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||
r(){return t||a.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?(" 0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.heigh
string"==typeof o?a[o]:o).apply(a,arguments):void 0}"string"!=typeof o&&(r.guid= t(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offs
o.guid=o.guid||r.guid||e.guid++);var h=s.match(/^([\w:-]*)\s*(.*)$/),l=h[1]+a.ev et:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,o
entNamespace,u=h[2];u?n.delegate(u,l,r):i.bind(l,r)})},_off:function(t,i){i=(i|| ffset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),o
"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(i).und ffset:e.offset()}}var n,o=Math.max,a=Math.abs,r=/left|center|right/,h=/top|cente
elegate(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.foc r|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=t.fn.position;t.position={
usable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:funct scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("<div style='displa
ion(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s y:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='h
=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hove eight:100px;width:auto;'></div></div>"),o=s.children()[0];return t("body").appen
rable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui- d(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].c
state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-h lientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDo
over")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on( cument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.cs
t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:f s("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,o="
unction(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:functio scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:o?t.pos
n(t,i,s){var n,a,o=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widg ition.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:
etEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0] function(e){var i=t(e||window),s=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType,o=
,a=i.originalEvent)for(n in a)n in i||(i[n]=a[n]);return this.element.trigger(i, !s&&!n;return{element:i,isWindow:s,isDocument:n,offset:o?t(e).offset():{left:0,t
s),!(e.isFunction(o)&&o.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPr op:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),hei
evented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.protot ght:i.outerHeight()}}},t.fn.position=function(n){if(!n||!n.of)return d.apply(thi
ype["_"+t]=function(s,n,a){"string"==typeof n&&(n={effect:n});var o,r=n?n===!0|| s,arguments);n=t.extend({},n);var u,p,f,g,m,_,v=t(n.of),b=t.position.getWithinIn
"number"==typeof n?i:n.effect||i:t;n=n||{},"number"==typeof n&&(n={duration:n}), fo(n.within),y=t.position.getScrollInfo(b),w=(n.collision||"flip").split(" "),k=
o=!e.isEmptyObject(n),n.complete=a,n.delay&&s.delay(n.delay),o&&e.effects&&e.eff {};return _=s(v),v[0].preventDefault&&(n.at="left top"),p=_.width,f=_.height,g=_
ects.effect[r]?s[t](n):r!==t&&s[r]?s[r](n.duration,n.easing,a):s.queue(function( .offset,m=t.extend({},g),t.each(["my","at"],function(){var t,e,i=(n[this]||"").s
i){e(this)[t](),a&&a.call(s[0]),i()})}}),e.widget;var d=!1;e(document).mouseup(f plit(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):h.test(i[0])?["cent
unction(){d=!1}),e.widget("ui.mouse",{version:"1.11.2",options:{cancel:"input,te er"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=h.test(
xtarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=thi i[1])?i[1]:"center",t=l.exec(i[0]),e=l.exec(i[1]),k[this]=[t?t[0]:0,e?e[0]:0],n[
s;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===n.
(e)}).bind("click."+this.widgetName,function(i){return!0===e.data(i.target,t.wid at[0]?m.left+=p:"center"===n.at[0]&&(m.left+=p/2),"bottom"===n.at[1]?m.top+=f:"c
getName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClick enter"===n.at[1]&&(m.top+=f/2),u=e(k.at,p,f),m.left+=u[0],m.top+=u[1],this.each(
Event"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy function(){var s,r,h=t(this),l=h.outerWidth(),c=h.outerHeight(),d=i(this,"margin
:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&th Left"),_=i(this,"marginTop"),x=l+d+i(this,"marginRight")+y.width,C=c+_+i(this,"m
is.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind( arginBottom")+y.height,D=t.extend({},m),I=e(k.my,h.outerWidth(),h.outerHeight())
"mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!d) ;"right"===n.my[0]?D.left-=l:"center"===n.my[0]&&(D.left-=l/2),"bottom"===n.my[1
{this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t ]?D.top-=c:"center"===n.my[1]&&(D.top-=c/2),D.left+=I[0],D.top+=I[1],s={marginLe
;var i=this,s=1===t.which,n="string"==typeof this.options.cancel&&t.target.nodeN ft:d,marginTop:_},t.each(["left","top"],function(e,i){t.ui.position[w[e]]&&t.ui.
ame?e(t.target).closest(this.options.cancel).length:!1;return s&&!n&&this._mouse position[w[e]][i](D,{targetWidth:p,targetHeight:f,elemWidth:l,elemHeight:c,colli
Capture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mo sionPosition:s,collisionWidth:x,collisionHeight:C,offset:[u[0]+I[0],u[1]+I[1]],m
useDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),thi y:n.my,at:n.at,within:b,elem:h})}),n.using&&(r=function(t){var e=g.left-D.left,i
s._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseS =e+p-l,s=g.top-D.top,r=s+f-c,u={target:{element:v,left:g.left,top:g.top,width:p,
tart(t)!==!1,!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target, height:f},element:{element:h,left:D.left,top:D.top,width:l,height:c},horizontal:
this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".p 0>i?"left":e>0?"right":"center",vertical:0>r?"top":s>0?"bottom":"middle"};l>p&&p
reventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},t >a(e+i)&&(u.horizontal="center"),c>f&&f>a(s+r)&&(u.vertical="middle"),u.importan
his._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.bind("mouse t=o(a(e),a(i))>o(a(s),a(r))?"horizontal":"vertical",n.using.call(this,t,u)}),h.o
move."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName, ffset(t.extend(D,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,s=e
this._mouseUpDelegate),t.preventDefault(),d=!0,!0)):!0}},_mouseMove:function(t){ .within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPo
if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||9>document.documentMod sition.marginLeft,h=n-r,l=r+e.collisionWidth-a-n;e.collisionWidth>a?h>0&&0>=l?(i
e)&&!t.button)return this._mouseUp(t);if(!t.which)return this._mouseUp(t)}return =t.left+h+e.collisionWidth-a-n,t.left+=h-i):t.left=l>0&&0>=h?n:h>l?n+a-e.collisi
(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t onWidth:n:h>0?t.left+=h:l>0?t.left-=l:t.left=o(t.left-r,t.left)},top:function(t,
),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this. e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.
_mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?t top-e.collisionPosition.marginTop,h=n-r,l=r+e.collisionHeight-a-n;e.collisionHei
his._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){r ght>a?h>0&&0>=l?(i=t.top+h+e.collisionHeight-a-n,t.top+=h-i):t.top=l>0&&0>=h?n:h
eturn this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate) >l?n+a-e.collisionHeight:n:h>0?t.top+=h:l>0?t.top-=l:t.top=o(t.top-r,t.top)}},fl
.unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(t ip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width
his._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,thi ,h=n.isWindow?n.scrollLeft:n.offset.left,l=t.left-e.collisionPosition.marginLeft
s.widgetName+".preventClickEvent",!0),this._mouseStop(t)),d=!1,!1},_mouseDistanc ,c=l-h,u=l+e.collisionWidth-r-h,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0
eMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Ma ]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidt
th.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayM h:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-r-o,(0>i||a(c)>i)&&(t.
et:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:fun left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-h,(s>0||u>a(s)
ction(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),function( )&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrol
){function t(e,t,i){return[parseFloat(e[0])*(p.test(e[0])?t/100:1),parseFloat(e[ lTop,r=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=t.top-e.collisionPositio
1])*(p.test(e[1])?i/100:1)]}function i(t,i){return parseInt(e.css(t,i),10)||0}fu n.marginTop,c=l-h,u=l+e.collisionHeight-r-h,d="top"===e.my[1],p=d?-e.elemHeight:
nction s(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(), "bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.
offset:{top:0,left:0}}:e.isWindow(i)?{width:t.width(),height:t.height(),offset:{ at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-r-
top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offse o,(0>s||a(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f
t:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offse +g-h,(i>0||u>a(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.fli
t:t.offset()}}e.ui=e.ui||{};var n,a,o=Math.max,r=Math.abs,h=Math.round,l=/left|c p.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:f
enter|right/,u=/top|center|bottom/,d=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,p=/%$/,f=e unction(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.app
.fn.position;e.position={scrollbarWidth:function(){if(void 0!==n)return n;var t, ly(this,arguments)}}}}(),t.ui.position,t.extend(t.expr[":"],{data:t.expr.createP
i,s=e("<div style='display:block;position:absolute;width:50px;height:50px;overfl seudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):
ow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=s.children()[ function(e,i,s){return!!t.data(e,s[3])}}),t.fn.extend({disableSelection:function
0];return e("body").append(s),t=a.offsetWidth,s.css("overflow","scroll"),i=a.off (){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedow
setWidth,t===i&&(i=s[0].clientWidth),s.remove(),n=t-i},getScrollInfo:function(t) n";return function(){return this.on(t+".ui-disableSelection",function(t){t.preve
{var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),s=t.isWindow||t.i ntDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelecti
sDocument?"":t.element.css("overflow-y"),n="scroll"===i||"auto"===i&&t.width<t.e on")}});var c="ui-effects-",u="ui-effects-style",d="ui-effects-animated",p=t;t.e
lement[0].scrollWidth,a="scroll"===s||"auto"===s&&t.height<t.element[0].scrollHe ffects={effect:{}},function(t,e){function i(t,e,i){var s=u[e.type]||{};return nu
ight;return{width:a?e.position.scrollbarWidth():0,height:n?e.position.scrollbarW ll==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+
idth():0}},getWithinInfo:function(t){var i=e(t||window),s=e.isWindow(i[0]),n=!!i s.mod)%s.mod:0>t?0:t>s.max?s.max:t)}function s(i){var s=l(),n=s._rgba=[];return
[0]&&9===i[0].nodeType;return{element:i,isWindow:s,isDocument:n,offset:i.offset( i=i.toLowerCase(),f(h,function(t,o){var a,r=o.re.exec(i),h=r&&o.parse(r),l=o.spa
)||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s||n?i ce||"rgba";return h?(a=s[l](h),s[c[l].cache]=a[c[l].cache],n=s._rgba=a._rgba,!1)
.width():i.outerWidth(),height:s||n?i.height():i.outerHeight()}}},e.fn.position= :e}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),s):o[i]}function
function(n){if(!n||!n.of)return f.apply(this,arguments);n=e.extend({},n);var p,m n(t,e,i){return i=(i+1)%1,1>6*i?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}va
,g,v,y,b,_=e(n.of),x=e.position.getWithinInfo(n.within),w=e.position.getScrollIn r o,a="backgroundColor borderBottomColor borderLeftColor borderRightColor border
fo(x),k=(n.collision||"flip").split(" "),T={};return b=s(_),_[0].preventDefault& TopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColo
&(n.at="left top"),m=b.width,g=b.height,v=b.offset,y=e.extend({},v),e.each(["my" r",r=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s
,"at"],function(){var e,t,i=(n[this]||"").split(" ");1===i.length&&(i=l.test(i[0 *(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t
])?i.concat(["center"]):u.test(i[0])?["center"].concat(i):["center","center"]),i [3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(
[0]=l.test(i[0])?i[0]:"center",i[1]=u.test(i[1])?i[1]:"center",e=d.exec(i[0]),t= ?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1]
d.exec(i[1]),T[this]=[e?e[0]:0,t?t[0]:0],n[this]=[c.exec(i[0])[0],c.exec(i[1])[0 ,2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,pars
]]}),1===k.length&&(k[1]=k[0]),"right"===n.at[0]?y.left+=m:"center"===n.at[0]&&( e:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{r
y.left+=m/2),"bottom"===n.at[1]?y.top+=g:"center"===n.at[1]&&(y.top+=g/2),p=t(T. e:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],
at,m,g),y.left+=p[0],y.top+=p[1],this.each(function(){var s,l,u=e(this),d=u.oute 16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+
rWidth(),c=u.outerHeight(),f=i(this,"marginLeft"),b=i(this,"marginTop"),D=d+f+i( )?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)
this,"marginRight")+w.width,S=c+b+i(this,"marginBottom")+w.height,M=e.extend({}, ?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],l=t.C
y),C=t(T.my,u.outerWidth(),u.outerHeight());"right"===n.my[0]?M.left-=d:"center" olor=function(e,i,s,n){return new t.Color.fn.parse(e,i,s,n)},c={rgba:{props:{red
===n.my[0]&&(M.left-=d/2),"bottom"===n.my[1]?M.top-=c:"center"===n.my[1]&&(M.top :{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{
-=c/2),M.left+=C[0],M.top+=C[1],a||(M.left=h(M.left),M.top=h(M.top)),s={marginLe props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{i
ft:f,marginTop:b},e.each(["left","top"],function(t,i){e.ui.position[k[t]]&&e.ui. dx:2,type:"percent"}}}},u={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mo
position[k[t]][i](M,{targetWidth:m,targetHeight:g,elemWidth:d,elemHeight:c,colli d:360,floor:!0}},d=l.support={},p=t("<p>")[0],f=t.each;p.style.cssText="backgrou
sionPosition:s,collisionWidth:D,collisionHeight:S,offset:[p[0]+C[0],p[1]+C[1]],m nd-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,f
y:n.my,at:n.at,within:x,elem:u})}),n.using&&(l=function(e){var t=v.left-M.left,i unction(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),l.fn=t.e
=t+m-d,s=v.top-M.top,a=s+g-c,h={target:{element:_,left:v.left,top:v.top,width:m, xtend(l.prototype,{parse:function(n,a,r,h){if(n===e)return this._rgba=[null,null
height:g},element:{element:u,left:M.left,top:M.top,width:d,height:c},horizontal: ,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(a),a=e);var u=this,d=t.type
0>i?"left":t>0?"right":"center",vertical:0>a?"top":s>0?"bottom":"middle"};d>m&&m (n),p=this._rgba=[];return a!==e&&(n=[n,a,r,h],d="array"),"string"===d?this.pars
>r(t+i)&&(h.horizontal="center"),c>g&&g>r(s+a)&&(h.vertical="middle"),h.importan e(s(n)||o._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(n[e.idx
t=o(r(t),r(i))>o(r(s),r(a))?"horizontal":"vertical",n.using.call(this,e,h)}),u.o ],e)}),this):"object"===d?(n instanceof l?f(c,function(t,e){n[e.cache]&&(u[e.cac
ffset(e.extend(M,{using:l}))})},e.ui.position={fit:{left:function(e,t){var i,s=t he]=n[e.cache].slice())}):f(c,function(e,s){var o=s.cache;f(s.props,function(t,e
.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=e.left-t.collisionPo ){if(!u[o]&&s.to){if("alpha"===t||null==n[t])return;u[o]=s.to(u._rgba)}u[o][e.id
sition.marginLeft,h=n-r,l=r+t.collisionWidth-a-n;t.collisionWidth>a?h>0&&0>=l?(i x]=i(n[t],e,!0)}),u[o]&&0>t.inArray(null,u[o].slice(0,3))&&(u[o][3]=1,s.from&&(u
=e.left+h+t.collisionWidth-a-n,e.left+=h-i):e.left=l>0&&0>=h?n:h>l?n+a-t.collisi ._rgba=s.from(u[o])))}),this):e},is:function(t){var i=l(t),s=!0,n=this;return f(
onWidth:n:h>0?e.left+=h:l>0?e.left-=l:e.left=o(e.left-r,e.left)},top:function(e, c,function(t,o){var a,r=i[o.cache];return r&&(a=n[o.cache]||o.to&&o.to(n._rgba)|
t){var i,s=t.within,n=s.isWindow?s.scrollTop:s.offset.top,a=t.within.height,r=e. |[],f(o.props,function(t,i){return null!=r[i.idx]?s=r[i.idx]===a[i.idx]:e})),s})
top-t.collisionPosition.marginTop,h=n-r,l=r+t.collisionHeight-a-n;t.collisionHei ,s},_space:function(){var t=[],e=this;return f(c,function(i,s){e[s.cache]&&t.pus
ght>a?h>0&&0>=l?(i=e.top+h+t.collisionHeight-a-n,e.top+=h-i):e.top=l>0&&0>=h?n:h h(i)}),t.pop()},transition:function(t,e){var s=l(t),n=s._space(),o=c[n],a=0===th
>l?n+a-t.collisionHeight:n:h>0?e.top+=h:l>0?e.top-=l:e.top=o(e.top-r,e.top)}},fl is.alpha()?l("transparent"):this,r=a[o.cache]||o.to(a._rgba),h=r.slice();return
ip:{left:function(e,t){var i,s,n=t.within,a=n.offset.left+n.scrollLeft,o=n.width s=s[o.cache],f(o.props,function(t,n){var o=n.idx,a=r[o],l=s[o],c=u[n.type]||{};n
,h=n.isWindow?n.scrollLeft:n.offset.left,l=e.left-t.collisionPosition.marginLeft ull!==l&&(null===a?h[o]=l:(c.mod&&(l-a>c.mod/2?a+=c.mod:a-l>c.mod/2&&(a-=c.mod))
,u=l-h,d=l+t.collisionWidth-o-h,c="left"===t.my[0]?-t.elemWidth:"right"===t.my[0 ,h[o]=i((l-a)*e+a,n)))}),this[n](h)},blend:function(e){if(1===this._rgba[3])retu
]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidt rn this;var i=this._rgba.slice(),s=i.pop(),n=l(e)._rgba;return l(t.map(i,functio
h:0,f=-2*t.offset[0];0>u?(i=e.left+c+p+f+t.collisionWidth-o-a,(0>i||r(u)>i)&&(e. n(t,e){return(1-s)*n[e]+s*t}))},toRgbaString:function(){var e="rgba(",i=t.map(th
left+=c+p+f)):d>0&&(s=e.left-t.collisionPosition.marginLeft+c+p+f-h,(s>0||d>r(s) is._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="r
)&&(e.left+=c+p+f))},top:function(e,t){var i,s,n=t.within,a=n.offset.top+n.scrol gb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),
lTop,o=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=e.top-t.collisionPositio function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});
n.marginTop,u=l-h,d=l+t.collisionHeight-o-h,c="top"===t.my[1],p=c?-t.elemHeight: return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var
"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t. i=this._rgba.slice(),s=i.pop();return e&&i.push(~~(255*s)),"#"+t.map(i,function(
at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(s=e.top+p+f+m+t.collisionHeight-o- t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:functi
a,e.top+p+f+m>u&&(0>s||r(u)>s)&&(e.top+=p+f+m)):d>0&&(i=e.top-t.collisionPositio on(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.pr
n.marginTop+p+f+m-h,e.top+p+f+m>d&&(i>0||d>r(i))&&(e.top+=p+f+m))}},flipfit:{lef ototype=l.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[
t:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.lef null,null,null,t[3]];var e,i,s=t[0]/255,n=t[1]/255,o=t[2]/255,a=t[3],r=Math.max(
t.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,argume s,n,o),h=Math.min(s,n,o),l=r-h,c=r+h,u=.5*c;return e=h===r?0:s===r?60*(n-o)/l+36
nts),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,s,n,o,r=d 0:n===r?60*(o-s)/l+120:60*(s-n)/l+240,i=0===l?0:.5>=u?l/c:l/(2-c),[Math.round(e)
ocument.getElementsByTagName("body")[0],h=document.createElement("div");t=docume %360,i,u,null==a?1:a]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==
nt.createElement(r?"div":"body"),s={visibility:"hidden",width:0,height:0,border: t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],o=t[3],a=.5>=s?s*(
0,margin:0,background:"none"},r&&e.extend(s,{position:"absolute",left:"-1000px", 1+i):s+i-s*i,r=2*s-a;return[Math.round(255*n(r,a,e+1/3)),Math.round(255*n(r,a,e)
top:"-1000px"});for(o in s)t.style[o]=s[o];t.appendChild(h),i=r||document.docume ),Math.round(255*n(r,a,e-1/3)),o]},f(c,function(s,n){var o=n.props,a=n.cache,h=n
ntElement,i.insertBefore(t,i.firstChild),h.style.cssText="position: absolute; le .to,c=n.from;l.fn[s]=function(s){if(h&&!this[a]&&(this[a]=h(this._rgba)),s===e)r
ft: 10.7432222px;",n=e(h).offset().left,a=n>10&&11>n,t.innerHTML="",i.removeChil eturn this[a].slice();var n,r=t.type(s),u="array"===r||"object"===r?s:arguments,
d(t)}()}(),e.ui.position,e.widget("ui.accordion",{version:"1.11.2",options:{acti d=this[a].slice();return f(o,function(t,e){var s=u["object"===r?t:e.idx];null==s
ve:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not( &&(s=d[e.idx]),d[e.idx]=i(s,e)}),c?(n=l(c(d)),n[a]=d,n):l(d)},f(o,function(e,i){
li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:" l.fn[e]||(l.fn[e]=function(n){var o,a=t.type(n),h="alpha"===e?this._hsla?"hsla":
ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWi "rgba":s,l=this[h](),c=l[i.idx];return"undefined"===a?c:("function"===a&&(n=n.ca
dth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",heigh ll(this,c),a=t.type(n)),null==n&&i.empty?this:("string"===a&&(o=r.exec(n),o&&(n=
t:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:" c+parseFloat(o[2])*("+"===o[1]?1:-1))),l[i.idx]=n,this[h](l)))})})}),l.hook=func
show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options; tion(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,n){va
this.prevShow=this.prevHide=e(),this.element.addClass("ui-accordion ui-widget ui r o,a,r="";if("transparent"!==n&&("string"!==t.type(n)||(o=s(n)))){if(n=l(o||n),
-helper-reset").attr("role","tablist"),t.collapsible||t.active!==!1&&null!=t.act !d.rgba&&1!==n._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===r||"tr
ive||(t.active=0),this._processPanels(),0>t.active&&(t.active+=this.headers.leng ansparent"===r)&&a&&a.style;)try{r=t.css(a,"backgroundColor"),a=a.parentNode}cat
th),this._refresh()},_getCreateEventData:function(){return{header:this.active,pa ch(h){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{e.sty
nel:this.active.length?this.active.next():e()}},_createIcons:function(){var t=th le[i]=n}catch(h){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=l(e.elem,i),
is.options.icons;t&&(e("<span>").addClass("ui-accordion-header-icon ui-icon "+t. e.end=l(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end
header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon" ,e.pos))}})},l.hook(a),t.cssHooks.borderColor={expand:function(t){var e={};retur
).removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accor n f(["Top","Right","Bottom","Left"],function(i,s){e["border"+s+"Color"]=t}),e}},
dion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-i o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff"
cons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e ,gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",o
;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr(" live:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",wh
role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ite:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"
ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top") }}(p),function(){function e(e){var i,s,n=e.ownerDocument.defaultView?e.ownerDocu
.removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").remo ment.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(n&&n.length&&n[
veAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIco 0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(o[t.camelCase(i)]
ns(),e=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-cor =n[i]);else for(i in n)"string"==typeof n[i]&&(o[i]=n[i]);return o}function i(e,
ner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled"). i){var s,o,a={};for(s in i)o=i[s],e[s]!==o&&(n[s]||(t.fx.step[s]||!isNaN(parseFl
css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria- oat(o)))&&(a[s]=o));return a}var s=["add","remove","toggle"],n={border:1,borderB
labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("heigh ottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margi
t","")},_setOption:function(e,t){return"active"===e?(this._activate(t),void 0):( n:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle",
"event"===e&&(this.options.event&&this._off(this.headers,this.options.event),thi "borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.set
s._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||this.options.active!== Attr||1===t.pos&&!t.setAttr)&&(p.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.add
!1||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons()) Back||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.pre
,"disabled"===e&&(this.element.toggleClass("ui-state-disabled",!!t).attr("aria-d vObject.filter(t))}),t.effects.animateClass=function(n,o,a,r){var h=t.speed(o,a,
isabled",t),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled r);return this.queue(function(){var o,a=t(this),r=a.attr("class")||"",l=h.childr
",!!t)),void 0)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=e.ui.keyCo en?a.find("*").addBack():a;l=l.map(function(){var i=t(this);return{el:i,start:e(
de,s=this.headers.length,n=this.headers.index(t.target),a=!1;switch(t.keyCode){c this)}}),o=function(){t.each(s,function(t,e){n[e]&&a[e+"Class"](n[e])})},o(),l=l
ase i.RIGHT:case i.DOWN:a=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:a=th .map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),t
is.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._eventHandler(t);brea his}),a.attr("class",r),l=l.map(function(){var e=this,i=t.Deferred(),s=t.extend(
k;case i.HOME:a=this.headers[0];break;case i.END:a=this.headers[s-1]}a&&(e(t.tar {},h,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.d
get).attr("tabIndex",-1),e(a).attr("tabIndex",0),a.focus(),t.preventDefault())}} iff,s),i.promise()}),t.when.apply(t,l.get()).done(function(){o(),t.each(argument
,_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTa s,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),h.comple
rget).prev().focus()},refresh:function(){var t=this.options;this._processPanels( te.call(a[0])})})},t.fn.extend({addClass:function(e){return function(i,s,n,o){re
),t.active===!1&&t.collapsible===!0||!this.headers.length?(t.active=!1,this.acti turn s?t.effects.animateClass.call(this,{add:i},s,n,o):e.apply(this,arguments)}}
ve=e()):t.active===!1?this._activate(0):this.active.length&&!e.contains(this.ele (t.fn.addClass),removeClass:function(e){return function(i,s,n,o){return argument
ment[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disab s.length>1?t.effects.animateClass.call(this,{remove:i},s,n,o):e.apply(this,argum
led").length?(t.active=!1,this.active=e()):this._activate(Math.max(0,t.active-1) ents)}}(t.fn.removeClass),toggleClass:function(e){return function(i,s,n,o,a){ret
):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()} urn"boolean"==typeof s||void 0===s?n?t.effects.animateClass.call(this,s?{add:i}:
,_processPanels:function(){var e=this.headers,t=this.panels;this.headers=this.el {remove:i},n,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{togg
ement.find(this.options.header).addClass("ui-accordion-header ui-state-default u le:i},s,n,o)}}(t.fn.toggleClass),switchClass:function(e,i,s,n,o){return t.effect
i-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui s.animateClass.call(this,{add:i,remove:e},s,n,o)}})}(),function(){function e(e,i
-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-co ,s,n){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t
ntent-active)").hide(),t&&(this._off(e.not(this.headers)),this._off(t.not(this.p .isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=s,s=i
anels)))},_refresh:function(){var t,i=this.options,s=i.heightStyle,n=this.elemen ,i={}),t.isFunction(s)&&(n=s,s=null),i&&t.extend(e,i),s=s||i.duration,e.duration
t.parent();this.active=this._findActive(i.active).addClass("ui-accordion-header- =t.fx.off?0:"number"==typeof s?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._de
active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active. fault,e.complete=n||i.complete,e}function i(e){return!e||"number"==typeof e||t.f
next().addClass("ui-accordion-content-active").show(),this.headers.attr("role"," x.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"objec
tab").each(function(){var t=e(this),i=t.uniqueId().attr("id"),s=t.next(),n=s.uni t"!=typeof e||e.effect?!1:!0:!0}function s(t,e){var i=e.outerWidth(),s=e.outerHe
queId().attr("id");t.attr("aria-controls",n),s.attr("aria-labelledby",i)}).next( ight(),n=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s
).attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"f *(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,o=n.exec(t)||["
alse","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}). ",0,i,s,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?i:parseFloat(o[2])
hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expande ,bottom:"auto"===o[3]?s:parseFloat(o[3]),left:parseFloat(o[4])||0}}t.expr&&t.exp
d":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).a r.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return
ttr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===s?(t=n function(i){return!!t(i).data(d)||e(i)}}(t.expr.filters.animated)),t.uiBackCompa
.height(),this.element.siblings(":visible").each(function(){var i=e(this),s=i.cs t!==!1&&t.extend(t.effects,{save:function(t,e){for(var i=0,s=e.length;s>i;i++)nu
s("position");"absolute"!==s&&"fixed"!==s&&(t-=i.outerHeight(!0))}),this.headers ll!==e[i]&&t.data(c+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,s=0,
.each(function(){t-=e(this).outerHeight(!0)}),this.headers.next().each(function( n=e.length;n>s;s++)null!==e[s]&&(i=t.data(c+e[s]),t.css(e[s],i))},setMode:functi
){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))}).css("ov on(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:f
erflow","auto")):"auto"===s&&(t=0,this.headers.next().each(function(){t=Math.max unction(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={widt
(t,e(this).css("height","").height())}).height(t))},_activate:function(t){var i= h:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},s=t("<div></
this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandl div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transpare
er({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){r nt",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},o=d
eturn"number"==typeof t?this.headers.eq(t):e()},_setupEvents:function(t){var i={ ocument.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(s),(e[0]==
keydown:"_keydown"};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}), =o||t.contains(e[0],o))&&t(o).trigger("focus"),s=e.parent(),"static"===e.css("po
this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._ sition")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i
on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers), ,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bot
this._focusable(this.headers)},_eventHandler:function(t){var i=this.options,s=th tom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto"
is.active,n=e(t.currentTarget),a=n[0]===s[0],o=a&&i.collapsible,r=o?e():n.next() )}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(
,h=s.next(),l={oldHeader:s,oldPanel:h,newHeader:o?e():n,newPanel:r};t.preventDef n),s.css(i).show()},removeWrapper:function(e){var i=document.activeElement;retur
ault(),a&&!i.collapsible||this._trigger("beforeActivate",t,l)===!1||(i.active=o? n e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.
!1:this.headers.index(n),this.active=a?e():n,this._toggle(l),s.removeClass("ui-a contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12
ccordion-header-active ui-state-active"),i.icons&&s.children(".ui-accordion-head .1",define:function(e,i,s){return s||(s=i,i="effect"),t.effects.effect[e]=s,t.ef
er-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),a||(n.remov fects.effect[e].mode=i,s},scaledDimensions:function(t,e,i){if(0===e)return{heigh
eClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui- t:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,n=
corner-top"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icon "vertical"!==i?(e||100)/100:1;return{height:t.height()*n,width:t.width()*s,outer
s.header).addClass(i.icons.activeHeader),n.next().addClass("ui-accordion-content Height:t.outerHeight()*n,outerWidth:t.outerWidth()*s}},clipToBox:function(t){ret
-active")))},_toggle:function(t){var i=t.newPanel,s=this.prevShow.length?this.pr urn{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.l
evShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,t eft,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();e>1&&s.splice.apply
his.prevHide=s,this.options.animate?this._animate(i,s,t):(s.hide(),i.show(),this (s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(u,t[0]
._toggleComplete(t)),s.attr({"aria-hidden":"true"}),s.prev().attr("aria-selected .style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(u)||"",t.rem
","false"),i.length&&s.length?s.prev().attr({tabIndex:-1,"aria-expanded":"false" oveData(u)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"s
}):i.length&&this.headers.filter(function(){return 0===e(this).attr("tabIndex")} how":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){
).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected" var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=
:"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(e,t,i){var s,n,a, 1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s
o=this,r=0,h=e.length&&(!t.length||e.index()<t.index()),l=this.options.animate|| =.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPl
{},u=h&&l.down||l,d=function(){o._toggleComplete(i)};return"number"==typeof u&&( aceholder:function(e){var i,s=e.css("position"),n=e.position();return e.css({mar
a=u),"string"==typeof u&&(n=u),n=n||u.easing||l.easing,a=a||u.duration||l.durati ginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("m
on,t.length?e.length?(s=e.show().outerHeight(),t.animate(this.hideProps,{duratio arginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerH
n:a,easing:n,step:function(e,t){t.now=Math.round(e)}}),e.hide().animate(this.sho eight(e.outerHeight()),/^(static|relative)/.test(s)&&(s="absolute",i=t("<"+e[0].
wProps,{duration:a,easing:n,complete:d,step:function(e,i){i.now=Math.round(e),"h nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display")
eight"!==i.prop?r+=i.now:"content"!==o.options.heightStyle&&(i.now=Math.round(s- )?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),margin
t.outerHeight()-r),r=0)}}),void 0):t.animate(this.hideProps,a,n,d):e.animate(thi Bottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("m
s.showProps,a,n,d)},_toggleComplete:function(e){var t=e.oldPanel;t.removeClass(" arginRight"),"float":e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.o
ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-c uterHeight()).addClass("ui-effects-placeholder"),e.data(c+"placeholder",i)),e.cs
orner-all"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._tr s({position:s,left:n.left,top:n.top}),i},removePlaceholder:function(t){var e=c+"
igger("activate",null,e)}}),e.widget("ui.menu",{version:"1.11.2",defaultElement: placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.
"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus: effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e
"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null, ,i,s,n){return n=n||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(n[i]=o
select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=! [0]*s+o[1])}),n}}),t.fn.extend({effect:function(){function i(e){function i(){r.r
1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggle emoveData(d),t.effects.cleanUp(r),"hide"===s.mode&&r.hide(),a()}function a(){t.i
Class("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.op sFunction(h)&&h.call(r[0]),t.isFunction(e)&&e()}var r=t(this);s.mode=c.shift(),t
tions.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-d .uiBackCompat===!1||o?"none"===s.mode?(r[l](),a()):n.call(r[0],s,i):(r.is(":hidd
isabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":funct en")?"hide"===l:"show"===l)?(r[l](),a()):n.call(r[0],s,a)}var s=e.apply(this,arg
ion(e){e.preventDefault()},"click .ui-menu-item":function(t){var i=e(t.target);! uments),n=t.effects.effect[s.effect],o=n.mode,a=s.queue,r=a||"fx",h=s.complete,l
this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropa =s.mode,c=[],u=function(e){var i=t(this),s=t.effects.mode(i,l)||o;i.data(d,!0),c
gationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t): .push(s),o&&("show"===s||s===o&&"hide"===s)&&i.show(),o&&"none"===s||t.effects.s
!this.element.is(":focus")&&e(this.document[0].activeElement).closest(".ui-menu" aveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!n?l?this[l](s.duration,h):th
).length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.paren is.each(function(){h&&h.call(this)}):a===!1?this.each(u).each(i):this.queue(r,u)
ts(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":fu .queue(r,i)},show:function(t){return function(s){if(i(s))return t.apply(this,arg
nction(t){if(!this.previousFilter){var i=e(t.currentTarget);i.siblings(".ui-stat uments);var n=e.apply(this,arguments);return n.mode="show",this.effect.call(this
e-active").removeClass("ui-state-active"),this.focus(t,i) ,n)
}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e }}(t.fn.show),hide:function(t){return function(s){if(i(s))return t.apply(this,ar
,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus guments);var n=e.apply(this,arguments);return n.mode="hide",this.effect.call(thi
(e,i)},blur:function(t){this._delay(function(){e.contains(this.element[0],this.d s,n)}}(t.fn.hide),toggle:function(t){return function(s){if(i(s)||"boolean"==type
ocument[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refr of s)return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode=
esh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&t "toggle",this.effect.call(this,n)}}(t.fn.toggle),cssUnit:function(e){var i=this.
his.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.rem css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=
oveAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu [parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.t
ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeA op+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):s(this.css("clip"),this)},tr
ttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").remove ansfer:function(e,i){var s=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("
Attr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.ele body"),r=o?a.scrollTop():0,h=o?a.scrollLeft():0,l=n.offset(),c={top:l.top-r,left
ment.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").remove :l.left-h,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("<div cl
Attr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr( ass='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({t
"tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(funct op:u.top-r,left:u.left-h,height:s.innerHeight(),width:s.innerWidth(),position:o?
ion(){var t=e(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.f "fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),t.isFun
ind(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydo ction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).css
wn:function(t){var i,s,n,a,o=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this Clip(),"string"==typeof e.end&&(e.end=s(e.end,e.elem)),e.clipInit=!0),t(e.elem).
.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-
.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this. e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.
_move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e. bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e=
ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break {};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e)
;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&thi {return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math
s.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate .PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0
(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:o=!1,s=this.pr ===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:fun
eviousFilter||"",n=String.fromCharCode(t.keyCode),a=!1,clearTimeout(this.filterT ction(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i
imer),n===s?a=!0:n=s+n,i=this._filterMenuItems(n),i=a&&-1!==i.index(this.active. ))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(
next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=String.fromCharCode( e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return
t.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(t,i),this.previousFi 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}
lter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)) })}();var f=t.effects;t.effects.define("blind","hide",function(e,i){var s={up:["
:delete this.previousFilter}o&&t.preventDefault()},_activate:function(e){this.ac bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","le
tive.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.ex ft"],horizontal:["right","left"],right:["left","right"]},n=t(this),o=e.direction
pand(e):this.select(e))},refresh:function(){var t,i,s=this,n=this.options.icons. ||"up",a=n.cssClip(),r={clip:t.extend({},a)},h=t.effects.createPlaceholder(n);r.
submenu,a=this.element.find(this.options.menus);this.element.toggleClass("ui-men clip[s[o][0]]=r.clip[s[o][1]],"show"===e.mode&&(n.cssClip(r.clip),h&&h.css(t.eff
u-icons",!!this.element.find(".ui-icon").length),a.filter(":not(.ui-menu)").addC ects.clipToBox(r)),r.clip=a),h&&h.animate(t.effects.clipToBox(r),e.duration,e.ea
lass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.opti sing),n.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t
ons.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e( .effects.define("bounce",function(e,i){var s,n,o,a=t(this),r=e.mode,h="hide"===r
this),i=t.parent(),s=e("<span>").addClass("ui-menu-icon ui-icon "+n).data("ui-me ,l="show"===r,c=e.direction||"up",u=e.distance,d=e.times||5,p=2*d+(l||h?1:0),f=e
nu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(s),t.attr("aria-lab .duration/p,g=e.easing,m="up"===c||"down"===c?"top":"left",_="up"===c||"left"===
elledby",i.attr("id"))}),t=a.add(this.element),i=t.find(this.options.items),i.no c,v=0,b=a.queue().length;for(t.effects.createPlaceholder(a),o=a.css(m),u||(u=a["
t(".ui-menu-item").each(function(){var t=e(this);s._isDivider(t)&&t.addClass("ui top"===m?"outerHeight":"outerWidth"]()/3),l&&(n={opacity:1},n[m]=o,a.css("opacit
-widget-content ui-menu-divider")}),i.not(".ui-menu-item, .ui-menu-divider").add y",0).css(m,_?2*-u:2*u).animate(n,f,g)),h&&(u/=Math.pow(2,d-1)),n={},n[m]=o;d>v;
Class("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),i.fil v++)s={},s[m]=(_?"-=":"+=")+u,a.animate(s,f,g).animate(n,f,g),u=h?2*u:u/2;h&&(s=
ter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains( {opacity:0},s[m]=(_?"-=":"+=")+u,a.animate(s,f,g)),a.queue(i),t.effects.unshift(
this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:" a,b,p+1)}),t.effects.define("clip","hide",function(e,i){var s,n={},o=t(this),a=e
menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){"icons" .direction||"vertical",r="both"===a,h=r||"horizontal"===a,l=r||"vertical"===a;s=
===e&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu) o.cssClip(),n.clip={top:l?(s.bottom-s.top)/2:s.top,right:h?(s.right-s.left)/2:s.
.addClass(t.submenu),"disabled"===e&&this.element.toggleClass("ui-state-disabled right,bottom:l?(s.bottom-s.top)/2:s.bottom,left:h?(s.right-s.left)/2:s.left},t.e
",!!t).attr("aria-disabled",t),this._super(e,t)},focus:function(e,t){var i,s;thi ffects.createPlaceholder(o),"show"===e.mode&&(o.cssClip(n.clip),n.clip=s),o.anim
s.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),s=th ate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.def
is.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options ine("drop","hide",function(e,i){var s,n=t(this),o=e.mode,a="show"===o,r=e.direct
.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.paren ion||"left",h="up"===r||"down"===r?"top":"left",l="up"===r||"left"===r?"-=":"+="
t().closest(".ui-menu-item").addClass("ui-state-active"),e&&"keydown"===e.type?t ,c="+="===l?"-=":"+=",u={opacity:0};t.effects.createPlaceholder(n),s=e.distance|
his._close():this.timer=this._delay(function(){this._close()},this.delay),i=t.ch |n["top"===h?"outerHeight":"outerWidth"](!0)/2,u[h]=l+s,a&&(n.css(u),u[h]=c+s,u.
ildren(".ui-menu"),i.length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),thi opacity=1),n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:i}
s.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:funct )}),t.effects.define("explode","hide",function(e,i){function s(){b.push(this),b.
ion(t){var i,s,n,a,o,r;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0] length===u*d&&n()}function n(){p.css({visibility:"visible"}),t(b).remove(),i()}v
,"borderTopWidth"))||0,s=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,n ar o,a,r,h,l,c,u=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=u,p=t(this),f=e.mo
=t.offset().top-this.activeMenu.offset().top-i-s,a=this.activeMenu.scrollTop(),o de,g="show"===f,m=p.show().css("visibility","hidden").offset(),_=Math.ceil(p.out
=this.activeMenu.height(),r=t.outerHeight(),0>n?this.activeMenu.scrollTop(a+n):n erWidth()/d),v=Math.ceil(p.outerHeight()/u),b=[];for(o=0;u>o;o++)for(h=m.top+o*v
+r>o&&this.activeMenu.scrollTop(a+n-o+r))},blur:function(e,t){t||clearTimeout(th ,c=o-(u-1)/2,a=0;d>a;a++)r=m.left+a*_,l=a-(d-1)/2,p.clone().appendTo("body").wra
is.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=nu p("<div></div>").css({position:"absolute",visibility:"visible",left:-a*_,top:-o*
ll,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearT v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"h
imeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(funct idden",width:_,height:v,left:r+(g?l*_:0),top:h+(g?c*v:0),opacity:g?0:1}).animate
ion(){this._close(),this._open(e)},this.delay))},_open:function(t){var i=e.exten ({left:r+(g?0:l*_),top:h+(g?0:c*v),opacity:g?1:0},e.duration||500,e.easing,s)}),
d({of:this.active},this.options.position);clearTimeout(this.timer),this.element. t.effects.define("fade","toggle",function(e,i){var s="show"===e.mode;t(this).css
find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t. ("opacity",s?0:1).animate({opacity:s?1:0},{queue:!1,duration:e.duration,easing:e
show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},colla .easing,complete:i})}),t.effects.define("fold","hide",function(e,i){var s=t(this
pseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){ ),n=e.mode,o="show"===n,a="hide"===n,r=e.size||15,h=/([0-9]+)%/.exec(r),l=!!e.ho
var s=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));s.len rizFirst,c=l?["right","bottom"]:["bottom","right"],u=e.duration/2,d=t.effects.cr
gth||(s=this.element),this._close(s),this.blur(t),this.activeMenu=s},this.delay) eatePlaceholder(s),p=s.cssClip(),f={clip:t.extend({},p)},g={clip:t.extend({},p)}
},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find ,m=[p[c[0]],p[c[1]]],_=s.queue().length;h&&(r=parseInt(h[1],10)/100*m[a?0:1]),f.
(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end clip[c[0]]=r,g.clip[c[0]]=r,g.clip[c[1]]=0,o&&(s.cssClip(g.clip),d&&d.css(t.effe
().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active" cts.clipToBox(g)),g.clip=p),s.queue(function(i){d&&d.animate(t.effects.clipToBox
)},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").leng (f),u,e.easing).animate(t.effects.clipToBox(g),u,e.easing),i()}).animate(f,u,e.e
th},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse asing).animate(g,u,e.easing).queue(i),t.effects.unshift(s,_,4)}),t.effects.defin
:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",thi e("highlight","show",function(e,i){var s=t(this),n={backgroundColor:s.css("backg
s.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var roundColor")};"hide"===e.mode&&(n.opacity=0),t.effects.saveStyle(s),s.css({backg
t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first( roundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(n,{queue:!1,durat
);t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)})) ion:e.duration,easing:e.easing,complete:i})}),t.effects.define("size",function(e
},next:function(e){this._move("next","first",e)},previous:function(e){this._move ,i){var s,n,o,a=t(this),r=["fontSize"],h=["borderTopWidth","borderBottomWidth","
("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevA paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLef
ll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.acti t","paddingRight"],c=e.mode,u="effect"!==c,d=e.scale||"both",p=e.origin||["middl
ve.nextAll(".ui-menu-item").length},_move:function(e,t,i){var s;this.active&&(s= e","center"],f=a.css("position"),g=a.position(),m=t.effects.scaledDimensions(a),
"first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-i _=e.from||m,v=e.to||t.effects.scaledDimensions(a,0);t.effects.createPlaceholder(
tem").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.acti a),"show"===c&&(o=_,_=v,v=o),n={from:{y:_.height/m.height,x:_.width/m.width},to:
ve||(s=this.activeMenu.find(this.options.items)[t]()),this.focus(i,s)},nextPage: {y:v.height/m.height,x:v.width/m.width}},("box"===d||"both"===d)&&(n.from.y!==n.
function(t){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()? to.y&&(_=t.effects.setTransition(a,h,n.from.y,_),v=t.effects.setTransition(a,h,n
(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-men .to.y,v)),n.from.x!==n.to.x&&(_=t.effects.setTransition(a,l,n.from.x,_),v=t.effe
u-item").each(function(){return i=e(this),0>i.offset().top-s-n}),this.focus(t,i) cts.setTransition(a,l,n.to.x,v))),("content"===d||"both"===d)&&n.from.y!==n.to.y
):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"firs &&(_=t.effects.setTransition(a,r,n.from.y,_),v=t.effects.setTransition(a,r,n.to.
t"]())),void 0):(this.next(t),void 0)},previousPage:function(t){var i,s,n;return y,v)),p&&(s=t.effects.getBaseline(p,m),_.top=(m.outerHeight-_.outerHeight)*s.y+g
this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top .top,_.left=(m.outerWidth-_.outerWidth)*s.x+g.left,v.top=(m.outerHeight-v.outerH
,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){re eight)*s.y+g.top,v.left=(m.outerWidth-v.outerWidth)*s.x+g.left),a.css(_),("conte
turn i=e(this),i.offset().top-s+n>0}),this.focus(t,i)):this.focus(t,this.activeM nt"===d||"both"===d)&&(h=h.concat(["marginTop","marginBottom"]).concat(r),l=l.co
enu.find(this.options.items).first())),void 0):(this.next(t),void 0)},_hasScroll ncat(["marginLeft","marginRight"]),a.find("*[width]").each(function(){var i=t(th
:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")} is),s=t.effects.scaledDimensions(i),o={height:s.height*n.from.y,width:s.width*n.
,select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item" from.x,outerHeight:s.outerHeight*n.from.y,outerWidth:s.outerWidth*n.from.x},a={h
);var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll( eight:s.height*n.to.y,width:s.width*n.to.x,outerHeight:s.height*n.to.y,outerWidt
t,!0),this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace( h:s.width*n.to.x};n.from.y!==n.to.y&&(o=t.effects.setTransition(i,h,n.from.y,o),
/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=RegExp("^"+i,"i");return this.activeMenu a=t.effects.setTransition(i,h,n.to.y,a)),n.from.x!==n.to.x&&(o=t.effects.setTran
.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.tes sition(i,l,n.from.x,o),a=t.effects.setTransition(i,l,n.to.x,a)),u&&t.effects.sav
t(e.trim(e(this).text()))})}}),e.widget("ui.autocomplete",{version:"1.11.2",defa eStyle(i),i.css(o),i.animate(a,e.duration,e.easing,function(){u&&t.effects.resto
ultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,p reStyle(i)})})),a.animate(v,{queue:!1,duration:e.duration,easing:e.easing,comple
osition:{my:"left top",at:"left bottom",collision:"none"},source:null,change:nul te:function(){var e=a.offset();0===v.opacity&&a.css("opacity",_.opacity),u||(a.c
l,close:null,focus:null,open:null,response:null,search:null,select:null},request ss("position","static"===f?"relative":f).offset(e),t.effects.saveStyle(a)),i()}}
Index:0,pending:0,_create:function(){var t,i,s,n=this.element[0].nodeName.toLowe )}),t.effects.define("scale",function(e,i){var s=t(this),n=e.mode,o=parseInt(e.p
rCase(),a="textarea"===n,o="input"===n;this.isMultiLine=a?!0:o?!1:this.element.p ercent,10)||(0===parseInt(e.percent,10)?0:"effect"!==n?0:100),a=t.extend(!0,{fro
rop("isContentEditable"),this.valueMethod=this.element[a||o?"val":"text"],this.i m:t.effects.scaledDimensions(s),to:t.effects.scaledDimensions(s,o,e.direction||"
sNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete"," both"),origin:e.origin||["middle","center"]},e);e.fade&&(a.from.opacity=1,a.to.o
off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly" pacity=0),t.effects.effect.size.call(this,a,i)}),t.effects.define("puff","hide",
))return t=!0,s=!0,i=!0,void 0;t=!1,s=!1,i=!1;var a=e.ui.keyCode;switch(n.keyCod function(e,i){var s=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||15
e){case a.PAGE_UP:t=!0,this._move("previousPage",n);break;case a.PAGE_DOWN:t=!0, 0});t.effects.effect.scale.call(this,s,i)}),t.effects.define("pulsate","show",fu
this._move("nextPage",n);break;case a.UP:t=!0,this._keyEvent("previous",n);break nction(e,i){var s=t(this),n=e.mode,o="show"===n,a="hide"===n,r=o||a,h=2*(e.times
;case a.DOWN:t=!0,this._keyEvent("next",n);break;case a.ENTER:this.menu.active&& ||5)+(r?1:0),l=e.duration/h,c=0,u=1,d=s.queue().length;for((o||!s.is(":visible")
(t=!0,n.preventDefault(),this.menu.select(n));break;case a.TAB:this.menu.active& )&&(s.css("opacity",0).show(),c=1);h>u;u++)s.animate({opacity:c},l,e.easing),c=1
&this.menu.select(n);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this -c;s.animate({opacity:c},l,e.easing),s.queue(i),t.effects.unshift(s,d,h+1)}),t.e
.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;def ffects.define("shake",function(e,i){var s=1,n=t(this),o=e.direction||"left",a=e.
ault:i=!0,this._searchTimeout(n)}},keypress:function(s){if(t)return t=!1,(!this. distance||20,r=e.times||3,h=2*r+1,l=Math.round(e.duration/h),c="up"===o||"down"=
isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i) ==o?"top":"left",u="up"===o||"left"===o,d={},p={},f={},g=n.queue().length;for(t.
{var n=e.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s effects.createPlaceholder(n),d[c]=(u?"-=":"+=")+a,p[c]=(u?"+=":"-=")+2*a,f[c]=(u
);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent ?"-=":"+=")+2*a,n.animate(d,l,e.easing);r>s;s++)n.animate(p,l,e.easing).animate(
("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(e){r f,l,e.easing);n.animate(p,l,e.easing).animate(d,l/2,e.easing).queue(i),t.effects
eturn s?(s=!1,e.preventDefault(),void 0):(this._searchTimeout(e),void 0)},focus: .unshift(n,g,h+1)}),t.effects.define("slide","show",function(e,i){var s,n,o=t(th
function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){ is),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["l
return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.search eft","right"]},r=e.mode,h=e.direction||"left",l="up"===h||"down"===h?"top":"left
ing),this.close(e),this._change(e),void 0)}}),this._initSource(),this.menu=e("<u ",c="up"===h||"left"===h,u=e.distance||o["top"===l?"outerHeight":"outerWidth"](!
l>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role: 0),d={};t.effects.createPlaceholder(o),s=o.cssClip(),n=o.position()[l],d[l]=(c?-
null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(t) 1:1)*u+n,d.clip=o.cssClip(),d.clip[a[h][1]]=d.clip[a[h][0]],"show"===r&&(o.cssCl
{t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancel ip(d.clip),o.css(l,d[l]),d.clip=s,d[l]=n),o.animate(d,{queue:!1,duration:e.durat
Blur});var i=this.menu.element[0];e(t.target).closest(".ui-menu-item").length||t ion,easing:e.easing,complete:i})});var f;t.uiBackCompat!==!1&&(f=t.effects.defin
his._delay(function(){var t=this;this.document.one("mousedown",function(s){s.tar e("transfer",function(e,i){t(this).transfer(e,i)})),t.ui.focusable=function(i,s)
get===t.element[0]||s.target===i||e.contains(i,s.target)||t.close()})})},menufoc {var n,o,a,r,h,l=i.nodeName.toLowerCase();return"area"===l?(n=i.parentNode,o=n.n
us:function(t,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,t.originalEve ame,i.href&&o&&"map"===n.nodeName.toLowerCase()?(a=t("img[usemap='#"+o+"']"),a.l
nt&&/^mouse/.test(t.originalEvent.type))?(this.menu.blur(),this.document.one("mo ength>0&&a.is(":visible")):!1):(/^(input|select|textarea|button|object)$/.test(l
usemove",function(){e(t.target).trigger(t.originalEvent)}),void 0):(n=i.item.dat )?(r=!i.disabled,r&&(h=t(i).closest("fieldset")[0],h&&(r=!h.disabled))):r="a"===
a("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:n})&&t.originalEven l?i.href||s:s,r&&t(i).is(":visible")&&e(t(i)))},t.extend(t.expr[":"],{focusable:
t&&/^key/.test(t.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-l function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusabl
abel")||n.value,s&&e.trim(s).length&&(this.liveRegion.children().hide(),e("<div> e,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):
").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,t){var i=t. t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this)
item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.documen ;setTimeout(function(){var i=e.data("ui-form-reset-instances");t.each(i,function
t[0].activeElement&&(this.element.focus(),this.previous=s,this._delay(function() (){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.elemen
{this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})& t.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t
&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i} .length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this)
}),this.liveRegion=e("<span>",{role:"status","aria-live":"assertive","aria-relev ,this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(
ant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.documen ){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(
t[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.f
("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.eleme orm.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===
nt.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.ele t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,i){function s(
ment.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t e,i,s,o){return t.each(n,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&
),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(th &(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"m
is._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_appendTo:functio argin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.to
n(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.docu LowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidt
ment.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front")),t.length||(t= h:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){retu
this.document[0].body),t},_initSource:function(){var t,i,s=this;e.isArray(this.o rn void 0===e?a["inner"+i].call(this):this.each(function(){t(this).css(o,s(this,
ptions.source)?(t=this.options.source,this.source=function(i,s){s(e.ui.autocompl e)+"px")})},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?a["outer"+i].
ete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.sou call(this,e):this.each(function(){t(this).css(o,s(this,e,!0,n)+"px")})}}),t.fn.a
rce,this.source=function(t,n){s.xhr&&s.xhr.abort(),s.xhr=e.ajax({url:i,data:t,da ddBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filte
taType:"json",success:function(e){n(e)},error:function(){n([])}})}):this.source= r(t))}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ES
this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),thi CAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB
s.searching=this._delay(function(){var t=this.term===this._value(),i=this.menu.e :9,UP:38},t.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}
lement.is(":visible"),s=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;(!t||t&&!i&&! ~])/g;return function(e){return e.replace(t,"\\$1")}}(),t.fn.labels=function(){v
s)&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:fu ar e,i,s,n,o;return this[0].labels&&this[0].labels.length?this.pushStack(this[0]
nction(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<th .labels):(n=this.eq(0).parents("label"),s=this.attr("id"),s&&(e=this.eq(0).paren
is.options.minLength?this.close(t):this._trigger("search",t)!==!1?this._search(e ts().last(),o=e.add(e.length?e.siblings():this.siblings()),i="label[for='"+t.ui.
):void 0},_search:function(e){this.pending++,this.element.addClass("ui-autocompl escapeSelector(s)+"']",n=n.add(o.find(i).addBack(i))),this.pushStack(n))},t.fn.s
ete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_resp crollParent=function(e){var i=this.css("position"),s="absolute"===i,n=e?/(auto|s
onse:function(){var t=++this.requestIndex;return e.proxy(function(e){t===this.re croll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);
questIndex&&this.__response(e),this.pending--,this.pending||this.element.removeC return s&&"static"===e.css("position")?!1:n.test(e.css("overflow")+e.css("overfl
lass("ui-autocomplete-loading")},this)},__response:function(e){e&&(e=this._norma ow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].owne
lize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e rDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var i=t.attr(e,
.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close "tabindex"),s=null!=i;return(!s||i>=0)&&t.ui.focusable(e,s)}}),t.fn.extend({uniq
()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){th ueId:function(){var t=0;return function(){return this.each(function(){this.id||(
is.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this. this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function
isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this (){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.widget("ui.accor
._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:functi dion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-head
on(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"strin er":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordio
g"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.val n-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :firs
ue||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._rend t-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triang
erMenu(i,t),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i. le-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hidePr
position(e.extend({of:this.element},this.options.position)),this.options.autoFoc ops:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBot
us&&this.menu.next()},_resizeMenu:function(){var e=this.menu.element;e.outerWidt tom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"sh
h(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:f ow",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var
unction(t,i){var s=this;e.each(i,function(e,i){s._renderItemData(t,i)})},_render e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","u
ItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item", i-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||e.
t)},_renderItem:function(t,i){return e("<li>").text(i.label).appendTo(t)},_move: active!==!1&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.a
function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/ ctive+=this.headers.length),this._refresh()},_getCreateEventData:function(){retu
^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||t rn{header:this.active,panel:this.active.length?this.active.next():t()}},_createI
his._value(this.term),this.menu.blur(),void 0):(this.menu[e](t),void 0):(this.se cons:function(){var e,i,s=this.options.icons;s&&(e=t("<span>"),this._addClass(e,
arch(null,t),void 0)},widget:function(){return this.menu.element},_value:functio "ui-accordion-header-icon","ui-icon "+s.header),e.prependTo(this.headers),i=this
n(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e, .active.children(".ui-accordion-header-icon"),this._removeClass(i,s.header)._add
t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.pre Class(i,null,s.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_des
ventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.r troyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.h
eplace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var s=RegExp( eaders.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t
e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(e){return s.test( ;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded ari
e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options: a-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this
{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" re .headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby")
sults are":" result is")+" available, use up and down arrow keys to navigate."}} .removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_set
},__response:function(t){var i;this._superApply(arguments),this.options.disabled Option:function(t,e){return"active"===t?(this._activate(e),void 0):("event"===t&
||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this &(this.options.event&&this._off(this.headers,this.options.event),this._setupEven
.options.messages.noResults,this.liveRegion.children().hide(),e("<div>").text(i) ts(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._ac
.appendTo(this.liveRegion))}}),e.ui.autocomplete;var c,p="ui-button ui-widget ui tivate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void 0)},_s
-state-default ui-corner-all",f="ui-button-icons-only ui-button-icon-only ui-but etOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t)
ton-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-butt ,this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.
on-text-only",m=function(){var t=e(this);setTimeout(function(){t.find(":ui-butto add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(
n").button("refresh")},1)},g=function(t){var i=t.name,s=t.form,n=e([]);return i& !e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,s=this.headers.length,n=this.headers.i
&(i=i.replace(/'/g,"\\'"),n=s?e(s).find("[name='"+i+"'][type=radio]"):e("[name=' ndex(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(n
"+i+"'][type=radio]",t.ownerDocument).filter(function(){return!this.form})),n};e +1)%s];break;case i.LEFT:case i.UP:o=this.headers[(n-1+s)%s];break;case i.SPACE:
.widget("ui.button",{version:"1.11.2",defaultElement:"<button>",options:{disable case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;cas
d:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function( e i.END:o=this.headers[s-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIn
){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+ dex",0),t(o).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.
this.eventNamespace,m),"boolean"!=typeof this.options.disabled?this.options.disa keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")
bled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.d },refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.c
isabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("ti ollapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!
tle");var t=this,i=this.options,s="checkbox"===this.type||"radio"===this.type,n= 1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[
s?"":"ui-state-active";null===i.label&&(i.label="input"===this.type?this.buttonE 0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.acti
lement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this ve=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.head
.buttonElement.addClass(p).attr("role","button").bind("mouseenter"+this.eventNam ers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:func
espace,function(){i.disabled||this===c&&e(this).addClass("ui-state-active")}).bi tion(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.opti
nd("mouseleave"+this.eventNamespace,function(){i.disabled||e(this).removeClass(n ons.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header
)}).bind("click"+this.eventNamespace,function(e){i.disabled&&(e.preventDefault() -collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui
,e.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.a -accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-con
ddClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-st tent","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),th
ate-focus")}}),s&&this.element.bind("change"+this.eventNamespace,function(){t.re is._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,s=i.heigh
fresh()}),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNames tStyle,n=this.element.parent();this.active=this._findActive(i.active),this._addC
pace,function(){return i.disabled?!1:void 0}):"radio"===this.type?this.buttonEle lass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(th
ment.bind("click"+this.eventNamespace,function(){if(i.disabled)return!1;e(this). is.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui
addClass("ui-state-active"),t.buttonElement.attr("aria-pressed","true");var s=t. -accordion-content-active"),this.active.next().show(),this.headers.attr("role","
element[0];g(s).not(s).map(function(){return e(this).button("widget")[0]}).remov tab").each(function(){var e=t(this),i=e.uniqueId().attr("id"),s=e.next(),n=s.uni
eClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bin queId().attr("id");e.attr("aria-controls",n),s.attr("aria-labelledby",i)}).next(
d("mousedown"+this.eventNamespace,function(){return i.disabled?!1:(e(this).addCl ).attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"f
ass("ui-state-active"),c=this,t.document.one("mouseup",function(){c=null}),void alse","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).
0)}).bind("mouseup"+this.eventNamespace,function(){return i.disabled?!1:(e(this) hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expande
.removeClass("ui-state-active"),void 0)}).bind("keydown"+this.eventNamespace,fun d":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).a
ction(t){return i.disabled?!1:((t.keyCode===e.ui.keyCode.SPACE||t.keyCode===e.ui ttr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===s?(e=n
.keyCode.ENTER)&&e(this).addClass("ui-state-active"),void 0)}).bind("keyup"+this .height(),this.element.siblings(":visible").each(function(){var i=t(this),s=i.cs
.eventNamespace+" blur"+this.eventNamespace,function(){e(this).removeClass("ui-s s("position");"absolute"!==s&&"fixed"!==s&&(e-=i.outerHeight(!0))}),this.headers
tate-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(t) .each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(
{t.keyCode===e.ui.keyCode.SPACE&&e(this).click()})),this._setOption("disabled",i ){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("ov
.disabled),this._resetButton()},_determineButtonType:function(){var e,t,i;this.t erflow","auto")):"auto"===s&&(e=0,this.headers.next().each(function(){var i=t(th
ype=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]" is).is(":visible");i||t(this).show(),e=Math.max(e,t(this).css("height","").heigh
)?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"rad t()),i||t(this).hide()}).height(e))},_activate:function(e){var i=this._findActiv
io"===this.type?(e=this.element.parents().last(),t="label[for='"+this.element.at e(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,cu
tr("id")+"']",this.buttonElement=e.find(t),this.buttonElement.length||(e=e.lengt rrentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==
h?e.siblings():this.element.siblings(),this.buttonElement=e.filter(t),this.butto typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydo
nElement.length||(this.buttonElement=e.find(t))),this.element.addClass("ui-helpe wn"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.
r-hidden-accessible"),i=this.element.is(":checked"),i&&this.buttonElement.addCla headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers
ss("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElem .next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable
ent=this.element},widget:function(){return this.buttonElement},_destroy:function (this.headers)},_eventHandler:function(e){var i,s,n=this.options,o=this.active,a
(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.re =t(e.currentTarget),r=a[0]===o[0],h=r&&n.collapsible,l=h?t():a.next(),c=o.next()
moveClass(p+" ui-state-active "+f).removeAttr("role").removeAttr("aria-pressed") ,u={oldHeader:o,oldPanel:c,newHeader:h?t():a,newPanel:l};e.preventDefault(),r&&!
.html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.but n.collapsible||this._trigger("beforeActivate",e,u)===!1||(n.active=h?!1:this.hea
tonElement.removeAttr("title")},_setOption:function(e,t){return this._super(e,t) ders.index(a),this.active=r?t():a,this._toggle(u),this._removeClass(o,"ui-accord
,"disabled"===e?(this.widget().toggleClass("ui-state-disabled",!!t),this.element ion-header-active","ui-state-active"),n.icons&&(i=o.children(".ui-accordion-head
.prop("disabled",!!t),t&&("checkbox"===this.type||"radio"===this.type?this.butto er-icon"),this._removeClass(i,null,n.icons.activeHeader)._addClass(i,null,n.icon
nElement.removeClass("ui-state-focus"):this.buttonElement.removeClass("ui-state- s.header)),r||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,
focus ui-state-active")),void 0):(this._resetButton(),void 0)},refresh:function( "ui-accordion-header-active","ui-state-active"),n.icons&&(s=a.children(".ui-acco
){var t=this.element.is("input, button")?this.element.is(":disabled"):this.eleme rdion-header-icon"),this._removeClass(s,null,n.icons.header)._addClass(s,null,n.
nt.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOption("di icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active")))},_
sabled",t),"radio"===this.type?g(this.element[0]).each(function(){e(this).is(":c toggle:function(e){var i=e.newPanel,s=this.prevShow.length?this.prevShow:e.oldPa
hecked")?e(this).button("widget").addClass("ui-state-active").attr("aria-pressed nel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=s
","true"):e(this).button("widget").removeClass("ui-state-active").attr("aria-pre ,this.options.animate?this._animate(i,s,e):(s.hide(),i.show(),this._toggleComple
ssed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.butto te(e)),s.attr({"aria-hidden":"true"}),s.prev().attr({"aria-selected":"false","ar
nElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElem ia-expanded":"false"}),i.length&&s.length?s.prev().attr({tabIndex:-1,"aria-expan
ent.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:f ded":"false"}):i.length&&this.headers.filter(function(){return 0===parseInt(t(th
unction(){if("input"===this.type)return this.options.label&&this.element.val(thi is).attr("tabIndex"),10)}).attr("tabIndex",-1),i.attr("aria-hidden","false").pre
s.options.label),void 0;var t=this.buttonElement.removeClass(f),i=e("<span></spa v().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:f
n>",this.document[0]).addClass("ui-button-text").html(this.options.label).append unction(t,e,i){var s,n,o,a=this,r=0,h=t.css("box-sizing"),l=t.length&&(!e.length
To(t.empty()).text(),s=this.options.icons,n=s.primary&&s.secondary,a=[];s.primar ||t.index()<e.index()),c=this.options.animate||{},u=l&&c.down||c,d=function(){a.
y||s.secondary?(this.options.text&&a.push("ui-button-text-icon"+(n?"s":s.primary _toggleComplete(i)};return"number"==typeof u&&(o=u),"string"==typeof u&&(n=u),n=
?"-primary":"-secondary")),s.primary&&t.prepend("<span class='ui-button-icon-pri n||u.easing||c.easing,o=o||u.duration||c.duration,e.length?t.length?(s=t.show().
mary ui-icon "+s.primary+"'></span>"),s.secondary&&t.append("<span class='ui-but outerHeight(),e.animate(this.hideProps,{duration:o,easing:n,step:function(t,e){e
ton-icon-secondary ui-icon "+s.secondary+"'></span>"),this.options.text||(a.push .now=Math.round(t)}}),t.hide().animate(this.showProps,{duration:o,easing:n,compl
(n?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||t.attr("title",e ete:d,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?"content-box"===h
.trim(i)))):a.push("ui-button-text-only"),t.addClass(a.join(" "))}}),e.widget("u &&(r+=i.now):"content"!==a.options.heightStyle&&(i.now=Math.round(s-e.outerHeigh
i.buttonset",{version:"1.11.2",options:{items:"button, input[type=button], input t()-r),r=0)}}),void 0):e.animate(this.hideProps,o,n,d):t.animate(this.showProps,
[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :d o,n,d)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClas
ata(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init s(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-acti
:function(){this.refresh()},_setOption:function(e,t){"disabled"===e&&this.button ve")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].class
s.button("option",e,t),this._super(e,t)},refresh:function(){var t="rtl"===this.e Name=e.parent()[0].className),this._trigger("activate",null,t)}}),t.ui.safeActiv
lement.css("direction"),i=this.element.find(this.options.items),s=i.filter(":ui- eElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=
button");i.not(":ui-button").button(),s.button("refresh"),this.buttons=i.map(fun t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultEl
ction(){return e(this).button("widget")[0]}).removeClass("ui-corner-all ui-corne ement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",
r-left ui-corner-right").filter(":first").addClass(t?"ui-corner-right":"ui-corne menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:n
r-left").end().filter(":last").addClass(t?"ui-corner-left":"ui-corner-right").en ull,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandl
d().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.but ed=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._ad
tons.map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner- dClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-it
left ui-corner-right").end().button("destroy")}}),e.ui.button,e.extend(e.ui,{dat em":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.
epicker:{version:"1.11.2"}});var v;e.extend(n.prototype,{markerClassName:"hasDat target),s=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(
epicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:f ".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mo
unction(e){return r(this._defaults,e||{}),this},_attachDatepicker:function(t,i){ useHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus"
var s,n,a;s=t.nodeName.toLowerCase(),n="div"===s||"span"===s,t.id||(this.uuid+=1 )&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active
,t.id="dp"+this.uuid),a=this._newInst(e(t),n),a.settings=e.extend({},i||{}),"inp &&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouse
ut"===s?this._connectDatepicker(t,a):n&&this._inlineDatepicker(t,a)},_newInst:fu enter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).clos
nction(t,i){var s=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:s,inp est(".ui-menu-item"),s=t(e.currentTarget);i[0]===s[0]&&(this._removeClass(s.sibl
ut:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline: ings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,s))}},m
i,dpDiv:i?a(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widg ouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){
et-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDate var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i
picker:function(t,i){var s=e(t);i.append=e([]),i.trigger=e([]),s.hasClass(this.m )},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.u
arkerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).keydow i.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydo
n(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSiz wn"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocu
e(i),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))}, mentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){v
_attachments:function(t,i){var s,n,a,o=this._get(i,"appendText"),r=this._get(i," ar e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.chi
isRTL");i.append&&i.append.remove(),o&&(i.append=e("<span class='"+this._appendC ldren(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-h
lass+"'>"+o+"</span>"),t[r?"before":"after"](i.append)),t.unbind("focus",this._s aspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addB
howDatepicker),i.trigger&&i.trigger.remove(),s=this._get(i,"showOn"),("focus"=== ack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled t
s||"both"===s)&&t.focus(this._showDatepicker),("button"===s||"both"===s)&&(n=thi abIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.d
s._get(i,"buttonText"),a=this._get(i,"buttonImage"),i.trigger=e(this._get(i,"but ata("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,s,n,o,a=!
tonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:a,alt:n,title: 0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.
n}):e("<button type='button'></button>").addClass(this._triggerClass).html(a?e(" ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("f
<img/>").attr({src:a,alt:n,title:n}):n)),t[r?"before":"after"](i.trigger),i.trig irst","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;c
ger.click(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastI ase t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);b
nput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.da reak;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.
tepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDat active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.ke
epicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){i yCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ES
f(this._get(e,"autoSize")&&!e.inline){var t,i,s,n,a=new Date(2009,11,20),o=this. CAPE:this.collapse(e);break;default:a=!1,s=this.previousFilter||"",o=!1,n=e.keyC
_get(e,"dateFormat");o.match(/[DM]/)&&(t=function(e){for(i=0,s=0,n=0;e.length>n; ode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTi
n++)e[n].length>i&&(i=e[n].length,s=n);return s},a.setMonth(t(this._get(e,o.matc meout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),i=o&&-1!==i.
h(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,o.match(/DD/)? index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=St
"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDat ring.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,
e(e,a).length)}},_inlineDatepicker:function(t,i){var s=e(t);s.hasClass(this.mark i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.pre
erClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepi viousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:f
cker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),t unction(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.chil
his._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv. dren("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:fu
css("display","block"))},_dialogDatepicker:function(t,i,s,n,a){var o,h,l,u,d,c=t nction(){var e,i,s,n,o,a=this,r=this.options.icons.submenu,h=this.element.find(t
his._dialogInst;return c||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=e("<i his.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".
nput type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;' ui-icon").length),s=h.filter(":not(.ui-menu)").hide().attr({role:this.options.ro
/>"),this._dialogInput.keydown(this._doKeyDown),e("body").append(this._dialogInp le,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),
ut),c=this._dialogInst=this._newInst(this._dialogInput,!1),c.settings={},e.data( i=e.prev(),s=t("<span>").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu
this._dialogInput[0],"datepicker",c)),r(c.settings,n||{}),i=i&&i.constructor===D -icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(s),e.attr("aria-labe
ate?this._formatDate(c,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.p lledby",i.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content
ageX,a.pageY]:null,this._pos||(h=document.documentElement.clientWidth,l=document ui-front"),e=h.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-it
.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.bo em").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divid
dy.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this er","ui-widget-content")}),n=i.not(".ui-menu-item, .ui-menu-divider"),o=n.childr
._pos=[h/2-100+u,l/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px"). en().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._
css("top",this._pos[1]+"px"),c.settings.onSelect=s,this._inDialog=!0,this.dpDiv. addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),i.filter(".ui-sta
addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI te-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element
&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",c),this},_destr [0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",li
oyDatepicker:function(t){var i,s=e(t),n=e.data(t,"datepicker");s.hasClass(this.m stbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var
arkerClassName)&&(i=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icon
"===i?(n.append.remove(),n.trigger.remove(),s.removeClass(this.markerClassName). s.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:func
unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("k tion(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass
eypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i (null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"fo
)&&s.removeClass(this.markerClassName).empty())},_enableDatepicker:function(t){v cus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.child
ar i,s,n=e(t),a=e.data(t,"datepicker");n.hasClass(this.markerClassName)&&(i=t.no ren(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.optio
deName.toLowerCase(),"input"===i?(t.disabled=!1,a.trigger.filter("button").each( ns.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.p
function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""}) arent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClas
):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().rem s(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this.
oveClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-date _delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&
picker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInpu t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this.
ts,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var i,s,n= _trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._
e(t),a=e.data(t,"datepicker");n.hasClass(this.markerClassName)&&(i=t.nodeName.to hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=pars
LowerCase(),"input"===i?(t.disabled=!0,a.trigger.filter("button").each(function( eFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMe
){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})): nu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e
("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().addCl .outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollT
ass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicke op(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.
r-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,fu _removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active
nction(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length "),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:f
]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;this._disable unction(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=
dInputs.length>t;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst: this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function
function(t){try{return e.data(t,"datepicker")}catch(i){throw"Missing instance da (e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.tim
ta for this datepicker"}},_optionDatepicker:function(t,i,s){var n,a,o,h,l=this._ er),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-h
getInst(t);return 2===arguments.length&&"string"==typeof i?"defaults"===i?e.exte idden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").p
nd({},e.datepicker._defaults):l?"all"===i?e.extend({},l.settings):this._get(l,i) osition(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._
:null:(n=i||{},"string"==typeof i&&(n={},n[i]=s),l&&(this._curInst===l&&this._hi delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find("
deDatepicker(),a=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(l,"min"),h= .ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this._removeC
this._getMinMaxDate(l,"max"),r(l.settings,n),null!==o&&void 0!==n.dateFormat&&vo lass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.
id 0===n.minDate&&(l.settings.minDate=this._formatDate(l,o)),null!==h&&void 0!== delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),
n.dateFormat&&void 0===n.maxDate&&(l.settings.maxDate=this._formatDate(l,h)),"di t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false
sabled"in n&&(n.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),t ")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").len
his._attachments(e(t),l),this._autoSize(l),this._setDate(l,a),this._updateAltern gth},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collaps
ate(l),this._updateDatepicker(l)),void 0)},_changeDatepicker:function(e,t,i){thi e:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",th
s._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e is.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var
);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._get e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first
Inst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i ();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)})
))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline& )},next:function(t){this._move("next","first",t)},previous:function(t){this._mov
&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var e("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prev
i,s,n,a=e.datepicker._getInst(t.target),o=!0,r=a.dpDiv.is(".ui-datepicker-rtl") All(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.act
;if(a._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.da ive.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s
tepicker._hideDatepicker(),o=!1;break;case 13:return n=e("td."+e.datepicker._day ="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-
OverClass+":not(."+e.datepicker._currentClass+")",a.dpDiv),n[0]&&e.datepicker._s item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.act
electDay(t.target,a.selectedMonth,a.selectedYear,n[0]),i=e.datepicker._get(a,"on ive||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage
Select"),i?(s=e.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[s,a]) :function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()
):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break ?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-me
;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepB nu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i
igMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 34:e.datepicker._a )):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"fir
djustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker st"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var i,s,n;retur
._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._c n this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().to
learDate(t.target),o=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&& p,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){r
e.datepicker._gotoToday(t.target),o=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKe eturn i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.active
y||t.metaKey)&&e.datepicker._adjustDate(t.target,r?1:-1,"D"),o=t.ctrlKey||t.meta Menu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScrol
Key,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datep l:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")
icker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case },select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item
38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),o=t.ctrlKe ");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll
y||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.ta (e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace
rget,r?-1:1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._ad (/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=RegExp("^"+i,"i");return this.activeMen
justDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker. u.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.te
_get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._ad st(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}}),t.widget("ui.a
justDate(t.target,7,"D"),o=t.ctrlKey||t.metaKey;break;default:o=!1}else 36===t.k utocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,a
eyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):o=!1;o&&(t.preventDefault() utoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",colli
,t.stopPropagation())},_doKeyPress:function(t){var i,s,n=e.datepicker._getInst(t sion:"none"},source:null,change:null,close:null,focus:null,open:null,response:nu
.target);return e.datepicker._get(n,"constrainInput")?(i=e.datepicker._possibleC ll,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,
hars(e.datepicker._get(n,"dateFormat")),s=String.fromCharCode(null==t.charCode?t s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;
.keyCode:t.charCode),t.ctrlKey||t.metaKey||" ">s||!i||i.indexOf(s)>-1):void 0 this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=t
},_doKeyUp:function(t){var i,s=e.datepicker._getInst(t.target);if(s.input.val()! his.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete
==s.lastVal)try{i=e.datepicker.parseDate(e.datepicker._get(s,"dateFormat"),s.inp -input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:
ut?s.input.val():null,e.datepicker._getFormatConfig(s)),i&&(e.datepicker._setDat function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;e=!1,s
eFromField(s),e.datepicker._updateAlternate(s),e.datepicker._updateDatepicker(s) =!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("pr
)}catch(n){}return!0},_showDatepicker:function(t){if(t=t.target||t,"input"!==t.n eviousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o
odeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),!e.datepicker._isDisabledD .UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("nex
atepicker(t)&&e.datepicker._lastInput!==t){var i,n,a,o,h,l,u;i=e.datepicker._get t",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.se
Inst(t),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst lect(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESC
.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepic APE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),
ker(e.datepicker._curInst.input[0])),n=e.datepicker._get(i,"beforeShow"),a=n?n.a this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},ke
pply(t,[t,i]):{},a!==!1&&(r(i.settings,a),i.lastVal=null,e.datepicker._lastInput ypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":v
=t,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(t.value=""),e.date isible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode)
picker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t {case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("
.offsetHeight),o=!1,e(t).parents().each(function(){return o|="fixed"===e(this).c nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this
ss("position"),!o}),h={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.dat ._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void
epicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"bloc 0):(this._searchTimeout(t),void 0)},focus:function(){this.selectedItem=null,thi
k",top:"-1000px"}),e.datepicker._updateDatepicker(i),h=e.datepicker._checkOffset s.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.c
(i,h,o),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":o?"fixe ancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),vo
d":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),i.inline||(l=e.da id 0)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu(
tepicker._get(i,"showAnim"),u=e.datepicker._get(i,"duration"),i.dpDiv.css("z-ind {role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autoco
ex",s(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[l] mplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventD
?i.dpDiv.show(l,e.datepicker._get(i,"showOptions"),u):i.dpDiv[l||"show"](l?u:nul efault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.e
l),e.datepicker._shouldFocusInput(i)&&i.input.focus(),e.datepicker._curInst=i))} lement[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focu
},_updateDatepicker:function(t){this.maxRows=4,v=t,t.dpDiv.empty().append(this._ s")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1
generateHTML(t)),this._attachHandlers(t);var i,s=this._getNumberOfMonths(t),n=s[ ,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.do
1],a=17,r=t.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&o.apply(r.get(0) cument.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0)
),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker :(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&
-multi-4").width(""),n>1&&t.dpDiv.addClass("ui-datepicker-multi-"+n).css("width" e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.ite
,a*n+"em"),t.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-m m.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().h
ulti"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl ide(),t("<div>").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function
"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._sho (e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!
uldFocusInput(t)&&t.input.focus(),t.yearshtml&&(i=t.yearshtml,setTimeout(functio ==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.
n(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first" previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==th
).replaceWith(t.yearshtml),i=t.yearshtml=null},0))},_shouldFocusInput:function(e is._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),t
){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is( his.close(e),this.selectedItem=s}}),this.liveRegion=t("<div>",{role:"status","ar
":focus")},_checkOffset:function(t,i,s){var n=t.dpDiv.outerWidth(),a=t.dpDiv.out ia-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].bod
erHeight(),o=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,h= y),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(t
document.documentElement.clientWidth+(s?0:e(document).scrollLeft()),l=document.d his.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},
ocumentElement.clientHeight+(s?0:e(document).scrollTop());return i.left-=this._g _destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autoco
et(t,"isRTL")?n-o:0,i.left-=s&&i.left===t.input.offset().left?e(document).scroll mplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:functio
Left():0,i.top-=s&&i.top===t.input.offset().top+r?e(document).scrollTop():0,i.le n(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.me
ft-=Math.min(i.left,i.left+n>h&&h>n?Math.abs(i.left+n-h):0),i.top-=Math.min(i.to nu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abor
p,i.top+a>l&&l>a?Math.abs(a+r):0),i},_findPos:function(t){for(var i,s=this._getI t()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.targ
nst(t),n=this._get(s,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filt et===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside
ers.hidden(t));)t=t[n?"previousSibling":"nextSibling"];return i=e(t).offset(),[i :function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){
.left,i.top]},_hideDatepicker:function(t){var i,s,n,a,o=this._curInst;!o||t&&o!= var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document
=e.data(t,"datepicker")||this._datepickerShowing&&(i=this._get(o,"showAnim"),s=t .find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length|
his._get(o,"duration"),n=function(){e.datepicker._tidyDialog(o)},e.effects&&(e.e |(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(th
ffects.effect[i]||e.effects[i])?o.dpDiv.hide(i,e.datepicker._get(o,"showOptions" is.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autoc
),s,n):o.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null omplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options
,n),i||n(),this._datepickerShowing=!1,a=this._get(o,"onClose"),a&&a.apply(o.inpu .source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:
t?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDia e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.sou
log&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.block rce=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching)
UI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialo ,this.searching=this._delay(function(){var e=this.term===this._value(),i=this.me
g:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-cale nu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!
ndar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.targ i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},searc
et),s=e.datepicker._getInst(i[0]);(i[0].id!==e.datepicker._mainDivId&&0===i.pare h:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.lengt
nts("#"+e.datepicker._mainDivId).length&&!i.hasClass(e.datepicker.markerClassNam h<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._sear
e)&&!i.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerS ch(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete
howing&&(!e.datepicker._inDialog||!e.blockUI)||i.hasClass(e.datepicker.markerCla -loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_respons
ssName)&&e.datepicker._curInst!==s)&&e.datepicker._hideDatepicker()}},_adjustDat e:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.reque
e:function(t,i,s){var n=e(t),a=this._getInst(n[0]);this._isDisabledDatepicker(n[ stIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-a
0])||(this._adjustInstDate(a,i+("M"===s?this._get(a,"showCurrentAtPos"):0),s),th utocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),t
is._updateDatepicker(a))},_gotoToday:function(t){var i,s=e(t),n=this._getInst(s[ his._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!
0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawM this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:
onth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i= function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(th
new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.dr is.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hi
awYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s) de(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:funct
},_selectMonthYear:function(t,i,s){var n=e(t),a=this._getInst(n[0]);a["selected" ion(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.select
+("M"===s?"Month":"Year")]=a["draw"+("M"===s?"Month":"Year")]=parseInt(i.options edItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map
[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(n)},_selectDa (e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e
y:function(t,i,s,n){var a,o=e(t);e(n).hasClass(this._unselectableClass)||this._i .label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu
sDisabledDatepicker(o[0])||(a=this._getInst(o[0]),a.selectedDay=a.currentDay=e(" .element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.s
a",n).html(),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=s,thi how(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.posi
s._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))} tion)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedow
,_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function( n:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.out
t,i){var s,n=e(t),a=this._getInst(n[0]);i=null!=i?i:this._formatDate(a),a.input& erWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_render
&a.input.val(i),this._updateAlternate(a),s=this._get(a,"onSelect"),s?s.apply(a.i Menu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_
nput?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._up renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-
dateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=t item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.la
ypeof a.input[0]&&a.input.focus(),this._lastInput=null)},_updateAlternate:functi bel)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?t
on(t){var i,s,n,a=this._get(t,"altField");a&&(i=this._get(t,"altFormat")||this._ his.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.tes
get(t,"dateFormat"),s=this._getDate(t),n=this.formatDate(i,s,this._getFormatConf t(t)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.me
ig(t)),e(a).each(function(){e(this).val(n)}))},noWeekends:function(e){var t=e.ge nu[t](e),void 0):(this.search(null,e),void 0)},widget:function(){return this.men
tDay();return[t>0&&6>t,""]},iso8601Week:function(e){var t,i=new Date(e.getTime() u.element},_value:function(){return this.valueMethod.apply(this.element,argument
);return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i. s)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible")
setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,s){if )&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.le
(null==t||null==i)throw"Invalid arguments";if(i="object"==typeof i?""+i:i+"",""= ngth)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isConten
==i)return null;var n,a,o,r,h=0,l=(s?s.shortYearCutoff:null)||this._defaults.sho tEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:func
rtYearCutoff,u="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10), tion(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(
d=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,c=(s?s.dayNames:null)|| e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function
this._defaults.dayNames,p=(s?s.monthNamesShort:null)||this._defaults.monthNamesS (t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.auto
hort,f=(s?s.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,y=-1,b=!1 complete,{options:{messages:{noResults:"No search results.",results:function(t){
,_=function(e){var i=t.length>n+1&&t.charAt(n+1)===e;return i&&n++,i},x=function return t+(t>1?" results are":" result is")+" available, use up and down arrow ke
(e){var t=_(e),s="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,n="y"===e?s:1,a= ys to navigate."}}},__response:function(e){var i;this._superApply(arguments),thi
RegExp("^\\d{"+n+","+s+"}"),o=i.substring(h).match(a);if(!o)throw"Missing number s.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.resu
at position "+h;return h+=o[0].length,parseInt(o[0],10)},w=function(t,s,n){var lts(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),
a=-1,o=e.map(_(t)?n:s,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete;var g=/ui-cor
[1].length-t[1].length)});if(e.each(o,function(e,t){var s=t[1];return i.substr(h ner-([a-z]){2,6}/g;t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"
,s.length).toLowerCase()===s.toLowerCase()?(a=t[0],h+=s.length,!1):void 0}),-1!= <div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{butto
=a)return a+1;throw"Unknown name at position "+h},k=function(){if(i.charAt(h)!== n:"input[type=button], input[type=submit], input[type=reset], button, a",control
t.charAt(n))throw"Unexpected literal at position "+h;h++};for(n=0;t.length>n;n++ groupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input
)if(b)"'"!==t.charAt(n)||_("'")?k():b=!1;else switch(t.charAt(n)){case"d":v=x("d [type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:functi
");break;case"D":w("D",d,c);break;case"o":y=x("o");break;case"m":g=x("m");break; on(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),th
case"M":g=w("M",p,f);break;case"y":m=x("y");break;case"@":r=new Date(x("@")),m=r is.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWid
.getFullYear(),g=r.getMonth()+1,v=r.getDate();break;case"!":r=new Date((x("!")-t gets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.opt
his._ticksTo1970)/1e4),m=r.getFullYear(),g=r.getMonth()+1,v=r.getDate();break;ca ions.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupL
se"'":_("'")?k():b=!0;break;default:k()}if(i.length>h&&(o=i.substr(h),!/^\s+/.te abel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:
st(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===m?m=(new Date) function(){var e=this,i=[];t.each(this.options.items,function(s,n){var o,a={};re
.getFullYear():100>m&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+ turn n?"controlgroupLabel"===s?(o=e.element.find(n),o.each(function(){var e=t(th
(u>=m?0:-100)),y>-1)for(g=1,v=y;;){if(a=this._getDaysInMonth(m,g-1),a>=v)break;g is);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("
++,v-=a}if(r=this._daylightSavingAdjust(new Date(m,g-1,v)),r.getFullYear()!==m|| <span class='ui-controlgroup-label-contents'></span>")}),e._addClass(o,null,"ui-
r.getMonth()+1!==g||r.getDate()!==v)throw"Invalid date";return r},ATOM:"yy-mm-dd widget ui-widget-content ui-state-default"),i=i.concat(o.get()),void 0):(t.fn[s]
",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y &&(a=e["_"+s+"Options"]?e["_"+s+"Options"]("middle"):{classes:{}},e.element.find
",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",T (n).each(function(){var n=t(this),o=n[s]("instance"),r=t.widget.extend({},a);if(
ICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.flo "button"!==s||!n.parent(".ui-spinner").length){o||(o=n[s]()[s]("instance")),o&&(
or(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,t,i){if(!t)r r.classes=e._resolveClassesValues(r.classes,o)),n[s](r);var h=n[s]("widget");t.d
eturn"";var s,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.da ata(h[0],"ui-controlgroup-data",o?o:n[s]("instance")),i.push(h[0])}})),void 0):v
yNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaul oid 0}),this.childWidgets=t(t.unique(i)),this._addClass(this.childWidgets,"ui-co
ts.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,h=function ntrolgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(
(t){var i=e.length>s+1&&e.charAt(s+1)===t;return i&&s++,i},l=function(e,t,i){var ){var i=t(this),s=i.data("ui-controlgroup-data");s&&s[e]&&s[e]()})},_updateCorne
s=""+t;if(h(e))for(;i>s.length;)s="0"+s;return s},u=function(e,t,i,s){return h( rClass:function(t,e){var i="ui-corner-top ui-corner-bottom ui-corner-left ui-cor
e)?s[t]:i[t]},d="",c=!1;if(t)for(s=0;e.length>s;s++)if(c)"'"!==e.charAt(s)||h("' ner-right ui-corner-all",s=this._buildSimpleOptions(e,"label").classes.label;thi
")?d+=e.charAt(s):c=!1;else switch(e.charAt(s)){case"d":d+=l("d",t.getDate(),2); s._removeClass(t,null,i),this._addClass(t,null,s)},_buildSimpleOptions:function(
break;case"D":d+=u("D",t.getDay(),n,a);break;case"o":d+=l("o",Math.round((new Da t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e
te(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(), ]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"
0,0).getTime())/864e5),3);break;case"m":d+=l("m",t.getMonth()+1,2);break;case"M" right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){var e=this._buil
:d+=u("M",t.getMonth(),o,r);break;case"y":d+=h("y")?t.getFullYear():(10>t.getYea dSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["u
r()%100?"0":"")+t.getYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e i-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOption
4*t.getTime()+this._ticksTo1970;break;case"'":h("'")?d+="'":c=!0;break;default:d s(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOpti
+=e.charAt(s)}return d},_possibleChars:function(e){var t,i="",s=!1,n=function(i) ons(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"
{var s=e.length>t+1&&e.charAt(t+1)===i;return s&&t++,s};for(t=0;e.length>t;t++)i ===this.options.direction;return{width:e?"auto":!1,classes:{middle:{"ui-selectme
f(s)"'"!==e.charAt(t)||n("'")?i+=e.charAt(t):s=!1;else switch(e.charAt(t)){case" nu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-butto
d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;cas n-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(
e"'":n("'")?i+="'":s=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selec
){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromFie tmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-but
ld:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),s ton-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_
=e.lastVal=e.input?e.input.val():null,n=this._getDefaultDate(e),a=n,o=this._getF resolveClassesValues:function(e,i){var s={};return t.each(e,function(n){var o=i.
ormatConfig(e);try{a=this.parseDate(i,s,o)||n}catch(r){s=t?"":s}e.selectedDay=a. options.classes[n]||"";o=t.trim(o.replace(g,"")),s[n]=(o+" "+e[n]).replace(/\s+/
getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.g g," ")}),s},_setOption:function(t,e){return"direction"===t&&this._removeClass("u
etFullYear(),e.currentDay=s?a.getDate():0,e.currentMonth=s?a.getMonth():0,e.curr i-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?(this._
entYear=s?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e callChildMethod(e?"disable":"enable"),void 0):(this.refresh(),void 0)},refresh:f
){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate") unction(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.op
,new Date))},_determineDate:function(t,i,s){var n=function(e){var t=new Date;ret tions.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-
urn t.setDate(t.getDate()+e),t},a=function(i){try{return e.datepicker.parseDate( helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisib
e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(s){} le&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,s){va
for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date, r n=e[s]().data("ui-controlgroup-data");if(n&&i["_"+n.widgetName+"Options"]){var
a=n.getFullYear(),o=n.getMonth(),r=n.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M| o=i["_"+n.widgetName+"Options"](1===e.length?"only":s);o.classes=i._resolveClas
y|Y)?/g,l=h.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);b sesValues(o.classes,n),n.element[n.widgetName](o)}else i._updateCornerClass(e[s]
reak;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[ (),s)}),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.f
1],10),r=Math.min(r,e.datepicker._getDaysInMonth(a,o));break;case"y":case"Y":a+= ormResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classe
parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(a,o))}l=h.exec(i)}re s:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-a
turn new Date(a,o,r)},o=null==i||""===i?s:"string"==typeof i?a(i):"number"==type ll"}},_getCreateOptions:function(){var e,i,s=this,n=this._super()||{};return thi
of i?isNaN(i)?s:n(i):new Date(i.getTime());return o=o&&"Invalid Date"==""+o?s:o, s._readType(),i=this.element.labels(),this.label=t(i[i.length-1]),this.label.len
o&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._da gth||t.error("No label found for checkboxradio widget"),this.originalLabel="",th
ylightSavingAdjust(o)},_daylightSavingAdjust:function(e){return e?(e.setHours(e. is.label.contents().not(this.element[0]).each(function(){s.originalLabel+=3===th
getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var s=!t,n=e.s is.nodeType?t(this).text():this.outerHTML}),this.originalLabel&&(n.label=this.or
electedMonth,a=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,n iginalLabel),e=this.element[0].disabled,null!=e&&(n.disabled=e),n},_create:funct
ew Date));e.selectedDay=e.currentDay=o.getDate(),e.drawMonth=e.selectedMonth=e.c ion(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.opti
urrentMonth=o.getMonth(),e.drawYear=e.selectedYear=e.currentYear=o.getFullYear() ons.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("
,n===e.selectedMonth&&a===e.selectedYear||i||this._notifyChange(e),this._adjustI disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hi
nstDate(e),e.input&&e.input.val(s?"":this._formatDate(e))},_getDate:function(e){ dden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button
var t=!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjus ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-rad
t(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers io-label"),this.options.label&&this.options.label!==this.originalLabel?this._upd
:function(t){var i=this._get(t,"stepMonths"),s="#"+t.id.replace(/\\\\/g,"\\");t. ateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enh
dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker. ance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active
_adjustDate(s,-i,"M")},next:function(){e.datepicker._adjustDate(s,+i,"M")},hide: "),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:
function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoTo "_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus
day(s)},selectDay:function(){return e.datepicker._selectDay(s,+this.getAttribute ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-
("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){ focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.
return e.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){retur toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(
n e.datepicker._selectMonthYear(s,this,"Y"),!1}};e(this).bind(this.getAttribute( this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and el
"data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e) ement.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].ch
{var t,i,s,n,a,o,r,h,l,u,d,c,p,f,m,g,v,y,b,_,x,w,k,T,D,S,M,C,N,A,P,I,z,H,F,E,O,j ecked)},widget:function(){return this.label},_getRadioGroup:function(){var e,i=t
,W,L=new Date,R=this._daylightSavingAdjust(new Date(L.getFullYear(),L.getMonth() his.element[0].name,s="input[name='"+t.ui.escapeSelector(i)+"']";return i?(e=thi
,L.getDate())),Y=this._get(e,"isRTL"),B=this._get(e,"showButtonPanel"),J=this._g s.form.length?t(this.form[0].elements).filter(s):t(s).filter(function(){return 0
et(e,"hideIfNoPrevNext"),q=this._get(e,"navigationAsDateFormat"),K=this._getNumb ===t(this).form().length}),e.not(this.element)):t([])},_toggleClasses:function()
erOfMonths(e),V=this._get(e,"showCurrentAtPos"),U=this._get(e,"stepMonths"),Q=1! {var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-ch
==K[0]||1!==K[1],G=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYea ecked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._tog
r,e.currentMonth,e.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(e,"min" gleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.ic
),$=this._getMinMaxDate(e,"max"),Z=e.drawMonth-V,et=e.drawYear;if(0>Z&&(Z+=12,et on,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(func
--),$)for(t=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-K[0 tion(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-che
]*K[1]+1,$.getDate())),t=X&&X>t?X:t;this._daylightSavingAdjust(new Date(et,Z,1)) ckboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormRe
>t;)Z--,0>Z&&(Z=11,et--);for(e.drawMonth=Z,e.drawYear=et,i=this._get(e,"prevText setHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption
"),i=q?this.formatDate(i,this._daylightSavingAdjust(new Date(et,Z-U,1)),this._ge :function(t,e){return"label"!==t||e?(this._super(t,e),"disabled"===t?(this._togg
tFormatConfig(e)):i,s=this._canAdjustMonth(e,-1,et,Z)?"<a class='ui-datepicker-p leClass(this.label,null,"ui-state-disabled",e),this.element[0].disabled=e,void 0
rev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span cl ):(this.refresh(),void 0)):void 0},_updateIcon:function(e){var i="ui-icon ui-ico
ass='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>":J?"":"<a n-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpa
class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span ce=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-spac
class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>",n=this e")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blan
._get(e,"nextText"),n=q?this.formatDate(n,this._daylightSavingAdjust(new Date(et k",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-i
,Z+U,1)),this._getFormatConfig(e)):n,a=this._canAdjustMonth(e,1,et,Z)?"<a class= con-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeCl
'ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title= ass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.la
'"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</spa bel).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpa
n></a>":J?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' titl ce.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents
e='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</s ().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.
pan></a>",o=this._get(e,"currentText"),r=this._get(e,"gotoCurrent")&&e.currentDa not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refres
y?G:R,o=q?this.formatDate(o,r,this._getFormatConfig(e)):o,h=e.inline?"":"<button h:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._upda
type='button' class='ui-datepicker-close ui-state-default ui-priority-primary u teIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-acti
i-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+ ve",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&
"</button>",l=B?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Y?h: &this._setOptions({disabled:e})}}]),t.ui.checkboxradio,t.widget("ui.button",{ver
"")+(this._isInRange(e,r)?"<button type='button' class='ui-datepicker-current ui sion:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner
-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-ev -all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0}
ent='click'>"+o+"</button>":"")+(Y?"":h)+"</div>":"",u=parseInt(this._get(e,"fir ,_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this
stDay"),10),u=isNaN(u)?0:u,d=this._get(e,"showWeek"),c=this._get(e,"dayNames"),p .element.is("input"),t=this.element[0].disabled,null!=t&&(e.disabled=t),this.ori
=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),m=this._get(e,"monthName ginalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabe
sShort"),g=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),y=this. l&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!th
_get(e,"selectOtherMonths"),b=this._getDefaultDate(e),_="",w=0;K[0]>w;w++){for(k is.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.
="",this.maxRows=4,T=0;K[1]>T;T++){if(D=this._daylightSavingAdjust(new Date(et,Z options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr
,e.selectedDay)),S=" ui-corner-all",M="",Q){if(M+="<div class='ui-datepicker-gro ("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isI
up",K[1]>1)switch(T){case 0:M+=" ui-datepicker-group-first",S=" ui-corner-"+(Y?" nput?this.element.val(this.options.label):this.element.html(this.options.label))
right":"left");break;case K[1]-1:M+=" ui-datepicker-group-last",S=" ui-corner-"+ ,this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options
(Y?"left":"right");break;default:M+=" ui-datepicker-group-middle",S=""}M+="'>"}f .disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.k
or(M+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+S+" eyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.elem
'>"+(/all|left/.test(S)&&0===w?Y?a:s:"")+(/all|right/.test(S)&&0===w?Y?s:a:"")+t ent[0].click():this.element.trigger("click"))}})},_enhance:function(){this.eleme
his._generateMonthYearHeader(e,Z,et,X,$,w>0||T>0,f,m)+"</div><table class='ui-da nt.is("button")||this.element.attr("role","button"),this.options.icon&&(this._up
tepicker-calendar'><thead>"+"<tr>",C=d?"<th class='ui-datepicker-week-col'>"+thi dateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:functi
s._get(e,"weekHeader")+"</th>":"",x=0;7>x;x++)N=(x+u)%7,C+="<th scope='col'"+((x on(){this.title=this.element.attr("title"),this.options.showLabel||this.title||t
+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+">"+"<span title='"+c[N]+"'>"+p his.element.attr("title",this.options.label)},_updateIcon:function(e,i){var s="i
[N]+"</span></th>";for(M+=C+"</tr></thead><tbody>",A=this._getDaysInMonth(et,Z), conPosition"!==e,n=s?this.options.iconPosition:i,o="top"===n||"bottom"===n;this.
et===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay, icon?s&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>
A)),P=(this._getFirstDayOfMonth(et,Z)-u+7)%7,I=Math.ceil((P+A)/7),z=Q?this.maxRo "),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||
ws>I?this.maxRows:I:I,this.maxRows=z,H=this._daylightSavingAdjust(new Date(et,Z, this._addClass("ui-button-icon-only")),s&&this._addClass(this.icon,null,i),this.
1-P)),F=0;z>F;F++){for(M+="<tr>",E=d?"<td class='ui-datepicker-week-col'>"+this. _attachIcon(n),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.ico
_get(e,"calculateWeek")(H)+"</td>":"",x=0;7>x;x++)O=g?g.apply(e.input?e.input[0] nSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </sp
:null,[H]):[!0,""],j=H.getMonth()!==Z,W=j&&!y||!O[0]||X&&X>H||$&&H>$,E+="<td cla an>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(t
ss='"+((x+u+6)%7>=5?" ui-datepicker-week-end":"")+(j?" ui-datepicker-other-month his.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:functio
":"")+(H.getTime()===D.getTime()&&Z===e.selectedMonth&&e._keyEvent||b.getTime()= n(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace
==H.getTime()&&b.getTime()===D.getTime()?" "+this._dayOverClass:"")+(W?" "+this. &&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_atta
_unselectableClass+" ui-state-disabled":"")+(j&&!v?"":" "+O[1]+(H.getTime()===G. chIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](th
getTime()?" "+this._currentClass:"")+(H.getTime()===R.getTime()?" ui-datepicker- is.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"a
today":""))+"'"+(j&&!v||!O[2]?"":" title='"+O[2].replace(/'/g,"&#39;")+"'")+(W?" ppend":"prepend"](this.icon)},_setOptions:function(t){var e=void 0===t.showLabel
":" data-handler='selectDay' data-event='click' data-month='"+H.getMonth()+"' da ?this.options.showLabel:t.showLabel,i=void 0===t.icon?this.options.icon:t.icon;e
ta-year='"+H.getFullYear()+"'")+">"+(j&&!v?"&#xa0;":W?"<span class='ui-state-def ||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?th
ault'>"+H.getDate()+"</span>":"<a class='ui-state-default"+(H.getTime()===R.getT is._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpac
ime()?" ui-state-highlight":"")+(H.getTime()===G.getTime()?" ui-state-active":"" e.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._t
)+(j?" ui-priority-secondary":"")+"' href='#'>"+H.getDate()+"</a>")+"</td>",H.se oggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(t
tDate(H.getDate()+1),H=this._daylightSavingAdjust(H);M+=E+"</tr>"}Z++,Z>11&&(Z=0 his.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIc
,et++),M+="</tbody></table>"+(Q?"</div>"+(K[0]>0&&T===K[1]-1?"<div class='ui-dat on(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))
epicker-row-break'></div>":""):""),k+=M}_+=k}return _+=l,e._keyEvent=!1,_},_gene ),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e
rateMonthYearHeader:function(e,t,i,s,n,a,o,r){var h,l,u,d,c,p,f,m,g=this._get(e, ),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=t
"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b his.element.is("input, button")?this.element[0].disabled:this.element.hasClass("
="<div class='ui-datepicker-title'>",_="";if(a||!g)_+="<span class='ui-datepicke ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),t
r-month'>"+o[t]+"</span>";else{for(h=s&&s.getFullYear()===i,l=n&&n.getFullYear() his._updateTooltip()}}),t.uiBackCompat!==!1&&(t.widget("ui.button",t.ui.button,{
===i,_+="<select class='ui-datepicker-month' data-handler='selectMonth' data-eve options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.op
nt='change'>",u=0;12>u;u++)(!h||u>=s.getMonth())&&(!l||n.getMonth()>=u)&&(_+="<o tions.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),
ption value='"+u+"'"+(u===t?" selected='selected'":"")+">"+r[u]+"</option>");_+= !this.options.showLabel&&this.options.text&&(this.options.text=this.options.show
"</select>"}if(y||(b+=_+(!a&&g&&v?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",a Label),this.options.icon||!this.options.icons.primary&&!this.options.icons.secon
||!v)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(e," dary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.opti
yearRange").split(":"),c=(new Date).getFullYear(),p=function(e){var t=e.match(/c ons.icons.primary?this.options.icon=this.options.icons.primary:(this.options.ico
[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?c+parseInt(e,10):pars n=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_
eInt(e,10);return isNaN(t)?c:t},f=p(d[0]),m=Math.max(f,p(d[1]||"")),f=s?Math.max setOption:function(t,e){return"text"===t?(this._super("showLabel",e),void 0):("s
(f,s.getFullYear()):f,m=n?Math.min(m,n.getFullYear()):m,e.yearshtml+="<select cl howLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),
ass='ui-datepicker-year' data-handler='selectYear' data-event='change'>";m>=f;f+ "icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition
+)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+" ","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconP
</option>";e.yearshtml+="</select>",b+=e.yearshtml,e.yearshtml=null}return b+=th osition","end"))),this._superApply(arguments),void 0)}}),t.fn.button=function(e)
is._get(e,"yearSuffix"),y&&(b+=(!a&&g&&v?"":"&#xa0;")+_),b+="</div>"},_adjustIns {return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||t
tDate:function(e,t,i){var s=e.drawYear+("Y"===i?t:0),n=e.drawMonth+("M"===i?t:0) his.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!=
,a=Math.min(e.selectedDay,this._getDaysInMonth(s,n))+("D"===i?t:0),o=this._restr =this.attr("type")?e.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkbo
ictMinMax(e,this._daylightSavingAdjust(new Date(s,n,a)));e.selectedDay=o.getDate xradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.
(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullY checkboxradio.apply(this,arguments))}}(t.fn.button),t.fn.buttonset=function(){re
ear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){v turn t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===argume
ar i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),n=i&&i>t?i:t;re nts[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[argum
turn s&&n>s?s:n},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear" ents[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===argumen
);t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_get ts[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typ
NumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1 eof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].i
,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determ tems}),this.controlgroup.apply(this,arguments))}),t.ui.button,t.extend(t.ui,{dat
ineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-t epicker:{version:"1.12.1"}});var m;t.extend(s.prototype,{markerClassName:"hasDat
his._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:funct epicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:f
ion(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,s){var unction(t){return a(this._defaults,t||{}),this},_attachDatepicker:function(e,i){
n=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(i,s+(0>t?t:n[ var s,n,o;s=e.nodeName.toLowerCase(),n="div"===s||"span"===s,e.id||(this.uuid+=1
0]*n[1]),1));return 0>t&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMon ,e.id="dp"+this.uuid),o=this._newInst(t(e),n),o.settings=t.extend({},i||{}),"inp
th())),this._isInRange(e,a)},_isInRange:function(e,t){var i,s,n=this._getMinMaxD ut"===s?this._connectDatepicker(e,o):n&&this._inlineDatepicker(e,o)},_newInst:fu
ate(e,"min"),a=this._getMinMaxDate(e,"max"),o=null,r=null,h=this._get(e,"yearRan nction(e,i){var s=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:s,inp
ge");return h&&(i=h.split(":"),s=(new Date).getFullYear(),o=parseInt(i[0],10),r= ut:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:
parseInt(i[1],10),i[0].match(/[+\-].*/)&&(o+=s),i[1].match(/[+\-].*/)&&(r+=s)),( i,dpDiv:i?n(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widg
!n||t.getTime()>=n.getTime())&&(!a||t.getTime()<=a.getTime())&&(!o||t.getFullYea et-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDate
r()>=o)&&(!r||r>=t.getFullYear())},_getFormatConfig:function(e){var t=this._get( picker:function(e,i){var s=t(e);i.append=t([]),i.trigger=t([]),s.hasClass(this.m
e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+ arkerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).on("ke
parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),day ydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp
Names:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),mon ),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableD
thNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,s){t||(e.currentD atepicker(e))},_attachments:function(e,i){var s,n,o,a=this._get(i,"appendText"),
ay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);va r=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span class='
r n=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(s,i,t)):this._day "+this._appendClass+"'>"+a+"</span>"),e[r?"before":"after"](i.append)),e.off("fo
lightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return th cus",this._showDatepicker),i.trigger&&i.trigger.remove(),s=this._get(i,"showOn")
is.formatDate(this._get(e,"dateFormat"),n,this._getFormatConfig(e))}}),e.fn.date ,("focus"===s||"both"===s)&&e.on("focus",this._showDatepicker),("button"===s||"b
picker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(docu oth"===s)&&(n=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),i.trigger=t
ment).mousedown(e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0 (this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({s
===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);v rc:o,alt:n,title:n}):t("<button type='button'></button>").addClass(this._trigger
ar i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabl Class).html(o?t("<img/>").attr({src:o,alt:n,title:n}):n)),e[r?"before":"after"](
ed"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string i.trigger),i.trigger.on("click",function(){return t.datepicker._datepickerShowin
"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this g&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._d
[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Date atepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker()
picker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(thi ,t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_
s,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))} autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,s,n,o=new Da
,e.datepicker=new n,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).get te(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i
Time(),e.datepicker.version="1.11.2",e.datepicker,e.widget("ui.draggable",e.ui.m =0,s=0,n=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,s=n);return s},o.setMont
ouse,{version:"1.11.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo: h(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this
"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,g ._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr(
rid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,r "size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,i){var s=t(e
evert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrol );s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.d
lSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null, pDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this.
start:null,stop:null},_create:function(){"original"===this.options.helper&&this. _updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disable
_setPositionRelative(),this.options.addClasses&&this.element.addClass("ui-dragga Datepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,s,
ble"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this n,o){var r,h,l,c,u,d=this._dialogInst;return d||(this.uuid+=1,r="dp"+this.uuid,t
._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e his._dialogInput=t("<input type='text' id='"+r+"' style='position: absolute; top
,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_d : -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("bo
estroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging") dy").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInpu
?(this.destroyOnClear=!0,void 0):(this.element.removeClass("ui-draggable ui-drag t,!1),d.settings={},t.data(this._dialogInput[0],"datepicker",d)),a(d.settings,n|
gable-dragging ui-draggable-disabled"),this._removeHandleClassName(),this._mouse |{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),
Destroy(),void 0)},_mouseCapture:function(t){var i=this.options;return this._blu this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(h=document.documentEle
rActiveElement(t),this.helper||i.disabled||e(t.target).closest(".ui-resizable-ha ment.clientWidth,l=document.documentElement.clientHeight,c=document.documentElem
ndle").length>0?!1:(this.handle=this._getHandle(t),this.handle?(this._blockFrame ent.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||d
s(i.iframeFix===!0?"iframe":i.iframeFix),!0):!1)},_blockFrames:function(t){this. ocument.body.scrollTop,this._pos=[h/2-100+c,l/2-150+u]),this._dialogInput.css("l
iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>" eft",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=s,th
).css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).out is._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this
erHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){thi ._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"
s.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActi datepicker",d),this},_destroyDatepicker:function(e){var i,s=t(e),n=t.data(e,"dat
veElement:function(t){var i=this.document[0];if(this.handleElement.is(t.target)) epicker");s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.remove
try{i.activeElement&&"body"!==i.activeElement.nodeName.toLowerCase()&&e(i.active Data(e,"datepicker"),"input"===i?(n.append.remove(),n.trigger.remove(),s.removeC
Element).blur()}catch(s){}},_mouseStart:function(t){var i=this.options;return th lass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this.
is.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),th _doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"=
is._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this. ==i||"span"===i)&&s.removeClass(this.markerClassName).empty(),m===n&&(m=null))},
_cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=t _enableDatepicker:function(e){var i,s,n=t(e),o=t.data(e,"datepicker");n.hasClass
his.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.ha (this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,o
sFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).c .trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img")
ss("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOf .css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(s=n.children("."+this
fsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.o ._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-d
riginalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFr atepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabled
omHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1?(this. Inputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDa
_clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e tepicker:function(e){var i,s,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.mar
.ui.ddmanager.prepareOffsets(this,t),this._normalizeRightBottom(),this._mouseDra kerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,o.trigger.
g(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:fu filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opa
nction(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.posit city:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(s=n.children("."+this._
ionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative: inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepi
this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top: cker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInput
e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(th s=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInp
is.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t uts[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)ret
,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash urn!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]==
();if(this._trigger("drag",t,s)===!1)return this._mouseUp({}),!1;this.position=s =t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}cat
.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0 ch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:funct
].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),! ion(e,i,s){var n,o,r,h,l=this._getInst(e);return 2===arguments.length&&"string"=
1},_mouseStop:function(t){var i=this,s=!1;return e.ui.ddmanager&&!this.options.d =typeof i?"defaults"===i?t.extend({},t.datepicker._defaults):l?"all"===i?t.exten
ropBehaviour&&(s=e.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this d({},l.settings):this._get(l,i):null:(n=i||{},"string"==typeof i&&(n={},n[i]=s),
.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert& l&&(this._curInst===l&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),r=
&s||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.re this._getMinMaxDate(l,"min"),h=this._getMinMaxDate(l,"max"),a(l.settings,n),null
vert.call(this.element,s)?e(this.helper).animate(this.originalPosition,parseInt( !==r&&void 0!==n.dateFormat&&void 0===n.minDate&&(l.settings.minDate=this._forma
this.options.revertDuration,10),function(){i._trigger("stop",t)!==!1&&i._clear() tDate(l,r)),null!==h&&void 0!==n.dateFormat&&void 0===n.maxDate&&(l.settings.max
}):this._trigger("stop",t)!==!1&&this._clear(),!1},_mouseUp:function(t){return t Date=this._formatDate(l,h)),"disabled"in n&&(n.disabled?this._disableDatepicker(
his._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handle e):this._enableDatepicker(e)),this._attachments(t(e),l),this._autoSize(l),this._
Element.is(t.target)&&this.element.focus(),e.ui.mouse.prototype._mouseUp.call(th setDate(l,o),this._updateAlternate(l),this._updateDatepicker(l)),void 0)},_chang
is,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._m eDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:fu
ouseUp({}):this._clear(),this},_getHandle:function(t){return this.options.handle nction(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicke
?!!e(t.target).closest(this.element.find(this.options.handle)).length:!0},_setHa r:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepi
ndleClassName:function(){this.handleElement=this.options.handle?this.element.fin cker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._
d(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-ha getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):n
ndle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-dra ull},_doKeyDown:function(e){var i,s,n,o=t.datepicker._getInst(e.target),a=!0,r=o
ggable-handle")},_createHelper:function(t){var i=this.options,s=e.isFunction(i.h .dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowin
elper),n=s?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.elemen g)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:ret
t.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appen urn n=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")"
dTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s&&n[0]===this. ,o.dpDiv),n[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,
element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute n[0]),i=t.datepicker._get(o,"onSelect"),i?(s=t.datepicker._formatDate(o),i.apply
)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative (o.input?o.input[0]:null,[s,o])):t.datepicker._hideDatepicker(),!1;case 27:t.dat
:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].st epicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrl
yle.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t Key?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M"
&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this );break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o
.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.lef ,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlK
t=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offse ey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;c
t.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.he ase 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.
lperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){retur metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,
n/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function r?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustD
(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.c ate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(
ssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offse o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustD
tParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.sc ate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)
rollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top &&t.datepicker._adjustDate(e.target,r?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.origina
+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt lEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,
(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function( "stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKe
){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.posit y||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;b
ion(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.h reak;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(th
elper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseI is):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){va
nt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cache r i,s,n=t.datepicker._getInst(e.target);return t.datepicker._get(n,"constrainInp
Margins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10 ut")?(i=t.datepicker._possibleChars(t.datepicker._get(n,"dateFormat")),s=String.
)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.eleme fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">s|
nt.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10 |!i||i.indexOf(s)>-1):void 0},_doKeyUp:function(e){var i,s=t.datepicker._getInst
)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.hel (e.target);if(s.input.val()!==s.lastVal)try{i=t.datepicker.parseDate(t.datepicke
per.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){v r._get(s,"dateFormat"),s.input?s.input.val():null,t.datepicker._getFormatConfig(
ar t,i,s,n=this.options,a=this.document[0];return this.relativeContainer=null,n. s)),i&&(t.datepicker._setDateFromField(s),t.datepicker._updateAlternate(s),t.dat
containment?"window"===n.containment?(this.containment=[e(window).scrollLeft()-t epicker._updateDatepicker(s))}catch(n){}return!0},_showDatepicker:function(e){if
his.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offs (e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]
et.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()- ),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var s,n,o
this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window). ,r,h,l,c;s=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst
height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.mar !==s&&(t.datepicker._curInst.dpDiv.stop(!0,!0),s&&t.datepicker._datepickerShowin
gins.top],void 0):"document"===n.containment?(this.containment=[0,0,e(a).width() g&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),n=t.datepicker.
-this.helperProportions.width-this.margins.left,(e(a).height()||a.body.parentNod _get(s,"beforeShow"),o=n?n.apply(e,[e,s]):{},o!==!1&&(a(s.settings,o),s.lastVal=
e.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):n.contai null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(s),t.datepicker._i
nment.constructor===Array?(this.containment=n.containment,void 0):("parent"===n. nDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPo
containment&&(n.containment=this.helper[0].parentNode),i=e(n.containment),s=i[0] s(e),t.datepicker._pos[1]+=e.offsetHeight),r=!1,t(e).parents().each(function(){r
,s&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css eturn r|="fixed"===t(this).css("position"),!r}),h={left:t.datepicker._pos[0],top
("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.c :t.datepicker._pos[1]},t.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({posit
ss("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(s ion:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(s)
.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),1 ,h=t.datepicker._checkOffset(s,h,r),s.dpDiv.css({position:t.datepicker._inDialog
0)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this &&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:h.left+"px",top:h.
.margins.left-this.margins.right,(t?Math.max(s.scrollHeight,s.offsetHeight):s.of top+"px"}),s.inline||(l=t.datepicker._get(s,"showAnim"),c=t.datepicker._get(s,"d
fsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddin uration"),s.dpDiv.css("z-index",i(t(e))+1),t.datepicker._datepickerShowing=!0,t.
gBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bo effects&&t.effects.effect[l]?s.dpDiv.show(l,t.datepicker._get(s,"showOptions"),c
ttom],this.relativeContainer=i),void 0):(this.containment=null,void 0) ):s.dpDiv[l||"show"](l?c:null),t.datepicker._shouldFocusInput(s)&&s.input.trigge
},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:- r("focus"),t.datepicker._curInst=s))
1,s=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative }},_updateDatepicker:function(e){this.maxRows=4,m=e,e.dpDiv.empty().append(this.
.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll. _generateHTML(e)),this._attachHandlers(e);var i,s=this._getNumberOfMonths(e),n=s
top:s?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.o [1],a=17,r=e.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&o.apply(r.get(0
ffset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:thi )),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicke
s.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,s,n,a,o=this.opt r-multi-4").width(""),n>1&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width
ions,r=this._isRootNode(this.scrollParent[0]),h=e.pageX,l=e.pageY;return r&&this ",a*n+"em"),e.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-
.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rt
.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(s=th l"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._sh
is.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+ ouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeo
s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment, ut(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-y
e.pageX-this.offset.click.left<i[0]&&(h=i[0]+this.offset.click.left),e.pageY-thi ear:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:
s.offset.click.top<i[1]&&(l=i[1]+this.offset.click.top),e.pageX-this.offset.clic function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t
k.left>i[2]&&(h=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]& .input.is(":focus")},_checkOffset:function(e,i,s){var n=e.dpDiv.outerWidth(),o=e
&(l=i[3]+this.offset.click.top)),o.grid&&(n=o.grid[1]?this.originalPageY+Math.ro .dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHei
und((l-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,l=i?n-this.of ght():0,h=document.documentElement.clientWidth+(s?0:t(document).scrollLeft()),l=
fset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[ document.documentElement.clientHeight+(s?0:t(document).scrollTop());return i.lef
1]?n-o.grid[1]:n+o.grid[1]:n,a=o.grid[0]?this.originalPageX+Math.round((h-this.o t-=this._get(e,"isRTL")?n-a:0,i.left-=s&&i.left===e.input.offset().left?t(docume
riginalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,h=i?a-this.offset.click.le nt).scrollLeft():0,i.top-=s&&i.top===e.input.offset().top+r?t(document).scrollTo
ft>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-o.gri p():0,i.left-=Math.min(i.left,i.left+n>h&&h>n?Math.abs(i.left+n-h):0),i.top-=Mat
d[0]:a+o.grid[0]:a),"y"===o.axis&&(h=this.originalPageX),"x"===o.axis&&(l=this.o h.min(i.top,i.top+o>l&&l>o?Math.abs(o+r):0),i},_findPos:function(e){for(var i,s=
riginalPageY)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset this._getInst(e),n=this._get(s,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t
.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset. .expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return i=t(e).o
scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset. ffset(),[i.left,i.top]},_hideDatepicker:function(e){var i,s,n,o,a=this._curInst;
parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset !a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"show
.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging Anim"),s=this._get(a,"duration"),n=function(){t.datepicker._tidyDialog(a)},t.eff
"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remov ects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"sh
e(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destr owOptions"),s,n):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"
oy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.he ](i?s:null,n),i||n(),this._datepickerShowing=!1,o=this._get(a,"onClose"),o&&o.ap
lper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("righ ply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,t
t","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.h his._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"
elper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:f }),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},
unction(t,i,s){return s=s||this._uiHash(),e.ui.plugin.call(this,t,[i,s,this],!0) _tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepick
,/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolu er-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t
te"),s.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,s)},pl (e.target),s=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0==
ugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,ori =i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerC
ginalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add( lassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._date
"draggable","connectToSortable",{start:function(t,i,s){var n=e.extend({},i,{item pickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.ma
:s.element});s.sortables=[],e(s.options.connectToSortable).each(function(){var i rkerClassName)&&t.datepicker._curInst!==s)&&t.datepicker._hideDatepicker()}},_ad
=e(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.ref justDate:function(e,i,s){var n=t(e),o=this._getInst(n[0]);this._isDisabledDatepi
reshPositions(),i._trigger("activate",t,n))})},stop:function(t,i,s){var n=e.exte cker(n[0])||(this._adjustInstDate(o,i+("M"===s?this._get(o,"showCurrentAtPos"):0
nd({},i,{item:s.element});s.cancelHelperRemoval=!1,e.each(s.sortables,function() ),s),this._updateDatepicker(o))},_gotoToday:function(e){var i,s=t(e),n=this._get
{var e=this;e.isOver?(e.isOver=0,s.cancelHelperRemoval=!0,e.cancelHelperRemoval= Inst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,
!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("t n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYe
op"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options. ar):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth
_helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,n))})},drag:functio (),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjust
n(t,i,s){e.each(s.sortables,function(){var n=!1,a=this;a.positionAbs=s.positionA Date(s)},_selectMonthYear:function(e,i,s){var n=t(e),o=this._getInst(n[0]);o["se
bs,a.helperProportions=s.helperProportions,a.offset.click=s.offset.click,a._inte lected"+("M"===s?"Month":"Year")]=o["draw"+("M"===s?"Month":"Year")]=parseInt(i.
rsectsWith(a.containerCache)&&(n=!0,e.each(s.sortables,function(){return this.po options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_s
sitionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.c electDay:function(e,i,s,n){var o,a=t(e);t(n).hasClass(this._unselectableClass)||
lick=s.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&e.conta this._isDisabledDatepicker(a[0])||(o=this._getInst(a[0]),o.selectedDay=o.current
ins(a.element[0],this.element[0])&&(n=!1),n})),n?(a.isOver||(a.isOver=1,a.curren Day=t("a",n).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYea
tItem=i.helper.appendTo(a.element).data("ui-sortable-item",!0),a.options._helper r=s,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentY
=a.options.helper,a.options.helper=function(){return i.helper[0]},t.target=a.cur ear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:fu
rentItem[0],a._mouseCapture(t,!0),a._mouseStart(t,!0,!0),a.offset.click.top=s.of nction(e,i){var s,n=t(e),o=this._getInst(n[0]);i=null!=i?i:this._formatDate(o),o
fset.click.top,a.offset.click.left=s.offset.click.left,a.offset.parent.left-=s.o .input&&o.input.val(i),this._updateAlternate(o),s=this._get(o,"onSelect"),s?s.ap
ffset.parent.left-a.offset.parent.left,a.offset.parent.top-=s.offset.parent.top- ply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?t
a.offset.parent.top,s._trigger("toSortable",t),s.dropped=a.element,e.each(s.sort his._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"obj
ables,function(){this.refreshPositions()}),s.currentItem=s.element,a.fromOutside ect"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_update
=s),a.currentItem&&(a._mouseDrag(t),i.position=a.position)):a.isOver&&(a.isOver= Alternate:function(e){var i,s,n,o=this._get(e,"altField");o&&(i=this._get(e,"alt
0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=! Format")||this._get(e,"dateFormat"),s=this._getDate(e),n=this.formatDate(i,s,thi
1,a._trigger("out",t,a._uiHash(a)),a._mouseStop(t,!0),a.options.revert=a.options s._getFormatConfig(e)),t(o).val(n))},noWeekends:function(t){var e=t.getDay();ret
._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove( urn[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i
),s._refreshOffsets(t),i.position=s._generatePosition(t,!0),s._trigger("fromSort .setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1)
able",t),s.dropped=!1,e.each(s.sortables,function(){this.refreshPositions()}))}) ,Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,s){if(null==e||
}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,s){var n=e("body"), null==i)throw"Invalid arguments";if(i="object"==typeof i?""+i:i+"",""===i)return
a=s.options;n.css("cursor")&&(a._cursor=n.css("cursor")),n.css("cursor",a.cursor null;var n,o,a,r,h=0,l=(s?s.shortYearCutoff:null)||this._defaults.shortYearCuto
)},stop:function(t,i,s){var n=s.options;n._cursor&&e("body").css("cursor",n._cur ff,c="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),u=(s?s.day
sor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,s){var n=e(i.h NamesShort:null)||this._defaults.dayNamesShort,d=(s?s.dayNames:null)||this._defa
elper),a=s.options;n.css("opacity")&&(a._opacity=n.css("opacity")),n.css("opacit ults.dayNames,p=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,f=(s?
y",a.opacity)},stop:function(t,i,s){var n=s.options;n._opacity&&e(i.helper).css( s.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,b=!1,y=functio
"opacity",n._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e, n(t){var i=e.length>n+1&&e.charAt(n+1)===t;return i&&n++,i},w=function(t){var e=
t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1) y(t),s="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,n="y"===t?s:1,o=RegExp("^\
),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0 \d{"+n+","+s+"}"),a=i.substring(h).match(o);if(!a)throw"Missing number at positi
].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t, on "+h;return h+=a[0].length,parseInt(a[0],10)},k=function(e,s,n){var o=-1,a=t.m
i,s){var n=s.options,a=!1,o=s.scrollParentNotHidden[0],r=s.document[0];o!==r&&"H ap(y(e)?n:s,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length
TML"!==o.tagName?(n.axis&&"x"===n.axis||(s.overflowOffset.top+o.offsetHeight-t.p -e[1].length)});if(t.each(a,function(t,e){var s=e[1];return i.substr(h,s.length)
ageY<n.scrollSensitivity?o.scrollTop=a=o.scrollTop+n.scrollSpeed:t.pageY-s.overf .toLowerCase()===s.toLowerCase()?(o=e[0],h+=s.length,!1):void 0}),-1!==o)return
lowOffset.top<n.scrollSensitivity&&(o.scrollTop=a=o.scrollTop-n.scrollSpeed)),n. o+1;throw"Unknown name at position "+h},x=function(){if(i.charAt(h)!==e.charAt(n
axis&&"y"===n.axis||(s.overflowOffset.left+o.offsetWidth-t.pageX<n.scrollSensiti ))throw"Unexpected literal at position "+h;h++};for(n=0;e.length>n;n++)if(b)"'"!
vity?o.scrollLeft=a=o.scrollLeft+n.scrollSpeed:t.pageX-s.overflowOffset.left<n.s ==e.charAt(n)||y("'")?x():b=!1;else switch(e.charAt(n)){case"d":_=w("d");break;c
crollSensitivity&&(o.scrollLeft=a=o.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n ase"D":k("D",u,d);break;case"o":v=w("o");break;case"m":m=w("m");break;case"M":m=
.axis||(t.pageY-e(r).scrollTop()<n.scrollSensitivity?a=e(r).scrollTop(e(r).scrol k("M",p,f);break;case"y":g=w("y");break;case"@":r=new Date(w("@")),g=r.getFullYe
lTop()-n.scrollSpeed):e(window).height()-(t.pageY-e(r).scrollTop())<n.scrollSens ar(),m=r.getMonth()+1,_=r.getDate();break;case"!":r=new Date((w("!")-this._ticks
itivity&&(a=e(r).scrollTop(e(r).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axi To1970)/1e4),g=r.getFullYear(),m=r.getMonth()+1,_=r.getDate();break;case"'":y("'
s||(t.pageX-e(r).scrollLeft()<n.scrollSensitivity?a=e(r).scrollLeft(e(r).scrollL ")?x():b=!0;break;default:x()}if(i.length>h&&(a=i.substr(h),!/^\s+/.test(a)))thr
eft()-n.scrollSpeed):e(window).width()-(t.pageX-e(r).scrollLeft())<n.scrollSensi ow"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYe
tivity&&(a=e(r).scrollLeft(e(r).scrollLeft()+n.scrollSpeed)))),a!==!1&&e.ui.ddma ar():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c>=g?0:-1
nager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(s,t)}}),e.ui.plugin.add(" 00)),v>-1)for(m=1,_=v;;){if(o=this._getDaysInMonth(g,m-1),o>=_)break;m++,_-=o}if
draggable","snap",{start:function(t,i,s){var n=s.options;s.snapElements=[],e(n.s (r=this._daylightSavingAdjust(new Date(g,m-1,_)),r.getFullYear()!==g||r.getMonth
nap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(functi ()+1!==m||r.getDate()!==_)throw"Invalid date";return r},ATOM:"yy-mm-dd",COOKIE:"
on(){var t=e(this),i=t.offset();this!==s.element[0]&&s.snapElements.push({item:t D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036
his,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag: :"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",T
function(t,i,s){var n,a,o,r,h,l,u,d,c,p,f=s.options,m=f.snapTolerance,g=i.offset IMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.floor(492.5)-
.left,v=g+s.helperProportions.width,y=i.offset.top,b=y+s.helperProportions.heigh Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,i){if(!e)return"";va
t;for(c=s.snapElements.length-1;c>=0;c--)h=s.snapElements[c].left-s.margins.left r s,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:nul
,l=h+s.snapElements[c].width,u=s.snapElements[c].top-s.margins.top,d=u+s.snapEle l)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNa
ments[c].height,h-m>v||g>l+m||u-m>b||y>d+m||!e.contains(s.snapElements[c].item.o mesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,h=function(e){var i=
wnerDocument,s.snapElements[c].item)?(s.snapElements[c].snapping&&s.options.snap t.length>s+1&&t.charAt(s+1)===e;return i&&s++,i},l=function(t,e,i){var s=""+e;if
.release&&s.options.snap.release.call(s.element,t,e.extend(s._uiHash(),{snapItem (h(t))for(;i>s.length;)s="0"+s;return s},c=function(t,e,i,s){return h(t)?s[e]:i[
:s.snapElements[c].item})),s.snapElements[c].snapping=!1):("inner"!==f.snapMode& e]},u="",d=!1;if(e)for(s=0;t.length>s;s++)if(d)"'"!==t.charAt(s)||h("'")?u+=t.ch
&(n=m>=Math.abs(u-b),a=m>=Math.abs(d-y),o=m>=Math.abs(h-v),r=m>=Math.abs(l-g),n& arAt(s):d=!1;else switch(t.charAt(s)){case"d":u+=l("d",e.getDate(),2);break;case
&(i.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.heig "D":u+=c("D",e.getDay(),n,o);break;case"o":u+=l("o",Math.round((new Date(e.getFu
ht,left:0}).top),a&&(i.position.top=s._convertPositionTo("relative",{top:d,left: llYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTi
0}).top),o&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h-s.hel me())/864e5),3);break;case"m":u+=l("m",e.getMonth()+1,2);break;case"M":u+=c("M",
perProportions.width}).left),r&&(i.position.left=s._convertPositionTo("relative" e.getMonth(),a,r);break;case"y":u+=h("y")?e.getFullYear():(10>e.getFullYear()%10
,{top:0,left:l}).left)),p=n||a||o||r,"outer"!==f.snapMode&&(n=m>=Math.abs(u-y),a 0?"0":"")+e.getFullYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*
=m>=Math.abs(d-b),o=m>=Math.abs(h-g),r=m>=Math.abs(l-v),n&&(i.position.top=s._co e.getTime()+this._ticksTo1970;break;case"'":h("'")?u+="'":d=!0;break;default:u+=
nvertPositionTo("relative",{top:u,left:0}).top),a&&(i.position.top=s._convertPos t.charAt(s)}return u},_possibleChars:function(t){var e,i="",s=!1,n=function(i){v
itionTo("relative",{top:d-s.helperProportions.height,left:0}).top),o&&(i.positio ar s=t.length>e+1&&t.charAt(e+1)===i;return s&&e++,s};for(e=0;t.length>e;e++)if(
n.left=s._convertPositionTo("relative",{top:0,left:h}).left),r&&(i.position.left s)"'"!==t.charAt(e)||n("'")?i+=t.charAt(e):s=!1;else switch(t.charAt(e)){case"d"
=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left) :case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"
),!s.snapElements[c].snapping&&(n||a||o||r||p)&&s.options.snap.snap&&s.options.s '":n("'")?i+="'":s=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){
nap.snap.call(s.element,t,e.extend(s._uiHash(),{snapItem:s.snapElements[c].item} return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField
)),s.snapElements[c].snapping=n||a||o||r||p)}}),e.ui.plugin.add("draggable","sta :function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t
ck",{start:function(t,i,s){var n,a=s.options,o=e.makeArray(e(a.stack)).sort(func .lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,a=this._getFor
tion(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex" matConfig(t);try{o=this.parseDate(i,s,a)||n}catch(r){s=e?"":s}t.selectedDay=o.ge
),10)||0)});o.length&&(n=parseInt(e(o[0]).css("zIndex"),10)||0,e(o).each(functio tDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.get
n(t){e(this).css("zIndex",n+t)}),this.css("zIndex",n+o.length))}}),e.ui.plugin.a FullYear(),t.currentDay=s?o.getDate():0,t.currentMonth=s?o.getMonth():0,t.curren
dd("draggable","zIndex",{start:function(t,i,s){var n=e(i.helper),a=s.options;n.c tYear=s?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){
ss("zIndex")&&(a._zIndex=n.css("zIndex")),n.css("zIndex",a.zIndex)},stop:functio return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),n
n(t,i,s){var n=s.options;n._zIndex&&e(i.helper).css("zIndex",n._zIndex)}}),e.ui. ew Date))},_determineDate:function(e,i,s){var n=function(t){var e=new Date;retur
draggable,e.widget("ui.resizable",e.ui.mouse,{version:"1.11.2",widgetEventPrefix n e.setDate(e.getDate()+t),e},o=function(i){try{return t.datepicker.parseDate(t.
:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(s){}fo
:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s r(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=
,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,r n.getFullYear(),a=n.getMonth(),r=n.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|
esize:null,start:null,stop:null},_num:function(e){return parseInt(e,10)||0},_isN Y)?/g,l=h.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);bre
umber:function(e){return!isNaN(parseInt(e,10))},_hasScroll:function(t,i){if("hid ak;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1]
den"===e(t).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop ,10),r=Math.min(r,t.datepicker._getDaysInMonth(o,a));break;case"y":case"Y":o+=pa
",n=!1;return t[s]>0?!0:(t[s]=1,n=t[s]>0,t[s]=0,n)},_create:function(){var t,i,s rseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,a))}l=h.exec(i)}retu
,n,a,o=this,r=this.options;if(this.element.addClass("ui-resizable"),e.extend(thi rn new Date(o,a,r)},a=null==i||""===i?s:"string"==typeof i?o(i):"number"==typeof
s,{_aspectRatio:!!r.aspectRatio,aspectRatio:r.aspectRatio,originalElement:this.e i?isNaN(i)?s:n(i):new Date(i.getTime());return a=a&&"Invalid Date"==""+a?s:a,a&
lement,_proportionallyResizeElements:[],_helper:r.helper||r.ghost||r.animate?r.h &(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._dayl
elper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|texta ightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.ge
rea|input|select|button|img/i)&&(this.element.wrap(e("<div class='ui-wrapper' st tHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.sel
yle='overflow: hidden;'></div>").css({position:this.element.css("position"),widt ectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new
h:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.c Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.cur
ss("top"),left:this.element.css("left")})),this.element=this.element.parent().da rentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),n
ta("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t ===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustIns
his.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:thi tDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){va
s.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginR r e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(
ight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElem new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:f
ent.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalRe unction(e){var i=this._get(e,"stepMonths"),s="#"+e.id.replace(/\\\\/g,"\\");e.dp
sizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize"," Div.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._a
none"),this._proportionallyResizeElements.push(this.originalElement.css({positio djustDate(s,-i,"M")},next:function(){t.datepicker._adjustDate(s,+i,"M")},hide:fu
n:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.origi nction(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToda
nalElement.css("margin")}),this._proportionallyResize()),this.handles=r.handles| y(s)},selectDay:function(){return t.datepicker._selectDay(s,+this.getAttribute("
|(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resi data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){re
zable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-r turn t.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return
esizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles t.datepicker._selectMonthYear(s,this,"Y"),!1}};t(this).on(this.getAttribute("dat
.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne, a-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var
nw"),t=this.handles.split(","),this.handles={},i=0;t.length>i;i++)s=e.trim(t[i]) e,i,s,n,o,a,r,h,l,c,u,d,p,f,g,m,_,v,b,y,w,k,x,C,D,I,T,P,M,S,H,z,O,A,N,W,E,F,L,R
,a="ui-resizable-"+s,n=e("<div class='ui-resizable-handle "+a+"'></div>"),n.css( =new Date,B=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.g
{zIndex:r.zIndex}),"se"===s&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se") etDate())),Y=this._get(t,"isRTL"),j=this._get(t,"showButtonPanel"),q=this._get(t
,this.handles[s]=".ui-resizable-"+s,this.element.append(n);this._renderAxis=func ,"hideIfNoPrevNext"),K=this._get(t,"navigationAsDateFormat"),U=this._getNumberOf
tion(t){var i,s,n,a;t=t||this.element;for(i in this.handles)this.handles[i].cons Months(t),V=this._get(t,"showCurrentAtPos"),$=this._get(t,"stepMonths"),X=1!==U[
tructor===String&&(this.handles[i]=this.element.children(this.handles[i]).first( 0]||1!==U[1],G=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.
).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textare currentMonth,t.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(t,"min"),J=
a|input|select|button/i)&&(s=e(this.handles[i],this.element),a=/sw|ne|nw|se|n|s/ this._getMinMaxDate(t,"max"),Z=t.drawMonth-V,te=t.drawYear;if(0>Z&&(Z+=12,te--),
.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se J)for(e=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-U[0]*U[
|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(n,a),this._ 1]+1,J.getDate())),e=Q&&Q>e?Q:e;this._daylightSavingAdjust(new Date(te,Z,1))>e;)
proportionallyResize()),e(this.handles[i]).length},this._renderAxis(this.element Z--,0>Z&&(Z=11,te--);for(t.drawMonth=Z,t.drawYear=te,i=this._get(t,"prevText"),i
),this._handles=e(".ui-resizable-handle",this.element).disableSelection(),this._ =K?this.formatDate(i,this._daylightSavingAdjust(new Date(te,Z-$,1)),this._getFor
handles.mouseover(function(){o.resizing||(this.className&&(n=this.className.matc matConfig(t)):i,s=this._canAdjustMonth(t,-1,te,Z)?"<a class='ui-datepicker-prev
h(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=n&&n[1]?n[1]:"se")}),r.autoHide ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class=
&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mousee 'ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>":q?"":"<a cla
nter(function(){r.disabled||(e(this).removeClass("ui-resizable-autohide"),o._han ss='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span clas
dles.show())}).mouseleave(function(){r.disabled||o.resizing||(e(this).addClass(" s='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>",n=this._ge
ui-resizable-autohide"),o._handles.hide())})),this._mouseInit()},_destroy:functi t(t,"nextText"),n=K?this.formatDate(n,this._daylightSavingAdjust(new Date(te,Z+$
on(){this._mouseDestroy();var t,i=function(t){e(t).removeClass("ui-resizable ui- ,1)),this._getFormatConfig(t)):n,o=this._canAdjustMonth(t,1,te,Z)?"<a class='ui-
resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("u datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+n
i-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return +"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></
this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css a>":q?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"
({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.c +n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span>
ss("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.c </a>",a=this._get(t,"currentText"),r=this._get(t,"gotoCurrent")&&t.currentDay?G:
ss("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCaptur B,a=K?this.formatDate(a,r,this._getFormatConfig(t)):a,h=t.inline?"":"<button typ
e:function(t){var i,s,n=!1;for(i in this.handles)s=e(this.handles[i])[0],(s===t. e='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-co
target||e.contains(s,t.target))&&(n=!0);return!this.options.disabled&&n},_mouseS rner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</b
tart:function(t){var i,s,n,a=this.options,o=this.element;return this.resizing=!0 utton>",l=j?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Y?h:"")+
,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helpe (this._isInRange(t,r)?"<button type='button' class='ui-datepicker-current ui-sta
r.css("top")),a.containment&&(i+=e(a.containment).scrollLeft()||0,s+=e(a.contain te-default ui-priority-secondary ui-corner-all' data-handler='today' data-event=
ment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top 'click'>"+a+"</button>":"")+(Y?"":h)+"</div>":"",c=parseInt(this._get(t,"firstDa
:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height( y"),10),c=isNaN(c)?0:c,u=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=thi
)}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.o s._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesSho
uterWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.siz rt"),m=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),v=this._get
eDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.or (t,"selectOtherMonths"),b=this._getDefaultDate(t),y="",k=0;U[0]>k;k++){for(x="",
iginalPosition={left:i,top:s},this.originalMousePosition={left:t.pageX,top:t.pag this.maxRows=4,C=0;U[1]>C;C++){if(D=this._daylightSavingAdjust(new Date(te,Z,t.s
eY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalS electedDay)),I=" ui-corner-all",T="",X){if(T+="<div class='ui-datepicker-group",
ize.width/this.originalSize.height||1,n=e(".ui-resizable-"+this.axis).css("curso U[1]>1)switch(C){case 0:T+=" ui-datepicker-group-first",I=" ui-corner-"+(Y?"righ
r"),e("body").css("cursor","auto"===n?this.axis+"-resize":n),o.addClass("ui-resi t":"left");break;case U[1]-1:T+=" ui-datepicker-group-last",I=" ui-corner-"+(Y?"
zable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,s,n left":"right");break;default:T+=" ui-datepicker-group-middle",I=""}T+="'>"}for(T
=this.originalMousePosition,a=this.axis,o=t.pageX-n.left||0,r=t.pageY-n.top||0,h +="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+I+"'>"+
=this._change[a];return this._updatePrevProperties(),h?(i=h.apply(this,[t,o,r]), (/all|left/.test(I)&&0===k?Y?o:s:"")+(/all|right/.test(I)&&0===k?Y?s:o:"")+this.
this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=th _generateMonthYearHeader(t,Z,te,Q,J,k>0||C>0,f,g)+"</div><table class='ui-datepi
is._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propag cker-calendar'><thead>"+"<tr>",P=u?"<th class='ui-datepicker-week-col'>"+this._g
ate("resize",t),s=this._applyChanges(),!this._helper&&this._proportionallyResize et(t,"weekHeader")+"</th>":"",w=0;7>w;w++)M=(w+c)%7,P+="<th scope='col'"+((w+c+6
Elements.length&&this._proportionallyResize(),e.isEmptyObject(s)||(this._updateP )%7>=5?" class='ui-datepicker-week-end'":"")+">"+"<span title='"+d[M]+"'>"+p[M]+
revProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1):!1 "</span></th>";for(T+=P+"</tr></thead><tbody>",S=this._getDaysInMonth(te,Z),te==
},_mouseStop:function(t){this.resizing=!1;var i,s,n,a,o,r,h,l=this.options,u=thi =t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,S)),
s;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textar H=(this._getFirstDayOfMonth(te,Z)-c+7)%7,z=Math.ceil((H+S)/7),O=X?this.maxRows>z
ea/i.test(i[0].nodeName),n=s&&this._hasScroll(i[0],"left")?0:u.sizeDiff.height,a ?this.maxRows:z:z,this.maxRows=O,A=this._daylightSavingAdjust(new Date(te,Z,1-H)
=s?0:u.sizeDiff.width,o={width:u.helper.width()-a,height:u.helper.height()-n},r= ),N=0;O>N;N++){for(T+="<tr>",W=u?"<td class='ui-datepicker-week-col'>"+this._get
parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left)||nu (t,"calculateWeek")(A)+"</td>":"",w=0;7>w;w++)E=m?m.apply(t.input?t.input[0]:nul
ll,h=parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top)|| l,[A]):[!0,""],F=A.getMonth()!==Z,L=F&&!v||!E[0]||Q&&Q>A||J&&A>J,W+="<td class='
null,l.animate||this.element.css(e.extend(o,{top:h,left:r})),u.helper.height(u.s "+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":""
ize.height),u.helper.width(u.size.width),this._helper&&!l.animate&&this._proport )+(A.getTime()===D.getTime()&&Z===t.selectedMonth&&t._keyEvent||b.getTime()===A.
ionallyResize()),e("body").css("cursor","auto"),this.element.removeClass("ui-res getTime()&&b.getTime()===D.getTime()?" "+this._dayOverClass:"")+(L?" "+this._uns
izable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),! electableClass+" ui-state-disabled":"")+(F&&!_?"":" "+E[1]+(A.getTime()===G.getT
1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,lef ime()?" "+this._currentClass:"")+(A.getTime()===B.getTime()?" ui-datepicker-toda
t:this.position.left},this.prevSize={width:this.size.width,height:this.size.heig y":""))+"'"+(F&&!_||!E[2]?"":" title='"+E[2].replace(/'/g,"&#39;")+"'")+(L?"":"
ht}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosit data-handler='selectDay' data-event='click' data-month='"+A.getMonth()+"' data-y
ion.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.l ear='"+A.getFullYear()+"'")+">"+(F&&!_?"&#xa0;":L?"<span class='ui-state-default
eft&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e. '>"+A.getDate()+"</span>":"<a class='ui-state-default"+(A.getTime()===B.getTime(
width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=t )?" ui-state-highlight":"")+(A.getTime()===G.getTime()?" ui-state-active":"")+(F
his.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e) ?" ui-priority-secondary":"")+"' href='#'>"+A.getDate()+"</a>")+"</td>",A.setDat
{var t,i,s,n,a,o=this.options;a={minWidth:this._isNumber(o.minWidth)?o.minWidth: e(A.getDate()+1),A=this._daylightSavingAdjust(A);T+=W+"</tr>"}Z++,Z>11&&(Z=0,te+
0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o. +),T+="</tbody></table>"+(X?"</div>"+(U[0]>0&&C===U[1]-1?"<div class='ui-datepic
minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0}, ker-row-break'></div>":""):""),x+=T}y+=x}return y+=l,t._keyEvent=!1,y},_generate
(this._aspectRatio||e)&&(t=a.minHeight*this.aspectRatio,s=a.minWidth/this.aspect MonthYearHeader:function(t,e,i,s,n,o,a,r){var h,l,c,u,d,p,f,g,m=this._get(t,"cha
Ratio,i=a.maxHeight*this.aspectRatio,n=a.maxWidth/this.aspectRatio,t>a.minWidth& ngeMonth"),_=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),b="<d
&(a.minWidth=t),s>a.minHeight&&(a.minHeight=s),a.maxWidth>i&&(a.maxWidth=i),a.ma iv class='ui-datepicker-title'>",y="";if(o||!m)y+="<span class='ui-datepicker-mo
xHeight>n&&(a.maxHeight=n)),this._vBoundaries=a},_updateCache:function(e){this.o nth'>"+a[e]+"</span>";else{for(h=s&&s.getFullYear()===i,l=n&&n.getFullYear()===i
ffset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),t ,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='
his._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this. change'>",c=0;12>c;c++)(!h||c>=s.getMonth())&&(!l||n.getMonth()>=c)&&(y+="<optio
size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updat n value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");y+="</s
eRatio:function(e){var t=this.position,i=this.size,s=this.axis;return this._isNu elect>"}if(v||(b+=y+(!o&&m&&_?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!_
mber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.hei )b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"year
ght=e.width/this.aspectRatio),"sw"===s&&(e.left=t.left+(i.width-e.width),e.top=n Range").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-
ull),"nw"===s&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)) ].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt
,e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,s=this._isNumbe (t,10);return isNaN(e)?d:e},f=p(u[0]),g=Math.max(f,p(u[1]||"")),f=s?Math.max(f,s
r(e.width)&&t.maxWidth&&t.maxWidth<e.width,n=this._isNumber(e.height)&&t.maxHeig .getFullYear()):f,g=n?Math.min(g,n.getFullYear()):g,t.yearshtml+="<select class=
ht&&t.maxHeight<e.height,a=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.wid 'ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=f;f++)t.
th,o=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,r=this.original yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</op
Position.left+this.originalSize.width,h=this.position.top+this.size.height,l=/sw tion>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._
|nw|w/.test(i),u=/nw|ne|n/.test(i);return a&&(e.width=t.minWidth),o&&(e.height=t get(t,"yearSuffix"),v&&(b+=(!o&&m&&_?"":"&#xa0;")+y),b+="</div>"},_adjustInstDat
.minHeight),s&&(e.width=t.maxWidth),n&&(e.height=t.maxHeight),a&&l&&(e.left=r-t. e:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?
minWidth),s&&l&&(e.left=r-t.maxWidth),o&&u&&(e.top=h-t.minHeight),n&&u&&(e.top=h e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),a=this._r
-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.lef estrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,o)));t.selectedDay=a.get
t||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(v Date(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getF
ar t=0,i=[],s=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBo ullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,
ttomWidth"),e.css("borderLeftWidth")],n=[e.css("paddingTop"),e.css("paddingRight e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=i&&i>e?i:
"),e.css("paddingBottom"),e.css("paddingLeft")];4>t;t++)i[t]=parseInt(s[t],10)|| e;return s&&n>s?s:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthY
0,i[t]+=parseInt(n[t],10)||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proporti ear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},
onallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t _getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==
=0,i=this.helper||this.element;this._proportionallyResizeElements.length>t;t++)e e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._de
=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensio termineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return
ns=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerD 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:f
imensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProx unction(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){
y:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),thi var n=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,s+(0>e?
s._helper?(this.helper=this.helper||e("<div style='overflow:hidden;'></div>"),th e:n[0]*n[1]),1));return 0>e&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.ge
is.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:t tMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,s,n=this._getMin
his.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px MaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),a=null,r=null,h=this._get(t,"yea
",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body rRange");return h&&(i=h.split(":"),s=(new Date).getFullYear(),a=parseInt(i[0],10
").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return ),r=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=s),i[1].match(/[+\-].*/)&&(r+=s
{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize,s=thi )),(!n||e.getTime()>=n.getTime())&&(!o||e.getTime()<=o.getTime())&&(!a||e.getFul
s.originalPosition;return{left:s.left+t,width:i.width-t}},n:function(e,t,i){var lYear()>=a)&&(!r||r>=e.getFullYear())},_getFormatConfig:function(t){var e=this._
s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%
}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i, 100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort")
s){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(thi ,dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort")
s,[t,i,s]))},sw:function(t,i,s){return e.extend(this._change.s.apply(this,argume ,monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.curr
nts),this._change.w.apply(this,[t,i,s]))},ne:function(t,i,s){return e.extend(thi entDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear
s._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},nw:functi );var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this.
on(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.w.ap _daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));retur
ply(this,[t,i,s]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui n this.formatDate(this._get(t,"dateFormat"),n,this._getFormatConfig(t))}}),t.fn.
()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(
{originalElement:this.originalElement,element:this.element,helper:this.helper,po document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initiali
sition:this.position,size:this.size,originalSize:this.originalSize,originalPosit zed=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker
ion:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:functi .dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||
on(t){var i=e(this).resizable("instance"),s=i.options,n=i._proportionallyResizeE "isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length
lements,a=n.length&&/textarea/i.test(n[0].nodeName),o=a&&i._hasScroll(n[0],"left &&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepic
")?0:i.sizeDiff.height,r=a?0:i.sizeDiff.width,h={width:i.size.width-r,height:i.s ker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_
ize.height-o},l=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPo "+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatep
sition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.origina icker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].co
lPosition.top)||null;i.element.animate(e.extend(h,u&&l?{top:u,left:l}:{}),{durat ncat(i))},t.datepicker=new s,t.datepicker.initialized=!1,t.datepicker.uuid=(new
ion:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseI Date).getTime(),t.datepicker.version="1.12.1",t.datepicker,t.ui.ie=!!/msie [\w.]
nt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:pa +/.exec(navigator.userAgent.toLowerCase());var _=!1;t(document).on("mouseup",fun
rseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};n&&n.le ction(){_=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, tex
ngth&&e(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagat tarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=t
e("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){ his;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown
var t,i,s,n,a,o,r,h=e(this).resizable("instance"),l=h.options,u=h.element,d=l.co (t)}).on("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widge
ntainment,c=d instanceof e?d.get(0):/parent/.test(d)?u.parent().get(0):d;c&&(h.c tName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEv
ontainerElement=e(c),/document/.test(d)||d===document?(h.containerOffset={left:0 ent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:f
,top:0},h.containerPosition={left:0,top:0},h.parentData={element:e(document),lef unction(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.do
t:0,top:0,width:e(document).width(),height:e(document).height()||document.body.p cument.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+
arentNode.scrollHeight}):(t=e(c),i=[],e(["Top","Right","Left","Bottom"]).each(fu this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!_){this._mous
nction(e,s){i[e]=h._num(t.css("padding"+s))}),h.containerOffset=t.offset(),h.con eMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this
tainerPosition=t.position(),h.containerSize={height:t.innerHeight()-i[3],width:t ,s=1===e.which,n="string"==typeof this.options.cancel&&e.target.nodeName?t(e.tar
.innerWidth()-i[1]},s=h.containerOffset,n=h.containerSize.height,a=h.containerSi get).closest(this.options.cancel).length:!1;return s&&!n&&this._mouseCapture(e)?
ze.width,o=h._hasScroll(c,"left")?c.scrollWidth:a,r=h._hasScroll(c)?c.scrollHeig (this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTim
ht:n,h.parentData={element:c,left:s.left,top:s.top,width:o,height:r}))},resize:f er=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDis
unction(t){var i,s,n,a,o=e(this).resizable("instance"),r=o.options,h=o.container tanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!
Offset,l=o.position,u=o._aspectRatio||t.shiftKey,d={top:0,left:0},c=o.containerE 1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widget
lement,p=!0;c[0]!==document&&/static/.test(c.css("position"))&&(d=h),l.left<(o._ Name+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClick
helper?h.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-h.left:o Event"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseU
.position.left-d.left),u&&(o.size.height=o.size.width/o.aspectRatio,p=!1),o.posi pDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.w
tion.left=r.helper?h.left:0),l.top<(o._helper?h.top:0)&&(o.size.height=o.size.he idgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDe
ight+(o._helper?o.position.top-h.top:o.position.top),u&&(o.size.width=o.size.hei legate),e.preventDefault(),_=!0,!0)):!0}},_mouseMove:function(e){if(this._mouseM
ght*o.aspectRatio,p=!1),o.position.top=o._helper?h.top:0),n=o.containerElement.g oved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)r
et(0)===o.element.parent().get(0),a=/relative|absolute/.test(o.containerElement. eturn this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ct
css("position")),n&&a?(o.offset.left=o.parentData.left+o.position.left,o.offset. rlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich
top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.of =!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.b
fset.top=o.element.offset().top),i=Math.abs(o.sizeDiff.width+(o._helper?o.offset utton)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDe
.left-d.left:o.offset.left-h.left)),s=Math.abs(o.sizeDiff.height+(o._helper?o.of fault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted
fset.top-d.top:o.offset.top-h.top)),i+o.size.width>=o.parentData.width&&(o.size. =this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDra
width=o.parentData.width-i,u&&(o.size.height=o.size.width/o.aspectRatio,p=!1)),s g(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.
+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,u&&(o. off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.wi
size.width=o.size.height*o.aspectRatio,p=!1)),p||(o.position.left=o.prevPosition dgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.tar
.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.hei get===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClic
ght=o.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),i=t. kEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouse
options,s=t.containerOffset,n=t.containerPosition,a=t.containerElement,o=e(t.hel DelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,_=!1,e.prev
per),r=o.offset(),h=o.outerWidth()-t.sizeDiff.width,l=o.outerHeight()-t.sizeDiff entDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouse
.height;t._helper&&!i.animate&&/relative/.test(a.css("position"))&&e(this).css({ DownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.opt
left:r.left-n.left-s.left,width:h,height:l}),t._helper&&!i.animate&&/static/.tes ions.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:
t(a.css("position"))&&e(this).css({left:r.left-n.left-s.left,width:h,height:l})} function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:funct
}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resi ion(){return!0}}),t.ui.plugin={add:function(e,i,s){var n,o=t.ui[e].prototype;for
zable("instance"),i=t.options,s=function(t){e(t).each(function(){var t=e(this);t (n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function
.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t. (t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element
height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})}; [0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].appl
"object"!=typeof i.alsoResize||i.alsoResize.parentNode?s(i.alsoResize):i.alsoRes y(t.element,i)}},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&
ize.length?(i.alsoResize=i.alsoResize[0],s(i.alsoResize)):e.each(i.alsoResize,fu &t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widg
nction(e){s(e)})},resize:function(t,i){var s=e(this).resizable("instance"),n=s.o etEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToS
ptions,a=s.originalSize,o=s.originalPosition,r={height:s.size.height-a.height||0 ortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"or
,width:s.size.width-a.width||0,top:s.position.top-o.top||0,left:s.position.left- iginal",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500
o.left||0},h=function(t,s){e(t).each(function(){var t=e(this),n=e(this).data("ui ,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:
-resizable-alsoresize"),a={},o=s&&s.length?s:t.parents(i.originalElement[0]).len "both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_crea
gth?["width","height"]:["width","height","top","left"];e.each(o,function(e,t){va te:function(){"original"===this.options.helper&&this._setPositionRelative(),this
r i=(n[t]||0)+(r[t]||0);i&&i>=0&&(a[t]=i||null)}),t.css(a)})};"object"!=typeof n .options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),t
.alsoResize||n.alsoResize.nodeType?h(n.alsoResize):e.each(n.alsoResize,function( his._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this.
e,t){h(e,t)})},stop:function(){e(this).removeData("resizable-alsoresize")}}),e.u _removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return
i.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("inst (this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0
ance"),i=t.options,s=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opaci ,void 0):(this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapt
ty:.25,display:"block",position:"relative",height:s.height,width:s.width,margin: ure:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).c
0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghos losest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.
t?i.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resiza handle?(this._blurActiveElement(e),this._blockFrames(i.iframeFix===!0?"iframe":i
ble("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,w .iframeFix),!0):!1)},_blockFrames:function(e){this.iframeBlocks=this.document.fi
idth:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost nd(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").
&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resi appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).off
zable","grid",{resize:function(){var t,i=e(this).resizable("instance"),s=i.optio set(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeB
ns,n=i.size,a=i.originalSize,o=i.originalPosition,r=i.axis,h="number"==typeof s. locks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t
grid?[s.grid,s.grid]:s.grid,l=h[0]||1,u=h[1]||1,d=Math.round((n.width-a.width)/l .ui.safeActiveElement(this.document[0]),s=t(e.target);s.closest(i).length||t.ui.
)*l,c=Math.round((n.height-a.height)/u)*u,p=a.width+d,f=a.height+c,m=s.maxWidth& safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this.
&p>s.maxWidth,g=s.maxHeight&&f>s.maxHeight,v=s.minWidth&&s.minWidth>p,y=s.minHei _createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cache
ght&&s.minHeight>f;s.grid=h,v&&(p+=l),y&&(f+=u),m&&(p-=l),g&&(f-=u),/^(se|s|e)$/ HelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMar
.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.siz gins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helpe
e.height=f,i.position.top=o.top-c):/^(sw)$/.test(r)?(i.size.width=p,i.size.heigh r.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAnc
t=f,i.position.left=o.left-d):((0>=f-u||0>=p-l)&&(t=i._getPaddingPlusBorderDimen estor=this.helper.parents().filter(function(){return"fixed"===t(this).css("posit
sions(this)),f-u>0?(i.size.height=f,i.position.top=o.top-c):(f=u-t.height,i.size ion")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),
.height=f,i.position.top=o.top+a.height-f),p-l>0?(i.size.width=p,i.position.left this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPa
=o.left-d):(p=u-t.height,i.size.width=p,i.position.left=o.left+a.width-p))}}),e. geX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(
ui.resizable,e.widget("ui.dialog",{version:"1.11.2",options:{appendTo:"body",aut i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),
oOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable: !1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddman
!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:1 ager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager
50,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:fu .dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positi
nction(t){var i=e(this).css(t).offset().top;0>i&&e(this).css("top",t.top-i)}},re onAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!
sizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null, 1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset
dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,r .click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:f
esizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:! unction(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset
0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWi ()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPos
dth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:th itionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",e,s)===!1)r
is.element[0].style.display,width:this.element[0].style.width,minHeight:this.ele eturn this._mouseUp(new t.Event("mouseup",e)),!1;this.position=s.position}return
ment[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.el this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this
ement[0].style.height},this.originalPosition={parent:this.element.parent(),index .position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:fu
:this.element.parent().children().index(this.element)},this.originalTitle=this.e nction(e){var i=this,s=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(s
lement.attr("title"),this.options.title=this.options.title||this.originalTitle,t =t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),"in
his._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog valid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options
-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this .revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.e
._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable lement,s)?t(this.helper).animate(this.originalPosition,parseInt(this.options.rev
(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1 ertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger
,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appen ("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFram
dTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t) es(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.tar
:this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalP get)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},
osition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dia cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(
log-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.sto new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:
p(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTit function(e){return this.options.handle?!!t(e.target).closest(this.element.find(t
le),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before( his.options.handle)).length:!0},_setHandleClassName:function(){this.handleElemen
this.element):t.parent.append(this.element)},widget:function(){return this.uiDia t=this.options.handle?this.element.find(this.options.handle):this.element,this._
log},disable:e.noop,enable:e.noop,close:function(t){var i,s=this;if(this._isOpen addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:funct
&&this._trigger("beforeClose",t)!==!1){if(this._isOpen=!1,this._focusedElement=n ion(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper
ull,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusab :function(e){var i=this.options,s=t.isFunction(i.helper),n=s?t(i.helper.apply(th
le").focus().length)try{i=this.document[0].activeElement,i&&"body"!==i.nodeName. is.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):thi
toLowerCase()&&e(i).blur()}catch(n){}this._hide(this.uiDialog,this.options.hide, s.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this
function(){s._trigger("close",t)})}},isOpen:function(){return this._isOpen},move .element[0].parentNode:i.appendTo),s&&n[0]===this.element[0]&&this._setPositionR
ToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var s=!1,n=this.uiD elative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.
ialog.siblings(".ui-front:visible").map(function(){return+e(this).css("z-index") css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(
}).get(),a=Math.max.apply(null,n);return a>=+this.uiDialog.css("z-index")&&(this this.element.css("position"))||(this.element[0].style.position="relative")},_adj
.uiDialog.css("z-index",a+1),s=!0),s&&!i&&this._trigger("focus",t),s},open:funct ustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e
ion(){var t=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),v )&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this
oid 0):(this._isOpen=!0,this.opener=e(this.document[0].activeElement),this._size .margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width
(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay& -e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins
&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDi .top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.botto
alog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this. m+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName
_makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var )||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.off
e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this set(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[
.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable 0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scr
")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=th ollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(th
is.uiDialog),e.eq(0).focus()},_keepFocus:function(t){function i(){var t=this.doc is.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.c
ument[0].activeElement,i=this.uiDialog[0]===t||e.contains(this.uiDialog[0],t);i| ss("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("border
|this._focusTabbable()}t.preventDefault(),i.call(this),this._delay(i)},_createWr LeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosi
apper:function(){this.uiDialog=e("<div>").addClass("ui-dialog ui-widget ui-widge tion)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.
t-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabInd scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:
ex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)
:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&& ||0)+(e?0:this.scrollParent.scrollLeft())}
t.keyCode===e.ui.keyCode.ESCAPE)return t.preventDefault(),this.close(t),void 0; },_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginL
if(t.keyCode===e.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.fi eft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(th
nd(":tabbable"),s=i.filter(":first"),n=i.filter(":last");t.target!==n[0]&&t.targ is.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBot
et!==this.uiDialog[0]||t.shiftKey?t.target!==s[0]&&t.target!==this.uiDialog[0]|| tom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:
!t.shiftKey||(this._delay(function(){n.focus()}),t.preventDefault()):(this._dela this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:func
y(function(){s.focus()}),t.preventDefault())}},mousedown:function(e){this._moveT tion(){var e,i,s,n=this.options,o=this.document[0];return this.relativeContainer
oTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length =null,n.containment?"window"===n.containment?(this.containment=[t(window).scroll
||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_ Left()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-t
createTitlebar:function(){var t;this.uiDialogTitlebar=e("<div>").addClass("ui-di his.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).
alog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(
.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).clo window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-
sest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitleba this.margins.top],void 0):"document"===n.containment?(this.containment=[0,0,t(o)
rClose=e("<button type='button'></button>").button({label:this.options.closeText .width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.p
,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-clo arentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):
se").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click: n.containment.constructor===Array?(this.containment=n.containment,void 0):("pare
function(e){e.preventDefault(),this.close(e)}}),t=e("<span>").uniqueId().addClas nt"===n.containment&&(n.containment=this.helper[0].parentNode),i=t(n.containment
s("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(t),this.uiDial ),s=i[0],s&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseI
og.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title nt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(pars
||e.html("&#160;"),e.text(this.options.title)},_createButtonPane:function(){this eInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Ma
.uiDialogButtonPane=e("<div>").addClass("ui-dialog-buttonpane ui-widget-content th.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightW
ui-helper-clearfix"),this.uiButtonSet=e("<div>").addClass("ui-dialog-buttonset") idth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.wi
.appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:functio dth-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeig
n(){var t=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),th ht):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css
is.uiButtonSet.empty(),e.isEmptyObject(i)||e.isArray(i)&&!i.length?(this.uiDialo ("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.ma
g.removeClass("ui-dialog-buttons"),void 0):(e.each(i,function(i,s){var n,a;s=e.i rgins.bottom],this.relativeContainer=i),void 0):(this.containment=null,void 0)},
sFunction(s)?{click:s,text:i}:s,s=e.extend({type:"button"},s),n=s.click,s.click= _convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,
function(){n.apply(t.element[0],arguments)},a={icons:s.icons,text:s.showText},de s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.t
lete s.icons,delete s.showText,e("<button></button>",s).button(a).appendTo(t.uiB op*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.to
uttonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane. p:s?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.off
appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function t(e){return{ set.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.
position:e.position,offset:e.offset}}var i=this,s=this.options;this.uiDialog.dra offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s,n,o,a=this.optio
ggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialo ns,r=this._isRootNode(this.scrollParent[0]),h=t.pageX,l=t.pageY;return r&&this.o
g-titlebar",containment:"document",start:function(s,n){e(this).addClass("ui-dial ffset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.s
og-dragging"),i._blockFrames(),i._trigger("dragStart",s,t(n))},drag:function(e,s crollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(s=this
){i._trigger("drag",e,t(s))},stop:function(n,a){var o=a.offset.left-i.document.s .relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.
crollLeft(),r=a.offset.top-i.document.scrollTop();s.position={my:"left top",at:" top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.
left"+(o>=0?"+":"")+o+" "+"top"+(r>=0?"+":"")+r,of:i.window},e(this).removeClass pageX-this.offset.click.left<i[0]&&(h=i[0]+this.offset.click.left),t.pageY-this.
("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",n,t(a))}})},_mak offset.click.top<i[1]&&(l=i[1]+this.offset.click.top),t.pageX-this.offset.click.
eResizable:function(){function t(e){return{originalPosition:e.originalPosition,o left>i[2]&&(h=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(
riginalSize:e.originalSize,position:e.position,size:e.size}}var i=this,s=this.op l=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalPageY+Math.roun
tions,n=s.resizable,a=this.uiDialog.css("position"),o="string"==typeof n?n:"n,e, d((l-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,l=i?n-this.offs
s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containmen et.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]
t:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,m ?n-a.grid[1]:n+a.grid[1]:n,o=a.grid[0]?this.originalPageX+Math.round((h-this.ori
inWidth:s.minWidth,minHeight:this._minHeight(),handles:o,start:function(s,n){e(t ginalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,h=i?o-this.offset.click.left
his).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",s, >=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[
t(n))},resize:function(e,s){i._trigger("resize",e,t(s))},stop:function(n,a){var 0]:o+a.grid[0]:o),"y"===a.axis&&(h=this.originalPageX),"x"===a.axis&&(l=this.ori
o=i.uiDialog.offset(),r=o.left-i.document.scrollLeft(),h=o.top-i.document.scroll ginalPageY)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.p
Top();s.height=i.uiDialog.height(),s.width=i.uiDialog.width(),s.position={my:"le arent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.sc
ft top",at:"left"+(r>=0?"+":"")+r+" "+"top"+(h>=0?"+":"")+h,of:i.window},e(this) roll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.pa
.removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",n, rent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.s
t(a))}}).css("position",a)},_trackFocus:function(){this._on(this.widget(),{focus croll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-drag
in:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_mak ging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.r
eFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshif emove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.d
t(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=e.inArray estroy()},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(t
(this,t);-1!==i&&t.splice(i,1)},_trackingInstances:function(){var e=this.documen his,e,[i,s,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._conve
t.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-inst rtPositionTo("absolute"),s.offset=this.positionAbs),t.Widget.prototype._trigger.
ances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,positi
.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDia on:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}
log.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.p }}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,s){var n
osition),e||this.uiDialog.hide()},_setOptions:function(t){var i=this,s=!1,n={};e =t.extend({},i,{item:s.element});s.sortables=[],t(s.options.connectToSortable).e
.each(t,function(e,t){i._setOption(e,t),e in i.sizeRelatedOptions&&(s=!0),e in i ach(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(s.sor
.resizableRelatedOptions&&(n[e]=t)}),s&&(this._size(),this._position()),this.uiD tables.push(i),i.refreshPositions(),i._trigger("activate",e,n))})},stop:function
ialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption (e,i,s){var n=t.extend({},i,{item:s.element});s.cancelHelperRemoval=!1,t.each(s.
:function(e,t){var i,s,n=this.uiDialog;"dialogClass"===e&&n.removeClass(this.opt sortables,function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.
ions.dialogClass).addClass(t),"disabled"!==e&&(this._super(e,t),"appendTo"===e&& cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:
this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"c t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.optio
loseText"===e&&this.uiDialogTitlebarClose.button({label:""+t}),"draggable"===e&& ns.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e
(i=n.is(":data(ui-draggable)"),i&&!t&&n.draggable("destroy"),!i&&t&&this._makeDr ,n))})},drag:function(e,i,s){t.each(s.sortables,function(){var n=!1,o=this;o.pos
aggable()),"position"===e&&this._position(),"resizable"===e&&(s=n.is(":data(ui-r itionAbs=s.positionAbs,o.helperProportions=s.helperProportions,o.offset.click=s.
esizable)"),s&&!t&&n.resizable("destroy"),s&&"string"==typeof t&&n.resizable("op offset.click,o._intersectsWith(o.containerCache)&&(n=!0,t.each(s.sortables,funct
tion","handles",t),s||t===!1||this._makeResizable()),"title"===e&&this._title(th ion(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperPropo
is.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,i,s=thi rtions,this.offset.click=s.offset.click,this!==o&&this._intersectsWith(this.cont
s.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",hei ainerCache)&&t.contains(o.element[0],this.element[0])&&(n=!1),n})),n?(o.isOver||
ght:0}),s.minWidth>s.width&&(s.width=s.minWidth),e=this.uiDialog.css({height:"au (o.isOver=1,s._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.elemen
to",width:s.width}).outerHeight(),t=Math.max(0,s.minHeight-e),i="number"==typeof t).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.help
s.maxHeight?Math.max(0,s.maxHeight-e):"none","auto"===s.height?this.element.css er=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0
({minHeight:t,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.heigh ),o._mouseStart(e,!0,!0),o.offset.click.top=s.offset.click.top,o.offset.click.le
t-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option", ft=s.offset.click.left,o.offset.parent.left-=s.offset.parent.left-o.offset.paren
"minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.d t.left,o.offset.parent.top-=s.offset.parent.top-o.offset.parent.top,s._trigger("
ocument.find("iframe").map(function(){var t=e(this);return e("<div>").css({posit toSortable",e),s.dropped=o.element,t.each(s.sortables,function(){this.refreshPos
ion:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent() itions()}),s.currentItem=s.element,o.fromOutside=s),o.currentItem&&(o._mouseDrag
).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.if (e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.opt
rameBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){ret ions._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o
urn e(t.target).closest(".ui-dialog").length?!0:!!e(t.target).closest(".ui-datep )),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.opti
icker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._ ons._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(s._parent),s
delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this._on(this. ._refreshOffsets(e),i.position=s._generatePosition(e,!0),s._trigger("fromSortabl
document,{focusin:function(e){t||this._allowInteraction(e)||(e.preventDefault(), e",e),s.dropped=!1,t.each(s.sortables,function(){this.refreshPositions()}))})}})
this._trackingInstances()[0]._focusTabbable())}}),this.overlay=e("<div>").addCla ,t.ui.plugin.add("draggable","cursor",{start:function(e,i,s){var n=t("body"),o=s
ss("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overla .options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},
y,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.docume stop:function(e,i,s){var n=s.options;n._cursor&&t("body").css("cursor",n._cursor
nt.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.option )}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,s){var n=t(i.help
s.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.d er),o=s.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",
ocument.data("ui-dialog-overlays",e):this.document.unbind("focusin").removeData( o.opacity)},stop:function(e,i,s){var n=s.options;n._opacity&&t(i.helper).css("op
"ui-dialog-overlays"),this.overlay.remove(),this.overlay=null}}}),e.widget("ui.d acity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i
roppable",{version:"1.11.2",widgetEventPrefix:"drop",options:{accept:"*",activeC ){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i
lass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"interse .scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].t
ct",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function agName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,s
(){var t,i=this.options,s=i.accept;this.isover=!1,this.isout=!0,this.accept=e.is ){var n=s.options,o=!1,a=s.scrollParentNotHidden[0],r=s.document[0];a!==r&&"HTML
Function(s)?s:function(e){return e.is(s)},this.proportions=function(){return arg "!==a.tagName?(n.axis&&"x"===n.axis||(s.overflowOffset.top+a.offsetHeight-e.page
uments.length?(t=arguments[0],void 0):t?t:t={width:this.element[0].offsetWidth,h Y<n.scrollSensitivity?a.scrollTop=o=a.scrollTop+n.scrollSpeed:e.pageY-s.overflow
eight:this.element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&t Offset.top<n.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-n.scrollSpeed)),n.axi
his.element.addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.d s&&"y"===n.axis||(s.overflowOffset.left+a.offsetWidth-e.pageX<n.scrollSensitivit
roppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push( y?a.scrollLeft=o=a.scrollLeft+n.scrollSpeed:e.pageX-s.overflowOffset.left<n.scro
this)},_splice:function(e){for(var t=0;e.length>t;t++)e[t]===this&&e.splice(t,1) llSensitivity&&(a.scrollLeft=o=a.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.ax
},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._ is||(e.pageY-t(r).scrollTop()<n.scrollSensitivity?o=t(r).scrollTop(t(r).scrollTo
splice(t),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOp p()-n.scrollSpeed):t(window).height()-(e.pageY-t(r).scrollTop())<n.scrollSensiti
tion:function(t,i){if("accept"===t)this.accept=e.isFunction(i)?i:function(e){ret vity&&(o=t(r).scrollTop(t(r).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||
urn e.is(i)};else if("scope"===t){var s=e.ui.ddmanager.droppables[this.options.s (e.pageX-t(r).scrollLeft()<n.scrollSensitivity?o=t(r).scrollLeft(t(r).scrollLeft
cope];this._splice(s),this._addToManager(i)}this._super(t,i)},_activate:function ()-n.scrollSpeed):t(window).width()-(e.pageX-t(r).scrollLeft())<n.scrollSensitiv
(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.addClass ity&&(o=t(r).scrollLeft(t(r).scrollLeft()+n.scrollSpeed)))),o!==!1&&t.ui.ddmanag
(this.options.activeClass),i&&this._trigger("activate",t,this.ui(i))},_deactivat er&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(s,e)}}),t.ui.plugin.add("dra
e:function(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.elemen ggable","snap",{start:function(e,i,s){var n=s.options;s.snapElements=[],t(n.snap
t.removeClass(this.options.activeClass),i&&this._trigger("deactivate",t,this.ui( .constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(
i))},_over:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element ){var e=t(this),i=e.offset();this!==s.element[0]&&s.snapElements.push({item:this
)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.elemen ,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:fun
t)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),thi ction(e,i,s){var n,o,a,r,h,l,c,u,d,p,f=s.options,g=f.snapTolerance,m=i.offset.le
s._trigger("over",t,this.ui(i)))},_out:function(t){var i=e.ui.ddmanager.current; ft,_=m+s.helperProportions.width,v=i.offset.top,b=v+s.helperProportions.height;f
i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.elemen or(d=s.snapElements.length-1;d>=0;d--)h=s.snapElements[d].left-s.margins.left,l=
t[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeCla h+s.snapElements[d].width,c=s.snapElements[d].top-s.margins.top,u=c+s.snapElemen
ss(this.options.hoverClass),this._trigger("out",t,this.ui(i)))},_drop:function(t ts[d].height,h-g>_||m>l+g||c-g>b||v>u+g||!t.contains(s.snapElements[d].item.owne
,i){var s=i||e.ui.ddmanager.current,n=!1;return s&&(s.currentItem||s.element)[0] rDocument,s.snapElements[d].item)?(s.snapElements[d].snapping&&s.options.snap.re
!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable- lease&&s.options.snap.release.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.
dragging").each(function(){var i=e(this).droppable("instance");return i.options. snapElements[d].item})),s.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(n
greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i. =g>=Math.abs(c-b),o=g>=Math.abs(u-v),a=g>=Math.abs(h-_),r=g>=Math.abs(l-m),n&&(i
element[0],s.currentItem||s.element)&&e.ui.intersect(s,e.extend(i,{offset:i.elem .position.top=s._convertPositionTo("relative",{top:c-s.helperProportions.height,
ent.offset()}),i.options.tolerance,t)?(n=!0,!1):void 0}),n?!1:this.accept.call(t left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u,left:0})
his.element[0],s.currentItem||s.element)?(this.options.activeClass&&this.element .top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helper
.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.rem Proportions.width}).left),r&&(i.position.left=s._convertPositionTo("relative",{t
oveClass(this.options.hoverClass),this._trigger("drop",t,this.ui(s)),this.elemen op:0,left:l}).left)),p=n||o||a||r,"outer"!==f.snapMode&&(n=g>=Math.abs(c-v),o=g>
t):!1):!1},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.hel =Math.abs(u-b),a=g>=Math.abs(h-m),r=g>=Math.abs(l-_),n&&(i.position.top=s._conve
per,position:e.position,offset:e.positionAbs}}}),e.ui.intersect=function(){funct rtPositionTo("relative",{top:c,left:0}).top),o&&(i.position.top=s._convertPositi
ion e(e,t,i){return e>=t&&t+i>e}return function(t,i,s,n){if(!i.offset)return!1;v onTo("relative",{top:u-s.helperProportions.height,left:0}).top),a&&(i.position.l
ar a=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs|| eft=s._convertPositionTo("relative",{top:0,left:h}).left),r&&(i.position.left=s.
t.position.absolute).top+t.margins.top,r=a+t.helperProportions.width,h=o+t.helpe _convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left)),!
rProportions.height,l=i.offset.left,u=i.offset.top,d=l+i.proportions().width,c=u s.snapElements[d].snapping&&(n||o||a||r||p)&&s.options.snap.snap&&s.options.snap
+i.proportions().height;switch(s){case"fit":return a>=l&&d>=r&&o>=u&&c>=h;case"i .snap.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),
ntersect":return a+t.helperProportions.width/2>l&&d>r-t.helperProportions.width/ s.snapElements[d].snapping=n||o||a||r||p)}}),t.ui.plugin.add("draggable","stack"
2&&o+t.helperProportions.height/2>u&&c>h-t.helperProportions.height/2;case"point ,{start:function(e,i,s){var n,o=s.options,a=t.makeArray(t(o.stack)).sort(functio
er":return e(n.pageY,u,i.proportions().height)&&e(n.pageX,l,i.proportions().widt n(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),1
h);case"touch":return(o>=u&&c>=o||h>=u&&c>=h||u>o&&h>c)&&(a>=l&&d>=a||r>=l&&d>=r 0)||0)});a.length&&(n=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each(function(e
||l>a&&r>d);default:return!1}}}(),e.ui.ddmanager={current:null,droppables:{"defa ){t(this).css("zIndex",n+e)}),this.css("zIndex",n+a.length))}}),t.ui.plugin.add(
ult":[]},prepareOffsets:function(t,i){var s,n,a=e.ui.ddmanager.droppables[t.opti "draggable","zIndex",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css(
ons.scope]||[],o=i?i.type:null,r=(t.currentItem||t.element).find(":data(ui-dropp "zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e
able)").addBack();e:for(s=0;a.length>s;s++)if(!(a[s].options.disabled||t&&!a[s]. ,i,s){var n=s.options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}}),t.ui.dra
accept.call(a[s].element[0],t.currentItem||t.element))){for(n=0;r.length>n;n++)i ggable,t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"r
f(r[n]===a[s].element[0]){a[s].proportions().height=0;continue e}a[s].visible="n esize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"s
one"!==a[s].element.css("display"),a[s].visible&&("mousedown"===o&&a[s]._activat wing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gri
e.call(a[s],i),a[s].offset=a[s].element.offset(),a[s].proportions({width:a[s].el psmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,
ement[0].offsetWidth,height:a[s].element[0].offsetHeight}))}},drop:function(t,i) maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,star
{var s=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice() t:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t
,function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect( ){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("
t,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.d overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return e[s
isabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element ]>0?!0:(e[s]=1,n=e[s]>0,e[s]=0,n)},_create:function(){var e,i=this.options,s=thi
)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),s},dragStart: s;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,asp
function(t,i){t.element.parentsUntil("body").bind("scroll.droppable",function(){ ectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElement
t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)})},drag:function( s:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null})
t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui. ,this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&
ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&& &(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>"
!this.greedyChild&&this.visible){var s,n,a,o=e.ui.intersect(t,this,this.options. ).css({position:this.element.css("position"),width:this.element.outerWidth(),hei
tolerance,i),r=!o&&this.isover?"isout":o&&!this.isover?"isover":null;r&&(this.op ght:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css
tions.greedy&&(n=this.options.scope,a=this.element.parents(":data(ui-droppable)" ("left")})),this.element=this.element.parent().data("ui-resizable",this.element.
).filter(function(){return e(this).droppable("instance").options.scope===n}),a.l resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElemen
ength&&(s=e(a[0]).droppable("instance"),s.greedyChild="isover"===r)),s&&"isover" t.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBot
===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["isout"===r?"iso tom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css
ver":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s&&"isout"===r&& ("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.or
(s.isout=!1,s.isover=!0,s._over.call(s,i)))}})},dragStop:function(t,i){t.element iginalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("r
.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||e.u esize","none"),this._proportionallyResizeElements.push(this.originalElement.css(
i.ddmanager.prepareOffsets(t,i)}},e.ui.droppable;var y="ui-effects-",b=e;e.effec {position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._p
ts={effect:{}},function(e,t){function i(e,t,i){var s=d[t.type]||{};return null== roportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mous
e?i||!t.def?null:t.def:(e=s.floor?~~e:parseFloat(e),isNaN(e)?t.def:s.mod?(e+s.mo eenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handl
d)%s.mod:0>e?0:e>s.max?s.max:e)}function s(i){var s=l(),n=s._rgba=[];return i=i. es.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui
toLowerCase(),f(h,function(e,a){var o,r=a.re.exec(i),h=r&&a.parse(r),l=a.space|| -resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(
"rgba";return h?(o=s[l](h),s[u[l].cache]=o[u[l].cache],n=s._rgba=o._rgba,!1):t}) ){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeDa
,n.length?("0,0,0,0"===n.join()&&e.extend(n,a.transparent),s):a[i]}function n(e, ta("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};retu
t,i){return i=(i+1)%1,1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+6*(t-e)*(2/3-i):e}var a, rn this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.c
o="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopC ss({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e
olor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r .css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement
=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d .css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption
{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3], :function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),th
e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\. is._setupHandles();break;default:}},_setupHandles:function(){var e,i,s,n,o,a=thi
\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.5 s.options,r=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.eleme
5*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:fu nt).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-r
nction(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/# esizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw
([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16), :".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===Stri
parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\ ng)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles
s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/ .split(","),this.handles={},i=0;s.length>i;i++)e=t.trim(s[i]),n="ui-resizable-"+
,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],l=e.Color e,o=t("<div>"),this._addClass(o,"ui-resizable-handle "+n),o.css({zIndex:a.zIndex
=function(t,i,s,n){return new e.Color.fn.parse(t,i,s,n)},u={rgba:{props:{red:{id }),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderAxis=fu
x:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{prop nction(e){var i,s,n,o;e=e||this.element;for(i in this.handles)this.handles[i].co
s:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2 nstructor===String?this.handles[i]=this.element.children(this.handles[i]).first(
,type:"percent"}}}},d={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:36 ).show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(
0,floor:!0}},c=l.support={},p=e("<p>")[0],f=e.each;p.style.cssText="background-c this.handles[i]),this._on(this.handles[i],{mousedown:r._mouseDown})),this.elemen
olor:rgba(1,1,1,.5)",c.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(u,funct tIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|butt
ion(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.exten on)$/i)&&(s=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?s.outerH
d(l.prototype,{parse:function(n,o,r,h){if(n===t)return this._rgba=[null,null,nul eight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"B
l,null],this;(n.jquery||n.nodeType)&&(n=e(n).css(o),o=t);var d=this,c=e.type(n), ottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,o),this._proportionallyRes
p=this._rgba=[];return o!==t&&(n=[n,o,r,h],c="array"),"string"===c?this.parse(s( ize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.e
n)||a._default):"array"===c?(f(u.rgba.props,function(e,t){p[t.idx]=i(n[t.idx],t) lement),this._handles=this._handles.add(this.element.find(".ui-resizable-handle"
}),this):"object"===c?(n instanceof l?f(u,function(e,t){n[t.cache]&&(d[t.cache]= )),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.re
n[t.cache].slice())}):f(u,function(t,s){var a=s.cache;f(s.props,function(e,t){if sizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|
(!d[a]&&s.to){if("alpha"===e||null==n[e])return;d[a]=s.to(d._rgba)}d[a][t.idx]=i s|w)/i)),r.axis=o&&o[1]?o[1]:"se")}),a.autoHide&&(this._handles.hide(),this._add
(n[e],t,!0)}),d[a]&&0>e.inArray(null,d[a].slice(0,3))&&(d[a][3]=1,s.from&&(d._rg Class("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove(
ba=s.from(d[a])))}),this):t},is:function(e){var i=l(e),s=!0,n=this;return f(u,fu )},_mouseCapture:function(e){var i,s,n=!1;for(i in this.handles)s=t(this.handles
nction(e,a){var o,r=i[a.cache];return r&&(o=n[a.cache]||a.to&&a.to(n._rgba)||[], [i])[0],(s===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disab
f(a.props,function(e,i){return null!=r[i.idx]?s=r[i.idx]===o[i.idx]:t})),s}),s}, led&&n},_mouseStart:function(e){var i,s,n,o=this.options,a=this.element;return t
_space:function(){var e=[],t=this;return f(u,function(i,s){t[s.cache]&&e.push(i) his.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this.
}),e.pop()},transition:function(e,t){var s=l(e),n=s._space(),a=u[n],o=0===this.a _num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0
lpha()?l("transparent"):this,r=o[a.cache]||a.to(o._rgba),h=r.slice();return s=s[ ,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.posit
a.cache],f(a.props,function(e,n){var a=n.idx,o=r[a],l=s[a],u=d[n.type]||{};null! ion={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this
==l&&(null===o?h[a]=l:(u.mod&&(l-o>u.mod/2?o+=u.mod:o-l>u.mod/2&&(o-=u.mod)),h[a .helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._he
]=i((l-o)*t+o,n)))}),this[n](h)},blend:function(t){if(1===this._rgba[3])return t lper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.hei
his;var i=this._rgba.slice(),s=i.pop(),n=l(t)._rgba;return l(e.map(i,function(e, ght()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.he
t){return(1-s)*n[t]+s*e}))},toRgbaString:function(){var t="rgba(",i=e.map(this._ ight()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.
rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),t="rgb(" pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio
),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),func :this.originalSize.width/this.originalSize.height||1,n=t(".ui-resizable-"+this.a
tion(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});retu xis).css("cursor"),t("body").css("cursor","auto"===n?this.axis+"-resize":n),this
rn 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=th ._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:fu
is._rgba.slice(),s=i.pop();return t&&i.push(~~(255*s)),"#"+e.map(i,function(e){r nction(e){var i,s,n=this.originalMousePosition,o=this.axis,a=e.pageX-n.left||0,r
eturn e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function() =e.pageY-n.top||0,h=this._change[o];return this._updatePrevProperties(),h?(i=h.a
{return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.protot pply(this,[e,a,r]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio|
ype=l.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null |e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCa
,null,null,e[3]];var t,i,s=e[0]/255,n=e[1]/255,a=e[2]/255,o=e[3],r=Math.max(s,n, che(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._p
a),h=Math.min(s,n,a),l=r-h,u=r+h,d=.5*u;return t=h===r?0:s===r?60*(n-a)/l+360:n= roportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject
==r?60*(a-s)/l+120:60*(s-n)/l+240,i=0===l?0:.5>=d?l/u:l/(2-u),[Math.round(t)%360 (s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._app
,i,d,null==o?1:o]},u.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2] lyChanges()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,s,n,o,a,r,h,l
)return[null,null,null,e[3]];var t=e[0]/360,i=e[1],s=e[2],a=e[3],o=.5>=s?s*(1+i) =this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,
:s+i-s*i,r=2*s-o;return[Math.round(255*n(r,o,t+1/3)),Math.round(255*n(r,o,t)),Ma s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&this._hasScroll(i[0],"left")?0:
th.round(255*n(r,o,t-1/3)),a]},f(u,function(s,n){var a=n.props,o=n.cache,h=n.to, c.sizeDiff.height,o=s?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.he
u=n.from;l.fn[s]=function(s){if(h&&!this[o]&&(this[o]=h(this._rgba)),s===t)retur lper.height()-n},r=parseFloat(c.element.css("left"))+(c.position.left-c.original
n this[o].slice();var n,r=e.type(s),d="array"===r||"object"===r?s:arguments,c=th Position.left)||null,h=parseFloat(c.element.css("top"))+(c.position.top-c.origin
is[o].slice();return f(a,function(e,t){var s=d["object"===r?e:t.idx];null==s&&(s alPosition.top)||null,l.animate||this.element.css(t.extend(a,{top:h,left:r})),c.
=c[t.idx]),c[t.idx]=i(s,t)}),u?(n=l(u(c)),n[o]=c,n):l(c)},f(a,function(t,i){l.fn helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.anima
[t]||(l.fn[t]=function(n){var a,o=e.type(n),h="alpha"===t?this._hsla?"hsla":"rgb te&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeCla
a":s,l=this[h](),u=l[i.idx];return"undefined"===o?u:("function"===o&&(n=n.call(t ss("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.
his,u),o=e.type(n)),null==n&&i.empty?this:("string"===o&&(a=r.exec(n),a&&(n=u+pa remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.positi
rseFloat(a[2])*("+"===a[1]?1:-1))),l[i.idx]=n,this[h](l)))})})}),l.hook=function on.top,left:this.position.left},this.prevSize={width:this.size.width,height:this
(t){var i=t.split(" ");f(i,function(t,i){e.cssHooks[i]={set:function(t,n){var a, .size.height}},_applyChanges:function(){var t={};return this.position.top!==this
o,r="";if("transparent"!==n&&("string"!==e.type(n)||(a=s(n)))){if(n=l(a||n),!c.r .prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prev
gba&&1!==n._rgba[3]){for(o="backgroundColor"===i?t.parentNode:t;(""===r||"transp Position.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.
arent"===r)&&o&&o.style;)try{r=e.css(o,"backgroundColor"),o=o.parentNode}catch(h width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(
){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{t.style[i t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:f
]=n}catch(h){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=l(t.elem,i),t.en unction(t){var e,i,s,n,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a
d=l(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.p .minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._i
os))}})},l.hook(o),e.cssHooks.borderColor={expand:function(e){var t={};return f( sNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHe
["Top","Right","Bottom","Left"],function(i,s){t["border"+s+"Color"]=e}),t}},a=e. ight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,s=o.minWidth/t
Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gra his.aspectRatio,i=o.maxHeight*this.aspectRatio,n=o.maxWidth/this.aspectRatio,e>o
y:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive .minWidth&&(o.minWidth=e),s>o.minHeight&&(o.minHeight=s),o.maxWidth>i&&(o.maxWid
:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white: th=i),o.maxHeight>n&&(o.maxHeight=n)),this._vBoundaries=o},_updateCache:function
"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(b (t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left
),function(){function t(t){var i,s,n=t.ownerDocument.defaultView?t.ownerDocument =t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.heigh
.defaultView.getComputedStyle(t,null):t.currentStyle,a={};if(n&&n.length&&n[0]&& t)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.widt
n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(a[e.camelCase(i)]=n[i h)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return
]);else for(i in n)"string"==typeof n[i]&&(a[i]=n[i]);return a}function i(t,i){v this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.widt
ar s,a,o={};for(s in i)a=i[s],t[s]!==a&&(n[s]||(e.fx.step[s]||!isNaN(parseFloat( h)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.widt
a)))&&(o[s]=a));return o}var s=["add","remove","toggle"],n={border:1,borderBotto h),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width
m:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1, -t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=thi
padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","bor s._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&
derTopStyle"],function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr &e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minW
||1===e.pos&&!e.setAttr)&&(b.style(e.elem,i,e.end),e.setAttr=!0)}}),e.fn.addBack idth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=thi
||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObj s.originalPosition.left+this.originalSize.width,h=this.originalPosition.top+this
ect.filter(e))}),e.effects.animateClass=function(n,a,o,r){var h=e.speed(a,o,r);r .originalSize.height,l=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=
eturn this.queue(function(){var a,o=e(this),r=o.attr("class")||"",l=h.children?o e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.max
.find("*").addBack():o;l=l.map(function(){var i=e(this);return{el:i,start:t(this Height),o&&l&&(t.left=r-e.minWidth),s&&l&&(t.left=r-e.maxWidth),a&&c&&(t.top=h-e
)}}),a=function(){e.each(s,function(e,t){n[t]&&o[t+"Class"](n[t])})},a(),l=l.map .minHeight),n&&c&&(t.top=h-e.maxHeight),t.width||t.height||t.left||!t.top?t.widt
(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this} h||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDi
),o.attr("class",r),l=l.map(function(){var t=this,i=e.Deferred(),s=e.extend({},h mensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRi
,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff, ghtWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddin
s),i.promise()}),e.when.apply(e,l.get()).done(function(){a(),e.each(arguments,fu gTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e+
nction(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),h.complete.c +)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],wid
all(o[0])})})},e.fn.extend({addClass:function(t){return function(i,s,n,a){return th:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeEle
s?e.effects.animateClass.call(this,{add:i},s,n,a):t.apply(this,arguments)}}(e.f ments.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResiz
n.addClass),removeClass:function(t){return function(i,s,n,a){return arguments.le eElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensi
ngth>1?e.effects.animateClass.call(this,{remove:i},s,n,a):t.apply(this,arguments ons||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({heigh
)}}(e.fn.removeClass),toggleClass:function(t){return function(i,s,n,a,o){return" t:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions
boolean"==typeof s||void 0===s?n?e.effects.animateClass.call(this,s?{add:i}:{rem .width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elem
ove:i},n,a,o):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i entOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overf
},s,n,a)}}(e.fn.toggleClass),switchClass:function(t,i,s,n,a){return e.effects.an low:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({
imateClass.call(this,{add:i,remove:t},s,n,a)}})}(),function(){function t(t,i,s,n width:this.element.outerWidth(),height:this.element.outerHeight(),position:"abso
){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isF lute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:+
unction(i)&&(n=i,s=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(n=s,s=i,i={ +i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.el
}),e.isFunction(s)&&(n=s,s=null),i&&e.extend(t,i),s=s||i.duration,t.duration=e.f ement},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:funct
x.off?0:"number"==typeof s?s:s in e.fx.speeds?e.fx.speeds[s]:e.fx.speeds._defaul ion(t,e){var i=this.originalSize,s=this.originalPosition;return{left:s.left+e,wi
t,t.complete=n||i.complete,t}function i(t){return!t||"number"==typeof t||e.fx.sp dth:i.width-e}},n:function(t,e,i){var s=this.originalSize,n=this.originalPositio
eeds[t]?!0:"string"!=typeof t||e.effects.effect[t]?e.isFunction(t)?!0:"object"!= n;return{top:n.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.or
typeof t||t.effect?!1:!0:!0}e.extend(e.effects,{version:"1.11.2",save:function(e iginalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(th
,t){for(var i=0;t.length>i;i++)null!==t[i]&&e.data(y+t[i],e[0].style[t[i]])},res is,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.e
tore:function(e,t){var i,s;for(s=0;t.length>s;s++)null!==t[s]&&(i=e.data(y+t[s]) xtend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},
,void 0===i&&(i=""),e.css(t[s],i))},setMode:function(e,t){return"toggle"===t&&(t ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._ch
=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var i,s;switch(e[0] ange.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.a
){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e pply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e
[0]/t.height}switch(e[1]){case"left":s=0;break;case"center":s=.5;break;case"righ ,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.
t":s=1;break;default:s=e[1]/t.width}return{x:s,y:i}},createWrapper:function(t){i ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,elem
f(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWid ent:this.element,helper:this.helper,position:this.position,size:this.size,origin
th(!0),height:t.outerHeight(!0),"float":t.css("float")},s=e("<div></div>").addCl alSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.
ass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:" add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),
none",margin:0,padding:0}),n={width:t.width(),height:t.height()},a=document.acti s=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].
veElement;try{a.id}catch(o){a=document.body}return t.wrap(s),(t[0]===a||e.contai nodeName),a=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=o?0:i.sizeDiff.wi
ns(t[0],a))&&e(a).focus(),s=t.parent(),"static"===t.css("position")?(s.css({posi dth,h={width:i.size.width-r,height:i.size.height-a},l=parseFloat(i.element.css("
tion:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("pos left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.c
ition"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],functio ss("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.ext
n(e,s){i[s]=t.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),t.css({position:" end(h,c&&l?{top:c,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing
relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(n),s.css(i).show()},r ,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFlo
emoveWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui- at(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat
effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e( (i.element.css("left"))};n&&n.length&&t(n[0]).css({width:s.width,height:s.height
i).focus()),t},setTransition:function(t,i,s,n){return n=n||{},e.each(i,function( }),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable",
e,i){var a=t.cssUnit(i);a[0]>0&&(n[i]=a[0]*s+a[1])}),n}}),e.fn.extend({effect:fu "containment",{start:function(){var e,i,s,n,o,a,r,h=t(this).resizable("instance"
nction(){function i(t){function i(){e.isFunction(a)&&a.call(n[0]),e.isFunction(t ),l=h.options,c=h.element,u=l.containment,d=u instanceof t?u.get(0):/parent/.tes
)&&t()}var n=e(this),a=s.complete,r=s.mode;(n.is(":hidden")?"hide"===r:"show"=== t(u)?c.parent().get(0):u;d&&(h.containerElement=t(d),/document/.test(u)||u===doc
r)?(n[r](),i()):o.call(n[0],s,i)}var s=t.apply(this,arguments),n=s.mode,a=s.queu ument?(h.containerOffset={left:0,top:0},h.containerPosition={left:0,top:0},h.par
e,o=e.effects.effect[s.effect];return e.fx.off||!o?n?this[n](s.duration,s.comple entData={element:t(document),left:0,top:0,width:t(document).width(),height:t(doc
te):this.each(function(){s.complete&&s.complete.call(this)}):a===!1?this.each(i) ument).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","
:this.queue(a||"fx",i)},show:function(e){return function(s){if(i(s))return e.app Right","Left","Bottom"]).each(function(t,s){i[t]=h._num(e.css("padding"+s))}),h.
ly(this,arguments);var n=t.apply(this,arguments);return n.mode="show",this.effec containerOffset=e.offset(),h.containerPosition=e.position(),h.containerSize={hei
t.call(this,n)}}(e.fn.show),hide:function(e){return function(s){if(i(s))return e ght:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=h.containerOffset,n=h.cont
.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="hide",this.e ainerSize.height,o=h.containerSize.width,a=h._hasScroll(d,"left")?d.scrollWidth:
ffect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(s){if(i(s)||" o,r=h._hasScroll(d)?d.scrollHeight:n,h.parentData={element:d,left:s.left,top:s.t
boolean"==typeof s)return e.apply(this,arguments);var n=t.apply(this,arguments); op,width:a,height:r}))},resize:function(e){var i,s,n,o,a=t(this).resizable("inst
return n.mode="toggle",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function( ance"),r=a.options,h=a.containerOffset,l=a.position,c=a._aspectRatio||e.shiftKey
t){var i=this.css(t),s=[];return e.each(["em","px","%","pt"],function(e,t){i.ind ,u={top:0,left:0},d=a.containerElement,p=!0;d[0]!==document&&/static/.test(d.css
exOf(t)>0&&(s=[parseFloat(i),t])}),s}})}(),function(){var t={};e.each(["Quad","C ("position"))&&(u=h),l.left<(a._helper?h.left:0)&&(a.size.width=a.size.width+(a.
ubic","Quart","Quint","Expo"],function(e,i){t[i]=function(t){return Math.pow(t,e _helper?a.position.left-h.left:a.position.left-u.left),c&&(a.size.height=a.size.
+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:functio width/a.aspectRatio,p=!1),a.position.left=r.helper?h.left:0),l.top<(a._helper?h.
n(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math. top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-h.top:a.position.
pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e* top),c&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper
(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return ?h.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|ab
1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.ea solute/.test(a.containerElement.css("position")),n&&o?(a.offset.left=a.parentDat
sing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing[" a.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.l
easeInOut"+t]=function(e){return.5>e?i(2*e)/2:1-i(-2*e+2)/2}})}(),e.effects,e.ef eft=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.si
fects.effect.blind=function(t,i){var s,n,a,o=e(this),r=/up|down|vertical/,h=/up| zeDiff.width+(a._helper?a.offset.left-u.left:a.offset.left-h.left)),s=Math.abs(a
left|vertical|horizontal/,l=["position","top","bottom","left","right","height"," .sizeDiff.height+(a._helper?a.offset.top-u.top:a.offset.top-h.top)),i+a.size.wid
width"],u=e.effects.setMode(o,t.mode||"hide"),d=t.direction||"up",c=r.test(d),p= th>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.s
c?"height":"width",f=c?"top":"left",m=h.test(d),g={},v="show"===u;o.parent().is( ize.width/a.aspectRatio,p=!1)),s+a.size.height>=a.parentData.height&&(a.size.hei
".ui-effects-wrapper")?e.effects.save(o.parent(),l):e.effects.save(o,l),o.show() ght=a.parentData.height-s,c&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p|
,s=e.effects.createWrapper(o).css({overflow:"hidden"}),n=s[p](),a=parseFloat(s.c |(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.w
ss(f))||0,g[p]=v?n:0,m||(o.css(c?"bottom":"right",0).css(c?"top":"left","auto"). idth=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(
css({position:"absolute"}),g[f]=v?a:n+a),v&&(s.css(p,0),m||s.css(f,a+n)),s.anima this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.containerPositio
te(g,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"=== n,o=e.containerElement,a=t(e.helper),r=a.offset(),h=a.outerWidth()-e.sizeDiff.wi
u&&o.hide(),e.effects.restore(o,l),e.effects.removeWrapper(o),i()}})},e.effects. dth,l=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o
effect.bounce=function(t,i){var s,n,a,o=e(this),r=["position","top","bottom","le .css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l}),e._
ft","right","height","width"],h=e.effects.setMode(o,t.mode||"effect"),l="hide"== helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-n
=h,u="show"===h,d=t.direction||"up",c=t.distance,p=t.times||5,f=2*p+(u||l?1:0),m .left-s.left,width:h,height:l})}}),t.ui.plugin.add("resizable","alsoResize",{sta
=t.duration/f,g=t.easing,v="up"===d||"down"===d?"top":"left",y="up"===d||"left"= rt:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).ea
==d,b=o.queue(),_=b.length;for((u||l)&&r.push("opacity"),e.effects.save(o,r),o.s ch(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e
how(),e.effects.createWrapper(o),c||(c=o["top"===v?"outerHeight":"outerWidth"]() .width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parse
/3),u&&(a={opacity:1},a[v]=0,o.css("opacity",0).css(v,y?2*-c:2*c).animate(a,m,g) Float(e.css("top"))})})},resize:function(e,i){var s=t(this).resizable("instance"
),l&&(c/=Math.pow(2,p-1)),a={},a[v]=0,s=0;p>s;s++)n={},n[v]=(y?"-=":"+=")+c,o.an ),n=s.options,o=s.originalSize,a=s.originalPosition,r={height:s.size.height-o.he
imate(n,m,g).animate(a,m,g),c=l?2*c:c/2;l&&(n={opacity:0},n[v]=(y?"-=":"+=")+c,o ight||0,width:s.size.width-o.width||0,top:s.position.top-a.top||0,left:s.positio
.animate(n,m,g)),o.queue(function(){l&&o.hide(),e.effects.restore(o,r),e.effects n.left-a.left||0};t(n.alsoResize).each(function(){var e=t(this),s=t(this).data("
.removeWrapper(o),i()}),_>1&&b.splice.apply(b,[1,0].concat(b.splice(_,f+1))),o.d ui-resizable-alsoresize"),n={},o=e.parents(i.originalElement[0]).length?["width"
equeue()},e.effects.effect.clip=function(t,i){var s,n,a,o=e(this),r=["position", ,"height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(s[e]||0
"top","bottom","left","right","height","width"],h=e.effects.setMode(o,t.mode||"h )+(r[e]||0);i&&i>=0&&(n[e]=i||null)}),e.css(n)})},stop:function(){t(this).remove
ide"),l="show"===h,u=t.direction||"vertical",d="vertical"===u,c=d?"height":"widt Data("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:fu
h",p=d?"top":"left",f={};e.effects.save(o,r),o.show(),s=e.effects.createWrapper( nction(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.
o).css({overflow:"hidden"}),n="IMG"===o[0].tagName?s:o,a=n[c](),l&&(n.css(c,0),n clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.he
.css(p,a/2)),f[c]=l?a:0,f[p]=l?0:a/2,n.animate(f,{queue:!1,duration:t.duration,e ight,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-gho
asing:t.easing,complete:function(){l||o.hide(),e.effects.restore(o,r),e.effects. st"),t.uiBackCompat!==!1&&"string"==typeof e.options.ghost&&e.ghost.addClass(thi
removeWrapper(o),i()}})},e.effects.effect.drop=function(t,i){var s,n=e(this),a=[ s.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).res
"position","top","bottom","left","right","opacity","height","width"],o=e.effects izable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.heigh
.setMode(n,t.mode||"hide"),r="show"===o,h=t.direction||"left",l="up"===h||"down" t,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.gh
===h?"top":"left",u="up"===h||"left"===h?"pos":"neg",d={opacity:r?1:0};e.effects ost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("r
.save(n,a),n.show(),e.effects.createWrapper(n),s=t.distance||n["top"===l?"outerH esizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.op
eight":"outerWidth"](!0)/2,r&&n.css("opacity",0).css(l,"pos"===u?-s:s),d[l]=(r?" tions,n=i.size,o=i.originalSize,a=i.originalPosition,r=i.axis,h="number"==typeof
pos"===u?"+=":"-=":"pos"===u?"-=":"+=")+s,n.animate(d,{queue:!1,duration:t.durat s.grid?[s.grid,s.grid]:s.grid,l=h[0]||1,c=h[1]||1,u=Math.round((n.width-o.width
ion,easing:t.easing,complete:function(){"hide"===o&&n.hide(),e.effects.restore(n )/l)*l,d=Math.round((n.height-o.height)/c)*c,p=o.width+u,f=o.height+d,g=s.maxWid
,a),e.effects.removeWrapper(n),i()}})},e.effects.effect.explode=function(t,i){fu th&&p>s.maxWidth,m=s.maxHeight&&f>s.maxHeight,_=s.minWidth&&s.minWidth>p,v=s.min
nction s(){b.push(this),b.length===d*c&&n()}function n(){p.css({visibility:"visi Height&&s.minHeight>f;s.grid=h,_&&(p+=l),v&&(f+=c),g&&(p-=l),m&&(f-=c),/^(se|s|e
ble"}),e(b).remove(),m||p.hide(),i()}var a,o,r,h,l,u,d=t.pieces?Math.round(Math. )$/.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.
sqrt(t.pieces)):3,c=d,p=e(this),f=e.effects.setMode(p,t.mode||"hide"),m="show"== size.height=f,i.position.top=a.top-d):/^(sw)$/.test(r)?(i.size.width=p,i.size.he
=f,g=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/c), ight=f,i.position.left=a.left-u):((0>=f-c||0>=p-l)&&(e=i._getPaddingPlusBorderDi
y=Math.ceil(p.outerHeight()/d),b=[];for(a=0;d>a;a++)for(h=g.top+a*y,u=a-(d-1)/2, mensions(this)),f-c>0?(i.size.height=f,i.position.top=a.top-d):(f=c-e.height,i.s
o=0;c>o;o++)r=g.left+o*v,l=o-(c-1)/2,p.clone().appendTo("body").wrap("<div></div ize.height=f,i.position.top=a.top+o.height-f),p-l>0?(i.size.width=p,i.position.l
>").css({position:"absolute",visibility:"visible",left:-o*v,top:-a*y}).parent(). eft=a.left-u):(p=l-e.width,i.size.width=p,i.position.left=a.left+o.width-p))}}),
addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width: t.ui.resizable,t.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",a
v,height:y,left:r+(m?l*v:0),top:h+(m?u*y:0),opacity:m?0:1}).animate({left:r+(m?0 utoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":
:l*v),top:h+(m?0:u*y),opacity:m?1:0},t.duration||500,t.easing,s)},e.effects.effe "ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,heigh
ct.fade=function(t,i){var s=e(this),n=e.effects.setMode(s,t.mode||"toggle");s.an t:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,positi
imate({opacity:n},{queue:!1,duration:t.duration,easing:t.easing,complete:i})},e. on:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(
effects.effect.fold=function(t,i){var s,n,a=e(this),o=["position","top","bottom" this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:nu
,"left","right","height","width"],r=e.effects.setMode(a,t.mode||"hide"),h="show" ll,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dra
===r,l="hide"===r,u=t.size||15,d=/([0-9]+)%/.exec(u),c=!!t.horizFirst,p=h!==c,f= gStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},si
p?["width","height"]:["height","width"],m=t.duration/2,g={},v={};e.effects.save( zeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,min
a,o),a.show(),s=e.effects.createWrapper(a).css({overflow:"hidden"}),n=p?[s.width Width:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!
(),s.height()]:[s.height(),s.width()],d&&(u=parseInt(d[1],10)/100*n[l?0:1]),h&&s 0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].styl
.css(c?{height:0,width:u}:{height:u,width:0}),g[f[0]]=h?n[0]:u,v[f[1]]=h?n[1]:0, e.display,width:this.element[0].style.width,minHeight:this.element[0].style.minH
s.animate(g,m,t.easing).animate(v,m,t.easing,function(){l&&a.hide(),e.effects.re eight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.hei
store(a,o),e.effects.removeWrapper(a),i()})},e.effects.effect.highlight=function ght},this.originalPosition={parent:this.element.parent(),index:this.element.pare
(t,i){var s=e(this),n=["backgroundImage","backgroundColor","opacity"],a=e.effect nt().children().index(this.element)},this.originalTitle=this.element.attr("title
s.setMode(s,t.mode||"show"),o={backgroundColor:s.css("backgroundColor")};"hide"= "),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.
==a&&(o.opacity=0),e.effects.save(s,n),s.show().css({backgroundImage:"none",back originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWra
groundColor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing: pper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._add
t.easing,complete:function(){"hide"===a&&s.hide(),e.effects.restore(s,n),i()}})} Class("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._crea
,e.effects.effect.size=function(t,i){var s,n,a,o=e(this),r=["position","top","bo teButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),thi
ttom","left","right","width","height","overflow","opacity"],h=["position","top", s.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this.
"bottom","left","right","overflow","opacity"],l=["width","height","overflow"],u= _trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:fu
["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom nction(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.
"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=e.eff document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPositio
ects.setMode(o,t.mode||"effect"),f=t.restore||"effect"!==p,m=t.scale||"both",g=t n;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().c
.origin||["middle","center"],v=o.css("position"),y=f?r:h,b={height:0,width:0,out ss(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.el
erHeight:0,outerWidth:0};"show"===p&&o.show(),s={height:o.height(),width:o.width ement.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.lengt
(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()},"toggle"===t.mode&&"sh h&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},
ow"===p?(o.from=t.to||b,o.to=t.from||s):(o.from=t.from||("show"===p?b:s),o.to=t. widget:function(){return this.uiDialog
to||("hide"===p?b:s)),a={from:{y:o.from.height/s.height,x:o.from.width/s.width}, },disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._
to:{y:o.to.height/s.height,x:o.to.width/s.width}},("box"===m||"both"===m)&&(a.fr trigger("beforeClose",e)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._
om.y!==a.to.y&&(y=y.concat(d),o.from=e.effects.setTransition(o,d,a.from.y,o.from destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigge
),o.to=e.effects.setTransition(o,d,a.to.y,o.to)),a.from.x!==a.to.x&&(y=y.concat( r("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this.
c),o.from=e.effects.setTransition(o,c,a.from.x,o.from),o.to=e.effects.setTransit _hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpe
ion(o,c,a.to.x,o.to))),("content"===m||"both"===m)&&a.from.y!==a.to.y&&(y=y.conc n:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveT
at(u).concat(l),o.from=e.effects.setTransition(o,u,a.from.y,o.from),o.to=e.effec oTop:function(e,i){var s=!1,n=this.uiDialog.siblings(".ui-front:visible").map(fu
ts.setTransition(o,u,a.to.y,o.to)),e.effects.save(o,y),o.show(),e.effects.create nction(){return+t(this).css("z-index")}).get(),o=Math.max.apply(null,n);return o
Wrapper(o),o.css("overflow","hidden").css(o.from),g&&(n=e.effects.getBaseline(g, >=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),s=!0),s&&!i&&
s),o.from.top=(s.outerHeight-o.outerHeight())*n.y,o.from.left=(s.outerWidth-o.ou this._trigger("focus",e),s},open:function(){var e=this;return this._isOpen?(this
terWidth())*n.x,o.to.top=(s.outerHeight-o.to.outerHeight)*n.y,o.to.left=(s.outer ._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=t(t.ui
Width-o.to.outerWidth)*n.x),o.css(o.from),("content"===m||"both"===m)&&(d=d.conc .safeActiveElement(this.document[0])),this._size(),this._position(),this._create
at(["marginTop","marginBottom"]).concat(u),c=c.concat(["marginLeft","marginRight Overlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this
"]),l=r.concat(d).concat(c),o.find("*[width]").each(function(){var i=e(this),s={ .uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(
height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outer ){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),this._trigger
Width()}; ("open"),void 0)},_focusTabbable:function(){var t=this._focusedElement;t||(t=thi
f&&e.effects.save(i,l),i.from={height:s.height*a.from.y,width:s.width*a.from.x,o s.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.le
uterHeight:s.outerHeight*a.from.y,outerWidth:s.outerWidth*a.from.x},i.to={height ngth||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTi
:s.height*a.to.y,width:s.width*a.to.x,outerHeight:s.height*a.to.y,outerWidth:s.w tlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("fo
idth*a.to.x},a.from.y!==a.to.y&&(i.from=e.effects.setTransition(i,d,a.from.y,i.f cus")},_keepFocus:function(e){function i(){var e=t.ui.safeActiveElement(this.doc
rom),i.to=e.effects.setTransition(i,d,a.to.y,i.to)),a.from.x!==a.to.x&&(i.from=e ument[0]),i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusT
.effects.setTransition(i,c,a.from.x,i.from),i.to=e.effects.setTransition(i,c,a.t abbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:functio
o.x,i.to)),i.css(i.from),i.animate(i.to,t.duration,t.easing,function(){f&&e.effe n(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(t
cts.restore(i,l)})})),o.animate(o.to,{queue:!1,duration:t.duration,easing:t.easi his._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-c
ng,complete:function(){0===o.to.opacity&&o.css("opacity",o.from.opacity),"hide"= ontent ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.cl
==p&&o.hide(),e.effects.restore(o,y),f||("static"===v?o.css({position:"relative" oseOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE
,top:o.to.top,left:o.to.left}):e.each(["top","left"],function(e,t){o.css(t,funct )return e.preventDefault(),this.close(e),void 0;if(e.keyCode===t.ui.keyCode.TAB&
ion(t,i){var s=parseInt(i,10),n=e?o.to.left:o.to.top;return"auto"===i?n+"px":s+n &!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),s=i.filter(":fir
+"px"})})),e.effects.removeWrapper(o),i()}})},e.effects.effect.scale=function(t, st"),n=i.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKe
i){var s=e(this),n=e.extend(!0,{},t),a=e.effects.setMode(s,t.mode||"effect"),o=p y?e.target!==s[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(functi
arseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"hide"===a?0:100),r=t.direc on(){n.trigger("focus")}),e.preventDefault()):(this._delay(function(){s.trigger(
tion||"both",h=t.origin,l={height:s.height(),width:s.width(),outerHeight:s.outer "focus")}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this.
Height(),outerWidth:s.outerWidth()},u={y:"horizontal"!==r?o/100:1,x:"vertical"!= _focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialo
=r?o/100:1};n.effect="size",n.queue=!1,n.complete=i,"effect"!==a&&(n.origin=h||[ g.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar
"middle","center"],n.restore=!0),n.from=t.from||("show"===a?{height:0,width:0,ou :function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogT
terHeight:0,outerWidth:0}:l),n.to={height:l.height*u.y,width:l.width*u.x,outerHe itlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(thi
ight:l.outerHeight*u.y,outerWidth:l.outerWidth*u.x},n.fade&&("show"===a&&(n.from s.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titleb
.opacity=0,n.to.opacity=1),"hide"===a&&(n.from.opacity=1,n.to.opacity=0)),s.effe ar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<but
ct(n)},e.effects.effect.puff=function(t,i){var s=e(this),n=e.effects.setMode(s,t ton type='button'></button>").button({label:t("<a>").text(this.options.closeText
.mode||"hide"),a="hide"===n,o=parseInt(t.percent,10)||150,r=o/100,h={height:s.he ).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar
ight(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()};e. ),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on
extend(t,{effect:"scale",queue:!1,fade:!0,mode:n,complete:i,percent:a?o:100,from (this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}
:a?h:{height:h.height*r,width:h.width*r,outerHeight:h.outerHeight*r,outerWidth:h }),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"u
.outerWidth*r}}),s.effect(t)},e.effects.effect.pulsate=function(t,i){var s,n=e(t i-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),t
his),a=e.effects.setMode(n,t.mode||"show"),o="show"===a,r="hide"===a,h=o||"hide" his.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.opt
===a,l=2*(t.times||5)+(h?1:0),u=t.duration/l,d=0,c=n.queue(),p=c.length;for((o|| ions.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:functi
!n.is(":visible"))&&(n.css("opacity",0).show(),d=1),s=1;l>s;s++)n.animate({opaci on(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"
ty:d},u,t.easing),d=1-d;n.animate({opacity:d},u,t.easing),n.queue(function(){r&& ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t
n.hide(),i()}),p>1&&c.splice.apply(c,[1,0].concat(c.splice(p,l+1))),n.dequeue()} ("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-
,e.effects.effect.shake=function(t,i){var s,n=e(this),a=["position","top","botto dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i
m","left","right","height","width"],o=e.effects.setMode(n,t.mode||"effect"),r=t. =this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.e
direction||"left",h=t.distance||20,l=t.times||3,u=2*l+1,d=Math.round(t.duration/ mpty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?(this._removeClass(this.uiDia
u),c="up"===r||"down"===r?"top":"left",p="up"===r||"left"===r,f={},m={},g={},v=n log,"ui-dialog-buttons"),void 0):(t.each(i,function(i,s){var n,o;s=t.isFunction(
.queue(),y=v.length;for(e.effects.save(n,a),n.show(),e.effects.createWrapper(n), s)?{click:s,text:i}:s,s=t.extend({type:"button"},s),n=s.click,o={icon:s.icon,ico
f[c]=(p?"-=":"+=")+h,m[c]=(p?"+=":"-=")+2*h,g[c]=(p?"-=":"+=")+2*h,n.animate(f,d nPosition:s.iconPosition,showLabel:s.showLabel,icons:s.icons,text:s.text},delete
,t.easing),s=1;l>s;s++)n.animate(m,d,t.easing).animate(g,d,t.easing);n.animate(m s.click,delete s.icon,delete s.iconPosition,delete s.showLabel,delete s.icons,"
,d,t.easing).animate(f,d/2,t.easing).queue(function(){"hide"===o&&n.hide(),e.eff boolean"==typeof s.text&&delete s.text,t("<button></button>",s).button(o).append
ects.restore(n,a),e.effects.removeWrapper(n),i()}),y>1&&v.splice.apply(v,[1,0].c To(e.uiButtonSet).on("click",function(){n.apply(e.element[0],arguments)})}),this
oncat(v.splice(y,u+1))),n.dequeue()},e.effects.effect.slide=function(t,i){var s, ._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(t
n=e(this),a=["position","top","bottom","left","right","width","height"],o=e.effe his.uiDialog),void 0)},_makeDraggable:function(){function e(t){return{position:t
cts.setMode(n,t.mode||"show"),r="show"===o,h=t.direction||"left",l="up"===h||"do .position,offset:t.offset}}var i=this,s=this.options;this.uiDialog.draggable({ca
wn"===h?"top":"left",u="up"===h||"left"===h,d={};e.effects.save(n,a),n.show(),s= ncel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar
t.distance||n["top"===l?"outerHeight":"outerWidth"](!0),e.effects.createWrapper( ",containment:"document",start:function(s,n){i._addClass(t(this),"ui-dialog-drag
n).css({overflow:"hidden"}),r&&n.css(l,u?isNaN(s)?"-"+s:-s:s),d[l]=(r?u?"+=":"-= ging"),i._blockFrames(),i._trigger("dragStart",s,e(n))},drag:function(t,s){i._tr
":u?"-=":"+=")+s,n.animate(d,{queue:!1,duration:t.duration,easing:t.easing,compl igger("drag",t,e(s))},stop:function(n,o){var a=o.offset.left-i.document.scrollLe
ete:function(){"hide"===o&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapp ft(),r=o.offset.top-i.document.scrollTop();s.position={my:"left top",at:"left"+(
er(n),i()}})},e.effects.effect.transfer=function(t,i){var s=e(this),n=e(t.to),a= a>=0?"+":"")+a+" "+"top"+(r>=0?"+":"")+r,of:i.window},i._removeClass(t(this),"ui
"fixed"===n.css("position"),o=e("body"),r=a?o.scrollTop():0,h=a?o.scrollLeft():0 -dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",n,e(o))}})},_makeRes
,l=n.offset(),u={top:l.top-r,left:l.left-h,height:n.innerHeight(),width:n.innerW izable:function(){function e(t){return{originalPosition:t.originalPosition,origi
idth()},d=s.offset(),c=e("<div class='ui-effects-transfer'></div>").appendTo(doc nalSize:t.originalSize,position:t.position,size:t.size}}var i=this,s=this.option
ument.body).addClass(t.className).css({top:d.top-r,left:d.left-h,height:s.innerH s,n=s.resizable,o=this.uiDialog.css("position"),a="string"==typeof n?n:"n,e,s,w,
eight(),width:s.innerWidth(),position:a?"fixed":"absolute"}).animate(u,t.duratio se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"d
n,t.easing,function(){c.remove(),i()})},e.widget("ui.progressbar",{version:"1.11 ocument",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWi
.2",options:{max:100,value:0,change:null,complete:null},min:0,_create:function() dth:s.minWidth,minHeight:this._minHeight(),handles:a,start:function(s,n){i._addC
{this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass lass(t(this),"ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",s,e
("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progres (n))},resize:function(t,s){i._trigger("resize",t,e(s))},stop:function(n,o){var a
sbar","aria-valuemin":this.min}),this.valueDiv=e("<div class='ui-progressbar-val =i.uiDialog.offset(),r=a.left-i.document.scrollLeft(),h=a.top-i.document.scrollT
ue ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refres op();s.height=i.uiDialog.height(),s.width=i.uiDialog.width(),s.position={my:"lef
hValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget t top",at:"left"+(r>=0?"+":"")+r+" "+"top"+(h>=0?"+":"")+h,of:i.window},i._remov
ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin" eClass(t(this),"ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",
).removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove() n,e(o))}}).css("position",o)},_trackFocus:function(){this._on(this.widget(),{foc
},value:function(e){return void 0===e?this.options.value:(this.options.value=thi usin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_m
s._constrainedValue(e),this._refreshValue(),void 0)},_constrainedValue:function( akeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unsh
e){return void 0===e&&(e=this.options.value),this.indeterminate=e===!1,"number"! ift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArr
=typeof e&&(e=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.m ay(this,e);-1!==i&&e.splice(i,1)},_trackingInstances:function(){var t=this.docum
in,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this ent.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-in
.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:functi stances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height
on(e,t){"max"===e&&(t=Math.max(this.min,t)),"disabled"===e&&this.element.toggleC ?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiD
lass("ui-state-disabled",!!t).attr("aria-disabled",t),this._super(e,t)},_percent ialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options
age:function(){return this.indeterminate?100:100*(this.options.value-this.min)/( .position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,s=!1,n={}
this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i= ;t.each(e,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(s=!0),t in
this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).toggleCl i.resizableRelatedOptions&&(n[t]=e)}),s&&(this._size(),this._position()),this.u
ass("ui-corner-right",t===this.options.max).width(i.toFixed(0)+"%"),this.element iDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOpti
.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indetermina on:function(e,i){var s,n,o=this.uiDialog;"disabled"!==e&&(this._super(e,i),"appe
te?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e ndTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createB
("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.e uttons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text
lement.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDi (""+this.options.closeText).html()}),"draggable"===e&&(s=o.is(":data(ui-draggabl
v&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.old e)"),s&&!i&&o.draggable("destroy"),!s&&i&&this._makeDraggable()),"position"===e&
Value=t,this._trigger("change")),t===this.options.max&&this._trigger("complete") &this._position(),"resizable"===e&&(n=o.is(":data(ui-resizable)"),n&&!i&&o.resiz
}}),e.widget("ui.selectable",e.ui.mouse,{version:"1.11.2",options:{appendTo:"bod able("destroy"),n&&"string"==typeof i&&o.resizable("option","handles",i),n||i===
y",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selectin !1||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find("
g:null,start:null,stop:null,unselected:null,unselecting:null},_create:function() .ui-dialog-title")))},_size:function(){var t,e,i,s=this.options;this.element.sho
{var t,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refres w().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width
h=function(){t=e(i.options.filter,i.element[0]),t.addClass("ui-selectee"),t.each &&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerH
(function(){var t=e(this),i=t.offset();e.data(this,"selectable-item",{element:th eight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.
is,$element:t,left:i.left,top:i.top,right:i.left+t.outerWidth(),bottom:i.top+t.o maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,
uterHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.has height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":d
Class("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh ata(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeigh
(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=e("<di t())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map
v class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.remo (function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.out
veClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("u erWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})}
i-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function ,_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete
(t){var i=this,s=this.options;this.opos=[t.pageX,t.pageY],this.options.disabled| this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".
|(this.selectees=e(s.filter,this.element[0]),this._trigger("start",t),e(s.append ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOve
To).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height rlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),th
:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(fu is.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function
nction(){var s=e.data(this,"selectable-item");s.startselected=!0,t.metaKey||t.ct (t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[
rlKey||(s.$element.removeClass("ui-selected"),s.selected=!1,s.$element.addClass( 0]._focusTabbable())}}),this.overlay=t("<div>").appendTo(this._appendTo()),this.
"ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",t,{unselecting:s.ele _addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,
ment}))}),e(t.target).parents().addBack().each(function(){var s,n=e.data(this,"s {mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document
electable-item");return n?(s=!t.metaKey&&!t.ctrlKey||!n.$element.hasClass("ui-se .data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.
lected"),n.$element.removeClass(s?"ui-unselecting":"ui-selected").addClass(s?"ui modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.doc
-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._t ument.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.docu
rigger("selecting",t,{selecting:n.element}):i._trigger("unselecting",t,{unselect ment.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}
ing:n.element}),!1):void 0}))},_mouseDrag:function(t){if(this.dragged=!0,!this.o }),t.uiBackCompat!==!1&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:"
ptions.disabled){var i,s=this,n=this.options,a=this.opos[0],o=this.opos[1],r=t.p "},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.d
ageX,h=t.pageY;return a>r&&(i=r,r=a,a=i),o>h&&(i=h,h=o,o=i),this.helper.css({lef ialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeCla
t:a,top:o,width:r-a,height:h-o}),this.selectees.each(function(){var i=e.data(thi ss(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),t.ui.dia
s,"selectable-item"),l=!1;i&&i.element!==s.element[0]&&("touch"===n.tolerance?l= log,t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{
!(i.left>r||a>i.right||i.top>h||o>i.bottom):"fit"===n.tolerance&&(l=i.left>a&&r> accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activat
i.right&&i.top>o&&h>i.bottom),l?(i.selected&&(i.$element.removeClass("ui-selecte e:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=
d"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.un this.options,s=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(s)
selecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,s ?s:function(t){return t.is(s)},this.proportions=function(){return arguments.leng
._trigger("selecting",t,{selecting:i.element}))):(i.selecting&&((t.metaKey||t.ct th?(e=arguments[0],void 0):e?e:e={width:this.element[0].offsetWidth,height:this.
rlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&this._addCla
.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-sel ss("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.
ecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"), ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:fun
i.unselecting=!0),s._trigger("unselecting",t,{unselecting:i.element}))),i.select ction(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:functio
ed&&(t.metaKey||t.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected n(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOpt
"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,s._trigg ion:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){retu
er("unselecting",t,{unselecting:i.element})))))}),!1}},_mouseStop:function(t){va rn t.is(i)};else if("scope"===e){var s=t.ui.ddmanager.droppables[this.options.sc
r i=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each(functi ope];this._splice(s),this._addToManager(i)}this._super(e,i)},_activate:function(
on(){var s=e.data(this,"selectable-item");s.$element.removeClass("ui-unselecting e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activat
"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",t,{unselected:s.e e",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._rem
lement})}),e(".ui-selecting",this.element[0]).each(function(){var s=e.data(this, oveActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){
"selectable-item");s.$element.removeClass("ui-selecting").addClass("ui-selected" var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&
),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",t,{selec &this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClas
ted:s.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),e.widget("u s(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.c
i.selectmenu",{version:"1.11.2",defaultElement:"<select>",options:{appendTo:null urrent;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this
,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at: .element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("
"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,ope out",e,this.ui(i)))},_drop:function(e,i){var s=i||t.ui.ddmanager.current,n=!1;re
n:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id"); turn s&&(s.currentItem||s.element)[0]!==this.element[0]?(this.element.find(":dat
this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._ a(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).dr
drawMenu(),this.options.disabled&&this.disable()},_drawButton:function(){var t=t oppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scop
his,i=this.element.attr("tabindex");this.label=e("label[for='"+this.ids.element+ e===s.options.scope&&i.accept.call(i.element[0],s.currentItem||s.element)&&v(s,t
"']").attr("for",this.ids.button),this._on(this.label,{click:function(e){this.bu .extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(n=!0,!1):void 0})
tton.focus(),e.preventDefault()}}),this.element.hide(),this.button=e("<span>",{" ,n?!1:this.accept.call(this.element[0],s.currentItem||s.element)?(this._removeAc
class":"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex: tiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(s)),this.ele
i||this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded" ment):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.
:"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"t helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this
rue"}).insertAfter(this.element),e("<span>",{"class":"ui-icon "+this.options.ico ._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass
ns.button}).prependTo(this.button),this.buttonText=e("<span>",{"class":"ui-selec ("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-
tmenu-text"}).appendTo(this.button),this._setText(this.buttonText,this.element.f active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")
ind("option:selected").text()),this._resizeButton(),this._on(this.button,this._b }});var v=t.ui.intersect=function(){function t(t,e,i){return t>=e&&e+i>t}return
uttonEvents),this.button.one("focusin",function(){t.menuItems||t._refreshMenu()} function(e,i,s,n){if(!i.offset)return!1;var o=(e.positionAbs||e.position.absolut
),this._hoverable(this.button),this._focusable(this.button)},_drawMenu:function( e).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,
){var t=this;this.menu=e("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids r=o+e.helperProportions.width,h=a+e.helperProportions.height,l=i.offset.left,c=i
.button,id:this.ids.menu}),this.menuWrap=e("<div>",{"class":"ui-selectmenu-menu .offset.top,u=l+i.proportions().width,d=c+i.proportions().height;switch(s){case"
ui-front"}).append(this.menu).appendTo(this._appendTo()),this.menuInstance=this. fit":return o>=l&&u>=r&&a>=c&&d>=h;case"intersect":return o+e.helperProportions.
menu.menu({role:"listbox",select:function(e,i){e.preventDefault(),t._setSelectio width/2>l&&u>r-e.helperProportions.width/2&&a+e.helperProportions.height/2>c&&d>
n(),t._select(i.item.data("ui-selectmenu-item"),e)},focus:function(e,i){var s=i. h-e.helperProportions.height/2;case"pointer":return t(n.pageY,c,i.proportions().
item.data("ui-selectmenu-item");null!=t.focusIndex&&s.index!==t.focusIndex&&(t._ height)&&t(n.pageX,l,i.proportions().width);case"touch":return(a>=c&&d>=a||h>=c&
trigger("focus",e,{item:s}),t.isOpen||t._select(s,e)),t.focusIndex=s.index,t.but &d>=h||c>a&&h>d)&&(o>=l&&u>=o||r>=l&&u>=r||l>o&&r>u);default:return!1}}}();t.ui.
ton.attr("aria-activedescendant",t.menuItems.eq(s.index).attr("id"))}}).menu("in ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){v
stance"),this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all"),thi ar s,n,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,r=(e.cur
s.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentCl rentItem||e.element).find(":data(ui-droppable)").addBack();t:for(s=0;o.length>s;
ick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refr s++)if(!(o[s].options.disabled||e&&!o[s].accept.call(o[s].element[0],e.currentIt
esh:function(){this._refreshMenu(),this._setText(this.buttonText,this._getSelect em||e.element))){for(n=0;r.length>n;n++)if(r[n]===o[s].element[0]){o[s].proporti
edItem().text()),this.options.width||this._resizeButton()},_refreshMenu:function ons().height=0;continue t}o[s].visible="none"!==o[s].element.css("display"),o[s]
(){this.menu.empty();var e,t=this.element.find("option");t.length&&(this._parseO .visible&&("mousedown"===a&&o[s]._activate.call(o[s],i),o[s].offset=o[s].element
ptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),thi .offset(),o[s].proportions({width:o[s].element[0].offsetWidth,height:o[s].elemen
s.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup"),e=this._getSelec t[0].offsetHeight}))}},drop:function(e,i){var s=!1;return t.each((t.ui.ddmanager
tedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-it .droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.option
em")),this._setOption("disabled",this.element.prop("disabled")))},open:function( s.disabled&&this.visible&&v(e,this,this.options.tolerance,i)&&(s=this._drop.call
e){this.options.disabled||(this.menuItems?(this.menu.find(".ui-state-focus").rem (this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element
oveClass("ui-state-focus"),this.menuInstance.focus(null,this._getSelectedItem()) [0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.ca
):this._refreshMenu(),this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this. ll(this,i)))}),s},dragStart:function(e,i){e.element.parentsUntil("body").on("scr
_position(),this._on(this.document,this._documentClick),this._trigger("open",e)) oll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffs
},_position:function(){this.menuWrap.position(e.extend({of:this.button},this.opt ets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepar
ions.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr eOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){i
(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:fu f(!this.options.disabled&&!this.greedyChild&&this.visible){var s,n,o,a=v(e,this,
nction(){return this.button},menuWidget:function(){return this.menu},_renderMenu this.options.tolerance,i),r=!a&&this.isover?"isout":a&&!this.isover?"isover":nul
:function(t,i){var s=this,n="";e.each(i,function(i,a){a.optgroup!==n&&(e("<li>", l;r&&(this.options.greedy&&(n=this.options.scope,o=this.element.parents(":data(u
{"class":"ui-selectmenu-optgroup ui-menu-divider"+(a.element.parent("optgroup"). i-droppable)").filter(function(){return t(this).droppable("instance").options.sc
prop("disabled")?" ui-state-disabled":""),text:a.optgroup}).appendTo(t),n=a.optg ope===n}),o.length&&(s=t(o[0]).droppable("instance"),s.greedyChild="isover"===r)
roup),s._renderItemData(t,a)})},_renderItemData:function(e,t){return this._rende ),s&&"isover"===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["is
rItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var s=e("<li> out"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s&&
");return i.disabled&&s.addClass("ui-state-disabled"),this._setText(s,i.label),s "isout"===r&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}})},dragStop:function(e
.appendTo(t)},_setText:function(e,t){t?e.text(t):e.html("&#160;")},_move:functio ,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPosi
n(e,t){var i,s,n=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex tions||t.ui.ddmanager.prepareOffsets(e,i)}},t.uiBackCompat!==!1&&t.widget("ui.dr
):(i=this.menuItems.eq(this.element[0].selectedIndex),n+=":not(.ui-state-disable oppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:
d)"),s="first"===e||"last"===e?i["first"===e?"prevAll":"nextAll"](n).eq(-1):i[e+ function(){this._super(),this.options.activeClass&&this.element.addClass(this.op
"All"](n).eq(0),s.length&&this.menuInstance.focus(t,s)},_getSelectedItem:functio tions.activeClass)},_removeActiveClass:function(){this._super(),this.options.act
n(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(e) iveClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:fun
{this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range& ction(){this._super(),this.options.hoverClass&&this.element.addClass(this.option
&(window.getSelection?(e=window.getSelection(),e.removeAllRanges(),e.addRange(th s.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClas
is.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:f s&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget(
unction(t){this.isOpen&&(e(t.target).closest(".ui-selectmenu-menu, #"+this.ids.b "ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner
utton).length||this.close(t))}},_buttonEvents:{mousedown:function(){var e;window -all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corn
.getSelection?(e=window.getSelection(),e.rangeCount&&(this.range=e.getRangeAt(0) er-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){t
)):this.range=document.selection.createRange()},click:function(e){this._setSelec his.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role
tion(),this._toggle(e)},keydown:function(t){var i=!0;switch(t.keyCode){case e.ui :"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-wi
.keyCode.TAB:case e.ui.keyCode.ESCAPE:this.close(t),i=!1;break;case e.ui.keyCode dget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._a
.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case e.ui.keyCode.UP:t.altK ddClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshVa
ey?this._toggle(t):this._move("prev",t);break;case e.ui.keyCode.DOWN:t.altKey?th lue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valu
is._toggle(t):this._move("next",t);break;case e.ui.keyCode.SPACE:this.isOpen?thi emax aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t
s._selectFocusedItem(t):this._toggle(t);break;case e.ui.keyCode.LEFT:this._move( ?this.options.value:(this.options.value=this._constrainedValue(t),this._refreshV
"prev",t);break;case e.ui.keyCode.RIGHT:this._move("next",t);break;case e.ui.key alue(),void 0)},_constrainedValue:function(t){return void 0===t&&(t=this.options
Code.HOME:case e.ui.keyCode.PAGE_UP:this._move("first",t);break;case e.ui.keyCod .value),this.indeterminate=t===!1,"number"!=typeof t&&(t=0),this.indeterminate?!
e.END:case e.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.t 1:Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e
rigger(t),i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(e){var t=this =t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue
.menuItems.eq(this.focusIndex);t.hasClass("ui-state-disabled")||this._select(t.d (e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.m
ata("ui-selectmenu-item"),e)},_select:function(e,t){var i=this.element[0].select in,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.elem
edIndex;this.element[0].selectedIndex=e.index,this._setText(this.buttonText,e.la ent.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_pe
bel),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==i&&this._trig rcentage:function(){return this.indeterminate?100:100*(this.options.value-this.m
ger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItem in)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.val
s.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedesce ue,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).wid
ndant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){" th(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",n
icons"===e&&this.button.find("span.ui-icon").removeClass(this.options.icons.butt ull,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.
on).addClass(t.button),this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(t indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this
his._appendTo()),"disabled"===e&&(this.menuInstance.option("disabled",t),this.bu .overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(
tton.toggleClass("ui-state-disabled",t).attr("aria-disabled",t),this.element.pro this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":
p("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.att this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),
r("tabindex",0)),"width"===e&&this._resizeButton()},_appendTo:function(){var t=t this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change
his.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t ")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",
).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front")),t.length||(t=this.docume t.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,
nt[0].body),t},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",th filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,u
is.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.i nselected:null,unselecting:null},_create:function(){var e=this;this._addClass("u
sOpen),this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen),this.menu.att i-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[
r("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width 0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectee
;e||(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWi s,"ui-selectee"),e.selectees.each(function(){var i=t(this),s=i.offset(),n={left:
dth(e)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWi s.left-e.elementPos.left,top:s.top-e.elementPos.top};t.data(this,"selectable-ite
dth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{ m",{element:this,$element:i,left:n.left,top:n.top,right:n.left+i.outerWidth(),bo
disabled:this.element.prop("disabled")}},_parseOptions:function(t){var i=[];t.ea ttom:n.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),s
ch(function(t,s){var n=e(s),a=n.parent("optgroup");i.push({element:n,index:t,val electing:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})
ue:n.attr("value"),label:n.text(),optgroup:a.attr("label")||"",disabled:a.prop(" },this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.he
disabled")||n.prop("disabled")})}),this.items=i},_destroy:function(){this.menuWr lper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("sel
ap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId ectable-item"),this._mouseDestroy()},_mouseStart:function(e){var i=this,s=this.o
(),this.label.attr("for",this.ids.element)}}),e.widget("ui.slider",e.ui.mouse,{v ptions;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),t
ersion:"1.11.2",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100 his.options.disabled||(this.selectees=t(s.filter,this.element[0]),this._trigger(
,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null, "start",e),t(s.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e
slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding= .pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".
!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detect ui-selected").each(function(){var s=t.data(this,"selectable-item");s.startselect
Orientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("u ed=!0,e.metaKey||e.ctrlKey||(i._removeClass(s.$element,"ui-selected"),s.selected
i-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-cor =!1,i._addClass(s.$element,"ui-unselecting"),s.unselecting=!0,i._trigger("unsele
ner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this cting",e,{unselecting:s.element}))}),t(e.target).parents().addBack().each(functi
._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),t on(){var s,n=t.data(this,"selectable-item");return n?(s=!e.metaKey&&!e.ctrlKey||
his._setupEvents(),this._refreshValue()},_createHandles:function(){var t,i,s=thi !n.$element.hasClass("ui-selected"),i._removeClass(n.$element,s?"ui-unselecting"
s.options,n=this.element.find(".ui-slider-handle").addClass("ui-state-default ui :"ui-selected")._addClass(n.$element,s?"ui-selecting":"ui-unselecting"),n.unsele
-corner-all"),a="<span class='ui-slider-handle ui-state-default ui-corner-all' t cting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",e,{selecting:n.elem
abindex='0'></span>",o=[];for(i=s.values&&s.values.length||1,n.length>i&&(n.slic ent}):i._trigger("unselecting",e,{unselecting:n.element}),!1):void 0}))},_mouseD
e(i).remove(),n=n.slice(0,i)),t=n.length;i>t;t++)o.push(a);this.handles=n.add(e( rag:function(e){if(this.dragged=!0,!this.options.disabled){var i,s=this,n=this.o
o.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles. ptions,o=this.opos[0],a=this.opos[1],r=e.pageX,h=e.pageY;return o>r&&(i=r,r=o,o=
each(function(t){e(this).data("ui-slider-handle-index",t)})},_createRange:functi i),a>h&&(i=h,h=a,a=i),this.helper.css({left:o,top:a,width:r-o,height:h-a}),this.
on(){var t=this.options,i="";t.range?(t.range===!0&&(t.values?t.values.length&&2 selectees.each(function(){var i=t.data(this,"selectable-item"),l=!1,c={};i&&i.el
!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.va ement!==s.element[0]&&(c.left=i.left+s.elementPos.left,c.right=i.right+s.element
lues=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range Pos.left,c.top=i.top+s.elementPos.top,c.bottom=i.bottom+s.elementPos.top,"touch"
&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range- ===n.tolerance?l=!(c.left>r||o>c.right||c.top>h||a>c.bottom):"fit"===n.tolerance
max").css({left:"",bottom:""}):(this.range=e("<div></div>").appendTo(this.elemen &&(l=c.left>o&&r>c.right&&c.top>a&&h>c.bottom),l?(i.selected&&(s._removeClass(i.
t),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("m $element,"ui-selected"),i.selected=!1),i.unselecting&&(s._removeClass(i.$element
in"===t.range||"max"===t.range?" ui-slider-range-"+t.range:""))):(this.range&&th ,"ui-unselecting"),i.unselecting=!1),i.selecting||(s._addClass(i.$element,"ui-se
is.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handl lecting"),i.selecting=!0,s._trigger("selecting",e,{selecting:i.element}))):(i.se
es),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this lecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(s._removeClass(i.$element,"ui
._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range& -selecting"),i.selecting=!1,s._addClass(i.$element,"ui-selected"),i.selected=!0)
&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui :(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(s._
-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy( addClass(i.$element,"ui-unselecting"),i.unselecting=!0),s._trigger("unselecting"
)},_mouseCapture:function(t){var i,s,n,a,o,r,h,l,u=this,d=this.options;return d. ,e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected
disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.eleme ||(s._removeClass(i.$element,"ui-selected"),i.selected=!1,s._addClass(i.$element
nt.outerHeight()},this.elementOffset=this.element.offset(),i={x:t.pageX,y:t.page ,"ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",e,{unselecting:i.el
Y},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.hand ement})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".
les.each(function(t){var i=Math.abs(s-u.values(t));(n>i||n===i&&(t===u._lastChan ui-unselecting",this.element[0]).each(function(){var s=t.data(this,"selectable-i
gedValue||u.values(t)===d.min))&&(n=i,a=e(this),o=t)}),r=this._start(t,o),r===!1 tem");i._removeClass(s.$element,"ui-unselecting"),s.unselecting=!1,s.startselect
?!1:(this._mouseSliding=!0,this._handleIndex=o,a.addClass("ui-state-active").foc ed=!1,i._trigger("unselected",e,{unselected:s.element})}),t(".ui-selecting",this
us(),h=a.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),thi .element[0]).each(function(){var s=t.data(this,"selectable-item");i._removeClass
s._clickOffset=l?{left:0,top:0}:{left:t.pageX-h.left-a.width()/2,top:t.pageY-h.t (s.$element,"ui-selecting")._addClass(s.$element,"ui-selected"),s.selecting=!1,s
op-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borde .selected=!0,s.startselected=!0,i._trigger("selected",e,{selected:s.element})}),
rBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasCla this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",[t.u
ss("ui-state-hover")||this._slide(t,o,s),this._animateOff=!0,!0))},_mouseStart:f i.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:n
unction(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._n ull,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-c
ormValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:fu losed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},posi
nction(e){return this.handles.removeClass("ui-state-active"),this._mouseSliding= tion:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,clos
!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handl e:null,focus:null,open:null,select:null},_create:function(){var e=this.element.u
eIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:fu niqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this
nction(){this.orientation="vertical"===this.options.orientation?"vertical":"hori ._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,t
zontal"},_normValueFromMouse:function(e){var t,i,s,n,a;return"horizontal"===this his.menuItems=t()},_drawButton:function(){var e,i=this,s=this._parseOption(this.
.orientation?(t=this.elementSize.width,i=e.x-this.elementOffset.left-(this._clic element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.
kOffset?this._clickOffset.left:0)):(t=this.elementSize.height,i=e.y-this.element element.labels().attr("for",this.ids.button),this._on(this.labels,{click:functio
Offset.top-(this._clickOffset?this._clickOffset.top:0)),s=i/t,s>1&&(s=1),0>s&&(s n(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t
=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),a ("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox
=this._valueMin()+s*n,this._trimAlignValue(a)},_start:function(e,t){var i={handl ","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"
e:this.handles[t],value:this.value()};return this.options.values&&this.options.v aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.elemen
alues.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("sta t),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed"
rt",e,i)},_slide:function(e,t,i){var s,n,a;this.options.values&&this.options.val ,"ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui
ues.length?(s=this.values(t?0:1),2===this.options.values.length&&this.options.ra -selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._re
nge===!0&&(0===t&&i>s||1===t&&s>i)&&(i=s),i!==this.values(t)&&(n=this.values(),n nderButtonItem(s).appendTo(this.button),this.options.width!==!1&&this._resizeBut
[t]=i,a=this._trigger("slide",e,{handle:this.handles[t],value:i,values:n}),s=thi ton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",functio
s.values(t?0:1),a!==!1&&this.values(t,i))):i!==this.value()&&(a=this._trigger("s n(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var e=this;this.menu=t
lide",e,{handle:this.handles[t],value:i}),a!==!1&&this.value(i))},_stop:function ("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu
(e,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&thi }),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-s
s.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._t electmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuIn
rigger("stop",e,i)},_change:function(e,t){if(!this._keySliding&&!this._mouseSlid stance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",sel
ing){var i={handle:this.handles[t],value:this.value()};this.options.values&&this ect:function(t,i){t.preventDefault(),e._setSelection(),e._select(i.item.data("ui
.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._la -selectmenu-item"),t)},focus:function(t,i){var s=i.item.data("ui-selectmenu-item
stChangedValue=t,this._trigger("change",e,i)}},value:function(e){return argument ");null!=e.focusIndex&&s.index!==e.focusIndex&&(e._trigger("focus",t,{item:s}),e
s.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),this._ .isOpen||e._select(s,t)),e.focusIndex=s.index,e.button.attr("aria-activedescenda
change(null,0),void 0):this._value()},values:function(t,i){var s,n,a;if(argument nt",e.menuItems.eq(s.index).attr("id"))}}).menu("instance"),this.menuInstance._o
s.length>1)return this.options.values[t]=this._trimAlignValue(i),this._refreshVa ff(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){re
lue(),this._change(null,t),void 0;if(!arguments.length)return this._values();if( turn!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){th
!e.isArray(arguments[0]))return this.options.values&&this.options.values.length? is._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButton
this._values(t):this.value();for(s=this.options.values,n=arguments[0],a=0;s.leng Item(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.option
th>a;a+=1)s[a]=this._trimAlignValue(n[a]),this._change(null,a);this._refreshValu s.width&&this._resizeButton()},_refreshMenu:function(){var t,e=this.element.find
e()},_setOption:function(t,i){var s,n=0;switch("range"===t&&this.options.range== ("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,th
=!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"m is.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".
ax"===i&&(this.options.value=this._values(this.options.values.length-1),this.opt ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.lengt
ions.values=null)),e.isArray(this.options.values)&&(n=this.options.values.length h&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.da
),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!i),this._super( ta("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled
t,i),t){case"orientation":this._detectOrientation(),this.element.removeClass("ui ")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass
-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation), (this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.fo
this._refreshValue(),this.handles.css("horizontal"===i?"bottom":"left","");break cus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(t
;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this. his.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(th
_animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s is.document,this._documentClick),this._trigger("open",t)))},_position:function()
=0;n>s;s+=1)this._change(null,s);this._animateOff=!1;break;case"step":case"min": {this.menuWrap.position(t.extend({of:this.button},this.options.position))},close
case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this. :function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,thi
_animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._anima s._off(this.document),this._trigger("close",t))},widget:function(){return this.b
teOff=!1}},_value:function(){var e=this.options.value;return e=this._trimAlignVa utton},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var
lue(e)},_values:function(e){var t,i,s;if(arguments.length)return t=this.options. i=t("<span>");return this._setText(i,e.label),this._addClass(i,"ui-selectmenu-t
values[e],t=this._trimAlignValue(t);if(this.options.values&&this.options.values. ext"),i},_renderMenu:function(e,i){var s=this,n="";t.each(i,function(i,o){var a;
length){for(i=this.options.values.slice(),s=0;i.length>s;s+=1)i[s]=this._trimAli o.optgroup!==n&&(a=t("<li>",{text:o.optgroup}),s._addClass(a,"ui-selectmenu-optg
gnValue(i[s]);return i}return[]},_trimAlignValue:function(e){if(this._valueMin() roup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-stat
>=e)return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t e-disabled":"")),a.appendTo(e),n=o.optgroup),s._renderItemData(e,o)})},_renderIt
=this.options.step>0?this.options.step:1,i=(e-this._valueMin())%t,s=e-i;return 2 emData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},
*Math.abs(i)>=t&&(s+=i>0?t:-t),parseFloat(s.toFixed(5))},_calculateNewMax:functi _renderItem:function(e,i){var s=t("<li>"),n=t("<div>",{title:i.element.attr("tit
on(){var e=(this.options.max-this._valueMin())%this.options.step;this.max=this.o le")});return i.disabled&&this._addClass(s,null,"ui-state-disabled"),this._setTe
ptions.max-e},_valueMin:function(){return this.options.min},_valueMax:function() xt(n,i.label),s.append(n).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html
{return this.max},_refreshValue:function(){var t,i,s,n,a,o=this.options.range,r= ("&#160;")},_move:function(t,e){var i,s,n=".ui-menu-item";this.isOpen?i=this.men
this.options,h=this,l=this._animateOff?!1:r.animate,u={};this.options.values&&th uItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].sel
is.options.values.length?this.handles.each(function(s){i=100*((h.values(s)-h._va ectedIndex).parent("li"),n+=":not(.ui-state-disabled)"),s="first"===t||"last"===
lueMin())/(h._valueMax()-h._valueMin())),u["horizontal"===h.orientation?"left":" t?i["first"===t?"prevAll":"nextAll"](n).eq(-1):i[t+"All"](n).eq(0),s.length&&thi
bottom"]=i+"%",e(this).stop(1,1)[l?"animate":"css"](u,r.animate),h.options.range s.menuInstance.focus(e,s)},_getSelectedItem:function(){return this.menuItems.eq(
===!0&&("horizontal"===h.orientation?(0===s&&h.range.stop(1,1)[l?"animate":"css" this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpe
]({left:i+"%"},r.animate),1===s&&h.range[l?"animate":"css"]({width:i-t+"%"},{que n?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSele
ue:!1,duration:r.animate})):(0===s&&h.range.stop(1,1)[l?"animate":"css"]({bottom ction?(t=window.getSelection(),t.removeAllRanges(),t.addRange(this.range)):this.
:i+"%"},r.animate),1===s&&h.range[l?"animate":"css"]({height:i-t+"%"},{queue:!1, range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.
duration:r.animate}))),t=i}):(s=this.value(),n=this._valueMin(),a=this._valueMax isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+t.ui.escapeSelector(this.i
(),i=a!==n?100*((s-n)/(a-n)):0,u["horizontal"===this.orientation?"left":"bottom" ds.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;w
]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](u,r.animate),"min"===o&&"horizo indow.getSelection?(t=window.getSelection(),t.rangeCount&&(this.range=t.getRange
ntal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"}, At(0))):this.range=document.selection.createRange()},click:function(t){this._set
r.animate),"max"===o&&"horizontal"===this.orientation&&this.range[l?"animate":"c Selection(),this._toggle(t)},keydown:function(e){var i=!0;switch(e.keyCode){case
ss"]({width:100-i+"%"},{queue:!1,duration:r.animate}),"min"===o&&"vertical"===th t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!1;break;case t.ui.ke
is.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},r.animate yCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e
),"max"===o&&"vertical"===this.orientation&&this.range[l?"animate":"css"]({heigh .altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altK
t:100-i+"%"},{queue:!1,duration:r.animate}))},_handleEvents:{keydown:function(t) ey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpe
{var i,s,n,a,o=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case n?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._
e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.key move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.u
Code.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DO i.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.k
WN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySli eyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.m
ding=!0,e(t.target).addClass("ui-state-active"),i=this._start(t,o),i===!1))retur enu.trigger(e),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e
n}switch(a=this.options.step,s=n=this.options.values&&this.options.values.length =this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")
?this.values(o):this.value(),t.keyCode){case e.ui.keyCode.HOME:n=this._valueMin( ||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this
);break;case e.ui.keyCode.END:n=this._valueMax();break;case e.ui.keyCode.PAGE_UP .element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.
:n=this._trimAlignValue(s+(this._valueMax()-this._valueMin())/this.numPages);bre replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._tr
ak;case e.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(s-(this._valueMax()-this._ igger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.
valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.
(s===this._valueMax())return;n=this._trimAlignValue(s+a);break;case e.ui.keyCode button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("ari
.DOWN:case e.ui.keyCode.LEFT:if(s===this._valueMin())return;n=this._trimAlignVal a-activedescendant",e)},_setOption:function(t,e){if("icons"===t){var i=this.butt
ue(s-a)}this._slide(t,o,n)},keyup:function(t){var i=e(t.target).data("ui-slider- on.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._add
handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._chan Class(i,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(t
ge(t,i),e(t.target).removeClass("ui-state-active"))}}}),e.widget("ui.sortable",e his._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(
.ui.mouse,{version:"1.11.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo: t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-
"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnE disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.elem
mpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"ori ent.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.but
ginal",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivi ton.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return
ty:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:n e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.el
ull,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null, ement.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_togg
remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t leAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClas
,i){return e>=t&&t+i>e},_isFloating:function(e){return/left|right/.test(e.css("f s(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(t
loat"))||/inline|table-cell/.test(e.css("display"))},_create:function(){var e=th his.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(t
is.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refr his.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden"
esh(),this.floating=this.items.length?"x"===e.axis||this._isFloating(this.items[ ,!this.isOpen)},_resizeButton:function(){var t=this.options.width;return t===!1?
0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this._setHandleC (this.button.css("width",""),void 0):(null===t&&(t=this.element.show().outerWidt
lassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e h(),this.element.hide()),this.button.outerWidth(t),void 0)},_resizeMenu:function
&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(" (){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").ou
.ui-sortable-handle").removeClass("ui-sortable-handle"),e.each(this.items,functi terWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabl
on(){(this.instance.options.handle?this.item.find(this.instance.options.handle): ed=this.element.prop("disabled"),t},_parseOptions:function(e){var i=this,s=[];e.
this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.re each(function(e,n){s.push(i._parseOption(t(n),e))}),this.items=s},_parseOption:f
moveClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").remove unction(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),l
Class("ui-sortable-handle"),this._mouseDestroy();for(var e=this.items.length-1;e abel:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("
>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mou disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.re
seCapture:function(t,i){var s=null,n=!1,a=this;return this.reverting?!1:this.opt move(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),th
ions.disabled||"static"===this.options.type?!1:(this._refreshItems(t),e(t.target is.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{vers
).parents().each(function(){return e.data(this,a.widgetName+"-item")===a?(s=e(th ion:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":
is),!1):void 0}),e.data(t.target,a.widgetName+"-item")===a&&(s=e(t.target)),s?!t "ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-
his.options.handle||i||(e(this.options.handle,s).find("*").addBack().each(functi all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!
on(){this===t.target&&(n=!0)}),n)?(this.currentItem=s,this._removeCurrentsFromIt 1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPag
ems(),!0):!1:!1)},_mouseStart:function(t,i,s){var n,a,o=this.options;if(this.cur es:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateO
rentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),thi ff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._c
s._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.s alculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widg
crollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset et ui-widget-content"),this._refresh(),this._animateOff=!1
.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.off },_refresh:function(){this._createRange(),this._createHandles(),this._setupEvent
set,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:th s(),this._refreshValue()},_createHandles:function(){var e,i,s=this.options,n=thi
is._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("posi s.element.find(".ui-slider-handle"),o="<span tabindex='0'></span>",a=[];for(i=s.
tion","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosi values&&s.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.
tion=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.p length;i>e;e++)a.push(o);this.handles=n.add(t(a.join("")).appendTo(this.element)
ageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev ),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle
:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]! =this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle
==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.conta -index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.ra
inment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(a=this.document.fin nge?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.va
d("body"),this.storedCursor=a.css("cursor"),a.css("cursor",o.cursor),this.stored lues[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=
Stylesheet=e("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(a) [this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._remove
),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css(" Class(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left
opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIn :"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(th
dex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o is.range,"ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(
.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.ra
&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this. nge=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles
_uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)fo ,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)
r(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",t,t },_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this
his._uiHash(this)); ._mouseDestroy()},_mouseCapture:function(e){var i,s,n,o,a,r,h,l,c=this,u=this.op
return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!o.dropBeha tions;return u.disabled?!1:(this.elementSize={width:this.element.outerWidth(),he
viour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addCla ight:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e
ss("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var i,s,n .pageX,y:e.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMi
,a,o=this.options,r=!1;for(this.position=this._generatePosition(t),this.position n()+1,this.handles.each(function(e){var i=Math.abs(s-c.values(e));(n>i||n===i&&(
Abs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPosition e===c._lastChangedValue||c.values(e)===u.min))&&(n=i,o=t(this),a=e)}),r=this._st
Abs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HT art(e,a),r===!1?!1:(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,n
ML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0] ull,"ui-state-active"),o.trigger("focus"),h=o.offset(),l=!t(e.target).parents().
.offsetHeight-t.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=r=this. addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pag
scrollParent[0].scrollTop+o.scrollSpeed:t.pageY-this.overflowOffset.top<o.scroll eX-h.left-o.width()/2,top:e.pageY-h.top-o.height()/2-(parseInt(o.css("borderTopW
Sensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-o. idth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("mar
scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<o ginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,s),th
.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scroll is._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){
Left+o.scrollSpeed:t.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.s var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,t
crollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(t.p his._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.han
ageY-e(document).scrollTop()<o.scrollSensitivity?r=e(document).scrollTop(e(docum dles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleInde
ent).scrollTop()-o.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTo x),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=nu
p())<o.scrollSensitivity&&(r=e(document).scrollTop(e(document).scrollTop()+o.scr ll,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="verti
ollSpeed)),t.pageX-e(document).scrollLeft()<o.scrollSensitivity?r=e(document).sc cal"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:fun
rollLeft(e(document).scrollLeft()-o.scrollSpeed):e(window).width()-(t.pageX-e(do ction(t){var e,i,s,n,o;return"horizontal"===this.orientation?(e=this.elementSize
cument).scrollLeft())<o.scrollSensitivity&&(r=e(document).scrollLeft(e(document) .width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0
.scrollLeft()+o.scrollSpeed))),r!==!1&&e.ui.ddmanager&&!o.dropBehaviour&&e.ui.dd )):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?th
manager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolu is._clickOffset.top:0)),s=i/e,s>1&&(s=1),0>s&&(s=0),"vertical"===this.orientatio
te"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this n&&(s=1-s),n=this._valueMax()-this._valueMin(),o=this._valueMin()+s*n,this._trim
.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0] AlignValue(o)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex
.style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(s=this.item :t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=v
s[i],n=s.item[0],a=this._intersectsWithPointer(s),a&&s.instance===this.currentCo oid 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:func
ntainer&&n!==this.currentItem[0]&&this.placeholder[1===a?"next":"prev"]()[0]!==n tion(){return this.options.values&&this.options.values.length},_start:function(t
&&!e.contains(this.placeholder[0],n)&&("semi-dynamic"===this.options.type?!e.con ,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var
tains(this.element[0],n):!0)){if(this.direction=1===a?"down":"up","pointer"!==th s,n,o=this.value(),a=this.values();this._hasMultipleValues()&&(n=this.values(e?0
is.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(t,s),t :1),o=this.values(e),2===this.options.values.length&&this.options.range===!0&&(i
his._trigger("change",t,this._uiHash());break}return this._contactContainers(t), =0===e?Math.min(n,i):Math.max(n,i)),a[e]=i),i!==o&&(s=this._trigger("slide",t,th
e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash( is._uiHash(e,i,a)),s!==!1&&(this._hasMultipleValues()?this.values(e,i):this.valu
)),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e e(i)))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:fun
.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.opt ction(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this.
ions.revert){var s=this,n=this.placeholder.offset(),a=this.options.axis,o={};a&& _trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length
"x"!==a||(o.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetPa ?(this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(n
rent[0]===document.body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(o.top=n ull,0),void 0):this._value()},values:function(e,i){var s,n,o;if(arguments.length
.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.bo >1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),th
dy?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(o is._change(null,e),void 0;if(!arguments.length)return this._values();if(!t.isArr
,parseInt(this.options.revert,10)||500,function(){s._clear(t)})}else this._clear ay(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();f
(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null} or(s=this.options.values,n=arguments[0],o=0;s.length>o;o+=1)s[o]=this._trimAlign
),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeC Value(n[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){
lass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.len var s,n=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.
gth-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)) value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=t
,this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null his._values(this.options.values.length-1),this.options.values=null)),t.isArray(t
,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.place his.options.values)&&(n=this.options.values.length),this._super(e,i),e){case"ori
holder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeCh entation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-s
ild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.hel lider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),t
per[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,r his.options.range&&this._refreshRange(i),this.handles.css("horizontal"===i?"bott
everting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).a om":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._
fter(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),thi change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,th
s},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),s=[];retur is._refreshValue(),s=n-1;s>=0;s--)this._change(null,s);this._animateOff=!1;break
n t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||" ;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this
").match(t.expression||/(.+)[\-=_](.+)/);i&&s.push((t.key||i[1]+"[]")+"="+(t.key ._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this.
&&t.expression?i[1]:i[2]))}),!s.length&&t.key&&s.push(t.key+"="),s.join("&")},to _refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),t
Array:function(t){var i=this._getItemsAsjQuery(t&&t.connected),s=[];return t=t|| his._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.opt
{},i.each(function(){s.push(e(t.item||this).attr(t.attribute||"id")||"")}),s},_i ions.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,s;if(ar
ntersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions guments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this
.width,s=this.positionAbs.top,n=s+this.helperProportions.height,a=e.left,o=a+e.w ._hasMultipleValues()){for(i=this.options.values.slice(),s=0;i.length>s;s+=1)i[s
idth,r=e.top,h=r+e.height,l=this.offset.click.top,u=this.offset.click.left,d="x" ]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(t){if(t
===this.options.axis||s+l>r&&h>s+l,c="y"===this.options.axis||t+u>a&&o>t+u,p=d&& his._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._v
c;return"pointer"===this.options.tolerance||this.options.forcePointerForContaine alueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e
rs||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"wi ,s=t-i;return 2*Math.abs(i)>=e&&(s+=i>0?e:-e),parseFloat(s.toFixed(5))},_calcula
dth":"height"]>e[this.floating?"width":"height"]?p:t+this.helperProportions.widt teNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.ste
h/2>a&&o>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>r&& p,s=Math.round((t-e)/i)*i;t=s+e,t>this.options.max&&(t-=i),this.max=parseFloat(t
h>n-this.helperProportions.height/2},_intersectsWithPointer:function(e){var t="x .toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this
"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.t .options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(t
op,e.top,e.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs. his.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");retur
left+this.offset.click.left,e.left,e.width),s=t&&i,n=this._getDragVerticalDirect n-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:
ion(),a=this._getDragHorizontalDirection();return s?this.floating?a&&"right"===a function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range
||"down"===n?2:1:n&&("down"===n?2:1):!1},_intersectsWithSides:function(e){var t= .css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})
this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.h },_refreshValue:function(){var e,i,s,n,o,a=this.options.range,r=this.options,h=t
eight),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e. his,l=this._animateOff?!1:r.animate,c={};this._hasMultipleValues()?this.handles.
width/2,e.width),s=this._getDragVerticalDirection(),n=this._getDragHorizontalDir each(function(s){i=100*((h.values(s)-h._valueMin())/(h._valueMax()-h._valueMin()
ection();return this.floating&&n?"right"===n&&i||"left"===n&&!i:s&&("down"===s&& )),c["horizontal"===h.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[l?"an
t||"up"===s&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.to imate":"css"](c,r.animate),h.options.range===!0&&("horizontal"===h.orientation?(
p-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDi 0===s&&h.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},r.animate),1===s&&h.ran
rection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return ge[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===s&&h.
0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),th range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},r.animate),1===s&&h.range[l?"a
is._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){v nimate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(s=this.v
ar e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.co alue(),n=this._valueMin(),o=this._valueMax(),i=o!==n?100*((s-n)/(o-n)):0,c["hori
nnectWith},_getItemsAsjQuery:function(t){function i(){r.push(this)}var s,n,a,o,r zontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"anima
=[],h=[],l=this._connectWith();if(l&&t)for(s=l.length-1;s>=0;s--)for(a=e(l[s]),n te":"css"](c,r.animate),"min"===a&&"horizontal"===this.orientation&&this.range.s
=a.length-1;n>=0;n--)o=e.data(a[n],this.widgetFullName),o&&o!==this&&!o.options. top(1,1)[l?"animate":"css"]({width:i+"%"},r.animate),"max"===a&&"horizontal"===t
disabled&&h.push([e.isFunction(o.options.items)?o.options.items.call(o.element): his.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},r.ani
e(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeh mate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate"
older"),o]);for(h.push([e.isFunction(this.options.items)?this.options.items.call :"css"]({height:i+"%"},r.animate),"max"===a&&"vertical"===this.orientation&&this
(this.element,null,{options:this.options,item:this.currentItem}):e(this.options. .range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},r.animate))},_handleEvent
items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),t s:{keydown:function(e){var i,s,n,o,a=t(e.target).data("ui-slider-handle-index");
his]),s=h.length-1;s>=0;s--)h[s][0].each(i);return e(r)},_removeCurrentsFromItem switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode
s:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this .PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGH
.items=e.grep(this.items,function(e){for(var i=0;t.length>i;i++)if(t[i]===e.item T:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._key
[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers Sliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active")
=[this];var i,s,n,a,o,r,h,l,u=this.items,d=[[e.isFunction(this.options.items)?th ,i=this._start(e,a),i===!1))return}switch(o=this.options.step,s=n=this._hasMulti
is.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options. pleValues()?this.values(a):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this
items,this.element),this]],c=this._connectWith();if(c&&this.ready)for(i=c.length ._valueMin();break;case t.ui.keyCode.END:n=this._valueMax();break;case t.ui.keyC
-1;i>=0;i--)for(n=e(c[i]),s=n.length-1;s>=0;s--)a=e.data(n[s],this.widgetFullNam ode.PAGE_UP:n=this._trimAlignValue(s+(this._valueMax()-this._valueMin())/this.nu
e),a&&a!==this&&!a.options.disabled&&(d.push([e.isFunction(a.options.items)?a.op mPages);break;case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(s-(this._valueM
tions.items.call(a.element[0],t,{item:this.currentItem}):e(a.options.items,a.ele ax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCo
ment),a]),this.containers.push(a));for(i=d.length-1;i>=0;i--)for(o=d[i][1],r=d[i de.RIGHT:if(s===this._valueMax())return;n=this._trimAlignValue(s+o);break;case t
][0],s=0,l=r.length;l>s;s++)h=e(r[s]),h.data(this.widgetName+"-item",o),u.push({ .ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(s===this._valueMin())return;n=this._t
item:h,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(t){ rimAlignValue(s-o)}this._slide(e,a,n)},keyup:function(e){var i=t(e.target).data(
this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var "ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i)
i,s,n,a;for(i=this.items.length-1;i>=0;i--)s=this.items[i],s.instance!==this.cu ,this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}}),t.
rrentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(n=this. widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready
options.toleranceElement?e(this.options.toleranceElement,s.item):s.item,t||(s.wi :!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"aut
dth=n.outerWidth(),s.height=n.outerHeight()),a=n.offset(),s.left=a.left,s.top=a. o",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1
top);if(this.options.custom&&this.options.custom.refreshContainers)this.options. ,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scr
custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i-- oll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect"
)a=this.containers[i].element.offset(),this.containers[i].containerCache.left=a. ,zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,o
left,this.containers[i].containerCache.top=a.top,this.containers[i].containerCac ver:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_i
he.width=this.containers[i].element.outerWidth(),this.containers[i].containerCac sOverAxis:function(t,e,i){return t>=e&&e+i>t},_isFloating:function(t){return/lef
he.height=this.containers[i].element.outerHeight();return this},_createPlacehold t|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_crea
er:function(t){t=t||this;var i,s=t.options;s.placeholder&&s.placeholder.construc te:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(
tor!==String||(i=s.placeholder,s.placeholder={element:function(){var s=t.current ),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName()
Item[0].nodeName.toLowerCase(),n=e("<"+s+">",t.document[0]).addClass(i||t.curren ,this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._se
tItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper") tHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(
;return"tr"===s?t.currentItem.children().each(function(){e("<td>&#160;</td>",t.d this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items
ocument[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(n)}):"img"===s&& ,function(){e._addClass(this.instance.options.handle?this.item.find(this.instanc
n.attr("src",t.currentItem.attr("src")),i||n.css("visibility","hidden"),n},updat e.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._m
e:function(e,n){(!i||s.forcePlaceholderSize)&&(n.height()||n.height(t.currentIte ouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeDa
m.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.curre ta(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var s=null,
ntItem.css("paddingBottom")||0,10)),n.width()||n.width(t.currentItem.innerWidth( n=!1,o=this;return this.reverting?!1:this.options.disabled||"static"===this.opti
)-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("p ons.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return
addingRight")||0,10)))}}),t.placeholder=e(s.placeholder.element.call(t.element,t t.data(this,o.widgetName+"-item")===o?(s=t(this),!1):void 0}),t.data(e.target,o.
.currentItem)),t.currentItem.after(t.placeholder),s.placeholder.update(t,t.place widgetName+"-item")===o&&(s=t(e.target)),s?!this.options.handle||i||(t(this.opti
holder)},_contactContainers:function(t){var i,s,n,a,o,r,h,l,u,d,c=null,p=null;fo ons.handle,s).find("*").addBack().each(function(){this===e.target&&(n=!0)}),n)?(
r(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.co this.currentItem=s,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:funct
ntainers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCach ion(e,i,s){var n,o,a=this.options;if(this.currentContainer=this,this.refreshPosi
e)){if(c&&e.contains(this.containers[i].element[0],c.element[0]))continue;c=this tions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._c
.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers acheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.curr
[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over= entItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.off
0);if(c)if(1===this.containers.length)this.containers[p].containerCache.over||(t set.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offse
his.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].conta t.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this
inerCache.over=1);else{for(n=1e4,a=null,u=c.floating||this._isFloating(this.curr ._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=
entItem),o=u?"left":"top",r=u?"width":"height",d=u?"clientX":"clientY",s=this.it this.helper.css("position"),this.originalPosition=this._generatePosition(e),this
ems.length-1;s>=0;s--)e.contains(this.containers[p].element[0],this.items[s].ite .originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffset
m[0])&&this.items[s].item[0]!==this.currentItem[0]&&(h=this.items[s].item.offset FromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:
()[o],l=!1,t[d]-h>this.items[s][r]/2&&(l=!0),n>Math.abs(t[d]-h)&&(n=Math.abs(t[d this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.current
]-h),a=this.items[s],this.direction=l?"up":"down"));if(!a&&!this.options.dropOnE Item.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cu
mpty)return;if(this.currentContainer===this.containers[p])return this.currentCon rsor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("
tainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash() cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a
),this.currentContainer.containerCache.over=1),void 0;a?this._rearrange(t,a,null .cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opac
,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change ity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity
",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),t ",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.hel
his.currentContainer=this.containers[p],this.options.placeholder.update(this.cur per.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==th
rentContainer,this.placeholder),this.containers[p]._trigger("over",t,this._uiHas is.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this
h(this)),this.containers[p].containerCache.over=1}},_createHelper:function(t){va .scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHe
r i=this.options,s=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t,th lperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-
is.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;r 1;n>=0;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return t
eturn s.parents("body").length||e("parent"!==i.appendTo?i.appendTo:this.currentI .ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t
tem[0].parentNode)[0].appendChild(s[0]),s[0]===this.currentItem[0]&&(this._store .ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper
dCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.hei ,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,s,n,o
ght,position:this.currentItem.css("position"),top:this.currentItem.css("top"),le ,a=this.options,r=!1;for(this.position=this._generatePosition(e),this.positionAb
ft:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelperSize)&&s.widt s=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAb
h(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(th s=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0
is.currentItem.height()),s},_adjustOffsetFromHelper:function(t){"string"==typeof ]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollPar
t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(th ent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=r
is.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.l =this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.
eft=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.off scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scroll
set.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this. Top-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.p
helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function() ageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].
{this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();r scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(
eturn"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&e.contains( this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-a.scrollSpeed)
this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLef ):(e.pageY-this.document.scrollTop()<a.scrollSensitivity?r=this.document.scrollT
t(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body| op(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(e.pageY-this.d
|this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase ocument.scrollTop())<a.scrollSensitivity&&(r=this.document.scrollTop(this.docume
()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("bor nt.scrollTop()+a.scrollSpeed)),e.pageX-this.document.scrollLeft()<a.scrollSensit
derTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWid ivity?r=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.
th"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){v window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(r=this
ar e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top .document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),r!==!1&&t.ui.dd
"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css(" manager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionA
left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargi bs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axi
ns:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10) s||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===
||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProporti this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.item
ons:function(){this.helperProportions={width:this.helper.outerWidth(),height:thi s.length-1;i>=0;i--)if(s=this.items[i],n=s.item[0],o=this._intersectsWithPointer
s.helper.outerHeight()}},_setContainment:function(){var t,i,s,n=this.options;"pa (s),o&&s.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeho
rent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n lder[1===o?"next":"prev"]()[0]!==n&&!t.contains(this.placeholder[0],n)&&("semi-d
.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relati ynamic"===this.options.type?!t.contains(this.element[0],n):!0)){if(this.directio
ve.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.to n=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSid
p,e("document"===n.containment?document:window).width()-this.helperProportions.w es(s))break;this._rearrange(e,s),this._trigger("change",e,this._uiHash());break}
idth-this.margins.left,(e("document"===n.containment?document:window).height()|| return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),th
document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margin is._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_
s.top]),/^(document|window|parent)$/.test(n.containment)||(t=e(n.containment)[0] mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.
,i=e(n.containment).offset(),s="hidden"!==e(t).css("overflow"),this.containment= ui.ddmanager.drop(this,e),this.options.revert){var s=this,n=this.placeholder.off
[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddin set(),o=this.options.axis,a={};o&&"x"!==o||(a.left=n.left-this.offset.parent.lef
gLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10) t-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetP
||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.ma arent[0].scrollLeft)),o&&"y"!==o||(a.top=n.top-this.offset.parent.top-this.margi
x(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidt ns.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scro
h"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.wi llTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,
dth-this.margins.left,i.top+(s?Math.max(t.scrollHeight,t.offsetHeight):t.offsetH 10)||500,function(){s._clear(e)})}else this._clear(e,i);return!1}},cancel:functi
eight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingB on(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"orig
ottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositi inal"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeC
onTo:function(t,i){i||(i=this.position);var s="absolute"===t?1:-1,n="absolute"!= lass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=t
=this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent his.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,t
[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.t his._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._
est(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)
.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:n.scrollTo }return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].p
p())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed arentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&thi
"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:n.scrollLeft())*s}},_ge s.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:
neratePosition:function(t){var i,s,n=this.options,a=t.pageX,o=t.pageY,r="absolut null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.d
e"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollPa omPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this
rent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body) .currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.con
/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]! nected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.a
==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=t ttribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&s.push((e.key||i[1
his._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-thi ]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!s.length&&e.key&&s.push(e.key+"=
s.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.clic "),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected)
k.left),t.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1 ,s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||
]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(a= "id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this
this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.c .helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.heigh
ontainment[3]&&(o=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.or t,o=t.left,a=o+t.width,r=t.top,h=r+t.height,l=this.offset.click.top,c=this.offse
iginalPageY+Math.round((o-this.originalPageY)/n.grid[1])*n.grid[1],o=this.contai t.click.left,u="x"===this.options.axis||s+l>r&&h>s+l,d="y"===this.options.axis||
nment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=thi e+c>o&&a>e+c,p=u&&d;return"pointer"===this.options.tolerance||this.options.force
s.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-n.grid[1]:i+n. PointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions
grid[1]:i,s=this.originalPageX+Math.round((a-this.originalPageX)/n.grid[0])*n.gr [this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.help
id[0],a=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.o erProportions.width/2>o&&a>i-this.helperProportions.width/2&&s+this.helperPropor
ffset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containme tions.height/2>r&&h>n-this.helperProportions.height/2},_intersectsWithPointer:fu
nt[0]?s-n.grid[0]:s+n.grid[0]:s)),{top:o-this.offset.click.top-this.offset.relat nction(t){var e,i,s="x"===this.options.axis||this._isOverAxis(this.positionAbs.t
ive.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.sc op+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||this._isOver
rollTop():h?0:r.scrollTop()),left:a-this.offset.click.left-this.offset.relative. Axis(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=s&&n;return
left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scro o?(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.
llLeft():h?0:r.scrollLeft())}},_rearrange:function(e,t,i,s){i?i[0].appendChild(t floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1)):!1},_intersectsWithSid
his.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down" es:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top
===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++t ,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset
his.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.r .click.left,t.left+t.width/2,t.width),s=this._getDragVerticalDirection(),n=this.
efreshPositions(!s)})},_clear:function(e,t){function i(e,t,i){return function(s) _getDragHorizontalDirection();return this.floating&&n?"right"===n&&i||"left"===n
{i._trigger(e,s,t._uiHash(t))}}this.reverting=!1;var s,n=[];if(!this._noFinalSor &&!i:s&&("down"===s&&e||"up"===s&&!e)},_getDragVerticalDirection:function(){var
t&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),t t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")}
his._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._store ,_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPos
dCSS)("auto"===this._storedCSS[s]||"static"===this._storedCSS[s])&&(this._stored itionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return thi
CSS[s]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper s._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_con
")}else this.currentItem.show();for(this.fromOutside&&!t&&n.push(function(e){thi nectWith:function(){var t=this.options;return t.connectWith.constructor===String
s._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this ?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){r.pus
.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this. h(this)}var s,n,o,a,r=[],h=[],l=this._connectWith();if(l&&e)for(s=l.length-1;s>=
domPosition.parent===this.currentItem.parent()[0]||t||n.push(function(e){this._t 0;s--)for(o=t(l[s],this.document[0]),n=o.length-1;n>=0;n--)a=t.data(o[n],this.wi
rigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(n.push(fu dgetFullName),a&&a!==this&&!a.options.disabled&&h.push([t.isFunction(a.options.i
nction(e){this._trigger("remove",e,this._uiHash())}),n.push(function(e){return f tems)?a.options.items.call(a.element):t(a.options.items,a.element).not(".ui-sort
unction(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentCo able-helper").not(".ui-sortable-placeholder"),a]);for(h.push([t.isFunction(this.
ntainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHa options.items)?this.options.items.call(this.element,null,{options:this.options,i
sh(this))}}.call(this,this.currentContainer)))),s=this.containers.length-1;s>=0; tem:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-help
s--)t||n.push(i("deactivate",this,this.containers[s])),this.containers[s].contai er").not(".ui-sortable-placeholder"),this]),s=h.length-1;s>=0;s--)h[s][0].each(i
nerCache.over&&(n.push(i("out",this,this.containers[s])),this.containers[s].cont );return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find("
ainerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor :data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(v
",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.h ar i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:fun
elper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zI ction(e){this.items=[],this.containers=[this];var i,s,n,o,a,r,h,l,c=this.items,u
ndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||thi =[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{i
s._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeC tem:this.currentItem}):t(this.options.items,this.element),this]],d=this._connect
hild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.curre With();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=t(d[i],this.document[0])
ntItem[0]&&this.helper.remove(),this.helper=null),!t){for(s=0;n.length>s;s++)n[s ,s=n.length-1;s>=0;s--)o=t.data(n[s],this.widgetFullName),o&&o!==this&&!o.option
].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1 s.disabled&&(u.push([t.isFunction(o.options.items)?o.options.items.call(o.elemen
,!this.cancelHelperRemoval},_trigger:function(){e.Widget.prototype._trigger.appl t[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers
y(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{ .push(o));for(i=u.length-1;i>=0;i--)for(a=u[i][1],r=u[i][0],s=0,l=r.length;l>s;s
helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPos ++)h=t(r[s]),h.data(this.widgetName+"-item",a),c.push({item:h,instance:a,width:0
ition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.elem ,height:0,left:0,top:0})},refreshPositions:function(e){this.floating=this.items.
ent:null}}}),e.widget("ui.spinner",{version:"1.11.2",defaultElement:"<input>",wi length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1,this.off
dgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s", setParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,s,n,o
up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,pa ;for(i=this.items.length-1;i>=0;i--)s=this.items[i],s.instance!==this.currentCon
ge:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this tainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(n=this.options.
._setOption("max",this.options.max),this._setOption("min",this.options.min),this toleranceElement?t(this.options.toleranceElement,s.item):s.item,e||(s.width=n.ou
._setOption("step",this.options.step),""!==this.value()&&this._value(this.elemen terWidth(),s.height=n.outerHeight()),o=n.offset(),s.left=o.left,s.top=o.top);if(
t.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.wi this.options.custom&&this.options.custom.refreshContainers)this.options.custom.r
ndow,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCr efreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.
eateOptions:function(){var t={},i=this.element;return e.each(["min","max","step" containers[i].element.offset(),this.containers[i].containerCache.left=o.left,thi
],function(e,s){var n=i.attr(s);void 0!==n&&n.length&&(t[s]=n)}),t},_events:{key s.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width
down:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_s =this.containers[i].element.outerWidth(),this.containers[i].containerCache.heigh
top",focus:function(){this.previous=this.element.val()},blur:function(e){return t=this.containers[i].element.outerHeight();return this},_createPlaceholder:funct
this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),th ion(e){e=e||this;var i,s=e.options;s.placeholder&&s.placeholder.constructor!==St
is.previous!==this.element.val()&&this._trigger("change",e),void 0)},mousewheel: ring||(i=s.placeholder,s.placeholder={element:function(){var s=e.currentItem[0].
function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((t>0? nodeName.toLowerCase(),n=t("<"+s+">",e.document[0]);return e._addClass(n,"ui-sor
1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTim table-placeholder",i||e.currentItem[0].className)._removeClass(n,"ui-sortable-he
er=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()} lper"),"tbody"===s?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>
},"mousedown .ui-spinner-button":function(t){function i(){var e=this.element[0]= ",e.document[0]).appendTo(n)):"tr"===s?e._createTrPlaceholder(e.currentItem,n):"
==this.document[0].activeElement;e||(this.element.focus(),this.previous=s,this._ img"===s&&n.attr("src",e.currentItem.attr("src")),i||n.css("visibility","hidden"
delay(function(){this.previous=s}))}var s;s=this.element[0]===this.document[0].a ),n},update:function(t,n){(!i||s.forcePlaceholderSize)&&(n.height()||n.height(e.
ctiveElement?this.previous:this.element.val(),t.preventDefault(),i.call(this),th currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseI
is.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),th nt(e.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(e.currentItem.i
is._start(t)!==!1&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up" nnerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentI
)?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button": tem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e
function(t){return e(t.currentTarget).hasClass("ui-state-active")?this._start(t) .element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update
===!1?!1:(this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t) (e,e.placeholder)},_createTrPlaceholder:function(e,i){var s=this;e.children().ea
,void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e ch(function(){t("<td>&#160;</td>",s.document[0]).attr("colspan",t(this).attr("co
=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","o lspan")||1).appendTo(i)})},_contactContainers:function(e){var i,s,n,o,a,r,h,l,c,
ff").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.elemen u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.curr
t.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabI entItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.container
ndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil( s[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0
.5*e.height())&&e.height()>0&&e.height(e.height()),this.options.disabled&&this.d ]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over
isable()},_keydown:function(t){var i=this.options,s=e.ui.keyCode;switch(t.keyCod &&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].co
e){case s.UP:return this._repeat(null,1,t),!0;case s.DOWN:return this._repeat(nu ntainerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].conta
ll,-1,t),!0;case s.PAGE_UP:return this._repeat(null,i.page,t),!0;case s.PAGE_DOW inerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.c
N:return this._repeat(null,-i.page,t),!0}return!1},_uiSpinnerHtml:function(){ret ontainers[p].containerCache.over=1);else{for(n=1e4,o=null,c=d.floating||this._is
urn"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"} Floating(this.currentItem),a=c?"left":"top",r=c?"width":"height",u=c?"pageX":"pa
,_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corn geY",s=this.items.length-1;s>=0;s--)t.contains(this.containers[p].element[0],thi
er-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span>"+"</a>"+"< s.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(h=this.items[
a class='ui-spinner-button ui-spinner-down ui-corner-br'>"+"<span class='ui-icon s].item.offset()[a],l=!1,e[u]-h>this.items[s][r]/2&&(l=!0),n>Math.abs(e[u]-h)&&(
"+this.options.icons.down+"'>&#9660;</span>"+"</a>"},_start:function(e){return n=Math.abs(e[u]-h),o=this.items[s],this.direction=l?"up":"down"));if(!o&&!this.o
this.spinning||this._trigger("start",e)!==!1?(this.counter||(this.counter=1),thi ptions.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return t
s.spinning=!0,!0):!1},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer), his.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,
this.timer=this._delay(function(){this._repeat(40,t,i)},e),this._spin(t*this.opt this._uiHash()),this.currentContainer.containerCache.over=1),void 0;o?this._rear
ions.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.coun range(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._t
ter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&thi rigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._u
s._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment iHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.u
:function(t){var i=this.options.incremental;return i?e.isFunction(i)?i(t):Math.f pdate(this.currentContainer,this.placeholder),this.containers[p]._trigger("over"
loor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisio ,e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:
nOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._preci function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.el
sionOf(this.options.min))),e},_precisionOf:function(e){var t=""+e,i=t.indexOf(". ement[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this
");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,s=this.options; .currentItem;return s.parents("body").length||t("parent"!==i.appendTo?i.appendTo
return t=null!==s.min?s.min:0,i=e-t,i=Math.round(i/s.step)*s.step,e=t+i,e=parseF :this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]===this.currentItem[0]
loat(e.toFixed(this._precision())),null!==s.max&&e>s.max?s.max:null!==s.min&&s.m &&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentIte
in>e?s.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTi m[0].style.height,position:this.currentItem.css("position"),top:this.currentItem
meout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop" .css("top"),left:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelpe
,e))},_setOption:function(e,t){if("culture"===e||"numberFormat"===e){var i=this. rSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize
_parse(this.element.val());return this.options[e]=t,this.element.val(this._forma )&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(e){"s
t(i)),void 0}("max"===e||"min"===e||"step"===e)&&"string"==typeof t&&(t=this._pa tring"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"
rse(t)),"icons"===e&&(this.buttons.first().find(".ui-icon").removeClass(this.opt left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.
ions.icons.up).addClass(t.up),this.buttons.last().find(".ui-icon").removeClass(t offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"i
his.options.icons.down).addClass(t.down)),this._super(e,t),"disabled"===e&&(this n e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.c
.widget().toggleClass("ui-state-disabled",!!t),this.element.prop("disabled",!!t) lick.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOff
,this.buttons.button(t?"disable":"enable"))},_setOptions:h(function(e){this._sup set:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetPar
er(e)}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize ent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.do
&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e), cument[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.
""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&t scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetPare
his.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.optio nt[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offse
ns.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.optio tParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parse
ns.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element Int(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.o
.val())})},isValid:function(){var e=this.value();return null===e?!1:e===this._ad ffsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("r
justValue(e)},_value:function(e,t){var i;""!==e&&(i=this._parse(e),null!==i&&(t| elative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-
|(i=this._adjustValue(i)),e=this._format(i))),this.element.val(e),this._refresh( (parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.le
)},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabl ft-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}ret
ed",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin" urn{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.cur
).removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replace rentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop")
With(this.element)},stepUp:h(function(e){this._stepUp(e)}),_stepUp:function(e){t ,10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.
his._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:h(fu helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(
nction(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin(( ){var e,i,s,n=this.options;"parent"===n.containment&&(n.containment=this.helper[
e||1)*-this.options.step),this._stop())},pageUp:h(function(e){this._stepUp((e||1 0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.con
)*this.options.page)}),pageDown:h(function(e){this._stepDown((e||1)*this.options tainment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.rela
.page)}),value:function(e){return arguments.length?(h(this._value).call(this,e), tive.top-this.offset.parent.top,"document"===n.containment?this.document.width()
void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner :this.window.width()-this.helperProportions.width-this.margins.left,("document"=
}}),e.widget("ui.tabs",{version:"1.11.2",delay:300,options:{active:null,collapsi ==n.containment?this.document.height()||document.body.parentNode.scrollHeight:th
ble:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,bef is.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperPr
oreActivate:null,beforeLoad:null,load:null},_isLocal:function(){var e=/#.*$/;ret oportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containm
urn function(t){var i,s;t=t.cloneNode(!1),i=t.href.replace(e,""),s=location.href ent)||(e=t(n.containment)[0],i=t(n.containment).offset(),s="hidden"!==t(e).css("
.replace(e,"");try{i=decodeURIComponent(i)}catch(n){}try{s=decodeURIComponent(s) overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0
}catch(n){}return t.hash.length>1&&i===s}}(),_create:function(){var t=this,i=thi )+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(
s.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-con e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.m
tent ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible),this._proc argins.top,i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parse
essTabs(),i.active=this._initialActive(),e.isArray(i.disabled)&&(i.disabled=e.un Int(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||
ique(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){ 0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(e.scrollHeig
return t.tabs.index(e)}))).sort()),this.active=this.options.active!==!1&&this.an ht,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-
chors.length?this._findActive(i.active):e(),this._refresh(),this.active.length&& (parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.m
this.load(i.active)},_initialActive:function(){var t=this.options.active,i=this. argins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var s="absol
options.collapsible,s=location.hash.substring(1);return null===t&&(s&&this.tabs. ute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.docum
each(function(i,n){return e(n).attr("aria-controls")===s?(t=i,!1):void 0}),null= ent[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:
==t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===t||-1===t) this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offs
&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),-1===t& et.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scr
&(t=i?!1:0)),!i&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:funct ollParent.scrollTop():o?0:n.scrollTop())*s,left:i.left+this.offset.relative.left
ion(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this. *s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scro
active):e()}},_tabKeydown:function(t){var i=e(this.document[0].activeElement).cl llLeft():o?0:n.scrollLeft())*s}},_generatePosition:function(e){var i,s,n=this.op
osest("li"),s=this.tabs.index(i),n=!0;if(!this._handlePageNav(t)){switch(t.keyCo tions,o=e.pageX,a=e.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!
de){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:s++;break;case e.ui.keyCode.U ==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.s
P:case e.ui.keyCode.LEFT:n=!1,s--;break;case e.ui.keyCode.END:s=this.anchors.len crollParent:this.offsetParent,h=/(html|body)/i.test(r[0].tagName);return"relativ
gth-1;break;case e.ui.keyCode.HOME:s=0;break;case e.ui.keyCode.SPACE:return t.pr e"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParen
eventDefault(),clearTimeout(this.activating),this._activate(s),void 0;case e.ui. t[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),th
keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),this._acti is.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.con
vate(s===this.options.active?!1:s),void 0;default:return}t.preventDefault(),clea tainment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.
rTimeout(this.activating),s=this._focusNextTab(s,n),t.ctrlKey||(i.attr("aria-sel click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.p
ected","false"),this.tabs.eq(s).attr("aria-selected","true"),this.activating=thi ageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.off
s._delay(function(){this.option("active",s)},this.delay))}},_panelKeydown:functi set.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.conta
on(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.prevent inment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((a-th
Default(),this.active.focus())},_handlePageNav:function(t){return t.altKey&&t.ke is.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?i-this.offset.click.to
yCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.act p>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.of
ive-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this fset.click.top>=this.containment[1]?i-n.grid[1]:i+n.grid[1]:i,s=this.originalPag
._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i) eX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0],o=this.containment?s-t
{function s(){return t>n&&(t=0),0>t&&(t=n),t}for(var n=this.tabs.length-1;-1!==e his.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.conta
.inArray(s(),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:functio inment[2]?s:s-this.offset.click.left>=this.containment[0]?s-n.grid[0]:s+n.grid[0
n(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).focus(),e},_setOption:fun ]:s)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.t
ction(e,t){return"active"===e?(this._activate(t),void 0):"disabled"===e?(this._s op+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():h?0:r.scrollTop())
etupDisabled(t),void 0):(this._super(e,t),"collapsible"===e&&(this.element.toggl ,left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left
eClass("ui-tabs-collapsible",t),t||this.options.active!==!1||this._activate(0)), +("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?0:r.scrollLeft())
"event"===e&&this._setupEvents(t),"heightStyle"===e&&this._setupHeightStyle(t),v }},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0
oid 0)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@ ].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:
\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist. e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.cou
children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),functi nter;
on(e){return i.index(e)}),this._processTabs(),t.active!==!1&&this.anchors.length this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:fun
?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.lengt ction(t,e){function i(t,e,i){return function(s){i._trigger(t,s,e._uiHash(e))}}th
h===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNex is.reverting=!1;var s,n=[];if(!this._noFinalSort&&this.currentItem.parent().leng
tTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active th&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper
=!1,this.active=e()),this._refresh()},_refresh:function(){this._setupDisabled(th [0]===this.currentItem[0]){for(s in this._storedCSS)("auto"===this._storedCSS[s]
is.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyl ||"static"===this._storedCSS[s])&&(this._storedCSS[s]="");this.currentItem.css(t
e(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"fa his._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else th
lse","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab( is.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger
this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.activ ("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPositi
e.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria- on.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPositio
expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"ar n.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("up
ia-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function( date",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){
){var t=this,i=this.tabs,s=this.anchors,n=this.panels;this.tablist=this._getList this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e)
().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui- {t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),
corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamesp n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}
ace,function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate( }.call(this,this.currentContainer)))),s=this.containers.length-1;s>=0;s--)e||n.p
".ui-tabs-anchor","focus"+this.eventNamespace,function(){e(this).closest("li").i ush(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.o
s(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[h ver&&(n.push(i("out",this,this.containers[s])),this.containers[s].containerCache
ref])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1} .over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.sto
),this.anchors=this.tabs.map(function(){return e("a",this)[0] redCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css(
}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panel "opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","aut
s=e(),this.anchors.each(function(i,s){var n,a,o,r=e(s).uniqueId().attr("id"),h=e o"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger
(s).closest("li"),l=h.attr("aria-controls");t._isLocal(s)?(n=s.hash,o=n.substrin ("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.
g(1),a=t.element.find(t._sanitizeSelector(n))):(o=h.attr("aria-controls")||e({}) placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&
.uniqueId()[0].id,n="#"+o,a=t.element.find(n),a.length||(a=t._createPanel(o),a.i &this.helper.remove(),this.helper=null),!e){for(s=0;n.length>s;s++)n[s].call(thi
nsertAfter(t.panels[i-1]||t.tablist)),a.attr("aria-live","polite")),a.length&&(t s,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.can
.panels=t.panels.add(a)),l&&h.data("ui-tabs-aria-controls",l),h.attr({"aria-cont celHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arg
rols":o,"aria-labelledby":r}),a.attr("aria-labelledby",r)}),this.panels.addClass uments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.h
("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel"),i&& elper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.or
(this._off(i.not(this.tabs)),this._off(s.not(this.anchors)),this._off(n.not(this iginalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}
.panels)))},_getList:function(){return this.tablist||this.element.find("ol,ul"). }),t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventP
eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).addClass("ui-tabs refix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"u
-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDi i-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-t
sabled:function(t){e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0 riangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberF
):t=!1);for(var i,s=0;i=this.tabs[s];s++)t===!0||-1!==e.inArray(s,t)?e(i).addCla ormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:fu
ss("ui-state-disabled").attr("aria-disabled","true"):e(i).removeClass("ui-state- nction(){this._setOption("max",this.options.max),this._setOption("min",this.opti
disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:fun ons.min),this._setOption("step",this.options.step),""!==this.value()&&this._valu
ction(t){var i={};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),th e(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),thi
is._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{ s._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete
click:function(e){e.preventDefault()}}),this._on(this.anchors,i),this._on(this.t ")}})},_getCreateOptions:function(){var e=this._super(),i=this.element;return t.
abs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),thi each(["min","max","step"],function(t,s){var n=i.attr(s);null!=n&&n.length&&(e[s]
s._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t =n)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preven
){var i,s=this.element.parent();"fill"===t?(i=s.height(),i-=this.element.outerHe tDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blu
ight()-this.element.height(),this.element.siblings(":visible").each(function(){v r:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop
ar t=e(this),s=t.css("position");"absolute"!==s&&"fixed"!==s&&(i-=t.outerHeight( (),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t)
!0))}),this.element.children().not(this.panels).each(function(){i-=e(this).outer ,void 0)},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))retu
Height(!0)}),this.panels.each(function(){e(this).height(Math.max(0,i-e(this).inn rn!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTime
erHeight()+e(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.pa r),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100
nels.each(function(){i=Math.max(i,e(this).height("").height())}).height(i))},_ev ),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){v
entHandler:function(t){var i=this.options,s=this.active,n=e(t.currentTarget),a=n ar e=this.element[0]===t.ui.safeActiveElement(this.document[0]);e||(this.element
.closest("li"),o=a[0]===s[0],r=o&&i.collapsible,h=r?e():this._getPanelForTab(a), .trigger("focus"),this.previous=s,this._delay(function(){this.previous=s}))}var
l=s.length?this._getPanelForTab(s):e(),u={oldTab:s,oldPanel:l,newTab:r?e():a,new s;s=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:thi
Panel:h};t.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs s.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(f
-loading")||this.running||o&&!i.collapsible||this._trigger("beforeActivate",t,u) unction(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repea
===!1||(i.active=r?!1:this.tabs.index(a),this.active=o?e():a,this.xhr&&this.xhr. t(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinne
abort(),l.length||h.length||e.error("jQuery UI Tabs: Mismatching fragment identi r-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.current
fier."),h.length&&this.load(this.tabs.index(a),t),this._toggle(t,u))},_toggle:fu Target).hasClass("ui-state-active")?this._start(e)===!1?!1:(this._repeat(null,t(
nction(t,i){function s(){a.running=!1,a._trigger("activate",t,i)}function n(){i. e.currentTarget).hasClass("ui-spinner-up")?1:-1,e),void 0):void 0},"mouseleave .
newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&&a.opti ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr
ons.show?a._show(o,a.options.show,s):(o.show(),s())}var a=this,o=i.newPanel,r=i. ("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:f
oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.h unction(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget
ide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-activ ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role",
e"),n()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"), "spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr
r.hide(),n()),r.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false ("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.but
","aria-expanded":"false"}),o.length&&r.length?i.oldTab.attr("tabIndex",-1):o.le tons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-
ngth&&this.tabs.filter(function(){return 0===e(this).attr("tabIndex")}).attr("ta spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-do
bIndex",-1),o.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true", wn"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this
"aria-expanded":"true",tabIndex:0})},_activate:function(t){var i,s=this._findAct .buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons
ive(t);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find(".ui-tabs-anch .height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this
or")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_ .uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var i=this.opti
findActive:function(t){return t===!1?e():this.tabs.eq(t)},_getIndex:function(e){ ons,s=t.ui.keyCode;switch(e.keyCode){case s.UP:return this._repeat(null,1,e),!0;
return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+e case s.DOWN:return this._repeat(null,-1,e),!0;case s.PAGE_UP:return this._repeat
+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeCl (null,i.page,e),!0;case s.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}retur
ass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),thi n!1},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(thi
s.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget- s.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t
header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anch ||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40
or").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unb ,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.valu
ind(this.eventNamespace),this.tabs.add(this.panels).each(function(){e.data(this, e()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(th
"ui-tabs-destroy")?e(this).remove():e(this).removeClass("ui-state-default ui-sta is.counter)),this.spinning&&this._trigger("spin",e,{value:i})===!1||(this._value
te-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui- (i),this.counter++)},_increment:function(e){var i=this.options.incremental;retur
tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").remov n i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:
eAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").rem function(){var t=this._precisionOf(this.options.step);return null!==this.options
oveAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tab .min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:functi
s.each(function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria on(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:func
-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")} tion(t){var e,i,s=this.options;return e=null!==s.min?s.min:0,i=t-e,i=Math.round(
),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("heig i/s.step)*s.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==s.max&&
ht","")},enable:function(t){var i=this.options.disabled;i!==!1&&(void 0===t?i=!1 t>s.max?s.max:null!==s.min&&s.min>t?s.min:t},_stop:function(t){this.spinning&&(c
:(t=this._getIndex(t),i=e.isArray(i)?e.map(i,function(e){return e!==t?e:null}):e learTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.s
.map(this.tabs,function(e,i){return i!==t?i:null})),this._setupDisabled(i))},dis pinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i,s,n;return"c
able:function(t){var i=this.options.disabled;if(i!==!0){if(void 0===t)i=!0;else{ ulture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[
if(t=this._getIndex(t),-1!==e.inArray(t,i))return;i=e.isArray(i)?e.merge([t],i). t]=e,this.element.val(this._format(i)),void 0):(("max"===t||"min"===t||"step"===
sort():[t]}this._setupDisabled(i)}},load:function(t,i){t=this._getIndex(t);var s t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(s=this.buttons.first().
=this,n=this.tabs.eq(t),a=n.find(".ui-tabs-anchor"),o=this._getPanelForTab(n),r= find(".ui-icon"),this._removeClass(s,null,this.options.icons.up),this._addClass(
{tab:n,panel:o};this._isLocal(a[0])||(this.xhr=e.ajax(this._ajaxSettings(a,i,r)) s,null,e.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,thi
,this.xhr&&"canceled"!==this.xhr.statusText&&(n.addClass("ui-tabs-loading"),o.at s.options.icons.down),this._addClass(n,null,e.down)),this._super(t,e),void 0)},_
tr("aria-busy","true"),this.xhr.success(function(e){setTimeout(function(){o.html setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,nu
(e),s._trigger("load",i,r)},1)}).complete(function(e,t){setTimeout(function(){"a ll,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.butto
bort"===t&&s.panels.stop(!1,!0),n.removeClass("ui-tabs-loading"),o.removeAttr("a n(t?"disable":"enable")},_setOptions:r(function(t){this._super(t)}),_parse:funct
ria-busy"),e===s.xhr&&delete s.xhr},1)})))},_ajaxSettings:function(t,i,s){var n= ion(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numbe
this;return{url:t.attr("href"),beforeSend:function(t,a){return n._trigger("befor rFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?nul
eLoad",i,e.extend({jqXHR:t,ajaxSettings:a},s))}}},_getPanelForTab:function(t){va l:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFo
r i=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector(" rmat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refr
#"+i))}}),e.widget("ui.tooltip",{version:"1.11.2",options:{content:function(){va esh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuema
r t=e(this).attr("title")||"";return e("<a>").text(t).html()},hide:!0,items:"[ti x":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:f
tle]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"fli unction(){var t=this.value();return null===t?!1:t===this._adjustValue(t)},_value
pfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescrib :function(t,e){var i;""!==t&&(i=this._parse(t),null!==i&&(e||(i=this._adjustValu
edBy:function(t,i){var s=(t.attr("aria-describedby")||"").split(/\s+/);s.push(i) e(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function
,t.data("ui-tooltip-id",i).attr("aria-describedby",e.trim(s.join(" ")))},_remove (){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin
DescribedBy:function(t){var i=t.data("ui-tooltip-id"),s=(t.attr("aria-describedb aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:r
y")||"").split(/\s+/),n=e.inArray(i,s);-1!==n&&s.splice(n,1),t.removeData("ui-to (function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t
oltip-id"),s=e.trim(s.join(" ")),s?t.attr("aria-describedby",s):t.removeAttr("ar ||1)*this.options.step),this._stop())},stepDown:r(function(t){this._stepDown(t)}
ia-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}) ),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),th
,this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.li is._stop())},pageUp:r(function(t){this._stepUp((t||1)*this.options.page)}),pageD
veRegion=e("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"ad own:r(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){r
ditions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].bod eturn arguments.length?(r(this._value).call(this,t),void 0):this._parse(this.ele
y)},_setOption:function(t,i){var s=this;return"disabled"===t?(this[i?"_disable": ment.val())},widget:function(){return this.uiSpinner}}),t.uiBackCompat!==!1&&t.w
"_enable"](),this.options[t]=i,void 0):(this._super(t,i),"content"===t&&e.each(t idget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element
his.tooltips,function(e,t){s._updateContent(t.element)}),void 0)},_disable:funct .attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._bu
ion(){var t=this;e.each(this.tooltips,function(i,s){var n=e.Event("blur");n.targ ttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){re
et=n.currentTarget=s.element[0],t.close(n,!0)}),this.element.find(this.options.i turn"<a></a><a></a>"}}),t.ui.spinner,t.widget("ui.tabs",{version:"1.12.1",delay:
tems).addBack().each(function(){var t=e(this);t.is("[title]")&&t.data("ui-toolti 300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-co
p-title",t.attr("title")).removeAttr("title")})},_enable:function(){this.element rner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},coll
.find(this.options.items).addBack().each(function(){var t=e(this);t.data("ui-too apsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null
ltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var ,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var t=/#.*$/
i=this,s=e(t?t.target:this.element).closest(this.options.items);s.length&&!s.da ;return function(e){var i,s;i=e.href.replace(t,""),s=location.href.replace(t,"")
ta("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title") ;try{i=decodeURIComponent(i)}catch(n){}try{s=decodeURIComponent(s)}catch(n){}ret
),s.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&s.parents().each(functio urn e.hash.length>1&&i===s}}(),_create:function(){var e=this,i=this.options;this
n(){var t,s=e(this);s.data("ui-tooltip-open")&&(t=e.Event("blur"),t.target=t.cur .running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggle
rentTarget=this,i.close(t,!0)),s.attr("title")&&(s.uniqueId(),i.parents[this.id] Class("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=thi
={element:this,title:s.attr("title")},s.attr("title",""))}),this._updateContent( s._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat
s,t))},_updateContent:function(e,t){var i,s=this.options.content,n=this,a=t?t.ty (t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)
pe:null;return"string"==typeof s?this._open(t,e,s):(i=s.call(e[0],function(i){e. }))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._fin
data("ui-tooltip-open")&&n._delay(function(){t&&(t.type=a),this._open(t,e,i)})}) dActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_
,i&&this._open(t,e,i),void 0)},_open:function(t,i,s){function n(e){u.of=e,o.is(" initialActive:function(){var e=this.options.active,i=this.options.collapsible,s=
:hidden")||o.position(u)}var a,o,r,h,l,u=e.extend({},this.options.position);if(s location.hash.substring(1);return null===e&&(s&&this.tabs.each(function(i,n){ret
){if(a=this._find(i))return a.tooltip.find(".ui-tooltip-content").html(s),void 0 urn t(n).attr("aria-controls")===s?(e=i,!1):void 0}),null===e&&(e=this.tabs.inde
;i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("titl x(this.tabs.filter(".ui-tabs-active"))),(null===e||-1===e)&&(e=this.tabs.length?
e")),a=this._tooltip(i),o=a.tooltip,this._addDescribedBy(i,o.attr("id")),o.find( 0:!1)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),-1===e&&(e=i?!1:0)),!i&&e===!
".ui-tooltip-content").html(s),this.liveRegion.children().hide(),s.clone?(l=s.cl 1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.
one(),l.removeAttr("id").find("[id]").removeAttr("id")):l=s,e("<div>").html(l).a active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeyd
ppendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on( own:function(e){var i=t(t.ui.safeActiveElement(this.document[0])).closest("li"),
this.document,{mousemove:n}),n(t)):o.position(e.extend({of:i},this.options.posit s=this.tabs.index(i),n=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.u
ion)),o.hide(),this._show(o,this.options.show),this.options.show&&this.options.s i.keyCode.RIGHT:case t.ui.keyCode.DOWN:s++;break;case t.ui.keyCode.UP:case t.ui.
how.delay&&(h=this.delayedShow=setInterval(function(){o.is(":visible")&&(n(u.of) keyCode.LEFT:n=!1,s--;break;case t.ui.keyCode.END:s=this.anchors.length-1;break;
,clearInterval(h))},e.fx.interval)),this._trigger("open",t,{tooltip:o}),r={keyup case t.ui.keyCode.HOME:s=0;break;case t.ui.keyCode.SPACE:return e.preventDefault
:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var s=e.Event(t);s.currentTarge (),clearTimeout(this.activating),this._activate(s),void 0;case t.ui.keyCode.ENTE
t=i[0],this.close(s,!0)}}},i[0]!==this.element[0]&&(r.remove=function(){this._re R:return e.preventDefault(),clearTimeout(this.activating),this._activate(s===thi
moveTooltip(o)}),t&&"mouseover"!==t.type||(r.mouseleave="close"),t&&"focusin"!== s.options.active?!1:s),void 0;default:return}e.preventDefault(),clearTimeout(thi
t.type||(r.focusout="close"),this._on(!0,i,r)}},close:function(t){var i,s=this,n s.activating),s=this._focusNextTab(s,n),e.ctrlKey||e.metaKey||(i.attr("aria-sele
=e(t?t.currentTarget:this.element),a=this._find(n);a&&(i=a.tooltip,a.closing||(c cted","false"),this.tabs.eq(s).attr("aria-selected","true"),this.activating=this
learInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.a ._delay(function(){this.option("active",s)},this.delay))}},_panelKeydown:functio
ttr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),a.hiding=!0,i n(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventD
.stop(!0),this._hide(i,this.options.hide,function(){s._removeTooltip(e(this))}), efault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altK
n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!== ey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.opt
this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),t&&" ions.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activ
mouseleave"===t.type&&e.each(this.parents,function(t,i){e(i.element).attr("title ate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:funct
",i.title),delete s.parents[t]}),a.closing=!0,this._trigger("close",t,{tooltip:i ion(e,i){function s(){return e>n&&(e=0),0>e&&(e=n),e}for(var n=this.tabs.length-
}),a.hiding||(a.closing=!1)))},_tooltip:function(t){var i=e("<div>").attr("role" 1;-1!==t.inArray(s(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab
,"tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(th :function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),
is.options.tooltipClass||"")),s=i.uniqueId().attr("id");return e("<div>").addCla t},_setOption:function(t,e){return"active"===t?(this._activate(e),void 0):(this.
ss("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tool _super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),
tips[s]={element:t,tooltip:i}},_find:function(e){var t=e.data("ui-tooltip-id");r e||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(e
eturn t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this ),"heightStyle"===t&&this._setupHeightStyle(e),void 0)},_sanitizeSelector:functi
.tooltips[e.attr("id")]},_destroy:function(){var t=this;e.each(this.tooltips,fun on(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refre
ction(i,s){var n=e.Event("blur"),a=s.element;n.target=n.currentTarget=a[0],t.clo sh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disa
se(n,!0),e("#"+i).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr( bled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._
"title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))}),this.liv processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains
eRegion.remove()}})}); (this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=
!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1))
:e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refre
sh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._s
etupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),
this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false"
,tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"
aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"tru
e","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-activ
e","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidde
n":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=
this,i=this.tabs,s=this.anchors,n=this.panels;this.tablist=this._getList().attr(
"role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-
helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespa
ce,"> li",function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).on(
"focus"+this.eventNamespace,".ui-tabs-anchor",function(){t(this).closest("li").i
s(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[h
ref])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","u
i-state-default"),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).
attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anc
hor"),this.panels=t(),this.anchors.each(function(i,s){var n,o,a,r=t(s).uniqueId(
).attr("id"),h=t(s).closest("li"),l=h.attr("aria-controls");e._isLocal(s)?(n=s.h
ash,a=n.substring(1),o=e.element.find(e._sanitizeSelector(n))):(a=h.attr("aria-c
ontrols")||t({}).uniqueId()[0].id,n="#"+a,o=e.element.find(n),o.length||(o=e._cr
eatePanel(a),o.insertAfter(e.panels[i-1]||e.tablist)),o.attr("aria-live","polite
")),o.length&&(e.panels=e.panels.add(o)),l&&h.data("ui-tabs-aria-controls",l),h.
attr({"aria-controls":a,"aria-labelledby":r}),o.attr("aria-labelledby",r)}),this
.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-w
idget-content"),i&&(this._off(i.not(this.tabs)),this._off(s.not(this.anchors)),t
his._off(n.not(this.panels)))},_getList:function(){return this.tablist||this.ele
ment.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",
e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var i,s,n;for(t.is
Array(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),n=0;s=this.tabs
[n];n++)i=t(s),e===!0||-1!==t.inArray(n,e)?(i.attr("aria-disabled","true"),this.
_addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._remo
veClass(i,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(t
his.widget(),this.widgetFullName+"-disabled",null,e===!0)},_setupEvents:function
(e){var i={};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._o
ff(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click
:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{
keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._fo
cusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var
i,s=this.element.parent();"fill"===e?(i=s.height(),i-=this.element.outerHeight(
)-this.element.height(),this.element.siblings(":visible").each(function(){var e=
t(this),s=e.css("position");"absolute"!==s&&"fixed"!==s&&(i-=e.outerHeight(!0))}
),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeigh
t(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHei
ght()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.
each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHa
ndler:function(e){var i=this.options,s=this.active,n=t(e.currentTarget),o=n.clos
est("li"),a=o[0]===s[0],r=a&&i.collapsible,h=r?t():this._getPanelForTab(o),l=s.l
ength?this._getPanelForTab(s):t(),c={oldTab:s,oldPanel:l,newTab:r?t():o,newPanel
:h};e.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-load
ing")||this.running||a&&!i.collapsible||this._trigger("beforeActivate",e,c)===!1
||(i.active=r?!1:this.tabs.index(o),this.active=a?t():o,this.xhr&&this.xhr.abort
(),l.length||h.length||t.error("jQuery UI Tabs: Mismatching fragment identifier.
"),h.length&&this.load(this.tabs.index(o),e),this._toggle(e,c))},_toggle:functio
n(e,i){function s(){o.running=!1,o._trigger("activate",e,i)}function n(){o._addC
lass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&o.opti
ons.show?o._show(a,o.options.show,s):(a.show(),s())}var o=this,a=i.newPanel,r=i.
oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.h
ide,function(){o._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-
active"),n()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-st
ate-active"),r.hide(),n()),r.attr("aria-hidden","true"),i.oldTab.attr({"aria-sel
ected":"false","aria-expanded":"false"}),a.length&&r.length?i.oldTab.attr("tabIn
dex",-1):a.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex
")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),i.newTab.attr({"aria-sele
cted":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,s=
this._findActive(e);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find("
.ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault
:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex
:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter
("[href$='"+t.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this
.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.ancho
rs.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(
function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeAttr("r
ole tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-
expanded")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-cont
rols");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeA
ttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&
this.panels.css("height","")},enable:function(e){var i=this.options.disabled;i!=
=!1&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,function(t){re
turn t!==e?t:null}):t.map(this.tabs,function(t,i){return i!==e?i:null})),this._s
etOptionDisabled(i))},disable:function(e){var i=this.options.disabled;if(i!==!0)
{if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=t.i
sArray(i)?t.merge([e],i).sort():[e]}this._setOptionDisabled(i)}},load:function(e
,i){e=this._getIndex(e);var s=this,n=this.tabs.eq(e),o=n.find(".ui-tabs-anchor")
,a=this._getPanelForTab(n),r={tab:n,panel:a},h=function(t,e){"abort"===e&&s.pane
ls.stop(!1,!0),s._removeClass(n,"ui-tabs-loading"),a.removeAttr("aria-busy"),t==
=s.xhr&&delete s.xhr};this._isLocal(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o
,i,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(n,"ui-tabs-lo
ading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,n){setTimeout(func
tion(){a.html(t),s._trigger("load",i,r),h(n,e)},1)}).fail(function(t,e){setTimeo
ut(function(){h(t,e)},1)})))},_ajaxSettings:function(e,i,s){var n=this;return{ur
l:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,o){return n._trigger("
beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:o},s))}}},_getPanelForTab:function(
e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelec
tor("#"+i))}}),t.uiBackCompat!==!1&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:f
unction(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),t.ui
.tabs,t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui
-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"
";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",positi
on:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1
,close:null,open:null},_addDescribedBy:function(e,i){var s=(e.attr("aria-describ
edby")||"").split(/\s+/);s.push(i),e.data("ui-tooltip-id",i).attr("aria-describe
dby",t.trim(s.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-toolt
ip-id"),s=(e.attr("aria-describedby")||"").split(/\s+/),n=t.inArray(i,s);-1!==n&
&s.splice(n,1),e.removeData("ui-tooltip-id"),s=t.trim(s.join(" ")),s?e.attr("ari
a-describedby",s):e.removeAttr("aria-describedby")},_create:function(){this._on(
{mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveReg
ion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additio
ns"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-he
lper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,i){var
s=this;this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){s._up
dateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_ena
ble"]()},_disable:function(){var e=this;t.each(this.tooltips,function(i,s){var n
=t.Event("blur");n.target=n.currentTarget=s.element[0],e.close(n,!0)}),this.disa
bledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack
().filter(function(){var e=t(this);return e.is("[title]")?e.data("ui-tooltip-tit
le",e.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disa
bledTitles.each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("tit
le",e.data("ui-tooltip-title"))}),this.disabledTitles=t([])},open:function(e){va
r i=this,s=t(e?e.target:this.element).closest(this.options.items);s.length&&!s.d
ata("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title"
)),s.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&s.parents().each(functi
on(){var e,s=t(this);s.data("ui-tooltip-open")&&(e=t.Event("blur"),e.target=e.cu
rrentTarget=this,i.close(e,!0)),s.attr("title")&&(s.uniqueId(),i.parents[this.id
]={element:this,title:s.attr("title")},s.attr("title",""))}),this._registerClose
Handlers(e,s),this._updateContent(s,e))},_updateContent:function(t,e){var i,s=th
is.options.content,n=this,o=e?e.type:null;return"string"==typeof s||s.nodeType||
s.jquery?this._open(e,t,s):(i=s.call(t[0],function(i){n._delay(function(){t.data
("ui-tooltip-open")&&(e&&(e.type=o),this._open(e,t,i))})}),i&&this._open(e,t,i),
void 0)},_open:function(e,i,s){function n(t){l.of=t,a.is(":hidden")||a.position(
l)}var o,a,r,h,l=t.extend({},this.options.position);if(s){if(o=this._find(i))ret
urn o.tooltip.find(".ui-tooltip-content").html(s),void 0;i.is("[title]")&&(e&&"m
ouseover"===e.type?i.attr("title",""):i.removeAttr("title")),o=this._tooltip(i),
a=o.tooltip,this._addDescribedBy(i,a.attr("id")),a.find(".ui-tooltip-content").h
tml(s),this.liveRegion.children().hide(),h=t("<div>").html(a.find(".ui-tooltip-c
ontent").html()),h.removeAttr("name").find("[name]").removeAttr("name"),h.remove
Attr("id").find("[id]").removeAttr("id"),h.appendTo(this.liveRegion),this.option
s.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:n}),n(e)):a
.position(t.extend({of:i},this.options.position)),a.hide(),this._show(a,this.opt
ions.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=th
is.delayedShow=setInterval(function(){a.is(":visible")&&(n(l.of),clearInterval(r
))},t.fx.interval)),this._trigger("open",e,{tooltip:a})}},_registerCloseHandlers
:function(e,i){var s={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var
s=t.Event(e);s.currentTarget=i[0],this.close(s,!0)}}};i[0]!==this.element[0]&&(s
.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!=
=e.type||(s.mouseleave="close"),e&&"focusin"!==e.type||(s.focusout="close"),this
._on(!0,i,s)},close:function(e){var i,s=this,n=t(e?e.currentTarget:this.element)
,o=this._find(n);return o?(i=o.tooltip,o.closing||(clearInterval(this.delayedSho
w),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-toolt
ip-title")),this._removeDescribedBy(n),o.hiding=!0,i.stop(!0),this._hide(i,this.
options.hide,function(){s._removeTooltip(t(this))}),n.removeData("ui-tooltip-ope
n"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n
,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each
(this.parents,function(e,i){t(i.element).attr("title",i.title),delete s.parents[
e]}),o.closing=!0,this._trigger("close",e,{tooltip:i}),o.hiding||(o.closing=!1))
,void 0):(n.removeData("ui-tooltip-open"),void 0)},_tooltip:function(e){var i=t(
"<div>").attr("role","tooltip"),s=t("<div>").appendTo(i),n=i.uniqueId().attr("id
");return this._addClass(s,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","
ui-widget ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[n]={el
ement:e,tooltip:i}},_find:function(t){var e=t.data("ui-tooltip-id");return e?thi
s.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t
.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return
e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(thi
s.tooltips,function(i,s){var n=t.Event("blur"),o=s.element;n.target=n.currentTar
get=o[0],e.close(n,!0),t("#"+i).remove(),o.data("ui-tooltip-title")&&(o.attr("ti
tle")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title
"))}),this.liveRegion.remove()}}),t.uiBackCompat!==!1&&t.widget("ui.tooltip",t.u
i.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superAppl
y(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.t
ooltipClass),t}}),t.ui.tooltip});
 End of changes. 3 change blocks. 
9 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)