/*! jQuery UI - v1.13.2 - 2023-02-16
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/datepicker.js, widgets/tooltip.js, effect.js, effects/effect-fade.js, effects/effect-scale.js, effects/effect-size.js, effects/effect-slide.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */

!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(V){"use strict";V.ui=V.ui||{};V.ui.version="1.13.2";var n,i=0,r=Array.prototype.hasOwnProperty,o=Array.prototype.slice;V.cleanData=(n=V.cleanData,function(t){for(var e,i,a=0;null!=(i=t[a]);a++)(e=V._data(i,"events"))&&e.remove&&V(i).triggerHandler("remove");n(t)}),V.widget=function(t,i,e){var a,n,s,r={},o=t.split(".")[0],l=o+"-"+(t=t.split(".")[1]);return e||(e=i,i=V.Widget),Array.isArray(e)&&(e=V.extend.apply(null,[{}].concat(e))),V.expr.pseudos[l.toLowerCase()]=function(t){return!!V.data(t,l)},V[o]=V[o]||{},a=V[o][t],n=V[o][t]=function(t,e){if(!this||!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},V.extend(n,a,{version:e.version,_proto:V.extend({},e),_childConstructors:[]}),(s=new i).options=V.widget.extend({},s.options),V.each(e,function(e,a){function n(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"==typeof a?function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=s,t=a.apply(this,arguments),this._super=e,this._superApply=i,t}:a}),n.prototype=V.widget.extend(s,{widgetEventPrefix:a&&s.widgetEventPrefix||t},r,{constructor:n,namespace:o,widgetName:t,widgetFullName:l}),a?(V.each(a._childConstructors,function(t,e){var i=e.prototype;V.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete a._childConstructors):i._childConstructors.push(n),V.widget.bridge(t,n),n},V.widget.extend=function(t){for(var e,i,a=o.call(arguments,1),n=0,s=a.length;n<s;n++)for(e in a[n])i=a[n][e],r.call(a[n],e)&&void 0!==i&&(V.isPlainObject(i)?t[e]=V.isPlainObject(t[e])?V.widget.extend({},t[e],i):V.widget.extend({},i):t[e]=i);return t},V.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;V.fn[s]=function(i){var t="string"==typeof i,a=o.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=V.data(this,r);return"instance"===i?(n=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?V.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,a))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:V.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(a.length&&(i=V.widget.extend.apply(null,[i].concat(a))),this.each(function(){var t=V.data(this,r);t?(t.option(i||{}),t._init&&t._init()):V.data(this,r,new e(i,this))})),n}},V.Widget=function(){},V.Widget._childConstructors=[],V.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=V(e||this.defaultElement||this)[0],this.element=V(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=V(),this.hoverable=V(),this.focusable=V(),this.classesElementLookup={},e!==this&&(V.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=V(e.style?e.ownerDocument:e.document||e),this.window=V(this.document[0].defaultView||this.document[0].parentWindow)),this.options=V.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:V.noop,_create:V.noop,_init:V.noop,destroy:function(){var i=this;this._destroy(),V.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:V.noop,widget:function(){return this.element},option:function(t,e){var i,a,n,s=t;if(0===arguments.length)return V.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(a=s[t]=V.widget.extend({},this.options[t]),n=0;n<i.length-1;n++)a[i[n]]=a[i[n]]||{},a=a[i[n]];if(t=i.pop(),1===arguments.length)return void 0===a[t]?null:a[t];a[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,a;for(e in t)a=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&a&&a.length&&(i=V(a.get()),this._removeClass(a,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(n){var s=[],r=this;function t(t,e){for(var i,a=0;a<t.length;a++)i=r.classesElementLookup[t[a]]||V(),i=n.add?(function(){var i=[];n.element.each(function(t,e){V.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(V(i),{remove:"_untrackClassesElement"})}(),V(V.uniqueSort(i.get().concat(n.element.get())))):V(i.not(n.element).get()),r.classesElementLookup[t[a]]=i,s.push(t[a]),e&&n.classes[t[a]]&&s.push(n.classes[t[a]])}return(n=V.extend({element:this.element,classes:this.options.classes||{}},n)).keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var a=this;V.each(a.classesElementLookup,function(t,e){-1!==V.inArray(i.target,e)&&(a.classesElementLookup[t]=V(e.not(i.target).get()))}),this._off(V(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,a){var n="string"==typeof t||null===t,i={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:a="boolean"==typeof a?a:i};return i.element.toggleClass(this._classes(i),a),this},_on:function(n,s,t){var r,o=this;"boolean"!=typeof n&&(t=s,s=n,n=!1),t?(s=r=V(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),V.each(t,function(t,e){function i(){if(n||!0!==o.options.disabled&&!V(this).hasClass("ui-state-disabled"))return("string"==typeof e?o[e]:e).apply(o,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||V.guid++);var a=t.match(/^([\w:-]*)\s*(.*)$/),t=a[1]+o.eventNamespace,a=a[2];a?r.on(t,a,i):s.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=V(this.bindings.not(t).get()),this.focusable=V(this.focusable.not(t).get()),this.hoverable=V(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(V(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(V(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(V(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(V(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var a,n,s=this.options[t];if(i=i||{},(e=V.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(a in n)a in e||(e[a]=n[a]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},V.each({show:"fadeIn",hide:"fadeOut"},function(s,r){V.Widget.prototype["_"+s]=function(e,t,i){var a,n=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),a=!V.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),a&&V.effects&&V.effects.effect[n]?e[s](t):n!==s&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){V(this)[s](),i&&i.call(e[0]),t()})}});var a,D,w,s,l,c,d,u,x;V.widget;function C(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function M(t,e){return parseInt(V.css(t,e),10)||0}function I(t){return null!=t&&t===t.window}D=Math.max,w=Math.abs,s=/left|center|right/,l=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,u=/%$/,x=V.fn.position,V.position={scrollbarWidth:function(){if(void 0!==a)return a;var t,e=V("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),i=e.children()[0];return V("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),a=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?V.position.scrollbarWidth():0,height:e?V.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=V(t||window),i=I(e[0]),a=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:a,offset:!i&&!a?V(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},V.fn.position=function(u){if(!u||!u.of)return x.apply(this,arguments);var h,p,f,g,m,t,_="string"==typeof(u=V.extend({},u)).of?V(document).find(u.of):V(u.of),y=V.position.getWithinInfo(u.within),v=V.position.getScrollInfo(y),k=(u.collision||"flip").split(" "),b={},e=9===(t=(e=_)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:I(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return _[0].preventDefault&&(u.at="left top"),p=e.width,f=e.height,m=V.extend({},g=e.offset),V.each(["my","at"],function(){var t,e,i=(u[this]||"").split(" ");(i=1===i.length?s.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=s.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=c.exec(i[0]),e=c.exec(i[1]),b[this]=[t?t[0]:0,e?e[0]:0],u[this]=[d.exec(i[0])[0],d.exec(i[1])[0]]}),1===k.length&&(k[1]=k[0]),"right"===u.at[0]?m.left+=p:"center"===u.at[0]&&(m.left+=p/2),"bottom"===u.at[1]?m.top+=f:"center"===u.at[1]&&(m.top+=f/2),h=C(b.at,p,f),m.left+=h[0],m.top+=h[1],this.each(function(){var i,t,r=V(this),o=r.outerWidth(),l=r.outerHeight(),e=M(this,"marginLeft"),a=M(this,"marginTop"),n=o+e+M(this,"marginRight")+v.width,s=l+a+M(this,"marginBottom")+v.height,c=V.extend({},m),d=C(b.my,r.outerWidth(),r.outerHeight());"right"===u.my[0]?c.left-=o:"center"===u.my[0]&&(c.left-=o/2),"bottom"===u.my[1]?c.top-=l:"center"===u.my[1]&&(c.top-=l/2),c.left+=d[0],c.top+=d[1],i={marginLeft:e,marginTop:a},V.each(["left","top"],function(t,e){V.ui.position[k[t]]&&V.ui.position[k[t]][e](c,{targetWidth:p,targetHeight:f,elemWidth:o,elemHeight:l,collisionPosition:i,collisionWidth:n,collisionHeight:s,offset:[h[0]+d[0],h[1]+d[1]],my:u.my,at:u.at,within:y,elem:r})}),u.using&&(t=function(t){var e=g.left-c.left,i=e+p-o,a=g.top-c.top,n=a+f-l,s={target:{element:_,left:g.left,top:g.top,width:p,height:f},element:{element:r,left:c.left,top:c.top,width:o,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:n<0?"top":0<a?"bottom":"middle"};p<o&&w(e+i)<p&&(s.horizontal="center"),f<l&&w(a+n)<f&&(s.vertical="middle"),D(w(e),w(i))>D(w(a),w(n))?s.important="horizontal":s.important="vertical",u.using.call(this,t,s)}),r.offset(V.extend(c,{using:t}))})},V.ui.position={fit:{left:function(t,e){var i=e.within,a=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,s=t.left-e.collisionPosition.marginLeft,r=a-s,o=s+e.collisionWidth-n-a;e.collisionWidth>n?0<r&&o<=0?(i=t.left+r+e.collisionWidth-n-a,t.left+=r-i):t.left=!(0<o&&r<=0)&&o<r?a+n-e.collisionWidth:a:0<r?t.left+=r:0<o?t.left-=o:t.left=D(t.left-s,t.left)},top:function(t,e){var i=e.within,a=i.isWindow?i.scrollTop:i.offset.top,n=e.within.height,s=t.top-e.collisionPosition.marginTop,r=a-s,o=s+e.collisionHeight-n-a;e.collisionHeight>n?0<r&&o<=0?(i=t.top+r+e.collisionHeight-n-a,t.top+=r-i):t.top=!(0<o&&r<=0)&&o<r?a+n-e.collisionHeight:a:0<r?t.top+=r:0<o?t.top-=o:t.top=D(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,a=i.offset.left+i.scrollLeft,n=i.width,s=i.isWindow?i.scrollLeft:i.offset.left,r=t.left-e.collisionPosition.marginLeft,o=r-s,l=r+e.collisionWidth-n-s,c="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,i="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,r=-2*e.offset[0];o<0?((a=t.left+c+i+r+e.collisionWidth-n-a)<0||a<w(o))&&(t.left+=c+i+r):0<l&&(0<(s=t.left-e.collisionPosition.marginLeft+c+i+r-s)||w(s)<l)&&(t.left+=c+i+r)},top:function(t,e){var i=e.within,a=i.offset.top+i.scrollTop,n=i.height,s=i.isWindow?i.scrollTop:i.offset.top,r=t.top-e.collisionPosition.marginTop,o=r-s,l=r+e.collisionHeight-n-s,c="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,i="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,r=-2*e.offset[1];o<0?((a=t.top+c+i+r+e.collisionHeight-n-a)<0||a<w(o))&&(t.top+=c+i+r):0<l&&(0<(s=t.top-e.collisionPosition.marginTop+c+i+r-s)||w(s)<l)&&(t.top+=c+i+r)}},flipfit:{left:function(){V.ui.position.flip.left.apply(this,arguments),V.ui.position.fit.left.apply(this,arguments)},top:function(){V.ui.position.flip.top.apply(this,arguments),V.ui.position.fit.top.apply(this,arguments)}}};var t;V.ui.position,V.extend(V.expr.pseudos,{data:V.expr.createPseudo?V.expr.createPseudo(function(e){return function(t){return!!V.data(t,e)}}):function(t,e,i){return!!V.data(t,i[3])}}),V.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});V.ui.focusable=function(t,e){var i,a,n,s,r=t.nodeName.toLowerCase();return"area"===r?(a=(i=t.parentNode).name,!(!t.href||!a||"map"!==i.nodeName.toLowerCase())&&(0<(a=V("img[usemap='#"+a+"']")).length&&a.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(n=!t.disabled)&&(s=V(t).closest("fieldset")[0])&&(n=!s.disabled):n="a"===r&&t.href||e,n&&V(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(V(t)))},V.extend(V.expr.pseudos,{focusable:function(t){return V.ui.focusable(t,null!=V.attr(t,"tabindex"))}});var e,h;V.ui.focusable,V.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):V(this[0].form)},V.ui.formResetMixin={_formResetHandler:function(){var e=V(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");V.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(V.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}};V.expr.pseudos||(V.expr.pseudos=V.expr[":"]),V.uniqueSort||(V.uniqueSort=V.unique),V.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,h=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},V.escapeSelector=function(t){return(t+"").replace(e,h)}),V.fn.even&&V.fn.odd||V.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}});var p,f;V.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},V.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+V.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},V.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,a=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=V(this);return(!i||"static"!==t.css("position"))&&a.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:V(this[0].ownerDocument||document)},V.extend(V.expr.pseudos,{tabbable:function(t){var e=V.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&V.ui.focusable(t,i)}}),V.fn.extend({uniqueId:(p=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++p)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&V(this).removeAttr("id")})}});function g(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=m(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function m(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,_)}function _(){V.datepicker._isDisabledDatepicker((f.inline?f.dpDiv.parent():f.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function y(t,e){for(var i in V.extend(t,e),e)null==e[i]&&(t[i]=e[i]);return t}V.extend(V.ui,{datepicker:{version:"1.13.2"}}),V.extend(g.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return y(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,a=t.nodeName.toLowerCase(),n="div"===a||"span"===a;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(V(t),n)).settings=V.extend({},e||{}),"input"===a?this._connectDatepicker(t,i):n&&this._inlineDatepicker(t,i)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?m(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var i=V(t);e.append=V([]),e.trigger=V([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),V.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,a=this._get(e,"appendText"),n=this._get(e,"isRTL");e.append&&e.append.remove(),a&&(e.append=V("<span>").addClass(this._appendClass).text(a),t[n?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(i=this._get(e,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(a=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),this._get(e,"buttonImageOnly")?e.trigger=V("<img>").addClass(this._triggerClass).attr({src:i,alt:a,title:a}):(e.trigger=V("<button type='button'>").addClass(this._triggerClass),i?e.trigger.html(V("<img>").attr({src:i,alt:a,title:a})):e.trigger.text(a)),t[n?"before":"after"](e.trigger),e.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===t[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==t[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,a,n,s,r;this._get(t,"autoSize")&&!t.inline&&(s=new Date(2009,11,20),(r=this._get(t,"dateFormat")).match(/[DM]/)&&(e=function(t){for(n=a=i=0;n<t.length;n++)t[n].length>i&&(i=t[n].length,a=n);return a},s.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),t.input.attr("size",this._formatDate(t,s).length))},_inlineDatepicker:function(t,e){var i=V(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),V.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,a,n){var s,r=this._dialogInst;return r||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(r=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",r)),y(r.settings,a||{}),e=e&&e.constructor===Date?this._formatDate(r,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(s=document.documentElement.clientWidth,a=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,n=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[s/2-100+e,a/2-150+n]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),r.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",r),this},_destroyDatepicker:function(t){var e,i=V(t),a=V.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),V.removeData(t,"datepicker"),"input"===e?(a.append.remove(),a.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),f===a&&(f=null,this._curInst=null))},_enableDatepicker:function(e){var t,i=V(e),a=V.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=V(e),a=V.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return V.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var a,n,s=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?V.extend({},V.datepicker._defaults):s?"all"===e?V.extend({},s.settings):this._get(s,e):null;a=e||{},"string"==typeof e&&((a={})[e]=i),s&&(this._curInst===s&&this._hideDatepicker(),n=this._getDateDatepicker(t,!0),e=this._getMinMaxDate(s,"min"),i=this._getMinMaxDate(s,"max"),y(s.settings,a),null!==e&&void 0!==a.dateFormat&&void 0===a.minDate&&(s.settings.minDate=this._formatDate(s,e)),null!==i&&void 0!==a.dateFormat&&void 0===a.maxDate&&(s.settings.maxDate=this._formatDate(s,i)),"disabled"in a&&(a.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(V(t),s),this._autoSize(s),this._setDate(s,n),this._updateAlternate(s),this._updateDatepicker(s))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){t=this._getInst(t);t&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){t=this._getInst(t);t&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){t=this._getInst(t);return t&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,i,a=V.datepicker._getInst(t.target),n=!0,s=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,V.datepicker._datepickerShowing)switch(t.keyCode){case 9:V.datepicker._hideDatepicker(),n=!1;break;case 13:return(i=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",a.dpDiv))[0]&&V.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,i[0]),(e=V.datepicker._get(a,"onSelect"))?(i=V.datepicker._formatDate(a),e.apply(a.input?a.input[0]:null,[i,a])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(t.target,t.ctrlKey?-V.datepicker._get(a,"stepBigMonths"):-V.datepicker._get(a,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(t.target,t.ctrlKey?+V.datepicker._get(a,"stepBigMonths"):+V.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&V.datepicker._clearDate(t.target),n=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&V.datepicker._gotoToday(t.target),n=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,s?1:-1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&V.datepicker._adjustDate(t.target,t.ctrlKey?-V.datepicker._get(a,"stepBigMonths"):-V.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,-7,"D"),n=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,s?-1:1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&V.datepicker._adjustDate(t.target,t.ctrlKey?+V.datepicker._get(a,"stepBigMonths"):+V.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,7,"D"),n=t.ctrlKey||t.metaKey;break;default:n=!1}else 36===t.keyCode&&t.ctrlKey?V.datepicker._showDatepicker(this):n=!1;n&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=V.datepicker._getInst(t.target);if(V.datepicker._get(i,"constrainInput"))return e=V.datepicker._possibleChars(V.datepicker._get(i,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!e||-1<e.indexOf(i)},_doKeyUp:function(t){t=V.datepicker._getInst(t.target);if(t.input.val()!==t.lastVal)try{V.datepicker.parseDate(V.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,V.datepicker._getFormatConfig(t))&&(V.datepicker._setDateFromField(t),V.datepicker._updateAlternate(t),V.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,i,a,n;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=V("input",t.parentNode)[0]),V.datepicker._isDisabledDatepicker(t)||V.datepicker._lastInput===t||(n=V.datepicker._getInst(t),V.datepicker._curInst&&V.datepicker._curInst!==n&&(V.datepicker._curInst.dpDiv.stop(!0,!0),n&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0])),!1!==(i=(a=V.datepicker._get(n,"beforeShow"))?a.apply(t,[t,n]):{})&&(y(n.settings,i),n.lastVal=null,V.datepicker._lastInput=t,V.datepicker._setDateFromField(n),V.datepicker._inDialog&&(t.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(t),V.datepicker._pos[1]+=t.offsetHeight),e=!1,V(t).parents().each(function(){return!(e|="fixed"===V(this).css("position"))}),a={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(n),a=V.datepicker._checkOffset(n,a,e),n.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":e?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),n.inline||(i=V.datepicker._get(n,"showAnim"),a=V.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(V(t))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[i]?n.dpDiv.show(i,V.datepicker._get(n,"showOptions"),a):n.dpDiv[i||"show"](i?a:null),V.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),V.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,(f=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),a=i[1],n=t.dpDiv.find("."+this._dayOverClass+" a"),s=V.datepicker._get(t,"onUpdateDatepicker");0<n.length&&_.apply(n.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<a&&t.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",17*a+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),e=t.yearshtml=null},0)),s&&s.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,i){var a=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),s=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,o=document.documentElement.clientWidth+(i?0:V(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:V(document).scrollTop());return e.left-=this._get(t,"isRTL")?a-s:0,e.left-=i&&e.left===t.input.offset().left?V(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+r?V(document).scrollTop():0,e.left-=Math.min(e.left,e.left+a>o&&a<o?Math.abs(e.left+a-o):0),e.top-=Math.min(e.top,e.top+n>l&&n<l?Math.abs(n+r):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||V.expr.pseudos.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=V(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,a=this._curInst;!a||t&&a!==V.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(a,"showAnim"),i=this._get(a,"duration"),t=function(){V.datepicker._tidyDialog(a)},V.effects&&(V.effects.effect[e]||V.effects[e])?a.dpDiv.hide(e,V.datepicker._get(a,"showOptions"),i,t):a.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?i:null,t),e||t(),this._datepickerShowing=!1,(t=this._get(a,"onClose"))&&t.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI&&(V.unblockUI(),V("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;V.datepicker._curInst&&(e=V(t.target),t=V.datepicker._getInst(e[0]),(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)&&(!e.hasClass(V.datepicker.markerClassName)||V.datepicker._curInst===t)||V.datepicker._hideDatepicker())},_adjustDate:function(t,e,i){var a=V(t),t=this._getInst(a[0]);this._isDisabledDatepicker(a[0])||(this._adjustInstDate(t,e,i),this._updateDatepicker(t))},_gotoToday:function(t){var e=V(t),i=this._getInst(e[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(t=new Date,i.selectedDay=t.getDate(),i.drawMonth=i.selectedMonth=t.getMonth(),i.drawYear=i.selectedYear=t.getFullYear()),this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var a=V(t),t=this._getInst(a[0]);t["selected"+("M"===i?"Month":"Year")]=t["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(t),this._adjustDate(a)},_selectDay:function(t,e,i,a){var n=V(t);V(a).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0])||((n=this._getInst(n[0])).selectedDay=n.currentDay=parseInt(V("a",a).attr("data-date")),n.selectedMonth=n.currentMonth=e,n.selectedYear=n.currentYear=i,this._selectDate(t,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(t){t=V(t);this._selectDate(t,"")},_selectDate:function(t,e){var i=V(t),t=this._getInst(i[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(i=this._get(t,"onSelect"))?i.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,i,a=this._get(t,"altField");a&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),t=this.formatDate(e,i,this._getFormatConfig(t)),V(document).find(a).val(t))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(e,n,t){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;for(var i,a,s,r=0,o=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,o="string"!=typeof o?o:(new Date).getFullYear()%100+parseInt(o,10),l=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,c=(t?t.dayNames:null)||this._defaults.dayNames,d=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,u=(t?t.monthNames:null)||this._defaults.monthNames,h=-1,p=-1,f=-1,g=-1,m=!1,_=function(t){t=b+1<e.length&&e.charAt(b+1)===t;return t&&b++,t},y=function(t){var e=_(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,e=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}"),e=n.substring(r).match(e);if(!e)throw"Missing number at position "+r;return r+=e[0].length,parseInt(e[0],10)},v=function(t,e,i){var a=-1,e=V.map(_(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(V.each(e,function(t,e){var i=e[1];if(n.substr(r,i.length).toLowerCase()===i.toLowerCase())return a=e[0],r+=i.length,!1}),-1!==a)return a+1;throw"Unknown name at position "+r},k=function(){if(n.charAt(r)!==e.charAt(b))throw"Unexpected literal at position "+r;r++},b=0;b<e.length;b++)if(m)"'"!==e.charAt(b)||_("'")?k():m=!1;else switch(e.charAt(b)){case"d":f=y("d");break;case"D":v("D",l,c);break;case"o":g=y("o");break;case"m":p=y("m");break;case"M":p=v("M",d,u);break;case"y":h=y("y");break;case"@":h=(s=new Date(y("@"))).getFullYear(),p=s.getMonth()+1,f=s.getDate();break;case"!":h=(s=new Date((y("!")-this._ticksTo1970)/1e4)).getFullYear(),p=s.getMonth()+1,f=s.getDate();break;case"'":_("'")?k():m=!0;break;default:k()}if(r<n.length&&(a=n.substr(r),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=o?0:-100)),-1<g)for(p=1,f=g;;){if(f<=(i=this._getDaysInMonth(h,p-1)))break;p++,f-=i}if((s=this._daylightSavingAdjust(new Date(h,p-1,f))).getFullYear()!==h||s.getMonth()+1!==p||s.getDate()!==f)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";function a(t,e,i){var a=""+e;if(d(t))for(;a.length<i;)a="0"+a;return a}function n(t,e,i,a){return(d(t)?a:i)[e]}var s,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,c=(i?i.monthNames:null)||this._defaults.monthNames,d=function(t){t=s+1<e.length&&e.charAt(s+1)===t;return t&&s++,t},u="",h=!1;if(t)for(s=0;s<e.length;s++)if(h)"'"!==e.charAt(s)||d("'")?u+=e.charAt(s):h=!1;else switch(e.charAt(s)){case"d":u+=a("d",t.getDate(),2);break;case"D":u+=n("D",t.getDay(),r,o);break;case"o":u+=a("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=a("m",t.getMonth()+1,2);break;case"M":u+=n("M",t.getMonth(),l,c);break;case"y":u+=d("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":d("'")?u+="'":h=!0;break;default:u+=e.charAt(s)}return u},_possibleChars:function(e){for(var t="",i=!1,a=function(t){t=n+1<e.length&&e.charAt(n+1)===t;return t&&n++,t},n=0;n<e.length;n++)if(i)"'"!==e.charAt(n)||a("'")?t+=e.charAt(n):i=!1;else switch(e.charAt(n)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":a("'")?t+="'":i=!0;break;default:t+=e.charAt(n)}return t},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),a=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),s=n,r=this._getFormatConfig(t);try{s=this.parseDate(i,a,r)||n}catch(t){a=e?"":a}t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),t.currentDay=a?s.getDate():0,t.currentMonth=a?s.getMonth():0,t.currentYear=a?s.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(o,t,e){var i,a,t=null==t||""===t?e:"string"==typeof t?function(t){try{return V.datepicker.parseDate(V.datepicker._get(o,"dateFormat"),t,V.datepicker._getFormatConfig(o))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?V.datepicker._getDate(o):null)||new Date,i=e.getFullYear(),a=e.getMonth(),n=e.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=s.exec(t);r;){switch(r[2]||"d"){case"d":case"D":n+=parseInt(r[1],10);break;case"w":case"W":n+=7*parseInt(r[1],10);break;case"m":case"M":a+=parseInt(r[1],10),n=Math.min(n,V.datepicker._getDaysInMonth(i,a));break;case"y":case"Y":i+=parseInt(r[1],10),n=Math.min(n,V.datepicker._getDaysInMonth(i,a))}r=s.exec(t)}return new Date(i,a,n)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(a=new Date).setDate(a.getDate()+i),a):new Date(t.getTime());return(t=t&&"Invalid Date"===t.toString()?e:t)&&(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)),this._daylightSavingAdjust(t)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var a=!e,n=t.selectedMonth,s=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),n===t.selectedMonth&&s===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(a?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){V.datepicker._adjustDate(i,-e,"M")},next:function(){V.datepicker._adjustDate(i,+e,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(i)},selectDay:function(){return V.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(i,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,a,n,s,r,o,l,c,d,u,h,p,f,g,m,_,y,v,k,b,D,w,x,C,M,I,T,S,N,F,A,Y=new Date,W=this._daylightSavingAdjust(new Date(Y.getFullYear(),Y.getMonth(),Y.getDate())),H=this._get(t,"isRTL"),O=this._get(t,"showButtonPanel"),j=this._get(t,"hideIfNoPrevNext"),E=this._get(t,"navigationAsDateFormat"),L=this._getNumberOfMonths(t),R=this._get(t,"showCurrentAtPos"),Y=this._get(t,"stepMonths"),P=1!==L[0]||1!==L[1],K=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),B=this._getMinMaxDate(t,"min"),q=this._getMinMaxDate(t,"max"),z=t.drawMonth-R,U=t.drawYear;if(z<0&&(z+=12,U--),q)for(e=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth()-L[0]*L[1]+1,q.getDate())),e=B&&e<B?B:e;this._daylightSavingAdjust(new Date(U,z,1))>e;)--z<0&&(z=11,U--);for(t.drawMonth=z,t.drawYear=U,R=this._get(t,"prevText"),R=E?this.formatDate(R,this._daylightSavingAdjust(new Date(U,z-Y,1)),this._getFormatConfig(t)):R,i=this._canAdjustMonth(t,-1,U,z)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:R}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(H?"e":"w")).text(R))[0].outerHTML:j?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:R}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(H?"e":"w")).text(R))[0].outerHTML,R=this._get(t,"nextText"),R=E?this.formatDate(R,this._daylightSavingAdjust(new Date(U,z+Y,1)),this._getFormatConfig(t)):R,a=this._canAdjustMonth(t,1,U,z)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:R}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(H?"w":"e")).text(R))[0].outerHTML:j?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:R}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(H?"w":"e")).text(R))[0].outerHTML,Y=this._get(t,"currentText"),j=this._get(t,"gotoCurrent")&&t.currentDay?K:W,Y=E?this.formatDate(Y,j,this._getFormatConfig(t)):Y,R="",t.inline||(R=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),E="",O&&(E=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(H?R:"").append(this._isInRange(t,j)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(Y):"").append(H?"":R)[0].outerHTML),n=parseInt(this._get(t,"firstDay"),10),n=isNaN(n)?0:n,s=this._get(t,"showWeek"),r=this._get(t,"dayNames"),o=this._get(t,"dayNamesMin"),l=this._get(t,"monthNames"),c=this._get(t,"monthNamesShort"),d=this._get(t,"beforeShowDay"),u=this._get(t,"showOtherMonths"),h=this._get(t,"selectOtherMonths"),p=this._getDefaultDate(t),f="",m=0;m<L[0];m++){for(_="",this.maxRows=4,y=0;y<L[1];y++){if(v=this._daylightSavingAdjust(new Date(U,z,t.selectedDay)),k=" ui-corner-all",b="",P){if(b+="<div class='ui-datepicker-group",1<L[1])switch(y){case 0:b+=" ui-datepicker-group-first",k=" ui-corner-"+(H?"right":"left");break;case L[1]-1:b+=" ui-datepicker-group-last",k=" ui-corner-"+(H?"left":"right");break;default:b+=" ui-datepicker-group-middle",k=""}b+="'>"}for(b+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+k+"'>"+(/all|left/.test(k)&&0===m?H?a:i:"")+(/all|right/.test(k)&&0===m?H?i:a:"")+this._generateMonthYearHeader(t,z,U,B,q,0<m||0<y,l,c)+"</div><table class='ui-datepicker-calendar'><thead><tr>",D=s?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",g=0;g<7;g++)D+="<th scope='col'"+(5<=(g+n+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+r[w=(g+n)%7]+"'>"+o[w]+"</span></th>";for(b+=D+"</tr></thead><tbody>",C=this._getDaysInMonth(U,z),U===t.selectedYear&&z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,C)),x=(this._getFirstDayOfMonth(U,z)-n+7)%7,C=Math.ceil((x+C)/7),M=P&&this.maxRows>C?this.maxRows:C,this.maxRows=M,I=this._daylightSavingAdjust(new Date(U,z,1-x)),T=0;T<M;T++){for(b+="<tr>",S=s?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(I)+"</td>":"",g=0;g<7;g++)N=d?d.apply(t.input?t.input[0]:null,[I]):[!0,""],A=(F=I.getMonth()!==z)&&!h||!N[0]||B&&I<B||q&&q<I,S+="<td class='"+(5<=(g+n+6)%7?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(I.getTime()===v.getTime()&&z===t.selectedMonth&&t._keyEvent||p.getTime()===I.getTime()&&p.getTime()===v.getTime()?" "+this._dayOverClass:"")+(A?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!u?"":" "+N[1]+(I.getTime()===K.getTime()?" "+this._currentClass:"")+(I.getTime()===W.getTime()?" ui-datepicker-today":""))+"'"+(F&&!u||!N[2]?"":" title='"+N[2].replace(/'/g,"&#39;")+"'")+(A?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(F&&!u?"&#xa0;":A?"<span class='ui-state-default'>"+I.getDate()+"</span>":"<a class='ui-state-default"+(I.getTime()===W.getTime()?" ui-state-highlight":"")+(I.getTime()===K.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#' aria-current='"+(I.getTime()===K.getTime()?"true":"false")+"' data-date='"+I.getDate()+"'>"+I.getDate()+"</a>")+"</td>",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);b+=S+"</tr>"}11<++z&&(z=0,U++),_+=b+="</tbody></table>"+(P?"</div>"+(0<L[0]&&y===L[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}f+=_}return f+=E,t._keyEvent=!1,f},_generateMonthYearHeader:function(t,e,i,a,n,s,r,o){var l,c,d,u,h,p,f=this._get(t,"changeMonth"),g=this._get(t,"changeYear"),m=this._get(t,"showMonthAfterYear"),_=this._get(t,"selectMonthLabel"),y=this._get(t,"selectYearLabel"),v="<div class='ui-datepicker-title'>",k="";if(s||!f)k+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=a&&a.getFullYear()===i,c=n&&n.getFullYear()===i,k+="<select class='ui-datepicker-month' aria-label='"+_+"' data-handler='selectMonth' data-event='change'>",d=0;d<12;d++)(!l||d>=a.getMonth())&&(!c||d<=n.getMonth())&&(k+="<option value='"+d+"'"+(d===e?" selected='selected'":"")+">"+o[d]+"</option>");k+="</select>"}if(m||(v+=k+(!s&&f&&g?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",s||!g)v+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(r=this._get(t,"yearRange").split(":"),u=(new Date).getFullYear(),h=(_=function(t){t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10);return isNaN(t)?u:t})(r[0]),p=Math.max(h,_(r[1]||"")),h=a?Math.max(h,a.getFullYear()):h,p=n?Math.min(p,n.getFullYear()):p,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+y+"' data-handler='selectYear' data-event='change'>";h<=p;h++)t.yearshtml+="<option value='"+h+"'"+(h===i?" selected='selected'":"")+">"+h+"</option>";t.yearshtml+="</select>",v+=t.yearshtml,t.yearshtml=null}return v+=this._get(t,"yearSuffix"),m&&(v+=(!s&&f&&g?"":"&#xa0;")+k),v+="</div>"},_adjustInstDate:function(t,e,i){var a=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(a,n))+("D"===i?e:0),e=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(a,n,e)));t.selectedDay=e.getDate(),t.drawMonth=t.selectedMonth=e.getMonth(),t.drawYear=t.selectedYear=e.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),e=i&&e<i?i:e;return t&&t<e?t:e},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){t=this._get(t,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,a){var n=this._getNumberOfMonths(t),n=this._daylightSavingAdjust(new Date(i,a+(e<0?e:n[0]*n[1]),1));return e<0&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(t,n)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),n=null,s=null,r=this._get(t,"yearRange");return r&&(t=r.split(":"),r=(new Date).getFullYear(),n=parseInt(t[0],10),s=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(n+=r),t[1].match(/[+\-].*/)&&(s+=r)),(!i||e.getTime()>=i.getTime())&&(!a||e.getTime()<=a.getTime())&&(!n||e.getFullYear()>=n)&&(!s||e.getFullYear()<=s)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,a){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(a,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),e,this._getFormatConfig(t))}}),V.fn.datepicker=function(t){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+t+"Datepicker"].apply(V.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?V.datepicker["_"+t+"Datepicker"].apply(V.datepicker,[this].concat(e)):V.datepicker._attachDatepicker(this,t)})},V.datepicker=new g,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.2";V.datepicker;V.widget("ui.tooltip",{version:"1.13.2",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=V(this).attr("title");return V("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),e=V.inArray(e,i);-1!==e&&i.splice(e,1),t.removeData("ui-tooltip-id"),(i=String.prototype.trim.call(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=V("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=V([])},_setOption:function(t,e){var i=this;this._super(t,e),"content"===t&&V.each(this.tooltips,function(t,e){i._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var a=this;V.each(this.tooltips,function(t,e){var i=V.Event("blur");i.target=i.currentTarget=e.element[0],a.close(i,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=V(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=V(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=V([])},open:function(t){var i=this,e=V(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=V(this);e.data("ui-tooltip-open")&&((t=V.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,i){var t=this.options.content,a=this,n=i?i.type:null;if("string"==typeof t||t.nodeType||t.jquery)return this._open(i,e,t);(t=t.call(e[0],function(t){a._delay(function(){e.data("ui-tooltip-open")&&(i&&(i.type=n),this._open(i,e,t))})}))&&this._open(i,e,t)},_open:function(t,e,i){var a,n,s,r=V.extend({},this.options.position);function o(t){r.of=t,n.is(":hidden")||n.position(r)}i&&((a=this._find(e))?a.tooltip.find(".ui-tooltip-content").html(i):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),a=this._tooltip(e),n=a.tooltip,this._addDescribedBy(e,n.attr("id")),n.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(i=V("<div>").html(n.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),i.removeAttr("id").find("[id]").removeAttr("id"),i.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:o}),o(t)):n.position(V.extend({of:e},this.options.position)),n.hide(),this._show(n,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(s=this.delayedShow=setInterval(function(){n.is(":visible")&&(o(r.of),clearInterval(s))},13)),this._trigger("open",t,{tooltip:n})))},_registerCloseHandlers:function(t,e){var i={keyup:function(t){t.keyCode===V.ui.keyCode.ESCAPE&&((t=V.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(i.remove=function(){var t=this._find(e);t&&this._removeTooltip(t.tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,e,i)},close:function(t){var e,i=this,a=V(t?t.currentTarget:this.element),n=this._find(a);n?(e=n.tooltip,n.closing||(clearInterval(this.delayedShow),a.data("ui-tooltip-title")&&!a.attr("title")&&a.attr("title",a.data("ui-tooltip-title")),this._removeDescribedBy(a),n.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){i._removeTooltip(V(this))}),a.removeData("ui-tooltip-open"),this._off(a,"mouseleave focusout keyup"),a[0]!==this.element[0]&&this._off(a,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&V.each(this.parents,function(t,e){V(e.element).attr("title",e.title),delete i.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:e}),n.hiding||(n.closing=!1))):a.removeData("ui-tooltip-open")},_tooltip:function(t){var e=V("<div>").attr("role","tooltip"),i=V("<div>").appendTo(e),a=e.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(e,"ui-tooltip","ui-widget ui-widget-content"),e.appendTo(this._appendTo(t)),this.tooltips[a]={element:t,tooltip:e}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){t=t.closest(".ui-front, dialog");return t=!t.length?this.document[0].body:t},_destroy:function(){var a=this;V.each(this.tooltips,function(t,e){var i=V.Event("blur"),e=e.element;i.target=i.currentTarget=e[0],a.close(i,!0),V("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==V.uiBackCompat&&V.widget("ui.tooltip",V.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}});V.ui.tooltip;var v=V,k={},b=k.toString,T=/^([\-+])=\s*(\d+\.?\d*)/,S=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),t[4]?(parseInt(t[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),t[4]?(parseInt(t[4]+t[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],N=v.Color=function(t,e,i,a){return new v.Color.fn.parse(t,e,i,a)},F={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},A={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},Y=N.support={},W=v("<p>")[0],H=v.each;function O(t){return null==t?t+"":"object"==typeof t?k[b.call(t)]||"object":typeof t}function j(t,e,i){var a=A[e.type]||{};return null==t?i||!e.def?null:e.def:(t=a.floor?~~t:parseFloat(t),isNaN(t)?e.def:a.mod?(t+a.mod)%a.mod:Math.min(a.max,Math.max(0,t)))}function E(a){var n=N(),s=n._rgba=[];return a=a.toLowerCase(),H(S,function(t,e){var i=e.re.exec(a),i=i&&e.parse(i),e=e.space||"rgba";if(i)return i=n[e](i),n[F[e].cache]=i[F[e].cache],s=n._rgba=i._rgba,!1}),s.length?("0,0,0,0"===s.join()&&v.extend(s,G.transparent),n):G[a]}function L(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}W.style.cssText="background-color:rgba(1,1,1,.5)",Y.rgba=-1<W.style.backgroundColor.indexOf("rgba"),H(F,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){k["[object "+e+"]"]=e.toLowerCase()}),(N.fn=v.extend(N.prototype,{parse:function(n,t,e,i){if(void 0===n)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=v(n).css(t),t=void 0);var s=this,a=O(n),r=this._rgba=[];return void 0!==t&&(n=[n,t,e,i],a="array"),"string"===a?this.parse(E(n)||G._default):"array"===a?(H(F.rgba.props,function(t,e){r[e.idx]=j(n[e.idx],e)}),this):"object"===a?(H(F,n instanceof N?function(t,e){n[e.cache]&&(s[e.cache]=n[e.cache].slice())}:function(t,i){var a=i.cache;H(i.props,function(t,e){if(!s[a]&&i.to){if("alpha"===t||null==n[t])return;s[a]=i.to(s._rgba)}s[a][e.idx]=j(n[t],e,!0)}),s[a]&&v.inArray(null,s[a].slice(0,3))<0&&(null==s[a][3]&&(s[a][3]=1),i.from&&(s._rgba=i.from(s[a])))}),this):void 0},is:function(t){var n=N(t),s=!0,r=this;return H(F,function(t,e){var i,a=n[e.cache];return a&&(i=r[e.cache]||e.to&&e.to(r._rgba)||[],H(e.props,function(t,e){if(null!=a[e.idx])return s=a[e.idx]===i[e.idx]})),s}),s},_space:function(){var i=[],a=this;return H(F,function(t,e){a[e.cache]&&i.push(t)}),i.pop()},transition:function(t,r){var e=(c=N(t))._space(),i=F[e],t=0===this.alpha()?N("transparent"):this,o=t[i.cache]||i.to(t._rgba),l=o.slice(),c=c[i.cache];return H(i.props,function(t,e){var i=e.idx,a=o[i],n=c[i],s=A[e.type]||{};null!==n&&(null===a?l[i]=n:(s.mod&&(n-a>s.mod/2?a+=s.mod:a-n>s.mod/2&&(a-=s.mod)),l[i]=j((n-a)*r+a,e)))}),this[e](l)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),a=N(t)._rgba;return N(v.map(e,function(t,e){return(1-i)*a[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=v.map(this._rgba,function(t,e){return null!=t?t:2<e?1:0});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=v.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),t=e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+v.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=N.fn,F.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,i=t[1]/255,a=t[2]/255,n=t[3],s=Math.max(e,i,a),r=Math.min(e,i,a),o=s-r,l=s+r,t=.5*l,i=r===s?0:e===s?60*(i-a)/o+360:i===s?60*(a-e)/o+120:60*(e-i)/o+240,l=0==o?0:t<=.5?o/l:o/(2-l);return[Math.round(i)%360,l,t,null==n?1:n]},F.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],a=t[2],t=t[3],i=a<=.5?a*(1+i):a+i-a*i,a=2*a-i;return[Math.round(255*L(a,i,e+1/3)),Math.round(255*L(a,i,e)),Math.round(255*L(a,i,e-1/3)),t]},H(F,function(l,t){var e=t.props,s=t.cache,r=t.to,o=t.from;N.fn[l]=function(t){if(r&&!this[s]&&(this[s]=r(this._rgba)),void 0===t)return this[s].slice();var i=O(t),a="array"===i||"object"===i?t:arguments,n=this[s].slice();return H(e,function(t,e){t=a["object"===i?t:e.idx];null==t&&(t=n[e.idx]),n[e.idx]=j(t,e)}),o?((t=N(o(n)))[s]=n,t):N(n)},H(e,function(r,o){N.fn[r]||(N.fn[r]=function(t){var e,i=O(t),a="alpha"===r?this._hsla?"hsla":"rgba":l,n=this[a](),s=n[o.idx];return"undefined"===i?s:("function"===i&&(i=O(t=t.call(this,s))),null==t&&o.empty?this:("string"===i&&(e=T.exec(t))&&(t=s+parseFloat(e[2])*("+"===e[1]?1:-1)),n[o.idx]=t,this[a](n)))})})}),(N.hook=function(t){t=t.split(" ");H(t,function(t,s){v.cssHooks[s]={set:function(t,e){var i,a,n="";if("transparent"!==e&&("string"!==O(e)||(i=E(e)))){if(e=N(i||e),!Y.rgba&&1!==e._rgba[3]){for(a="backgroundColor"===s?t.parentNode:t;(""===n||"transparent"===n)&&a&&a.style;)try{n=v.css(a,"backgroundColor"),a=a.parentNode}catch(t){}e=e.blend(n&&"transparent"!==n?n:"_default")}e=e.toRgbaString()}try{t.style[s]=e}catch(t){}}},v.fx.step[s]=function(t){t.colorInit||(t.start=N(t.elem,s),t.end=N(t.end),t.colorInit=!0),v.cssHooks[s].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),v.cssHooks.borderColor={expand:function(i){var a={};return H(["Top","Right","Bottom","Left"],function(t,e){a["border"+e+"Color"]=i}),a}};var R,P,K,B,q,z,U,$,J,Q,G=v.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},X="ui-effects-",Z="ui-effects-style",tt="ui-effects-animated";function et(t){var e,i,a=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,n={};if(a&&a.length&&a[0]&&a[a[0]])for(i=a.length;i--;)"string"==typeof a[e=a[i]]&&(n[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=a[e]);else for(e in a)"string"==typeof a[e]&&(n[e]=a[e]);return n}function it(t,e,i,a){return t={effect:t=V.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(a=e,i=null,e={}),"number"!=typeof e&&!V.fx.speeds[e]||(a=i,i=e,e={}),"function"==typeof i&&(a=i,i=null),e&&V.extend(t,e),i=i||e.duration,t.duration=V.fx.off?0:"number"==typeof i?i:i in V.fx.speeds?V.fx.speeds[i]:V.fx.speeds._default,t.complete=a||e.complete,t}function at(t){return!t||"number"==typeof t||V.fx.speeds[t]||("string"==typeof t&&!V.effects.effect[t]||("function"==typeof t||"object"==typeof t&&!t.effect))}function nt(t,e){var i=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?i:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}V.effects={effect:{}},B=["add","remove","toggle"],q={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},V.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){V.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(v.style(t.elem,e,t.end),t.setAttr=!0)}}),V.fn.addBack||(V.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),V.effects.animateClass=function(n,t,e,i){var s=V.speed(t,e,i);return this.queue(function(){var i=V(this),t=i.attr("class")||"",e=(e=s.children?i.find("*").addBack():i).map(function(){return{el:V(this),start:et(this)}}),a=function(){V.each(B,function(t,e){n[e]&&i[e+"Class"](n[e])})};a(),e=e.map(function(){return this.end=et(this.el[0]),this.diff=function(t,e){var i,a,n={};for(i in e)a=e[i],t[i]!==a&&(q[i]||!V.fx.step[i]&&isNaN(parseFloat(a))||(n[i]=a));return n}(this.start,this.end),this}),i.attr("class",t),e=e.map(function(){var t=this,e=V.Deferred(),i=V.extend({},s,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),V.when.apply(V,e.get()).done(function(){a(),V.each(arguments,function(){var e=this.el;V.each(this.diff,function(t){e.css(t,"")})}),s.complete.call(i[0])})})},V.fn.extend({addClass:(K=V.fn.addClass,function(t,e,i,a){return e?V.effects.animateClass.call(this,{add:t},e,i,a):K.apply(this,arguments)}),removeClass:(P=V.fn.removeClass,function(t,e,i,a){return 1<arguments.length?V.effects.animateClass.call(this,{remove:t},e,i,a):P.apply(this,arguments)}),toggleClass:(R=V.fn.toggleClass,function(t,e,i,a,n){return"boolean"==typeof e||void 0===e?i?V.effects.animateClass.call(this,e?{add:t}:{remove:t},i,a,n):R.apply(this,arguments):V.effects.animateClass.call(this,{toggle:t},e,i,a)}),switchClass:function(t,e,i,a,n){return V.effects.animateClass.call(this,{add:e,remove:t},i,a,n)}}),V.expr&&V.expr.pseudos&&V.expr.pseudos.animated&&(V.expr.pseudos.animated=(z=V.expr.pseudos.animated,function(t){return!!V(t).data(tt)||z(t)})),!1!==V.uiBackCompat&&V.extend(V.effects,{save:function(t,e){for(var i=0,a=e.length;i<a;i++)null!==e[i]&&t.data(X+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,a=0,n=e.length;a<n;a++)null!==e[a]&&(i=t.data(X+e[a]),t.css(e[a],i))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var a={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},t=V("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},n=document.activeElement;try{n.id}catch(t){n=document.body}return i.wrap(t),i[0]!==n&&!V.contains(i[0],n)||V(n).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(V.extend(a,{position:i.css("position"),zIndex:i.css("z-index")}),V.each(["top","left","bottom","right"],function(t,e){a[e]=i.css(e),isNaN(parseInt(a[e],10))&&(a[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(a).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!V.contains(t[0],e)||V(e).trigger("focus")),t}}),V.extend(V.effects,{version:"1.13.2",define:function(t,e,i){return i||(i=e,e="effect"),V.effects.effect[t]=i,V.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var a="horizontal"!==i?(e||100)/100:1,e="vertical"!==i?(e||100)/100:1;return{height:t.height()*e,width:t.width()*a,outerHeight:t.outerHeight()*e,outerWidth:t.outerWidth()*a}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var a=t.queue();1<e&&a.splice.apply(a,[1,0].concat(a.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(Z,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(Z)||"",t.removeData(Z)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),e=(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var i,a;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":a=0;break;case"center":a=.5;break;case"right":a=1;break;default:a=t[1]/e.width}return{x:a,y:i}},createPlaceholder:function(t){var e,i=t.css("position"),a=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",e=V("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(X+"placeholder",e)),t.css({position:i,left:a.left,top:a.top}),e},removePlaceholder:function(t){var e=X+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){V.effects.restoreStyle(t),V.effects.removePlaceholder(t)},setTransition:function(a,t,n,s){return s=s||{},V.each(t,function(t,e){var i=a.cssUnit(e);0<i[0]&&(s[e]=i[0]*n+i[1])}),s}}),V.fn.extend({effect:function(){function t(t){var e=V(this),i=V.effects.mode(e,o)||s;e.data(tt,!0),l.push(i),s&&("show"===i||i===s&&"hide"===i)&&e.show(),s&&"none"===i||V.effects.saveStyle(e),"function"==typeof t&&t()}var a=it.apply(this,arguments),n=V.effects.effect[a.effect],s=n.mode,e=a.queue,i=e||"fx",r=a.complete,o=a.mode,l=[];return V.fx.off||!n?o?this[o](a.duration,r):this.each(function(){r&&r.call(this)}):!1===e?this.each(t).each(c):this.queue(i,t).queue(i,c);function c(t){var e=V(this);function i(){"function"==typeof r&&r.call(e[0]),"function"==typeof t&&t()}a.mode=l.shift(),!1===V.uiBackCompat||s?"none"===a.mode?(e[o](),i()):n.call(e[0],a,function(){e.removeData(tt),V.effects.cleanUp(e),"hide"===a.mode&&e.hide(),i()}):(e.is(":hidden")?"hide"===o:"show"===o)?(e[o](),i()):n.call(e[0],a,i)}},show:(J=V.fn.show,function(t){if(at(t))return J.apply(this,arguments);t=it.apply(this,arguments);return t.mode="show",this.effect.call(this,t)}),hide:($=V.fn.hide,function(t){if(at(t))return $.apply(this,arguments);t=it.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)}),toggle:(U=V.fn.toggle,function(t){if(at(t)||"boolean"==typeof t)return U.apply(this,arguments);t=it.apply(this,arguments);return t.mode="toggle",this.effect.call(this,t)}),cssUnit:function(t){var i=this.css(t),a=[];return V.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(a=[parseFloat(i),e])}),a},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):nt(this.css("clip"),this)},transfer:function(t,e){var i=V(this),a=V(t.to),n="fixed"===a.css("position"),s=V("body"),r=n?s.scrollTop():0,o=n?s.scrollLeft():0,s=a.offset(),s={top:s.top-r,left:s.left-o,height:a.innerHeight(),width:a.innerWidth()},a=i.offset(),l=V("<div class='ui-effects-transfer'></div>");l.appendTo("body").addClass(t.className).css({top:a.top-r,left:a.left-o,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(s,t.duration,t.easing,function(){l.remove(),"function"==typeof e&&e()})}}),V.fx.step.clip=function(t){t.clipInit||(t.start=V(t.elem).cssClip(),"string"==typeof t.end&&(t.end=nt(t.end,t.elem)),t.clipInit=!0),V(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},Q={},V.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){Q[t]=function(t){return Math.pow(t,e+2)}}),V.extend(Q,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),V.each(Q,function(t,e){V.easing["easeIn"+t]=e,V.easing["easeOut"+t]=function(t){return 1-e(1-t)},V.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});V.effects,V.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;V(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("size",function(a,e){var n,i=V(this),t=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],o=a.mode,l="effect"!==o,c=a.scale||"both",d=a.origin||["middle","center"],u=i.css("position"),h=i.position(),p=V.effects.scaledDimensions(i),f=a.from||p,g=a.to||V.effects.scaledDimensions(i,0);V.effects.createPlaceholder(i),"show"===o&&(o=f,f=g,g=o),n={from:{y:f.height/p.height,x:f.width/p.width},to:{y:g.height/p.height,x:g.width/p.width}},"box"!==c&&"both"!==c||(n.from.y!==n.to.y&&(f=V.effects.setTransition(i,s,n.from.y,f),g=V.effects.setTransition(i,s,n.to.y,g)),n.from.x!==n.to.x&&(f=V.effects.setTransition(i,r,n.from.x,f),g=V.effects.setTransition(i,r,n.to.x,g))),"content"!==c&&"both"!==c||n.from.y!==n.to.y&&(f=V.effects.setTransition(i,t,n.from.y,f),g=V.effects.setTransition(i,t,n.to.y,g)),d&&(d=V.effects.getBaseline(d,p),f.top=(p.outerHeight-f.outerHeight)*d.y+h.top,f.left=(p.outerWidth-f.outerWidth)*d.x+h.left,g.top=(p.outerHeight-g.outerHeight)*d.y+h.top,g.left=(p.outerWidth-g.outerWidth)*d.x+h.left),delete f.outerHeight,delete f.outerWidth,i.css(f),"content"!==c&&"both"!==c||(s=s.concat(["marginTop","marginBottom"]).concat(t),r=r.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=V(this),e=V.effects.scaledDimensions(t),i={height:e.height*n.from.y,width:e.width*n.from.x,outerHeight:e.outerHeight*n.from.y,outerWidth:e.outerWidth*n.from.x},e={height:e.height*n.to.y,width:e.width*n.to.x,outerHeight:e.height*n.to.y,outerWidth:e.width*n.to.x};n.from.y!==n.to.y&&(i=V.effects.setTransition(t,s,n.from.y,i),e=V.effects.setTransition(t,s,n.to.y,e)),n.from.x!==n.to.x&&(i=V.effects.setTransition(t,r,n.from.x,i),e=V.effects.setTransition(t,r,n.to.x,e)),l&&V.effects.saveStyle(t),t.css(i),t.animate(e,a.duration,a.easing,function(){l&&V.effects.restoreStyle(t)})})),i.animate(g,{queue:!1,duration:a.duration,easing:a.easing,complete:function(){var t=i.offset();0===g.opacity&&i.css("opacity",f.opacity),l||(i.css("position","static"===u?"relative":u).offset(t),V.effects.saveStyle(i)),e()}})}),V.effects.define("scale",function(t,e){var i=V(this),a=t.mode,a=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==a?0:100),a=V.extend(!0,{from:V.effects.scaledDimensions(i),to:V.effects.scaledDimensions(i,a,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(a.from.opacity=1,a.to.opacity=0),V.effects.effect.size.call(this,a,e)}),V.effects.define("slide","show",function(t,e){var i,a,n=V(this),s={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=t.mode,o=t.direction||"left",l="up"===o||"down"===o?"top":"left",c="up"===o||"left"===o,d=t.distance||n["top"==l?"outerHeight":"outerWidth"](!0),u={};V.effects.createPlaceholder(n),i=n.cssClip(),a=n.position()[l],u[l]=(c?-1:1)*d+a,u.clip=n.cssClip(),u.clip[s[o][1]]=u.clip[s[o][0]],"show"===r&&(n.cssClip(u.clip),n.css(l,u[l]),u.clip=i,u[l]=a),n.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:e})})});