// source --> https://dadanaut.de/wp-content/plugins/ee-simple-file-list-pro/js/ee-head.js?ver=7.0 
// Simple File List Pro - Copyright 2022
// Author: Mitchell Bennis | support@simplefilelist.com | https://simplefilelist.com
// License: EULA | https://simplefilelist.com/end-user-license-agreement/
// All changes to, modifications to, or re-uses of this script are prohibited without prior consent.

var eeSFL_isTouchscreen = false;
var eeSFL_ListID = 1;
var eeSFL_FileID = false;
var eeSFL_CheckEmail = false;
var eeSFL_FileDateAdded = false;
var eeSFL_FileDateChanged = false;

// Scroll down to #eeSFL_FileListTop
function eeSFL_ScrollToIt() {
	
	jQuery('html, body').animate({ scrollTop: jQuery('#eeSFL_FileListTop').offset().top }, 1000);
	
	return false;
	
};
// source --> https://dadanaut.de/wp-content/plugins/ee-simple-file-list-search/datepicker/jquery-ui.min.js?ver=7.0 
/*! jQuery UI - v1.12.1 - 2021-02-18
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/datepicker.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */

!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(w){w.ui=w.ui||{};w.ui.version="1.12.1";var s,i=0,o=Array.prototype.slice;w.cleanData=(s=w.cleanData,function(t){for(var e,i,a=0;null!=(i=t[a]);a++)try{(e=w._data(i,"events"))&&e.remove&&w(i).triggerHandler("remove")}catch(t){}s(t)}),w.widget=function(t,i,e){var a,s,n,r={},o=t.split(".")[0],l=o+"-"+(t=t.split(".")[1]);return e||(e=i,i=w.Widget),w.isArray(e)&&(e=w.extend.apply(null,[{}].concat(e))),w.expr[":"][l.toLowerCase()]=function(t){return!!w.data(t,l)},w[o]=w[o]||{},a=w[o][t],s=w[o][t]=function(t,e){if(!this._createWidget)return new s(t,e);arguments.length&&this._createWidget(t,e)},w.extend(s,a,{version:e.version,_proto:w.extend({},e),_childConstructors:[]}),(n=new i).options=w.widget.extend({},n.options),w.each(e,function(e,a){function s(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}w.isFunction(a)?r[e]=function(){var t,e=this._super,i=this._superApply;return this._super=s,this._superApply=n,t=a.apply(this,arguments),this._super=e,this._superApply=i,t}:r[e]=a}),s.prototype=w.widget.extend(n,{widgetEventPrefix:a&&n.widgetEventPrefix||t},r,{constructor:s,namespace:o,widgetName:t,widgetFullName:l}),a?(w.each(a._childConstructors,function(t,e){var i=e.prototype;w.widget(i.namespace+"."+i.widgetName,s,e._proto)}),delete a._childConstructors):i._childConstructors.push(s),w.widget.bridge(t,s),s},w.widget.extend=function(t){for(var e,i,a=o.call(arguments,1),s=0,n=a.length;s<n;s++)for(e in a[s])i=a[s][e],a[s].hasOwnProperty(e)&&void 0!==i&&(w.isPlainObject(i)?t[e]=w.isPlainObject(t[e])?w.widget.extend({},t[e],i):w.widget.extend({},i):t[e]=i);return t},w.widget.bridge=function(n,e){var r=e.prototype.widgetFullName||n;w.fn[n]=function(i){var t="string"==typeof i,a=o.call(arguments,1),s=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=w.data(this,r);return"instance"===i?(s=e,!1):e?w.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,a))!==e&&void 0!==t?(s=t&&t.jquery?s.pushStack(t.get()):t,!1):void 0:w.error("no such method '"+i+"' for "+n+" widget instance"):w.error("cannot call methods on "+n+" prior to initialization; attempted to call method '"+i+"'")}):s=void 0:(a.length&&(i=w.widget.extend.apply(null,[i].concat(a))),this.each(function(){var t=w.data(this,r);t?(t.option(i||{}),t._init&&t._init()):w.data(this,r,new e(i,this))})),s}},w.Widget=function(){},w.Widget._childConstructors=[],w.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=w(e||this.defaultElement||this)[0],this.element=w(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=w(),this.hoverable=w(),this.focusable=w(),this.classesElementLookup={},e!==this&&(w.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=w(e.style?e.ownerDocument:e.document||e),this.window=w(this.document[0].defaultView||this.document[0].parentWindow)),this.options=w.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:w.noop,_create:w.noop,_init:w.noop,destroy:function(){var i=this;this._destroy(),w.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:w.noop,widget:function(){return this.element},option:function(t,e){var i,a,s,n=t;if(0===arguments.length)return w.widget.extend({},this.options);if("string"==typeof t)if(n={},t=(i=t.split(".")).shift(),i.length){for(a=n[t]=w.widget.extend({},this.options[t]),s=0;s<i.length-1;s++)a[i[s]]=a[i[s]]||{},a=a[i[s]];if(t=i.pop(),1===arguments.length)return void 0===a[t]?null:a[t];a[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];n[t]=e}return this._setOptions(n),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,a;for(e in t)a=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&a&&a.length&&(i=w(a.get()),this._removeClass(a,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(s){var n=[],r=this;function t(t,e){for(var i,a=0;a<t.length;a++)i=r.classesElementLookup[t[a]]||w(),i=s.add?w(w.unique(i.get().concat(s.element.get()))):w(i.not(s.element).get()),r.classesElementLookup[t[a]]=i,n.push(t[a]),e&&s.classes[t[a]]&&n.push(s.classes[t[a]])}return s=w.extend({element:this.element,classes:this.options.classes||{}},s),this._on(s.element,{remove:"_untrackClassesElement"}),s.keys&&t(s.keys.match(/\S+/g)||[],!0),s.extra&&t(s.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(i){var a=this;w.each(a.classesElementLookup,function(t,e){-1!==w.inArray(i.target,e)&&(a.classesElementLookup[t]=w(e.not(i.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,a){a="boolean"==typeof a?a:i;var s="string"==typeof t||null===t,t={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:a};return t.element.toggleClass(this._classes(t),a),this},_on:function(s,n,t){var r,o=this;"boolean"!=typeof s&&(t=n,n=s,s=!1),t?(n=r=w(n),this.bindings=this.bindings.add(n)):(t=n,n=this.element,r=this.widget()),w.each(t,function(t,e){function i(){if(s||!0!==o.options.disabled&&!w(this).hasClass("ui-state-disabled"))return("string"==typeof e?o[e]:e).apply(o,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||w.guid++);var a=t.match(/^([\w:-]*)\s*(.*)$/),t=a[1]+o.eventNamespace,a=a[2];a?r.on(t,a,i):n.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e).off(e),this.bindings=w(this.bindings.not(t).get()),this.focusable=w(this.focusable.not(t).get()),this.hoverable=w(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(w(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(w(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(w(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(w(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var a,s,n=this.options[t];if(i=i||{},(e=w.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],s=e.originalEvent)for(a in s)a in e||(e[a]=s[a]);return this.element.trigger(e,i),!(w.isFunction(n)&&!1===n.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},w.each({show:"fadeIn",hide:"fadeOut"},function(n,r){w.Widget.prototype["_"+n]=function(e,t,i){var a;"string"==typeof t&&(t={effect:t});var s=t?!0!==t&&"number"!=typeof t&&t.effect||r:n;"number"==typeof(t=t||{})&&(t={duration:t}),a=!w.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),a&&w.effects&&w.effects.effect[s]?e[n](t):s!==n&&e[s]?e[s](t.duration,t.easing,i):e.queue(function(t){w(this)[n](),i&&i.call(e[0]),t()})}});var a,b,M,n,r,l,c,d,C;w.widget;function x(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function I(t,e){return parseInt(w.css(t,e),10)||0}b=Math.max,M=Math.abs,n=/left|center|right/,r=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,d=/%$/,C=w.fn.position,w.position={scrollbarWidth:function(){if(void 0!==a)return a;var t,e=w("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),i=e.children()[0];return w("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),a=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?w.position.scrollbarWidth():0,height:e?w.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=w(t||window),i=w.isWindow(e[0]),a=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:a,offset:!i&&!a?w(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},w.fn.position=function(h){if(!h||!h.of)return C.apply(this,arguments);h=w.extend({},h);var u,p,g,f,_,t,m=w(h.of),k=w.position.getWithinInfo(h.within),y=w.position.getScrollInfo(k),D=(h.collision||"flip").split(" "),v={},e=9===(t=(e=m)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:w.isWindow(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return m[0].preventDefault&&(h.at="left top"),p=e.width,g=e.height,f=e.offset,_=w.extend({},f),w.each(["my","at"],function(){var t,e,i=(h[this]||"").split(" ");1===i.length&&(i=n.test(i[0])?i.concat(["center"]):r.test(i[0])?["center"].concat(i):["center","center"]),i[0]=n.test(i[0])?i[0]:"center",i[1]=r.test(i[1])?i[1]:"center",t=l.exec(i[0]),e=l.exec(i[1]),v[this]=[t?t[0]:0,e?e[0]:0],h[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===D.length&&(D[1]=D[0]),"right"===h.at[0]?_.left+=p:"center"===h.at[0]&&(_.left+=p/2),"bottom"===h.at[1]?_.top+=g:"center"===h.at[1]&&(_.top+=g/2),u=x(v.at,p,g),_.left+=u[0],_.top+=u[1],this.each(function(){var i,t,r=w(this),o=r.outerWidth(),l=r.outerHeight(),e=I(this,"marginLeft"),a=I(this,"marginTop"),s=o+e+I(this,"marginRight")+y.width,n=l+a+I(this,"marginBottom")+y.height,c=w.extend({},_),d=x(v.my,r.outerWidth(),r.outerHeight());"right"===h.my[0]?c.left-=o:"center"===h.my[0]&&(c.left-=o/2),"bottom"===h.my[1]?c.top-=l:"center"===h.my[1]&&(c.top-=l/2),c.left+=d[0],c.top+=d[1],i={marginLeft:e,marginTop:a},w.each(["left","top"],function(t,e){w.ui.position[D[t]]&&w.ui.position[D[t]][e](c,{targetWidth:p,targetHeight:g,elemWidth:o,elemHeight:l,collisionPosition:i,collisionWidth:s,collisionHeight:n,offset:[u[0]+d[0],u[1]+d[1]],my:h.my,at:h.at,within:k,elem:r})}),h.using&&(t=function(t){var e=f.left-c.left,i=e+p-o,a=f.top-c.top,s=a+g-l,n={target:{element:m,left:f.left,top:f.top,width:p,height:g},element:{element:r,left:c.left,top:c.top,width:o,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:s<0?"top":0<a?"bottom":"middle"};p<o&&M(e+i)<p&&(n.horizontal="center"),g<l&&M(a+s)<g&&(n.vertical="middle"),b(M(e),M(i))>b(M(a),M(s))?n.important="horizontal":n.important="vertical",h.using.call(this,t,n)}),r.offset(w.extend(c,{using:t}))})},w.ui.position={fit:{left:function(t,e){var i=e.within,a=i.isWindow?i.scrollLeft:i.offset.left,s=i.width,n=t.left-e.collisionPosition.marginLeft,r=a-n,o=n+e.collisionWidth-s-a;e.collisionWidth>s?0<r&&o<=0?(i=t.left+r+e.collisionWidth-s-a,t.left+=r-i):t.left=!(0<o&&r<=0)&&o<r?a+s-e.collisionWidth:a:0<r?t.left+=r:0<o?t.left-=o:t.left=b(t.left-n,t.left)},top:function(t,e){var i=e.within,a=i.isWindow?i.scrollTop:i.offset.top,s=e.within.height,n=t.top-e.collisionPosition.marginTop,r=a-n,o=n+e.collisionHeight-s-a;e.collisionHeight>s?0<r&&o<=0?(i=t.top+r+e.collisionHeight-s-a,t.top+=r-i):t.top=!(0<o&&r<=0)&&o<r?a+s-e.collisionHeight:a:0<r?t.top+=r:0<o?t.top-=o:t.top=b(t.top-n,t.top)}},flip:{left:function(t,e){var i=e.within,a=i.offset.left+i.scrollLeft,s=i.width,n=i.isWindow?i.scrollLeft:i.offset.left,r=t.left-e.collisionPosition.marginLeft,o=r-n,l=r+e.collisionWidth-s-n,c="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,i="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,r=-2*e.offset[0];o<0?((a=t.left+c+i+r+e.collisionWidth-s-a)<0||a<M(o))&&(t.left+=c+i+r):0<l&&(0<(n=t.left-e.collisionPosition.marginLeft+c+i+r-n)||M(n)<l)&&(t.left+=c+i+r)},top:function(t,e){var i=e.within,a=i.offset.top+i.scrollTop,s=i.height,n=i.isWindow?i.scrollTop:i.offset.top,r=t.top-e.collisionPosition.marginTop,o=r-n,l=r+e.collisionHeight-s-n,c="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,i="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,r=-2*e.offset[1];o<0?((a=t.top+c+i+r+e.collisionHeight-s-a)<0||a<M(o))&&(t.top+=c+i+r):0<l&&(0<(n=t.top-e.collisionPosition.marginTop+c+i+r-n)||M(n)<l)&&(t.top+=c+i+r)}},flipfit:{left:function(){w.ui.position.flip.left.apply(this,arguments),w.ui.position.fit.left.apply(this,arguments)},top:function(){w.ui.position.flip.top.apply(this,arguments),w.ui.position.fit.top.apply(this,arguments)}}};var t;w.ui.position,w.extend(w.expr[":"],{data:w.expr.createPseudo?w.expr.createPseudo(function(e){return function(t){return!!w.data(t,e)}}):function(t,e,i){return!!w.data(t,i[3])}}),w.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});w.ui.focusable=function(t,e){var i,a,s,n,r=t.nodeName.toLowerCase();return"area"===r?(a=(i=t.parentNode).name,!(!t.href||!a||"map"!==i.nodeName.toLowerCase())&&(0<(a=w("img[usemap='#"+a+"']")).length&&a.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(s=!t.disabled)&&(n=w(t).closest("fieldset")[0])&&(s=!n.disabled):s="a"===r&&t.href||e,s&&w(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}(w(t)))},w.extend(w.expr[":"],{focusable:function(t){return w.ui.focusable(t,null!=w.attr(t,"tabindex"))}});w.ui.focusable,w.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):w(this[0].form)},w.ui.formResetMixin={_formResetHandler:function(){var e=w(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");w.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element.form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(w.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}};"1.7"===w.fn.jquery.substring(0,3)&&(w.each(["Width","Height"],function(t,i){var s="Width"===i?["Left","Right"]:["Top","Bottom"],a=i.toLowerCase(),n={innerWidth:w.fn.innerWidth,innerHeight:w.fn.innerHeight,outerWidth:w.fn.outerWidth,outerHeight:w.fn.outerHeight};function r(t,e,i,a){return w.each(s,function(){e-=parseFloat(w.css(t,"padding"+this))||0,i&&(e-=parseFloat(w.css(t,"border"+this+"Width"))||0),a&&(e-=parseFloat(w.css(t,"margin"+this))||0)}),e}w.fn["inner"+i]=function(t){return void 0===t?n["inner"+i].call(this):this.each(function(){w(this).css(a,r(this,t)+"px")})},w.fn["outer"+i]=function(t,e){return"number"!=typeof t?n["outer"+i].call(this,t):this.each(function(){w(this).css(a,r(this,t,!0,e)+"px")})}}),w.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))});var e,h,u;w.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},w.ui.escapeSelector=(e=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(e,"\\$1")}),w.fn.labels=function(){var t,e,i;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+w.ui.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e))},w.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,a=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=w(this);return(!i||"static"!==t.css("position"))&&a.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:w(this[0].ownerDocument||document)},w.extend(w.expr[":"],{tabbable:function(t){var e=w.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&w.ui.focusable(t,i)}}),w.fn.extend({uniqueId:(h=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++h)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&w(this).removeAttr("id")})}});function p(){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},w.extend(this._defaults,this.regional[""]),this.regional.en=w.extend(!0,{},this.regional[""]),this.regional["en-US"]=w.extend(!0,{},this.regional.en),this.dpDiv=g(w("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function g(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){w(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&w(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&w(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,f)}function f(){w.datepicker._isDisabledDatepicker((u.inline?u.dpDiv.parent():u.input)[0])||(w(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),w(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&w(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&w(this).addClass("ui-datepicker-next-hover"))}function _(t,e){for(var i in w.extend(t,e),e)null==e[i]&&(t[i]=e[i]);return t}w.extend(w.ui,{datepicker:{version:"1.12.1"}}),w.extend(p.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return _(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,a=t.nodeName.toLowerCase(),s="div"===a||"span"===a;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(w(t),s)).settings=w.extend({},e||{}),"input"===a?this._connectDatepicker(t,i):s&&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?g(w("<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=w(t);e.append=w([]),e.trigger=w([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),w.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,a=this._get(e,"appendText"),s=this._get(e,"isRTL");e.append&&e.append.remove(),a&&(e.append=w("<span class='"+this._appendClass+"'>"+a+"</span>"),t[s?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(i=this._get(e,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(a=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),e.trigger=w(this._get(e,"buttonImageOnly")?w("<img/>").addClass(this._triggerClass).attr({src:i,alt:a,title:a}):w("<button type='button'></button>").addClass(this._triggerClass).html(i?w("<img/>").attr({src:i,alt:a,title:a}):a)),t[s?"before":"after"](e.trigger),e.trigger.on("click",function(){return w.datepicker._datepickerShowing&&w.datepicker._lastInput===t[0]?w.datepicker._hideDatepicker():(w.datepicker._datepickerShowing&&w.datepicker._lastInput!==t[0]&&w.datepicker._hideDatepicker(),w.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,a,s,n,r;this._get(t,"autoSize")&&!t.inline&&(n=new Date(2009,11,20),(r=this._get(t,"dateFormat")).match(/[DM]/)&&(e=function(t){for(s=a=i=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,a=s);return a},n.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),n.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-n.getDay())),t.input.attr("size",this._formatDate(t,n).length))},_inlineDatepicker:function(t,e){var i=w(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),w.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,a,s){var n,r=this._dialogInst;return r||(this.uuid+=1,n="dp"+this.uuid,this._dialogInput=w("<input type='text' id='"+n+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),w("body").append(this._dialogInput),(r=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},w.data(this._dialogInput[0],"datepicker",r)),_(r.settings,a||{}),e=e&&e.constructor===Date?this._formatDate(r,e):e,this._dialogInput.val(e),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(n=document.documentElement.clientWidth,a=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[n/2-100+e,a/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),r.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),w.blockUI&&w.blockUI(this.dpDiv),w.data(this._dialogInput[0],"datepicker",r),this},_destroyDatepicker:function(t){var e,i=w(t),a=w.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),w.removeData(t,"datepicker"),"input"===e?(a.append.remove(),a.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),u===a&&(u=null))},_enableDatepicker:function(e){var t,i=w(e),a=w.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=w.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=w(e),a=w.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=w.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return w.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var a,s,n,r,o=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?w.extend({},w.datepicker._defaults):o?"all"===e?w.extend({},o.settings):this._get(o,e):null;a=e||{},"string"==typeof e&&((a={})[e]=i),o&&(this._curInst===o&&this._hideDatepicker(),s=this._getDateDatepicker(t,!0),n=this._getMinMaxDate(o,"min"),r=this._getMinMaxDate(o,"max"),_(o.settings,a),null!==n&&void 0!==a.dateFormat&&void 0===a.minDate&&(o.settings.minDate=this._formatDate(o,n)),null!==r&&void 0!==a.dateFormat&&void 0===a.maxDate&&(o.settings.maxDate=this._formatDate(o,r)),"disabled"in a&&(a.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(w(t),o),this._autoSize(o),this._setDate(o,s),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,a=w.datepicker._getInst(t.target),s=!0,n=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,w.datepicker._datepickerShowing)switch(t.keyCode){case 9:w.datepicker._hideDatepicker(),s=!1;break;case 13:return(i=w("td."+w.datepicker._dayOverClass+":not(."+w.datepicker._currentClass+")",a.dpDiv))[0]&&w.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,i[0]),(e=w.datepicker._get(a,"onSelect"))?(i=w.datepicker._formatDate(a),e.apply(a.input?a.input[0]:null,[i,a])):w.datepicker._hideDatepicker(),!1;case 27:w.datepicker._hideDatepicker();break;case 33:w.datepicker._adjustDate(t.target,t.ctrlKey?-w.datepicker._get(a,"stepBigMonths"):-w.datepicker._get(a,"stepMonths"),"M");break;case 34:w.datepicker._adjustDate(t.target,t.ctrlKey?+w.datepicker._get(a,"stepBigMonths"):+w.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&w.datepicker._clearDate(t.target),s=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&w.datepicker._gotoToday(t.target),s=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&w.datepicker._adjustDate(t.target,n?1:-1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&w.datepicker._adjustDate(t.target,t.ctrlKey?-w.datepicker._get(a,"stepBigMonths"):-w.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&w.datepicker._adjustDate(t.target,-7,"D"),s=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&w.datepicker._adjustDate(t.target,n?-1:1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&w.datepicker._adjustDate(t.target,t.ctrlKey?+w.datepicker._get(a,"stepBigMonths"):+w.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&w.datepicker._adjustDate(t.target,7,"D"),s=t.ctrlKey||t.metaKey;break;default:s=!1}else 36===t.keyCode&&t.ctrlKey?w.datepicker._showDatepicker(this):s=!1;s&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=w.datepicker._getInst(t.target);if(w.datepicker._get(i,"constrainInput"))return e=w.datepicker._possibleChars(w.datepicker._get(i,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!e||-1<e.indexOf(i)},_doKeyUp:function(t){var e=w.datepicker._getInst(t.target);if(e.input.val()!==e.lastVal)try{w.datepicker.parseDate(w.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,w.datepicker._getFormatConfig(e))&&(w.datepicker._setDateFromField(e),w.datepicker._updateAlternate(e),w.datepicker._updateDatepicker(e))}catch(t){}return!0},_showDatepicker:function(t){var e,i,a,s;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=w("input",t.parentNode)[0]),w.datepicker._isDisabledDatepicker(t)||w.datepicker._lastInput===t||(s=w.datepicker._getInst(t),w.datepicker._curInst&&w.datepicker._curInst!==s&&(w.datepicker._curInst.dpDiv.stop(!0,!0),s&&w.datepicker._datepickerShowing&&w.datepicker._hideDatepicker(w.datepicker._curInst.input[0])),!1!==(i=(a=w.datepicker._get(s,"beforeShow"))?a.apply(t,[t,s]):{})&&(_(s.settings,i),s.lastVal=null,w.datepicker._lastInput=t,w.datepicker._setDateFromField(s),w.datepicker._inDialog&&(t.value=""),w.datepicker._pos||(w.datepicker._pos=w.datepicker._findPos(t),w.datepicker._pos[1]+=t.offsetHeight),e=!1,w(t).parents().each(function(){return!(e|="fixed"===w(this).css("position"))}),a={left:w.datepicker._pos[0],top:w.datepicker._pos[1]},w.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),w.datepicker._updateDatepicker(s),a=w.datepicker._checkOffset(s,a,e),s.dpDiv.css({position:w.datepicker._inDialog&&w.blockUI?"static":e?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),s.inline||(i=w.datepicker._get(s,"showAnim"),a=w.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(w(t))+1),w.datepicker._datepickerShowing=!0,w.effects&&w.effects.effect[i]?s.dpDiv.show(i,w.datepicker._get(s,"showOptions"),a):s.dpDiv[i||"show"](i?a:null),w.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),w.datepicker._curInst=s)))},_updateDatepicker:function(t){this.maxRows=4,(u=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),a=i[1],s=t.dpDiv.find("."+this._dayOverClass+" a");0<s.length&&f.apply(s.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<a&&t.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",17*a+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===w.datepicker._curInst&&w.datepicker._datepickerShowing&&w.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),e=t.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,i){var a=t.dpDiv.outerWidth(),s=t.dpDiv.outerHeight(),n=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,o=document.documentElement.clientWidth+(i?0:w(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:w(document).scrollTop());return e.left-=this._get(t,"isRTL")?a-n:0,e.left-=i&&e.left===t.input.offset().left?w(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+r?w(document).scrollTop():0,e.left-=Math.min(e.left,e.left+a>o&&a<o?Math.abs(e.left+a-o):0),e.top-=Math.min(e.top,e.top+s>l&&s<l?Math.abs(s+r):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||w.expr.filters.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=w(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,a=this._curInst;!a||t&&a!==w.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(a,"showAnim"),i=this._get(a,"duration"),t=function(){w.datepicker._tidyDialog(a)},w.effects&&(w.effects.effect[e]||w.effects[e])?a.dpDiv.hide(e,w.datepicker._get(a,"showOptions"),i,t):a.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?i:null,t),e||t(),this._datepickerShowing=!1,(t=this._get(a,"onClose"))&&t.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),w.blockUI&&(w.unblockUI(),w("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;w.datepicker._curInst&&(e=w(t.target),t=w.datepicker._getInst(e[0]),(e[0].id===w.datepicker._mainDivId||0!==e.parents("#"+w.datepicker._mainDivId).length||e.hasClass(w.datepicker.markerClassName)||e.closest("."+w.datepicker._triggerClass).length||!w.datepicker._datepickerShowing||w.datepicker._inDialog&&w.blockUI)&&(!e.hasClass(w.datepicker.markerClassName)||w.datepicker._curInst===t)||w.datepicker._hideDatepicker())},_adjustDate:function(t,e,i){var a=w(t),t=this._getInst(a[0]);this._isDisabledDatepicker(a[0])||(this._adjustInstDate(t,e+("M"===i?this._get(t,"showCurrentAtPos"):0),i),this._updateDatepicker(t))},_gotoToday:function(t){var e=w(t),i=this._getInst(e[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(t=new Date,i.selectedDay=t.getDate(),i.drawMonth=i.selectedMonth=t.getMonth(),i.drawYear=i.selectedYear=t.getFullYear()),this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var a=w(t),t=this._getInst(a[0]);t["selected"+("M"===i?"Month":"Year")]=t["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(t),this._adjustDate(a)},_selectDay:function(t,e,i,a){var s=w(t);w(a).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=w("a",a).html(),s.selectedMonth=s.currentMonth=e,s.selectedYear=s.currentYear=i,this._selectDate(t,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(t){t=w(t);this._selectDate(t,"")},_selectDate:function(t,e){var i=w(t),t=this._getInst(i[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(i=this._get(t,"onSelect"))?i.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,i,a=this._get(t,"altField");a&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),t=this.formatDate(e,i,this._getFormatConfig(t)),w(a).val(t))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(e,s,t){if(null==e||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;function n(t){return(t=v+1<e.length&&e.charAt(v+1)===t)&&v++,t}function i(t){var e=n(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,e=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(!(e=s.substring(d).match(e)))throw"Missing number at position "+d;return d+=e[0].length,parseInt(e[0],10)}function a(t,e,i){var a=-1,e=w.map(n(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(w.each(e,function(t,e){var i=e[1];if(s.substr(d,i.length).toLowerCase()===i.toLowerCase())return a=e[0],d+=i.length,!1}),-1!==a)return a+1;throw"Unknown name at position "+d}function r(){if(s.charAt(d)!==e.charAt(v))throw"Unexpected literal at position "+d;d++}for(var o,l,c,d=0,h=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof h?h:(new Date).getFullYear()%100+parseInt(h,10),u=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,p=(t?t.dayNames:null)||this._defaults.dayNames,g=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,f=(t?t.monthNames:null)||this._defaults.monthNames,_=-1,m=-1,k=-1,y=-1,D=!1,v=0;v<e.length;v++)if(D)"'"!==e.charAt(v)||n("'")?r():D=!1;else switch(e.charAt(v)){case"d":k=i("d");break;case"D":a("D",u,p);break;case"o":y=i("o");break;case"m":m=i("m");break;case"M":m=a("M",g,f);break;case"y":_=i("y");break;case"@":_=(c=new Date(i("@"))).getFullYear(),m=c.getMonth()+1,k=c.getDate();break;case"!":_=(c=new Date((i("!")-this._ticksTo1970)/1e4)).getFullYear(),m=c.getMonth()+1,k=c.getDate();break;case"'":n("'")?r():D=!0;break;default:r()}if(d<s.length&&(l=s.substr(d),!/^\s+/.test(l)))throw"Extra/unparsed characters found in date: "+l;if(-1===_?_=(new Date).getFullYear():_<100&&(_+=(new Date).getFullYear()-(new Date).getFullYear()%100+(_<=h?0:-100)),-1<y)for(m=1,k=y;;){if(k<=(o=this._getDaysInMonth(_,m-1)))break;m++,k-=o}if((c=this._daylightSavingAdjust(new Date(_,m-1,k))).getFullYear()!==_||c.getMonth()+1!==m||c.getDate()!==k)throw"Invalid date";return c},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";function s(t){return(t=r+1<e.length&&e.charAt(r+1)===t)&&r++,t}function a(t,e,i){var a=""+e;if(s(t))for(;a.length<i;)a="0"+a;return a}function n(t,e,i,a){return(s(t)?a:i)[e]}var r,o=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,l=(i?i.dayNames:null)||this._defaults.dayNames,c=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,d=(i?i.monthNames:null)||this._defaults.monthNames,h="",u=!1;if(t)for(r=0;r<e.length;r++)if(u)"'"!==e.charAt(r)||s("'")?h+=e.charAt(r):u=!1;else switch(e.charAt(r)){case"d":h+=a("d",t.getDate(),2);break;case"D":h+=n("D",t.getDay(),o,l);break;case"o":h+=a("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=a("m",t.getMonth()+1,2);break;case"M":h+=n("M",t.getMonth(),c,d);break;case"y":h+=s("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":h+=t.getTime();break;case"!":h+=1e4*t.getTime()+this._ticksTo1970;break;case"'":s("'")?h+="'":u=!0;break;default:h+=e.charAt(r)}return h},_possibleChars:function(e){function t(t){return(t=s+1<e.length&&e.charAt(s+1)===t)&&s++,t}for(var i="",a=!1,s=0;s<e.length;s++)if(a)"'"!==e.charAt(s)||t("'")?i+=e.charAt(s):a=!1;else switch(e.charAt(s)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":t("'")?i+="'":a=!0;break;default:i+=e.charAt(s)}return i},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),a=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),n=s,r=this._getFormatConfig(t);try{n=this.parseDate(i,a,r)||s}catch(t){a=e?"":a}t.selectedDay=n.getDate(),t.drawMonth=t.selectedMonth=n.getMonth(),t.drawYear=t.selectedYear=n.getFullYear(),t.currentDay=a?n.getDate():0,t.currentMonth=a?n.getMonth():0,t.currentYear=a?n.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(o,t,e){var i,a,t=null==t||""===t?e:"string"==typeof t?function(t){try{return w.datepicker.parseDate(w.datepicker._get(o,"dateFormat"),t,w.datepicker._getFormatConfig(o))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?w.datepicker._getDate(o):null)||new Date,i=e.getFullYear(),a=e.getMonth(),s=e.getDate(),n=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=n.exec(t);r;){switch(r[2]||"d"){case"d":case"D":s+=parseInt(r[1],10);break;case"w":case"W":s+=7*parseInt(r[1],10);break;case"m":case"M":a+=parseInt(r[1],10),s=Math.min(s,w.datepicker._getDaysInMonth(i,a));break;case"y":case"Y":i+=parseInt(r[1],10),s=Math.min(s,w.datepicker._getDaysInMonth(i,a))}r=n.exec(t)}return new Date(i,a,s)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(a=new Date).setDate(a.getDate()+i),a):new Date(t.getTime());return(t=t&&"Invalid Date"===t.toString()?e:t)&&(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)),this._daylightSavingAdjust(t)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var a=!e,s=t.selectedMonth,n=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),s===t.selectedMonth&&n===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(a?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){w.datepicker._adjustDate(i,-e,"M")},next:function(){w.datepicker._adjustDate(i,+e,"M")},hide:function(){w.datepicker._hideDatepicker()},today:function(){w.datepicker._gotoToday(i)},selectDay:function(){return w.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return w.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return w.datepicker._selectMonthYear(i,this,"Y"),!1}};w(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,a,s,n,r,o,l,c,d,h,u,p,g,f,_,m,k,y,D,v,w,b,M,C,x,I,N,S,F,T,Y=new Date,A=this._daylightSavingAdjust(new Date(Y.getFullYear(),Y.getMonth(),Y.getDate())),W=this._get(t,"isRTL"),O=this._get(t,"showButtonPanel"),E=this._get(t,"hideIfNoPrevNext"),j=this._get(t,"navigationAsDateFormat"),H=this._getNumberOfMonths(t),K=this._get(t,"showCurrentAtPos"),Y=this._get(t,"stepMonths"),L=1!==H[0]||1!==H[1],P=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),R=this._getMinMaxDate(t,"min"),z=this._getMinMaxDate(t,"max"),U=t.drawMonth-K,B=t.drawYear;if(U<0&&(U+=12,B--),z)for(e=this._daylightSavingAdjust(new Date(z.getFullYear(),z.getMonth()-H[0]*H[1]+1,z.getDate())),e=R&&e<R?R:e;this._daylightSavingAdjust(new Date(B,U,1))>e;)--U<0&&(U=11,B--);for(t.drawMonth=U,t.drawYear=B,K=this._get(t,"prevText"),K=j?this.formatDate(K,this._daylightSavingAdjust(new Date(B,U-Y,1)),this._getFormatConfig(t)):K,i=this._canAdjustMonth(t,-1,B,U)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+K+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+K+"</span></a>":E?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+K+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+K+"</span></a>",K=this._get(t,"nextText"),K=j?this.formatDate(K,this._daylightSavingAdjust(new Date(B,U+Y,1)),this._getFormatConfig(t)):K,a=this._canAdjustMonth(t,1,B,U)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+K+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+K+"</span></a>":E?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+K+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+K+"</span></a>",E=this._get(t,"currentText"),K=this._get(t,"gotoCurrent")&&t.currentDay?P:A,E=j?this.formatDate(E,K,this._getFormatConfig(t)):E,j=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>",j=O?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(W?j:"")+(this._isInRange(t,K)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+E+"</button>":"")+(W?"":j)+"</div>":"",s=parseInt(this._get(t,"firstDay"),10),s=isNaN(s)?0:s,n=this._get(t,"showWeek"),r=this._get(t,"dayNames"),o=this._get(t,"dayNamesMin"),l=this._get(t,"monthNames"),c=this._get(t,"monthNamesShort"),d=this._get(t,"beforeShowDay"),h=this._get(t,"showOtherMonths"),u=this._get(t,"selectOtherMonths"),p=this._getDefaultDate(t),g="",_=0;_<H[0];_++){for(m="",this.maxRows=4,k=0;k<H[1];k++){if(y=this._daylightSavingAdjust(new Date(B,U,t.selectedDay)),b=" ui-corner-all",D="",L){if(D+="<div class='ui-datepicker-group",1<H[1])switch(k){case 0:D+=" ui-datepicker-group-first",b=" ui-corner-"+(W?"right":"left");break;case H[1]-1:D+=" ui-datepicker-group-last",b=" ui-corner-"+(W?"left":"right");break;default:D+=" ui-datepicker-group-middle",b=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+b+"'>"+(/all|left/.test(b)&&0===_?W?a:i:"")+(/all|right/.test(b)&&0===_?W?i:a:"")+this._generateMonthYearHeader(t,U,B,R,z,0<_||0<k,l,c)+"</div><table class='ui-datepicker-calendar'><thead><tr>",v=n?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",f=0;f<7;f++)v+="<th scope='col'"+(5<=(f+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+r[w=(f+s)%7]+"'>"+o[w]+"</span></th>";for(D+=v+"</tr></thead><tbody>",M=this._getDaysInMonth(B,U),B===t.selectedYear&&U===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,M)),b=(this._getFirstDayOfMonth(B,U)-s+7)%7,M=Math.ceil((b+M)/7),C=L&&this.maxRows>M?this.maxRows:M,this.maxRows=C,x=this._daylightSavingAdjust(new Date(B,U,1-b)),I=0;I<C;I++){for(D+="<tr>",N=n?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(x)+"</td>":"",f=0;f<7;f++)S=d?d.apply(t.input?t.input[0]:null,[x]):[!0,""],T=(F=x.getMonth()!==U)&&!u||!S[0]||R&&x<R||z&&z<x,N+="<td class='"+(5<=(f+s+6)%7?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(x.getTime()===y.getTime()&&U===t.selectedMonth&&t._keyEvent||p.getTime()===x.getTime()&&p.getTime()===y.getTime()?" "+this._dayOverClass:"")+(T?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!h?"":" "+S[1]+(x.getTime()===P.getTime()?" "+this._currentClass:"")+(x.getTime()===A.getTime()?" ui-datepicker-today":""))+"'"+(F&&!h||!S[2]?"":" title='"+S[2].replace(/'/g,"&#39;")+"'")+(T?"":" data-handler='selectDay' data-event='click' data-month='"+x.getMonth()+"' data-year='"+x.getFullYear()+"'")+">"+(F&&!h?"&#xa0;":T?"<span class='ui-state-default'>"+x.getDate()+"</span>":"<a class='ui-state-default"+(x.getTime()===A.getTime()?" ui-state-highlight":"")+(x.getTime()===P.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'>"+x.getDate()+"</a>")+"</td>",x.setDate(x.getDate()+1),x=this._daylightSavingAdjust(x);D+=N+"</tr>"}11<++U&&(U=0,B++),m+=D+="</tbody></table>"+(L?"</div>"+(0<H[0]&&k===H[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}g+=m}return g+=j,t._keyEvent=!1,g},_generateMonthYearHeader:function(t,e,i,a,s,n,r,o){var l,c,d,h,u,p,g,f=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),m=this._get(t,"showMonthAfterYear"),k="<div class='ui-datepicker-title'>",y="";if(n||!f)y+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=a&&a.getFullYear()===i,c=s&&s.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",d=0;d<12;d++)(!l||d>=a.getMonth())&&(!c||d<=s.getMonth())&&(y+="<option value='"+d+"'"+(d===e?" selected='selected'":"")+">"+o[d]+"</option>");y+="</select>"}if(m||(k+=y+(!n&&f&&_?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",n||!_)k+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(h=this._get(t,"yearRange").split(":"),u=(new Date).getFullYear(),p=(r=function(t){t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10);return isNaN(t)?u:t})(h[0]),g=Math.max(p,r(h[1]||"")),p=a?Math.max(p,a.getFullYear()):p,g=s?Math.min(g,s.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=g;p++)t.yearshtml+="<option value='"+p+"'"+(p===i?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",k+=t.yearshtml,t.yearshtml=null}return k+=this._get(t,"yearSuffix"),m&&(k+=(!n&&f&&_?"":"&#xa0;")+y),k+="</div>"},_adjustInstDate:function(t,e,i){var a=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(a,s))+("D"===i?e:0),e=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(a,s,e)));t.selectedDay=e.getDate(),t.drawMonth=t.selectedMonth=e.getMonth(),t.drawYear=t.selectedYear=e.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),e=i&&e<i?i:e;return t&&t<e?t:e},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){t=this._get(t,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,a){var s=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,a+(e<0?e:s[0]*s[1]),1));return e<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),s=null,n=null,r=this._get(t,"yearRange");return r&&(t=r.split(":"),r=(new Date).getFullYear(),s=parseInt(t[0],10),n=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(s+=r),t[1].match(/[+\-].*/)&&(n+=r)),(!i||e.getTime()>=i.getTime())&&(!a||e.getTime()<=a.getTime())&&(!s||e.getFullYear()>=s)&&(!n||e.getFullYear()<=n)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,a){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(a,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),e,this._getFormatConfig(t))}}),w.fn.datepicker=function(t){if(!this.length)return this;w.datepicker.initialized||(w(document).on("mousedown",w.datepicker._checkExternalClick),w.datepicker.initialized=!0),0===w("#"+w.datepicker._mainDivId).length&&w("body").append(w.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?w.datepicker["_"+t+"Datepicker"].apply(w.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?w.datepicker["_"+t+"Datepicker"].apply(w.datepicker,[this].concat(e)):w.datepicker._attachDatepicker(this,t)})},w.datepicker=new p,w.datepicker.initialized=!1,w.datepicker.uuid=(new Date).getTime(),w.datepicker.version="1.12.1";w.datepicker});
// source --> https://dadanaut.de/wp-content/plugins/youtube-embed-plus/scripts/ytprefs.min.js?ver=14.2.6 
!function(e,t){e._EPYT_=e._EPYT_||{ajaxurl:"/wp-admin/admin-ajax.php",security:"",gallery_scrolloffset:100,eppathtoscripts:"/wp-content/plugins/youtube-embed-plus/scripts/",eppath:"/wp-content/plugins/youtube-embed-plus/",epresponsiveselector:["iframe.__youtube_prefs_widget__"],epdovol:!0,evselector:'iframe.__youtube_prefs__[src], iframe[src*="youtube.com/embed/"], iframe[src*="youtube-nocookie.com/embed/"]',stopMobileBuffer:!0,ajax_compat:!1,usingdefault:!0,ytapi_load:"light",pause_others:!1,facade_mode:!1,not_live_on_channel:!1,maxres_facade:"eager"},e._EPYT_.touchmoved=!1,e._EPYT_.apiVideos=e._EPYT_.apiVideos||{},0===e.location.toString().indexOf("https://")&&(e._EPYT_.ajaxurl=e._EPYT_.ajaxurl.replace("http://","https://")),e._EPYT_.pageLoaded=!1,t(e).on("load._EPYT_",(function(){e._EPYT_.pageLoaded=!0})),document.querySelectorAll||(document.querySelectorAll=function(t){var a=document,o=a.documentElement.firstChild,r=a.createElement("STYLE");return o.appendChild(r),a.__qsaels=[],r.styleSheet.cssText=t+"{x:expression(document.__qsaels.push(this))}",e.scrollBy(0,0),a.__qsaels}),void 0===e._EPADashboard_&&(e._EPADashboard_={initStarted:!1,checkCount:0,onPlayerReady:function(a){try{if(void 0!==_EPYT_.epdovol&&_EPYT_.epdovol){var o=parseInt(a.target.getIframe().getAttribute("data-vol"));isNaN(o)||(0===o?a.target.mute():(a.target.isMuted()&&a.target.unMute(),a.target.setVolume(o)))}var r=parseInt(a.target.getIframe().getAttribute("data-epautoplay"));isNaN(r)||1!==r||a.target.playVideo()}catch(e){}try{var i=a.target.getIframe(),n=i.getAttribute("id");e._EPYT_.apiVideos[n]=a.target,e._EPYT_.not_live_on_channel&&a.target.getVideoUrl().indexOf("live_stream")>0&&e._EPADashboard_.doLiveFallback(i)}catch(e){}finally{t(a.target.getIframe()).css("opacity",1)}},onPlayerStateChange:function(a){var o=a.target.getIframe();if(e._EPYT_.pause_others&&a.data===e.YT.PlayerState.PLAYING&&e._EPADashboard_.pauseOthers(a.target),a.data===e.YT.PlayerState.PLAYING&&!0!==a.target.ponce&&-1===o.src.indexOf("autoplay=1")&&(a.target.ponce=!0),a.data===e.YT.PlayerState.ENDED&&"1"==t(o).data("relstop"))if("function"==typeof a.target.stopVideo)a.target.stopVideo();else{var r=t(o).clone(!0).off();r.attr("src",e._EPADashboard_.cleanSrc(r.attr("src").replace("autoplay=1","autoplay=0"))),t(o).replaceWith(r),e._EPADashboard_.setupevents(r.attr("id")),o=r.get(0)}var i=t(o).closest(".epyt-gallery");if((i.length||(i=t("#"+t(o).data("epytgalleryid"))),i.length)&&("1"==i.find(".epyt-pagebutton").first().data("autonext")&&a.data===e.YT.PlayerState.ENDED)){var n=i.find(".epyt-current-video");n.length||(n=i.find(".epyt-gallery-thumb").first());var d=n.find(" ~ .epyt-gallery-thumb").first();d.length?d.trigger("click"):i.find('.epyt-pagebutton.epyt-next[data-pagetoken!=""][data-pagetoken]').first().trigger("click")}},isMobile:function(){return/Mobi|Android/i.test(navigator.userAgent)},base64DecodeUnicode:function(e){return e=e.replace(/\s/g,""),decodeURIComponent(Array.prototype.map.call(atob(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))},findSwapBlock:function(e){var a=t(e).closest(".wp-block-embed");return a.length||(a=t(e).closest(".epyt-live-chat-wrapper")),a.length||(a=t(e).closest(".epyt-video-wrapper")),a.length||(a=t(e)),a},doLiveFallback:function(a){var o=_EPADashboard_.findSwapBlock(a);if(o.length){var r=t("#epyt-live-fallback");if(r.length){var i="";try{i=e._EPADashboard_.base64DecodeUnicode(r.get(0).innerHTML)}catch(e){}if(i){var n=o.parent();e._EPADashboard_.loadYTAPI(),o.replaceWith(i),e._EPADashboard_.apiInit(),e._EPADashboard_.pageReady(),setTimeout((function(){void 0!==t.fn.fitVidsEP&&n.fitVidsEP()}),1)}}}},videoEqual:function(e,t){return!(!e.getIframe||!t.getIframe||e.getIframe().id!==t.getIframe().id)},pauseOthers:function(t){if(t)for(var a in e._EPYT_.apiVideos){var o=e._EPYT_.apiVideos[a];o&&"function"==typeof o.pauseVideo&&o!=t&&!_EPADashboard_.videoEqual(o,t)&&"function"==typeof o.getPlayerState&&[YT.PlayerState.BUFFERING,e.YT.PlayerState.PLAYING].indexOf(o.getPlayerState())>=0&&o.pauseVideo()}},justid:function(e){return new RegExp("[\\?&]v=([^&#]*)").exec(e)[1]},setupevents:function(t){if(void 0!==e.YT&&null!==e.YT&&e.YT.loaded){var a=document.getElementById(t);if(!a.epytsetupdone){e._EPADashboard_.log("Setting up YT API events: "+t),a.epytsetupdone=!0;var o={events:{onReady:e._EPADashboard_.onPlayerReady,onStateChange:e._EPADashboard_.onPlayerStateChange},host:(a.src||"").indexOf("nocookie")>0?"https://www.youtube-nocookie.com":"https://www.youtube.com"};return new e.YT.Player(t,o)}}},apiInit:function(){if(void 0!==e.YT){e._EPADashboard_.initStarted=!0;for(var t=document.querySelectorAll(_EPYT_.evselector),a=0;a<t.length;a++)t[a].hasAttribute("id")||(t[a].id="_dytid_"+Math.round(8999*Math.random()+1e3)),e._EPADashboard_.setupevents(t[a].id)}},log:function(e){try{}catch(e){}},doubleCheck:function(){e._EPADashboard_.checkInterval=setInterval((function(){e._EPADashboard_.checkCount++,e._EPADashboard_.checkCount>=5||e._EPADashboard_.initStarted?clearInterval(e._EPADashboard_.checkInterval):(e._EPADashboard_.apiInit(),e._EPADashboard_.log("YT API init check"))}),1e3)},selectText:function(t){if(document.selection)(a=document.body.createTextRange()).moveToElementText(t),a.select();else if(e.getSelection){var a,o=e.getSelection();(a=document.createRange()).selectNode(t),o.removeAllRanges(),o.addRange(a)}},setVidSrc:function(t,a){if(t.is(".epyt-facade"))return t.attr("data-facadesrc",e._EPADashboard_.cleanSrc(a)),void t.trigger("click");var o=e._EPADashboard_.cleanSrc(a),r=e._EPADashboard_.parseYouTubeEmbedUrl(o),i=t.attr("id"),n=i?e._EPYT_.apiVideos[i]:null,d=void 0!==e.YT&&null!==e.YT&&e.YT.loaded;if(r.videoId&&"live_stream"!==r.videoId&&d&&n&&"function"==typeof n.loadVideoById){var s=e._EPADashboard_.mapUrlParamsToLoadOptions(r.params,r.videoId),l="1"===r.params.autoplay;try{l?n.loadVideoById(s):n.cueVideoById(s),t.data("ep-current-src",o)}catch(a){return void e._EPADashboard_.setVidSrcLegacy(t,o)}t.css("opacity","1")}else e._EPADashboard_.setVidSrcLegacy(t,o)},cleanSrc:function(e){return e.replace("enablejsapi=1?enablejsapi=1","enablejsapi=1")},parseYouTubeEmbedUrl:function(e){var t={videoId:null,params:{}};if(!e||"string"!=typeof e)return t;var a=e.match(/\/embed\/([a-zA-Z0-9_-]{11})/);a&&a[1]?t.videoId=a[1]:e.indexOf("/embed/live_stream")>-1&&(t.videoId="live_stream");var o=e.indexOf("?");if(o>-1)for(var r=e.substring(o+1).split("#")[0].split("&"),i=0;i<r.length;i++){var n=r[i].split("=");2===n.length&&(t.params[decodeURIComponent(n[0])]=decodeURIComponent(n[1]))}return t},mapUrlParamsToLoadOptions:function(e,t){var a={videoId:t},o=e.start||e.t;if(o){var r=parseInt(o,10);!isNaN(r)&&r>0&&(a.startSeconds=r)}if(e.end){var i=parseInt(e.end,10);!isNaN(i)&&i>0&&(a.endSeconds=i)}return a},setVidSrcLegacy:function(t,a){if(t.get(0).src&&t.get(0).contentWindow&&t.get(0).contentWindow.location)try{t.get(0).contentWindow.location.replace(a)}catch(e){t.attr("src",a)}else t.attr("src",a);t.get(0).epytsetupdone=!1,t.attr("id")||t.attr("id","_dytid_"+Math.round(8999*Math.random()+1e3)),e._EPADashboard_.setupevents(t.attr("id")),t.css("opacity","1")},loadYTAPI:function(){if(void 0===e.YT){if("never"!==e._EPYT_.ytapi_load&&("always"===e._EPYT_.ytapi_load||t('iframe[src*="youtube.com/embed/"], iframe[data-src*="youtube.com/embed/"], .__youtube_prefs__').length)){var a=document.createElement("script");a.src="https://www.youtube.com/iframe_api",a.type="text/javascript",document.getElementsByTagName("head")[0].appendChild(a)}}else e.YT.loaded&&(e._EPYT_.pageLoaded?(e._EPADashboard_.apiInit(),e._EPADashboard_.log("YT API available")):t(e).on("load._EPYT_",(function(){e._EPADashboard_.apiInit(),e._EPADashboard_.log("YT API available 2")})))},resolveFacadeQuality:function(e,a){if(e.epytFacadeCount=void 0===e.epytFacadeCount?0:e.epytFacadeCount+1,a||e.naturalHeight<200){var o=t(e).attr("src");o&&(t(e).attr("src",o.replace("maxresdefault","hqdefault")),t(e).off("load.epyt"))}e.epytFacadeCount>2&&t(e).off("load.epyt")},maximizeFacadeQuality:function(e){var a=t(e).attr("src");if(a&&a.indexOf("maxresdefault")<0){var o=a.replace("hqdefault","maxresdefault"),r=new Image;r.src=o,t(r).on("load.epyt",(function(){t(r).off("load.epyt"),r.naturalHeight>200&&(t(e).off("load.epyt"),t(e).attr("src",r.src))})).on("error",(function(){t(r).off("load.epyt")})).each((function(){r.complete&&t(r).trigger("load")}))}},pageReady:function(){e._EPYT_.not_live_on_channel&&"never"!==e._EPYT_.ytapi_load&&t(".epyt-live-channel").each((function(){var e=t(this);e.data("eypt-fallback")||(e.data("eypt-fallback",!0),e.css("opacity",0),setTimeout((function(){e.css("opacity",1)}),4e3))})),t(".epyt-gallery").each((function(){var a=t(this);if(!a.data("epytevents")||!t("body").hasClass("block-editor-page")){a.data("epytevents","1");var o=t(this).find("iframe, div.__youtube_prefs_gdpr__, div.epyt-facade").first(),r=o.data("src")||o.data("facadesrc")||o.attr("src");r||(r=o.data("ep-src"));var i=t(this).find(".epyt-gallery-list .epyt-gallery-thumb").first().data("videoid");void 0!==r?(r=r.replace(i,"GALLERYVIDEOID"),a.data("ep-gallerysrc",r)):o.hasClass("__youtube_prefs_gdpr__")&&a.data("ep-gallerysrc",""),a.on("click touchend",".epyt-gallery-list .epyt-gallery-thumb",(function(r){if(o=a.find("iframe, div.__youtube_prefs_gdpr__, div.epyt-facade").first(),!e._EPYT_.touchmoved&&!t(this).hasClass("epyt-current-video")){a.find(".epyt-gallery-list .epyt-gallery-thumb").removeClass("epyt-current-video"),t(this).addClass("epyt-current-video");var i=t(this).data("videoid");a.data("currvid",i);var n=a.data("ep-gallerysrc").replace("GALLERYVIDEOID",i),d=a.find(".epyt-pagebutton").first().data("thumbplay");"0"!==d&&0!==d&&(n.indexOf("autoplay")>0?n=n.replace("autoplay=0","autoplay=1"):n+="&autoplay=1",o.addClass("epyt-thumbplay"));var s=Math.max(t("body").scrollTop(),t("html").scrollTop()),l=o.offset().top-parseInt(_EPYT_.gallery_scrolloffset);s>l?t("html, body").animate({scrollTop:l},500,(function(){e._EPADashboard_.setVidSrc(o,n)})):e._EPADashboard_.setVidSrc(o,n)}})).on("touchmove",(function(t){e._EPYT_.touchmoved=!0})).on("touchstart",(function(){e._EPYT_.touchmoved=!1})).on("keydown",".epyt-gallery-list .epyt-gallery-thumb, .epyt-pagebutton",(function(e){var a=e.which;13!==a&&32!==a||(e.preventDefault(),t(this).trigger("click"))})),a.on("mouseenter",".epyt-gallery-list .epyt-gallery-thumb",(function(){t(this).addClass("hover")})),a.on("mouseleave",".epyt-gallery-list .epyt-gallery-thumb",(function(){t(this).removeClass("hover")})),a.on("click touchend",".epyt-pagebutton",(function(o){if(!e._EPYT_.touchmoved&&!a.find(".epyt-gallery-list").hasClass("epyt-loading")){a.find(".epyt-gallery-list").addClass("epyt-loading");var r=void 0!==o.originalEvent,i={action:"my_embedplus_gallery_page",security:_EPYT_.security,options:{playlistId:t(this).data("playlistid"),pageToken:t(this).data("pagetoken"),pageSize:t(this).data("pagesize"),columns:t(this).data("epcolumns"),showTitle:t(this).data("showtitle"),showPaging:t(this).data("showpaging"),autonext:t(this).data("autonext"),thumbplay:t(this).data("thumbplay")}},n=t(this).hasClass("epyt-next"),d=parseInt(a.data("currpage")+"");d+=n?1:-1,a.data("currpage",d),t.post(_EPYT_.ajaxurl,i,(function(e){a.find(".epyt-gallery-list").html(e),a.find(".epyt-current").each((function(){t(this).text(a.data("currpage"))})),a.find('.epyt-gallery-thumb[data-videoid="'+a.data("currvid")+'"]').addClass("epyt-current-video"),"1"!=a.find(".epyt-pagebutton").first().data("autonext")||r||a.find(".epyt-gallery-thumb").first().trigger("click")})).fail((function(){alert("Sorry, there was an error loading the next page.")})).always((function(){if(a.find(".epyt-gallery-list").removeClass("epyt-loading"),"1"!=a.find(".epyt-pagebutton").first().data("autonext")){var e=Math.max(t("body").scrollTop(),t("html").scrollTop()),o=a.find(".epyt-gallery-list").offset().top-parseInt(_EPYT_.gallery_scrolloffset);e>o&&t("html, body").animate({scrollTop:o},500)}}))}})).on("touchmove",(function(t){e._EPYT_.touchmoved=!0})).on("touchstart",(function(){e._EPYT_.touchmoved=!1}))}})),t(".__youtube_prefs_gdpr__.epyt-is-override").each((function(){t(this).parent(".wp-block-embed__wrapper").addClass("epyt-is-override__wrapper")})),t("button.__youtube_prefs_gdpr__").on("click",(function(a){a.preventDefault(),t.cookie&&(t.cookie("ytprefs_gdpr_consent","1",{expires:30,path:"/"}),e.top.location.reload())})),"eager"===e._EPYT_.maxres_facade?t("img.epyt-facade-poster").on("load.epyt",(function(){e._EPADashboard_.resolveFacadeQuality(this,!1)})).on("error",(function(){e._EPADashboard_.resolveFacadeQuality(this,!0)})).each((function(){this.complete&&t(this).trigger("load")})):"soft"===e._EPYT_.maxres_facade&&t("img.epyt-facade-poster").on("load.epyt",(function(){e._EPADashboard_.maximizeFacadeQuality(this)})).each((function(){this.complete&&t(this).trigger("load")})),t(".epyt-facade-play").each((function(){t(this).find("svg").length||t(this).append('<svg data-no-lazy="1" height="100%" version="1.1" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="#f00"></path><path d="M 45,24 27,14 27,34" fill="#fff"></path></svg>')})),t(".epyt-facade-poster[data-facadeoembed]").each((function(){var a=t(this);if(!a.data("facadeoembedcomplete")){a.data("facadeoembedcomplete","1");var o="https://www.youtube.com/"+a.data("facadeoembed");t.get("https://youtube.com/oembed",{url:o,format:"json"},(function(t){var o="eager"===e._EPYT_.maxres_facade?t.thumbnail_url.replace("hqdefault","maxresdefault"):t.thumbnail_url;a.attr("src",o)}),"json").fail((function(){})).always((function(){}))}})),t(document).on("click",".epyt-facade",(function(a){var o=t(this),r=o.attr("data-facadesrc");r=e._EPADashboard_.cleanSrc(r);for(var i=document.createElement("iframe"),n=0;n<this.attributes.length;n++){var d=this.attributes[n];(["allow","class","height","id","width"].indexOf(d.name.toLowerCase())>=0||0==d.name.toLowerCase().indexOf("data-"))&&t(i).attr(d.name,d.value)}t(i).removeClass("epyt-facade"),t(i).attr("allowfullscreen","").attr("title",o.find("img").attr("alt")).attr("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share").attr("referrerpolicy","strict-origin-when-cross-origin"),e._EPADashboard_.loadYTAPI(),o.replaceWith(i),e._EPADashboard_.setVidSrc(t(i),r),setTimeout((function(){void 0!==t.fn.fitVidsEP&&t(t(i).parent()).fitVidsEP()}),1)}))}}),e.onYouTubeIframeAPIReady=void 0!==e.onYouTubeIframeAPIReady?e.onYouTubeIframeAPIReady:function(){e._EPYT_.pageLoaded?(e._EPADashboard_.apiInit(),e._EPADashboard_.log("YT API ready")):t(e).on("load._EPYT_",(function(){e._EPADashboard_.apiInit(),e._EPADashboard_.log("YT API ready 2")}))},(!e._EPYT_.facade_mode||e._EPYT_.not_live_on_channel&&t('iframe[src*="youtube.com/embed/live_stream"], iframe[data-src*="youtube.com/embed/live_stream"]').length)&&e._EPADashboard_.loadYTAPI(),e._EPYT_.pageLoaded?e._EPADashboard_.doubleCheck():t(e).on("load._EPYT_",(function(){e._EPADashboard_.doubleCheck()})),t(document).ready((function(){e._EPADashboard_.pageReady(),(!e._EPYT_.facade_mode||e._EPYT_.not_live_on_channel&&t('iframe[src*="youtube.com/embed/live_stream"], iframe[data-src*="youtube.com/embed/live_stream"]').length)&&e._EPADashboard_.loadYTAPI(),e._EPYT_.ajax_compat&&t(e).on("load._EPYT_",(function(){t(document).ajaxSuccess((function(t,a,o){a&&a.responseText&&(-1!==a.responseText.indexOf("<iframe ")||-1!==a.responseText.indexOf("enablejsapi"))&&(e._EPADashboard_.loadYTAPI(),e._EPADashboard_.apiInit(),e._EPADashboard_.log("YT API AJAX"),e._EPADashboard_.pageReady())}))}))}))}(window,jQuery);
// source --> https://dadanaut.de/wp-content/plugins/youtube-embed-plus/scripts/jquery.cookie.min.js?ver=14.2.6 
/*! jquery.cookie v1.4.1 | MIT */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
// source --> https://dadanaut.de/wp-content/plugins/ultimate-member/assets/js/um-gdpr.min.js?ver=2.11.4 
jQuery(document).on("click","a.um-toggle-gdpr",function(e){var e=jQuery(e.currentTarget),t=e.closest(".um-field-area"),g=t.find(".um-gdpr-content");g.is(":visible")?(t.find("a.um-toggle-gdpr").text(e.data("toggle-show")),g.hide().find("a.um-toggle-gdpr").remove(),e.length&&e.get(0).scrollIntoView()):(t.find("a.um-toggle-gdpr").text(e.data("toggle-hide")),g.show().prepend(e.clone()))});