!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"function"==typeof require?t(require("jquery")):t(jQuery)}(function(d){"use strict";var i={escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(t){var e=document.createElement("div");return e.className=t,e.style.position="absolute",e.style.display="none",e}},n=27,o=9,s=13,r=38,a=39,l=40;function c(t,e){function i(){}var n=this,o={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:c.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:i,onSearchComplete:i,onSearchError:i,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(t,e,i){return-1!==t.value.toLowerCase().indexOf(i)},paramName:"query",transformResult:function(t){return"string"==typeof t?JSON.parse(t):t},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};n.element=t,n.el=d(t),n.suggestions=[],n.badQueries=[],n.selectedIndex=-1,n.currentValue=n.element.value,n.intervalId=0,n.cachedResponse={},n.onChangeInterval=null,n.onChange=null,n.isLocal=!1,n.suggestionsContainer=null,n.noSuggestionsContainer=null,n.options=d.extend({},o,e),n.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},n.hint=null,n.hintValue="",n.selection=null,n.initialize(),n.setOptions(e)}c.utils=i,(d.Autocomplete=c).formatResult=function(t,e){e="("+i.escapeRegExChars(e)+")";return t.value.replace(new RegExp(e,"gi"),"$1").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>")},c.prototype={killerFn:null,initialize:function(){var t,e=this,i="."+e.classes.suggestion,n=e.classes.selected,o=e.options;e.element.setAttribute("autocomplete","off"),e.killerFn=function(t){0===d(t.target).closest("."+e.options.containerClass).length&&(e.killSuggestions(),e.disableKillerFn())},e.noSuggestionsContainer=d('
').html(this.options.noSuggestionNotice).get(0),e.suggestionsContainer=c.utils.createNode(o.containerClass),(t=d(e.suggestionsContainer)).appendTo(o.appendTo),"auto"!==o.width&&t.width(o.width),t.on("mouseover.autocomplete",i,function(){e.activate(d(this).data("index"))}),t.on("mouseout.autocomplete",function(){e.selectedIndex=-1,t.children("."+n).removeClass(n)}),t.on("click.autocomplete",i,function(){e.select(d(this).data("index"))}),e.fixPositionCapture=function(){e.visible&&e.fixPosition()},d(window).on("resize.autocomplete",e.fixPositionCapture),e.el.on("keydown.autocomplete",function(t){e.onKeyPress(t)}),e.el.on("keyup.autocomplete",function(t){e.onKeyUp(t)}),e.el.on("blur.autocomplete",function(){e.onBlur()}),e.el.on("focus.autocomplete",function(){e.onFocus()}),e.el.on("change.autocomplete",function(t){e.onKeyUp(t)}),e.el.on("input.autocomplete",function(t){e.onKeyUp(t)})},onFocus:function(){var t=this;t.fixPosition(),0===t.options.minChars&&0===t.el.val().length&&t.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var t=this;t.currentRequest&&(t.currentRequest.abort(),t.currentRequest=null)},setOptions:function(t){var e=this,i=e.options;d.extend(i,t),e.isLocal=Array.isArray(i.lookup),e.isLocal&&(i.lookup=e.verifySuggestionsFormat(i.lookup)),i.orientation=e.validateOrientation(i.orientation,"bottom"),d(e.suggestionsContainer).css({"max-height":i.maxHeight+"px",width:i.width+"px","z-index":i.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var t=this;t.disabled=!0,clearInterval(t.onChangeInterval),t.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t,e,i,n,o,s,r,a,l=this,c=d(l.suggestionsContainer),h=c.parent().get(0);h!==document.body&&!l.options.forceFixPosition||(s=l.options.orientation,t=c.outerHeight(),e=l.el.outerHeight(),i={top:(a=l.el.offset()).top,left:a.left},"auto"===s&&(r=d(window).height(),n=-(o=d(window).scrollTop())+a.top-t,o=o+r-(a.top+e+t),s=Math.max(n,o)===n?"top":"bottom"),i.top+="top"===s?-t:e,h!==document.body&&(r=c.css("opacity"),l.visible||c.css("opacity",0).show(),a=c.offsetParent().offset(),i.top-=a.top,i.left-=a.left,l.visible||c.css("opacity",r).hide()),"auto"===l.options.width&&(i.width=l.el.outerWidth()-2+"px"),c.css(i))},enableKillerFn:function(){d(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){d(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(){var t=this;t.stopKillSuggestions(),t.intervalId=window.setInterval(function(){t.visible&&(t.el.val(t.currentValue),t.hide()),t.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var t=this.el.val().length,e=this.element.selectionStart;return"number"==typeof e?e===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(t){var e=this;if(e.disabled||e.visible||t.which!==l||!e.currentValue){if(!e.disabled&&e.visible){switch(t.which){case n:e.el.val(e.currentValue),e.hide();break;case a:if(e.hint&&e.options.onHint&&e.isCursorAtEnd()){e.selectHint();break}return;case o:if(e.hint&&e.options.onHint)return void e.selectHint();if(-1===e.selectedIndex)return void e.hide();if(e.select(e.selectedIndex),!1===e.options.tabDisabled)return;break;case s:if(-1===e.selectedIndex)return void e.hide();e.select(e.selectedIndex);break;case r:e.moveUp();break;case l:e.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}}else e.suggest()},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.which){case r:case l:return}clearInterval(e.onChangeInterval),e.currentValue!==e.el.val()&&(e.findBestHint(),0o&&(t.suggestions=t.suggestions.slice(0,o)),t},getSuggestions:function(n){var t,e,i,o=this,s=o.options,r=s.serviceUrl;s.params[s.paramName]=n,t=s.ignoreParams?null:s.params,!1!==s.onSearchStart.call(o.element,s.params)&&("function"==typeof s.lookup?s.lookup(n,function(t){o.suggestions=t.suggestions,o.suggest(),s.onSearchComplete.call(o.element,n,t.suggestions)}):(i=o.isLocal?o.getSuggestionsLocal(n):("function"==typeof r&&(r=r.call(o.element,n)),e=r+"?"+d.param(t||{}),o.cachedResponse[e]))&&Array.isArray(i.suggestions)?(o.suggestions=i.suggestions,o.suggest(),s.onSearchComplete.call(o.element,n,i.suggestions)):o.isBadQuery(n)?s.onSearchComplete.call(o.element,n,[]):(o.abortAjax(),i={url:r,data:t,type:s.type,dataType:s.dataType},d.extend(i,s.ajaxSettings),o.currentRequest=d.ajax(i).done(function(t){o.currentRequest=null,t=s.transformResult(t,n),o.processResponse(t,n,e),s.onSearchComplete.call(o.element,n,t.suggestions)}).fail(function(t,e,i){s.onSearchError.call(o.element,n,t,e,i)})))},isBadQuery:function(t){if(!this.options.preventBadQueries)return!1;for(var e=this.badQueries,i=e.length;i--;)if(0===t.indexOf(e[i]))return!0;return!1},hide:function(){var t=this,e=d(t.suggestionsContainer);"function"==typeof t.options.onHide&&t.visible&&t.options.onHide.call(t.element,e),t.visible=!1,t.selectedIndex=-1,clearInterval(t.onChangeInterval),d(t.suggestionsContainer).hide(),t.signalHint(null)},suggest:function(){var t,e,i,n,o,s,r,a,l,c,h,u;0===this.suggestions.length?this.options.showNoSuggestionNotice?this.noSuggestions():this.hide():(e=(t=this).options,i=e.groupBy,n=e.formatResult,o=t.getQuery(t.currentValue),s=t.classes.suggestion,r=t.classes.selected,a=d(t.suggestionsContainer),l=d(t.noSuggestionsContainer),c=e.beforeRender,h="",e.triggerSelectOnValidInput&&t.isExactMatch(o)?t.select(0):(d.each(t.suggestions,function(t,e){i&&(h+=function(t){t=t.data[i];return u===t?"":'
'+(u=t)+"
"}(e)),h+='
'+n(e,o)+"
"}),this.adjustContainerWidth(),l.detach(),a.html(h),"function"==typeof c&&c.call(t.element,a),t.fixPosition(),a.show(),e.autoSelectFirst&&(t.selectedIndex=0,a.scrollTop(0),a.children("."+s).first().addClass(r)),t.visible=!0,t.findBestHint()))},noSuggestions:function(){var t=d(this.suggestionsContainer),e=d(this.noSuggestionsContainer);this.adjustContainerWidth(),e.detach(),t.empty(),t.append(e),this.fixPosition(),t.show(),this.visible=!0},adjustContainerWidth:function(){var t=this.options,e=d(this.suggestionsContainer);"auto"===t.width&&(t=this.el.outerWidth()-2,e.width(0e.selectedIndex?(n=o.get(e.selectedIndex),d(n).addClass(i),n):null},selectHint:function(){var t=d.inArray(this.hint,this.suggestions);this.select(t)},select:function(t){this.hide(),this.onSelect(t)},moveUp:function(){var t=this;if(-1!==t.selectedIndex)return 0===t.selectedIndex?(d(t.suggestionsContainer).children().first().removeClass(t.classes.selected),t.selectedIndex=-1,t.el.val(t.currentValue),void t.findBestHint()):void t.adjustScroll(t.selectedIndex-1)},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(t){var e,i,n,o=this,s=o.activate(t);s&&(e=d(s).outerHeight(),s=s.offsetTop,n=(i=d(o.suggestionsContainer).scrollTop())+o.options.maxHeight-e,s=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),totalDays:Math.floor(this.totalSecsLeft/60/60/24),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-e.getFullYear())},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish"))))},dispatchEvent:function(t){t=n.Event(t+".countdown");t.finalDate=this.finalDate,t.elapsed=this.elapsed,t.offset=n.extend({},this.offset),t.strftime=i(this.offset),this.$el.trigger(t)}}),n.fn.countdown=function(){var i=Array.prototype.slice.call(arguments,0);return this.each(function(){var t,e=n(this).data("countdown-instance");void 0!==e?(e=o[e],t=i[0],r.prototype.hasOwnProperty(t)?e[t].apply(e,i.slice(1)):null===String(t).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(e.setFinalDate.call(e,t),e.start()):n.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,t))):new r(this,i[0],i[1])})}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.dayjs=e()}(this,function(){"use strict";function n(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t}function i(t){return t instanceof b}function o(t,e,i){var n;return t?("string"==typeof t?(h[t]&&(n=t),e&&(h[t]=e,n=t)):(e=t.name,h[e]=t,n=e),!i&&n&&(c=n),n||!i&&c):c}function r(t,e){return i(t)?t.clone():((e="object"==typeof e?e:{}).date=t,e.args=arguments,new b(e))}var s="millisecond",u="second",d="minute",p="hour",f="day",m="week",g="month",a="quarter",y="year",v="date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,_=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,t={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},e={s:n,z:function(t){var t=-t.utcOffset(),e=Math.abs(t),i=Math.floor(e/60),e=e%60;return(t<=0?"+":"-")+n(i,2,"0")+":"+n(e,2,"0")},m:function t(e,i){if(e.date()