1if((t=>{"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(k){function s(t,e){var i,s,n,o=t.nodeName.toLowerCase();return"area"===o?(s=(i=t.parentNode).name,!(!t.href||!s||"map"!==i.nodeName.toLowerCase()||!(n=k("img[usemap='#"+s+"']")[0]))&&a(n)):(/^(input|select|textarea|button|object)$/.test(o)?!t.disabled:"a"===o&&t.href||e)&&a(t)}function a(t){return k.expr.filters.visible(t)&&!k(t).parents().addBack().filter(function(){return"hidden"===k.css(this,"visibility")}).length}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:""},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,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},k.extend(this._defaults,this.regional[""]),this.regional.en=k.extend(!0,{},this.regional[""]),this.regional["en-US"]=k.extend(!0,{},this.regional.en),this.dpDiv=i(k("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function i(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(e,"mouseout",function(){k(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&k(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&k(this).removeClass("ui-datepicker-next-hover")}).delegate(e,"mouseover",o)}function o(){k.datepicker._isDisabledDatepicker((v.inline?v.dpDiv.parent():v.input)[0])||(k(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),k(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&k(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&k(this).addClass("ui-datepicker-next-hover"))}function r(t,e){for(var i in k.extend(t,e),e)null==e[i]&&(t[i]=e[i])}function e(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}k.ui=k.ui||{},k.extend(k.ui,{version:"1.11.4",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}}),k.fn.extend({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=k(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:k(this[0].ownerDocument||document)},uniqueId:(L=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++L)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id
1)&&k(this).removeAttr("id")})}}),k.extend(k.expr[":"],{data:k.expr.createPseudo?k.expr.createPseudo(function(e){return function(t){return!!k.data(t,e)}}):function(t,e,i){return!!k.data(t,i[3])},focusable:function(t){return s(t,!isNaN(k.attr(t,"tabindex")))},tabbable:function(t){var e=k.attr(t,"tabindex"),i=isNaN(e);return(i||0<=e)&&s(t,!i)}}),k("<a>").outerWidth(1).jquery||k.each(["Width","Height"],function(t,i){function s(t,e,i,s){return k.each(n,function(){e-=parseFloat(k.css(t,"padding"+this))||0,i&&(e-=parseFloat(k.css(t,"border"+this+"Width"))||0),s&&(e-=parseFloat(k.css(t,"margin"+this))||0)}),e}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:k.fn.innerWidth,innerHeight:k.fn.innerHeight,outerWidth:k.fn.outerWidth,outerHeight:k.fn.outerHeight};k.fn["inner"+i]=function(t){return void 0===t?a["inner"+i].call(this):this.each(function(){k(this).css(o,s(this,t)+"px")})},k.fn["outer"+i]=function(t,e){return"number"!=typeof t?a["outer"+i].call(this,t):this.each(function(){k(this).css(o,s(this,t,!0,e)+"px")})}}),k.fn.addBack||(k.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),k("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(k.fn.removeData=(l=k.fn.removeData,function(t){return arguments.length?l.call(this,k.camelCase(t)):l.call(this)})),k.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),k.fn.extend({focus:($=k.fn.focus,function(e,i){return"number"==typeof e?this.each(function(){var t=this;setTimeout(function(){k(t).focus(),i&&i.call(t)},e)}):$.apply(this,arguments)}),disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(n+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(t){if(void 0!==t)return this.css("zIndex",t);if(this.length)for(var e,i=k(this[0]);i.length&&i[0]!==document;){if(("absolute"===(e=i.css("position"))||"relative"===e||"fixed"===e)&&(e=parseInt(i.css("zIndex"),10),!isNaN(e))&&0!==e)return e;i=i.parent()}return 0}}),k.ui.plugin={add:function(t,e,i){var s,n=k.ui[t].prototype;for(s in i)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([e,i[s]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}};var n,$,l,L,H,W=0,R=Array.prototype.slice,h=(k.cleanData=(H=k.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)try{(e=k._data(i,"events"))&&e.remove&&k(i).triggerHandler("remove")}catch(t){}H(t)}),k.widget=function(t,i,e){var s,n,o,a,r={},l=t.split(".")[0];return t=t.split(".")[1],s=l+"-"+t,e||(e=i,i=k.Widget),k.expr[":"][s.toLowerCase()]=function(t){return!!k.data(t,s)},k[l]=k[l]||{},n=k[l][t],o=k[l][t]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new o(t,e)},k.extend(o,n,{version:e.version,_proto:k.extend({},e),_childConstructors:[]}),(a=new i).options=k.widget.extend({},a.options),k.each(e,function(e,s){return k.isFunction(s)?void(r[e]=function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=o,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}):void(r[e]=s);function n(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}}),o.prototype=k.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:s}),n?(k.each(n._childConstructors,function(t,e){var i=e.prototype;k.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),k.widget.bridge(t,o),o},k.widget.extend=function(t){for(var e,i,s=R.call(arguments,1),n=0,o=s.length;n<o;n++)for(e in s[n])i=s[n][e],s[n].hasOwnProperty(e)&&void 0!==i&&(t[e]=k.isPlainObject(i)?k.isPlainObject(t[e])?k.widget.extend({},t[e],i):k.widget.extend({},i):i);return t},k.widget.bridge=function(o,e){var a=e.prototype.widgetFullName||o;k.fn[o]=function(i){var t="string"==typeof i,s=R.call(arguments,1
vendor: 4,287 bytes, line 1
1),n=this;return t?this.each(function(){var t,e=k.data(this,a);return"instance"===i?(n=e,!1):e?k.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:k.error("no such method '"+i+"' for "+o+" widget instance"):k.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):(s.length&&(i=k.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=k.data(this,a);t?(t.option(i||{}),t._init&&t._init()):k.data(this,a,new e(i,this))})),n}},k.Widget=function(){},k.Widget._childConstructors=[],k.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,e){e=k(e||this.defaultElement||this)[0],this.element=k(e),this.uuid=W++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=k(),this.hoverable=k(),this.focusable=k(),e!==this&&(k.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=k(e.style?e.ownerDocument:e.document||e),this.window=k(this.document[0].defaultView||this.document[0].parentWindow)),this.options=k.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:k.noop,_getCreateEventData:k.noop,_create:k.noop,_init:k.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(k.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:k.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return k.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=k.widget.extend({},this.options[t]),n=0;i.length-1>n;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];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];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e)&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(n,o,t){var a,r=this;"boolean"!=typeof n&&(t=o,o=n,n=!1),t?(o=a=k(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,a=this.widget()),k.each(t,function(t,e){function i(){return n||!0!==r.options.disabled&&!k(this).hasClass("ui-state-disabled")?("string"==typeof e?r[e]:e).apply(r,arguments):void 0}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||k.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),s=t[1]+r.eventNamespace,t=t[2];t?a.delegate(t,s,i):o.bind(s,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e),this.bindings=k(this.bindings.not(t).get()),this.focusable=k(this.focusable.not(t).get()),this.hoverable=k(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){k(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){k(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){k(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){k(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,e,i){var s,n,o=this.options[t];if(i=i||{},(e=k.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s in n)s in e||(e[s]=n[s]);
vendor: 7,983 bytes, line 1
1return this.element.trigger(e,i),!(k.isFunction(o)&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},k.each({show:"fadeIn",hide:"fadeOut"},function(o,a){k.Widget.prototype["_"+o]=function(e,t,i){var s=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||a:o,n=!k.isEmptyObject(t="number"==typeof(t=t||{})?{duration:t}:t);t.complete=i,t.delay&&e.delay(t.delay),n&&k.effects&&k.effects.effect[s]?e[o](t):s!==o&&e[s]?e[s](t.duration,t.easing,i):e.queue(function(t){k(this)[o](),i&&i.call(e[0]),t()})}}),k.widget,!1);function j(t,e,i){return[parseFloat(t[0])*(X.test(t[0])?e/100:1),parseFloat(t[1])*(X.test(t[1])?i/100:1)]}function C(t,e){return parseInt(k.css(t,e),10)||0}k(document).mouseup(function(){h=!1}),k.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(t){return!0===k.data(t.target,e.widgetName+".preventClickEvent")?(k.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){var e,i,s;if(!h)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),i=1===(this._mouseDownEvent=t).which,s=!("string"!=typeof(e=this).options.cancel||!t.target.nodeName)&&k(t.target).closest(this.options.cancel).length,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===k.data(t.target,this.widgetName+".preventClickEvent")&&k.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),h=!0)),!0},_mouseMove:function(t){if(this._mouseMoved){if(k.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)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){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&k.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),h=!1},_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}}),k.ui=k.ui||{};var c,F,x=Math.max,T=Math.abs,B=Math.round,U=/left|center|right/,q=/top|center|bottom/,Y=/[\+\-]\d+(\.[\d]+)?%?/,V=/^\w+/,X=/%$/,K=k.fn.position;k.position={scrollbarWidth:function(){var t,e,i;return void 0!==c?c:(i=(e=k("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>")).children()[0],k("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),c=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?k.position.scrollbarWidth():0,height:e?k.position.scrollbarWidth():0}},getWithinInfo:function(t){var t=k(t||window),e=k.isWindow(t[0]),i=!!t[0]&&9===t[0].nodeType;return{element:t,isWindow:e,isDocument:i,offset:t.offset()||{left:0,top:0},scrollLeft:t.scrollLeft(),scrollTop:t.scrollTop(),width:e||i?t.width():t.outerWidth(),height:e||i?t.height():t.outerHeight()}}},k.fn.position=function(d){if(!d||!d.of)return K.apply(this,arguments);d=k.extend({},d);var u,p,f,g,m,t,v=k(d.of),y=k.position.getWithinInfo(d.within),b=k.position.getScrollInfo(y),_=(d.collision||"flip").split(" "),w={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:k.isWindow(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()};return v[0].preventDefault&&(d.at="left top"),p=e.width,f=e.height,m=k.extend({},g=e.offset),k.each(["my","at"],function(){var t,e,i=(d[this]||"").split(" ");(i=1===i.length?U.test(i[0])?i.concat(["center"]):q.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=U.test(i[0])?i[0]:"center",i[1]=q.test(i[1])?i[1]:"center",t=Y.exec(i[0]),e=Y.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],d[this]=[V.exec(i[0])[0],V.exec(i[1])[0]]}),1===_.length&&(_[1]=_[0]),"right"===d.at[0]?m.left+=p:"center"===d.at[0]&&(m.left+=p/2),"bottom"===d.at[1]?m.top+=f:"center"===d.at[1]&&(m.top+=f/2),u=j(w.at,p,f),m.left+=u[0],m.top+=u[1],this.each(function(){var i,t,a=k(this),r=a.outerWidth(),l=a.outerHeight(),e=C(this,"marginLeft"),s=C(this,"marginTop"),n=r+e+C(this,"marginRight")+b.width,o=l+s+C(this,"marginBottom")+b.height,h=k.extend({},m),c=j(w.my,a.outerWidth(),a.outerHeight());"right"===d.my[0]?h.left-=r:"center"===d.my[0]&&(h.left-=r/2),"bottom"===d.my[1]?h.top-=l:"center"===d.my[1]&&(h.top-=l/2),h.left+=c[0],h.top+=c[1],F||(h.left=B(h.left),h.top=B(h.top)),i={marginLeft:e,marginTop:s},k.each(["left","top"],function(t,e){k.ui.position[_[t]]&&k.ui.position[_[t]][e](h,{targetWidth:p,targetHeight:f,elemWidth:r,elemHeight:l,collisionPosition:i,collisionWidth:n,collisionHeight:o,offset:[u[0]+c[0],u[1]+c[1]],my:d.my,at:d.at,within:y,elem:a})}),d.using&&(t=function(t){var e=g.left-h.left,i=e+p-r,s=g.top-h.top,n=s+f-l,o={target:{element:v,left:g.left,top:g.top,width:p,height:f},element:{element:a,left:h.left,top:h.top,width:r,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:n<0?"top":0<s?"bottom":"middle"};p<r&&p>T(e+i)&&(o.horizontal="center"),f<l&&f>T(s+n)&&(o.vertical="middle"),o.important=x(T(e),T(i))>x(T(s),T(n))?"horizontal":"vertical",d.using.call(this,t,o)}),a.offset(k.extend(h,{using:t}))})},k.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,s=s.width,o=t.left-e.collisionPosition.marginLeft,a=n-o,r=o+e.collisionWidth-s-n;s<e.collisionWidth?0<a&&r<=0?(i=t.left+a+e.collisionWidth-s-n,t.left+=a-i):t.left=!(0<r&&a<=0)&&r<a?n+s-e.collisionWidth:n:0<a?t.left+=a:0<r?t.left-=r:t.left=x(t.left-o,t.left)},top:function(t,e){var i,s=e.within,s=s.isWindow?s.scrollTop:s.offset.top,n=e.within.height,o=t.top-e.collisionPosition.marginTop,a=s-o,r=o+e.collisionHeight-n-s;n<e.collisionHeight?0<a&&r<=0?(i=t.top+a+e.collisionHeight-n-s,t.top+=a-i):t.top=!(0<r&&a<=0)&&r<a?s+n-e.collisionHeight:s:0<a?t.top+=a:0<r?t.top-=r:t.top=x(t.top-o,t.top)}},flip:{left:function(t,e){var i=e.within,s=i.offset.left+i.scrollLeft,n=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,o=t.left-e.collisionPosition.marginLeft,a=o-i,o=o+e.collisionWidth-n-i,r="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,l="left"
vendor: 16,559 bytes, line 1
1===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];a<0?((n=t.left+r+l+h+e.collisionWidth-n-s)<0||T(a)>n)&&(t.left+=r+l+h):0<o&&(0<(s=t.left-e.collisionPosition.marginLeft+r+l+h-i)||o>T(s))&&(t.left+=r+l+h)},top:function(t,e){var i=e.within,s=i.offset.top+i.scrollTop,n=i.height,i=i.isWindow?i.scrollTop:i.offset.top,o=t.top-e.collisionPosition.marginTop,a=o-i,o=o+e.collisionHeight-n-i,r="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,l="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];a<0?((n=t.top+r+l+h+e.collisionHeight-n-s)<0||T(a)>n)&&(t.top+=r+l+h):0<o&&(0<(s=t.top-e.collisionPosition.marginTop+r+l+h-i)||o>T(s))&&(t.top+=r+l+h)}},flipfit:{left:function(){k.ui.position.flip.left.apply(this,arguments),k.ui.position.fit.left.apply(this,arguments)},top:function(){k.ui.position.flip.top.apply(this,arguments),k.ui.position.fit.top.apply(this,arguments)}}};var d,u=document.getElementsByTagName("body")[0],p=document.createElement("div"),f=document.createElement(u?"div":"body"),g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(d in u&&k.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"}),g)f.style[d]=g[d];f.appendChild(p),(u=u||document.documentElement).insertBefore(f,u.firstChild),p.style.cssText="position: absolute; left: 10.7432222px;",p=k(p).offset().left,F=10<p&&p<11,f.innerHTML="",u.removeChild(f),k.ui.position,k.widget("ui.accordion",{version:"1.11.4",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=k(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():k()}},_createIcons:function(){var t=this.options.icons;t&&(k("<span>").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e)&&this._createIcons(),void("disabled"===t&&(this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e))))},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=k.ui.keyCode,i=this.headers.length,s=this.headers.index(t.target),n=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:n=this.headers[(s+1)%i];break;case e.LEFT:case e.UP:n=this.headers[(s-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:n=this.headers[0];break;case e.END:n=this.headers[i-1]}n&&(k(t.target).attr("tabIndex",-1),k(n).attr("tabIndex",0),n.focus(),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===k.ui.keyCode.UP&&t.ctrlKey&&k(t.currentTarget).prev().focus()},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=k()):!1===t.active?this._activate(0):this.active.length&&!k.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=k()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var i,t=this.options,e=t.heightStyle,s=this.element.parent();this.active=this._findActive(t.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var t=k(this),e=t.uniqueId().attr("id"),i=t.next(),s=i.uniqueId().attr("id");t.attr("aria-controls",s),i.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(i=s.height(),this.element.siblings(":visible").each(function(){var t=k(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=k(this).outerHeight(!0)}),this.headers.next().each(function(){k(this).height(Math.max(0,i-k(this).innerHeight()+k(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){i=Math.max(i,k(this).css("height","").height())}).height(i))},_activate:function(t){t=this._findActive(t)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:k.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):k()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&k.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,i=this.active,s=k(t.currentTarget),n=s[0]===i[0],o=n&&e.collapsible,a=o?k():s.next(),r=i.next(),r={oldHeader:i,oldPanel:r,newHeader:o?k():s,newPanel:a};t.preventDefault(),n&&!e.collapsible||!1===this._trigger("beforeActivate",t,r)||(e.active=!o&&this.headers.index(s),this.active=n?k():s,this._toggle(r),i.removeClass("ui-accordion-header-active ui-state-active"),e.icons&&i.children(".ui-accordion-header-icon").removeClass(e.icons.activeHeader).addClass(e.icons.header),n)||(s.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),e.icons&&s.children(".ui-accordion-header-icon").removeClass(e.icons.header).addClass(e.icons.activeHeader),s.next().addClass("ui-accordion-content-active"))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(k(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){function s(){o._toggleComplete(e)}var n,o=this,a=0,r=t.css("box-sizing"),l=t.length&&(!i.length||t.index()<i.index()),h=this.options.animate||{},l=l&&h.down||h,c=(c="string"==typeof l?l:c)||l.easing||h.easing,d=(d="number"==typeof l?l:d)||l.duration||h.duration;return i.length?t.length?(n=t.show().outerHeight(),i.animate(this.hideProps,{duration:d,easing:c,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:d,easing:c,complete:s,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===r&&(a+=e.now):"content"!==o.options.heightStyle&&(e.now=Math.round(n-i.outerHeight()-a),a=0)}})):i.animate(this.hideProps,d,c,s):t.animate(this.showProps,d,c,s)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),k.widget("ui.menu",{version:"1.11.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(t){var e=k(t.target);!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&k(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":function(t){var e;this.previousFilter||((e=k(t.currentTarget)).siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(t,e))},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(t){this._delay(function(){k.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=k(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case k.ui.keyCode.PAGE_UP:this.previousPage(t);break;case k.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case k.ui.keyCode.HOME:this._move("first","first",t);break;case k.ui.keyCode.END:this._move("last","last",t);break;case k.ui.keyCode.UP:this.previous(t);break;case k.ui.keyCode.DOWN:this.next(t);break;case k.ui.keyCode.LEFT:this.collapse(t);break;case k.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case k.ui.keyCode.ENTER:case k.ui.keyCode.SPACE:this._activate(t);break;case k.ui.keyCode.ESCAPE:this.collapse(t);break;default:n=!1,e=this.previousFilter||"",i=String.fromCharCode(t.keyCode),s=!1,clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(t):this.select(t))},refresh:function(){var e=this,s=this.options.icons.submenu,t=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),t.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=k(this),e=t.parent(),i=k("<span>").addClass("ui-menu-icon ui-icon "+s).data("ui-menu-submenu-carat",!0);e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),(t=t.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=k(this);e._isDivider(t)&&t.addClass("ui-widget-content ui-menu-divider")}),t.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!k.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(e=parseFloat(k.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(k.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-e-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s<e+t&&this.activeMenu.scrollTop(i+e-s+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=k.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:k(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this.activeMenu=t},this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
1se").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(t){return!k(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;(s=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0):s)&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(t){var e,i,s;return this.active?void(this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(e=k(this)).offset().top-i-s<0}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(t)},previousPage:function(t){var e,i,s;return this.active?void(this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=k(this)).offset().top-i+s}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items).first()))):void this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||k(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(k.trim(k(this).text()))})}}),k.widget("ui.autocomplete",{version:"1.11.4",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this.element.prop("isContentEditable"),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=k.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault();else if(!s){var e=k.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=k("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];k(t.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(t){t.target===e.element[0]||t.target===i||k.contains(i,t.target)||e.close()})})},menufocus:function(t,e){var i;return this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent)&&/^mouse/.test(t.originalEvent.type)?(this.menu.blur(),void this.document.one("mousemove",function(){k(t.target).trigger(t.originalEvent)})):(i=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:i}
vendor: 6,775 bytes, line 1
1)&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(i.value),void((e=e.item.attr("aria-label")||i.value)&&k.trim(e).length&&(this.liveRegion.children().hide(),k("<div>").text(e).appendTo(this.liveRegion))))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=k("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var t=this.options.appendTo;return t=(t=(t=t&&(t.jquery||t.nodeType?k(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front")).length?t:this.document[0].body},_initSource:function(){var i,s,n=this;k.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(k.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=k.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return k.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:k.map(t,function(t){return"string"==typeof t?{label:t,value:t}:k.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(k.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var s=this;k.each(t,function(t,e){s._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return k("<li>").text(e.label).appendTo(t)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())}}),k.extend(k.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=RegExp(k.ui.autocomplete.escapeRegex(e),"i");return k.grep(t,function(t){return i.test(t.label||t.value||t)})}}),k.widget("ui.autocomplete",k.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),k("<div>").text(t).appendTo(this.liveRegion))}}),k.ui.autocomplete;function G(){var t=k(this);setTimeout(function(){t.find(":ui-button").button("refresh")},1)}function Q(t){var e=t.name,i=t.form,s=k([]);return e&&(e=e.replace(/'/g,"\\'"),s=i?k(i).find("[name='"+e+"'][type=radio]"):k("[name='"+e+"'][type=radio]",t.ownerDocument).filter(function(){return!this.form})),s}var m,v,J="ui-button ui-widget ui-state-default ui-corner-all",Z="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only";function tt(t,e,i){return e<=t&&t<e+i}k.widget("ui.button",{version:"1.11.4",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,G),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var e=this,i=this.options,t="checkbox"===this.type||"radio"===this.type,s=t?"":"ui-state-active";null===i.label&&(i.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(J).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){i.disabled||this===m&&k(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){i.disabled||k(this).removeClass(s)}).bind("click"+this.eventNamespace,function(t){i.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}
1),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),t&&this.element.bind("change"+this.eventNamespace,function(){e.refresh()}),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return!i.disabled&&void 0}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(i.disabled)return!1;k(this).addClass("ui-state-active"),e.buttonElement.attr("aria-pressed","true");var t=e.element[0];Q(t).not(t).map(function(){return k(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return!i.disabled&&(k(this).addClass("ui-state-active"),m=this,void e.document.one("mouseup",function(){m=null}))}).bind("mouseup"+this.eventNamespace,function(){return!i.disabled&&void k(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(t){return!i.disabled&&void(t.keyCode!==k.ui.keyCode.SPACE&&t.keyCode!==k.ui.keyCode.ENTER||k(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){k(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(t){t.keyCode===k.ui.keyCode.SPACE&&k(this).click()})),this._setOption("disabled",i.disabled),this._resetButton()},_determineButtonType:function(){var t,e;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type?(e=this.element.parents().last(),t="label[for='"+this.element.attr("id")+"']",this.buttonElement=e.find(t),this.buttonElement.length||(e=(e.length?e:this.element).siblings(),this.buttonElement=e.filter(t),this.buttonElement.length)||(this.buttonElement=e.find(t)),this.element.addClass("ui-helper-hidden-accessible"),(e=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",e)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(J+" ui-state-active "+Z).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?(this.widget().toggleClass("ui-state-disabled",!!e),this.element.prop("disabled",!!e),void(e&&("checkbox"===this.type||"radio"===this.type?this.buttonElement.removeClass("ui-state-focus"):this.buttonElement.removeClass("ui-state-focus ui-state-active")))):void this._resetButton()},refresh:function(){var t=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOption("disabled",t),"radio"===this.type?Q(this.element[0]).each(function(){k(this).is(":checked")?k(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):k(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){var t,e,i,s,n;
1"input"===this.type?this.options.label&&this.element.val(this.options.label):(t=this.buttonElement.removeClass(Z),e=k("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(t.empty()).text(),s=(i=this.options.icons).primary&&i.secondary,n=[],i.primary||i.secondary?(this.options.text&&n.push("ui-button-text-icon"+(s?"s":i.primary?"-primary":"-secondary")),i.primary&&t.prepend("<span class='ui-button-icon-primary ui-icon "+i.primary+"'></span>"),i.secondary&&t.append("<span class='ui-button-icon-secondary ui-icon "+i.secondary+"'></span>"),this.options.text||(n.push(s?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle)||t.attr("title",k.trim(e))):n.push("ui-button-text-only"),t.addClass(n.join(" ")))}}),k.widget("ui.buttonset",{version:"1.11.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&&this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var t="rtl"===this.element.css("direction"),e=this.element.find(this.options.items),i=e.filter(":ui-button");e.not(":ui-button").button(),i.button("refresh"),this.buttons=e.map(function(){return k(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(t?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(t?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return k(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}}),k.ui.button,k.extend(k.ui,{datepicker:{version:"1.11.4"}}),k.extend(t.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return r(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,s=t.nodeName.toLowerCase(),n="div"===s||"span"===s;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(k(t),n)).settings=k.extend({},e||{}),"input"===s?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?i(k("<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=k(t);e.append=k([]),e.trigger=k([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(e),k.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,s=this._get(e,"appendText"),n=this._get(e,"isRTL");e.append&&e.append.remove(),s&&(e.append=k("<span class='"+this._appendClass+"'>"+s+"</span>"),t[n?"before":"after"](e.append)),t.unbind("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(s=this._get(e,"showOn"))&&"both"!==s||t.focu
vendor: 26,721 bytes, line 1
1s(this._showDatepicker),"button"!==s&&"both"!==s||(s=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),e.trigger=k(this._get(e,"buttonImageOnly")?k("<img/>").addClass(this._triggerClass).attr({src:i,alt:s,title:s}):k("<button type='button'></button>").addClass(this._triggerClass).html(i?k("<img/>").attr({src:i,alt:s,title:s}):s)),t[n?"before":"after"](e.trigger),e.trigger.click(function(){return k.datepicker._datepickerShowing&&k.datepicker._lastInput===t[0]?k.datepicker._hideDatepicker():(k.datepicker._datepickerShowing&&k.datepicker._lastInput!==t[0]&&k.datepicker._hideDatepicker(),k.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,s,n,o,a;this._get(t,"autoSize")&&!t.inline&&(o=new Date(2009,11,20),(a=this._get(t,"dateFormat")).match(/[DM]/)&&(o.setMonth((e=function(t){for(n=s=i=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,s=n);return s})(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length))},_inlineDatepicker:function(t,e){var i=k(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),k.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,n){var o,a=this._dialogInst;return a||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=k("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),k("body").append(this._dialogInput),(a=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},k.data(this._dialogInput[0],"datepicker",a)),r(a.settings,s||{}),e=e&&e.constructor===Date?this._formatDate(a,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(o=document.documentElement.clientWidth,s=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,n=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+e,s/2-150+n]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),k.blockUI&&k.blockUI(this.dpDiv),k.data(this._dialogInput[0],"datepicker",a),this},_destroyDatepicker:function(t){var e,i=k(t),s=k.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),k.removeData(t,"datepicker"),"input"===e?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),v===s)&&(v=null)},_enableDatepicker:function(e){var t,i=k(e),s=k.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||((s=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=k.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=k(e),s=k.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||((s=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=k.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(t)for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return k.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var s,n,o=this._getInst(t);return 2===arguments.length&&"string"==typeof e?"defaults"===e?k.extend({},k.datepicker._defaults):o?"all"===e?k.extend({},o.settings):this._get(o,e):null:(s=e||{},"string"==typeof e&&((s={})[e]=i),void(o&&(this._curInst===o&&this._hideDatepicker(),e=this._getDateDatepicker(t,!0),i=this._getMinMaxDate(o,"min"),n=this._getMinMaxDate(o,"max"),r(o.settings,s),null!==i&&void 0!==s.dateFormat&&void 0===s.minDate&&(o.settings.minDate=this._formatDate(o,i)),null!==n&&void 0!==s.dateFormat&&void 0===s.maxDate&&(o.settings.maxDate=this._formatDate(o,n)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(k(t),o),this._autoSize(o),this._setDate(o,e),this._updateAlternate(o),this._updateDatepicker(o))))},_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=k.datepicker._getInst(t.target),n=!0,o=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,k.datepicker._datepickerShowing)switch(t.keyCode){case 9:k.datepicker._hideDatepicker(),n=!1;break;case 13:return(i=k("td."+k.datepicker._dayOverClass+":not(."+k.datepicker._currentClass+")",s.dpDiv))[0]&&k.datepicker._selectDay(t.target,s.selectedMonth,s.selectedYear,i[0]),(i=k.datepicker._get(s,"onSelect"))?(e=k.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[e,s])):k.datepicker._hideDatepicker(),!1;case 27:k.datepicker._hideDatepicker();break;case 33:k.datepicker._adjustDate(t.target,t.ctrlKey?-k.datepicker._get(s,"stepBigMonths"):-k.datepicker._get(s,"stepMonths"),"M");break;case 34:k.datepicker._adjustDate(t.target,t.ctrlKey?+k.datepicker._get(s,"stepBigMonths"):+k.datepicker._get(s,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&k.datepicker._clearDate(t.target),n=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&k.datepicker._gotoToday(t.target),n=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&k.datepicker._adjustDate(t.target,o?1:-1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&k.datepicker._adjustDate(t.target,t.ctrlKey?-k.datepicker._get(s,"stepBigMonths"):-k.datepicker._get(s,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&k.datepicker._adjustDate(t.target,-7,"D"),n=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&k.datepicker._adjustDate(t.target,o?-1:1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&k.datepicker._adjustDate(t.target,t.ctrlKey?+k.datepicker._get(s,"stepBigMonths"):+k.datepicker._get(s,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&k.datepicker._adjustDate(t.target,7,"D"),n=t.ctrlKey||t.metaKey;break;default:n=!1}else 36===t.keyCode&&t.ctrlKey?k.datepicker._showDatepicker(this):n=!1;n&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=k.datepicker._getInst(t.target);return k.datepicker._get(i,"constrainInput")?(i=k.datepicker._possibleChars(k.datepicker._get(i,"dateFormat")),e=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||e<" "||!i||-1<i.indexOf(e)):void 0},_doKeyUp:function(t){t=k.datepicker._getInst(t.target);if(t.input.val()!==t.lastVal)try{k.datepicker.parseDate(k.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,k.datepicker._getFormatConfig(t))&&(k.datepicker._setDateFromField(t),k.datepicker._updateAlternate(t),k.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,i,s,n;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=k("input",t.parentNode)[0]),k.datepicker._isDisabledDatepicker(t)||k.datepicker._lastInput===t||(n=k.datepicker._getInst(t),k.datepicker._curInst&&k.datepicker._curInst!==n&&(k.datepicker._curInst.dpDiv.stop(!0,!0),n)&&k.datepicker._datepickerShowing&&k.datepicker._hideDatepicker(k.datepicker._curInst.input[0]),!1!==(i=(i=k.datepicker._get(n,"beforeShow"))?i.apply(t,[t,n]):{})&&(r(n.settings,i),n.lastVal=null,k.datepicker._lastInput=t,k.datepicker._setDateFromField(n),k.datepicker._inDialog&&(t.value=""),k.datepicker._pos||(k.datepicker._pos=k.datepicker._findPos(t),k.datepicker._pos[1]+=t.offsetHeight),e=!1,k(t).parents().each(function(){return!(e|="fixed"===k(this).css("position"))}),i={left:k.datepicker._pos[0],top:k.datepicker._pos[1]},k.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),k.datepicker._updateDatepicker(n),i=k.datepicker._checkOffset(n,i,e),n.dpDiv.css({position:k.datepicker._inDialog&&k.blockUI?"static":e?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"}),n.inline||(i=k.datepicker._get(n,"showAnim"),s=k.datepicker._get(n,"duration"),n.dpDiv.css("z-index",(t=>{for(var e;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(e=parseInt(t.css("zIndex"),10),!isNaN(e))&&0!==e)return e;t=t.parent()}return 0})(k(t))+1),k.datepicker._datepickerShowing=!0,k.effects&&k.effects.effect[i]?n.dpDiv.show(i,k.datepicker._get(n,"showOptions"),s):n.dpDiv[i||"show"](i?s:null),k.datepicker._shouldFocusInput(n)&&n.input.focus(),k.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,(v=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),s=i[1],n=t.dpDiv.find("."+this._dayOverClass+" a");0<n.length&&o.apply(n.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===k.datepicker._curInst&&k.datepicker._datepickerShowing&&k.datepicker._shouldFocusInput(t)&&t.input.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))},_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(),n=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,r=document.documentElement.clientWidth+(i?0:k(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:k(document).scrollTop());return e.left-=this._get(t,"isRTL")?s-o:0,e.left-=i&&e.left===t.input.offset().left?k(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+a?k(document).scrollTop():0,e.left-=Math.min(e.left,r<e.left+s&&s<r?Math.abs(e.left+s-r):0),e.top-=Math.min(e.top,l<e.top+n&&n<l?Math.abs(n+a):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||k.expr.filters.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=k(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,s=this._curInst;!s||t&&s!==k.data(t,"datepicker")||this._datepickerShowing&&(t=this._get(s,"showAnim"),i=this._get(s,"duration"),e=function(){k.datepicker._tidyDialog(s)},k.effects&&(k.effects.effect[t]||k.effects[t])?s.dpDiv.hide(t,k.datepicker._get(s,"showOptions"),i,e):s.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?i:null,e),t||e(),this._datepickerShowing=!1,(i=this._get(s,"onClose"))&&i.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"}),k.blockUI)&&(k.unblockUI(),k("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;k.datepicker._curInst&&(t=k(t.target),e=k.datepicker._getInst(t[0]),!(t[0].id===k.datepicker._mainDivId||0!==t.parents("#"+k.datepicker._mainDivId).length||t.hasClass(k.datepicker.markerClassName)||t.closest("."+k.datepicker._triggerClass).length||!k.datepicker._datepickerShowing||k.datepicker._inDialog&&k.blockUI)||t.hasClass(k.datepicker.markerClassName)&&k.datepicker._curInst!==e)&&k.datepicker._hideDatepicker()},_adjustDate:function(t,e,i){var t=k(t),s=this._getInst(t[0]);this._isDisabledDatepicker(t[0])||(this._adjustInstDate(s,e+("M"===i?this._get(s,"showCurrentAtPos"):0),i),this._updateDatepicker(s))},_gotoToday:function(t){var e,t=k(t),i=this._getInst(t[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(e=new Date,i.selectedDay=e.getDate(),i.drawMonth=i.selectedMonth=e.getMonth(),i.drawYear=i.selectedYear=e.getFullYear()),this._notifyChange(i),this._adjustDate(t)},_selectMonthYear:function(t,e,i){var t=k(t),s=this._getInst(t[0]);s["selected"+("M"===i?"Month":"Year")]=s["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(t)},_selectDay:function(t,e,i,s){var n=k(t);k(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0])||((n=this._getInst(n[0])).selectedDay=n.currentDay=k("a",s).html(),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=k(t);this._selectDate(t,"")},_selectDate:function(t,e){var i,t=k(t),t=this._getInst(t[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.focus(),this._lastInput=null)},_updateAlternate:function(t){var e,i,s,n=this._get(t,"altField");n&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),s=this.formatDate(e,i,this._getFormatConfig(t)),k(n).each(function(){k(this).val(s)}))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]},iso8601Week:function(t){var e,t=new Date(t.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),e=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((e-t)/864e5)/7)+1},parseDate:function(e,n,t){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?""+n:n+""))return null;for(var i,s,o=0,a=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,a="string"!=typeof a?a:(new Date).getFullYear()%100+parseInt(a,10),r=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,l=(t?t.dayNames:null)||this._defaults.dayNames,h=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,c=(t?t.monthNames:null)||this._defaults.monthNames,d=-1,u=-1,p=-1,f=-1,g=!1,m=function(t){t=e.length>_+1&&e.charAt(_+1)===t;return t&&_++,t},v=function(t){var e=m(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,t=RegExp("^\\d{"+("y"===t?e:1)+","+e+"}"),e=n.substring(o).match(t);if(e)return o+=e[0].length,parseInt(e[0],10);throw"Missing number at position "+o},y=function(t,e,i){var s=-1,t=k.map(m(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(k.each(t,function(t,e){var i=e[1];return n.substr(o,i.length).toLowerCase()===i.toLowerCase()?(s=e[0],o+=i.length,!1):void 0}),-1!==s)return s+1;throw"Unknown name at position "+o},b=function(){if(n.charAt(o)!==e.charAt(_))throw"Unexpected literal at position "+o;o++},_=0;e.length>_;_++)if(g)"'"!==e.charAt(_)||m("'")?b():g=!1;else switch(e.charAt(_)){case"d":p=v("d");break;case"D":y("D",r,l);break;case"o":f=v("o");break;case"m":u=v("m");break;case"M":u=y("M",h,c);break;case"y":d=v("y");break;case"@":d=(s=new Date(v("@"))).getFullYear(),u=s.getMonth()+1,p=s.getDate();break;case"!":d=(s=new Date((v("!")-this._ticksTo1970)/1e4)).getFullYear(),u=s.getMonth()+1,p=s.getDate();break;case"'":m("'")?b():g=!0;break;default:b()}if(n.length>o&&(t=n.substr(o),!/^\s+/.test(t)))throw"Extra/unparsed characters found in date: "+t;if(-1===d?d=(new Date).getFullYear():d<100&&(d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=a?0:-100)),-1<f)for(u=1,p=f;!(p<=(i=this._getDaysInMonth(d,u-1)));)u++,p-=i;if((s=this._daylightSavingAdjust(new Date(d,u-1,p))).getFullYear()!==d||s.getMonth()+1!==u||s.getDate()!==p)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:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,t,i){if(!t)return"";function s(t,e,i){var s=""+e;if(c(t))for(;i>s.length;)s="0"+s;return s}function n(t,e,i,s){return(c(t)?s:i)[e]}var o,a=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(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=e.length>o+1&&e.charAt(o+1)===t;return t&&o++,t},d="",u=!1;if(t)for(o=0;e.length>o;o++)if(u)"'"!==e.charAt(o)||c("'")?d+=e.charAt(o):u=!1;else switch(e.charAt(o)){case"d":d+=s("d",t.getDate(),2);break;case"D":d+=n("D",t.getDay(),a,r);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+=n("M",t.getMonth(),l,h);break;case"y":d+=c("y")?t.getFullYear():(t.getYear()%100<10?"0":"")+t.getYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":c("'")?d+="'":u=!0;break;default:d+=e.charAt(o)}return d},_possibleChars:function(e){for(var t="",i=!1,s=function(t){t=e.length>n+1&&e.charAt(n+1)===t;return t&&n++,t},n=0;e.length>n;n++)if(i)"'"!==e.charAt(n)||s("'")?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"'":s("'")?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"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,a=this._getFormatConfig(t);try{o=this.parseDate(i,s,a)||n}catch(t){s=e?"":s}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=s?o.getDate():0,t.currentMonth=s?o.getMonth():0,t.currentYear=s?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(r,t,e){var i,s=null==t||""===t?e:"string"==typeof t?(t=>{try{return k.datepicker.parseDate(k.datepicker._get(r,"dateFormat"),t,k.datepicker._getFormatConfig(r))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?k.datepicker._getDate(r):null)||new Date,i=e.getFullYear(),s=e.getMonth(),n=e.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=o.exec(t);a;){switch(a[2]||"d"){case"d":case"D":n+=parseInt(a[1],10);break;case"w":case"W":n+=7*parseInt(a[1],10);break;case"m":case"M":s+=parseInt(a[1],10),n=Math.min(n,k.datepicker._getDaysInMonth(i,s));break;case"y":case"Y":i+=parseInt(a[1],10),n=Math.min(n,k.datepicker._getDaysInMonth(i,s))}a=o.exec(t)}return new Date(i,s,n)})(t):"number"==typeof t?isNaN(t)?e:(s=t,(i=new Date).setDate(i.getDate()+s),i):new Date(t.getTime());return(s=s&&"Invalid Date"==""+s?e:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,o=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&&o===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(){k.datepicker._adjustDate(i,-e,"M")},next:function(){k.datepicker._adjustDate(i,+e,"M")},hide:function(){k.datepicker._hideDatepicker()},today:function(){k.datepicker._gotoToday(i)},selectDay:function(){return k.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return k.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return k.datepicker._selectMonthYear(i,this,"Y"),!1}};k(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,o,$,L,H,W,a,r,R,l,h,c,d,u,p,f,g,m,v,j,y,b,_,w,F,B,k,C,x,T=new Date,U=this._daylightSavingAdjust(new Date(T.getFullYear(),T.getMonth(),T.getDate())),S=this._get(t,"isRTL"),T=this._get(t,"showButtonPanel"),D=this._get(t,"hideIfNoPrevNext"),E=this._get(t,"navigationAsDateFormat"),I=this._getNumberOfMonths(t),P=this._get(t,"showCurrentAtPos"),A=this._get(t,"stepMonths"),q=1!==I[0]||1!==I[1],Y=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),M=this._getMinMaxDate(t,"min"),z=this._getMinMaxDate(t,"max"),N=t.drawMonth-P,O=t.drawYear;if(N<0&&(N+=12,O--),z)for(e=this._daylightSavingAdjust(new Date(z.getFullYear(),z.getMonth()-I[0]*I[1]+1,z.getDate())),e=M&&e<M?M:e;this._daylightSavingAdjust(new Date(O,N,1))>e;)--N<0&&(N=11,O--);for(t.drawMonth=N,t.drawYear=O,P=this._get(t,"prevText"),P=E?this.formatDate(P,this._daylightSavingAdjust(new Date(O,N-A,1)),this._getFormatConfig(t)):P,i=this._canAdjustMonth(t,-1,O,N)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+P+"'><span class='ui-icon ui-icon-circle-triangle-"+(S?"e":"w")+"'>"+P+"</span></a>":D?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+P+"'><span class='ui-icon ui-icon-circle-triangle-"+(S?"e":"w")+"'>"+P+"</span></a>",P=this._get(t,"nextText"),P=E?this.formatDate(P,this._daylightSavingAdjust(new Date(O,N+A,1)),this._getFormatConfig(t)):P,s=this._canAdjustMonth(t,1,O,N)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+P+"'><span class='ui-icon ui-icon-circle-triangle-"+(S?"w":"e")+"'>"+P+"</span></a>":D?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+P+"'><span class='ui-icon ui-icon-circle-triangle-"+(S?"w":"e")+"'>"+P+"</span></a>",A=this._get(t,"currentText"),D=this._get(t,"gotoCurrent")&&t.currentDay?Y:U,A=E?this.formatDate(A,D,this._getFormatConfig(t)):A,P=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",E=T?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(S?P:"")+(this._isInRange(t,D)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+A+"</button>":"")+(S?"":P)+"</div>":"",n=parseInt(this._get(t,"firstDay"),10),n=isNaN(n)?0:n,o=this._get(t,"showWeek"),$=this._get(t,"dayNames"),L=this._get(t,"dayNamesMin"),H=this._get(t,"monthNames"),W=this._get(t,"monthNamesShort"),a=this._get(t,"beforeShowDay"),r=this._get(t,"showOtherMonths"),R=this._get(t,"selectOtherMonths"),l=this._getDefaultDate(t),h="",d=0;I[0]>d;d++){for(u="",this.maxRows=4,p=0;I[1]>p;p++){if(f=this._daylightSavingAdjust(new Date(O,N,t.selectedDay)),g=" ui-corner-all",m="",q){if(m+="<div class='ui-datepicker-group",1<I[1])switch(p){case 0:m+=" ui-datepicker-group-first",g=" ui-corner-"+(S?"right":"left");break;case I[1]-1:m+=" ui-datepicker-group-last",g=" ui-corner-"+(S?"left":"right");break;default:m+=" ui-datepicker-group-middle",g=""}m+="'>"}for(m+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+g+"'>"+(/all|left/.test(g)&&0===d?S?s:i:"")+(/all|right/.test(g)&&0===d?S?i:s:"")+this._generateMonthYearHeader(t,N,O,M,z,0<d||0<p,H,W)+"</div><table class='ui-datepicker-calendar'><thead><tr>",v=o?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",c=0;c<7;c++)v+="<th scope='col'"+(5<=(c+n+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+$[j=(c+n)%7]+"'>"+L[j]+"</span></th>";for(m+=v+"</tr></thead><tbody>",b=this._getDaysInMonth(O,N),O===t.selectedYear&&N===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,b)),y=(this._getFirstDayOfMonth(O,N)-n+7)%7,b=Math.ceil((y+b)/7),_=q&&this.maxRows>b?this.maxRows:b,this.maxRows=_,w=this._daylightSavingAdjust(new Date(O,N,1-y)),F=0;F<_;F++){for(m+="<tr>",B=o?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(w)+"</td>":"",c=0;c<7;c++)k=a?a.apply(t.input?t.input[0]:null,[w]):[!0,""],x=(C=w.getMonth()!==N)&&!R||!k[0]||M&&w<M||z&&z<w,B+="<td class='"+(5<=(c+n+6)%7?" ui-datepicker-week-end":"")+(C?" ui-datepicker-other-month":"")+(w.getTime()===f.getTime()&&N===t.selectedMonth&&t._keyEvent||l.getTime()===w.getTime()&&l.getTime()===f.getTime()?" "+this._dayOverClass:"")+(x?" "+this._unselectableClass+" ui-state-disabled":"")+(C&&!r?"":" "+k[1]+(w.getTime()===Y.getTime()?" "+this._currentClass:"")+(w.getTime()===U.getTime()?" ui-datepicker-today":""))+"'"+(C&&!r||!k[2]?"":" title='"+k[2].replace(/'/g,"'")+"'")+(x?"":" data-handler='selectDay' data-event='click' data-month='"+w.getMonth()+"' data-year='"+w.getFullYear()+"'")+">"+(C&&!r?" ":x?"<span class='ui-state-default'>"+w.getDate()+"</span>":"<a class='ui-state-default"+(w.getTime()===U.getTime()?" ui-state-highlight":"")+(w.getTime()===Y.getTime()?" ui-state-active":"")+(C?" ui-priority-secondary":"")+"' href='#'>"+w.getDate()+"</a>")+"</td>
1",w.setDate(w.getDate()+1),w=this._daylightSavingAdjust(w);m+=B+"</tr>"}11<++N&&(N=0,O++),u+=m+="</tbody></table>"+(q?"</div>"+(0<I[0]&&p===I[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}h+=u}return h+=E,t._keyEvent=!1,h},_generateMonthYearHeader:function(t,e,i,s,n,o,a,r){var l,h,c,d,u,p,f,g=this._get(t,"changeMonth"),m=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",b="";if(o||!g)b+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=n&&n.getFullYear()===i,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=s.getMonth())&&(!h||n.getMonth()>=c)&&(b+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");b+="</select>"}if(v||(y+=b+(!o&&g&&m?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!m)y+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(a=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=(u=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})(a[0]),f=Math.max(p,u(a[1]||"")),p=s?Math.max(p,s.getFullYear()):p,f=n?Math.min(f,n.getFullYear()):f,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=f;p++)t.yearshtml+="<option value='"+p+"'"+(p===i?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,"yearSuffix"),v&&(y+=(!o&&g&&m?"":" ")+b),y+"</div>"},_adjustInstDate:function(t,e,i){var s=t.drawYear+("Y"===i?e:0),n=t.drawMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),s=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,e)));t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),i=i&&e<i?i:e;return t&&t<i?t:i},_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 n=this._getNumberOfMonths(t),i=this._daylightSavingAdjust(new Date(i,s+(e<0?e:n[0]*n[1]),1));return e<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),i.getMonth())),this._isInRange(t,i)},_isInRange:function(t,e){var i,s=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),o=null,a=null,t=this._get(t,"yearRange");return t&&(t=t.split(":"),i=(new Date).getFullYear(),o=parseInt(t[0],10),a=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(o+=i),t[1].match(/[+\-].*/))&&(a+=i),(!s||e.getTime()>=s.getTime())&&(!n||e.getTime()<=n.getTime())&&(!o||e.getFullYear()>=o)&&(!a||a>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:"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);s=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"),s,this._getFormatConfig(t))}}),k.fn.datepicker=function(t){if(!this.length)return this;k.datepicker.initialized||(k(document).mousedown(k.datepicker._checkExternalClick),k.datepicker.initialized=!0),0===k("#"+k.datepicker._mainDivId).length&&k("body").append(k.datepicker.dpDiv);
vendor: 27,266 bytes, line 1
1var 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]?k.datepicker["_"+t+"Datepicker"].apply(k.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?k.datepicker["_"+t+"Datepicker"].apply(k.datepicker,[this].concat(e)):k.datepicker._attachDatepicker(this,t)})},k.datepicker=new t,k.datepicker.initialized=!1,k.datepicker.uuid=(new Date).getTime(),k.datepicker.version="1.11.4",k.widget("ui.draggable",k.ui.mouse,{version:"1.11.4",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.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return this._blurActiveElement(t),!(this.helper||e.disabled||0<k(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=k(this);return k("<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=this.document[0];if(this.handleElement.is(t.target))try{e.activeElement&&"body"!==e.activeElement.nodeName.toLowerCase()&&k(e.activeElement).blur()}catch(t){}},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),k.ui.ddmanager&&(k.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"===k(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(),k.ui.ddmanager&&!e.dropBehaviour&&k.ui.ddmanager.prepareOffsets(this,t),this._normalizeRightBottom(),this._mouseDrag(t,!0),k.ui.ddmanager&&k.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({}),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",k.ui.ddmanager&&k.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return k.ui.ddmanager&&!this.options.dropBehaviour&&(i=k.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||k.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?k(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(),k.ui.ddmanager&&k.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.focus(),k.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!k(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.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(t){var e=this.options,i=k.isFunction(e.helper),t=i?k(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=k.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&&k.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(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{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=this.options,i=this.document[0];return this.relativeContainer=null,e.containment?"window"===e.containment?void(this.containment=[k(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,k(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,k(window).scrollLeft()+k(window).width()-this.helperProportions.width-this.margins.left,k(window).scrollTop()+(k(window).height()||i.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===e.containment?void(this.containment=[0,0,k(i).width()-this.helperProportions.width-this.margins.left,(k(i).height()||i.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):e.containment.constructor===Array?void(this.containment=e.containment):("parent"===e.containment&&(e.containment=this.helper[0].parentNode),void((e=(i=k(e.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*t}},_generatePosition:function(t,e){var i,s=this.options,n=this._isRootNode(this.scrollParent[0]),o=t.pageX,a=t.pageY;return n&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(a=e&&(this.containment&&(i=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(o=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(a=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(o=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3])&&(a=i[3]+this.offset.click.top),s.grid&&(e=s.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,a=!i||e-this.offset.click.top>=i[1]||e-this.offset.click.top>i[3]?e:e-this.offset.click.top>=i[1]?e-s.grid[1]:e+s.grid[1],t=s.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,o=!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&&(o=this.originalPageX),"x"===s.axis)?this.originalPageY:a)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(t,e,i){return i=i||this._uiHash(),k.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),k.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),k.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var s=k.extend({},t,{item:i.element});i.sortables=[],k(i.options.connectToSortable).each(function(){var t=k(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=k.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,k.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,n){k.each(n.sortables,function(){var t=!1,e=this;e.positionAbs=n.positionAbs,e.helperProportions=n.helperProportions,e.offset.click=n.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,k.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&k.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,n._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=n.offset.click.top,e.offset.click.left=n.offset.click.left,e.offset.parent.left-=n.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=n.offset.parent.top-e.offset.parent.top,n._trigger("toSortable",i),n.dropped=e.element,k.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,e.fromOutside=n),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(n._parent),n._refreshOffsets(i),s.position=n._generatePosition(i,!0),n._trigger("fromSortable",i),n.dropped=!1,k.each(n.sortables,function(){this.refreshPositions()}))})}}),k.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var s=k("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&&k("body").css("cursor",i._cursor)}}),k.ui.plugin.add("draggable","opacity",{start:function(t,e,i){e=k(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&&k(e.helper).css("opacity",i._opacity)}}),k.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,n=!1,o=i.scrollParentNotHidden[0],a=i.document[0];o!==a&&"HTML"!==o.tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+o.offsetHeight-t.pageY<s.scrollSensitivity?o.scrollTop=n=o.scrollTop+s.scrollSpeed:t.pageY-i.overflowOffset.top<s.scrollSensitivity&&(o.scrollTop=n=o.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+o.offsetWidth-t.pageX<s.scrollSensitivity?o.scrollLeft=n=o.scrollLeft+s.scrollSpeed:t.pageX-i.overflowOffset.left<s.scrollSensitivity&&(o.scrollLeft=n=o.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-k(a).scrollTop()<s.scrollSensitivity?n=k(a).scrollTop(k(a).scrollTop()-s.scrollSpeed):k(window).height()-(t.pageY-k(a).scrollTop())<s.scrollSensitivity&&(n=k(a).scrollTop(k(a).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-k(a).scrollLeft()<s.scrollSensitivity?n=k(a).scrollLeft(k(a).scrollLeft()-s.scrollSpeed):k(window).width()-(t.pageX-k(a).scrollLeft())<s.scrollSensitivity&&(n=k(a).scrollLeft(k(a).scrollLeft()+s.scrollSpeed)))),!1!==n&&k.ui.ddmanager&&!s.dropBehaviour&&k.ui.ddmanager.prepareOffsets(i,t)}}),k.ui.plugin.add("draggable","snap",{start:function(t,e,i){var s=i.options;i.snapElements=[],k(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var t=k(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,n,o,a,r,l,h,c,d,u=i.options,p=u.snapTolerance,f=e.offset.left,g=f+i.helperProportions.width,m=e.offset.top,v=m+i.helperProportions.height,y=i.snapElements.length-1;0<=y;y--)l=(r=i.snapElements[y].left-i.margins.left)+i.snapElements[y].width,c=(h=i.snapElements[y].top-i.margins.top)+i.snapElements[y].height,g<r-p||l+p<f||v<h-p||c+p<m||!k.contains(i.snapElements[y].item.ownerDocument,i.snapElements[y].item)?(i.snapElements[y].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,k.extend(i._uiHash(),{snapItem:i.snapElements[y].item})),i.snapElements[y].snapping=!1):("inner"!==u.snapMode&&(s=p>=Math.abs(h-v),n=p>=Math.abs(c-m),o=p>=Math.abs(r-g),a=p>=Math.abs(l-f),s&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:r-i.helperProportions.width}).left),a)&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),d=s||n||o||a,"outer"!==u.snapMode&&(s=p>=Math.abs(h-m),n=p>=Math.abs(c-v),o=p>=Math.abs(r-f),a=p>=Math.abs(l-g),s&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:r}).left),a)&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),!i.snapElements[y].snapping&&(s||n||o||a||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,k.extend(i._uiHash(),{snapItem:i.snapElements[y].item})),i.snapElements[y].snapping=s||n||o||a||d)}}),k.ui.plugin.add("draggable","stack",{start:function(t,e,i){var s,i=i.options,i=k.makeArray(k(i.stack)).sort(function(t,e){return(parseInt(k(t).css("zIndex"),10)||0)-(parseInt(k(e).css("zIndex"),10)||0)});i.length&&(s=parseInt(k(i[0]).css("zIndex"),10)||0,k(i).each(function(t){k(this).css("zIndex",s+t)}),this.css("zIndex",s+i.length))}}),k.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){e=k(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&&k(e.helper).css("zIndex",i._zIndex)}}),k.ui.draggable,k.widget("ui.resizable",k.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseInt(t,10)||0},_isNumber:function(t){return!isNaN(parseInt(t,10))},_hasScroll:function(t,e){var i;return"hidden"!==k(t).css("overflow")&&(i=!1,0<t[e=e&&"left"===e?"scrollLeft":"scrollTop"]||(t[e]=1,i=0<t[e],t[e]=0,i))},_create:function(){var t,e,i,s,n=this,o=this.options;if(this.element.addClass("ui-resizable"),k.extend(this,{_aspectRatio:!!o.aspectRatio,aspectRatio:o.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:o.helper||o.ghost||o.animate?o.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(k("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=o.handles||(k(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=k(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),t=this.handles.split(","),this.handles={},e=0;t.length>e;e++)i=k.trim(t[e]),(s=k("<div class='ui-resizable-handle "+("ui-resizable-"+i)+"'></div>")).css({zIndex:o.zIndex}),"se"===i&&s.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[i]=".ui-resizable-"+i,this.element.append(s);this._renderAxis=function(t){var e,i,s;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=k(this.handles[e]),this._on(this.handles[e],{mousedown:n._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=k(this.handles[e],this.element),s=/sw|ne|nw|se|n|s/.test(e)?s.outerHeight():s.outerWidth(),i=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(i,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.mouseover(function(){n.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),n.axis=s&&s[1]?s[1]:"se")}),o.autoHide&&(this._handles.hide(),k(this.element).addClass("ui-resizable-autohide").mouseenter(function(){o.disabled||(k(this).removeClass("ui-resizable-autohide"),n._handles.show())}).mouseleave(function(){o.disabled||n.resizing||(k(this).addClass("ui-resizable-autohide"),n._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();function t(t){k(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()}var e;return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_mouseCapture:function(t){var e,i,s=!1;for(e in this.handles)i=k(this.handles[e])[0],i!==t.target&&!k.contains(i,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var e,i,s=this.options,n=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),e=this._num(this.helper.css("top")),s.containment&&(i+=k(s.containment).scrollLeft()||0,e+=k(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:e},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width(),height:n.height()},this.originalSize=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()},this.sizeDiff={width:n.outerWidth()-n.width(),height:n.outerHeight()-n.height()},this.originalPosition={left:i,top:e},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,i=k(".ui-resizable-"+this.axis).css("cursor"),k("body").css("cursor","auto"===i?this.axis+"-resize":i),n.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,i=this.axis,s=t.pageX-e.left||0,e=t.pageY-e.top||0,i=this._change[i];return this._updatePrevProperties(),i&&(i=i.apply(this,[t,s,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),k.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,s,n=this.options,o=this;return this._helper&&(i=(e=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:o.sizeDiff.height,e=e?0:o.sizeDiff.width,e={width:o.helper.width()-e,height:o.helper.height()-i},i=parseInt(o.element.css("left"),10)+(o.position.left-o.originalPosition.left)||null,s=parseInt(o.element.css("top"),10)+(o.position.top-o.originalPosition.top)||null,n.animate||this.element.css(k.extend(e,{top:s,left:i})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper)&&!n.animate&&this._proportionallyResize(),k("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s,n=this.options,n={minWidth:this._isNumber(n.minWidth)?n.minWidth:0,maxWidth:this._isNumber(n.maxWidth)?n.maxWidth:1/0,minHeight:this._isNumber(n.minHeight)?n.minHeight:0,maxHeight:this._isNumber(n.maxHeight)?n.maxHeight:1/0};(this._aspectRatio||t)&&(t=n.minHeight*this.aspectRatio,i=n.minWidth/this.aspectRatio,e=n.maxHeight*this.aspectRatio,s=n.maxWidth/this.aspectRatio,n.minWidth<t&&(n.minWidth=t),n.minHeight<i&&(n.minHeight=i),e<n.maxWidth&&(n.maxWidth=e),s<n.maxHeight)&&(n.maxHeight=s),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left
vendor: 5,757 bytes, line 1
1=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,h=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&h&&(t.left=r-e.minWidth),s&&h&&(t.left=r-e.maxWidth),a&&i&&(t.top=l-e.minHeight),n&&i&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseInt(s[e],10)||0,i[e]+=parseInt(n[e],10)||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||k("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return k.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return k.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return k.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return k.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){k.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),k.ui.plugin.add("resizable","animate",{stop:function(e){var i=k(this).resizable("instance"),t=i.options,s=i._proportionallyResizeElements,n=s.length&&/textarea/i.test(s[0].nodeName),o=n&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,n=n?0:i.sizeDiff.width,n={width:i.size.width-n,height:i.size.height-o},o=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,a=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(k.extend(n,a&&o?{top:a,left:o}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};s&&s.length&&k(s[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),k.ui.plugin.add("resizable","containment",{start:function(){var i,s,t,e,n=k(this).resizable("instance"),o=n.options,a=n.element,o=o.containment,a=o instanceof k?o.get(0):/parent/.test(o)?a.parent().get(0):o;a&&(n.containerElement=k(a),/document/.test(o)||o===document?(n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:k(document),left:0,top:0,width:k(document).width(),height:k(document).height()||document.body.parentNode.scrollHeight}):(i=k(a),s=[],k(["Top","Right","Left","Bottom"]).each(function(t,e){s[t]=n._num(i.css("padding"+e))}),n.containerOffset=i.offset(),n.containerPosition=i.position(),n.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},o=n.containerOffset,e=n.containerSize.height,t=n.containerSize.width,t=n._hasScroll(a,"left")?a.scrollWidth:t,e=n._hasScroll(a)?a.scrollHeight:e,n.parentData={element:a,left:o.left,top:o.top,width:t,height:e}))},resize:function(t){var e=k(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.position,t=e._aspectRatio||t.shiftKey,o={top:0,left:0},a=e.containerElement,r=!0;a[0]!==document&&/static/.test(a.css("position"))&&(o=s),n.left<(e._helper?s.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-s.left:e.position.left-o.left),t&&(e.size.height=e.size.width/e.aspectRatio,r=!1),e.position.left
vendor: 2,029 bytes, line 1
1=i.helper?s.left:0),n.top<(e._helper?s.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-s.top:e.position.top),t&&(e.size.width=e.size.height*e.aspectRatio,r=!1),e.position.top=e._helper?s.top:0),a=e.containerElement.get(0)===e.element.parent().get(0),i=/relative|absolute/.test(e.containerElement.css("position")),a&&i?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),n=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-o.left:e.offset.left-s.left)),a=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-o.top:e.offset.top-s.top)),n+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-n,t)&&(e.size.height=e.size.width/e.aspectRatio,r=!1),a+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-a,t)&&(e.size.width=e.size.height*e.aspectRatio,r=!1),r||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=k(this).resizable("instance"),e=t.options,i=t.containerOffset,s=t.containerPosition,n=t.containerElement,o=k(t.helper),a=o.offset(),r=o.outerWidth()-t.sizeDiff.width,o=o.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(n.css("position"))&&k(this).css({left:a.left-s.left-i.left,width:r,height:o}),t._helper&&!e.animate&&/static/.test(n.css("position"))&&k(this).css({left:a.left-s.left-i.left,width:r,height:o})}}),k.ui.plugin.add("resizable","alsoResize",{start:function(){var t=k(this).resizable("instance").options;k(t.alsoResize).each(function(){var t=k(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})},resize:function(t,i){var e=k(this).resizable("instance"),s=e.options,n=e.originalSize,o=e.originalPosition,a={height:e.size.height-n.height||0,width:e.size.width-n.width||0,top:e.position.top-o.top||0,left
vendor: 13,753 bytes, line 1
1:e.position.left-o.left||0};k(s.alsoResize).each(function(){var t=k(this),s=k(this).data("ui-resizable-alsoresize"),n={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];k.each(e,function(t,e){var i=(s[e]||0)+(a[e]||0);i&&0<=i&&(n[e]=i||null)}),t.css(n)})},stop:function(){k(this).removeData("resizable-alsoresize")}}),k.ui.plugin.add("resizable","ghost",{start:function(){var t=k(this).resizable("instance"),e=t.options,i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof e.ghost?e.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=k(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=k(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),k.ui.plugin.add("resizable","grid",{resize:function(){var t,e=k(this).resizable("instance"),i=e.options,s=e.size,n=e.originalSize,o=e.originalPosition,a=e.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=r[0]||1,h=r[1]||1,c=Math.round((s.width-n.width)/l)*l,s=Math.round((s.height-n.height)/h)*h,d=n.width+c,u=n.height+s,p=i.maxWidth&&d>i.maxWidth,f=i.maxHeight&&u>i.maxHeight,g=i.minWidth&&i.minWidth>d,m=i.minHeight&&i.minHeight>u;i.grid=r,g&&(d+=l),m&&(u+=h),p&&(d-=l),f&&(u-=h),/^(se|s|e)$/.test(a)?(e.size.width=d,e.size.height=u):/^(ne)$/.test(a)?(e.size.width=d,e.size.height=u,e.position.top=o.top-s):/^(sw)$/.test(a)?(e.size.width=d,e.size.height=u,e.position.left=o.left-c):((u-h<=0||d-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<u-h?(e.size.height=u,e.position.top=o.top-s):(u=h-t.height,e.size.height=u,e.position.top=o.top+n.height-u),0<d-l?(e.size.width=d,e.position.left=o.left-c):(d=l-t.width,e.size.width=d,e.position.left=o.left+n.width-d))}}),k.ui.resizable,k.widget("ui.dialog",{version:"1.11.4",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=k(this).css(t).offset().top;e<0&&k(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&k.fn.draggable&&this._makeDraggable(),this.options.resizable&&k.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?k(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:k.noop,enable:k.noop,close:function(t){var e,i=this;if(this._isOpen&&!1!==this._trigger("beforeClose",t)){if(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusable").focus().length)try{(e=this.document[0].activeElement)&&"body"!==e.nodeName.toLowerCase()&&k(e).blur()}catch(t){}this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",t)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+k(this).css("z-index")}).get(),s=Math.max.apply(null,s);return s>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),i=!0),i&&!e&&this._trigger("focus",t),i},open:function(){var t=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=k(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=(t=(t=(t=(t=t||this.element.find("[autofocus]")).length?t:this.element.find(":tabbable")).length?t:this.uiDialogButtonPane.find(":tabbable")).length?t:this.uiDialogTitlebarClose.filter(":tabbable")).length?t:this.uiDialog).eq(0).focus()},_keepFocus:function(t){function e(){var t=this.document[0].activeElement;this.uiDialog[0]===t||k.contains(this.uiDialog[0],t)||this._focusTabbable()}t.preventDefault(),e.call(this),this._delay(e)},_createWrapper:function(){this.uiDialog=k("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(t){var e,i,s;this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===k.ui.keyCode.ESCAPE?(t.preventDefault(),this.close(t)):t.keyCode!==k.ui.keyCode.TAB||t.isDefaultPrevented()||(e=this.uiDialog.find(":tabbable"),i=e.filter(":first"),s=e.filter(":last"),t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.focus()}),t.preventDefault()):(this._delay(function(){i.focus()}),t.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=k("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(t){k(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=k("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),t=k("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(t),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title||t.html(" "),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=k("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=k("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var s=this,t=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),k.isEmptyObject(t)||k.isArray(t)&&!t.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(k.each(t,function(t,e){var i;e=k.isFunction(e)?{click:e,text:t}:e,e=k.extend({type:"button"},e),i=e.click,e.click=function(){i.apply(s.element[0],arguments)},t={icons:e.icons,text:e.showText},delete e.icons,delete e.showText,k("<button></button>",e).button(t).appendTo(s.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function n(t){return{position:t.position,offset:t.offset}}var o=this,a=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){k(this).addClass("ui-dialog-dragging"),o._blockFrames(),o._trigger("dragStart",t,n(e))},drag:function(t,e){o._trigger("drag",t,n(e))},stop:function(t,e){var i=e.offset.left-o.document.scrollLeft(),s=e.offset.top-o.document.scrollTop();a.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=s?"+":"")+s,of:o.window},k(this).removeClass("ui-dialog-dragging"),o._unblockFrames(),o._trigger("dragStop",t,n(e))}})},_makeResizable:function(){function n(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var o=this,a=this.options,t=a.resizable,e=this.uiDialog.css("position"),t="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:this._minHeight(),handles:t,start:function(t,e){k(this).addClass("ui-dialog-resizing"),o._blockFrames(),o._trigger("resizeStart",t,n(e))},resize:function(t,e){o._trigger("resize",t,n(e))},stop:function(t,e){var i=o.uiDialog.offset(),s=i.left-o.document.scrollLeft(),i=i.top-o.document.scrollTop();a.height=o.uiDialog.height(),a.width=o.uiDialog.width(),a.position={my:"left top",at:"left"+(0<=s?"+":"")+s+" top"+(0<=i?"+":"")+i,of:o.window},k(this).removeClass("ui-dialog-resizing"),o._unblockFrames(),o._trigger("resizeStop",t,n(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=k(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=k.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var i=this,s=!1,n={};k.each(t,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(s=!0),t in i.resizableRelatedOptions&&(n[t]=e)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(t,e){var i,s=this.uiDialog;"dialogClass"===t&&s.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&((i=s.is(":data(ui-draggable)"))&&!e&&s.draggable("destroy"),!i)&&e&&this._makeDraggable(),"position"===t&&this._position(),"resizable"===t&&((i=s.is(":data(ui-resizable)"))&&!e&&s.resizable("destroy"),i&&"string"==typeof e&&s.resizable("option","handles",e),i||!1===e||this._makeResizable()),"title"===t)&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=k(this);return k("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!k(t.target).closest(".ui-dialog").length||!!k(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var e;this.options.modal&&(e=!0,this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=k("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):this.document.unbind("focusin").removeData("ui-dialog-overlays"),this.overlay.remove(),this.overlay=null)}}),k.widget("ui.droppable",{version:"1.11.4",widgetEventPrefix:"drop",o
vendor: 13,542 bytes, line 1
1ptions:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=k.isFunction(i)?i:function(t){return t.is(i)},this.proportions=function(){return arguments.length?void(t=arguments[0]):t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(e.scope),e.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(t){k.ui.ddmanager.droppables[t]=k.ui.ddmanager.droppables[t]||[],k.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=k.ui.ddmanager.droppables[this.options.scope];this._splice(t),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,e){var i;"accept"===t?this.accept=k.isFunction(e)?e:function(t){return t.is(e)}:"scope"===t&&(i=k.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=k.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=k.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=k.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=k.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var i=t||k.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=k(this).droppable("instance");return t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&k.ui.intersect(i,k.extend(t,{offset:t.element.offset()}),t.options.tolerance,e)?!(s=!0):void 0}),s)||!this.accept.call(this.element[0],i.currentItem||i.element))&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(i)),this.element)},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),k.ui.intersect=function(t,e,i,s){if(!e.offset)return!1;var n=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,a=n+t.helperProportions.width,r=o+t.helperProportions.height,l=e.offset.left,h=e.offset.top,c=l+e.proportions().width,d=h+e.proportions().height;switch(i){case"fit":return l<=n&&a<=c&&h<=o&&r<=d;case"intersect":return n+t.helperProportions.width/2>l&&c>a-t.helperProportions.width/2&&o+t.helperProportions.height/2>h&&d>r-t.helperProportions.height/2;case"pointer":return tt(s.pageY,h,e.proportions().height)&&tt(s.pageX,l,e.proportions().width);case"touch":return(h<=o&&o<=d||h<=r&&r<=d||o<h&&d<r)&&(l<=n&&n<=c||l<=a&&a<=c||n<l&&c<a);default:return!1}},k.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,e){var i,s,n=k.ui.ddmanager.droppables[t.options.scope]||[],o=e?e.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(i=0;n.length>i;i++)if(!(n[i].options.disabled||t&&!n[i].accept.call(n[i].element[0],t.currentItem||t.element))){for(s=0;a.length>s;s++)if(a[s]===n[i].element[0]){n[i].proportions().height=0;continue t}n[i].visible="none"!==n[i].element.css("display"),n[i].visible&&("mousedown"===o&&n[i]._activate.call(n[i],e),n[i].offset=n[i].element.offset(),n[i].proportions({width:n[i].element[0].offsetWidth,height:n[i].element[0].offsetHeight}))}},drop:function(t,e){var i=!1;return k.each((k.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&k.ui.intersect(t,this,this.options.tolerance,e)&&(i=this._drop.call(this,e)||i),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e))}),i},dragStart:function(t,e){t.element.parentsUntil("body").bind("scroll.droppable",function(){t.options.refreshPositions||k.ui.ddmanager.prepareOffsets(t,e)})},drag:function(n,o){n.options.refreshPositions&&k.ui.ddmanager.prepareOffsets(n,o),k.each(k.ui.ddmanager.droppables[n.options.scope]||[],function(){var t,e,i,s;this.options.disabled||this.greedyChild||!this.visible||(s=!(s=k.ui.intersect(n,this,this.options.tolerance,o))&&this.isover?"isout":s&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return k(this).droppable("instance").options.scope===e})).length)&&((t=k(i[0]).droppable("instance")).greedyChild="isover"===s),t&&"isover"===s&&(t.isover=!1,t.isout=!0,t._out.call(t,o)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,o),t)&&"isout"===s&&(t.isout=!1,t.isover=!0,t._over.call(t,o))})},dragStop:function(t,e){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||k.ui.ddmanager.prepareOffsets(t,e)}},k.ui.droppable;var y,b,et,it,st,nt,ot,at,rt,lt,_,w,S,ht,ct,D,E,I,P,A,dt="ui-effects-",ut=k;function M(t,e,i,s){return t={effect:t=k.isPlainObject(t)?(e=t).effect:t},k.isFunction(e=null==e?{}:e)&&(s=e,i=null,e={}),"number"!=typeof e&&!k.fx.speeds[e]||(s=i,i=e,e={}),k.isFunction(i)&&(s=i,i=null),e&&k.extend(t,e),i=i||e.duration,t.duration=k.fx.off?0:"number"==typeof i?i:i in k.fx.speeds?k.fx.speeds[i]:k.fx.speeds._default,t.complete=s||e.complete,t}function z(t){return!t||"number"==typeof t||k.fx.speeds[t]||"string"==typeof t&&!k.effects.effect[t]||k.isFunction(t)||"object"==typeof t&&!t.effect}function pt(t){var e,i,s=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,n={};if(s&&s.length&&s[0]&&s[s[0]])for(i=s.length;i--;)"string"==typeof s[e=s[i]]&&(n[k.camelCase(e)]=s[e]);else for(e in s)"string"==typeof s[e]&&(n[e]=s[e]);return n}function N(t,e,i){var s=I[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:t<0?0:t>s.max?s.max:t)}function ft(s){var n=D(),o=n._rgba=[];return s=s.toLowerCase(),A(ct,function(t,e){var i=e.re.exec(s),i=i&&e.parse(i),e=e.space||"rgba";return i?(i=n[e](i),n[E[e].cache]=i[E[e].cache],o=n._rgba=i._rgba,!1):w}),o.length?("0,0,0,0"===o.join()&&_.extend(o,S.transparent),n):S[s]}function O(t,e,i){return 6*(i=(i+1)%1)<1?t+6*(e-t)*i:2*i<1?e:3*i<2?t+6*(e-t)*(2/3-i):t}k.effects={effect:{}},ht=/^([\-+])=\s*(\d+\.?\d*)/,ct=[{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})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([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)]}},{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]]}}],D=(_=ut).Color=function(t,e,i,s){return new _.Color.fn.parse(t,e,i,s)},E={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"}}}},I={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},P=D.support={},p=_("<p>")[0],A=_.each,p.style.cssText="background-color:rgba(1,1,1,.5)",P.rgba=-1<p.style.backgroundColor.indexOf("rgba"),A(E,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),(D.fn=_.extend(D.prototype,{parse:function(n,t,e,i){if(n===w)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=_(n).css(t),t=w);var o=this,s=_.type(n),a=this._rgba=[];return t!==w&&(n=[n,t,e,i],s="array"),"string"===s?this.parse(ft(n)||S._default):"array"===s?(A(E.rgba.props,function(t,e){a[e.idx]=N(n[e.idx],e)}),this):"object"===s?(n instanceof D?A(E,function(t,e){n[e.cache]&&(o[e.cache]=n[e.cache].slice())}):A(E,function(t,i){var s=i.cache;A(i.props,function(t,e){if(!o[s]&&i.to){if("alpha"===t||null==n[t])return;o[s]=i.to(o._rgba)}o[s][e.idx]=N(n[t],e,!0)}),o[s]&&_.inArray(null,o[s].slice(0,3))<0&&(o[s][3]=1,i.from)&&(o._rgba=i.from(o[s]))}),this):w},is:function(t){var n=D(t),o=!0,a=this;return A(E,function(t,e){var i,s=n[e.cache];return s&&(i=a[e.cache]||e.to&&e.to(a._rgba)||[],A(e.props,function(t,e){return null!=s[e.idx]?o=s[e.idx]===i[e.idx]:w})),o}),o},_space:function(){var i=[],s=this;return A(E,function(t,e){s[e.cache]&&i.push(t)}),i.pop()},transition:function(t,a){var t=(h=D(t))._space(),e=E[t],i=0===this.alpha()?D("transparent"):this,r=i[e.cache]||e.to(i._rgba),l=r.slice(),h=h[e.cache];return A(e.props,function(t,e){var i=e.idx,s=r[i],n=h[i],o=I[e.type]||{};null!==n&&(null===s?l[i]=n:(o.mod&&(n-s>o.mod/2?s+=o.mod:s-n>o.mod/2&&(s-=o.mod)),l[i]=N((n-s)*a+s,e)))}),this[t](l)},blend:function(t){var e,i,s;return 1===this._rgba[3]?this:(e=this._rgba.slice(),i=e.pop(),s=D(t)._rgba,D(_.map(e,function(t,e){return(1-i)*s[e]+i*t})))},toRgbaString:function(){var t="rgba(",e=_.map(this._rgba,function(t,e){return null==t?2<e?1:0:t});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=_.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)),"#"+_.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=D.fn,E.hsla.to=function(t){var e,i,s,n,o,a,r,l;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/255,i=t[1]/255,s=t[2]/255,t=t[3],r=.5*(l=(n=Math.max(e,i,s))+(o=Math.min(e,i,s))),l=0==(a=n-o)?0:r<=.5?a/l:a/(2-l),[Math.round(o===n?0:e===n?60*(i-s)/a+360:i===n?60*(s-e)/a+120:60*(e-i)/a+240)%360,l,r,null==t?1:t])},E.hsla.from=function(t){var e,i,s;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/360,s=t[1],i=t[3],s=2*(t=t[2])-(t=t<=.5?t*(1+s):t+s-t*s),[Math.round(255*O(s,t,e+1/3)),Math.round(255*O(s,t,e)),Math.round(255*O(s,t,e-1/3)),i])},A(E,function(r,t){var e=t.props,o=t.cache,a=t.to,l=t.from;D.fn[r]=function(t){var i,s,n;return a&&!this[o]&&(this[o]=a(this._rgba)),t===w?this[o].slice():(i=_.type(t),s="array"===i||"object"===i?t:arguments,n=this[o].slice(),A(e,function(t,e){t=s["object"===i?t:e.idx];null==t&&(t=n[e.idx]),n[e.idx]=N(t,e)}),l?((t=D(l(n)))[o]=n,t):D(n))},A(e,function(o,a){D.fn[o]||(D.fn[o]=function(t){var e=_.type(t),i="alpha"===o?this._hsla?"hsla":"rgba":r,s=this[i](),n=s[a.idx];return"undefined"===e?n:("function"===e&&(t=t.call(this,n),e=_.type(t)),null==t&&a.empty?this:("string"===e&&(e=ht.exec(t))&&(t=n+parseFloat(e[2])*("+"===e[1]?1:-1)),s[a.idx]=t,this[i](s)))})})}),(D.hook=function(t){t=t.split(" ");A(t,function(t,o){_.cssHooks[o]={set:function(t,e){var i,s,n="";if("transparent"!==e&&("string"!==_.type(e)||(i=ft(e)))){if(e=D(i||e),!P.rgba&&1!==e._rgba[3]){for(s="backgroundColor"===o?t.parentNode:t;(""===n||"transparent"===n)&&s&&s.style;)try{n=_.css(s,"backgroundColor"),s=s.parentNode}catch(t){}e=e.blend(n&&"transparent"!==n?n:"_default")}e=e.toRgbaString()}try{t.style[o]=e}catch(t){}}},_.fx.step[o]=function(t){t.colorInit||(t.start=D(t.elem,o),t.end=D(t.end),t.colorInit=!0),_.cssHooks[o].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),_.cssHooks.borderColor={expand:function(i){var s={};return A(["Top","Right","Bottom","Left"],function(t,e){s["border"+e+"Color"]=i}),s}},S=_.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"},rt=["add","remove","toggle"],lt={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},k.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){k.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(ut.style(t.elem,e,t.end),t.setAttr=!0)}}),k.fn.addBack||(k.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}
1),k.effects.animateClass=function(n,t,e,i){var o=k.speed(t,e,i);return this.queue(function(){var i=k(this),t=i.attr("class")||"",e=(e=o.children?i.find("*").addBack():i).map(function(){return{el:k(this),start:pt(this)}}),s=function(){k.each(rt,function(t,e){n[e]&&i[e+"Class"](n[e])})};s(),e=e.map(function(){return this.end=pt(this.el[0]),this.diff=((t,e)=>{var i,s,n={};for(i in e)s=e[i],t[i]===s||lt[i]||!k.fx.step[i]&&isNaN(parseFloat(s))||(n[i]=s);return n})(this.start,this.end),this}),i.attr("class",t),e=e.map(function(){var t=this,e=k.Deferred(),i=k.extend({},o,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),k.when.apply(k,e.get()).done(function(){s(),k.each(arguments,function(){var e=this.el;k.each(this.diff,function(t){e.css(t,"")})}),o.complete.call(i[0])})})},k.fn.extend({addClass:(at=k.fn.addClass,function(t,e,i,s){return e?k.effects.animateClass.call(this,{add:t},e,i,s):at.apply(this,arguments)}),removeClass:(ot=k.fn.removeClass,function(t,e,i,s){return 1<arguments.length?k.effects.animateClass.call(this,{remove:t},e,i,s):ot.apply(this,arguments)}),toggleClass:(nt=k.fn.toggleClass,function(t,e,i,s,n){return"boolean"==typeof e||void 0===e?i?k.effects.animateClass.call(this,e?{add:t}:{remove:t},i,s,n):nt.apply(this,arguments):k.effects.animateClass.call(this,{toggle:t},e,i,s)}),switchClass:function(t,e,i,s,n){return k.effects.animateClass.call(this,{add:e,remove:t},i,s,n)}}),k.extend(k.effects,{version:"1.11.4",save:function(t,e){for(var i=0;e.length>i;i++)null!==e[i]&&t.data(dt+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,s=0;e.length>s;s++)null!==e[s]&&(i=t.data(dt+e[s]),t.css(e[s],i=void 0===i?"":i))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},getBaseline:function(t,e){var i,s;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":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var s={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},t=k("<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&&!k.contains(i[0],n)||k(n).focus(),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(k.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),k.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]===e||k.contains(t[0],e))&&k(e).focus(),t},setTransition:function(s,t,n,o){return o=o||{},k.each(t,function(t,e){var i=s.cssUnit(e);0<i[0]&&(o[e]=i[0]*n+i[1])}),o}}),k.fn.extend({effect:function(){function t(t){function e(){k.isFunction(s)&&s.call(i[0]),k.isFunction(t)&&t()}var i=k(this),s=o.complete,n=o.mode;(i.is(":hidden")?"hide"===n:"show"===n)?(i[n](),e()):a.call(i[0],o,e)}var o=M.apply(this,arguments),e=o.mode,i=o.queue,a=k.effects.effect[o.effect];return k.fx.off||!a?e?this[e](o.duration,o.complete):this.each(function(){o.complete&&o.complete.call(this)}):!1===i?this.each(t):this.queue(i||"fx",t)},show:(st=k.fn.show,function(t){return z(t)?st.apply(this,arguments):((t=M.apply(this,arguments)).mode="show",this.effect.call(this,t))}),hide:(it=k.fn.hide,function(t){return z(t)?it.apply(this,arguments):((t=M.apply(this,arguments)).mode="hide",this.effect.call(this,t))}),toggle:(et=k.fn.toggle,function(t){return z(t)||"boolean"==typeof t?et.apply(this,arguments):((t=M.apply(this,arguments)).mode="toggle",this.effect.call(this,t))}),cssUnit:function(t){var i=this.css(t),s=[];return k.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(s=[parseFloat(i),e])}),s}}),b={},k.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){b[t]=function(t){return Math.pow(t,e+2)}}),k.extend(b,{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;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),k.each(b,function(t,e){k.easing["easeIn"+t]=e,k.easing["easeOut"+t]=function(t){return 1-e(1-t)},k.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),k.effects,k.effects.effect.blind=function(t,e){var i,s,n,o=k(this),a=["position","top","bottom","left","right","height","width"],r=k.effects.setMode(o,t.mode||"hide"),l=t.direction||"up",h=/up|down|vertical/.test(l),c=h?"height":"width",d=h?"top":"left",l=/up|left|vertical|horizontal/.test(l),u={},p="show"===r;o.parent().is(".ui-effects-wrapper")?k.effects.save(o.parent(),a):k.effects.save(o,a),o.show(),s=(i=k.effects.createWrapper(o).css({overflow:"hidden"}))[c](),n=parseFloat(i.css(d))||0,u[c]=p?s:0,l||(o.css(h?"bottom":"right",0).css(h?"top":"left","auto").css({position:"absolute"}),u[d]=p?n:s+n),p&&(i.css(c,0),l||i.css(d,n+s)),i.animate(u,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===r&&o.hide(),k.effects.restore(o,a),k.effects.removeWrapper(o),e()}})},k.effects.effect.bounce=function(t,e){var i,s,n,o=k(this),a=["position","top","bottom","left","right","height","width"],r=k.effects.setMode(o,t.mode||"effect"),l="hide"===r,r="show"===r,h=t.direction||"up",c=t.distance,d=t.times||5,u=2*d+(r||l?1:0),p=t.duration/u,f=t.easing,g="up"===h||"down"===h?"to
vendor: 4,753 bytes, line 1
1p":"left",m="up"===h||"left"===h,t=o.queue(),h=t.length;for((r||l)&&a.push("opacity"),k.effects.save(o,a),o.show(),k.effects.createWrapper(o),c=c||o["top"==g?"outerHeight":"outerWidth"]()/3,r&&((n={opacity:1})[g]=0,o.css("opacity",0).css(g,m?2*-c:2*c).animate(n,p,f)),l&&(c/=Math.pow(2,d-1)),i=(n={})[g]=0;i<d;i++)(s={})[g]=(m?"-=":"+=")+c,o.animate(s,p,f).animate(n,p,f),c=l?2*c:c/2;l&&((s={opacity:0})[g]=(m?"-=":"+=")+c,o.animate(s,p,f)),o.queue(function(){l&&o.hide(),k.effects.restore(o,a),k.effects.removeWrapper(o),e()}),1<h&&t.splice.apply(t,[1,0].concat(t.splice(h,1+u))),o.dequeue()},k.effects.effect.clip=function(t,e){var i,s,n=k(this),o=["position","top","bottom","left","right","height","width"],a="show"===k.effects.setMode(n,t.mode||"hide"),r="vertical"===(t.direction||"vertical"),l=r?"height":"width",r=r?"top":"left",h={};k.effects.save(n,o),n.show(),i=k.effects.createWrapper(n).css({overflow:"hidden"}),s=(i="IMG"===n[0].tagName?i:n)[l](),a&&(i.css(l,0),i.css(r,s/2)),h[l]=a?s:0,h[r]=a?0:s/2,i.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){a||n.hide(),k.effects.restore(n,o),k.effects.removeWrapper(n),e()}})},k.effects.effect.drop=function(t,e){var i,s=k(this),n=["position","top","bottom","left","right","opacity","height","width"],o=k.effects.setMode(s,t.mode||"hide"),a="show"===o,r=t.direction||"left",l="up"===r||"down"===r?"top":"left",r="up"===r||"left"===r?"pos":"neg",h={opacity:a?1:0};k.effects.save(s,n),s.show(),k.effects.createWrapper(s),i=t.distance||s["top"==l?"outerHeight":"outerWidth"](!0)/2,a&&s.css("opacity",0).css(l,"pos"==r?-i:i),h[l]=(a?"pos"==r?"+=":"-=":"pos"==r?"-=":"+=")+i,s.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===o&&s.hide(),k.effects.restore(s,n),k.effects.removeWrapper(s),e()}})},k.effects.effect.explode=function(t,e){function i(){g.push(this),g.length===l*h&&(c.css({visibility:"visible"}),k(g).remove(),d||c.hide(),e())}for(var s,n,o,a,r,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,h=l,c=k(this),d="show"===k.effects.setMode(c,t.mode||"hide"),u=c.show().css("visibility","hidden").offset(),p=Math.ceil(c.outerWidth()/h),f=Math.ceil(c.outerHeight()/l),g=[],m=0;m<l;m++)for(o=u.top+m*f,r=m-(l-1)/2,s=0;s<h;s++)n=u.left+s*p,a=s-(h-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*p,top:-m*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:n+(d?a*p:0),top:o+(d?r*f:0),opacity:d?0:1}).animate({left:n+(d?0:a*p),top:o+(d?0:r*f),opacity:d?1:0},t.duration||500,t.easing,i)},k.effects.effect.fade=function(t,e){var i=k(this),s=k.effects.setMode(i,t.mode||"toggle");i.animate({opacity:s},{queue:!1,duration:t.duration,easing:t.easing,complete:e})},k.effects.effect.fold=function(t,e){var i,s=k(this),n=["position","top","bottom","left","right","height","width"],o=k.effects.setMode(s,t.mode||"hide"),a="show"===o,r="hide"===o,o=t.size||15,l=/([0-9]+)%/.exec(o),h=!!t.horizFirst,c=a!=h,d=c?["width","height"]:["height","width"],u=t.duration/2,p={},f={};k.effects.save(s,n),s.show(),i=k.effects.createWrapper(s).css({overflow:"hidden"}),c=c?[i.width(),i.height()]:[i.height(),i.width()],l&&(o=parseInt(l[1],10)/100*c[r?0:1]),a&&i.css(h?{height:0,width:o}:{height:o,width:0}),p[d[0]]=a?c[0]:o,f[d[1]]=a?c[1]:0,i.animate(p,u,t.easing).animate(f,u,t.easing,function(){r&&s.hide(),k.effects.restore(s,n),k.effects.removeWrapper(s),e()})},k.effects.effect.highlight=function(t,e){var i=k(this),s=["backgroundImage","backgroundColor","opacity"],n=k.effects.setMode(i,t.mode||"show"),o={backgroundColor:i.css("backgroundColor")};"hide"===n&&(o.opacity=0),k.effects.save(i,s),i.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===n&&i.hide(),k.effects.restore(i,s),e()}})},k.effects.effect.size=function(o,t){var e,a,r=k(this),i=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["width","height","overflow"],s=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],n=k.effects.setMode(r,o.mode||"effect"),d=o.restore||"effect"!==n,u=o.scale||"both",p=o.origin||["middle","center"],f=r.css("position"),g=d?i:["position","top","bottom","left","right","overflow","opacity"],m={height:0,width:0,outerHeight:0,outerWidth:0};"show"===n&&r.show(),e={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===o.mode&&"show"===n?(r.from=o.to||m,r.to=o.from||e):(r.from=o.from||("show"===n?m:e),r.to=o.to||("hide"===n?m:e)),a={from:{y:r.from.height/e.he
1ight,x:r.from.width/e.width},to:{y:r.to.height/e.height,x:r.to.width/e.width}},"box"!==u&&"both"!==u||(a.from.y!==a.to.y&&(g=g.concat(h),r.from=k.effects.setTransition(r,h,a.from.y,r.from),r.to=k.effects.setTransition(r,h,a.to.y,r.to)),a.from.x===a.to.x)||(g=g.concat(c),r.from=k.effects.setTransition(r,c,a.from.x,r.from),r.to=k.effects.setTransition(r,c,a.to.x,r.to)),"content"!==u&&"both"!==u||a.from.y===a.to.y||(g=g.concat(s).concat(l),r.from=k.effects.setTransition(r,s,a.from.y,r.from),r.to=k.effects.setTransition(r,s,a.to.y,r.to)),k.effects.save(r,g),r.show(),k.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),p&&(m=k.effects.getBaseline(p,e),r.from.top=(e.outerHeight-r.outerHeight())*m.y,r.from.left=(e.outerWidth-r.outerWidth())*m.x,r.to.top=(e.outerHeight-r.to.outerHeight)*m.y,r.to.left=(e.outerWidth-r.to.outerWidth)*m.x),r.css(r.from),"content"!==u&&"both"!==u||(h=h.concat(["marginTop","marginBottom"]).concat(s),c=c.concat(["marginLeft","marginRight"]),l=i.concat(h).concat(c),r.find("*[width]").each(function(){var t=k(this),e=t.height(),i=t.width(),s=t.outerHeight(),n=t.outerWidth();d&&k.effects.save(t,l),t.from={height:e*a.from.y,width:i*a.from.x,outerHeight:s*a.from.y,outerWidth:n*a.from.x},t.to={height:e*a.to.y,width:i*a.to.x,outerHeight:e*a.to.y,outerWidth:i*a.to.x},a.from.y!==a.to.y&&(t.from=k.effects.setTransition(t,h,a.from.y,t.from),t.to=k.effects.setTransition(t,h,a.to.y,t.to)),a.from.x!==a.to.x&&(t.from=k.effects.setTransition(t,c,a.from.x,t.from),t.to=k.effects.setTransition(t,c,a.to.x,t.to)),t.css(t.from),t.animate(t.to,o.duration,o.easing,function(){d&&k.effects.restore(t,l)})})),r.animate(r.to,{queue:!1,duration:o.duration,easing:o.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===n&&r.hide(),k.effects.restore(r,g),d||("static"===f?r.css({position:"relative",top:r.to.top,left
vendor: 20,541 bytes, line 1
1:r.to.left}):k.each(["top","left"],function(n,t){r.css(t,function(t,e){var i=parseInt(e,10),s=n?r.to.left:r.to.top;return"auto"===e?s+"px":i+s+"px"})})),k.effects.removeWrapper(r),t()}})},k.effects.effect.scale=function(t,e){var i=k(this),s=k.extend(!0,{},t),n=k.effects.setMode(i,t.mode||"effect"),o=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"hide"===n?0:100),a=t.direction||"both",r=t.origin,l={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()},h="horizontal"!==a?o/100:1,a="vertical"!==a?o/100:1;s.effect="size",s.queue=!1,s.complete=e,"effect"!==n&&(s.origin=r||["middle","center"],s.restore=!0),s.from=t.from||("show"===n?{height:0,width:0,outerHeight:0,outerWidth:0}:l),s.to={height:l.height*h,width:l.width*a,outerHeight:l.outerHeight*h,outerWidth:l.outerWidth*a},s.fade&&("show"===n&&(s.from.opacity=0,s.to.opacity=1),"hide"===n)&&(s.from.opacity=1,s.to.opacity=0),i.effect(s)},k.effects.effect.puff=function(t,e){var i=k(this),s=k.effects.setMode(i,t.mode||"hide"),n="hide"===s,o=parseInt(t.percent,10)||150,a=o/100,r={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};k.extend(t,{effect:"scale",queue:!1,fade:!0,mode:s,complete:e,percent:n?o:100,from:n?r:{height:r.height*a,width:r.width*a,outerHeight:r.outerHeight*a,outerWidth:r.outerWidth*a}}),i.effect(t)},k.effects.effect.pulsate=function(t,e){var i,s=k(this),n=k.effects.setMode(s,t.mode||"show"),o="show"===n,a="hide"===n,r=2*(t.times||5)+(o||"hide"===n?1:0),l=t.duration/r,h=0,n=s.queue(),c=n.length;for(!o&&s.is(":visible")||(s.css("opacity",0).show(),h=1),i=1;i<r;i++)s.animate({opacity:h},l,t.easing),h=1-h;s.animate({opacity:h},l,t.easing),s.queue(function(){a&&s.hide(),e()}),1<c&&n.splice.apply(n,[1,0].concat(n.splice(c,1+r))),s.dequeue()},k.effects.effect.shake=function(t,e){var i,s=k(this),n=["position","top","bottom","left","right","height","width"],o=k.effects.setMode(s,t.mode||"effect"),a=t.direction||"left",r=t.distance||20,l=t.times||3,h=2*l+1,c=Math.round(t.duration/h),d="up"===a||"down"===a?"top":"left",a="up"===a||"left"===a,u={},p={},f={},g=s.queue(),m=g.length;for(k.effects.save(s,n),s.show(),k.effects.createWrapper(s),u[d]=(a?"-=":"+=")+r,p[d]=(a?"+=":"-=")+2*r,f[d]=(a?"-=":"+=")+2*r,s.animate(u,c,t.easing),i=1;i<l;i++)s.animate(p,c,t.easing).animate(f,c,t.easing);s.animate(p,c,t.easing).animate(u,c/2,t.easing).queue(function(){"hide"===o&&s.hide(),k.effects.restore(s,n),k.effects.removeWrapper(s),e()}),1<m&&g.splice.apply(g,[1,0].concat(g.splice(m,1+h))),s.dequeue()},k.effects.effect.slide=function(t,e){var i,s=k(this),n=["position","top","bottom","left","right","width","height"],o=k.effects.setMode(s,t.mode||"show"),a="show"===o,r=t.direction||"left",l="up"===r||"down"===r?"top":"left",r="up"===r||"left"===r,h={};k.effects.save(s,n),s.show(),i=t.distance||s["top"==l?"outerHeight":"outerWidth"](!0),k.effects.createWrapper(s).css({overflow:"hidden"}),a&&s.css(l,r?isNaN(i)?"-"+i:-i:i),h[l]=(a?r?"+=":"-=":r?"-=":"+=")+i,s.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===o&&s.hide(),k.effects.restore(s,n),k.effects.removeWrapper(s),e()}})},k.effects.effect.transfer=function(t,e){var i=k(this),s=k(t.to),n="fixed"===s.css("position"),o=k("body"),a=n?o.scrollTop():0,o=n?o.scrollLeft():0,r=s.offset(),r={top:r.top-a,left:r.left-o,height:s.innerHeight(),width:s.innerWidth()},s=i.offset(),l=k("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(t.className).css({top:s.top-a,left:s.left-o,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(r,t.duration,t.easing,function(){l.remove(),e()})},k.widget("ui.progressbar",{version:"1.11.4",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=k("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(e.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=k("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),k.widget("ui.selectable",k.ui.mouse,{version:"1.11.4",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t,e=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(t=k(e.options.filter,e.element[0])).addClass("ui-selectee"),t.each(function(){var t=k(this),e=t.offset();k.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=k("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(i){var s=this,t=this.options;this.opos=[i.pageX,i.pageY],this.options.disabled||(this.selectees=k(t.filter,this.element[0]),this._trigger("start",i),k(t.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=k.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(t.$element.removeClass("ui-selected"),t.selected=!1,t.$element.addClass("ui-unselecting"),t.unselecting=!0,s._trigger("unselecting",i,{unselecting:t.element}))}),k(i.target).parents().addBack().each(function(){var t,e=k.data(this,"selectable-item");return e?(t=!i.metaKey&&!i.ctrlKey||!e.$element.hasClass("ui-selected"),e.$element.removeClass(t?"ui-unselecting":"ui-selected").addClass(t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?s._trigger("selecting",i,{selecting:e.element}):s._trigger("unselecting",i,{unselecting:e.element}),!1):void 0}))},_mouseDrag:function(i){var t,s,n,o,a,r,l;if(this.dragged=!0,!this.options.disabled)return n=(s=this).options,o=this.opos[0],a=this.opos[1],(r=i.pageX)<o&&(t=r,r=o,o=t),(l=i.pageY)<a&&(t=l,l=a,a=t),this.helper.css({left:o,top:a,width:r-o,height:l-a}),this.selectees.each(function(){var t=k.data(this,"selectable-item"),e=!1;t&&t.element!==s.element[0]&&("touch"===n.tolerance?e=!(t.left>r||o>t.right||t.top>l||a>t.bottom):"fit"===n.tolerance&&(e=t.left>o&&r>t.right&&t.top>a&&l>t.bottom),e?(t.selected&&(t.$element.removeClass("ui-selected"),t.selected=!1),t.unselecting&&(t.$element.removeClass("ui-unselecting"),t.unselecting=!1),t.selecting||(t.$element.addClass("ui-selecting"),t.selecting=!0,s._trigger("selecting",i,{selecting:t.element}))):(t.selecting&&((i.metaKey||i.ctrlKey)&&t.startselected?(t.$element.removeClass("ui-selecting"),t.selecting=!1,t.$element.addClass("ui-selected"),t.selected=!0):(t.$element.removeClass("ui-selecting"),t.selecting=!1,t.startselected&&(t.$element.addClass("ui-unselecting"),t.unselecting=!0),s._trigger("unselecting",i,{unselecting:t.element}))),!t.selected||i.metaKey||i.ctrlKey||t.startselected||(t.$element.removeClass("ui-selected"),t.selected=!1,t.$element.addClass("ui-unselecting"),t.unselecting=!0,s._trigger("unselecting",i,{unselecting:t.element}))))}),!1},_mouseStop:function(e){var i=this;return this.dragged=!1,k(".ui-unselecting",this.element[0]).each(function(){var t=k.data(this,"selectable-item");t.$element.removeClass("ui-unselecting"),t.unselecting=!1,t.startselected=!1,i._trigger("unselected",e,{unselected:t.element})}),k(".ui-selecting",this.element[0]).each(function(){var t=k.data(this,"selectable-item");t.$element.removeClass("ui-selecting").addClass("ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,i._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),k.widget("ui.selectmenu",{version:"1.11.4",defaultElement:"<select>",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this.options.disabled&&this.disable()},_drawButton:function(){var t=this;this.label=k("label[for='"+this.ids.element+"']").attr("for",this.ids.button),this._on(this.label,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=k("<span>",{class:"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element),k("<span>",{class:"ui-icon "+this.options.icons.button}).prependTo(this.button),this.buttonText=k("<span>",{class:"ui-selectmenu-text"}).appendTo(this.button),this._setText(this.buttonText,this.element.find("option:selected").text()),this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){t.menuItems||t._refreshMenu()}),this._hoverable(this.button),this._focusable(this.button)},_drawMenu:function(){var i=this;this.menu=k("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=k("<div>",{class:"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo()),this.menuInstance=this.menu.menu({role:"listbox",select:function(t,e){t.preventDefault(),i._setSelection(),i._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){e=e.item.data("ui-selectmenu-item");null!=i.focusIndex&&e.index!==i.focusIndex&&(i._trigger("focus",t,{item:e}),i.isOpen||i._select(e,t)),i.focusIndex=e.index,i.button.attr("aria-activedescendant",i.menuItems.eq(e.index).attr("id"))}}).menu("instance"),this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this._setText(this.buttonText,this._getSelectedItem().text()),this.options.width||this._resizeButton()},_refreshMenu:function(){this.menu.empty();var t=this.element.find("option");t.length&&(this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup"),t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this.menuItems?(this.menu.find(".ui-state-focus").removeClass("ui-state-focus"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t))},_position:function(){this.menuWrap.position(k.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(i,t){var s=this,n="";k.each(t,function(t,e){e.optgroup!==n&&(k("<li>",{class:"ui-selectmenu-optgroup ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:e.optgroup}).appendTo(i),n=e.optgroup),s._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var i=k("<li>");return e.disabled&&i.addClass("ui-state-disabled"),this._setText(i,e.label),i.appendTo(t)},_setText:function(t,e){e?t.text(e):t.html(" ")},_move:function(t,e){var i,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex):(i=this.menuItems.eq(this.element[0].selectedIndex),s+=":not(.ui-state-disabled)"),(i="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](s).eq(-1):i[t+"All"](s).eq(0)).length&&this.menuInstance.focus(e,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){!this.isOpen||k(t.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length||this.close(t)}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case k.ui.keyCode.TAB:case k.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case k.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case k.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case k.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case k.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case k.ui.keyCode.LEFT:this._move("prev",t);break;case k.ui.keyCode.RIGHT:this._move("next",t);break;case k.ui.keyCode.HOME:case k.ui.keyCode.PAGE_UP:this._move("first",t);break;case k.ui.keyCode.END:case k.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex);e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this._setText(this.buttonText,t.label),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){"icons"===t&&this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(e.button),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"disabled"===t&&(this.menuInstance.option("disabled",e),this.button.toggleClass("ui-state-disabled",e).attr("aria-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)),"width"===t&&this._resizeButton()},_appendTo:function(){var t=this.options.appendTo;return t=(t=(t=t&&(t.jquery||t.nodeType?k(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front")).length?t:this.document[0].body},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen),this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;t||(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(t){var s=[];t.each(function(t,e){var e=k(e),i=e.parent("optgroup");s.push({element:e,index:t,value:e.val(),label:e.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||e.prop("disabled")})}),this.items=s},_destroy:function(){this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.label.attr("for",this.ids.element)}}),k.widget("ui.slider",k.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e=this.options,i=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),s=[],n=e.values&&e.values.length||1;for(i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),t=i.length;t<n;t++)s.push("<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>");this.handles=i.add(k(s.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(t){k(this).data("ui-slider-handle-index",t)})},_createRange:function(){var t=this.options,e="";t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:k.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=k("<div></div>").appendTo(this.element),e="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(e+("min"===t.range||"max"===t.range?" ui-slider-range-"+t.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(t){var i,s,n,o,e,a,r=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-r.values(t));(e<s||s===e&&(t===r._lastChangedValue||r.values(t)===l.min))&&(s=e,n=k(this),o=t)}),!1!==this._start(t,o))&&(this._mouseSliding=!0,this._handleIndex=o,n.addClass("ui-state-active").focus(),e=n.offset(),a=!k(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=a?{left:0,top:0}
1:{left:t.pageX-e.left-n.width()/2,top:t.pageY-e.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,i),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=t/e;return(t=1<t?1:t)<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),t=this._valueMin()+t*e,this._trimAlignValue(t)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var s,n;this.options.values&&this.options.values.length?(s=this.values(e?0:1),(i=2===this.options.values.length&&!0===this.options.range&&(0===e&&s<i||1===e&&i<s)?s:i)!==this.values(e)&&((s=this.values())[e]=i,n=this._trigger("slide",t,{handle:this.handles[e],value:i,values:s}),this.values(e?0:1),!1!==n)&&this.values(e,i)):i!==this.value()&&!1!==(n=this._trigger("slide",t,{handle:this.handles[e],value:i}))&&this.value(i)},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){var i;this._keySliding||this._mouseSliding||(i={handle:this.handles[e],value:this.value()},this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,e){var i,s,n;if(1<arguments.length)this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),this._change(null,t);else{if(!arguments.length)return this._values();if(!k.isArray(t))return this.options.values&&this.options.values.length?this._values(t):this.value();for(i=this.options.values,s=t,n=0;i.length>n;n+=1)i[n]=this._trimAlignValue(s[n]),this._change(null,n);this._refreshValue()}},_setOption:function(t,e){var i,s=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),k.isArray(this.options.values)&&(s=this.options.values.length),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e),this._super(t,e),t){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=0;i<s;i+=1)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i;if(arguments.length)return t=this.options.values[t],this._trimAlignValue(t);if(this.options.values&&this.options.values.length){for(e=this.options.values.slice(),i=0;e.length>i;i+=1)e[i]=this._trimAlignValue(e[i]);return e}return[]},_trimAlignValue:function(t){var e,i;return this._valueMin()>=t?this._valueMin():t>=this._valueMax()?this._valueMax():(e=0<this.options.step?this.options.step:1,i=t-(t=(t-this._valueMin())%e),2*Math.abs(t)>=e&&(i+=0<t?e:-e),parseFloat(i.toFixed(5)))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step,t=Math.floor(+(t-e).toFixed(this._precision())/i)*i+e;this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var t=""+t,e=t.indexOf(".");return-1===e?0:t.length-e-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var e,i,t,s,n,o=this.options.range,a=this.options,r=this,l=!this._animateOff&&a.animate,h={};this.options.values&&this.options.values.length?this.handles.each(function(t){i=(r.values(t)-r._valueMin())/(r._valueMax()-r._valueMin())*100,h["horizontal"===r.orientation?"left":"bottom"]=i+"%",k(this).stop(1,1)[l?"animate":"css"](h,a.animate),!0===r.options.range&&("horizontal"===r.orientation?(0===t&&r.range.stop(1,
vendor: 4,240 bytes, line 1
11)[l?"animate":"css"]({left:i+"%"},a.animate),1===t&&r.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===t&&r.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},a.animate),1===t&&r.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(t=this.value(),s=this._valueMin(),n=this._valueMax(),i=n!==s?(t-s)/(n-s)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](h,a.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},a.animate),"max"===o&&"horizontal"===this.orientation&&this.range[l?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:a.animate}),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},a.animate),"max"===o&&"vertical"===this.orientation&&this.range[l?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:a.animate}))},_handleEvents:{keydown:function(t){var e,i,s,n=k(t.target).data("ui-slider-handle-index");switch(t.keyCode){case k.ui.keyCode.HOME:case k.ui.keyCode.END:case k.ui.keyCode.PAGE_UP:case k.ui.keyCode.PAGE_DOWN:case k.ui.keyCode.UP:case k.ui.keyCode.RIGHT:case k.ui.keyCode.DOWN:case k.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,k(t.target).addClass("ui-state-active"),!1===this._start(t,n)))return}switch(s=this.options.step,e=i=this.options.values&&this.options.values.length?this.values(n):this.value(),t.keyCode){case k.ui.keyCode.HOME:i=this._valueMin();break;case k.ui.keyCode.END:i=this._valueMax();break;case k.ui.keyCode.PAGE_UP:i=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case k.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case k.ui.keyCode.UP:case k.ui.keyCode.RIGHT:if(e===this._valueMax())return;i=this._trimAlignValue(e+s);break;case k.ui.keyCode.DOWN:case k.ui.keyCode.LEFT:if(e===this._valueMin())return;i=this._trimAlignValue(e-s)}this._slide(t,n,i)},keyup:function(t){var e=k(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),k(t.target).removeClass("ui-state-active"))}}}),k.widget("ui.sortable",k.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),k.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,s=!1,n=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),k(t.target).parents().each(function(){return k.data(this,n.widgetName+"-item")===n?(i=k(this),!1):void 0}),!(i=k.data(t.target,n.widgetName+"-item")===n?k(t.target):i))||(this.options.handle&&!e&&(k(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s)||(this.currentItem=i,this._removeCurrentsFromItems(),0)))}
vendor: 8,227 bytes, line 1
1,_mouseStart:function(t,e,i){var s,n,o=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},k.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(n=this.document.find("body"),this.storedCursor=n.css("cursor"),n.css("cursor",o.cursor),this.storedStylesheet=k("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(n)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return k.ui.ddmanager&&(k.ui.ddmanager.current=this),k.ui.ddmanager&&!o.dropBehaviour&&k.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,i,s,n,o=this.options,a=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+o.scrollSpeed:t.pageY-this.overflowOffset.top<o.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<o.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+o.scrollSpeed:t.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(t.pageY-this.document.scrollTop()<o.scrollSensitivity?a=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<o.scrollSensitivity&&(a=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed)),t.pageX-this.document.scrollLeft()<o.scrollSensitivity?a=this.document.scrollLeft(this.document.scrollLeft()-o.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<o.scrollSensitivity&&(a=this.document.scrollLeft(this.document.scrollLeft()+o.scrollSpeed))),!1!==a)&&k.ui.ddmanager&&!o.dropBehaviour&&k.ui.ddmanager.prepareOffsets(this,t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e=this.items.length-1;0<=e;e--)if(s=(i=this.items[e]).item[0],(n=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&s!==this.currentItem[0]&&this.placeholder[1===n?"next":"prev"]()[0]!==s&&!k.contains(this.placeholder[0],s)&&("semi-dynamic"!==this.options.type||!k.contains(this.element[0],s))){if(this.direction=1===n?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),k.ui.ddmanager&&k.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,s,n,o;if(t)return k.ui.ddmanager&&!this.options.dropBehaviour&&k.ui.ddmanager.drop(this,t),this.options.revert?(s=(i=this).placeholder.offset(),o={},(n=this.options.axis)&&"x"!==n||(o.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),n&&"y"!==n||(o.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,k(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),k.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?k(this.domPosition.prev).after(this.currentItem):k(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},k(t).each(function(){var t=(k(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(k(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,l=r+t.height,h=this.offset.click.top,c=this.offset.click.left,h="x"===this.options.axis||r<s+h&&s+h<l,c="y"===this.options.axis||o<e+c&&e+c<a;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?h&&c:e+this.helperProportions.width/2>o&&a>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>r&&l>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),e=e&&t,t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return!!e&&(this.floating?i&&"right"===i||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),t=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&t||"left"===s&&!t:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;
1return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){function e(){a.push(this)}var i,s,n,o,a=[],r=[],l=this._connectWith();if(l&&t)for(i=l.length-1;0<=i;i--)for(s=(n=k(l[i],this.document[0])).length-1;0<=s;s--)(o=k.data(n[s],this.widgetFullName))&&o!==this&&!o.options.disabled&&r.push([k.isFunction(o.options.items)?o.options.items.call(o.element):k(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);for(r.push([k.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):k(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=r.length-1;0<=i;i--)r[i][0].each(e);return k(a)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=k.grep(this.items,function(t){for(var e=0;i.length>e;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,n,o,a,r,l,h=this.items,c=[[k.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):k(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(e=d.length-1;0<=e;e--)for(i=(s=k(d[e],this.document[0])).length-1;0<=i;i--)(n=k.data(s[i],this.widgetFullName))&&n!==this&&!n.options.disabled&&(c.push([k.isFunction(n.options.items)?n.options.items.call(n.element[0],t,{item:this.currentItem}):k(n.options.items,n.element),n]),this.containers.push(n));for(e=c.length-1;0<=e;e--)for(o=c[e][1],l=(a=c[e][i=0]).length;i<l;i++)(r=k(a[i])).data(this.widgetName+"-item",o),h.push({item:r,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var e,i,s,n;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),e=this.items.length-1;0<=e;e--)(i=this.items[e]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?k(this.options.toleranceElement,i.item):i.item,t||(i.width=s.outerWidth(),i.height=s.outerHeight()),n=s.offset(),i.left=n.left,i.top=n.top);
vendor: 1,132 bytes, line 1
1if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)n=this.containers[e].element.offset(),this.containers[e].containerCache.left=n.left,this.containers[e].containerCache.top=n.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var s,n=(i=i||this).options;n.placeholder&&n.placeholder.constructor!==String||(s=n.placeholder,n.placeholder={element:function(){var t=i.currentItem[0].nodeName.toLowerCase(),e=k("<"+t+">",i.document[0]).addClass(s||i.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===t?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),k("<tr>",i.document[0]).appendTo(e)):"tr"===t?i._createTrPlaceholder(i.currentItem,e):"img"===t&&e.attr("src",i.currentItem.attr("src")),s||e.css("visibility","hidden"),e},update:function(t,e){s&&!n.forcePlaceholderSize||(e.height()||e.height(i.currentItem.innerHe
vendor: 11,609 bytes, line 1
1ight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10))}}),i.placeholder=k(n.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),n.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){k("<td> </td>",i.document[0]).attr("colspan",k(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,n,o,a,r,l,h,c=null,d=null,u=this.containers.length-1;0<=u;u--)if(!k.contains(this.currentItem[0],this.containers[u].element[0]))if(this._intersectsWith(this.containers[u].containerCache)){if(c&&k.contains(this.containers[u].element[0],c.element[0]))continue;c=this.containers[u],d=u}else this.containers[u].containerCache.over&&(this.containers[u]._trigger("out",t,this._uiHash(this)),this.containers[u].containerCache.over=0);if(c)if(1===this.containers.length)this.containers[d].containerCache.over||(this.containers[d]._trigger("over",t,this._uiHash(this)),this.containers[d].containerCache.over=1);else{for(i=1e4,s=null,n=(l=c.floating||this._isFloating(this.currentItem))?"left":"top",o=l?"width":"height",h=l?"clientX":"clientY",e=this.items.length-1;0<=e;e--)k.contains(this.containers[d].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(a=this.items[e].item.offset()[n],r=!1,t[h]-a>this.items[e][o]/2&&(r=!0),i>Math.abs(t[h]-a))&&(i=Math.abs(t[h]-a),s=this.items[e],this.direction=r?"up":"down");(s||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[d]?this.currentContainer.containerCache.over||(this.containers[d]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[d].element,!0),this._trigger("change",t,this._uiHash()),this.containers[d]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[d],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[d]._trigger("over",t,this._uiHash(this)),this.containers[d].containerCache.over=1))}},_createHelper:function(t){var e=this.options,t=k.isFunction(e.helper)?k(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||k("parent"!==e.appendTo?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=k.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)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&k.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&k.ui.ie?{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(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=k(i.containment)[0],i=k(i.containment).offset(),e="hidden"!==k(t).css("overflow"),this.containment=[i.left+(parseInt(k(t).css("borderLeftWidth"),10)||0)+(parseInt(k(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(k(t).css("borderTopWidth"),10)||0)+(parseInt(k(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(e?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(k(t).css("borderLeftWidth"),10)||0)-(parseInt(k(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(e?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(k(t).css("borderTopWidth"),10)||0)-(parseInt(k(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&k.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(i[0].tagName);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:i.scrollTop())*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:i.scrollLeft())*t}},_generatePosition:function(t){var e=this.options,i=t.pageX,s=t.pageY,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&k.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(s=this.containment[3]+this.offset.click.top),e.grid)&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0]),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){function i(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}this.reverting=!1;var s,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._storedCSS)"auto"!==this._storedCSS[s]&&"static"!==this._storedCSS[s]||(this._storedCSS[s]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),s=this.containers.length-1;0<=s;s--)e||n.push(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(i("out",this,this.containers[s])),this.containers[s].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(s=0;s<n.length;s++)n[s].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===k.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||k([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}}),k.widget("ui.spinner",{version:"1.11.4",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var s={},n=this.element;return k.each(["min","max","step"],function(t,e){var i=n.attr(e);void 0!==i&&i.length&&(s[e]=i)}),s}
1,_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){function e(){this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=i,this._delay(function(){this.previous=i}))}var i=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();t.preventDefault(),e.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,e.call(this)}),!1!==this._start(t)&&this._repeat(null,k(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){return k(t.currentTarget).hasClass("ui-state-active")?!1!==this._start(t)&&void this._repeat(null,k(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&0<t.height()&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(t){var e=this.options,i=k.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,e.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>▲</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>▼</span></a>"},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t)||(this.counter||(this.counter=1),this.spinning=!0,0))},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?k.isFunction(e)?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var t=""+t,e=t.indexOf(".");return-1===e?0:t.length-e-1},_adjustValue:function(t){var e=this.options,i=null!==e.min?e.min:0,s=t-i;return t=i+Math.round(s/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&e.min>t?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i;"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,this.element.val(this._format(i))):("max"!==t&&"min"!==t&&"step"!==t||"string"!=typeof e||(e=this._parse(e)),"icons"===t&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&&(this.widget().toggleClass("ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")))},_setOptions:e(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void e(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}
vendor: 11,273 bytes, line 1
1),k.widget("ui.tabs",{version:"1.11.4",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(y=/#.*$/,function(t){var e=(t=t.cloneNode(!1)).href.replace(y,""),i=location.href.replace(y,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1<t.hash.length&&e===i}),_create:function(){var e=this,t=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",t.collapsible),this._processTabs(),t.active=this._initialActive(),k.isArray(t.disabled)&&(t.disabled=k.unique(t.disabled.concat(k.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(t.active):k(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,s=location.hash.substring(1);return!1!==(i=null===i&&(s&&this.tabs.each(function(t,e){return k(e).attr("aria-controls")===s?(i=t,!1):void 0}),null===(i=null===i?this.tabs.index(this.tabs.filter(".ui-tabs-active")):i)||-1===i)?!!this.tabs.length&&0:i)&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0),i=!t&&!1===i&&this.anchors.length?0:i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):k()}},_tabKeydown:function(t){var e=k(this.document[0].activeElement).closest("li"),i=this.tabs.index(e),s=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case k.ui.keyCode.RIGHT:case k.ui.keyCode.DOWN:i++;break;case k.ui.keyCode.UP:case k.ui.keyCode.LEFT:s=!1,i--;break;case k.ui.keyCode.END:i=this.anchors.length-1;break;case k.ui.keyCode.HOME:i=0;break;case k.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case k.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,s),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===k.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){return t.altKey&&t.keyCode===k.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===k.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){for(var i=this.tabs.length-1;-1!==k.inArray(t=(t=i<t?0:t)<0?i:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){return"active"===t?void this._activate(e):"disabled"===t?void this._setupDisabled(e):(this._super(t,e),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=k.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!k.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=k()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=k()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(t){k(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){k(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return k("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=k(),this.anchors.each(function(t,e){var i,s,n,o=k(e).uniqueId().attr("id"),a=k(e).closest("li"),r=a.attr("aria-controls");l._isLocal(e)?(n=(i=e.hash).substring(1),s=l.element.find(l._sanitizeSelector(i))):(n=a.attr("aria-controls")||k({}).uniqueId()[0].id,(s=l.element.find(i="#"+n)).length||(s=l._createPanel(n)).insertAfter(l.panels[t-1]||l.tablist),s.attr("aria-live","polite")),s.length&&(l.panels=l.panels.add(s)),r&&a.data("ui-tabs-aria-controls",r),a.attr({"aria-controls":n,"aria-labelledby":o}),s.attr("aria-labelledby",o)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(t){return k("<div>").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){k.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var e,i=0;e=this.tabs[i];i++)!0===t||-1!==k.inArray(i,t)?k(e).addClass("ui-state-disabled").attr("aria-disabled","true"):k(e).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var i={};t&&k.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=k(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=k(this).outerHeight(!0)}),this.panels.each(function(){k(this).height(Math.max(0,i-k(this).innerHeight()+k(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,k(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,s=k(t.currentTarget).closest("li"),n=s[0]===i[0],o=n&&e.collapsible,a=o?k():this._getPanelForTab(s),r=i.length?this._getPanelForTab(i):k(),i={oldTab:i,oldPanel:r,newTab:o?k():s,newPanel:a};t.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||n&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!o&&this.tabs.index(s),this.active=n?k():s,this.xhr&&this.xhr.abort(),r.length||a.length||k.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),t),this._toggle(t,i))},_toggle:function(t,e){function i(){n.running=!1,n._trigger("activate",t,e)}function s(){e.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&&n.options.show?n._show(o,n.options.show,i):(o.show(),i())}var n=this,o=e.newPanel,a=e.oldPanel;this.running=!0,a.length&&this.options.hide?this._hide(a,this.options.hide,function(){e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s()}):(e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),a.hide(),s()),a.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),o.length&&a.length?e.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return 0===k(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:k.noop}))},_findActive:function(t){return!1===t?k():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+t+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each(function(){k.data(this,"ui-tabs-destroy")?k(this).remove():k(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=k(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),k.isArray(t)?k.map(t,function(t){return t!==i?t:null}):k.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==k.inArray(t,e))return;e=k.isArray(e)?k.merge([t],e).sort():[t]}this._setupDisabled(e)}},load:function(t,s){t=this._getIndex(t);function n(t,e){"abort"===e&&o.panels.stop(!1,!0),i.removeClass("ui-tabs-loading"),a.removeAttr("aria-busy"),t===o.xhr&&delete o.xhr}var o=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),a=this._getPanelForTab(i),r={tab:i,panel:a};this._isLocal(t[0])||(this.xhr=k.ajax(this._ajaxSettings(t,s,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(i.addClass("ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,
1i){setTimeout(function(){a.html(t),o._trigger("load",s,r),n(i,e)},1)}).fail(function(t,e){setTimeout(function(){n(t,e)},1)})))},_ajaxSettings:function(t,i,s){var n=this;return{url:t.attr("href"),beforeSend:function(t,e){return n._trigger("beforeLoad",i,k.extend({jqXHR:t,ajaxSettings:e},s))}}},_getPanelForTab:function(t){t=k(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),k.widget("ui.tooltip",{version:"1.11.4",options:{content:function(){var t=k(this).attr("title")||"";return k("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,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",k.trim(i.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),e=k.inArray(e,i);-1!==e&&i.splice(e,1),t.removeData("ui-tooltip-id"),(i=k.trim(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=k("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(t,e){var i=this;return"disabled"===t?(this[e?"_disable":"_enable"](),void(this.options[t]=e)):(this._super(t,e),void("content"===t&&k.each(this.tooltips,function(t,e){i._updateContent(e.element)})))},_disable:function(){var s=this;k.each(this.tooltips,function(t,e){var i=k.Event("blur");i.target=i.currentTarget=e.element[0],s.close(i,!0)}),this.element.find(this.options.items).addBack().each(function(){var t=k(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=k(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var i=this,e=k(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=k(this);e.data("ui-tooltip-open")&&((t=k.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,s=this,n=i?i.type:null;return"string"==typeof t?this._open(i,e,t):void((t=t.call(e[0],function(t){s._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){function s(t){l.of=t,o.is(":hidden")||o.position(l)}var n,o,a,r,l=k.extend({},this.options.position);i&&((n=this._find(e))?n.tooltip.find(".ui-tooltip-content").html(i):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),n=this._tooltip(e),o=n.tooltip,this._addDescribedBy(e,o.attr("id")),o.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),i.clone?(r=i.clone()).removeAttr("id").find("[id]").removeAttr("id"):r=i,k("<div>").html(r).appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:s}),s(t)):o.position(k.extend({of:e},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.show&&this.options.show.delay&&(a=this.delayedShow=setInterval(function(){o.is(":visible")&&(s(l.of),clearInterval(a))},k.fx.interval)),this._trigger("open",t,{tooltip:o})))},_registerCloseHandlers:function(t,e){var i={keyup:function(t){t.keyCode===k.ui.keyCode.ESCAPE&&((t=k.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(e).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,s=k(t?t.currentTarget:this.element),n=this._find(s);return n?(e=n.tooltip,void(n.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),n.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){i._removeTooltip(k(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&k.each(this.parents,function(t,e){k(e.element).attr("title",e.title),delete i.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:e}),n.hiding)||(n.closing=!1))):void s.removeData("ui-tooltip-open")},_tooltip:function(t){var e=k("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),i=e.uniqueId().attr("id");return k("<div>").addClass("ui-tooltip-content").appendTo(e),e.appendTo(this.document[0].body),this.tooltips[i]={element:t,tooltip:e}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var s=this;k.each(this.tooltips,function(t,e){var i=k.Event("blur"),e=e.element;i.target=i.currentTarget=e[0],s.close(i,!0),k("#"+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()}})}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");(()=>{var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")})(),(s=>{s.fn.emulateTransitionEnd=function(t){var e=!1,i=this;s(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||s(i).trigger(s.support.transition.end)},t),this},s(function(){s.support.transition=(()=>{var t,e=document.createElement("bootstrap"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(void 0!==e.style[t])return{end:i[t]};return!1})(),s.support.transition&&(s.event.special.bsTransitionEnd={bindType:s.support.transition.end,delegateType:s.support.transition.end,handle:function(t){if(s(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})})(jQuery),(o=>{function a(t){o(t).on("click",e,this.close)}var e='[data-dismiss="alert"]',t=(a.VERSION="3.3.7",a.TRANSITION_DURATION=150,a.prototype.close=function(t){var e=o(this),i=(i=e.attr("data-target"))||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""),s=o("#"===i?[]:i);function n(){s.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),(s=s.length?s:e.closest(".alert")).trigger(t=o.Event("close.bs.alert")),t.isDefaultPrevented()||(s.removeClass("in"),o.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",n).emulateTransitionEnd(a.TRANSITION_DURATION):n())},o.fn.alert);o.fn.alert=function(i){return this.each(function(){var t=o(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new a(this)),"string"==typeof i&&e[i].call(t)})},o.fn.alert.Constructor=a,o.fn.alert.noConflict=function(){return o.fn.alert=t,this},o(document).on("click.bs.alert.data-api",e,a.prototype.close)})(jQuery),(o=>{function s(t,e){this.$element=o(t),this.options=o.extend({},s.DEFAULTS,e),this.isLoading=!1}function i(i){return this.each(function(){var t=o(this),e=t.data("bs.button");e||t.data("bs.button",e=new s(this,"object"==typeof i&&i)),"toggle"==i?e.toggle(
1):i&&e.setState(i)})}s.VERSION="3.3.7",s.DEFAULTS={loadingText:"loading..."},s.prototype.setState=function(t){var e="disabled",i=this.$element,s=i.is("input")?"val":"html",n=i.data();t+="Text",null==n.resetText&&i.data("resetText",i[s]()),setTimeout(o.proxy(function(){i[s]((null==n[t]?this.options:n)[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},s.prototype.toggle=function(){var t,e=!0,i=this.$element.closest('[data-toggle="buttons"]');i.length?("radio"==(t=this.$element.find("input")).prop("type")?(t.prop("checked")&&(e=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==t.prop("type")&&(t.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),t.prop("checked",this.$element.hasClass("active")),e&&t.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};var t=o.fn.button;o.fn.button=i,o.fn.button.Constructor=s,o.fn.button.noConflict=function(){return o.fn.button=t,this},o(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=o(t.target).closest(".btn");i.call(e,"toggle"),o(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),(e.is("input,button")?e:e.find("input:visible,button:visible").first()).trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){o(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})})(jQuery),(h=>{function c(t,e){this.$element=h(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",h.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",h.proxy(this.pause,this)).on("mouseleave.bs.carousel",h.proxy(this.cycle,this))}function n(n){return this.each(function(){var t=h(this),e=t.data("bs.carousel"),i=h.extend({},c.DEFAULTS,t.data(),"object"==typeof n&&n),s="string"==typeof n?n:i.slide;e||t.data("bs.carousel",e=new c(this,i)),"number"==typeof n?e.to(n):s?e[s]():i.interval&&e.pause().cycle()})}function t(t){var e,i=h(this),s=h(i.attr("data-target")||(s=i.attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,""));s.hasClass("carousel")&&(e=h.extend({},s.data(),i.data()),(i=i.attr("data-slide-to"))&&(e.interval=!1),n.call(s,e),i&&s.data("bs.carousel").to(i),t.preventDefault())}c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},c.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(h.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},c.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);return("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap?e:(e=(i+("prev"==t?-1:1))%this.$items.length,this.$items.eq(e))},c.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(i<t?"next":"prev",this.$items.eq(t))},c.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&h.support.transition&&(this.$element.trigger(h.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(t,e){var i,s,n,o=this.$element.find(".
1item.active"),a=e||this.getItemForDirection(t,o),e=this.interval,r="next"==t?"left":"right",l=this;return a.hasClass("active")?this.sliding=!1:(i=a[0],s=h.Event("slide.bs.carousel",{relatedTarget:i,direction:r}),this.$element.trigger(s),s.isDefaultPrevented()?void 0:(this.sliding=!0,e&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),s=h(this.$indicators.children()[this.getItemIndex(a)]))&&s.addClass("active"),n=h.Event("slid.bs.carousel",{relatedTarget:i,direction:r}),h.support.transition&&this.$element.hasClass("slide")?(a.addClass(t),a[0].offsetWidth,o.addClass(r),a.addClass(r),o.one("bsTransitionEnd",function(){a.removeClass([t,r].join(" ")).addClass("active"),o.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(n)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(o.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(n)),e&&this.cycle(),this))};var e=h.fn.carousel;h.fn.carousel=n,h.fn.carousel.Constructor=c,h.fn.carousel.noConflict=function(){return h.fn.carousel=e,this},h(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),h(window).on("load",function(){h('[data-ride="carousel"]').each(function(){var t=h(this);n.call(t,t.data())})})})(jQuery),(n=>{function o(t,e){this.$element=n(t),this.options=n.extend({},o.DEFAULTS,e),this.$trigger=n('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()}function i(t){t=t.attr("data-target")||(t=t.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return n(t)}function a(s){return this.each(function(){var t=n(this),e=t.data("bs.collapse"),i=n.extend({},o.DEFAULTS,t.data(),"object"==typeof s&&s);!e&&i.toggle&&/show|hide/.test(s)&&(i.toggle=!1),e||t.data("bs.collapse",e=new o(this,i)),"string"==typeof s&&e[s]()})}o.VERSION="3.3.7",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(s=t.data("bs.collapse"))&&s.transitioning)){var e=n.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){t&&t.length&&(a.call(t,"hide"),s||t.data("bs.collapse",null));var i=this.dimension(),e=(this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")});if(!n.support.transition)return e.call(this);var s=n.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",n.proxy(e,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[i](this.$element[0][s])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=n.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var t=this.dimension(),e=(this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")});if(!n.support.transition)return e.call(this);this.$element[t](0).one("bsTransitionEnd",n.proxy(e,this)).emulateTransitionEnd(o.TRANSITION_DURATION)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,e){e=n(e);this.addAriaAndCollapsedClass(i(e),e)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var t=n.fn.collapse;n.fn.collapse=a,n.fn.collapse.Constructor=o,n.fn.collapse.noConflict=function(){return n.fn.collapse=t,this},n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=n(this),t=(e.attr("data-target")||t.preventDefault(),i(e)),e=t.data("bs.collapse")?"toggle":e.data();a.call(t,e)})})(jQuery),(n=>{function s(t){n(t).on("click.bs.dropdown",this.toggle)}var o='[data-toggle="dropdown"]';function a(t){var e=t.attr("data-target"),e=(e=e||(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))&&n(e);return e&&e.length?e:t.parent()}function r(s){s&&3===s.which||(n(".dropdown-backdrop").remove(),n(o).each(function(){var t=n(this),e=a(t),i={relatedTarget:this};!e.hasClass("open")||s&&"click"==s.type&&/input|textarea/i.test(s.target.tagName)&&n.c
vendor: 4,536 bytes, line 1
1ontains(e[0],s.target)||(e.trigger(s=n.Event("hide.bs.dropdown",i)),s.isDefaultPrevented())||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(n.Event("hidden.bs.dropdown",i)))}))}s.VERSION="3.3.7",s.prototype.toggle=function(t){var e=n(this);if(!e.is(".disabled, :disabled")){var i=a(e),s=i.hasClass("open");if(r(),!s){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",r);s={relatedTarget:this};if(i.trigger(t=n.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",s))}return!1}},s.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=n(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var i=a(e),s=i.hasClass("open");if(!s&&27!=t.which||s&&27==t.which)return 27==t.which&&i.find(o).trigger("focus"),e.trigger("click");s=i.find(".dropdown-menu li:not(.disabled):visible a");s.length&&(e=s.index(t.target),38==t.which&&0<e&&e--,40==t.which&&e<s.length-1&&e++,s.eq(e=~e?e:0).trigger("focus"))}}};var t=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var t=n(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new s(this)),"string"==typeof i&&e[i].call(t)})},n.fn.dropdown.Constructor=s,n.fn.dropdown.noConflict=function(){return n.fn.dropdown=t,this},n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,s.prototype.toggle).on("keydown.bs.dropdown.data-api",o,s.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",s.prototype.keydown)})(jQuery),(o=>{function a(t,e){this.options=e,this.$body=o(document.body),this.$element=o(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,o.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function n(s,n){return this.each(function(){var t=o(this),e=t.data("bs.modal"),i=o.extend({},a.DEFAULTS,t.data(),"object"==typeof s&&s);e||t.data("bs.modal",e=new a(this,i)),"string"==typeof s?e[s](n):i.show&&e.show(n)})}a.VERSION="3.3.7",a.TRANSITION_DURATION=300,a.BACKDROP_TRANSITION_DURATION=150,a.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},a.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},a.prototype.show=function(i){var s=this,t=o.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',o.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){s.$element.one("mouseup.dismiss.bs.modal",function(t){o(t.target).is(s.$element)&&(s.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=o.support.transition&&s.$element.hasClass("fade"),e=(s.$element.parent().length||s.$element.appendTo(s.$body),s.$element.show().scrollTop(0),s.adjustDialog(),t&&s.$element[0].offsetWidth,s.$element.addClass("in"),s.enforceFocus(),o.Event("shown.bs.modal",{relatedTarget:i}));t?s.$dialog.one("bsTransitionEnd",function(){s.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(a.TRANSITION_DURATION):s.$element.trigger("focus").trigger(e)}))},a.prototype.hide=function(t){t&&t.preventDefault(),t=o.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),o(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),o.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",o.proxy(this.hideModal,this)).emulateTransitionEnd(a.TRANSITION_DURATION):this.hideModal())},a.prototype.enforceFocus=function(){o(document).off("focusin.bs.modal").on("focusin.bs.modal",o.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},a.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("key
1down.dismiss.bs.modal",o.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},a.prototype.resize=function(){this.isShown?o(window).on("resize.bs.modal",o.proxy(this.handleUpdate,this)):o(window).off("resize.bs.modal")},a.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},a.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},a.prototype.backdrop=function(t){var e,i=this,s=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(e=o.support.transition&&s,this.$backdrop=o(document.createElement("div")).addClass("modal-backdrop "+s).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),t&&(e?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):t())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),s=function(){i.removeBackdrop(),t&&t()},o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):s()):t&&t()},a.prototype.handleUpdate=function(){this.adjustDialog()},a.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var t,e=window.innerWidth;e||(e=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},a.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},a.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},a.prototype.measureScrollbar=function(){var t=document.createElement("div"),e=(t.className="modal-scrollbar-measure",this.$body.append(t),t.offsetWidth-t.clientWidth);return this.$body[0].removeChild(t),e};var t=o.fn.modal;o.fn.modal=n,o.fn.modal.Constructor=a,o.fn.modal.noConflict=function(){return o.fn.modal=t,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=o(this),i=e.attr("href"),s=o(e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),i=s.data("bs.modal")?"toggle":o.extend({remote:!/#/.test(i)&&i},s.data(),e.data());e.is("a")&&t.preventDefault(),s.one("show.bs.modal",function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),n.call(s,i,this)})})(jQuery),(l=>{function h(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}h.VERSION="3.3.7",h.TRANSITION_DURATION=150,h.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},h.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=l(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&l(l.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var s=this.options.trigger.split(" "),n=s.length;n--;){var o,a=s[n];"click"==a?this.$element.on("click."+this.type,this.options.selector,l.proxy(this.toggle,this)):"manual"!=a&&(o="hover"==a?"mouseleave":"focusout",this.$element.on(("hover"==a?"mouseenter":"focusin")+"."+this.type,this.options.selector,l.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,l.proxy(this.leave,this)))}this.options.selector?this._options=l.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},h.prototype.getDefaults=function(){return h.DEFAULTS},h.prototype.getOptions=function(t){return(t=l.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},h.prototype.getDelegateOptions=function(){var i={},s=this.getDefaults();return this._options&&l.each(this._options,function(t,e){s[t]!=e&&(i[t]=e)}),i},h.prototype.enter=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t instanceof l.Event&&(e.inState["focusin"==t.type?"focu
1s":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},h.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},h.prototype.leave=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t instanceof l.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},h.prototype.show=function(){var e,t,i,s,n,o,a,r=l.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(r),n=l.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!r.isDefaultPrevented())&&n&&(r=(e=this).tip(),n=this.getUID(this.type),this.setContent(),r.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&r.addClass("fade"),n="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,(a=(t=/\s?auto?\s?/i).test(n))&&(n=n.replace(t,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(n).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),t=this.getPosition(),i=r[0].offsetWidth,s=r[0].offsetHeight,a&&(a=n,o=this.getPosition(this.$viewport),n="bottom"==n&&t.bottom+s>o.bottom?"top":"top"==n&&t.top-s<o.top?"bottom":"right"==n&&t.right+i>o.width?"left":"left"==n&&t.left-i<o.left?"right":n,r.removeClass(a).addClass(n)),o=this.getCalculatedOffset(n,t,i,s),this.applyPlacement(o,n),a=function(){var t=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==t&&e.leave(e)},l.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",a).emulateTransitionEnd(h.TRANSITION_DURATION):a())},h.prototype.applyPlacement=function(t,e){var i=this.tip(),s=i[0].offsetWidth,n=i[0].offsetHeight,o=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10),o=(isNaN(o)&&(o=0),isNaN(a)&&(a=0),t.top+=o,t.left+=a,l.offset.setOffset(i[0],l.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),i.addClass("in"),i[0].offsetWidth),a=i[0].offsetHeight,r=("top"==e&&a!=n&&(t.top=t.top+n-a),this.getViewportAdjustedDelta(e,t,o,a)),e=(r.left?t.left+=r.left:t.top+=r.top,/top|bottom/.test(e)),s=e?2*r.left-s+o:2*r.top-n+a,o=e?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(s,i[0][o],e)},h.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},h.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},h.prototype.hide=function(t){var e=this,i=l(this.$tip),s=l.Event("hide.bs."+this.type);function n(){"in"!=e.hoverState&&i.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(s),!s.isDefaultPrevented())return i.removeClass("in"),l.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",n).emulateTransitionEnd(h.TRANSITION_DURATION):n(),this.hoverState=null,this},h.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},h.prototype.hasContent=function(){return this.getTitle()},h.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],i="BODY"==e.tagName,s=e.getBoundingClientRect(),e=(null==s.width&&(s=l.extend({},s,{width:s.right-s.left,height:s.bottom-s.top})),window.SVGElement&&e instanceof window.SVGElement),e=i?{top:0,left:0}:e?null:t.offset(),t={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},i=i?{width:l(window).width(),height:l(window).height()}:null;return l.extend({},s,t,i,e)}
vendor: 7,091 bytes, line 1
1,h.prototype.getCalculatedOffset=function(t,e,i,s){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-s,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-s/2,left:e.left-i}:{top:e.top+e.height/2-s/2,left:e.left+e.width}},h.prototype.getViewportAdjustedDelta=function(t,e,i,s){var n,o,a={top:0,left:0};return this.$viewport&&(n=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport),/right|left/.test(t)?(t=e.top-n-o.scroll,s=e.top+n-o.scroll+s,t<o.top?a.top=o.top-t:s>o.top+o.height&&(a.top=o.top+o.height-s)):(t=e.left-n,s=e.left+n+i,t<o.left?a.left=o.left-t:s>o.right&&(a.left=o.left+o.width-s))),a},h.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},h.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},h.prototype.tip=function(){if(this.$tip||(this.$tip=l(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},h.prototype.enable=function(){this.enabled=!0},h.prototype.disable=function(){this.enabled=!1},h.prototype.toggleEnabled=function(){this.enabled=!this.enabled},h.prototype.toggle=function(t){var e=this;t&&!(e=l(t.currentTarget).data("bs."+this.type))&&(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},h.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var t=l.fn.tooltip;l.fn.tooltip=function(s){return this.each(function(){var t=l(this),e=t.data("bs.tooltip"),i="object"==typeof s&&s;!e&&/destroy|hide/.test(s)||(e||t.data("bs.tooltip",e=new h(this,i)),"string"==typeof s&&e[s]())})},l.fn.tooltip.Constructor=h,l.fn.tooltip.noConflict=function(){return l.fn.tooltip=t,this}})(jQuery),(n=>{function o(t,e){this.init("popover",t,e)}if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.3.7",o.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((o.prototype=n.extend({},n.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=n.fn.popover;n.fn.popover=function(s){return this.each(function(){var t=n(this),e=t.data("bs.popover"),i="object"==typeof s&&s;!e&&/destroy|hide/.test(s)||(e||t.data("bs.popover",e=new o(this,i)),"string"==typeof s&&e[s]())})},n.fn.popover.Constructor=o,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}})(jQuery),(n=>{function s(t,e){this.$body=n(document.body),this.$scrollElement=n(t).is(document.body)?n(window):n(t),this.options=n.extend({},s.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this)),this.refresh(),this.process()}function e(i){return this.each(function(){var t=n(this),e=t.data("bs.scrollspy");e||t.data("bs.scrollspy",e=new s(this,"object"==typeof i&&i)),"string"==typeof i&&e[i]()})}s.VERSION="3.3.7",s.DEFAULTS={offset:10},s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},s.prototype.refresh=function(){var t=this,i="offset",s=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),n.isWindow(this.$scrollElement[0])||(i="position",s=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=n(this),t=t.data("target")||t.attr("href"),e=/^#./.test(t)&&n(t);return e&&e.length&&e.is(":visible")?[[e[i]().top+s,t]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},s.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),s=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),s<=e)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<n[0])return this.activeTarget=null,this.clear();for(t=n.length;t--;)a!=o[t]&&e>=n[t]&&(void 0===n[t+1]||e<n[t+1])&&this.activate(o[t])},s.prototype.activate=function(t){this.activeTarget=t,this.clear();t=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',t=n(t).parents("li").addClass("active");(t=t.parent(".dropdown-menu").length?t.closest("li.dropdown").addClass("active"):t).trigger("activate.bs.scrollspy")},s.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=n.fn.scrollspy;n.fn.scrollspy=e,n.fn.scrollspy.Constructor=s,n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=t,this},n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);e.call(t,t.data())})})})(jQuery),(a=>{function r(t){this.element=a(t)}function e(i){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new r(this)),"string"==typeof i&&e[i]()})}function t(t){t.preventDefault(),e.call(a(this),"show")}r.VERSION="3.3.7",r.TRANSITION_DURATION=150,r.prototype.show=function(){var t,e,i,s=this.element,n=s.closest("ul:not(.dropdown-menu)"),o=(o=s.data("target"))||(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"");s.parent("li").hasClass("active")||(t=n.find(".active:last a"),e=a.Event("hide.bs.tab",{relatedTarget:s[0]}),i=a.Event("show.bs.tab",{relatedTarget:t[0]}),t.trigger(e),s.trigger(i),i.isDefaultPrevented())||e.isDefaultPrevented()||(i=a(o),this.activate(s.closest("li"),n),this.activate(i,i.parent(),function(){t.trigger({type:"hidden.bs.tab",relatedTarget:s[0]}),s.trigger({type:"shown.bs.tab",relatedTarget:t[0]})}))}
1,r.prototype.activate=function(t,e,i){var s=e.find("> .active"),n=i&&a.support.transition&&(s.length&&s.hasClass("fade")||!!e.find("> .fade").length);function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),n?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}s.length&&n?s.one("bsTransitionEnd",o).emulateTransitionEnd(r.TRANSITION_DURATION):o(),s.removeClass("in")};var i=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=i,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',t).on("click.bs.tab.data-api",'[data-toggle="pill"]',t)})(jQuery),(a=>{function r(t,e){this.options=a.extend({},r.DEFAULTS,e),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}function i(i){return this.each(function(){var t=a(this),e=t.data("bs.affix");e||t.data("bs.affix",e=new r(this,"object"==typeof i&&i)),"string"==typeof i&&e[i]()})}r.VERSION="3.3.7",r.RESET="affix affix-top affix-bottom",r.DEFAULTS={offset:0,target:window},r.prototype.getState=function(t,e,i,s){var n,o=this.$target.scrollTop(),a=this.$element.offset(),r=this.$target.height();return null!=i&&"top"==this.affixed?o<i&&"top":"bottom"==this.affixed?null!=i?!(o+this.unpin<=a.top)&&"bottom":!(o+r<=t-s)&&"bottom":(a=(n=null==this.affixed)?o:a.top,null!=i&&o<=i?"top":null!=s&&t-s<=a+(n?r:e)&&"bottom")},r.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(r.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},r.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},r.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,i=e.top,s=e.bottom,n=Math.max(a(document).height(),a(document.body).height()),e=("object"!=typeof e&&(s=i=e),"function"==typeof i&&(i=e.top(this.$element)),"function"==typeof s&&(s=e.bottom(this.$element)),this.get
1State(n,t,i,s));if(this.affixed!=e){null!=this.unpin&&this.$element.css("top","");var i="affix"+(e?"-"+e:""),o=a.Event(i+".bs.affix");if(this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=e,this.unpin="bottom"==e?this.getPinnedOffset():null,this.$element.removeClass(r.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==e&&this.$element.offset({top:n-t-s})}};var t=a.fn.affix;a.fn.affix=i,a.fn.affix.Constructor=r,a.fn.affix.noConflict=function(){return a.fn.affix=t,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var t=a(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),i.call(t,e)})})})(jQuery),(()=>{function a(n,t){var e;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=n,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!a.notNeeded(n)){for(var i=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],s=0,o=i.length;s<o;s++)this[i[s]]=((t,e)=>function(){return t.apply(e,arguments)})(this[i[s]],this);r&&(n.addEventListener("mouseover",this.onMouse,!0),n.addEventListener("mousedown",this.onMouse,!0),n.addEventListener("mouseup",this.onMouse,!0)),n.addEventListener("click",this.onClick,!0),n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchmove",this.onTouchMove,!1),n.addEventListener("touchend",this.onTouchEnd,!1),n.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(n.removeEventListener=function(t,e,i){var s=Node.prototype.removeEventListener;"click"===t?s.call(n,t,e.hijacked||e,i):s.call(n,t,e,i)},n.addEventListener=function(t,e,i){var s=Node.prototype.addEventListener;"click"===t?s.call(n,t,e.hijacked||(e.hijacked=function(t){t.propagationStopped||e(t)}),i):s.call(n,t,e,i)}),"function"==typeof n.onclick&&(e=n.onclick,n.addEventListener("click",function(t){e(t)},!1),n.onclick=null)}}var t=0<=navigator.userAgent.indexOf("Windows Phone"),r=0<navigator.userAgent.indexOf("Android")&&!t,o=/iP(ad|hone|od)/.test(navigator.userAgent)&&!t,l=o&&/OS 4_\d(_\d)?/.test(navigator.userAgent),h=o&&/OS [6-7]_\d/.test(navigator.userAgent),s=0<navigator.userAgent.indexOf("BB10");a.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(o&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},a.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!r;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},a.prototype.sendClick=function(t,e){var i;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),e=e.changedTouches[0],(i=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(t),!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),i.forwardedTouchEvent=!0,t.dispatchEvent(i)},a.prototype.determineEventType=function(t){return r&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},a.prototype.focus=function(t){var e;o&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},a.prototype.updateScrollParent=function(t){var e,i=t.fastClickScrollParent;if(!i||!i.contains(t)){e=t;do{if(e.scrollHeight>e.offsetHeight){i=e,t.fastClickScrollParent=e;break}}while(e=e.parentElement)}i&&(i.fastClickLastScrollTop=i.scrollTop)},a.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},a.prototype.onTouchStart=function(t){var e,i,s;if(!(1<t.targetTouches.length)){if(e=this.getTargetElementFromEventTarget(t.target),i=t.targetTouches[0],o){if((s=window.getSelection()).rangeCount&&!s.isCollapsed)return!0;
1if(!l){if(i.identifier&&i.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=i.identifier,this.updateScrollParent(e)}}this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=i.pageX,this.touchStartY=i.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&t.preventDefault()}return!0},a.prototype.touchHasMoved=function(t){var t=t.changedTouches[0],e=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>e||Math.abs(t.pageY-this.touchStartY)>e},a.prototype.onTouchMove=function(t){return this.trackingClick&&(this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0},a.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},a.prototype.onTouchEnd=function(t){var e,i,s,n=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,e=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,h&&(s=t.changedTouches[0],(n=document.elementFromPoint(s.pageX-window.pageXOffset,s.pageY-window.pageYOffset)||n).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(s=n.tagName.toLowerCase())){if(i=this.findControl(n)){if(this.focus(n),r)return!1;n=i}}else if(this.needsFocus(n))return 100<t.timeStamp-e||o&&window.top!==window&&"input"===s?this.targetElement=null:(this.focus(n),this.sendClick(n,t),o&&"select"===s||(this.targetElement=null,t.preventDefault())),!1;return!(!o||l||!(i=n.fastClickScrollParent)||i.fastClickLastScrollTop===i.scrollTop)||(this.needsClick(n)||(t.preventDefault(),this.sendClick(n,t)),!1)},a.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},a.prototype.onMouse=function(t){return!this.targetElement||!(!t.forwardedTouchEvent&&t.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)&&(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),1))},a.prototype.onClick=function(t){return this.trackingClick?(this.targetElement=null,!(this.trackingClick=!1)):"submit"===t.target.type&&0===t.detail||((t=this.onMouse(t))||(this.targetElement=null),t)},a.prototype.destroy=function(){var t=this.layer;r&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},a.notNeeded=function(t){var e,i;if(void 0===window.ontouchstart)return!0;if(i=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!r)return!0;if(e=document.querySelector("meta[name=viewport]")){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(31<i&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(s&&10<=(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]&&3<=i[2]&&(e=document.querySelector("meta[name=viewport]"))){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||!!(27<=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]&&(e=document.querySelector("meta[name=viewport]"))&&(-1!==e.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||"none"===t.style.touchAction||"manipulation"===t.style.touchAction},a.attach=function(t,e){return new a(t,e)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return a}):"undefined"!=typeof module&&module.exports?(module.exports=a.attach,module.exports.FastClick=a):window.FastClick=a})(),(t=>{var h=Array.prototype.slice;function e(){}function i(r){var l;if(r)return l="undefined"==typeof console?e:function(t){},r.bridget=function(t,e){var i,o,a;(i=e).prototype.option||(i.prototype.option=function(t){r.isPlainObject(t)&&(this.options=r.extend(!0,this.options,t))}),o=t,a=e,r.fn[o]=function(e){if("string"!=typeof e)return this.each(function(){var t=r.data(this,o);t?(t.option(e),t._init()):(t=new a(this,e),r.data(this,o,t))});
1for(var t=h.call(arguments,1),i=0,s=this.length;i<s;i++){var n=this[i],n=r.data(n,o);if(n)if(r.isFunction(n[e])&&"_"!==e.charAt(0)){n=n[e].apply(n,t);if(void 0!==n)return n}else l("no such method '"+e+"' for "+o+" instance");else l("cannot call methods on "+o+" prior to initialization; attempted to call '"+e+"'")}return this}},r.bridget}"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):"object"==typeof exports?i(require("jquery")):i(t.jQuery)})(window),(t=>{function i(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}var s,n;function e(t,e){(s(t,e)?o:n)(t,e)}var o="classList"in document.documentElement?(s=function(t,e){return t.classList.contains(e)},n=function(t,e){t.classList.add(e)},function(t,e){t.classList.remove(e)}):(s=function(t,e){return i(e).test(t.className)},n=function(t,e){s(t,e)||(t.className=t.className+" "+e)},function(t,e){t.className=t.className.replace(i(e)," ")}),a={hasClass:s,addClass:n,removeClass:o,toggleClass:e,has:s,add:n,remove:o,toggle:e};"function"==typeof define&&define.amd?define("classie/classie",a):"object"==typeof exports?module.exports=a:t.classie=a})(window),function(){function t(){}var e=t.prototype,i=this,s=i.EventEmitter;function o(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function n(t){return function(){return this[t].apply(this,arguments)}}e.getListeners=function(t){var e,i,s=this._getEvents();if(t instanceof RegExp)for(i in e={},s)s.hasOwnProperty(i)&&t.test(i)&&(e[i]=s[i]);else e=s[t]||(s[t]=[]);return e},e.flattenListeners=function(t){for(var e=[],i=0;i<t.length;
1i+=1)e.push(t[i].listener);return e},e.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&((e={})[t]=i),e||i},e.addListener=function(t,e){var i,s=this.getListenersAsObject(t),n="object"==typeof e;for(i in s)s.hasOwnProperty(i)&&-1===o(s[i],e)&&s[i].push(n?e:{listener:e,once:!1});return this},e.on=n("addListener"),e.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},e.once=n("addOnceListener"),e.defineEvent=function(t){return this.getListeners(t),this},e.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},e.removeListener=function(t,e){var i,s,n=this.getListenersAsObject(t);for(s in n)n.hasOwnProperty(s)&&-1!==(i=o(n[s],e))&&n[s].splice(i,1);return this},e.off=n("removeListener"),e.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},e.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},e.manipulateListeners=function(t,e,i){var s,n,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(s=i.length;s--;)o.call(this,e,i[s]);else for(s in e)e.hasOwnProperty(s)&&(n=e[s])&&("function"==typeof n?o:a).call(this,s,n);return this},e.removeEvent=function(t){var e,i=typeof t,s=this._getEvents();if("string"==i)delete s[t];else if(t instanceof RegExp)for(e in s)s.hasOwnProperty(e)&&t.test(e)&&delete s[e];else delete this._events;return this},e.removeAllListeners=n("removeEvent"),e.emitEvent=function(t,e){var i,s,n,o=this.getListenersAsObject(t);for(n in o)if(o.hasOwnProperty(n))for(s=o[n].length;s--;)!0===(i=o[n][s]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},e.trigger=n("emitEvent"),e.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},e.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},e._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},e._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return i.EventEmitter=s,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:i.EventEmitter=t}.call(this),(i=>{var t=document.documentElement,e=function(){};function s(t){var e=i.event;return e.target=e.target||e.srcElement||t,e}t.addEventListener?e=function(t,e,i){t.addEventListener(e,i,!1)}:t.attachEvent&&(e=function(e,t,i){e[t+i]=i.handleEvent?function(){var t=s(e);i.handleEvent.call(i,t)}:function(){var t=s(e);i.call(e,t)},e.attachEvent("on"+t,e[t+i])});var n=function(){},t=(t.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:t.detachEvent&&(n=function(e,i,s){e.detachEvent("on"+i,e[i+s]);try{delete e[i+s]}catch(t){e[i+s]=void 0}}),{bind:e,unbind:n});"function"==typeof define&&define.amd?define("eventie/eventie",t):"object"==typeof exports?module.exports=t:i.eventie=t})(window),(t=>{var n="Webkit Moz ms Ms O".split(" "),o=document.documentElement.style;function e(t){if(t){if("string"==typeof o[t])return t;var e;t=t.charAt(0).toUpperCase()+t.slice(1);for(var i=0,s=n.length;i<s;i++)if(e=n[i]+t,"string"==typeof o[e])return e}}"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e})(window),(A=>{function M(t){var e=parseFloat(t);return-1===t.indexOf("%")&&!isNaN(e)&&e}var z="undefined"==typeof console?function(){}:function(t){},N=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];function t(S){var D,E,I,P=!1;return function(t){var e,i;if(!P&&(P=!0,e=A.getComputedStyle,i=e?function(t){return e(t,null)}:function(t){return t.currentStyle},D=function(t){t=i(t);return t||z("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t},E=S("boxSizing"))&&((b=document.createElement("div")).style.width="200px",b.style.padding="1px 2px 3px 4px",b.style.borderStyle="solid",b.style.borderWidth="1px 2px 3px 4px",b.style[E]="border-box",(y=document.body||document.documentElement).appendChild(b),u=D(b),I=200===M(u.width),y.removeChild(b)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var s=D(t);if("none"===s.display){for(var n={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},o=0,a=N.length;o<a;o++)n[N[o]]=0;return n}for(var r,l,h,c,d={},u=(d.width=t.offsetWidth,d.height=t.offsetHeight,d.isBorderBox=!(!E||!s[E]||"border-box"!==s[E])),p=0,f=N.length;p<f;p++){var g=N[p],m=s[g],v=(v=t,m=m,c=h=l=r=void 0,A.getComputedStyle||-1===m.indexOf("%")||(r=v.style,l=r.left,(c=(h=v.runtimeStyle)&&h.left)&&(h.left=v.currentStyle.left),r.left=m,m=r.pixelLeft,r.left=l,c&&(h.left=c)),parseFloat(m));d[g]=isNaN(v)?0:v}var y=d.paddingLeft+d.paddingRight,b=d.paddingTop+d.paddingBottom,_=d.marginLeft+d.marginRight,w=d.marginTop+d.marginBottom,k=d.borderLeftWidth+d.borderRightWidth,C=d.borderTopWidth+d.borderBottomWidth,x=u&&I,T=M(s.width),T=(!1!==T&&(d.width=T+(x?0:y+k)),M(s.height));return!1!==T&&(d.height=T+(x?0:b+C)),d.innerWidth=d.width-(y+k),d.innerHeight=d.height-(b+C),d.outerWidth=d.width+_,d.outerHeight=d.height+w,d}}}"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],t):"object"==typeof exports?module.exports=t(require("desandro-get-style-property")):A.getSize=t(A.getStyleProperty)})(window),(e=>{var i=e.document,s=[];function n(t){"function"==typeof t&&(n.isReady?t():s.push(t))}function o(t){t="readystatechange"===t.type&&"complete"!==i.readyState;n.isReady||t||a()}function a(){n.isReady=!0;for(var t=0,e=s.length;t<e;t++)(0,s[t])()}function t(t){return"complete"===i.readyState?a():(t.bind(i,"DOMContentLoaded",o),t.bind(i,"readystatechange",o),t.bind(e,"load",o)),n}n.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],t):"object"==typeof exports?module.exports=t(require("eventie")):e.docReady=t(e.eventie)})(window),(n=>{var t,i=(()=>
1{if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],e=0,i=t.length;e<i;e++){var s=t[e]+"MatchesSelector";if(n[s])return s}})();function s(t,e){return t[i](e)}function o(t){t.parentNode||document.createDocumentFragment().appendChild(t)}t=i?s(document.createElement("div"),"div")?s:function(t,e){return o(t),s(t,e)}:function(t,e){o(t);for(var i=t.parentNode.querySelectorAll(e),s=0,n=i.length;s<n;s++)if(i[s]===t)return!0;return!1},"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):"object"==typeof exports?module.exports=t:window.matchesSelector=t})(Element.prototype),((i,s)=>{"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(t,e){return s(i,t,e)}):"object"==typeof exports?module.exports=s(i,require("doc-ready"),require("desandro-matches-selector")):i.fizzyUIUtils=s(i,i.docReady,i.matchesSelector)})(window,function(d,t,h){var i,u={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Object.prototype.toString,p=(u.isArray=function(t){return"[object Array]"==e.call(t)},u.makeArray=function(t){var e=[];if(u.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0,s=t.length;i<s;i++)e.push(t[i]);else e.push(t);return e},u.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,s=t.length;i<s;i++)if(t[i]===e)return i;return-1},u.removeFrom=function(t,e){e=u.indexOf(t,e);-1!=e&&t.splice(e,1)},u.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1==t.nodeType&&"string"==typeof t.nodeName},u.setText=function(t,e){t[i=i||(void 0!==document.documentElement.textContent?"textContent":"innerText")]=e},u.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,h(t,e))return t},u.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},u.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.filterFindElements=function(t,e){for(var i=[],s=0,n=(t=u.makeArray(t)).length;s<n;s++){var o=t[s];if(u.isElement(o))if(e){h(o,e)&&i.push(o);for(var a=o.querySelectorAll(e),r=0,l=a.length;r<l;r++)i.push(a[r])}else i.push(o)}return i},u.debounceMethod=function(t,e,s){var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o],e=(t&&clearTimeout(t),arguments),i=this;this[o]=setTimeout(function(){n.apply(i,e),delete i[o]},s||100)}},u.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},d.console);return u.htmlInit=function(h,c){t(function(){for(var t=u.toDashed(c),e=document.querySelectorAll(".js-"+t),i="data-"+t+"-options",s=0,n=e.length;s<n;s++){var o,a=e[s],r=a.getAttribute(i);try{o=r&&JSON.parse(r)}catch(t){p&&p.error("Error parsing "+i+" on "+a.nodeName.toLowerCase()+(a.id?"#"+a.id:"")+": "+t);continue}var r=new h(a,o),l=d.jQuery;l&&l.data(a,c,r)}})},u}),((e,i)=>{"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(t){return i(e,t)}):"object"==typeof exports?module.exports=i(e,require("get-size")):(e.Flickity=e.Flickity||{},e.Flickity.Cell=i(e,e.getSize))})(window,function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var s="attachEvent"in t;return i.prototype.create=function(){this.element.style.position="absolute",s&&this.element.setAttribute("unselectable","on"),this.x=0,this.shift=0},i.prototype.destroy=function(){this.element.style.position="";var t=this.parent.originSide;this.element.style[t]=""},i.prototype.getSize=function(){this.size=e(this.element)},i.prototype.setPosition=function(t){this.x=t,this.setDefaultTarget(),this.renderPosition(t)},i.prototype.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},i.prototype.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},i.prototype.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},i.prototype.remove=function(){this.element.parentNode.removeChild(this.element)},i}),((i,s)=>{"function"==typeof define&&define.amd?define("flickity/js/animate",["get-style-property/get-style-property","fizzy-ui-utils/utils"],function(t,e){return s(i,t,e)}):"object"==typeof exports?module.exports=s(i,require("desandro-get-style-property"),require("fizzy-ui-utils")):(i.Flickity=i.Flickity||{},i.Flickity.animatePrototype=s(i,i.getStyleProperty,i.fizzyUIUtils))})(window,function(n,t,e){for(var i,o=0,s="webkit moz ms o".split(" "),a=n.requestAnimationFrame,r=n.cancelAnimationFrame,l=0;l<s.length&&(!a||!r);l++)i=s[l],a=a||n[i+"RequestAnimationFrame"],r=r||n[i+"CancelAnimationFrame"]||n[i+"CancelRequestAnimationFrame"];a&&r||(a=function(t){var e=(new Date).getTime(),i=Math.max(0,16-(e-o)),s=n.setTimeout(function(){t(e+i)},i);return o=e+i,s},r=function(t){n.clearTimeout(t)});var h={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t,e=this.x;this.integratePhysics(),this.positionSlider(),this.settle(e),this.isAnimating&&(t=this,a(function(){t.animate()}))}},c=t("transform"),d=!!t("perspective");return h.positionSlider=function(){var t=this.x,t=(this.options.wrapAround&&1<this.cells.length&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),t+=this.cursorPosition,t=this.options.rightToLeft&&c?
1-t:t,this.getPositionValue(t));c?this.slider.style[c]=d&&this.isAnimating?"translate3d("+t+",0,0)":"translateX("+t+")":this.slider.style[this.originSide]=t},h.positionSliderAtSelected=function(){var t;this.cells.length&&(t=this.cells[this.selectedIndex],this.x=-t.target,this.positionSlider())},h.getPositionValue=function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},h.settle=function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,2<this.restingFrames&&(this.isAnimating=!1,delete this.isFreeScrolling,d&&this.positionSlider(),this.dispatchEvent("settle"))},h.shiftWrapCells=function(t){var e=this.cursorPosition+t,e=(this._shiftCells(this.beforeShiftCells,e,-1),this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition));this._shiftCells(this.afterShiftCells,e,1)},h._shiftCells=function(t,e,i){for(var s=0,n=t.length;s<n;s++){var o=t[s];o.wrapShift(0<e?i:0),e-=o.size.outerWidth}},h._unshiftCells=function(t){if(t&&t.length)for(var e=0,i=t.length;e<i;e++)t[e].wrapShift(0)},h.integratePhysics=function(){this.velocity+=this.accel,this.x+=this.velocity,this.velocity*=this.getFrictionFactor(),this.accel=0},h.applyForce=function(t){this.accel+=t},h.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},h.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},h.applyDragForce=function(){var t;this.isPointerDown&&(t=this.dragX-this.x-this.velocity,this.applyForce(t))},h.applySelectedAttraction=function(){var t,e=this.cells.length;this.isPointerDown||this.isFreeScrolling||!e||(t=this.cells[this.selectedIndex],e=this.options.wrapAround&&1<e?this.slideableWidth*Math.floor(this.selectedIndex/e):0,t=(-1*(t.target+e)-this.x)*this.options.selectedAttraction,this.applyForce(t))},h}),((r,l)=>{var t;"function"==typeof define&&define.amd?define("flickity/js/flickity",["classie/classie","eventEmitter/EventEmitter","eventie/eventie","get-size/get-size","fizzy-ui-utils/utils","./cell","./animate"],function(t,e,i,s,n,o,a){return l(r,t,e,i,s,n,o,a)}):"object"==typeof exports?module.exports=l(r,require("desandro-classie"),require("wolfy87-eventemitter"),require("eventie"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./animate")):(t=r.Flickity,r.Flickity=l(r,r.classie,r.EventEmitter,r.eventie,r.getSize,r.fizzyUIUtils,t.Cell,t.animatePrototype))})(window,function(s,i,t,n,e,a,r,o){var l=s.jQuery,h=s.getComputedStyle,c=s.console;function d(t,e){for(t=a.makeArray(t);t.length;)e.appendChild(t.shift())}var u=0,p={};function f(t,e){var i=a.getQueryElement(t);i?(this.element=i,l&&(this.$element=l(this.element)),this.options=a.extend({},this.constructor.defaults),this.option(e),this._create()):c&&c.error("Bad element for Flickity: "+(i||t))}f.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},f.createMethods=[],a.extend(f.prototype,t.prototype),f.prototype._create=function(){var t=this.guid=++u;this.element.flickityGUID=t,(p[t]=this).selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.accel=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",f.setUnselectable(this.viewport),this._createSlider(),(this.options.resize||this.options.watchCSS)&&(n.bind(s,"resize",this),this.isResizeBound=!0);for(var e=0,i=f.createMethods.length;e<i;e++)this[f.createMethods[e]]();this.options.watchCSS?this.watchCSS():this.activate()},f.prototype.option=function(t){a.extend(this.options,t)},f.prototype.activate=function(){var t;this.isActive||(this.isActive=!0,i.add(this.element,"flickity-enabled"),this.options.rightToLeft&&i.add(this.element,"flickity-rtl"),this.getSize(),d(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,n.bind(this.element,"keydown",this)),this.emit
1("activate"),t=this.options.initialIndex,t=this.isInitActivated?this.selectedIndex:void 0!==t&&this.cells[t]?t:0,this.select(t,!1,!0),this.isInitActivated=!0)},f.prototype._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},f.prototype._filterFindCellElements=function(t){return a.filterFindElements(t,this.options.cellSelector)},f.prototype.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},f.prototype._makeCells=function(t){for(var e=this._filterFindCellElements(t),i=[],s=0,n=e.length;s<n;s++){var o=e[s],o=new r(o,this);i.push(o)}return i},f.prototype.getLastCell=function(){return this.cells[this.cells.length-1]},f.prototype.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},f.prototype._positionCells=function(t){this.maxCellHeight=(t=t||0)&&this.maxCellHeight||0;var e,i,s=0;0<t&&(s=(e=this.cells[t-1]).x+e.size.outerWidth);for(var n=this.cells.length,o=t;o<n;o++)(i=this.cells[o]).setPosition(s),s+=i.size.outerWidth,this.maxCellHeight=Math.max(i.size.outerHeight,this.maxCellHeight);this.slideableWidth=s,this._containCells()},f.prototype._sizeCells=function(t){for(var e=0,i=t.length;e<i;e++)t[e].getSize()},f.prototype._init=f.prototype.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},f.prototype.getSize=function(){this.size=e(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var g,m={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}},v=(f.prototype.setCellAlign=function(){var t=m[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},f.prototype.setGallerySize=function(){this.options.setGallerySize&&(this.viewport.style.height=this.maxCellHeight+"px")},f.prototype._getWrapShiftCells=function(){var t,e;this.options.wrapAround&&(this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells),t=this.cursorPosition,e=this.cells.length-1,this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1))},f.prototype._getGapCells=function(t,e,i){for(var s=[];0<t;){var n=this.cells[e];if(!n)break;s.push(n),e+=i,t-=n.size.outerWidth}return s},f.prototype._containCells=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length)for(var t=this.options.rightToLeft?"marginRight":"marginLeft",e=this.options.rightToLeft?"marginLeft":"marginRight",i=this.cells[0].size[t],t=this.getLastCell(),s=this.slideableWidth-t.size[e],n=s-this.size.innerWidth*(1-this.cellAlign),o=s<this.size.innerWidth,a=0,r=this.cells.length;a<r;a++){var l=this.cells[a];l.setDefaultTarget(),o?l.target=s*this.cellAlign:(l.target=Math.max(l.target,this.cursorPosition+i),l.target=Math.min(l.target,n))}},f.prototype.dispatchEvent=function(t,e,i){var s=[e].concat(i);this.emitEvent(t,s),l&&this.$element&&(e?((s=l.Event(e)).type=t,this.$element.trigger(s,i)):this.$element.trigger(t,i))},f.prototype.select=function(t,e,i){var s;this.isActive&&(t=parseInt(t,10),s=this.cells.length,this.options.wrapAround&&1<s&&(t<0?this.x-=this.slideableWidth:s<=t&&(this.x+=this.slideableWidth)),(this.options.wrapAround||e)&&(t=a.modulo(t,s)),this.cells[t])&&(this.selectedIndex=t,this.setSelectedCell(),i?this.positionSliderAtSelected():this.startAnimation(),this.dispatchEvent("cellSelect"))},f.prototype.previous=function(t){this.select(this.selectedIndex-1,t)},f.prototype.next=function(t){this.select(this.selectedIndex+1,t)},f.prototype.setSelectedCell=function(){this._removeSelectedCellClass(),this.selectedCell=this.cells[this.selectedIndex],this.selectedElement=this.selectedCell.element,i.add(this.selectedElement,"is-selected")},f.prototype._removeSelectedCellClass=function(){this.selectedCell&&i.remove(this.selectedCell.element,"is-selected")},f.prototype.getCell=function(t){for(var e=0,i=this.cells.length;e<i;e++){var s=this.cells[e];if(s.element==t)return s}},f.prototype.getCells=function(t){for(var e=[],i=0,s=(t=a.makeArray(t)).length;i<s;i++){var n=t[i],n=this.getCell(n);n&&e.push(n)}return e},f.prototype.getCellElements=function(){for(var t=[],e=0,i=this.cells.length;e<i;e++)t.push(this.cells[e].element);return t},f.prototype.getParentCell=function(t){var e=this.getCell(t);return e||(t=a.getParent(t,".flickity-slider > *"),this.getCell(t))},f.prototype.getAdjacentCellElements=function(t,e){if(!t)return[this.selectedElement];e=void 0===e?this.selectedIndex:e;var i=this.cells.length;if(i<=1+2*t)return this.getCellElements();for(var s=[],n=e-t;n<=e+t;n++){var o=this.options.wrapAround?a.modulo(n,i):n,o=this.cells[o];o&&s.push(o.element)}return s}
1,f.prototype.uiChange=function(){this.emit("uiChange")},f.prototype.childUIPointerDown=function(t){this.emitEvent("childUIPointerDown",[t])},f.prototype.onresize=function(){this.watchCSS(),this.resize()},a.debounceMethod(f,"onresize",150),f.prototype.resize=function(){this.isActive&&(this.getSize(),this.options.wrapAround&&(this.x=a.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.positionSliderAtSelected())},f.supportsConditionalCSS=function(){var t,e;return void 0!==g?g:h?(t=document.createElement("style"),e=document.createTextNode('body:after { content: "foo"; display: none; }'),t.appendChild(e),document.head.appendChild(t),e=h(document.body,":after").content,g=-1!=e.indexOf("foo"),document.head.removeChild(t),g):void(g=!1)}),y=(f.prototype.watchCSS=function(){var t=this.options.watchCSS;t&&(v()?-1!=h(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate():this["fallbackOn"==t?"activate":"deactivate"]())},f.prototype.onkeydown=function(t){var e;!this.options.accessibility||document.activeElement&&document.activeElement!=this.element||(37==t.keyCode?(e=this.options.rightToLeft?"next":"previous",this.uiChange(),this[e]()):39==t.keyCode&&(e=this.options.rightToLeft?"previous":"next",this.uiChange(),this[e]()))},f.prototype.deactivate=function(){if(this.isActive){i.remove(this.element,"flickity-enabled"),i.remove(this.element,"flickity-rtl");for(var t=0,e=this.cells.length;t<e;t++)this.cells[t].destroy();this._removeSelectedCellClass(),this.element.removeChild(this.viewport),d(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),n.unbind(this.element,"keydown",this)),this.isActive=!1,this.emit("deactivate")}},f.prototype.destroy=function(){this.deactivate(),this.isResizeBound&&n.unbind(s,"resize",this),this.emit("destroy"),l&&this.$element&&l.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete p[this.guid]},a.extend(f.prototype,o),"attachEvent"in s);return f.setUnselectable=function(t){y&&t.setAttribute("unselectable","on")},f.data=function(t){t=(t=a.getQueryElement(t))&&t.flickityGUID;return t&&p[t]},a.htmlInit(f,"flickity"),l&&l.bridget&&l.bridget("flickity",f),f.Cell=r,f}),((i,s)=>{"function"==typeof define&&define.amd?define("unipointer/unipointer",["eventEmitter/EventEmitter","eventie/eventie"],function(t,e){return s(i,t,e)}):"object"==typeof exports?module.exports=s(i,require("wolfy87-eventemitter"),require("eventie")):i.Unipointer=s(i,i.EventEmitter,i.eventie)})(window,function(a,t,r){function e(){}(e.prototype=new t).bindStartEvent=function(t){this._bindStartEvent(t,!0)},e.prototype.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},e.prototype._bindStartEvent=function(t,e){e=(e=void 0===e||!!e)?"bind":"unbind";a.navigator.pointerEnabled?r[e](t,"pointerdown",this):a.navigator.msPointerEnabled?r[e](t,"MSPointerDown",this):(r[e](t,"mousedown",this),r[e](t,"touchstart",this))},e.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},e.prototype.getTouch=function(t){for(var e=0,i=t.length;e<i;e++){var s=t[e];if(s.identifier==this.pointerIdentifier)return s}},e.prototype.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},e.prototype.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},e.prototype.onMSPointerDown=e.prototype.onpointerdown=function(t){this._pointerDown(t,t)},e.prototype._pointerDown=function(t,e){this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},e.prototype.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var l={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"],MSPointerDown:["MSPointerMove","MSPointerUp","MSPointerCancel"]};return e.prototype._bindPostStartEvents=function(t){if(t){for(var e=l[t.type],i=t.preventDefault?a:document,s=0,n=e.length;s<n;s++){var o=e[s];r.bind(i,o,this)}this._boundPointerEvents={events:e,node:i}
1}},e.prototype._unbindPostStartEvents=function(){var t=this._boundPointerEvents;if(t&&t.events){for(var e=0,i=t.events.length;e<i;e++){var s=t.events[e];r.unbind(t.node,s,this)}delete this._boundPointerEvents}},e.prototype.onmousemove=function(t){this._pointerMove(t,t)},e.prototype.onMSPointerMove=e.prototype.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},e.prototype.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},e.prototype._pointerMove=function(t,e){this.pointerMove(t,e)},e.prototype.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},e.prototype.onmouseup=function(t){this._pointerUp(t,t)},e.prototype.onMSPointerUp=e.prototype.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},e.prototype.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},e.prototype._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},e.prototype.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},e.prototype._pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this._unbindPostStartEvents(),this.pointerDone()},e.prototype.pointerDone=function(){},e.prototype.onMSPointerCancel=e.prototype.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},e.prototype.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},e.prototype._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},e.prototype.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},e.getPointerPoint=function(t){return{x:void 0!==t.pageX?t.pageX:t.clientX,y:void 0!==t.pageY?t.pageY:t.clientY}},e}),((i,s)=>{"function"==typeof define&&define.amd?define("unidragger/unidragger",["eventie/eventie","unipointer/unipointer"],function(t,e){return s(i,t,e)}):"object"==typeof exports?module.exports=s(i,require("eventie"),require("unipointer")):i.Unidragger=s(i,i.eventie,i.Unipointer)})(window,function(s,a,n){function o(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function r(){}(r.prototype=new n).bindHandles=function(){this._bindHandles(!0)},r.prototype.unbindHandles=function(){this._bindHandles(!1)};var l=s.navigator;function h(){return!1}r.prototype._bindHandles=function(e){e=void 0===e||!!e,t=l.pointerEnabled?function(t){t.style.touchAction=e?"none":""}:l.msPointerEnabled?function(t){t.style.msTouchAction=e?"none":""}:function(){e&&c(o)};for(var t,i=e?"bind":"unbind",s=0,n=this.handles.length;s<n;s++){var o=this.handles[s];this._bindStartEvent(o,e),t(o),a[i](o,"click",this)}};var c="attachEvent"in document.documentElement?function(t){"IMG"==t.nodeName&&(t.ondragstart=h);for(var e=t.querySelectorAll("img"),i=0,s=e.length;i<s;i++)e[i].ondragstart=h}:function(){},t=(r.prototype.pointerDown=function(t,e){var i;"INPUT"==t.target.nodeName&&"range"==t.target.type?(this.isPointerDown=!1,delete this.pointerIdentifier):(this._dragPointerDown(t,e),(i=document.activeElement)&&i.blur&&i.blur(),this._bindPostStartEvents(t),this.pointerDownScroll=r.getScrollPosition(),a.bind(s,"scroll",this),this.emitEvent("pointerDown",[t,e]))},r.prototype._dragPointerDown=function(t,e){this.pointerDownPoint=n.getPointerPoint(e);var e="touchstart"==t.type,i=t.target.nodeName;e||"SELECT"==i||o(t)},r.prototype.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},r.prototype._dragPointerMove=function(t,e){var i=n.getPointerPoint(e),i={x:i.x-this.pointerDownPoint.x,y:i.y-this.pointerDownPoint.y};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},r.prototype.hasDragStarted=function(t){return 3<Math.abs(t.x)||3<Math.abs(t.y)},r.prototype.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},r.prototype._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},r.prototype.pointerDone=function(){a.unbind(s,"scroll",this)},r.prototype._dragStart=function(t,e){this.isDragging=!0,this.dragStartPoint=r.getPointerPoint(e),this.isPreventing
1Clicks=!0,this.dragStart(t,e)},r.prototype.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},r.prototype._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},r.prototype.dragMove=function(t,e,i){o(t),this.emitEvent("dragMove",[t,e,i])},r.prototype._dragEnd=function(t,e){this.isDragging=!1;var i=this;setTimeout(function(){delete i.isPreventingClicks}),this.dragEnd(t,e)},r.prototype.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},r.prototype.pointerDone=function(){a.unbind(s,"scroll",this),delete this.pointerDownScroll},r.prototype.onclick=function(t){this.isPreventingClicks&&o(t)},r.prototype._staticClick=function(t,e){var i,s;this.isIgnoringMouseUp&&"mouseup"==t.type||("INPUT"!=(i=t.target.nodeName)&&"TEXTAREA"!=i||t.target.focus(),this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,s=this,setTimeout(function(){delete s.isIgnoringMouseUp},400)))},r.prototype.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},r.prototype.onscroll=function(){var t=r.getScrollPosition(),e=this.pointerDownScroll.x-t.x,t=this.pointerDownScroll.y-t.y;(3<Math.abs(e)||3<Math.abs(t))&&this._pointerDone()},r.getPointerPoint=function(t){return{x:void 0!==t.pageX?t.pageX:t.clientX,y:void 0!==t.pageY?t.pageY:t.clientY}},void 0!==s.pageYOffset);return r.getScrollPosition=function(){return{x:t?s.pageXOffset:document.body.scrollLeft,y:t?s.pageYOffset:document.body.scrollTop}},r.getPointerPoint=n.getPointerPoint,r}),((o,a)=>{"function"==typeof define&&define.amd?define("flickity/js/drag",["classie/classie","eventie/eventie","./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(t,e,i,s,n){return a(o,t,e,i,s,n)}):"object"==typeof exports?module.exports=a(o,require("desandro-classie"),require("eventie"),require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):o.Flickity=a(o,o.classie,o.eventie,o.Flickity,o.Unidragger,o.fizzyUIUtils)})(window,function(n,s,o,t,a,r){function l(t){t.preventDefault?t.preventDefault():t.returnValue=!1}r.extend(t.defaults,{draggable:!0,touchVerticalScroll:!0}),t.createMethods.push("_createDrag"),r.extend(t.prototype,a.prototype),t.prototype._createDrag=function(){this.on("activate",this.bindDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.unbindDrag)},t.prototype.bindDrag=function(){this.options.draggable&&!this.isDragBound&&(s.add(this.element,"is-draggable"),this.handles=[this.viewport],this.bindHandles(),this.isDragBound=!0)},t.prototype.unbindDrag=function(){this.isDragBound&&(s.remove(this.element,"is-draggable"),this.unbindHandles(),delete this.isDragBound)},t.prototype._uiChangeDrag=function(){delete this.isFreeScrolling},t.prototype._childUIPointerDownDrag=function(t){l(t),this.pointerDownFocus(t)},t.prototype.pointerDown=function(t,e){var i;"INPUT"==t.target.nodeName&&"range"==t.target.type?(this.isPointerDown=!1,delete this.pointerIdentifier):(this._dragPointerDown(t,e),(i=document.activeElement)&&i.blur&&i!=this.element&&i!=document.body&&i.blur(),this.pointerDownFocus(t),this.dragX=this.x,s.add(this.viewport,"is-pointer-down"),this._bindPostStartEvents(t),this.pointerDownScroll=a.getScrollPosition(),o.bind(n,"scroll",this),this.dispatchEvent("pointerDown",t,[e]))};var e={touchstart:!0,MSPointerDown:!0},i={INPUT:!0,SELECT:!0},h=(t.prototype.pointerDownFocus=function(t){!this.options.accessibility||e[t.type]||i[t.target.nodeName]||(t=n.pageYOffset,this.element.focus(),n.pageYOffset!=t&&n.scrollTo(n.pageXOffset,t))},t.prototype.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.touchVerticalScrollMove(t,e,i),this._dragMove(t,e,i),this.dispatchEvent("pointerMove",t,[e,i])},t.prototype.hasDragStarted=function(t){return!this.isTouchScrolling&&3<Math.abs(t.x)},t.prototype.pointerUp=function(t,e){delete this.isTouchScrolling,s.remove(this.viewport,"is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},{touchmove:!0,MSPointerMove:!0});return t.prototype.touchVerticalScrollMove=function(t,e,i){var s=this.options.touchVerticalScroll;("withDrag"==s||!this.isDragging)&&s&&h[t.type]&&!this.isTouchScrolling&&10<Math.abs(i.y)&&(this.startScrollY=n.pageYOffset,this.pointerWindowStartY=a.getPointerPoint(e).y-n.pageYOffset,this.isTouchScrolling=!0)},t.prototype.dragStart=function(t,e){this.dragStartPosition=this.x,this.startAnimation(),this.dispatchEvent("dragStart",t,[e])}
1,t.prototype.dragMove=function(t,e,i){l(t),this.previousDragX=this.dragX;var s,n=this.options.rightToLeft?-1:1,n=this.dragStartPosition+i.x*n;!this.options.wrapAround&&this.cells.length&&(n=(n=(s=Math.max(-this.cells[0].target,this.dragStartPosition))<n?.5*(n+s):n)<(s=Math.min(-this.getLastCell().target,this.dragStartPosition))?.5*(n+s):n),this.dragX=n,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])},t.prototype.dragEnd=function(t,e){this.options.freeScroll&&(this.isFreeScrolling=!0);var i,s=this.dragEndRestingSelect();this.options.freeScroll&&!this.options.wrapAround?(i=this.getRestingPosition(),this.isFreeScrolling=-i>this.cells[0].target&&-i<this.getLastCell().target):this.options.freeScroll||s!=this.selectedIndex||(s+=this.dragEndBoostSelect()),delete this.previousDragX,this.select(s),this.dispatchEvent("dragEnd",t,[e])},t.prototype.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getCellDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),t=this._getClosestResting(t,e,-1);return(i.distance<t.distance?i:t).index},t.prototype._getClosestResting=function(t,e,i){for(var s=this.selectedIndex,n=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,n)&&(n=e,null!==(e=this.getCellDistance(-t,s+=i)));)e=Math.abs(e);return{distance:n,index:s-i}},t.prototype.getCellDistance=function(t,e){var i=this.cells.length,s=this.options.wrapAround&&1<i,n=s?r.modulo(e,i):e,n=this.cells[n];return n?(s=s?this.slideableWidth*Math.floor(e/i):0,t-(n.target+s)):null},t.prototype.dragEndBoostSelect=function(){var t,e;return void 0===this.previousDragX||!this.dragMoveTime||100<new Date-this.dragMoveTime?0:(t=this.getCellDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX,0<t&&0<e?1:t<0&&e<0?-1:0)},t.prototype.staticClick=function(t,e){var i=this.getParentCell(t.target),s=i&&i.element,i=i&&r.indexOf(this.cells,i);this.dispatchEvent("staticClick",t,[e,s,i])},t}),((e,i)=>{"function"==typeof define&&define.amd?define("tap-listener/tap-listener",["unipointer/unipointer"],function(t){return i(e,t)}):"object"==typeof exports?module.exports=i(e,require("unipointer")):e.TapListener=i(e,e.Unipointer)})(window,function(a,r){function t(t){this.bindTap(t)}(t.prototype=new r).bindTap=function(t){t&&(this.unbindTap(),this.tapElement=t,this._bindStartEvent(t,!0))},t.prototype.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)};var e=t.prototype.pointerDown,l=(t.prototype.pointerDown=function(t){"touchstart"==t.type&&((t=t).preventDefault?t.preventDefault():t.returnValue=!1),e.apply(this,arguments)},void 0!==a.pageYOffset);return t.prototype.pointerUp=function(t,e){var i=r.getPointerPoint(e),s=this.tapElement.getBoundingClientRect(),n=l?a.pageXOffset:document.body.scrollLeft,o=l?a.pageYOffset:document.body.scrollTop;i.x>=s.left+n&&i.x<=s.right+n&&i.y>=s.top+o&&i.y<=s.bottom+o&&this.emitEvent("tap",[t,e])},t.prototype.destroy=function(){this.pointerDone(),this.unbindTap()},t}),((t,n)=>{"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["eventie/eventie","./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(t,e,i,s){return n(0,t,e,i,s)}):"object"==typeof exports?module.exports=n(0,require("eventie"),require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):n(0,t.eventie,t.Flickity,t.TapListener,t.fizzyUIUtils)})(window,function(t,e,s,i,n){var o,a="http://www.w3.org/2000/svg",r=function(){var t;return void 0===o&&((t=document.createElement("div")).innerHTML="<svg/>",o=(t.firstChild&&t.firstChild.namespaceURI)==a),o};function l(t,e){this.direction=t,this.parent=e,this._create()}return(l.prototype=new i)._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t,e=this.parent.options.rightToLeft?1:-1,e=(this.isLeft=this.direction==e,this.element=document.createElement("button")),i=(e.className="flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),s.setUnselectable(e),r()?(t=this.createSVG(),e.appendChild(t)):(this.setArrowText(),e.className+=" no-svg"),this);this.onCellSelect=function(){i.update()},this.parent.on("cellSelect",this.onCellSelect),this.on("tap",this.onTap),this.on("pointerDown",function(t,e){i.parent.childUIPointerDown(e)})},l.prototype.activate=function(){this.bindTap(this.element),e.bind(this.element,"click",this),this.parent.element.appendChild(this.element)},l.prototype.deactivate=function(){this.parent.element.removeChild(this.element),i.prototype.destroy.call(this),e.unbind(this.element,"click",this)},l.prototype.createSVG=function(){var t=document.createElementNS(a,"svg"),e=(t.setAttribute("viewBox","0 0 100 100"),document.createElementNS(a,"path")),i="string"!=typeof(i=this.parent.options.arrowShape)?"M "+i.x0+",50 L "+i.x1+","+(i.y1+50)+" L "+i.x2+","+(i.y2+50)+" L "+i.x3+",50 L "+i.x2+","+(50-i.y2)+" L "+i.x1+","+(50-i.y1)+" Z":i;return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},l.prototype.setArrowText=function(){var t=this.parent.options,t=this.isLeft?t.leftArrowText:t.rightArrowText;n.setText(this.element,t)},l.prototype.onTap=function(){var t;this.isEnabled&&(this.parent.uiChange(),t=this.isPrevious?"previous":"next",this.parent[t]())},l.prototype.handleEvent=n.handleEvent,l.prototype.onclick=function(){var t=document.activeElement;t&&t==this.element&&this.onTap()},l.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},l.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},l.prototype.update=function(){var t=this.parent.cells;this.parent.options.wrapAround&&1<t.length?this.enable():(t=t.length?t.length-1:0,t=this.isPrevious?0:t,this[this.parent.selectedIndex==t?"disable":"enable"]())},l.prototype.destroy=function(){this.deactivate()},n.extend(s.defaults,{prevNextButtons:!0,leftArrowText:"â¹",rightArrowText:"âº",arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),s.createMethods.push("_createPrevNextButtons"),s.prototype._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new l(-1,this),this.nextButton=new l(1,this),this.on("activate",this.activatePrevNextButtons))},s.prototype.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},s.prototype.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},s.PrevNextButton=l,s}),((t,n)=>{"function"==typeof define&&define.amd?define("flickity/js/page-dots",["eventie/eventie","./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(t,e,
1i,s){return n(0,0,e,i,s)}):"object"==typeof exports?module.exports=n(0,require("eventie"),require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):n(0,t.eventie,t.Flickity,t.TapListener,t.fizzyUIUtils)})(window,function(t,e,s,i,n){function o(t){this.parent=t,this._create()}return(o.prototype=new i)._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",s.setUnselectable(this.holder),this.dots=[];var i=this;this.onCellSelect=function(){i.updateSelected()},this.parent.on("cellSelect",this.onCellSelect),this.on("tap",this.onTap),this.on("pointerDown",function(t,e){i.parent.childUIPointerDown(e)})},o.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),i.prototype.destroy.call(this)},o.prototype.setDots=function(){var t=this.parent.cells.length-this.dots.length;0<t?this.addDots(t):t<0&&this.removeDots(-t)},o.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[];t;){var s=document.createElement("li");s.className="dot",e.appendChild(s),i.push(s),t--}this.holder.appendChild(e),this.dots=this.dots.concat(i)},o.prototype.removeDots=function(t){for(var e=this.dots.splice(this.dots.length-t,t),i=0,s=e.length;i<s;i++){var n=e[i];this.holder.removeChild(n)}},o.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot"),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected")},o.prototype.onTap=function(t){var t=t.target;"LI"==t.nodeName&&(this.parent.uiChange(),t=n.indexOf(this.dots,t),this.parent.select(t))},o.prototype.destroy=function(){this.deactivate()},s.PageDots=o,n.extend(s.defaults,{pageDots:!0}),s.createMethods.push("_createPageDots"),s.prototype._createPageDots=function(){this.options.pageDots&&(this.pageDots=new o(this),this.on("activate",this.activatePageDots),this.on("cellAddedRemoved",this.onCellAddedRemovedPageDots),this.on("deactivate",this.deactivatePageDots))},s.prototype.activatePageDots=function(){this.pageDots.activate()},s.prototype.onCellAddedRemovedPageDots=function(){this.pageDots.setDots()},s.prototype.deactivatePageDots=function(){this.pageDots.deactivate()},s.PageDots=o,s}),((t,e)=>{"function"==typeof define&&define.amd?define("flickity/js/player",["eventEmitter/EventEmitter","eventie/eventie","fizzy-ui-utils/utils","./flickity"],e):"object"==typeof exports?module.exports=e(require("wolfy87-eventemitter"),require("eventie"),require("fizzy-ui-utils"),require("./flickity")):e(t.EventEmitter,t.eventie,t.fizzyUIUtils,t.Flickity)})(window,function(t,e,i,s){var n,o;function a(t){var e;this.isPlaying=!1,this.parent=t,o&&((e=this).onVisibilityChange=function(){e.visibilityChange()})}return"hidden"in document?(n="hidden",o="visibilitychange"):"webkitHidden"in document&&(n="webkitHidden",o="webkitvisibilitychange"),(a.prototype=new t).play=function(){this.isPlaying=!0,delete this.isPaused,o&&document.addEventListener(o,this.onVisibilityChange,!1),this.tick()},a.prototype.tick=function(){var t,e;this.isPlaying&&!this.isPaused&&(this.tickTime=new Date,t="number"==typeof(t=this.parent.options.autoPlay)?t:3e3,(e=this).timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t))},a.prototype.stop=function(){this.isPlaying=!1,delete this.isPaused,this.clear(),o&&document.removeEventListener(o,this.onVisibilityChange,!1)},a.prototype.clear=function(){clearTimeout(this.timeout)},a.prototype.pause=function(){this.isPlaying&&(this.isPaused=!0,this.clear())},a.prototype.unpause=function(){this.isPaused&&this.play()},a.prototype.visibilityChange=function(){this[document[n]?"pause":"unpause"]()},i.extend(s.defaults,{pauseAutoPlayOnHover:!0}),s.createMethods.push("_createPlayer"),s.prototype._createPlayer=function(){this.player=new a(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},s.prototype.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),e.bind(this.element,"mouseenter",this),this.isMouseenterBound=!0)},s.prototype.stopPlayer=function(){this.player.stop()},s.prototype.deactivatePlayer=function(){this.player.stop(),this.isMouseenterBound&&(e.unbind(this.element,"mouseenter",this),delete this.isMouseenterBound)},s.prototype.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),e.bind(this.element,"mouseleave",this))},s.prototype.onmouseleave=function(){this.player.unpause(),e.unbind(this.element,"mouseleave",this)},s.Player=a,s}),((t,i)=>{"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(t,e){return i(0,t,e)}):"object"==typeof exports?module.exports=i(0,require("./flickity"),require("fizzy-ui-utils")):i(0,t.Flickity,t.fizzyUIUtils)})(window,function(t,e,a){return e.prototype.insert=function(t,e){var i,s,n,o,t=this._makeCells(t);t&&t.length&&(i=this.cells.length,e=void 0===e?i:e,n=(t=>{for(var e=document.createDocumentFragment(),i=0,s=t.length;i<s;i++){var n=t[i];e.appendChild(n.element)}return e})(t),(s=e==i)?this.slider.appendChild(n):(o=this.cells[e].element,this.slider.insertBefore(n,o)),0===e?this.cells=t.concat(this.cells):s?this.cells=this.cells.concat(t):(n=this.cells.splice(e,i-e),this.cells=this.cells.concat(t).concat(n)),this._sizeCells(t),o=e>this.selectedIndex?0:t.length,this._cellAddedRemoved(e,o))},e.prototype.append=function(t){this.insert(t,this.cells.length)},e.prototype.prepend=function(t){this.insert(t,0)},e.prototype.remove=function(t){for(var e=this.getCells(t),i=0,s=0,n=e.length;s<n;s++){var o=e[s];i-=a.indexOf(this.cells,o)<this.selectedIndex?1:0}for(s=0,n=e.length;s<n;s++)(o=e[s]).remove(),a.removeFrom(this.cells,o);e.length&&this._cellAddedRemoved(0,i)},e.prototype._cellAddedRemoved=function(t,e){this.selectedIndex+=e=e||0,this.selectedIndex=Math.max(0,Math.min(this.cells.length-1,this.selectedIndex)),this.emitEvent("cellAddedRemoved",[t,e]),this.cellChange(t,!0)},e.prototype.cellSizeChange=function(t){var t=this.getCell(t);t&&(t.getSize(),t=a.indexOf(this.cells,t),this.cellChange(t))},e.prototype.cellChange=function(t,e){var i=this.slideableWidth;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize(),this.options.freeScroll?(this.x+=i-this.slideableWidth,this.positionSlider()):(e&&this.positionSliderAtSelected(),this.select(this.selectedIndex))},e}),((t,n)=>{"function"==typeof define&&define.amd?define("flickity/js/lazyload",["classie/classie","eventie/eventie","./flickity","fizzy-ui-utils/utils"],function(t,e,
1i,s){return n(0,t,e,i,s)}):"object"==typeof exports?module.exports=n(0,require("desandro-classie"),require("eventie"),require("./flickity"),require("fizzy-ui-utils")):n(0,t.classie,t.eventie,t.Flickity,t.fizzyUIUtils)})(window,function(t,s,n,e,a){function r(t,e){this.img=t,this.flickity=e,this.load()}return e.createMethods.push("_createLazyload"),e.prototype._createLazyload=function(){this.on("cellSelect",this.lazyLoad)},e.prototype.lazyLoad=function(){var t=this.options.lazyLoad;if(t){for(var e=this.getAdjacentCellElements("number"==typeof t?t:0),i=[],s=0,n=e.length;s<n;s++)var o=(t=>"IMG"==t.nodeName&&t.getAttribute("data-flickity-lazyload")?[t]:(t=t.querySelectorAll("img[data-flickity-lazyload]"),a.makeArray(t)))(e[s]),i=i.concat(o);for(s=0,n=i.length;s<n;s++)new r(i[s],this)}},r.prototype.handleEvent=a.handleEvent,r.prototype.load=function(){n.bind(this.img,"load",this),n.bind(this.img,"error",this),this.img.src=this.img.getAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload")},r.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},r.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},r.prototype.complete=function(t,e){n.unbind(this.img,"load",this),n.unbind(this.img,"error",this);var i=this.flickity.getParentCell(this.img),i=i&&i.element;this.flickity.cellSizeChange(i),s.add(this.img,e),this.flickity.dispatchEvent("lazyLoad",t,i)},e.LazyLoader=r,e}),(t=>{"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],t):"object"==typeof exports&&(module.exports=t(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))})((window,function(t){return t})),((t,s)=>{"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["classie/classie","flickity/js/index","fizzy-ui-utils/utils"],function(t,e,i){return s(0,t,e,i)}):"object"==typeof exports?module.exports=s(0,require("desandro-classie"),require("flickity"),require("fizzy-ui-utils")):t.Flickity=s(0,t.classie,t.Flickity,t.fizzyUIUtils)})(window,function(t,e,i,s){return i.createMethods.push("_createAsNavFor"),i.prototype._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t,e=this.options.asNavFor;e&&(t=this,setTimeout(function(){t.setNavCompanion(e)}))},i.prototype.setNavCompanion=function(t){t=s.getQueryElement(t);var e,t=i.data(t);t&&t!=this&&(this.navCompanion=t,(e=this).onNavCompanionSelect=function(){e.navCompanionSelect()},t.on("cellSelect",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect())},i.prototype.navCompanionSelect=function(){var t;this.navCompanion&&(t=this.navCompanion.selectedIndex,this.select(t),this.removeNavSelectedElement(),this.selectedIndex==t)&&(this.navSelectedElement=this.cells[t].element,e.add(this.navSelectedElement,"is-nav-selected"))},i.prototype.activateAsNavFor=function(){this.navCompanionSelect()},i.prototype.removeNavSelectedElement=function(){this.navSelectedElement&&(e.remove(this.navSelectedElement,"is-nav-selected"),delete this.navSelectedElement)},i.prototype.onNavStaticClick=function(t,e,i,s){"number"==typeof s&&this.navCompanion.select(s)},i.prototype.deactivateAsNavFor=function(){this.removeNavSelectedElement()},i.prototype.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("cellSelect",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},i}),((i,s)=>{"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["eventEmitter/EventEmitter","eventie/eventie"],function(t,e){return s(i,t,e)}):"object"==typeof module&&module.exports?module.exports=s(i,require("wolfy87-eventemitter"),require("eventie")):i.imagesLoaded=s(i,i.EventEmitter,i.eventie)})(window,function(e,t,i){var n=e.jQuery,s=e.console;function o(t,e){for(var i in e)t[i]=e[i];return t}var a=Object.prototype.toString;function r(t){var e=[];
1if("[object Array]"==a.call(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}function l(t,e,i){if(!(this instanceof l))return new l(t,e,i);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=r(t),this.options=o({},this.options),"function"==typeof e?i=e:o(this.options,e),i&&this.on("always",i),this.getImages(),n&&(this.jqDeferred=new n.Deferred);var s=this;setTimeout(function(){s.check()})}(l.prototype=new t).options={},l.prototype.getImages=function(){this.images=[];for(var t=0;t<this.elements.length;t++){var e=this.elements[t];this.addElementImages(e)}},l.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&h[e]){for(var i=t.querySelectorAll("img"),s=0;s<i.length;s++){var n=i[s];this.addImage(n)}if("string"==typeof this.options.background)for(var o=t.querySelectorAll(this.options.background),s=0;s<o.length;s++){var a=o[s];this.addElementBackgroundImages(a)}}};var h={1:!0,9:!0,11:!0},c=(l.prototype.addElementBackgroundImages=function(t){for(var e=c(t),i=/url\(['"]*([^'"\)]+)['"]*\)/gi,s=i.exec(e.backgroundImage);null!==s;){var n=s&&s[1];n&&this.addBackground(n,t),s=i.exec(e.backgroundImage)}},e.getComputedStyle||function(t){return t.currentStyle});function d(t){this.img=t}function u(t,e){this.url=t,this.element=e,this.img=new Image}return l.prototype.addImage=function(t){t=new d(t);this.images.push(t)},l.prototype.addBackground=function(t,e){t=new u(t,e);this.images.push(t)},l.prototype.check=function(){var s=this;if(this.progressedCount=0,this.hasAnyBroken=!1,this.images.length)for(var t=0;t<this.images.length;t++){var e=this.images[t];e.once("progress",i),e.check()}else this.complete();function i(t,e,i){setTimeout(function(){s.progress(t,e,i)})}},l.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emit("progress",this,t,e),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&s&&s.log("progress: "+i,t,e)},l.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emit(t,this),this.emit("always",this),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(d.prototype=new t).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,i.bind(this.proxyImage,"load",this),i.bind(this.proxyImage,"error",this),i.bind(this.img,"load",this),i.bind(this.img,"error",this),this.proxyImage.src=this.img.src)},d.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("progress",this,this.img,e)},d.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},d.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},d.prototype.unbindEvents=function(){i.unbind(this.proxyImage,"load",this),i.unbind(this.proxyImage,"error",this),i.unbind(this.img,"load",this),i.unbind(this.img,"error",this)},(u.prototype=new d).check=function(){i.bind(this.img,"load",this),i.bind(this.img,"error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},u.prototype.unbindEvents=function(){i.unbind(this.img,"load",this),i.unbind(this.img,"error",this)},u.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("progress",this,this.element,e)},(l.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(t,e){return new l(this,t,e).jqDeferred.promise(n(this))})})(),l}),((t,i)=>{"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(t,e){return i(0,t,e)}):"object"==typeof exports?module.exports=i(0,require("flickity"),require("imagesloaded")):t.Flickity=i(0,t.Flickity,t.imagesLoaded)})(window,function(t,e,s){return e.createMethods.push("_createImagesLoaded"),e.prototype._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},e.prototype.imagesLoaded=function(){var i;this.options.imagesLoaded&&s((i=this).slider).on("progress",function(t,e){e=i.getParentCell(e.img),i.cellSizeChange(e&&e.element),i.options.freeScroll||i.positionSliderAtSelected()})},e}),(t=>{"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)})(function(h){var s,o=window.Slick||{};s=0,(o=function(t,e){var i=this;i.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:h(t),appendDots:h(t),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return'<button type="button" data-role="none" role="button" aria-required="false" tabindex="0">'+(e+1)+"</button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!1,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},i.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
1sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},h.extend(i,i.initials),i.activeBreakpoint=null,i.animType=null,i.animProp=null,i.breakpoints=[],i.breakpointSettings=[],i.cssTransitions=!1,i.hidden="hidden",i.paused=!1,i.positionProp=null,i.respondTo=null,i.rowCount=1,i.shouldClick=!0,i.$slider=h(t),i.$slidesCache=null,i.transformType=null,i.transitionType=null,i.visibilityChange="visibilitychange",i.windowWidth=0,i.windowTimer=null,t=h(t).data("slick")||{},i.options=h.extend({},i.defaults,t,e),i.currentSlide=i.options.initialSlide,i.originalSettings=i.options,void 0!==document.mozHidden?(i.hidden="mozHidden",i.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(i.hidden="webkitHidden",i.visibilityChange="webkitvisibilitychange"),i.autoPlay=h.proxy(i.autoPlay,i),i.autoPlayClear=h.proxy(i.autoPlayClear,i),i.changeSlide=h.proxy(i.changeSlide,i),i.clickHandler=h.proxy(i.clickHandler,i),i.selectHandler=h.proxy(i.selectHandler,i),i.setPosition=h.proxy(i.setPosition,i),i.swipeHandler=h.proxy(i.swipeHandler,i),i.dragHandler=h.proxy(i.dragHandler,i),i.keyHandler=h.proxy(i.keyHandler,i),i.autoPlayIterator=h.proxy(i.autoPlayIterator,i),i.instanceUid=s++,i.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,i.registerBreakpoints(),i.init(!0),i.checkResponsive(!0)}).prototype.addSlide=o.prototype.slickAdd=function(t,e,i){var s=this;if("boolean"==typeof e)i=e,e=null;else if(e<0||e>=s.slideCount)return!1;s.unload(),"number"==typeof e?0===e&&0===s.$slides.length?h(t).appendTo(s.$slideTrack):i?h(t).insertBefore(s.$slides.eq(e)):h(t).insertAfter(s.$slides.eq(e)):!0===i?h(t).prependTo(s.$slideTrack):h(t).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(t,e){h(e).attr("data-slick-index",t)}),s.$slidesCache=s.$slides,s.reinit()},o.prototype.animateHeight=function(){var t;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(t=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.animate({height:t},this.options.speed))},o.prototype.animateSlide=function(t,e){var i={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(t=-t),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:t},s.options.speed,s.options.easing,e):s.$slideTrack.animate({top:t},s.options.speed,s.options.easing,e):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),h({animStart:s.currentLeft}).animate({animStart:t},{duration:s.options.speed,easing:s.options.easing,step:function(t){t=Math.ceil(t),!1===s.options.vertical?i[s.animType]="translate("+t+"px, 0px)":i[s.animType]="translate(0px,"+t+"px)",s.$slideTrack.css(i)},complete:function(){e&&e.call()}})):(s.applyTransition(),t=Math.ceil(t),!1===s.options.vertical?i[s.animType]="translate3d("+t+"px, 0px, 0px)":i[s.animType]="translate3d(0px,"+t+"px, 0px)",s.$slideTrack.css(i),e&&setTimeout(function(){s.disableTransition(),e.call()},s.options.speed))},o.prototype.asNavFor=function(e){var t=this.options.asNavFor;null!==(t=t&&null!==t?h(t).not(this.$slider):t)&&"object"==typeof t&&t.each(function(){var t=h(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},o.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,(!1===e.options.fade?e.$slideTrack:e.$slides.eq(t)).css(i)},o.prototype.autoPlay=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer),this.slideCount>this.options.slidesToShow&&!0!==this.paused&&(this.autoPlayTimer=setInterval(this.autoPlayIterator,this.options.autoplaySpeed))},o.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},o.prototype.autoPlayIterator=function(){var t=this;!1===t.options.infinite?1===t.direction?(t.currentSlide+1===t.slideCount-1&&(t.direction=0),t.slideHandler(t.currentSlide+t.options.slidesToScroll)):(t.currentSlide-1==0&&(t.direction=1),t.slideHandler(t.currentSlide-t.options.slidesToScroll)):t.slideHandler(t.currentSlide+t.options.slidesToScroll)},o.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=h(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=h(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},o.prototype.buildDots=function(){var t,e,i=this;if(!0===i.options.dots&&i.slideCount>
vendor: 4,307 bytes, line 1
1i.options.slidesToShow){for(e='<ul class="'+i.options.dotsClass+'">',t=0;t<=i.getDotCount();t+=1)e+="<li>"+i.options.customPaging.call(this,i,t)+"</li>";i.$dots=h(e+="</ul>").appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},o.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){h(e).attr("data-slick-index",t).data("originalStyling",h(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?h('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),h("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},o.prototype.buildRows=function(){var t,e,i,s=this,n=document.createDocumentFragment(),o=s.$slider.children();if(1<s.options.rows){for(i=s.options.slidesPerRow*s.options.rows,e=Math.ceil(o.length/i),t=0;t<e;t++){for(var a=document.createElement("div"),r=0;r<s.options.rows;r++){for(var l=document.createElement("div"),h=0;h<s.options.slidesPerRow;h++){var c=t*i+(r*s.options.slidesPerRow+h);o.get(c)&&l.appendChild(o.get(c))}a.appendChild(l)}n.appendChild(a)}s.$slider.html(n),s.$slider.children().children().children().css({width:100/s.options.slidesPerRow+"%",display:"inline-block"})}},o.prototype.checkResponsive=function(t,e){var i,s,n,o=this,a=!1,r=o.$slider.width(),l=window.innerWidth||h(window).width();if("window"===o.respondTo?n=l:"slider"===o.respondTo?n=r:"min"===o.respondTo&&(n=Math.min(l,r)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(i in s=null,o.breakpoints)o.breakpoints.hasOwnProperty(i)&&(!1===o.originalSettings.mobileFirst?n<o.breakpoints[i]&&(s=o.breakpoints[i]):n>o.breakpoints[i]&&(s=o.breakpoints[i]));null!==s?null!==o.activeBreakpoint&&s===o.activeBreakpoint&&!e||(o.activeBreakpoint=s,"unslick"===o.breakpointSettings[s]?o.unslick(s):(o.options=h.extend({},o.originalSettings,o.breakpointSettings[s]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),a=s):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t),a=s),t||!1===a||o.$slider.trigger("breakpoint",[o,a])}},o.prototype.changeSlide=function(t,e){var i,s=this,n=h(t.target);switch(n.is("a")&&t.preventDefault(),n.is("li")||(n=n.closest("li")),i=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.data.message){case"previous":o=0==i?s.options.slidesToScroll:s.options.slidesToShow-i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-o,!1,e);break;case"next":o=0==i?s.options.slidesToScroll:i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+o,!1,e);break;case"index":var o=0===t.data.index?0:t.data.index||n.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(o),!1,e),n.children().trigger("focus");break;default:return}},o.prototype.checkNavigable=function(t){var e=this.getNavigableIndexes(),i=0;if(t>e[e.length-1])t=e[e.length-1];else for(var s in e){if(t<e[s]){t=i;break}i=e[s]}return t},o.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(h("li",t.$dots).off("click.slick",t.changeSlide),!0===t.options.pauseOnDotsHover)&&!0===t.options.autoplay&&h("li",t.$dots).off("mouseenter.slick",h.proxy(t.setPaused,t,!0)).off("mouseleave.slick",h.proxy(t.setPaused,t,!1)),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow)&&t.$nextArrow.off("click.slick",t.changeSlide),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.
1slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),h(document).off(t.visibilityChange,t.visibility),t.$list.off("mouseenter.slick",h.proxy(t.setPaused,t,!0)),t.$list.off("mouseleave.slick",h.proxy(t.setPaused,t,!1)),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&h(t.$slideTrack).children().off("click.slick",t.selectHandler),h(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),h(window).off("resize.slick.slick-"+t.instanceUid,t.resize),h("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),h(window).off("load.slick.slick-"+t.instanceUid,t.setPosition),h(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)},o.prototype.cleanUpRows=function(){var t;1<this.options.rows&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.html(t))},o.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},o.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),h(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow))&&e.$prevArrow.remove(),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow))&&e.$nextArrow.remove(),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){h(this).attr("style",h(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.unslicked=!0,t||e.$slider.trigger("destroy",[e])},o.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(t)).css(e)},o.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},o.prototype.fadeSlideOut=function(t){!1===this.cssTransitions?this.$slides.eq(t).animate({opacity:0,zIndex:this.options.zIndex-2},this.options.speed,this.options.easing):(this.applyTransition(t),this.$slides.eq(t).css({opacity:0,zIndex:this.options.zIndex-2}))},o.prototype.filterSlides=o.prototype.slickFilter=function(t){null!==t&&(this.$slidesCache=this.$slides,this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.filter(t).appendTo(this.$slideTrack),this.reinit())},o.prototype.getCurrent=o.prototype.slickCurrentSlide=function(){return this.currentSlide},o.prototype.getDotCount=function(){var t=this,e=0,i=0,s=0;if(!0===t.options.infinite)for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)s=t.slideCount;else for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return s-1},o.prototype.getLeft=function(t){var e,i=this,s=0;return i.slideOffset=0,e=i.$slides.first().outerHeight(!0),!0===i.options.infinite?(i.slideCount>i.options.slidesToShow&&(i.slideOffset=i.slideWidth*i.options.slidesToShow*-1,s=e*i.options.slidesToShow*-1),i.slideCount%i.options.slidesToScroll!=0&&t+i.options.slidesToScroll>i.slideCount&&i.slideCount>i.options.slidesToShow&&(s=t>i.slideCount?(i.slideOffset=(i.options.slidesToShow-(t-i.slideCount))*i.slideWidth*-1,(i.options.slidesToShow-(t-i.slideCount))*e*-1):(i.slideOffset=i.slideCount%i.options.slidesToScroll*i.slideWidth*-1,i.slideCount%i.options.slidesToScroll*e*-1))):t+i.options.slidesToShow>i.slideCount&&(i.slideOffset=(t+i.options.slidesToShow-i.slideCount)*i.slideWidth,s=(t+i.options.slidesToShow-i.slideCount)*e),i.slideCount<=i.options.slidesToShow&&(s=i.slideOffset=0),!0===i.options.centerMode&&!0===i.options.infinite?i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)-i.slideWidth:!0===i.options.centerMode&&(i.slideOffset=0,i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)),e=!1===i.options.vertical?t*i.slideWidth*-1+i.slideOffset:t*e*-1+s,!0===i.options.variableWidth&&(s=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(t):i.$slideTrack.children(".slick-slide").eq(t+i.options.slidesToShow),e=!0===i.options.rtl?s[0]?-1*(i.$slideTrack.width()-s[0].offsetLeft-s.width()):0:s[0]?-1*s[0].offsetLeft:0,!0===i.options.centerMode)&&(s=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(t):i.$slideTrack.children(".slick-slide").eq(t+i.options.slidesToShow+1),e=!0===i.options.rtl?s[0]?-1*(i.$slideTrack.width()-s[0].offsetLeft-s.width()):0:s[0]?-1*s[0].offsetLeft:0,e+=(i.$list.width()-s.outerWidth())/2),e},o.prototype.getOption=o.prototype.slickGetOption=function(t){return this.options[t]},o.prototype.getNavigableIndexes=function(){for(var t=this,e=0,i=0,s=[],n=!1===t.options.infinite?t.slideCount:(e=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,2*t.slideCount);e<n;)s.push(e),e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return s},o.prototype.getSlick=function(){return this},o.prototype.getSlideCount=function(){var i,s=this,n=!0===s.options.centerMode?s.slideWidth*Math.floor(s.options.slidesToShow/2):0;return!0===s.options.swipeToSlide?(s.$slideTrack.find(".slick-slide").each(function(t,e){return e.offsetLeft-n+h(e).outerWidth()/2>-1*s.swipeLeft?(i=e,!1):void 0}),Math.abs(h(i).attr("data-slick-index")-s.currentSlide)||1):s.options.slidesToScroll},o.prototype.goTo=o.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:
1parseInt(t)}},e)},o.prototype.init=function(t){var e=this;h(e.$slider).hasClass("slick-initialized")||(h(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA()},o.prototype.initArrowEvents=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.on("click.slick",{message:"previous"},this.changeSlide),this.$nextArrow.on("click.slick",{message:"next"},this.changeSlide))},o.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&h("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&!0===t.options.autoplay&&h("li",t.$dots).on("mouseenter.slick",h.proxy(t.setPaused,t,!0)).on("mouseleave.slick",h.proxy(t.setPaused,t,!1))},o.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
1,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),h(document).on(t.visibilityChange,h.proxy(t.visibility,t)),t.$list.on("mouseenter.slick",h.proxy(t.setPaused,t,!0)),t.$list.on("mouseleave.slick",h.proxy(t.setPaused,t,!1)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&h(t.$slideTrack).children().on("click.slick",t.selectHandler),h(window).on("orientationchange.slick.slick-"+t.instanceUid,h.proxy(t.orientationChange,t)),h(window).on("resize.slick.slick-"+t.instanceUid,h.proxy(t.resize,t)),h("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),h(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),h(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)},o.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show(),!0===t.options.autoplay&&t.autoPlay()},o.prototype.keyHandler=function(t){t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===this.options.accessibility?this.changeSlide({data:{message:"previous"}}):39===t.keyCode&&!0===this.options.accessibility&&this.changeSlide({data:{message:"next"}}))},o.prototype.lazyLoad=function(){function t(t){h("img[data-lazy]",t).each(function(){var t=h(this),e=h(this).attr("data-lazy"),i=document.createElement("img");i.onload=function(){t.animate({opacity:0}
1,100,function(){t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy").removeClass("slick-loading")})})},i.src=e})}var e,i,s=this;!0===s.options.centerMode?i=!0===s.options.infinite?(e=s.currentSlide+(s.options.slidesToShow/2+1))+s.options.slidesToShow+2:(e=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),s.options.slidesToShow/2+1+2+s.currentSlide):(i=(e=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide)+s.options.slidesToShow,!0===s.options.fade&&(0<e&&e--,i<=s.slideCount)&&i++),t(s.$slider.find(".slick-slide").slice(e,i)),s.slideCount<=s.options.slidesToShow?t(s.$slider.find(".slick-slide")):s.currentSlide>=s.slideCount-s.options.slidesToShow?t(s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow)):0===s.currentSlide&&t(s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow))},o.prototype.loadSlider=function(){this.setPosition(),this.$slideTrack.css({opacity:1}),this.$slider.removeClass("slick-loading"),this.initUI(),"progressive"===this.options.lazyLoad&&this.progressiveLazyLoad()},o.prototype.next=o.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},o.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},o.prototype.pause=o.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},o.prototype.play=o.prototype.slickPlay=function(){this.paused=!1,this.autoPlay()},o.prototype.postSlide=function(t){var e=this;e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),!(e.swipeLeft=null)===e.options.autoplay&&!1===e.paused&&e.autoPlay(),!0===e.options.accessibility&&e.initADA()},o.prototype.prev=o.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},o.prototype.preventDefault=function(t){t.preventDefault()},o.prototype.progressiveLazyLoad=function(){var t,e=this;0<h("img[data-lazy]",e.$slider).length&&((t=h("img[data-lazy]",e.$slider).first()).attr("src",null),t.attr("src",t.attr("data-lazy")).removeClass("slick-loading").load(function(){t.removeAttr("data-lazy"),e.progressiveLazyLoad(),!0===e.options.adaptiveHeight&&e.setPosition()}).error(function(){t.removeAttr("data-lazy"),e.progressiveLazyLoad()}))},o.prototype.refresh=function(t){var e=this,i=e.slideCount-e.options.slidesToShow;e.options.infinite||(e.slideCount<=e.options.slidesToShow?e.currentSlide=0:e.currentSlide>i&&(e.currentSlide=i)),i=e.currentSlide,e.destroy(!0),h.extend(e,e.initials,{currentSlide:i}),e.init(),t||e.changeSlide({data:{message:"index",index:i}},!1)},o.prototype.registerBreakpoints=function(){var t,e,i,s=this,n=s.options.responsive||null;if("array"===h.type(n)&&n.length){for(t in s.respondTo=s.options.respondTo||"window",n)if(i=s.breakpoints.length-1,e=n[t].breakpoint,n.hasOwnProperty(t)){for(;0<=i;)s.breakpoints[i]&&s.breakpoints[i]===e&&s.breakpoints.splice(i,1),i--;s.breakpoints.push(e),s.breakpointSettings[e]=n[t].settings}s.breakpoints.sort(function(t,e){return s.options.mobileFirst?t-e:e-t})}},o.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&h(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses(0),t.setPosition(),t.$slider.trigger("reInit",[t]),!0===t.options.autoplay&&t.focusHandler()},o.prototype.resize=function(){var t=this;h(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=h(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},o.prototype.removeSlide=o.prototype.slickRemove=function(t,e,i){var s=this;return t="boolean"==typeof t?!0===(e=t)?0:s.slideCount-1:!0===e?--t:t,!(s.slideCount<1||t<0||t>s.slideCount-1)&&(s.unload(),(!0===i?s.$slideTrack.children():s.$slideTrack.children(this.options.slide).eq(t)).remove(),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slidesCache=s.$slides,void s.reinit())},o.prototype.setCSS=function(t){var e,i,s=this,n={};
vendor: 1,446 bytes, line 1
1!0===s.options.rtl&&(t=-t),e="left"==s.positionProp?Math.ceil(t)+"px":"0px",i="top"==s.positionProp?Math.ceil(t)+"px":"0px",n[s.positionProp]=t,!1!==s.transformsEnabled&&(!(n={})===s.cssTransitions?n[s.animType]="translate("+e+", "+i+")":n[s.animType]="translate3d("+e+", "+i+", 0px)"),s.$slideTrack.css(n)},o.prototype.setDimensions=function(){var t=this,e=(!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length))),t.$slides.first().outerWidth(!0)-t.$slides.first().width());!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},o.prototype.setFade=function(){var i,s=this;s.$slides.each(function(t,e){i=s.slideWidth*t*-1,!0===s.options.rtl?h(e).css({position:"relative",right:i,top:0,zIndex:s.options.zIndex-2,opacity:0}
1):h(e).css({position:"relative",left:i,top:0,zIndex:s.options.zIndex-2,opacity:0})}),s.$slides.eq(s.currentSlide).css({zIndex:s.options.zIndex-1,opacity:1})},o.prototype.setHeight=function(){var t;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(t=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.css("height",t))},o.prototype.setOption=o.prototype.slickSetOption=function(t,e,i){var s,n;if("responsive"===t&&"array"===h.type(e))for(n in e)if("array"!==h.type(this.options.responsive))this.options.responsive=[e[n]];else{for(s=this.options.responsive.length-1;0<=s;)this.options.responsive[s].breakpoint===e[n].breakpoint&&this.options.responsive.splice(s,1),s--;this.options.responsive.push(e[n])}else this.options[t]=e;!0===i&&(this.unload(),this.reinit())},o.prototype.setPosition=function(){this.setDimensions(),this.setHeight(),!1===this.options.fade?this.setCSS(this.getLeft(this.currentSlide)):this.setFade(),this.$slider.trigger("setPosition",[this])},o.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0!==t.options.useCSS||(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty)&&void 0===e.webkitPerspective&&(t.animType=!1),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty)&&void 0===e.MozPerspective&&(t.animType=!1),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty)&&void 0===e.webkitPerspective&&(t.animType=!1),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform)&&(t.animType=!1),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},o.prototype.setSlideClasses=function(t){var e,i,s=this,n=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");s.$slides.eq(t).addClass("slick-current"),!0===s.options.centerMode?(i=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&((i<=t&&t<=s.slideCount-1-i?s.$slides.slice(t-i,t+i+1):(e=s.options.slidesToShow+t,n.slice(e-i+1,e+i+2))).addClass("slick-active").attr("aria-hidden","false"),0===t?n.eq(n.length-1-s.options.slidesToShow).addClass("slick-center"):t===s.slideCount-1&&n.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(t).addClass("slick-center")):(0<=t&&t<=s.slideCount-s.options.slidesToShow?s.$slides.slice(t,t+s.options.slidesToShow):n.length<=s.options.slidesToShow?n:(i=s.slideCount%s.options.slidesToShow,e=!0===s.options.infinite?s.options.slidesToShow+t:t,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-t<s.options.slidesToShow?n.slice(e-(s.options.slidesToShow-i),e+i):n.slice(e,e+s.options.slidesToShow))).addClass("slick-active").attr("aria-hidden","false"),"ondemand"===s.options.lazyLoad&&s.lazyLoad()},o.prototype.setupInfinite=function(){var t,e,i,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(e=null,s.slideCount>s.options.slidesToShow)){for(i=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,t=s.slideCount;t>s.slideCount-i;--t)h(s.$slides[e=t-1]).clone(!0).attr("id","").attr("data-slick-index",e-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(t=0;t<i;t+=1)e=t,h(s.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){h(this).attr("id","")})}},o.prototype.setPaused=function(t){!0===this.options.autoplay&&!0===this.options.pauseOnHover&&((this.paused=t)?this.autoPlayClear():this.autoPlay())},o.prototype.selectHandler=function(t){t=h(t.target).is(".slick-slide")?h(t.target):h(t.target).parents(".slick-slide"),t=(t=parseInt(t.attr("data-slick-index")))||0;return this.slideCount<=this.options.slidesToShow?(this.setSlideClasses(t),void this.asNavFor(t)):void this.slideHandler(t)}
1,o.prototype.slideHandler=function(t,e,i){var s,n,o,a=this;return e=e||!1,!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===t||a.slideCount<=a.options.slidesToShow?void 0:(!1===e&&a.asNavFor(t),s=t,e=a.getLeft(s),o=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?o:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(t<0||t>a.getDotCount()*a.options.slidesToScroll)||!1===a.options.infinite&&!0===a.options.centerMode&&(t<0||t>a.slideCount-a.options.slidesToScroll)?void(!1===a.options.fade&&(s=a.currentSlide,!0!==i?a.animateSlide(o,function(){a.postSlide(s)}):a.postSlide(s))):(!0===a.options.autoplay&&clearInterval(a.autoPlayTimer),n=s<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+s:s>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:s-a.slideCount:s,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,n]),t=a.currentSlide,a.currentSlide=n,a.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade?(!0!==i?(a.fadeSlideOut(t),a.fadeSlide(n,function(){a.postSlide(n)})):a.postSlide(n),void a.animateHeight()):void(!0!==i?a.animateSlide(e,function(){a.postSlide(n)}):a.postSlide(n))))},o.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},o.prototype.swipeDirection=function(){var t=this.touchObject.startX-this.touchObject.curX,e=this.touchObject.startY-this.touchObject.curY,e=Math.atan2(e,t),t=Math.round(180*e/Math.PI);return(t=t<0?360-Math.abs(t):t)<=45&&0<=t||t<=360&&315<=t?!1===this.options.rtl?"left":"right":135<=t&&t<=225?!1===this.options.rtl?"right":"left":!0===this.options.verticalSwiping?35<=t&&t<=135?"left":"right":"vertical"},o.prototype.swipeEnd=function(t){var e,i=this;if(i.dragging=!1,i.shouldClick=!(10<i.touchObject.swipeLength),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe)switch(i.swipeDirection()){case"left":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.slideHandler(e),i.currentDirection=0,i.touchObject={},i.$slider.trigger("swipe",[i,"left"]);break;case"right":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.slideHandler(e),i.currentDirection=1,i.touchObject={},i.$slider.trigger("swipe",[i,"right"])}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},o.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},o.prototype.swipeMove=function(t){var e,i,s=this,n=void 0!==t.originalEvent?t.originalEvent.touches:null;return!(!s.dragging||n&&1!==n.length)&&(e=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==n?n[0].pageX:t.clientX,s.touchObject.curY=void 0!==n?n[0].pageY:t.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2)))),"vertical"!==(n=s.swipeDirection())?(void 0!==t.originalEvent&&4<s.touchObject.swipeLength&&t.preventDefault(),t=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(t=s.touchObject.curY>s.touchObject.startY?1:-1),i=s.touchObject.swipeLength,(s.touchObject.edgeHit=!1)===s.options.infinite&&(0===s.currentSlide&&"right"===n||s.currentSlide>=s.getDotCount()&&"left"===n)&&(i=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=e+i*t:s.swipeLeft=e+i*(s.$list.height()/s.listWidth)*t,!0===s.options.verticalSwiping&&(s.swipeLeft=e+i*t),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))):void 0)},o.prototype.swipeStart=function(t){var e;return 1!==this.touchObject.fingerCount||this.slideCount<=this.options.slidesToShow?!(this.touchObject={}):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),this.touchObject.startX=this.touchObject.curX=void 0!==e?e.pageX:t.clientX,this.touchObject.startY=this.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(this.dragging=!0))},o.prototype.unfilterSlides=o.prototype.slickUnfilter=function(){null!==this.$slidesCache&&(this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.appendTo(this.$slideTrack),this.reinit())},o.prototype.unload=function(){var t=this;h(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
1,o.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},o.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2);!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},o.prototype.updateDots=function(){null!==this.$dots&&(this.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),this.$dots.find("li").eq(Math.floor(this.currentSlide/this.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},o.prototype.visibility=function(){document[this.hidden]?(this.paused=!0,this.autoPlayClear()):!0===this.options.autoplay&&(this.paused=!1,this.autoPlay())},o.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){h(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+t})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(t){h(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+t,id:"slick-slide"+e.instanceUid+t})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},o.prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},o.prototype.focusHandler=function(){var i=this;i.$slider.on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var e=h(this);setTimeout(function(){i.isPlay&&(e.is(":focus")?(i.autoPlayClear(),i.paused=!0):(i.paused=!1,i.autoPlay()))},0)})},h.fn.slick=function(){for(var t,e=arguments[0],i=Array.prototype.slice.call(arguments,1),s=this.length,n=0;n<s;n++)if("object"==typeof e||void 0===e?this[n].slick=new o(this[n],e):t=this[n].slick[e].apply(this[n].slick,i),void 0!==t)return t;return this}});var Blob,json={},jsonas={b:{name:"Bakalauro studijos",id:9,slug:"b",areas:[{name:"Fiziniai mokslai",id:137,slug:"b-physical-sciences",fields:[]},{name:"Humanitariniai mokslai",id:144,slug:"b-humanities",fields:[]},{name:"Informatikos mokslai",id:136,slug:"b-informatics",fields:[]},{name:"Inžinerijos mokslai",id:138,slug:"b-engineering",fields:[]},{name:"Matematikos mokslai",id:135,slug:"b-math",fields:[]},{name:"Menai",id:145,slug:"b-arts",fields:[]},{name:"Socialiniai mokslai",id:141,slug:"b-social-sciences",fields:[]},{name:"Technologijų mokslai",id:139,slug:"b-technologies",fields:[]},{name:"Ugdymo mokslai",id:143,slug:"b-education",fields:[]},{name:"Verslo ir viešoji vadyba",id:142,slug:"b-management",fields:[]}]},c:{name:"Vientisosios studijos",id:130,slug:"c",areas:[{name:"Menai",id:157,slug:"c-arts",fields:[]}]},m:{name:"Magistrantūros studijos",id:16,slug:"m",areas:[{name:"Fiziniai mokslai",id:148,slug:"m-physical-sciences",fields:[]},{name:"Humanitariniai mokslai",id:155,slug:"m-humanities",fields:[]},{name:"Informatikos mokslai",id:147,slug:"m-informatics",fields:[]},{name:"Inžinerijos mokslai",id:149,slug:"m-engineering",fields:[]},{name:"Matematikos mokslai",id:146,slug:"m-math",fields:[]},{name:"Menai",id:156,slug:"m-arts",fields:[]},{name:"Socialiniai mokslai",id:152,slug:"m-social-sciences",fields:[]},{name:"Sveikatos mokslai",id:151,slug:"m-health-sciences",fields:[]},{name:"Technologijų mokslai",id:150,slug:"m-technologies",fields:[]},{name:"Ugdymo mokslai",id:154,slug:"m-education",fields:[]},{name:"Verslo ir viešoji vadyba",id:153,slug:"m-management",fields:[]}]}
1,d:{name:"DoktorantÅ«ros studijos",id:99,slug:"d",areas:[{name:"Fiziniai mokslai",id:160,slug:"d-physical-sciences",fields:[]},{name:"Humanitariniai mokslai",id:167,slug:"d-humanitarian-sciences",fields:[]},{name:"Socialiniai mokslai",id:164,slug:"d-social-sciences",fields:[]},{name:"Technologijos mokslai",id:162,slug:"d-technological-sciences",fields:[]}]},n:{name:"ProfesinÄs studijos",id:169,slug:"n",areas:[{name:"Ugdymo mokslai",id:170,slug:"n-education",fields:[]}]}},saveAs=((t=>{t.fn.customerPopup=function(t,e,i,s){t.preventDefault(),e=e||"500",i=i||"400",strResize=s?"yes":"no";t=void 0!==this.attr("title")?this.attr("title"):"Social Share",s="width="+e+",height="+i+",resizable="+strResize;window.open(this.attr("href"),t,s).focus()},t(document).ready(function(e){e(".ktu-social-share").on("click",function(t){e(this).customerPopup(t)})})})(jQuery),saveAs||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||(p=>{var f,i,g,m,v,y,o,b,_,w,t,k,s,e,n;if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent))return f=p.document,i=p.URL||p.webkitURL||p,g=f.createElementNS("http://www.w3.org/1999/xhtml","a"),m=!p.externalHost&&"download"in g,v=p.webkitRequestFileSystem,y=p.requestFileSystem||v||p.mozRequestFileSystem,o=function(t){(p.setImmediate||p.setTimeout)(function(){throw t},0)},b="application/octet-stream",_=0,w=[],t=function(){for(var t=w.length;t--;){var e=w[t];"string"==typeof e?i.revokeObjectURL(e):e.remove()}w.length=0},k=function(t,e,i){for(var s=(e=[].concat(e)).length;s--;){var n=t["on"+e[s]];if("function"==typeof n)try{n.call(t,i||t)}catch(t){o(t)}}},n=function(t,e){return new s(t,e)},(e=(s=function(s,i){function n(){!h&&t||(t=c(s)),a?a.location.href=t:window.open(t,"_blank"),r.readyState=r.DONE,d()}function o(t){return function(){if(r.readyState!==r.DONE)return t.apply(this,arguments)}}var t,a,e,r=this,l=s.type,h=!1,c=function(){var t=(p.URL||p.webkitURL||p).createObjectURL(s);return w.push(t),t},d=function(){k(r,"writestart progress write writeend".split(" "))},u={create:!0,exclusive:!1};r.readyState=r.INIT,i=i||"download",m?(t=c(s),f=p.document,(g=f.createElementNS("http://www.w3.org/1999/xhtml","a")).href=t,g.download=i,(e=f.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,p,0,0,0,0,0,!1,!1,!1,!1,0,null),g.dispatchEvent(e),r.readyState=r.DONE,d()):(p.chrome&&l&&l!==b&&(e=s.slice||s.webkitSlice,s=e.call(s,0,s.size,b),h=!0),v&&"download"!==i&&(i+=".download"),l!==b&&!v||(a=p),y?(_+=s.size,y(p.TEMPORARY,_,o(function(t){t.root.getDirectory("saved",u,o(function(t){function e(){t.getFile(i,u,o(function(i){i.createWriter(o(function(e){e.onwriteend=function(t){a.location.href=i.toURL(),w.push(i),r.readyState=r.DONE,k(r,"writeend",t)},e.onerror=function(){var t=e.error;t.code!==t.ABORT_ERR&&n()},"writestart progress write abort".split(" ").forEach(function(t){e["on"+t]=r["on"+t]}),e.write(s),r.abort=function(){e.abort(),r.readyState=r.DONE},r.readyState=r.WRITING}),n)}),n)}t.getFile(i,{create:!1},o(function(t){t.remove(),e()}),o(function(t){(t.code===t.NOT_FOUND_ERR?e:n)()}))}),n)}),n)):n())}).prototype).abort=function(){this.readyState=this.DONE,k(this,"abort")},e.readyState=e.INIT=0,e.WRITING=1,e.DONE=2,e.error=e.onwritestart=e.onprogress=e.onwrite=e.onabort=e.onerror=e.onwriteend=null,p.addEventListener("unload",t,!1),n.unload=function(){t(),p.removeEventListener("unload",t,!1)},n})("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content)),ics=("undefined"!=typeof module&&(module.exports=saveAs),("function"!=typeof Blob&&"object"!=typeof Blob||"undefined"==typeof URL)&&("function"!=typeof Blob&&"object"!=typeof Blob||"undefined"==typeof webkitURL?Blob=(t=>{var o=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder||(t=>{function r(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]}function e(){this.data=[]}function l(t,e,i){this.data=t,this.size=t.length,this.type=e,this.encoding=i}function h(t){this.code=this[this.name=t]}var i=e.prototype,s=l.prototype,c=t.FileReaderSync,n="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ER
1R INVALID_STATE_ERR SYNTAX_ERR".split(" "),o=n.length,a=t.URL||t.webkitURL||t,d=a.createObjectURL,u=a.revokeObjectURL,p=a,f=t.btoa,g=t.atob,m=t.ArrayBuffer,v=t.Uint8Array;for(l.fake=s.fake=!0;o--;)h.prototype[n[o]]=o+1;return(p=a.createObjectURL?p:t.URL={}).createObjectURL=function(t){var e=t.type;return null===e&&(e="application/octet-stream"),t instanceof l?(e="data:"+e,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):f?e+";base64,"+f(t.data):e+","+encodeURIComponent(t.data)):d?d.call(a,t):void 0},p.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&u&&u.call(a,t)},i.append=function(t){var e=this.data;if(v&&(t instanceof m||t instanceof v)){for(var i="",s=new v(t),n=0,o=s.length;n<o;n++)i+=String.fromCharCode(s[n]);e.push(i)}else if("Blob"===r(t)||"File"===r(t)){if(!c)throw new h("NOT_READABLE_ERR");var a=new c;e.push(a.readAsBinaryString(t))}else t instanceof l?"base64"===t.encoding&&g?e.push(g(t.data)):"URI"===t.encoding?e.push(decodeURIComponent(t.data)):"raw"===t.encoding&&e.push(t.data):("string"!=typeof t&&(t+=""),e.push(unescape(encodeURIComponent(t))))},i.getBlob=function(t){return arguments.length||(t=null),new l(this.data.join(""),t,"raw")},i.toString=function(){return"[object BlobBuilder]"},s.slice=function(t,e,i){var s=arguments.length;return s<3&&(i=null),new l(this.data.slice(t,1<s?e:this.data.length),i,this.encoding)},s.toString=function(){return"[object Blob]"},e})(t);return function(t,e){var e=e&&e.type||"",i=new o;if(t)for(var s=0,n=t.length;s<n;s++)i.append(t[s]);return i.getBlob(e)}})("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this):self.URL=webkitURL),function(){var v,y,n,o;if(!(-1<navigator.userAgent.indexOf("MSIE")&&-1==navigator.userAgent.indexOf("MSIE 10")))return v=-1!==navigator.appVersion.indexOf("Win")?"\r\n":"\n",y=[],n=["BEGIN:VCALENDAR","VERSION:2.0"].join(v),o=v+"END:VCALENDAR",{events:function(){return y},calendar:function(){return n+v+y.join(v)+o},addEvent:function(t,e,i,s,n){if(void 0===t||void 0===e||void 0===i||void 0===s||void 0===n)return!1;var s=new Date(s),n=new Date(n),o=("0000"+s.getFullYear().toString()).slice(-4),a=("00"+(s.getMonth()+1).toString()).slice(-2),r=("00"+s.getDate().toString()).slice(-2),l=("00"+s.getHours().toString()).slice(-2),h=("00"+s.getMinutes().toString()).slice(-2),s=("00"+s.getMinutes().toString()).slice(-2),c=("0000"+n.getFullYear().toString()).slice(-4),d=("00"+(n.getMonth()+1).toString()).slice(-2),u=("00"+n.getDate().toString()).slice(-2),p=("00"+n.getHours().toString()).slice(-2),f=("00"+n.getMinutes().toString()).slice(-2),n=("00"+n.getMinutes().toString()).slice(-2),g="",m="";h+s+f+n!=0&&(g="T"+l+h+s,m="T"+p+f+n);l=["BEGIN:VEVENT","CLASS:PUBLIC","DESCRIPTION:"+e,"DTSTART;VALUE=DATE:"+(o+a+r+g),"DTEND;VALUE=DATE:"+(c+d+u+m),"LOCATION:"+i,"SUMMARY;LANGUAGE=en-us:"+t,"TRANSP:TRANSPARENT","END:VEVENT"].join(v);return y.push(l),l},download:function(t,e){if(y.length<1)return!1;e=void 0!==e?e:".ics",t=void 0!==t?t:"calendar";var i=n+v+y.join(v)+o,s=-1===navigator.userAgent.indexOf("MSIE 10")?new Blob([i]):((s=new BlobBuilder).append(i),s.getBlob("text/x-vCalendar;charset="+document.characterSet));return saveAs(s,t+e),i}}}),ics=function(){var v,y,n,o;if(!(-1<navigator.userAgent.indexOf("MSIE")&&-1==navigator.userAgent.indexOf("MSIE 10")))return v=-1!==navigator.appVersion.indexOf("Win")?"\r\n":"\n",y=[],n=["BEGIN:VCALENDAR","VERSION:2.0"].join(v),o=v+"END:VCALENDAR",{events:function(){return y},calendar:function(){return n+v+y.join(v)+o},addEvent:function(t,e,i,s,n){if(void 0===t||void 0===e||void 0===i||void 0===s||void 0===n)return!1;var s=new Date(s),n=new Date(n),o=("0000"+s.getFullYear().toString()).slice(-4),a=("00"+(s.getMonth()+1).toString()).slice(-2),r=("00"+s.getDate().toString()).slice(-2),l=("00"+s.getHours().toString()).slice(-2),h=("00"+s.getMinutes().toString()).slice(-2),s=("00"+s.getMinutes().toString()).slice(-2),c=("0000"+n.getFullYear().toString()).slice(-4),d=("00"+(n.getMonth()+1).toString()).slice(-2),u=("00"+n.getDate().toString()).slice(-2),p=("00"+n.getHours().toString()).slice(-2),f=("00"+n.getMinutes().toString()).slice(-2),n=("00"+n.getMinutes().toString()).slice(-2),g="",m="";h+s+f+n!=0&&(g="T"+l+h+s,m="T"+p+f+n);l=["BEGIN:VEVENT","CLASS:PUBLIC","DESCRIPTION:"+e,"DTSTART;VALUE=DATE:"+(o+a+r+g),"DTEND;VALUE=DATE:"+(c+d+u+m),"LOCATION:"+i,"SUMMARY;LANGUAGE=en-us:"+t,"TRANSP:TRANSPARENT","END:VEVENT"].join(v);return y.push(l),l},download:function(t,e){if(y.length<1)return!1;e=void 0!==e?e:".ics",t=void 0!==t?t:"calendar";var i=n+v+y.join(v)+o,s=-1===navigator.userAgent.indexOf("MSIE 10")?new Blob([i]):((s=new BlobBuilder).append(i),s.getBlob("text/x-vCalendar;charset="+document.characterSet));return saveAs(s,t+e),i}}},markersCount=0,openInfoWindow=null,infowindows=[],saveAs=((r=>{var l=0,h=0,c=0,d=0,u=0,p=0;function t(t){var e=t.find(".marker"),i={zoom:14,center:new google.maps.LatLng(0,0),mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:!1},a=new google.maps.Map(t[0],i);return a.facultiesMarkers=[],a.institutesMarkers=[],a.markers=[],e.each(function(){var e,t=r(this),i=a,s="/wp-content/themes/ktu",n=new google.maps.LatLng(t.attr("data-lat"),t.attr("data-lng")),o=new google.maps.Marker({position:n,map:i});"institutas2"===t.data("type")?(o.category="institutas2",h++,o.setIcon(s+"/public/images/map-markers/ktu-marker-"+h+".png")):o.category=t.data("type"),"fakultetas"===t.data("type")&&(l++,o.setIcon(s+"/public/images/map-markers/ktu-marker-"+l+".png")),"centrai"===t.data("type")&&(d++,o.setIcon(s+"/public/images/map-markers/ktu-marker-"+d+".png")),"departamentai"===t.data("type")&&(c++,o.setIcon(s+"/public/images/map-markers/ktu-marker-"+c+".png")),"susijusios"===t.data("type")&&(p++,o.setIcon(s+"/public/images/map-markers/ktu-marker-"+p+".png")),"kiti"===t.data("type")&&(u++,o.setIcon(s+"/public/images/map-markers/ktu-marker-"+u+".png")),i.markers.push(o),t.html()&&(markersCount++,e=new google.maps.InfoWindow({content:t.html()}),infowindows.push(e),google.maps.event.addListener(o,"click",function(){for(var t=0;t<infowindows.length;t++)infowindows[t].close();e.open(i,o),openInfoWindow=e}),r(".places-list a.mark-"+t.data("order")).hover(function(){for(var t=0;t<infowindows.length;t++)infowindows[t].close();o.setZIndex(999),e.open(i,o),openInfoWindow=e},function(){openInfoWindow.close(),o.setZIndex(1)}))}),t.hasClass("contacts-block-map")?s(a,-.0025):s(a,0),a}function e(t,e){for(var i=0;i<t.markers.length;i++)t.markers[i].category===e?t.markers[i].setVisible(!0):t.markers[i].setVisible(!1)}function s(t,i){var s=new google.maps.LatLngBounds;r.each(t.markers,function(t,e){e=new google.maps.LatLng(e.position.lat(),e.position.lng()+i);s.extend(e)}),1==t.markers.length?(t.setCenter(s.getCenter()),t.setZoom(16)):t.fitBounds(s)}var i=null;r(document).ready(function(){function s(){setTimeout(function(){void 0!==window.google&&(r(".acf-map:has(.marker)").each(function(){t(r(this))}),r(".contacts-block-map:has(.marker)").each(function(){t(r(this))}),r(".general-contacts-block-map:has(.marker)").each(function(){e(i=t(r(this)),"fakultetas")})),r(".places-list .panel-title").click(function(){var t=r(this).data("type");e(i,t),void 0!==openInfoWindow&&openInfoWindow.close()})},100)}
1function n(){setTimeout(function(){var t="lt_LT"===r("#langHelper").data("locale")?"Norint matyti šį turinį turite sutikti su visais slapukais.<br />Spauskite Äia, kad sutikti.":"Click to accept marketing cookies and enable this content",e=r(".acf-map, .contacts-block-map, .general-contacts-block-map"),i=r("button.google-maps-consent").length;!0===cmplz_has_consent("marketing")||i?s():(e.each(function(){r(this).append("<button class='google-maps-consent'>"+t+"</button>")}),r("button.google-maps-consent").on("click keydown",function(t){"click"!==t.type&&"Enter"!==t.key&&13!==t.keyCode||(r("#cmplz-cookiebanner-container .cmplz-btn.cmplz-accept").click(),r("button.google-maps-consent").remove(),n())}))},100)}window.initMap=function(){s()},n(),r(document).on("cmplz_enable_category",function(t){n()})})})(jQuery),saveAs||(r=>{var l,h,c,d,u,p,e,f,g,s,t;if(!(void 0===r||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent)))return t=r.document,l=function(){return r.URL||r.webkitURL||r},h=t.createElementNS("http://www.w3.org/1999/xhtml","a"),c="download"in h,d=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent),p=function(t){(r.setImmediate||r.setTimeout)(function(){throw t},0)},e=4e4,f=function(t){setTimeout(function(){"string"==typeof t?l().revokeObjectURL(t):t.remove()},e)},g=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},t=(s=function(t,i,e){e||(t=g(t));var s,n,o=this,e="application/octet-stream"===t.type,a=function(){for(var t=o,e="writestart progress write writeend".split(" "),i=void 0,s=(e=[].concat(e)).length;s--;){var n=t["on"+e[s]];if("function"==typeof n)try{n.call(t,i||t)}catch(t){p(t)}}};o.readyState=o.INIT,c?(s=l().createObjectURL(t),setTimeout(function(){var t,e;h.href=s,h.download=i,t=h,e=new MouseEvent("click"),t.dispatchEvent(e),a(),f(s),o.readyState=o.DONE})):(u||e&&d)&&r.FileReader?((n=new FileReader).onloadend=function(){var t=u?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");r.open(t,"_blank")||(r.location.href=t),o.readyState=o.DONE,a()},n.readAsDataURL(t),o.readyState=o.INIT):(s=s||l().createObjectURL(t),!e&&r.open(s,"_blank")||(r.location.href=s),o.readyState=o.DONE,a(),f(s))}).prototype,"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,i){return e=e||t.name||"download",i||(t=g(t)),navigator.msSaveOrOpenBlob(t,e)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(t,e,i){return new s(t,e||t.name||"download",i)})})("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content)),vCard=("undefined"!=typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!=typeof define&&null!==define&&null!==define.amd&&define("FileSaver.js",function(){return saveAs}),function(){var i="";return{init:function(){i=""},name:function(t,e){i=i+"N:"+e+";"+t+"\n"},cell:function(t){i=i+"TEL;TYPE=CELL:"+t+"\n"},work:function(t){i=i+"TEL;TYPE=WORK,VOICE:"+t+"\n"},other:function(t){i=i+"TEL;TYPE=OTHER:"+t+"\n"},email:function(t){i=i+"EMAIL;TYPE=PREF,INTERNET:"+t+"\n"},get:function(t){var e=new Blob(["BEGIN:VCARD\nVERSION:3.0\n"+i+"END:VCARD"],{type:"text/plain;charset=utf-8"});saveAs(e,t+".vcf")}}});if((()=>{function s(){function t(){var s={width:a.width/a.naturalWidth,height:a.height/a.naturalHeight};o.forEach(function(t,e){var i=0;n[e].coords=t.split(",").map(function(t){var e=1==(i=1-i)?"width":"height";return Math.floor(Number(t)*s[e])}).join(",")})}function e(t){return t.coords.replace(/ *, */g,",").replace(/ +/g,",")}function i(){clearTimeout(r),r=setTimeout(t,250)}var s=this,n=null,o=null,a=null,r=null;"function"==typeof s._resize?s._resize():(n=s.getElementsByTagName("area"),o=Array.prototype.map.call(n,e),a=document.querySelector('img[usemap="#'+s.name+'"]'),s._resize=t,a.addEventListener("load",t,!1),window.addEventListener("focus",t,!1),window.addEventListener("resize",i,!1),window.addEventListener("readystatechange",t,!1),document.addEventListener("fullscreenchange",t,!1),a.width===a.naturalWi
1dth&&a.height===a.naturalHeight||t())}function t(){function e(t){if(t){var e=t;if(!e.tagName)throw new TypeError("Object is not a valid DOM element");if("MAP"!==e.tagName.toUpperCase())throw new TypeError("Expected <MAP> tag, found <"+e.tagName+">.");s.call(t),i.push(t)}}var i;return function(t){switch(i=[],typeof t){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(t||"map"),e);break;case"object":e(t);break;default:throw new TypeError("Unexpected data type ("+typeof t+").")}return i}}"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&"object"==typeof module.exports?module.exports=t():window.imageMapResize=t(),"jQuery"in window&&(jQuery.fn.imageMapResize=function(){return this.filter("map").each(s).end()})})(),(a=>{var i,e,s,n,o,r,l,h,c,d,u,p,t,f,g,m=a("#langHelper").data("locale");function v(){a(".thumbnail-with-headers-slider").each(function(t,e){a(this).hasClass("slick-initialized")||a(this).children().length<1||a(this).slick({infinite:!0,slidesToShow:a(this).data("amount")||4,slidesToScroll:1,autoplay:"1"===(a(this).attr("data-autoplay")||"0"),nextArrow:'<button class="flickity-prev-next-button previous" type="button"></button>',prevArrow:'<button class="flickity-prev-next-button next slick-next " type="button"></button>',responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:1}}]})}),a(".thumbnail-slider").each(function(){var t;a(this).hasClass("slick-initialized")||a(this).children().length<1||(t={infinite:!0,slidesToShow:a(this).data("amount")||5,slidesToScroll:1,autoplay:"1"===(a(this).attr("data-autoplay")||"0"),nextArrow:'<button class="flickity-prev-next-button previous" type="button"></button>',prevArrow:'<button class="flickity-prev-next-button next slick-next " type="button"></button>',responsive:[{breakpoint:992,settings:{slidesToShow:4,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:2,slidesToScroll:1}}]},a(this).slick(t))})}function y(){setTimeout(function(){a(".thumbnail-with-headers-slider").slick("unslick"),v()},400)}function b(){setTimeout(function(){a(".thumbnail-slider").slick("unslick"),v()},400)}v(),a("#close-popup, .popup-maps #popup-img, #ktu-popup.popup-maps, #ktu-popup.popup-blocks .popup-overlay").click(function(){var t=(new Date).getTime(),e=a("#popup-img").data("popupid");localStorage.setItem("ktupopupseen_"+e,""+t),a("#ktu-popup").fadeOut()}),void 0!==(g=a("#popup-img").data("popupid"))&&(t=(new Date).getTime(),!1===(f=null!==(f=localStorage.getItem("ktupopupseen_"+g))&&parseInt(f))||!1!==f&&f+36e5<t)&&(localStorage.setItem("ktupopupseen_"+g,""+t),setTimeout(function(){a("#ktu-popup").fadeIn(),a("map").imageMapResize()},3e3)),a(".navbar-toggle").click(function(){a(this).toggleClass("close")}),a(".vc_tta-tab a, .vc_tta-panel-title a").click(function(){b(a(this).attr("href")),y()}),a(".vc_tta-accordion .vc_tta-panel-heading a").click(function(){b(a(this).attr("href")),y()}),a(".single-contacts-item .name-part").click(function(){a(this).parent().parent().children(".single-contact-holder").children(".name-part").removeClass("active"),a(this).addClass("active");var t=a(this).parent().children(".contacts-part").html();a(this).parent().parent().parent().children(".current-contact-holder").html(t)}),a(function(){return FastClick.attach(document.body)});var _=!1,w=!1;function k(){var t;a("body").hasClass("page-template-page-iframe-php")||(t=1200<=this.innerWidth?76:this.innerWidth<=992?0:42,a(this).scrollTop()>t&&!_&&(_=!0,s.addClass("fixed")),a(this).scrollTop()<=t&&_&&(_=!1,s.removeClass("fixed")))}function C(){var t,e,i=a("header.fixed");i.length&&(a("#navbar-collapse"),e=a(".top-nav a.dropdown-toggle[aria-expanded='true']",i).siblings("ul.dropdown-menu"),t=a("header.fixed").innerHeight(),e.length&&(t+=e.height()),(e=a(window).height())<t&&!w&&(i.addClass("fullHeader"),w=!0),t<=e)&&w&&(i.removeClass("fullHeader"),w=!1)}function p(t){if(null!=t)for(;t.hasChildNodes();)t.removeChild(t.lastChild)}document.getElementsByTagName("body")[0],s=a("header"),document.getElementById("header-container"),k(),a(window).on("scroll",function(t){k(),C()}),a(document.body).click(function(){setTimeout(function(){C()},100)}),a("button[data-target='#navbar-collapse']").on("click",function(){a(this).attr("aria-expanded");a("header.fixed").removeClass("fullHeader")}),a(".sidebar-menu > li > .name").on("click",function(t){var e,i;return a(this).parent().parent().find("li").removeClass("active"),a(this).parent().addClass("active"),i=a(this).parent().find(".content").height(),e=a(this).parent().parent().height(),a(this).parent().parent().css("height",(null!=(i=e<i)?i:{sidebarH:e})+"px")}),a("input[name=language]:radio").change(function(){return a("#vc_studies-button").attr("data-step4",a(this).val())}),a("input[name=time]:radio").change(function(){return a("#vc_studies-button").attr("data-step5",a(this).val())}),a(document).on("click keydown",".dropdown-menu > li",function(t){if("click"===t.type||"Enter"===t.key||13===t.keyCode)return a(this).parent().find("li").removeClass("active"),a(this).addClass("active"),a(this).parent().parent().find(".select").text(a(this).text())}),c=document.getElementById("vc_studies-picker1"),d=document.getElementById("vc_studies-picker2"),u=document.getElementById("vc_studies-picker3"),e=document.getElementById("vc_studies-button"),r=o=n="",a(".select.find-studies-step-chooser").on("click keydown",function(t){"click"!==t.type&&"Enter"!==t.key&&13!==t.keyCode||(c=document.getElementById("vc_studies-picker1"),d=document.getElementById("vc_studies-picker2"),u=document.getElementById("vc_studies-picker3"),e=document.getElementById("vc_studies-button"))}),a("#vc_studies-picker-lang").length&&"en_US"==m&&a("#vc_studies-picker-lang li[data-value='en']").click(),a(document).on("click keydown","#vc_studies-picker1 > li",function(t){if("click"===t.type||"Enter"===t.key||13===t.keyCode)return r=o="",a(d).parent().children("button").removeClass("disabled"),t=a(d).parent().children("button").attr("data-default-title"),a(d).parent().children("button").text(t),a(u).parent().children("button").addClass("disabled"),t=a(u).parent().children("button").attr("data-default-title"),a(u).parent().children("button").text(t),p(d),p(u),-1!=~~(n=a(this)[0].dataset.value)?i(d,json[n].areas):n=""}),a(document).on("click keydown","#vc_studies-picker2 > li",function(t){if("click"===t.type||"Enter"===t.key||13===t.keyCode)return r="",t=a(u).parent().children("button").attr("data-default-title"),a(u).parent().children("button").text(t),p(u),o=a(this)[0].dataset.value,t=a(this)[0].dataset.type,-1!=~~o&&"all"!==t?(a(u).parent().children("button").removeClass("disabled"),i(u,json[n].areas[o].fields)):(a(u).parent().children("button").addClass("disabled"),o="")}),a(document).on("click keydown","#vc_studies-picker3 > li",function(t){if("click"===t.type||"Enter"===t.key||13===t.keyCode)return r=a(this)[0].dataset.value,t=a(this)[0].dataset.type,-1==~~r||"all"===t?r="":void 0}),a(document).on("click keydown","#vc_studies-picker-lang > li",function(t){return("click"===t.type||"Enter"===t.key||13===t.keyCode)&&-1==~~(l=a(this)[0].dataset.value)?l="":void 0}),a(document).on("click keydown","#vc_studies-picker-form > li",function(t){return("click"===t.type||"Enter"===t.key||13===t.keyCode)&&-1==~~(h=a(this)[0].dataset.value)?h="":void 0}),null!=e&&e.addEventListener("click",function(t){t.preventDefault();t=window.location.protocol+"//"+("lt_LT"===m?"stojantiesiems":"admissions")+".ktu.edu/programmes/";return 0!==n.length?t+=json[n].slug+"/":t+="b/",0!==o.length&&(t+=json[n].areas[o].slug+"/"),0!==r.length&&(t+=json[n].areas[o].fields[r].slug),t=(t+=l?"?l="+l:"?l="+a(".language-picker input[type='radio']:checked").val())+(h?"&st="+h:"&st="+a(".time-picker input[type='radio']:checked").val()),window.open(t,"_blank")},!1),i=function(t,e){var i,s;for(i in e)(s=document.createElement("li")).dataset.value=i,s.innerHTML=e[i].name,s.setAttribute("tabindex","0"),e[i].type&&(s.dataset.type=e[i].type),null!=t&&t.appendChild(s)},document.addEventListener("DOMContentLoaded",function(){var t,e;if(null!=document.getElementById("vc_studies-picker1")&&null!=$studies_list)return p(c),p(d),p(u),json=$studies_list,i(c,json),(t=a("#vc_find-studies .find-studies-step.step1")).attr("data-selected")&&(e=t.attr("data-selected"),t.find("li[data-value="+e+"]").click()),!0},!1),a(window).on("load",function(){function t(t,e){e.css("height",t.height()),e.css("padding",t.css("padding"));t=parseInt(a("body").css("border-top-width"));e.css("margin-top","-"+t),e.css("margin-bottom",2*t+"px")}var e,i,s,n=a("header"),o=a(".header-padding");t(n,o),a(window).on("resize",function(){t(n,o)}),window.location.hash&&(e=window.location.hash,a(e).not(".vc_tta-panel").length)&&(i=n.height(),s=o.height(),i<s&&(i=s),setTimeout(function(){var t=a(e).offset().top;a("html, body").animate({scrollTop:t-i},500)},100))})})(jQuery),jQuery(document).ready(function(n){var t,e,i,s,o="",a="",r=(n(document).on("click","#portfolio-filter-form #portfolio-picker1.dropdown-menu > li",function(){a="",o=n(this).data("value"),n(".list-equipment .single-event-archive").hide();n(".list-equipment .single-event-archive."+o).show()}),n(document).on("click","#portfolio-filter-form #portfolio-picker2.dropdown-menu > li",function(){a=n(this).data("value"),n(".list-equipment .single-event-archive").hide(),n(".list-equipment .single-event-archive."+o+"."+a).show()}),new Date),l=n("#year-helper").data("year-range"),h=n("#year-helper").data("year-set"),c=n("#year-helper").data("type");function d(t){"slider-year"===t?(n("#amount").attr("name","year-set"),h?n("#amount").val(h):t&&n("#amount").val(n("#"+t+"-slide").slider("values",0))):(n("#amount").attr("name","year-range"),l?n("#amount").val(l):t&&n("#amount").val(n("#"+t+"-slide").slider("values",0)+" - "+n("#"+t+"-slide").slider("values",1)))}function u(){n("#search_message").hide(),jQuery.ajax({url:ajax_object.ajax_url,type:"post",data:{action:"contacts_search_query",search_query:n("#search_query").val()},success:function(t){n("#ktu-loader").hide(),n("#search_message2").hide(),n("#search_message").hide(),""==t||"Per trumpa paieÅ¡kos frazÄ"==t?n("#search_message").show():"Nieko nerasta"==t?n("#search_message2").show():n("#contacts-search-response").html(t),n(".vcard-download").click(function(){var t=new vCard;t.name(n(this).data("name"),""),t.email(n(this).data("email"),""),t.cell(n(this).data("phone"),""),t.get(n(this).data("name"))})}})}function p(t,e){e=e||window.location.href,t=t.replace(/[\[\]]/g,"\\$&");t=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);
1return t?t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):"":null}function f(){var i=n(window).width()<=575;n(".vc-hero-slider .slide-new").each(function(){var t=n(this).data("mobile-image"),e=n(this).data("desktop-image");""!==t&&(t=i?t:e,n(this).css("background-image","url("+t+")"))})}c&&(n(".slider").hide(),n("#"+c+"-slide").show()),e=l?l.split(" - "):[2004,r.getFullYear()],t=h?[h]:l?[e[1]]:[r.getFullYear()],n("#slider-type input[type=checkbox]").on("change",function(){n("#slider-type input[type=checkbox]").not(this).prop("checked",!1);var t=n(this).data("type");this.checked?(n("#amount").attr("name",t),t=this.id,n(".slider").hide(),n("#"+t+"-slide").show(),d(t)):(n(".slider").hide(),n("#amount").val(""))}),n("#slider-range-slide").slider({range:!0,min:2e3,max:r.getFullYear()+5,values:[e[0],e[1]],slide:function(t,e){n("#amount").val(e.values[0]+" - "+e.values[1]),n("#slider-year-slide").slider({values:[e.values[1]]})}}),n("#slider-year-slide").slider({range:!1,min:2e3,max:r.getFullYear()+5,values:[t[0]],slide:function(t,e){n("#amount").val(e.values[0])}}),d(c),n("#ktu-contacts-search").submit(function(t){n(this).attr("action")||(t.preventDefault(),n("#ktu-loader").show(),u())}),p("searchCaller")&&(e=p("searchQuery"),n("#search_query").val(e),u()),n("#studiju-kalendorius").datepicker({firstDay:1,beforeShowDay:function(t){t.getDate();return n.datepicker.iso8601Week(t)%2==0?[!0,"evenWeek","unAvailable"]:[!0,"oddWeek","unAvailable"]}}),n("#portfolio-picker1 li").click(function(){var t=n(this).data("value");n("#portfolio-value1").val(t)}),n("#portfolio-picker2 li").click(function(){var t=n(this).data("value");n("#portfolio-value2").val(t)}),n("#filter-picker1 li").click(function(){var t=n(this).data("value");n("#filtervalue1").val(t)}),n("#filter-picker2 li").click(function(){var t=n(this).data("value");n("#filtervalue2").val(t)}),n("#filter-picker3 li").click(function(){var t=n(this).data("value");n("#filtervalue3").val(t)}),n("#topLevel-picker li").click(function(){var t=n(this).data("value");n("#firstLevel").val(t),n("#secondLevel").val(""),n("#thirdLevel").val(""),n(".secondLevelWrapper").hide(),n(".thirdLevelWrapper").hide(),n(".projectDropdown"+t).show()}),n(".secondLevelWrapper li").click(function(){var t=n(this).data("value");n("#secondLevel").val(t),n("#thirdLevel").val(""),n(".thirdLevelWrapper").hide(),n(".projectDropdown"+t).show()}),n(".thirdLevelWrapper li").click(function(){var t=n(this).data("value");n("#thirdLevel").val(t)}),lightbox.option({albumLabel:""}),n("#hero-slider, .hero-slider").each(function(){var i;n(this).hasClass("slick-initialized")||n(this).children().length<1||(i=n(this).data("interval")||5e3,n(this).slick({slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!0,fade:!0,autoplay:!0,autoplaySpeed:i}).on("afterChange",function(t,e){e=n('div[data-slick-index="'+e.currentSlide+'"]').data("time");null!=e?n(this).slick("setOption","autoplaySpeed",1e3*e):n(this).slick("setOption","autoplaySpeed",i)}))}),f(),n(window).resize(f),n(".partners-slider").each(function(){var t=n(this).data(),e=t.sliderSlidesPerRow||3,t=t.sliderRows||2,i={autoplay:!0,infinite:!0,slidesToShow:1,slidesToScroll:1,slidesPerRow:e,rows:t};1===t&&(i.slidesToShow=e,i.responsive=[{breakpoint:768,settings:{autoplay:!0,slidesToShow:2,slidesToScroll:1,slidesPerRow:2,rows:t}}]),2===t&&(i.responsive=[{breakpoint:768,settings:{autoplay:!0,slidesToShow:1,slidesToScroll:1,slidesPerRow:1,rows:t}},{breakpoint:992,settings:{autoplay:!0,slidesToShow:1,slidesToScroll:1,slidesPerRow:2,rows:t}}]),n(this).slick(i)}),n(".projects-slider").each(function(){n(this).hasClass("slick-initialized")||n(this).children().length<1||n(this).slick({infinite:!0,slidesToShow:1,slidesToScroll:1})}),n("ul.nav a[href*=#], p a[href*=#], h1 a[href*=#], h2 a[href*=#], h3 a[href*=#], h4 a[href*=#], h5 a[href*=#], h6 a[href*=#]").click(function(t){var e,i,s;null==n(this).attr("href")||n(this).attr("data-vc-container")||(s=window.location.href.split("#")[0],(e=(i=n(this).attr("href")).split("#")[0])!==s&&""!==e)||(s=i.split("#")[1],(e=n("#"+s)).length&&((i=n("header").height())<(s=n(".header-padding").height())&&
1(i=s),n("html, body").animate({scrollTop:e.offset().top-i},500)))}),n(".dropdown-content a[href*=#]").click(function(t){var e,i;null!=n(this).attr("href")&&(i=(e=n(this).attr("href")).split("#")[1],e.split("#")[0]==window.location.href.split("#")[0])&&n("html, body").animate({scrollTop:n("#"+i).offset().top-120},500)}),n(".ktu-widget.ktu-library-search-widget .search-button").on("click",function(t){t.preventDefault(),n(this).parent().submit()}),n("header .main-search-form.long .search-button").click(function(t){t.preventDefault(),n(this).parent().submit()}),n("header .top-buttons.search-button").click(function(t){t.preventDefault(),n("header .top-menu nav").slideToggle(),n("header .main-search-form.long").slideToggle(),n("header .main-search-form.long input").focus()}),n("header .top-menu .main-search-form.long input").blur(function(t){n("header .main-search-form.long").slideToggle(),n("header .top-menu nav").slideToggle()}),n(".gform_wrapper.gform_legacy_markup_wrapper").each(function(){var t=n(this);n(".ginput_container_post_title, .ginput_container_text, .ginput_container_email, .ginput_container_phone, .ginput_container_website",t).each(function(){n(this).parent().addClass("input-field"),n(this).parent().addClass("col")}),n(".ginput_container input",t).on("focus",function(){n(this).parent().parent().children("label").addClass("active"),n(this).parent().parent().parent().children("label").addClass("active")}),n(".ginput_container input",t).each(function(){0<n(this).val().length&&(n(this).parent().parent().children("label").addClass("active"),n(this).parent().parent().parent().children("label").addClass("active"))}),n(".ginput_container input",t).on("blur",function(){0==n(this).val().length&&(n(this).parent().parent().children("label").removeClass("active"),n(this).parent().parent().parent().children("label").removeClass("active"),n(this).parent().parent().removeClass("gfield_error"))}),n("input, textarea, select",t).on("change",function(){var t=n(this),e=t.parents(".gfield").is(".gfield_contains_required"),i=t.is(":valid");e&&i&&(t.parents(".gfield").removeClass("gfield_error"),t.parent().next(".validation_message").slideUp())}).blur(function(){var t=n(this),e=t.parents(".gfield").is(".gfield_contains_required"),i=t.is(":invalid"),s=""===t.val();e&&(i||s)&&(t.parents(".gfield").addClass("gfield_error"),t.parent().next(".validation_message").slideDown())})}),isLocalStorageNameSupported=function(){var t=window.sessionStorage;try{return t.setItem("test","1"),t.removeItem("test"),!0}catch(t){return!1}},n("#ktu-notification")&&(i="ktu-notification-"+n("#ktu-notification").data("notificationid"),n("#notification-close").click(function(){isLocalStorageNameSupported()&&localStorage.setItem(i,"yes"),n("#ktu-notification").css("top",2*n("#ktu-notification").height()*-1+"px")}),"yes"!=(s=isLocalStorageNameSupported()?localStorage.getItem(i)||"":s))&&setTimeout(function(){n("#ktu-notification").css("top","0")},1e3),0<n("#ktu-instagram").length&&n.ajax({url:"https://api.instagram.com/v1/users/self/media/recent",dataType:"jsonp",type:"GET",data:{access_token:"715648617.e741a17.93168741308949549d94b284e2309489",count:"10"},success:function(t){for(x in t.data)n("#ktu-instagram ul").append('<li><div class="instagram-info">'+t.data[x].caption.text+'<span class="instagram-likes">'+t.data[x].likes.count+'</span></div><img src="'+t.data[x].images.low_resolution.url+'"></li>')},error:function(t){}}),n("#ktu-newsletter").submit(function(){return n(this).find(".ktu-loader").show(),n("#ktu-newsletter .newsletter-submit").hide(),n.ajax({url:ajax_object.ajax_url,type:"post",data:{action:"ktu_add_subscriber",subscriber_email:n("#ktu-newsletter #newsletter_email").val()},success:function(t){t=n.parseJSON(t);"pending"!==t.status&&n("#newsletter-message").html(t.detail)}}),n("#ktu-newsletter .ktu-loader").hide(),n("#ktu-newsletter .newsletter-submit").show(),!1}),n(".single-letter").click(function(){n("html, body").animate({scrollTop:n(n(this).attr("href")).offset().top-120},500)})}),jQuery(document).ready(function(i){var s=i("#langHelper").data("locale");function n(t){t=document.cookie.match(RegExp("(?:^|;\\s*)"+t+"=([^;]*)"));return t?t[1]:null}setTimeout(function(){var t,e;i("#cc-window").length&&(t="lt_LT"===s?"Norint matyti šį turinį turite sutikti su visais slapukais.<br />Spauskite Äia, kad sutikti.":"Click to accept marketing cookies and enable this content","allow"!=n("complianz_consent_status")&&i(".youtube-play").each(function(){i(this).append("<div class='youtube-consent'>"+t+"</div>")}),e=setInterval(function(){"allow"==n("complianz_consent_status")&&(i(".youtube-play .
1youtube-consent").remove(),clearInterval(e))},1e3))},1e3),i(".youtube-play").on("click keydown",function(t){var e;"click"!==t.type&&"Enter"!==t.key&&13!==t.keyCode||(i("#cmplz-cookiebanner-container .cc-btn.cc-allow").click(),i(t=this).parent().css("line-height","1rem"),e=i("img",i(t)),e=i("<iframe>",{src:i(e).attr("data-video"),height:i(e).height(),width:i(e).width(),frameborder:0,allow:i(e).attr("allow")}),i(t).replaceWith(e))})}),jQuery(document).ready(function(l){var t=l("#langHelper").data("locale"),h=1e3,c="lt_LT"===t?"Daugiau >":"Show more >",e="lt_LT"===t?"< Mažiau":"Show less";function i(t){l.ajax({url:"https://moodle.ktu.edu/diplomai2020/"+t+".php",cache:!1})}l(".more").each(function(){var t=this;if(l(t).find("p")&&(t=l(t).find("p")),(s=l(this).attr("class")).search("morechars-.*")){var e=[];if(s)for(var i,s=s.split(" "),n=0;n<s.length;n++)s[n].startsWith("morechars-")&&(i=s[n].split("-"),e.push(i[1]),h=i[1])}var o,a,r=l(t).html();r.length>h&&(a=(o=-1!==(a=(o=r.substr(0,h)).lastIndexOf(" "))?r.substr(0,a):o)+'<span class="moreellipses"> ... </span><span class="morecontent"><span>'+r.substr(o.length,r.length-o.length)+'</span> <a href="" class="morelink">'+c+"</a></span>",l(t).html(a))}),l(".morelink").click(function(){return l(this).hasClass("less")?(l(this).removeClass("less"),l(this).html(c)):(l(this).addClass("less"),l(this).html(e)),l(this).parent().prev().toggle(),l(this).prev().toggle(),!1}),l(function(){l(".htabs-outer").tabs(),l(".htabs-outer .vtabs").tabs().addClass("ui-tabs-vertical ui-helper-clearfix"),l(".htabs-outer .vtabs > ul > li").removeClass("ui-corner-top").addClass("ui-corner-left"),l(".htabs-inner").tabs(),l(".vtabs-outer .vtabs").tabs().addClass("ui-tabs-vertical ui-helper-clearfix"),l(".vtabs-outer .vtabs > ul > li").removeClass("ui-corner-top").addClass("ui-corner-left")}),l(".tabs-nav .tabs-nav-list-item").on("click",function(){var t=l("a",l(this)).text().trim();l(this).parent().siblings(".tabs-nav-button").text(t)}),l("#event-cat-picker li").on("click",function(){var t=l(this).attr("data-value");window.location.replace(t)}),l(".department-contacts, .science-group-contacts").each(function(t){var e=this,i=l(this).attr("data-id-department"),s=l(this).attr("data-id-science-group"),n=l(this).attr("data-action"),n=l.ajax({url:"/wp-admin/admin-ajax.php?action="+n,method:"POST",data:{department_id:i,science_group_id:s},dataType:"html"});n.done(function(t){l(e).html(t)}),n.fail(function(t,e){})}),l(".vc-phd-contacts").each(function(){var e=this,i=l(this).attr("id"),s=l(this).attr("data-section-id"),t=l(this).attr("data-id-department"),n=l(this).attr("data-id-science-group"),o=l(this).attr("data-action"),o=l.ajax({url:"/wp-admin/admin-ajax.php?action="+o,method:"POST",data:{department_id:t,scie
1nce_group_id:n},dataType:"html"});o.done(function(t){-1<t.indexOf("phd-contacts-main")?l(e).fadeOut(1e3,function(){l(this).html(t),"function"==typeof l.fn.DataTable&&l("table",e).DataTable({paging:!1,info:!1,searching:!1,ordering:!0,responsive:!0})}).fadeIn():(l("#"+i).remove(),l(".separator-row[id='"+s+"'").remove(),l(".content-nav-spearator[id='"+s+"'").remove(),l("#content-nav-panel .nav-dot[href='#"+s+"'").remove())}),o.fail(function(t,e){l(this).html("Error")})}),l("#kepure").on("click",function(){l(this).attr("src")!==l(this).data("src2")&&(i(fakSlug),l(this).fadeOut(500,function(){l(this).attr("src",l(this).data("src2")),l(this).load(function(){l(this).fadeIn(500)})}))}),l("#rankos").on("click",function(){l(this).attr("src")!==l(this).data("src2")&&(i(fakSlug),l(this).fadeOut(500,function(){l(this).attr("src",l(this).data("src2")),l(this).load(function(){l(this).fadeIn(500)})}))}),l("form.goals-filter-form").each(function(){let e=l(this);l("#goal-picker li",e).on("click",function(t){if(l(this).hasClass("disabled"))return t.preventDefault(),t.stopPropagation(),!1;l("#goal-picker li",e).removeClass("active"),l(this).addClass("active"),l(".select span",e).text(l(this).text()),l("#goal-hidden",e).val(l(this).data("value"))}),l("#date-from, #date-to",e).each(function(){let e=l(this);e.datepicker({firstDay:1,gotoCurrent:!0,dateFormat:"yy-mm-dd",showOtherMonths:!0,selectOtherMonths:!0,numberOfMonths:1,maxDate:0,constrainInput:!0,isRTL:!1,onSelect:function(t){"date-from"===this.id&&l("#date-to").datepicker("option","minDate",t)},beforeShow:function(e,t){setTimeout(function(){t.dpDiv.off("keydown.esc").on("keydown.esc",function(t){27===t.keyCode&&(l(e).datepicker("hide").focus(),t.stopPropagation())})},10),setTimeout(()=>{l(e).data("datepicker-open",!0)},100)},onClose:function(t,e){l(this).datepicker("widget").off("keydown.esc"),l(this).data("datepicker-open",!1)}}),e.on("click",function(t){t.stopPropagation(),e.data("datepicker-open")?e.datepicker("hide"):e.datepicker("show")})})})}),jQuery(document).ready(function(a){function r(t){return a(".vc_tta-tabs-container .vc_tta-tab a[href=#"+t+"]").parent()}function l(t,e){a(t).siblings("[parent_id="+e+"]").each(function(){r(a(this).attr("id")).show()})}a(".vc_tta.vc_tta-tabs").each(function(){a(".vc_tta-panels-container .vc_tta-panel.tour-sub",this).each(function(){var t=a(this).attr("id"),e=a(this).prevAll(".vc_tta-panel").not(".tour-sub").first().attr("id"),t=r(t);a("a",t).prepend('<div class="caret-down"></div> '),t.addClass("vc_tta-tab-sub").hide(),a(this).attr("parent_id",e)})}),setTimeout(function(){a(".vc_tta-panels-container .vc_tta-panel").each(function(){var e=this,t=a(e).attr("id"),i=a(e).attr("parent_id"),s=r(t),n=(a(e).hasClass("vc_active")&&(s.show(),i?(l(e,i),a(s).prevAll(".vc_tta-tab").not(".vc_tta-tab-sub").first().addClass("vc_active")):l(e,t)),a(e).data("vc-external-url")),o=a(e).data("vc-external-url-target")?a(e).data("vc-external-url-target"):"_self";n&&setTimeout(function(){s.addClass("tour_external"),a("a",s).attr("href",n),a("a",s).attr("target",o),s.on("click",function(){return window.open(n,o),!1}),a(e).on("click",function(){return window.open(n,o),!1})},100),a(e).data("vc-jump-sub")&&(s.on("click",function(){var t=r(a(e).nextAll(".tour-sub").not(".tour_external").attr("id"));return a("a",t).click(),!1}),a(e).on("click",function(){var t=r(a(e).nextAll(".tour-sub").not(".tour_external").attr("id"));return a("a",t).click(),!1}))})},100),a("li.vc_tta-tab").on("click",function(){var t=a(this).parent(),e=this,i=a("a",this).attr("href").split("#")[1],i=a(".vc_tta-panels-container .vc_tta-panel[id="+i+"]");if(a(e).hasClass("vc_active")&&a(i).hasClass("vc_active")||a(e).hasClass("tour_external"))return!1;a(e).siblings().removeClass("vc_active"),a(e).hasClass("vc_tta-tab-sub")||a(e).hasClass("vc_active")||a(i).hasClass("vc_active")||(a("li.vc_tta-tab-sub",t).slideUp(),a(e).nextAll().each(function(){if(!a(this).hasClass("vc_tta-tab-sub"))return!1;a(this).slideDown()})),a(e).hasClass("vc_tta-tab-sub")&&setTimeout(function(){a(e).prevAll(".vc_tta-tab",t).not(".vc_tta-tab-sub").first().addClass("vc_active")},10)})}),jQuery(document).ready(function(i){i(window).load(function(){var t=new MutationObserver(function(t){t.forEach(function(t){var e;"class"===t.attributeName&&(t=i(t.target).closest(".vc_grid"),e=t,setTimeout(function(){var t=i(".owl-stage-outer .owl-item.active",i(e)).outerHeight();i(".owl-stage-outer.owl-height",i(e)).height(t)},500))})});i(".vc_grid .owl-item").each(function(){t.observe(this,{attributes:!0,childList:!0,characterData:!0}
1)})})}),jQuery(document).ready(function(t){var i,s,e;function n(t,e){"undefined"!=typeof cmplz_has_consent&&(cmplz_has_consent("functional")&&(t.functionality_storage="granted"),cmplz_has_consent("preferences")&&(t.personalization_storage="granted",t.security_storage="granted"),cmplz_has_consent("statistics")&&(t.analytics_storage="granted"),cmplz_has_consent("marketing")&&(t.ad_storage="granted",t.ad_user_data="granted",t.ad_personalization="granted"),function(){window.dataLayer.push(arguments)}("consent",e,t),"dismissed"===s||"update"===e)&&window.dataLayer.push({event:"cookie_consent_update"})}function o(t,e){!0!==i&&(i=!0,setTimeout(function(){n(t,e),i=!1},1e3))}"undefined"!=typeof cmplz_get_banner_status&&(i=!1,s=cmplz_get_banner_status(),e={ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"granted"},window.dataLayer=window.dataLayer||[],["cmplz_before_categories_consent","cmplz_revoke","cmplz_fire_categories","cmplz_track_status"].forEach(function(t){document.addEventListener(t,function(t){o(e,"update")})}),o(e,"default"))}),jQuery(document).ready(function(s){function i(t){var e,i;t.length&&(e=t.offset().left,i=parseInt(s("body").css("border-left-width"))+parseInt(s("body").css("border-right-width")),i=document.body.clientWidth+i,s(".separator-row-bg",t).css({"margin-left":"-"+e+"px",width:i+"px"}))}s(".separator-row").each(function(){var t=s(this);function e(){i(t)}t.length&&(i(t),s(window).on("resize load",function(){i(t)}),window.addEventListener("resize",e),window.matchMedia("(width: 100vw)").addEventListener("change",e),new MutationObserver(function(){i(t)}).observe(document.body,{childList:!0,subtree:!0}))})}),jQuery(document).ready(function(s){setTimeout(function(){s(".vc_tta-tab > a[aria-controls]").each(function(){var t=s(this).closest(".vc_tta-container"),t=(t.find(".vc_tta-tabs-container"),t.find(".vc_tta-panels-container")),e=s(this).attr("aria-controls"),i=s(".vc_tta-panel#"+e,t).hasClass("vc_active");s(this).attr("aria-selected",i?"true":"false"),s(".vc_tta-panel#"+e,t).attr("aria-expanded",i?"true":"false")})},100),s(".vc_tta-tab > a[aria-controls]").on("click",function(){var t=s(this).closest(".vc_tta-container"),e=t.find(".vc_tta-tabs-container"),t=t.find(".vc_tta-panels-container"),i=s(this).attr("aria-controls");s(".vc_tta-tab a[aria-selected=true]",e).attr("aria-selected","false"),s(".vc_tta-panel[aria-expanded=true]",t).attr("aria-expanded","false"),s(this).attr("aria-selected","true"),s(".vc_tta-panel#"+i,t).attr("aria-expanded","true")})}),jQuery(document).ready(function(s){s(document).on("click keydown",".SumoSelect",function(t){var i;"click"!==t.type&&"Enter"!==t.key&&13!==t.keyCode&&"Escape"!==t.key||((i=s(this)).find(".optWrapper ul.options li.opt, .optWrapper p.reset-all").attr("tabindex",0).first().focus(),i.off("keydown").on("keydown",function(t){var e=i.find(".optWrapper ul.options li.opt:focus, .optWrapper p.reset-all:focus");"Escape"===t.key&&(t.preventDefault(),i.find(".SelectBox").trigger("click")),"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),i.hasClass("open")||i.find(".SelectBox").trigger("click"),e.trigger("click"))}))}),s(document).on("click keydown",".footable-filtering-search button.btn.dropdown-toggle",function(t){var e;"click"!==t.type&&"Enter"!==t.key&&13!==t.keyCode&&"Escape"!==t.key||((t=(e=s(this)).parent()).find("ul.dropdown-menu li").attr("tabindex",0).first().focus(),t.find("ul.dropdown-menu li input").attr("tabindex",-1),t.off("keydown").on("keydown",function(t){"Escape"===t.key&&(t.preventDefault(),e.trigger("click"))}))}),s(document).on("keydown",".ninja_table_wrapper",function(t){"Tab"===t.key&&s(this).find(".footable-header th.footable-sortable").attr("tabindex",0)}),s(document).on("keydown",".footable-header th.footable-sortable",function(t){"Enter"!==t.key&&13!==t.keyCode||s(this).click()})}),jQuery(document).ready(function(i){var t=new MutationObserver(function(t){t.forEach(function(t){var e;"attributes"===t.type&&"class"===t.attributeName?(e=i(t.target)).is('[id^="field_"]')&&!e.hasClass("gfield")&&e.addClass("gfield"):"childList"===t.type&&i(t.addedNodes).each(function(){var t;
11===this.nodeType&&((t=i(this)).is('[id^="field_"]')?t.hasClass("gfield")||t.addClass("gfield"):t.find('[id^="field_"]').each(function(){var t=i(this);t.hasClass("gfield")||t.addClass("gfield")}))})})}),e=document.querySelector(".gform_wrapper.gform-theme--foundation");e&&t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]})}),jQuery(document).ready(function(i){var t=i(".vc_btn3-container.button-invert").find(".vc_btn3-style-outline, .vc_btn3-style-outline-custom");t.length&&t.each(function(){var t=i(this),e=t.css("color");t.removeAttr("onmouseenter").removeAttr("onmouseleave"),t.css({"background-color":e,"border-color":e,color:"#ffffff"}),t.hover(function(){i(this).css({"background-color":"transparent","border-color":e,color:e})},function(){i(this).css({"background-color":e,"border-color":e,color:"#ffffff"})})})}),jQuery(document).ready(function(i){i.fn.tooltip&&(i.fn.bstooltip=i.fn.tooltip.noConflict(),i(".zabuto-calendar-container").tooltip({position:{my:"left top+23",at:"left top"},items:".calendar .eventDay",tooltipClass:"tooltip-eventDay",content:function(){return"<div class='"+i(this).prop("class")+"'>"+i(this).prop("title")+"</div>"},open:function(t,e){if(void 0===t.originalEvent)return!1;t=i(e.tooltip).attr("id");i("div.ui-tooltip").not("#"+t).remove()},close:function(t,e){e.tooltip.hover(function(){i(this).stop(!0).fadeTo(400,1)},function(){i(this).fadeOut("400",function(){i(this).remove()})})}}),i.fn.tooltip=i.fn.bstooltip)}),jQuery(document).ready(function(s){window.location.hash&&(e=window.location.hash,s(e).length)&&setTimeout(function(){var t=s(e).offset().top;s("html, body").animate({scrollTop:t-150},500)},100);var e,t,i,n=s(".content-nav-spearator");0<n.length&&(s("body").append("<div id='content-nav-panel'></div>"),t=s("#content-nav-panel"),i=0,n.each(function(){s(t).append("<a class='nav-dot' href='#"+s(this).attr("id")+"' data-index='"+i+++"'><div class='nav-tooltip'>"+s(this).data("section")+"</div></a>")}),s(".nav-dot").click(function(t){var e=s(this).attr("href"),i=s(".content-nav-spearator").eq(s(this).data("index")).offset().top;s("html, body").animate({scrollTop:i-150},500,function(){history.pushState?window.history.pushState(null,null,e):window.location.hash=e})}))}),"undefined"==typeof jQuery)throw new Error("jQuery is not loaded");(b=>{b.fn.zabuto_calendar=function(t){var n=b.extend({},b.fn.zabuto_calendar_defaults(),t),t=b.fn.zabuto_calendar_language(n.language),n=b.extend({},n,t);return this.each(function(){var t,e,i,s,o=b(this);function u(t,e,i,s,n){void 0===n&&(n=!1);var o=new Date(i,s,1,0,0,0,0);return t.data("currDate",o),e.empty(),e=((t,e,i,s)=>{t.data("ajaxSettings");var n=((t,e)=>{var i=v(t,e),s=g(t,e,1),t=g(t,e,i),e=i;return 0<(i=s-t)&&(e+=i),Math.ceil(e/7)})(i,s),o=v(i,s),a=g(i,s,1),r=g(i,s,o),l=1;0===t.data("weekStartsOn")&&(6===r&&n++,6!==a||0!==r&&1!==r&&5!==r||n--,7===++a)&&(a=0);for(var h=0;h<n;h++){for(var c,d,u=b('<tr class="calendar-dow"></tr>'),p=0;p<7;p++)p<a||o<l?u.append("<td></td>"):(c=p<5?"right":"left",d=t.attr("id")+"_"+f(i,s,l),(c=b('<div id="'+(d+"_day")+'" data-toggle="tooltip" data-placement="bottom" class="'+c+'" > '+l+"</div>")).data("day",l),!0===t.data("showToday")&&((t,e,i)=>{var s=new Date;return new Date(t,e,i).toDateString()===s.toDateString()})(i,s,l)&&c.addClass("badge-today"),(d=b('<td id="'+d+'"></td>')).append(c),d.data("date",f(i,s,l)),d.data("hasEvent",!1),"function"==typeof t.data("actionFunction")&&(d.addClass("dow-clickable"),d.click(function(){t.data("selectedDate",b(this).data("date"))}),d.click(t.data("actionFunction"))),u.append(d),l++),6===p&&(a=0);e.append(u)}return e})(t,e=((t,e)=>{var i,s,n;return!0===t.data("showDays")&&(i=t.data("weekStartsOn"),t=t.data("dowLabels"),0===i&&(i=b.extend([],t),s=new Array(i.pop()),t=s.concat(i)),n=b('<tr class="calendar-dow-header"></tr>'),b(t).each(function(t,e){n.append("<th>"+e+"</th>")}),e.append(n)),e})(t,e=((e,i,t,s)=>{var n,o,a,r,l=e.data("navIcons"),h=b('<span><span class="glyphicon glyphicon-chevron-left"></span></span>'),c=b('<span><span class="glyphicon glyphicon-chevron-right"></span></span>'),d=("object"==typeof l&&("prev"in l&&h.html(l.prev),"next"in l)&&c.html(l.next),"number"!=typeof(l=e.data("showPrevious"))&&!1!==l||(l=y(e.data("showPrevious"),!0)),b('<div class="calendar-month-navigation"></div>'));return d.attr("id",e.attr("id")+"_nav-prev"),d.data("navigation","prev"),!1!==l&&(n=t,-1===(o=s-1)&&(n-=1,o=11),d.data("to",{year:n,month:o+1}),d.append(h),"function"==typeof e.data("actionNavFunction")&&d.click(e.data("actionNavFunction")),d.click(function(t){e.hasClass("in_progress")||u(e,i,n,o)})),"number"!=typeof(l=e.data("showNext"))&&!1!==l||(l=y(e.data("showNext"),!1)),(h=b('<div class="calendar-month-navigation"></div>')).attr("id",e.attr("id")+"_nav-next"),h.data("navigation","next"),!1!==l&&(a=t,12===(r=s+1)&&(a+=1,r=0),h.data("to",{year:a,month:r+1}),h.append(c),"function"==typeof e.data("actionNavFunction")&&h.click(e.data("actionNavFunction")),h.click(function(t){e.hasClass("in_progress")||u(e,i,a,r)})),l=e.data("monthLabels"),c=b("<th></th>").append(d),d=b("<th></th>").append(h),(h=b("<span>"+l[s]+" "+t+"</span>")).dblclick(function(){var t=e.data("initDate");u(e,i,t.getFullYear(),t.getMonth())}),(l=b('<th colspan="5"></th>')).append(h),(s=b('<tr class="calendar-month-header month"></tr>')).append(c,l,d),i.append(s),i})(t,e,i,s)),i,s),!1===n?a(t,i,s,e):p(t),e}function a(t,e,i,s){var n,o,a,r,l,h=t.data("jsonData"),c=t.data("ajaxSettings");return t.data("events",!1),!1!==h?(l=(h=t).data("jsonData"),h.data("events",l),p(h),!0):!1!==c?(o=e,a=i,r=s,"object"!=typeof(l=(n=t).data("ajaxSettings"))||void 0===l.url?(alert("Invalid calendar event settings"),!1):(h={year:o,month:a+1},n.hasClass("in_progress")||(n.addClass("in_progress"),b.ajax({type:"GET",url:l.url,data:h,dataType:"json"}).done(function(i){n.removeClass("in_progress");var s=[];b.each(i,function(t,e){s.push(i[t])}),n.data("events",s),u(n,r,o,a,"redraw")})),!0)):void 0}function p(c){c.data("jsonData"),c.data("ajaxSettings");var t=c.data("events");!1!==t&&b(t).each(function(t,e){var i,s,n,o=c.attr("id")+"_"+e.date,a=b("#"+o),o=b("#"+o+"_day"),r=(a.data("hasEvent",!0),a.attr("id").substring(a.attr("id").lastIndexOf("-")+1,a.attr("id").lastIndexOf("-")+2));if(void 0!==e.title){for(var l=(l=e.title.toString().replace("<p>","")).toString().replace("</p>",""),h=0;h<(l.match(/|||/g)||[]).length;h++)l=l.toString().replace("|||","");"green"===e.classname?0:"yellow"===e.classname?0:"grey"===e.classname&&0,o.attr("title","<span class='eventDescr'>"+l+"</span>"),0===parseInt(r)?o.addClass("oneNumber"):o.addClass("twoNumbers")}void 0===e.classname?a.addClass("eventDay"):e.classname.indexOf("|||")+1?(r=e.classname.split("|||"),n=s=i=0,r.forEach(function(t){"green"===t?i+=1:"yellow"===t?s+=1:n+=1}),0<s&&o.addClass("yellow"),0<i&&o.addClass("green"),0<n&&o.addClass("grey"),o.addClass("eventDay"),o.addClass("eventDay_tooltip")):(o.addClass(e.classname),o.addClass(e.classname+"_tooltip"),o.addClass("eventDay")),void 0!==e.badge&&!1!==e.badge&&(
1a=o.data("day"),o.html(a))})}function f(t,e,i){return d=i<10?"0"+i:i,t+"-"+(m=(m=e+1)<10?"0"+m:m)+"-"+d}function g(t,e,i){t=new Date(t,e,i,0,0,0,0).getDay();return 0===t?t=6:t--,t}function v(t,e){for(var i,s,n,o=28;i=t,n=o+1,0<(s=e+1)&&s<13&&0<i&&i<32768&&0<n&&n<=new Date(i,s,0).getDate();)o++;return o}function y(t,e){!1===t&&(t=0);var i=o.data("currDate"),s=o.data("initDate"),n=12*(s.getFullYear()-i.getFullYear());if(n=(n-=i.getMonth()+1)+s.getMonth(),!0===e){if(n<parseInt(t)-1)return!0}else if(n>=0-parseInt(t))return!0;return!1}o.attr("id","zabuto_calendar_"+Math.floor(99999*Math.random()).toString(36)),o.data("initYear",n.year),o.data("initMonth",n.month),o.data("monthLabels",n.month_labels),o.data("weekStartsOn",n.weekstartson),o.data("navIcons",n.nav_icon),o.data("dowLabels",n.dow_labels),o.data("showToday",n.today),o.data("showDays",n.show_days),o.data("showPrevious",n.show_previous),o.data("showNext",n.show_next),o.data("cellBorder",n.cell_border),o.data("jsonData",n.data),o.data("ajaxSettings",n.ajax),o.data("legendList",n.legend),o.data("actionFunction",n.action),o.data("actionNavFunction",n.action_nav),t=parseInt(o.data("initYear")),e=parseInt(o.data("initMonth"))-1,t=new Date(t,e,1,0,0,0,0),o.data("initDate",t),e=b('<table class="calendar"></table>'),e=u(o,e,t.getFullYear(),t.getMonth()),i=(t=>{var o=b('<div class="legend" id="'+t.attr("id")+'_legend"></div>');return"object"==typeof(t=t.data("legendList"))&&0<t.length&&b(t).each(function(t,e){if("object"==typeof e&&"type"in e){var i,s,n="";switch("label"in e&&(n=e.label),e.type){case"text":""!==n&&(i="","badge"in e&&(i='<span class="badge '+(void 0===e.classname?"badge-event":e.classname)+'">'+e.badge+"</span> "),o.append('<span class="legend-'+e.type+'">'+i+n+"</span>"));break;case"block":i=void 0===e.classname?"event":"event-styled "+e.classname,o.append('<span class="legend-'+e.type+'"><ul class="legend"><li class="'+i+'"></li></ul>'+(n=""!==n?"<span>"+n+"</span>":n)+"</span>");break;case"list":"list"in e&&"object"==typeof e.list&&0<e.list.length&&(s=b('<ul class="legend"></ul>'),b(e.list).each(function(t,e){s.append('<li class="'+e+'"></li>')}),o.append(s));break;case"spacer":o.append('<span class="legend-'+e.type+'"> </span>')}}}),o})(o),(s=b('<div class="zabuto_calendar"></div>')).append(e),s.append(i),o.append(s),!1!==o.data("jsonData")&&a(o,t.getFullYear(),t.getMonth(),e)}),this},b.fn.zabuto_calendar_defaults=function(){var t=new Date;return{language:!1,year:t.getFullYear(),month:t.getMonth()+1,show_previous:!0,show_next:!0,cell_border:!1,today:!1,show_days:!0,weekstartson:1,nav_icon:!1,data:!1,ajax:!1,legend:!1,action:!1,action_nav:!1}},b.fn.zabuto_calendar_language=function(t){switch((t=void 0!==t&&!1!==t?t:"en").toLowerCase()){case"en":return{month_labels:["January","February","March","April","May","June","July","August","September","October","November","December"],dow_labels:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]};case"lt":return{month_labels:["Sausis","Vasaris","Kovas","Balandis","GegužÄ","Birželis","Liepa","RugpjÅ«tis","RugsÄjis","Spalis","Lapkritis","Gruodis"],dow_labels:["P","A","T","K","Pn","Å ","S"]}}}})(jQuery),jQuery(function(e){class t{constructor(t={}){this.config={debug:!0,...t};(t=this).config.debug&&"undefined"!=typeof console?((new Date).toLocaleTimeString(),t.log=void 0):t.log=function(){},this.init()}init(){e(document).ready(()=>{["page-ktu-strategija-cstm"].some(function(t){return e("body").hasClass(t)})&&(this.log?.("Init script"),this.initSelectibleHoverBlackBox(),this.initContactBubbles(),this.initSliders())})}initSelectibleHoverBlackBox(){e(document).ready(function(e){let i=e(".selectible-hover-black-box-row .selectible-hover-black-box-item");i.attr("tabindex",0),i.on("click keydown",function(t){"click"!==event.type&&"Enter"!==event.key&&13!==event.keyCode||(t.preventDefault(),e(this).hasClass("is-active")?e(this).removeClass("is-active"):(i.removeClass("is-active"),e(this).addClass("is-active")))})})}initContactBubbles(){e(document).ready(function(e){let i=e(".universiteto-veiklos-kryptys-row .universiteto-veiklos-kryptys-bubbles .wpb_column");i.attr("tabindex",0),i.on({mouseenter:function(){i.removeClass("is-active"),i.removeClass("is-active-hover"),e(this).addClass("is-active-hover")},mouseleave:function(){e(this).removeClass("is-active-hover")}}).on("click keydown",function(t){"click"!==event.type&&"Enter"!==event.key&&13!==event.keyCode||(t.preventDefault(),e(this).hasClass("is-active")?e(this).removeClass("is-active"):(i.removeClass("is-active"),e(this).addClass("is-active")))})})}initSliders(){e(document).ready(function(e){e(".veikimo-principai-ir-ju-integracija-elements").each(function(){e(this).data();
1var t={autoplay:!0,autoplaySpeed:5e3,infinite:!1,slidesToShow:5,slidesToScroll:1,slidesPerRow:5,rows:1,responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:1,slidesPerRow:3,rows:1}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:1,slidesPerRow:2,rows:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,slidesPerRow:1,rows:1}}]};e(this).slick(t)})})}}new t({debug:!0})}),jQuery(function(e){class t{constructor(t={}){this.config={debug:!0,...t};(t=this).config.debug&&"undefined"!=typeof console?((new Date).toLocaleTimeString(),t.log=void 0):t.log=function(){},this.init()}init(){e(document).ready(()=>{["site-alliancesforum-ktu-edu"].some(function(t){return e("body").hasClass(t)})&&(this.log?.("Init script"),this.initSliders())})}initSliders(){e(document).ready(function(t){t(".practical-information-blocks-row > .vc_column_container > .vc_column-inner > .wpb_wrapper").each(function(){t(this).data();t(this).slick({autoplay:!0,autoplaySpeed:5e3,infinite:!0,slidesToShow:1,slidesToScroll:1,slidesPerRow:1,rows:1,slide:".vc_row.vc_inner"})})})}}new t({debug:!0})}),jQuery(function(e){class t{constructor(t={}){this.config={debug:!0,...t};(t=this).config.debug&&"undefined"!=typeof console?((new Date).toLocaleTimeString(),t.log=void 0):t.log=function(){},this.init()}init(){e(document).ready(()=>{["site-atvirosinovacijos-ktu-edu","site-openinnovation-ktu-edu"].some(function(t){return e("body").hasClass(t)})&&(this.log?.("Init script"),this.initSliders())})}initSliders(){e(document).ready(function(t){t(".arrival-blocks-row > .vc_column_container > .vc_column-inner > .wpb_wrapper").each(function(){t(this).data();t(this).slick({autoplay:!0,autoplaySpeed:5e3,infinite:!0,slidesToShow:1,slidesToScroll:1,slidesPerRow:1,rows:1,slide:".vc_row.vc_inner"})})})}}new t({debug:!0})}); 2//# sourceMappingURL=app.min.js.map
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.