vendor: 5,891 bytes, lines 1-6
1/*! jQuery UI - v1.13.2 - 2023-04-26 2* http://jqueryui.com 3* Includes: widget.js, data.js, keycode.js, scroll-parent.js, widgets/draggable.js, widgets/datepicker.js, widgets/mouse.js 4* Copyright jQuery Foundation and other contributors; Licensed MIT */ 5 6!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(J){"use strict";J.ui=J.ui||{};J.ui.version="1.13.2";var a,i=0,r=Array.prototype.hasOwnProperty,o=Array.prototype.slice;J.cleanData=(a=J.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)(e=J._data(i,"events"))&&e.remove&&J(i).triggerHandler("remove");a(t)}),J.widget=function(t,i,e){var s,a,n,r={},o=t.split(".")[0],l=o+"-"+(t=t.split(".")[1]);return e||(e=i,i=J.Widget),Array.isArray(e)&&(e=J.extend.apply(null,[{}].concat(e))),J.expr.pseudos[l.toLowerCase()]=function(t){return!!J.data(t,l)},J[o]=J[o]||{},s=J[o][t],a=J[o][t]=function(t,e){if(!this||!this._createWidget)return new a(t,e);arguments.length&&this._createWidget(t,e)},J.extend(a,s,{version:e.version,_proto:J.extend({},e),_childConstructors:[]}),(n=new i).options=J.widget.extend({},n.options),J.each(e,function(e,s){function a(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}r[e]="function"==typeof s?function(){var t,e=this._super,i=this._superApply;return this._super=a,this._superApply=n,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}:s}),a.prototype=J.widget.extend(n,{widgetEventPrefix:s&&n.widgetEventPrefix||t},r,{constructor:a,namespace:o,widgetName:t,widgetFullName:l}),s?(J.each(s._childConstructors,function(t,e){var i=e.prototype;J.widget(i.namespace+"."+i.widgetName,a,e._proto)}),delete s._childConstructors):i._childConstructors.push(a),J.widget.bridge(t,a),a},J.widget.extend=function(t){for(var e,i,s=o.call(arguments,1),a=0,n=s.length;a<n;a++)for(e in s[a])i=s[a][e],r.call(s[a],e)&&void 0!==i&&(J.isPlainObject(i)?t[e]=J.isPlainObject(t[e])?J.widget.extend({},t[e],i):J.widget.extend({},i):t[e]=i);return t},J.widget.bridge=function(n,e){var r=e.prototype.widgetFullName||n;J.fn[n]=function(i){var t="string"==typeof i,s=o.call(arguments,1),a=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=J.data(this,r);return"instance"===i?(a=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?J.error("no such method '"+i+"' for "+n+" widget instance"):(t=e[i].apply(e,s))!==e&&void 0!==t?(a=t&&t.jquery?a.pushStack(t.get()):t,!1):void 0:J.error("cannot call methods on "+n+" prior to initialization; attempted to call method '"+i+"'")}):a=void 0:(s.length&&(i=J.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=J.data(this,r);t?(t.option(i||{}),t._init&&t._init()):J.data(this,r,new e(i,this))})),a}},J.Widget=function(){},J.Widget._childConstructors=[],J.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=J(e||this.defaultElement||this)[0],this.element=J(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=J(),this.hoverable=J(),this.focusable=J(),this.classesElementLookup={},e!==this&&(J.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=J(e.style?e.ownerDocument:e.document||e),this.window=J(this.document[0].defaultView||this.document[0].parentWindow)),this.options=J.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:J.noop,_create:J.noop,_init:J.noop,destroy:function(){var i=this;this._destroy(),J.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:J.noop,widget:function(){return this.element},option:function(t,e){var i,s,a,n=t;if(0===arguments.length)return J.widget.extend({},this.options);if("string"==typeof t)if(n={},t=(i=t.split(".")).shift(),i.length){for(s=n[t]=J.widget.extend({},this.options[t]),a=0;a<i.length-1;a++)s[i[a]]=s[i[a]]||{},s=s[i[a]];if(t=i.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];n[t]=e}return this._setOptions(n),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,s;for(e in t)s=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&s&&s.length&&(i=J(s.get()),this._removeClass(s,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(a){var n=[],r=this;function t(t,e){for(var i,s=0;s<t.length;s++)i=r.classesElementLookup[t[s]]||J(),i=a.add?(function(){var i=[];a.element.each(function(t,e){J.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(J(i),{remove:"_untrackClassesElement"})}(),J(J.uniqueSort(i.get().concat(a.element.get())))):J(i.not(a.element).get()),r.classesElementLookup[t[s]]=i,n.push(t[s]),e&&a.classes[t[s]]&&n.push(a.classes[t[s]])}return(a=J.extend({element:this.element,classes:this.options.classes||{}}
vendor: 17,936 bytes, line 6
6,a)).keys&&t(a.keys.match(/\S+/g)||[],!0),a.extra&&t(a.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(i){var s=this;J.each(s.classesElementLookup,function(t,e){-1!==J.inArray(i.target,e)&&(s.classesElementLookup[t]=J(e.not(i.target).get()))}),this._off(J(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,s){var a="string"==typeof t||null===t,i={extra:a?e:i,keys:a?t:e,element:a?this.element:t,add:s="boolean"==typeof s?s:i};return i.element.toggleClass(this._classes(i),s),this},_on:function(a,n,t){var r,o=this;"boolean"!=typeof a&&(t=n,n=a,a=!1),t?(n=r=J(n),this.bindings=this.bindings.add(n)):(t=n,n=this.element,r=this.widget()),J.each(t,function(t,e){function i(){if(a||!0!==o.options.disabled&&!J(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||J.guid++);var s=t.match(/^([\w:-]*)\s*(.*)$/),t=s[1]+o.eventNamespace,s=s[2];s?r.on(t,s,i):n.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=J(this.bindings.not(t).get()),this.focusable=J(this.focusable.not(t).get()),this.hoverable=J(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(J(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(J(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(J(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(J(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var s,a,n=this.options[t];if(i=i||{},(e=J.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],a=e.originalEvent)for(s in a)s in e||(e[s]=a[s]);return this.element.trigger(e,i),!("function"==typeof n&&!1===n.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},J.each({show:"fadeIn",hide:"fadeOut"},function(n,r){J.Widget.prototype["_"+n]=function(e,t,i){var s,a=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:n;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),s=!J.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),s&&J.effects&&J.effects.effect[a]?e[n](t):a!==n&&e[a]?e[a](t.duration,t.easing,i):e.queue(function(t){J(this)[n](),i&&i.call(e[0]),t()})}});J.widget,J.extend(J.expr.pseudos,{data:J.expr.createPseudo?J.expr.createPseudo(function(e){return function(t){return!!J.data(t,e)}}):function(t,e,i){return!!J.data(t,i[3])}}),J.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},J.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=J(this);return(!i||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:J(this[0].ownerDocument||document)},J.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var n=!1;J(document).on("mouseup",function(){n=!1});J.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(!0===J.data(t.target,e.widgetName+".preventClickEvent"))return J.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!n){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var e=this,i=1===t.which,s=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&J(t.target).closest(this.options.cancel).length;return i&&!s&&this._mouseCapture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===J.data(t.target,this.widgetName+".preventClickEvent")&&J.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),n=!0)):!0}},_mouseMove:function(t){if(this._mouseMoved){if(J.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&J.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),J.ui.plugin={add:function(t,e,i){var s,a=J.ui[t].prototype;for(s in i)a.plugins[s]=a.plugins[s]||[],a.plugins[s].push([e,i[s]])},call:function(t,e,i,s){var a,n=t.plugins[e];if(n&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(a=0;a<n.length;a++)t.options[n[a][0]]&&n[a][1].apply(t.element,i)}},J.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=!(i=i||e.body).nodeName?e.body:i},J.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&J(t).trigger("blur")};J.widget("ui.draggable",J.ui.mouse,{version:"1.13.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<J(t.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=J(this);return J("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=J.ui.safeActiveElement(this.document[0]);J(t.target).closest(e).length||J.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),J.ui.ddmanager&&(J.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===J(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),J.ui.ddmanager&&!e.dropBehaviour&&J.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),J.ui.ddmanager&&J.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new J.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",J.ui.ddmanager&&J.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return J.ui.ddmanager&&!this.options.dropBehaviour&&(i=J.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?J(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),J.ui.ddmanager&&J.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),J.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new J.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!J(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,i="function"==typeof e.helper,t=i?J(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),i&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&J.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i,s=this.options,a=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(i=(e=J(s.containment))[0])&&(t=/(scroll|auto)/.test(e.css("overflow")),this.containment=[(parseInt(e.css("borderLeftWidth"),10)||0)+(parseInt(e.css("paddingLeft"),10)||0),(parseInt(e.css("borderTopWidth"),10)||0)+(parseInt(e.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(e.css("borderRightWidth"),10)||0)-(parseInt(e.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(e.css("borderBottomWidth"),10)||0)-(parseInt(e.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=e)):this.containment=s.containment:this.containment=[0,0,J(a).width()-this.helperProportions.width-this.margins.left,(J(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[J(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,J(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,J(window).scrollLeft()+J(window).width()-this.helperProportions.width-this.margins.left,J(window).scrollTop()+(J(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,t=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:t?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:t?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s=this.options,a=this._isRootNode(this.scrollParent[0]),n=t.pageX,r=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(i=this.relativeContainer?(i=this.relativeContainer.offset(),[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(n=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(r=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(n=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(r=i[3]+this.offset.click.top)),s.grid&&(t=s.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,r=!i||t-this.offset.click.top>=i[1]||t-this.offset.click.top>i[3]?t:t-this.offset.click.top>=i[1]?t-s.grid[1]:t+s.grid[1],t=s.grid[0]?this.originalPageX+Math.round((n-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,n=!i||t-this.offset.click.left>=i[0]||t-this.offset.click.left>i[2]?t:t-this.offset.click.left>=i[0]?t-s.grid[0]:t+s.grid[0]),"y"===s.axis&&(n=this.originalPageX),"x"===s.axis&&(r=this.originalPageY)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,i){return i=i||this._uiHash(),J.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop
vendor: 4,484 bytes, line 6
6)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),J.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),J.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var s=J.extend({},t,{item:i.element});i.sortables=[],J(i.options.connectToSortable).each(function(){var t=J(this).sortable("instance");t&&!t.options.disabled&&(i.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,s))})},stop:function(e,t,i){var s=J.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,J.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))})},drag:function(i,s,a){J.each(a.sortables,function(){var t=!1,e=this;e.positionAbs=a.positionAbs,e.helperProportions=a.helperProportions,e.offset.click=a.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,J.each(a.sortables,function(){return this.positionAbs=a.positionAbs,this.helperProportions=a.helperProportions,this.offset.click=a.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&J.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,a._parent=s.helper.parent(),e.currentItem=s.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return s.helper[0]},i.target=e.currentItem[0],e._mouseCapture(i,!0),e._mouseStart(i,!0,!0),e.offset.click.top=a.offset.click.top,e.offset.click.left=a.offset.click.left,e.offset.parent.left-=a.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=a.offset.parent.top-e.offset.parent.top,a._trigger("toSortable",i),a.dropped=e.element,J.each(a.sortables,function(){this.refreshPositions()}),a.currentItem=a.element,e.fromOutside=a),e.currentItem&&(e._mouseDrag(i),s.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",i,e._uiHash(e)),e._mouseStop(i,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),s.helper.appendTo(a._parent),a._refreshOffsets(i),s.position=a._generatePosition(i,!0),a._trigger("fromSortable",i),a.dropped=!1,J.each(a.sortables,function(){this.refreshPositions()}))})}}),J.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var s=J("body"),i=i.options;s.css("cursor")&&(i._cursor=s.css("cursor")),s.css("cursor",i.cursor)},stop:function(t,e,i){i=i.options;i._cursor&&J("body").css("cursor",i._cursor)}}),J.ui.plugin.add("draggable","opacity",{start:function(t,e,i){e=J(e.helper),i=i.options;e.css("opacity")&&(i._opacity=e.css("opacity")),e.css("opacity",i.opacity)},stop:function(t,e,i){i=i.options;i._opacity&&J(e.helper).css("opacity",i._opacity)}}),J.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,e,i){var s=i.options,a=!1,n=i.scrollParentNotHidden[0],r=i.document[0];n!==r&&"HTML"!==n.tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+n.offsetHeight-t.pageY<s.scrollSensitivity?n.scrollTop=a=n.scrollTop+s.scrollSpeed:t.pageY-i.overflowOffset.top<s.scrollSensitivity&&(n.scrollTop=a=n.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+n.offsetWidth-t.pageX<s.scrollSensitivity?n.scrollLeft=a=n.scrollLeft+s.scrollSpeed:t.pageX-i.overflowOffset.left<s.scrollSensitivity&&(n.scrollLeft=a=n.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-J(r).scrollTop()<s.scrollSensitivity?a=J(r).scrollTop(J(r).scrollTop()-s.scrollSpeed):J(window).height()-(t.pageY-J(r).scrollTop())<s.scrollSensitivity&&(a=J(r).scrollTop(J(r).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-J(r).scrollLeft()<s.scrollSensitivity?a=J(r).scrollLeft(J(r).scrollLeft()-s.scrollSpeed):J(window).width()-(t.pageX-J(r).scrollLeft())<s.scrollSensitivity&&(a=J(r).scrollLeft(J(r).scrollLeft()+s.scrollSpeed)))),!1!==a&&J.ui.ddmanager&&!s.dropBehaviour&&J.ui.ddmanager.prepareOffsets(i,t)}}
vendor: 21,899 bytes, line 6
6),J.ui.plugin.add("draggable","snap",{start:function(t,e,i){var s=i.options;i.snapElements=[],J(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var t=J(this),e=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,i){for(var s,a,n,r,o,l,h,c,d,p=i.options,u=p.snapTolerance,f=e.offset.left,g=f+i.helperProportions.width,m=e.offset.top,_=m+i.helperProportions.height,v=i.snapElements.length-1;0<=v;v--)l=(o=i.snapElements[v].left-i.margins.left)+i.snapElements[v].width,c=(h=i.snapElements[v].top-i.margins.top)+i.snapElements[v].height,g<o-u||l+u<f||_<h-u||c+u<m||!J.contains(i.snapElements[v].item.ownerDocument,i.snapElements[v].item)?(i.snapElements[v].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,J.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=!1):("inner"!==p.snapMode&&(s=Math.abs(h-_)<=u,a=Math.abs(c-m)<=u,n=Math.abs(o-g)<=u,r=Math.abs(l-f)<=u,s&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),a&&(e.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),n&&(e.position.left=i._convertPositionTo("relative",{top:0,left:o-i.helperProportions.width}).left),r&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),d=s||a||n||r,"outer"!==p.snapMode&&(s=Math.abs(h-m)<=u,a=Math.abs(c-_)<=u,n=Math.abs(o-f)<=u,r=Math.abs(l-g)<=u,s&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),a&&(e.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),n&&(e.position.left=i._convertPositionTo("relative",{top:0,left:o}).left),r&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[v].snapping&&(s||a||n||r||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,J.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=s||a||n||r||d)}}),J.ui.plugin.add("draggable","stack",{start:function(t,e,i){var s,i=i.options,i=J.makeArray(J(i.stack)).sort(function(t,e){return(parseInt(J(t).css("zIndex"),10)||0)-(parseInt(J(e).css("zIndex"),10)||0)});i.length&&(s=parseInt(J(i[0]).css("zIndex"),10)||0,J(i).each(function(t){J(this).css("zIndex",s+t)}),this.css("zIndex",s+i.length))}}),J.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){e=J(e.helper),i=i.options;e.css("zIndex")&&(i._zIndex=e.css("zIndex")),e.css("zIndex",i.zIndex)},stop:function(t,e,i){i=i.options;i._zIndex&&J(e.helper).css("zIndex",i._zIndex)}});var l;J.ui.draggable;function t(){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},J.extend(this._defaults,this.regional[""]),this.regional.en=J.extend(!0,{},this.regional[""]),this.regional["en-US"]=J.extend(!0,{},this.regional.en),this.dpDiv=s(J("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){J(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&J(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&J(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,h)}function h(){J.datepicker._isDisabledDatepicker((l.inline?l.dpDiv.parent():l.input)[0])||(J(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),J(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&J(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&J(this).addClass("ui-datepicker-next-hover"))}function c(t,e){for(var i in J.extend(t,e),e)null==e[i]&&(t[i]=e[i]);return t}J.extend(J.ui,{datepicker:{version:"1.13.2"}}),J.extend(t.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return c(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,s=t.nodeName.toLowerCase(),a="div"===s||"span"===s;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(J(t),a)).settings=J.extend({},e||{}),"input"===s?this._connectDatepicker(t,i):a&&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?s(J("<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=J(t);e.append=J([]),e.trigger=J([]),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),J.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,s=this._get(e,"appendText"),a=this._get(e,"isRTL");e.append&&e.append.remove(),s&&(e.append=J("<span>").addClass(this._appendClass).text(s),t[a?"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||(s=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),this._get(e,"buttonImageOnly")?e.trigger=J("<img>").addClass(this._triggerClass).attr({src:i,alt:s,title:s}):(e.trigger=J("<button type='button'>").addClass(this._triggerClass),i?e.trigger.html(J("<img>").attr({src:i,alt:s,title:s})):e.trigger.text(s)),t[a?"before":"after"](e.trigger),e.trigger.on("click",function(){return J.datepicker._datepickerShowing&&J.datepicker._lastInput===t[0]?J.datepicker._hideDatepicker():(J.datepicker._datepickerShowing&&J.datepicker._lastInput!==t[0]&&J.datepicker._hideDatepicker(),J.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,s,a,n,r;this._get(t,"autoSize")&&!t.inline&&(n=new Date(2009,11,20),(r=this._get(t,"dateFormat")).match(/[DM]/)&&(e=function(t){for(a=s=i=0;a<t.length;a++)t[a].length>i&&(i=t[a].length,s=a);return s},n.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),n.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-n.getDay())),t.input.attr("size",this._formatDate(t,n).length))},_inlineDatepicker:function(t,e){var i=J(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),J.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,s,a){var n,r=this._dialogInst;return r||(this.uuid+=1,n="dp"+this.uuid,this._dialogInput=J("<input type='text' id='"+n+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),J("body").append(this._dialogInput),(r=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},J.data(this._dialogInput[0],"datepicker",r)),c(r.settings,s||{}),e=e&&e.constructor===Date?this._formatDate(r,e):e,this._dialogInput.val(e),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(n=document.documentElement.clientWidth,s=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,a=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[n/2-100+e,s/2-150+a]),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]),J.blockUI&&J.blockUI(this.dpDiv),J.data(this._dialogInput[0],"datepicker",r),this},_destroyDatepicker:function(t){var e,i=J(t),s=J.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),J.removeData(t,"datepicker"),"input"===e?(s.append.remove(),s.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(),l===s&&(l=null,this._curInst=null))},_enableDatepicker:function(e){var t,i=J(e),s=J.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,s.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=J.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=J(e),s=J.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,s.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=J.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 J.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var s,a,n=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?J.extend({},J.datepicker._defaults):n?"all"===e?J.extend({},n.settings):this._get(n,e):null;s=e||{},"string"==typeof e&&((s={})[e]=i),n&&(this._curInst===n&&this._hideDatepicker(),a=this._getDateDatepicker(t,!0),e=this._getMinMaxDate(n,"min"),i=this._getMinMaxDate(n,"max"),c(n.settings,s),null!==e&&void 0!==s.dateFormat&&void 0===s.minDate&&(n.settings.minDate=this._formatDate(n,e)),null!==i&&void 0!==s.dateFormat&&void 0===s.maxDate&&(n.settings.maxDate=this._formatDate(n,i)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(J(t),n),this._autoSize(n),this._setDate(n,a),this._updateAlternate(n),this._updateDatepicker(n))},_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,s=J.datepicker._getInst(t.target),a=!0,n=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,J.datepicker._datepickerShowing)switch(t.keyCode){case 9:J.datepicker._hideDatepicker(),a=!1;break;case 13:return(i=J("td."+J.datepicker._dayOverClass+":not(."+J.datepicker._currentClass+")",s.dpDiv))[0]&&J.datepicker._selectDay(t.target,s.selectedMonth,s.selectedYear,i[0]),(e=J.datepicker._get(s,"onSelect"))?(i=J.datepicker._formatDate(s),e.apply(s.input?s.input[0]:null,[i,s])):J.datepicker._hideDatepicker(),!1;case 27:J.datepicker._hideDatepicker();break;case 33:J.datepicker._adjustDate(t.target,t.ctrlKey?-J.datepicker._get(s,"stepBigMonths"):-J.datepicker._get(s,"stepMonths"),"M");break;case 34:J.datepicker._adjustDate(t.target,t.ctrlKey?+J.datepicker._get(s,"stepBigMonths"):+J.datepicker._get(s,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&J.datepicker._clearDate(t.target),a=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&J.datepicker._gotoToday(t.target),a=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&J.datepicker._adjustDate(t.target,n?1:-1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&J.datepicker._adjustDate(t.target,t.ctrlKey?-J.datepicker._get(s,"stepBigMonths"):-J.datepicker._get(s,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&J.datepicker._adjustDate(t.target,-7,"D"),a=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&J.datepicker._adjustDate(t.target,n?-1:1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&J.datepicker._adjustDate(t.target,t.ctrlKey?+J.datepicker._get(s,"stepBigMonths"):+J.datepicker._get(s,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&J.datepicker._adjustDate(t.target,7,"D"),a=t.ctrlKey||t.metaKey;break;default:a=!1}else 36===t.keyCode&&t.ctrlKey?J.datepicker._showDatepicker(this):a=!1;a&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=J.datepicker._getInst(t.target);if(J.datepicker._get(i,"constrainInput"))return e=J.datepicker._possibleChars(J.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=J.datepicker._getInst(t.target);if(t.input.val()!==t.lastVal)try{J.datepicker.parseDate(J.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,J.datepicker._getFormatConfig(t))&&(J.datepicker._setDateFromField(t),J.datepicker._updateAlternate(t),J.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,i,s,a;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=J("input",t.parentNode)[0]),J.datepicker._isDisabledDatepicker(t)||J.datepicker._lastInput===t||(a=J.datepicker._getInst(t),J.datepicker._curInst&&J.datepicker._curInst!==a&&(J.datepicker._curInst.dpDiv.stop(!0,!0),a&&J.datepicker._datepickerShowing&&J.datepicker._hideDatepicker(J.datepicker._curInst.input[0])),!1!==(i=(s=J.datepicker._get(a,"beforeShow"))?s.apply(t,[t,a]):{})&&(c(a.settings,i),a.lastVal=null,J.datepicker._lastInput=t,J.datepicker._setDateFromField(a),J.datepicker._inDialog&&(t.value=""),J.datepicker._pos||(J.datepicker._pos=J.datepicker._findPos(t),J.datepicker._pos[1]+=t.offsetHeight),e=!1,J(t).parents().each(function(){return!(e|="fixed"===J(this).css("position"))}),s={left:J.datepicker._pos[0],top:J.datepicker._pos[1]},J.datepicker._pos=null,a.dpDiv.empty(),a.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),J.datepicker._updateDatepicker(a),s=J.datepicker._checkOffset(a,s,e),a.dpDiv.css({position:J.datepicker._inDialog&&J.blockUI?"static":e?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"}),a.inline||(i=J.datepicker._get(a,"showAnim"),s=J.datepicker._get(a,"duration"),a.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}(J(t))+1),J.datepicker._datepickerShowing=!0,J.effects&&J.effects.effect[i]?a.dpDiv.show(i,J.datepicker._get(a,"showOptions"),s):a.dpDiv[i||"show"](i?s:null),J.datepicker._shouldFocusInput(a)&&a.input.trigger("focus"),J.datepicker._curInst=a)))},_updateDatepicker:function(t){this.maxRows=4,(l=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),s=i[1],a=t.dpDiv.find("."+this._dayOverClass+" a"),n=J.datepicker._get(t,"onUpdateDatepicker");0<a.length&&h.apply(a.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<s&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"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===J.datepicker._curInst&&J.datepicker._datepickerShowing&&J.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)),n&&n.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 s=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),n=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,o=document.documentElement.clientWidth+(i?0:J(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:J(document).scrollTop());return e.left-=this._get(t,"isRTL")?s-n:0,e.left-=i&&e.left===t.input.offset().left?J(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+r?J(document).scrollTop():0,e.left-=Math.min(e.left,e.left+s>o&&s<o?Math.abs(e.left+s-o):0),e.top-=Math.min(e.top,e.top+a>l&&a<l?Math.abs(a+r):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||J.expr.pseudos.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=J(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,s=this._curInst;!s||t&&s!==J.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(s,"showAnim"),i=this._get(s,"duration"),t=function(){J.datepicker._tidyDialog(s)},J.effects&&(J.effects.effect[e]||J.effects[e])?s.dpDiv.hide(e,J.datepicker._get(s,"showOptions"),i,t):s.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?i:null,t),e||t(),this._datepickerShowing=!1,(t=this._get(s,"onClose"))&&t.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),J.blockUI&&(J.unblockUI(),J("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;J.datepicker._curInst&&(e=J(t.target),t=J.datepicker._getInst(e[0]),(e[0].id===J.datepicker._mainDivId||0!==e.parents("#"+J.datepicker._mainDivId).length||e.hasClass(J.datepicker.markerClassName)||e.closest("."+J.datepicker._triggerClass).length||!J.datepicker._datepickerShowing||J.datepicker._inDialog&&J.blockUI)&&(!e.hasClass(J.datepicker.markerClassName)||J.datepicker._curInst===t)||J.datepicker._hideDatepicker())},_adjustDate:function(t,e,i){var s=J(t),t=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(t,e,i),this._updateDatepicker(t))},_gotoToday:function(t){var e=J(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 s=J(t),t=this._getInst(s[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(s)},_selectDay:function(t,e,i,s){var a=J(t);J(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((a=this._getInst(a[0])).selectedDay=a.currentDay=parseInt(J("a",s).attr("data-date")),a.selectedMonth=a.currentMonth=e,a.selectedYear=a.currentYear=i,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){t=J(t);this._selectDate(t,"")},_selectDate:function(t,e){var i=J(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,s=this._get(t,"altField");s&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),t=this.formatDate(e,i,this._getFormatConfig(t)),J(document).find(s).val(t))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]}
vendor: 12,630 bytes, line 6
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,a,t){if(null==e||null==a)throw"Invalid arguments";if(""===(a="object"==typeof a?a.toString():a+""))return null;for(var i,s,n,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,h=(t?t.dayNames:null)||this._defaults.dayNames,c=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,d=(t?t.monthNames:null)||this._defaults.monthNames,p=-1,u=-1,f=-1,g=-1,m=!1,_=function(t){t=D+1<e.length&&e.charAt(D+1)===t;return t&&D++,t},v=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=a.substring(r).match(e);if(!e)throw"Missing number at position "+r;return r+=e[0].length,parseInt(e[0],10)},k=function(t,e,i){var s=-1,e=J.map(_(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(J.each(e,function(t,e){var i=e[1];if(a.substr(r,i.length).toLowerCase()===i.toLowerCase())return s=e[0],r+=i.length,!1}),-1!==s)return s+1;throw"Unknown name at position "+r},y=function(){if(a.charAt(r)!==e.charAt(D))throw"Unexpected literal at position "+r;r++},D=0;D<e.length;D++)if(m)"'"!==e.charAt(D)||_("'")?y():m=!1;else switch(e.charAt(D)){case"d":f=v("d");break;case"D":k("D",l,h);break;case"o":g=v("o");break;case"m":u=v("m");break;case"M":u=k("M",c,d);break;case"y":p=v("y");break;case"@":p=(n=new Date(v("@"))).getFullYear(),u=n.getMonth()+1,f=n.getDate();break;case"!":p=(n=new Date((v("!")-this._ticksTo1970)/1e4)).getFullYear(),u=n.getMonth()+1,f=n.getDate();break;case"'":_("'")?y():m=!0;break;default:y()}if(r<a.length&&(s=a.substr(r),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(-1===p?p=(new Date).getFullYear():p<100&&(p+=(new Date).getFullYear()-(new Date).getFullYear()%100+(p<=o?0:-100)),-1<g)for(u=1,f=g;;){if(f<=(i=this._getDaysInMonth(p,u-1)))break;u++,f-=i}if((n=this._daylightSavingAdjust(new Date(p,u-1,f))).getFullYear()!==p||n.getMonth()+1!==u||n.getDate()!==f)throw"Invalid date";return n},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 s(t,e,i){var s=""+e;if(c(t))for(;s.length<i;)s="0"+s;return s}function a(t,e,i,s){return(c(t)?s:i)[e]}var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,h=(i?i.monthNames:null)||this._defaults.monthNames,c=function(t){t=n+1<e.length&&e.charAt(n+1)===t;return t&&n++,t},d="",p=!1;if(t)for(n=0;n<e.length;n++)if(p)"'"!==e.charAt(n)||c("'")?d+=e.charAt(n):p=!1;else switch(e.charAt(n)){case"d":d+=s("d",t.getDate(),2);break;case"D":d+=a("D",t.getDay(),r,o);break;case"o":d+=s("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=s("m",t.getMonth()+1,2);break;case"M":d+=a("M",t.getMonth(),l,h);break;case"y":d+=c("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":c("'")?d+="'":p=!0;break;default:d+=e.charAt(n)}return d},_possibleChars:function(e){for(var t="",i=!1,s=function(t){t=a+1<e.length&&e.charAt(a+1)===t;return t&&a++,t},a=0;a<e.length;a++)if(i)"'"!==e.charAt(a)||s("'")?t+=e.charAt(a):i=!1;else switch(e.charAt(a)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":s("'")?t+="'":i=!0;break;default:t+=e.charAt(a)}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"),s=t.lastVal=t.input?t.input.val():null,a=this._getDefaultDate(t),n=a,r=this._getFormatConfig(t);try{n=this.parseDate(i,s,r)||a}catch(t){s=e?"":s}t.selectedDay=n.getDate(),t.drawMonth=t.selectedMonth=n.getMonth(),t.drawYear=t.selectedYear=n.getFullYear(),t.currentDay=s?n.getDate():0,t.currentMonth=s?n.getMonth():0,t.currentYear=s?n.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,s,t=null==t||""===t?e:"string"==typeof t?function(t){try{return J.datepicker.parseDate(J.datepicker._get(o,"dateFormat"),t,J.datepicker._getFormatConfig(o))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?J.datepicker._getDate(o):null)||new Date,i=e.getFullYear(),s=e.getMonth(),a=e.getDate(),n=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=n.exec(t);r;){switch(r[2]||"d"){case"d":case"D":a+=parseInt(r[1],10);break;case"w":case"W":a+=7*parseInt(r[1],10);break;case"m":case"M":s+=parseInt(r[1],10),a=Math.min(a,J.datepicker._getDaysInMonth(i,s));break;case"y":case"Y":i+=parseInt(r[1],10),a=Math.min(a,J.datepicker._getDaysInMonth(i,s))}r=n.exec(t)}return new Date(i,s,a)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(s=new Date).setDate(s.getDate()+i),s):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 s=!e,a=t.selectedMonth,n=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(),a===t.selectedMonth&&n===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":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(){J.datepicker._adjustDate(i,-e,"M")},next:function(){J.datepicker._adjustDate(i,+e,"M")},hide:function(){J.datepicker._hideDatepicker()},today:function(){J.datepicker._gotoToday(i)},selectDay:function(){return J.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return J.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return J.datepicker._selectMonthYear(i,this,"Y"),!1}};J(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,a,n,r,o,l,h,c,d,p,u,f,g,m,_,v,k,y,D,b,w,M,C,x,I,N,T,S,P,A,Y=new Date,E=this._daylightSavingAdjust(new Date(Y.getFullYear(),Y.getMonth(),Y.getDate())),F=this._get(t,"isRTL"),O=this._get(t,"showButtonPanel"),H=this._get(t,"hideIfNoPrevNext"),L=this._get(t,"navigationAsDateFormat"),j=this._getNumberOfMonths(t),K=this._get(t,"showCurrentAtPos"),Y=this._get(t,"stepMonths"),W=1!==j[0]||1!==j[1],R=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),U=this._getMinMaxDate(t,"min"),z=this._getMinMaxDate(t,"max"),B=t.drawMonth-K,X=t.drawYear;if(B<0&&(B+=12,X--),z)for(e=this._daylightSavingAdjust(new Date(z.getFullYear(),z.getMonth()-j[0]*j[1]+1,z.getDate())),e=U&&e<U?U:e;this._daylightSavingAdjust(new Date(X,B,1))>e;)--B<0&&(B=11,X--);for(t.drawMonth=B,t.drawYear=X,K=this._get(t,"prevText"),K=L?this.formatDate(K,this._daylightSavingAdjust(new Date(X,B-Y,1)),this._getFormatConfig(t)):K,i=this._canAdjustMonth(t,-1,X,B)?J("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:K}).append(J("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(F?"e":"w")).text(K))[0].outerHTML:H?"":J("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:K}).append(J("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(F?"e":"w")).text(K))[0].outerHTML,K=this._get(t,"nextText"),K=L?this.formatDate(K,this._daylightSavingAdjust(new Date(X,B+Y,1)),this._getFormatConfig(t)):K,s=this._canAdjustMonth(t,1,X,B)?J("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:K}).append(J("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(F?"w":"e")).text(K))[0].outerHTML:H?"":J("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:K}).append(J("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(F?"w":"e")).text(K))[0].outerHTML,Y=this._get(t,"currentText"),H=this._get(t,"gotoCurrent")&&t.currentDay?R:E,Y=L?this.formatDate(Y,H,this._getFormatConfig(t)):Y,K="",t.inline||(K=J("<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),L="",O&&(L=J("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(F?K:"").append(this._isInRange(t,H)?J("<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(F?"":K)[0].outerHTML),a=parseInt(this._get(t,"firstDay"),10),a=isNaN(a)?0:a,n=this._get(t,"showWeek"),r=this._get(t,"dayNames"),o=this._get(t,"dayNamesMin"),l=this._get(t,"monthNames"),h=this._get(t,"monthNamesShort"),c=this._get(t,"beforeShowDay"),d=this._get(t,"showOtherMonths"),p=this._get(t,"selectOtherMonths"),u=this._getDefaultDate(t),f="",m=0;m<j[0];m++){for(_="",this.maxRows=4,v=0;v<j[1];v++){if(k=this._daylightSavingAdjust(new Date(X,B,t.selectedDay)),y=" ui-corner-all",D="",W){if(D+="<div class='ui-datepicker-group",1<j[1])switch(v){case 0:D+=" ui-datepicker-group-first",y=" ui-corner-"+(F?"right":"left");break;case j[1]-1:D+=" ui-datepicker-group-last",y=" ui-corner-"+(F?"left":"right");break;default:D+=" ui-datepicker-group-middle",y=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+y+"'>"+(/all|left/.test(y)&&0===m?F?s:i:"")+(/all|right/.test(y)&&0===m?F?i:s:"")+this._generateMonthYearHeader(t,B,X,U,z,0<m||0<v,l,h)+"</div><table class='ui-datepicker-calendar'><thead><tr>",b=n?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",g=0;g<7;g++)b+="<th scope='col'"+(5<=(g+a+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+r[w=(g+a)%7]+"'>"+o[w]+"</span></th>";for(D+=b+"</tr></thead><tbody>",C=this._getDaysInMonth(X,B),X===t.selectedYear&&B===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,C)),M=(this._getFirstDayOfMonth(X,B)-a+7)%7,C=Math.ceil((M+C)/7),x=W&&this.maxRows>C?this.maxRows:C,this.maxRows=x,I=this._daylightSavingAdjust(new Date(X,B,1-M)),N=0;N<x;N++){for(D+="<tr>",T=n?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(I)+"</td>":"",g=0;g<7;g++)S=c?c.apply(t.input?t.input[0]:null,[I]):[!0,""],A=(P=I.getMonth()!==B)&&!p||!S[0]||U&&I<U||z&&z<I,T+="<td class='"+(5<=(g+a+6)%7?" ui-datepicker-week-end":"")+(P?" ui-datepicker-other-month":"")+(I.getTime()===k.getTime()&&B===t.selectedMonth&&t._keyEvent||u.getTime()===I.getTime()&&u.getTime()===k.getTime()?" "+this._dayOverClass:"")+(A?" "+this._unselectableClass+" ui-state-disabled":"")+(P&&!d?"":" "+S[1]+(I.getTime()===R.getTime()?" "+this._currentClass:"")+(I.getTime()===E.getTime()?" ui-datepicker-today":""))+"'"+(P&&!d||!S[2]?"":" title='"+S[2].replace(/'/g,"'")+"'")+(A?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(P&&!d?" ":A?"<span class='ui-state-default'>"+I.getDate()+"</span>":"<a class='ui-state-default"+(I.getTime()===E.getTime()?" ui-state-highlight":"")+(I.getTime()===R.getTime()?" ui-state-active":"")+(P?" ui-priority-secondary":"")+"' href='#' aria-current='"+(I.getTime()===R.getTime()?"true":"false")+"' data-date='"+I.getDate()+"'>"+I.getDate()+"</a>")+"</td>",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);D+=T+"</tr>"}11<++B&&(B=0,X++),_+=D+="</tbody></table>"+(W?"</div>"+(0<j[0]&&v===j[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}f+=_}return f+=L,t._keyEvent=!1,f}
vendor: 4,561 bytes, line 6
6,_generateMonthYearHeader:function(t,e,i,s,a,n,r,o){var l,h,c,d,p,u,f=this._get(t,"changeMonth"),g=this._get(t,"changeYear"),m=this._get(t,"showMonthAfterYear"),_=this._get(t,"selectMonthLabel"),v=this._get(t,"selectYearLabel"),k="<div class='ui-datepicker-title'>",y="";if(n||!f)y+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=a&&a.getFullYear()===i,y+="<select class='ui-datepicker-month' aria-label='"+_+"' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=s.getMonth())&&(!h||c<=a.getMonth())&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+o[c]+"</option>");y+="</select>"}if(m||(k+=y+(!n&&f&&g?"":" ")),!t.yearshtml)if(t.yearshtml="",n||!g)k+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(r=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=(_=function(t){t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(t)?d:t})(r[0]),u=Math.max(p,_(r[1]||"")),p=s?Math.max(p,s.getFullYear()):p,u=a?Math.min(u,a.getFullYear()):u,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+v+"' data-handler='selectYear' data-event='change'>";p<=u;p++)t.yearshtml+="<option value='"+p+"'"+(p===i?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",k+=t.yearshtml,t.yearshtml=null}return k+=this._get(t,"yearSuffix"),m&&(k+=(!n&&f&&g?"":" ")+y),k+="</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),a=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(s,a))+("D"===i?e:0),e=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,a,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,s){var a=this._getNumberOfMonths(t),a=this._daylightSavingAdjust(new Date(i,s+(e<0?e:a[0]*a[1]),1));return e<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),a=null,n=null,r=this._get(t,"yearRange");return r&&(t=r.split(":"),r=(new Date).getFullYear(),a=parseInt(t[0],10),n=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(a+=r),t[1].match(/[+\-].*/)&&(n+=r)),(!i||e.getTime()>=i.getTime())&&(!s||e.getTime()<=s.getTime())&&(!a||e.getFullYear()>=a)&&(!n||e.getFullYear()<=n)},_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,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),e,this._getFormatConfig(t))}}),J.fn.datepicker=function(t){if(!this.length)return this;J.datepicker.initialized||(J(document).on("mousedown",J.datepicker._checkExternalClick),J.datepicker.initialized=!0),0===J("#"+J.datepicker._mainDivId).length&&J("body").append(J.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]?J.datepicker["_"+t+"Datepicker"].apply(J.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?J.datepicker["_"+t+"Datepicker"].apply(J.datepicker,[this].concat(e)):J.datepicker._attachDatepicker(this,t)})},J.datepicker=new t,J.datepicker.initialized=!1,J.datepicker.uuid=(new Date).getTime(),J.datepicker.version="1.13.2";J.datepicker});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.