You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

2 lines
265 KiB

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=3)}([function(t,e,i){var n,a,o,r;r=function(t,e){"use strict";var i,n=(i=e)&&i.__esModule?i:{default:i};var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return o(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=i+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":a(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=r},a=[t,i(7)],void 0===(o="function"==typeof(n=r)?n.apply(e,a):n)||(t.exports=o)},function(t,e,i){var n=i(6),a=i(5);t.exports=function(t,e,i){if(!t&&!e&&!i)throw new Error("Missing required arguments");if(!n.string(e))throw new TypeError("Second argument must be a String");if(!n.fn(i))throw new TypeError("Third argument must be a Function");if(n.node(t))return function(t,e,i){return t.addEventListener(e,i),{destroy:function(){t.removeEventListener(e,i)}}}(t,e,i);if(n.nodeList(t))return function(t,e,i){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,i)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,i)})}}}(t,e,i);if(n.string(t))return function(t,e,i){return a(document.body,t,e,i)}(t,e,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(t,e){function i(){}i.prototype={on:function(t,e,i){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var n=this;function a(){n.off(t,a),e.apply(i,arguments)}return a._=e,this.on(t,a,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),n=0,a=i.length;n<a;n++)i[n].fn.apply(i[n].ctx,e);return this},off:function(t,e){var i=this.e||(this.e={}),n=i[t],a=[];if(n&&e)for(var o=0,r=n.length;o<r;o++)n[o].fn!==e&&n[o].fn._!==e&&a.push(n[o]);return a.length?i[t]=a:delete i[t],this}},t.exports=i},function(t,e,i){var n,a,o,r;r=function(t,e,i,n){"use strict";var a=s(e),o=s(i),r=s(n);function s(t){return t&&t.__esModule?t:{default:t}}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var c=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var u=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.resolveOptions(i),n.listenClick(t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),c(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===l(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,r.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return h("action",t)}},{key:"defaultTarget",value:function(t){var e=h("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return h("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,i=!!document.queryCommandSupported;return e.forEach(function(t){i=i&&!!document.queryCommandSupported(t)}),i}}]),e}();function h(t,e){var i="data-clipboard-"+t;if(e.hasAttribute(i))return e.getAttribute(i)}t.exports=u},a=[t,i(0),i(2),i(1)],void 0===(o="function"==typeof(n=r)?n.apply(e,a):n)||(t.exports=o)},function(t,e){var i=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&t.nodeType!==i;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,i){var n=i(4);function a(t,e,i,a,o){var r=function(t,e,i,a){return function(i){i.delegateTarget=n(i.target,e),i.delegateTarget&&a.call(t,i)}}.apply(this,arguments);return t.addEventListener(i,r,o),{destroy:function(){t.removeEventListener(i,r,o)}}}t.exports=function(t,e,i,n,o){return"function"==typeof t.addEventListener?a.apply(null,arguments):"function"==typeof i?a.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return a(t,e,i,n,o)}))}},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var i=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===i||"[object HTMLCollection]"===i)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var i=t.hasAttribute("readonly");i||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),i||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),a=document.createRange();a.selectNodeContents(t),n.removeAllRanges(),n.addRange(a),e=n.toString()}return e}}])}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=/\+/g;function i(t){return a.raw?t:encodeURIComponent(t)}function n(i,n){var o=a.raw?i:function(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t=decodeURIComponent(t.replace(e," ")),a.json?JSON.parse(t):t}catch(t){}}(i);return t.isFunction(n)?n(o):o}var a=t.cookie=function(e,o,r){if(arguments.length>1&&!t.isFunction(o)){if("number"==typeof(r=t.extend({},a.defaults,r)).expires){var s=r.expires,l=r.expires=new Date;l.setMilliseconds(l.getMilliseconds()+864e5*s)}return document.cookie=[i(e),"=",function(t){return i(a.json?JSON.stringify(t):String(t))}(o),r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}for(var c,u=e?void 0:{},h=document.cookie?document.cookie.split("; "):[],d=0,f=h.length;d<f;d++){var p=h[d].split("="),m=(c=p.shift(),a.raw?c:decodeURIComponent(c)),g=p.join("=");if(e===m){u=n(g,o);break}e||void 0===(g=n(g))||(u[m]=g)}return u};a.defaults={},t.removeCookie=function(e,i){return t.cookie(e,"",t.extend({},i,{expires:-1})),!t.cookie(e)}}),window.console&&window.console.log||(window.console={log:function(){}});var APP={POPUP:null,REGEX:{}};APP.REGEX.uniqueID=/^[a-z][a-z0-9_]{2,19}$/g,function(t){APP.POPUP=function(e){var i=t.extend({},{title:"_blank",width:800,height:600,url:""},e);cw=screen.availWidth,ch=screen.availHeight,sw=i.width,sh=i.height,ml=(cw-sw)/2,mt=(ch-sh)/2;e="width="+sw+",height="+sh+",top="+mt+",left="+ml+",scrollbars=yes,resizable=no";var n=window.open(i.url,i.title,e);(null==n||void 0===n||null==n&&0==n.outerWidth||null!=n&&0==n.outerHeight)&&alert("팝업 차단 기능이 설정되어있습니다\n\n차단 기능을 해제(팝업허용) 한 후 다시 이용해 주십시오.")}}(jQuery),APP.SET_LANG=function(t){$.cookie("site_lang",t,{expires:30,path:"/"}),location.reload()},$('[data-toggle="btn-popup-close"]').click(function(t){var e=$(this).data("type"),i=$(this).data("idx"),n=$(this).data("cookie");"Y"==e?window.close():"N"==e&&$("#popup-"+i).remove(),1==n&&$.cookie("popup_"+i,1,{expires:1,path:"/"})}),$("a[data-toggle='sns-share']").not('[data-service="link"]').click(function(t){t.preventDefault();var e=$(this),i=e.data("service"),n=e.data("url"),a=e.data("title"),o="",r=$("meta[name='og:image']").attr("content");if(i&&n&&a){if("facebook"==i)o="//www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(n);else if("twitter"==i)o="//twitter.com/home?status="+encodeURIComponent(a)+" "+n;else if("google"==i)o="//plus.google.com/share?url="+n;else if("pinterest"==i)o="//www.pinterest.com/pin/create/button/?url="+n+"&media="+r+"&description="+encodeURIComponent(a);else if("kakaostory"==i)o="https://story.kakao.com/share?url="+encodeURIComponent(n);else if("band"==i)o="http://www.band.us/plugin/share?body="+encodeURIComponent(a)+"%0A"+encodeURIComponent(n);else if("naver"==i)o="http://share.naver.com/web/shareView.nhn?url="+encodeURIComponent(n)+"&title="+encodeURIComponent(a);else{if("line"!=i)return!1;o="http://line.me/R/msg/text/?"+encodeURIComponent(a+"\n"+n)}return APP.POPUP({url:o}),!1}}),$(function(){new ClipboardJS('a[data-toggle="sns-share"][data-service="link"]',{text:function(t){return t.getAttribute("data-url")}}).on("success",function(){alert("현재 URL이 복사되었습니다.")})}),APP.MEMBER={},APP.MEMBER.init=function(){APP.MEMBER.InitLoginForm(),APP.MEMBER.initCheckExist(),APP.MEMBER.InitRegisterForm(),APP.MEMBER.InitMemberModifyForm()},APP.MEMBER.InitRegisterForm=function(){$('[data-form="form-register"]').submit(function(t){t.preventDefault();var e=$(this);$.ajax({type:"PUT",data:e.serialize(),url:base_url+"/ajax/members/info",success:function(t){1==t.result&&(alert(LANG.member_join_success),location.href=base_url+"/members/login")}})})},APP.MEMBER.InitMemberModifyForm=function(){$('[data-form="form-member-modify"]').submit(function(t){t.preventDefault();var e=$(this);$.ajax({type:"POST",data:e.serialize(),url:base_url+"/ajax/members/info",success:function(t){1==t.result&&(alert(t.message),location.reload())}})})},APP.MEMBER.InitLoginForm=function(){$('[data-role="form-login"]').submit(function(t){t.preventDefault();var e=$(this),i=e.find('[name="login_id"]'),n=e.find('[name="login_pass"]');return""==i.val().trim()?(alert(LANG.member_login_userid_required),i.focus(),!1):""==n.val().trim()?(alert(LANG.member_login_password_required),n.focus(),!1):void $.ajax({url:base_url+"ajax/members/login",type:"POST",data:e.serialize(),success:function(t){1==t.result&&(location.href=t.reurl?t.reurl:base_url)},error:function(t){n.val("")}})})},APP.MEMBER.initCheckExist=function(){$('[data-toggle="check-member-exist"]').each(function(){var t=$(this);t.on("click",function(){var e=$("#"+t.data("target")),i=t.data("check"),n=e.val();if(void 0===n||!n||!n.trim())return alert(LANG.member_join_user_id_required),e.focus(),!1;var a=APP.MEMBER.denyWordCheck(i,n);return"VALID_EMAIL"==a?(alert(LANG.member_join_no_valid_email_address),e.focus(),!1):a?APP.MEMBER.getInfo(i,n)?(alert(LANG.member_join_user_id_already_exists),e.focus(),!1):(alert(LANG.member_join_user_id_available),!0):(alert(LANG.member_join_user_id_contains_deny_word),e.focus(),!1)})})},APP.MEMBER.getInfo=function(t,e){var i=null;return $.ajax({url:base_url+"/ajax/members/info",type:"get",async:!1,cache:!1,data:{key:t,value:e},success:function(t){i=t.result}}),i},APP.MEMBER.denyWordCheck=function(t,e){var i=null;return $.ajax({url:base_url+"/ajax/members/word_check",type:"get",async:!1,cache:!1,data:{key:t,value:e},success:function(t){i=t.result}}),i},APP.MEMBER.POP_CHANGE_PHOTO=function(){APP.POPUP({url:"/members/photo_change",width:600,height:150})},$(document).ready(APP.MEMBER.init),APP.BOARD={},APP.BOARD.CATEGORY={},APP.BOARD.EXTRA={},APP.BOARD.COMMENT={},APP.BOARD.CATEGORY.count=function(t){if(void 0===t||!t)return 0;var e=0;return $.ajax({url:base_url+"/ajax/board/category_count",type:"get",cache:!1,async:!1,data:{bca_idx:t},success:function(t){e=t.result}}),e},APP.BOARD.CATEGORY.postCount=function(t){if(void 0===t||!t)return 0;var e=0;return $.ajax({url:base_url+"/ajax/board/category_post_count",type:"get",cache:!1,async:!1,data:{bca_idx:t},success:function(t){e=t.result}}),e},APP.BOARD.COMMENT.modify=function(t){APP.POPUP({title:"_blank",width:800,height:600,url:base_url+"/board/comment/modify/"+t})},APP.BOARD.COMMENT.reply=function(t,e){APP.POPUP({title:"_blank",width:800,height:600,url:base_url+"/board/comment/reply/"+t+"/"+e})},$(function(){var t=$('[data-form="post"]');t.length>0&&t.on("submit",function(){$.blockUI({css:{width:"25px",top:"49%",left:"49%",border:"0px none",backgroundColor:"transparent",cursor:"wait"},message:'<img src="/assets/images/common/ajax-loader.gif" alt="로딩중">',baseZ:1e4,overlayCSS:{opacity:0}})})});var DateFormatter,_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};(function(){"use strict";var t=this,e=this,i=e?e.document:null,n=(e&&e.document.documentElement,/^(["'](\\.|[^"\\\n\r])*?["']|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/),a=/^-ms-/,o=/[\-_]([\da-z])/gi,r=/([A-Z])/g,s=/\./,l=/[-|+]?[\D]/gi,c=/\D/gi,u=new RegExp("([0-9])([0-9][0-9][0-9][,.])"),h=/&/g,d=/=/,f=/[ ]+/g,p={},m=void 0,g=void 0;p.guid=1,p.getGuid=function(){return p.guid++},p.info=m=function(){var t=arguments,n=function(t,i,n,a,o,r){return e&&e.navigator?(i=-1!=(t=navigator.userAgent.toLowerCase()).search(/mobile/g),-1!=t.search(/iphone/g)?{name:"iphone",version:0,mobile:!0}:-1!=t.search(/ipad/g)?{name:"ipad",version:0,mobile:!0}:-1!=t.search(/android/g)?{name:"android",version:(a=/(android)[ \/]([\w.]+)/.exec(t)||[])[2]||"0",mobile:i}:("","msie"==(o=(a=/(opr)[ \/]([\w.]+)/.exec(t)||/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[])[1]||"")&&(o="ie"),{name:o,version:a[2]||"0",mobile:i})):{}}(),a=!("undefined"==typeof window||"undefined"==typeof navigator||!e.document),o=e&&/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";return{errorMsg:{},version:"1.4.126",baseUrl:"",onerror:function(){console.error(g.toArray(t).join(":"))},eventKeys:{BACKSPACE:8,TAB:9,RETURN:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,HOME:36,END:35,PAGEUP:33,PAGEDOWN:34,INSERT:45,SPACE:32},weekNames:[{label:"SUN"},{label:"MON"},{label:"TUE"},{label:"WED"},{label:"THU"},{label:"FRI"},{label:"SAT"}],browser:n,isBrowser:a,supportTouch:!!e&&("ontouchstart"in e||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),supportFileApi:!!e&&(e.FileReader&&e.File&&e.FileList&&e.Blob),wheelEnm:o,urlUtil:function(t,n){return n=(t={href:e.location.href,param:e.location.search,referrer:i.referrer,pathname:e.location.pathname,hostname:e.location.hostname,port:e.location.port}).href.split(/[\?#]/),t.param=t.param.replace("?",""),t.url=n[0],t.href.search("#")>-1&&(t.hashdata=g.last(n)),n=null,t.baseUrl=g.left(t.href,"?").replace(t.pathname,""),t},getError:function(t,e,i){return m.errorMsg&&m.errorMsg[t]?{className:t,errorCode:e,methodName:i,msg:m.errorMsg[t][e]}:{className:t,errorCode:e,methodName:i}}}}(),p.util=g=function(){var v=Object.prototype.toString;function y(t,e){if(M(t))return[];var i=void 0,n=0,a=t.length;if(void 0===a||"function"==typeof t){for(i in t)if(void 0!==t[i]&&!1===e.call(t[i],i,t[i]))break}else for(;n<a&&(void 0===t[n]||!1!==e.call(t[n],n,t[n++])););return t}function _(t){var e="";if(p.util.isArray(t)){var i=0,n=t.length;for(e+="[";i<n;i++)i>0&&(e+=","),e+=_(t[i]);e+="]"}else if(p.util.isObject(t)){e+="{";var a=[];y(t,function(t,e){a.push('"'+t+'": '+_(e))}),e+=a.join(", "),e+="}"}else e=p.util.isString(t)?'"'+t+'"':p.util.isNumber(t)?t:p.util.isUndefined(t)?"undefined":p.util.isFunction(t)?'"{Function}"':t;return e}function b(t){return"[object Object]"==v.call(t)}function w(t){return"[object Array]"==v.call(t)}function k(t){return"function"==typeof t}function x(t){return"[object String]"==v.call(t)}function D(t){return"[object Number]"==v.call(t)}function M(t){return null==t||""===t}function T(t,e){return void 0===t||void 0===e?"":x(e)?t.indexOf(e)>-1?t.substr(0,t.indexOf(e)):"":D(e)?t.substr(0,e):""}function C(t,e){return void 0===t||void 0===e?"":(t=""+t,x(e)?t.lastIndexOf(e)>-1?t.substr(t.lastIndexOf(e)+1):"":D(e)?t.substr(t.length-e):"")}function S(t){return t.replace(a,"ms-").replace(o,function(t,e){return e.toUpperCase()})}function P(t){return S(t).replace(r,function(t,e){return"-"+e.toLowerCase()})}function A(t,e){var i,n,a,o=(""+t).split(s);return n=Number(o[0].replace(/,/g,""))<0||"-0"==o[0],a=0,o[0]=o[0].replace(l,""),o[1]?(o[1]=o[1].replace(c,""),a=Number(o[0]+"."+o[1])||0):a=Number(o[0])||0,i=n?-a:a,y(e,function(t,e){var n,a;"round"==t&&(i=D(e)?e<0?+(Math.round(i+"e-"+Math.abs(e))+"e+"+Math.abs(e)):+(Math.round(i+"e+"+e)+"e-"+e):Math.round(i)),"floor"==t&&(i=Math.floor(i)),"ceil"==t?i=Math.ceil(i):"money"==t?i=function(t){var e=""+i;if(isNaN(e)||""==e)return"";var n=e.split(".");n[0]+=".";do{n[0]=n[0].replace(u,"$1,$2")}while(u.test(n[0]));return n.length>1?n.join(""):n[0].split(".")[0]}():"abs"==t?i=Math.abs(Number(i)):"byte"==t&&(n="KB",(a=Number(i)/1024)/1024>1&&(n="MB",a/=1024),a/1024>1&&(n="GB",a/=1024),i=A(a,{round:1})+n)}),i}function I(t,e,i,n,a,o){var r;return new Date,e<0&&(e=0),void 0===n&&(n=12),void 0===a&&(a=0),r=new Date(Date.UTC(t,e,i||1,n,a,o||0)),0==e&&1==i&&r.getUTCHours()+r.getTimezoneOffset()/60<0?r.setUTCHours(0):r.setUTCHours(r.getUTCHours()+r.getTimezoneOffset()/60),r}function O(t,e){var i,n,a,o,r,s,l,c,u,h,d,f,p,g,v,y=void 0,_=void 0,b=void 0,w=void 0,k=void 0,D=void 0,M=void 0,T=void 0,S=void 0,P=void 0;if(x(t))if(0==t.length)t=new Date;else if(t.length>15)/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i.test(t)||/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?)?)?)?$/i.test(t)?t=new Date(t):(y=(S=(D=t.split(/ /g))[0].split(/\D/g))[0],_=parseFloat(S[1]),b=parseFloat(S[2]),M=(T=D[1]||"09:00").substring(0,5).split(":"),w=parseFloat(M[0]),k=parseFloat(M[1]),"AM"!==C(T,2)&&"PM"!==C(T,2)||(w+=12),t=I(y,_-1,b,w,k));else if(14==t.length)P=t.replace(/\D/g,""),t=I(P.substr(0,4),P.substr(4,2)-1,A(P.substr(6,2)),A(P.substr(8,2)),A(P.substr(10,2)),A(P.substr(12,2)));else if(t.length>7)P=t.replace(/\D/g,""),t=I(P.substr(0,4),P.substr(4,2)-1,A(P.substr(6,2)));else if(t.length>4)P=t.replace(/\D/g,""),t=I(P.substr(0,4),P.substr(4,2)-1,1);else{if(t.length>2)return I((P=t.replace(/\D/g,"")).substr(0,4),P.substr(4,2)-1,1);t=new Date}return void 0===e||void 0===t?t:("add"in e&&(t=function(t,e){var i=void 0,n=void 0,a=void 0,o=void 0;return void 0!==e.d?t.setTime(t.getTime()+864e5*e.d):void 0!==e.m?(i=t.getFullYear(),n=t.getMonth(),a=t.getDate(),(o=E(i+=parseInt(e.m/12),n+=e.m%12))<a&&(a=o),t=new Date(i,n,a,12)):void 0!==e.y?t.setTime(t.getTime()+365*e.y*864e5):void 0!==e.h&&t.setTime(t.getTime()+1e3*e.h*60*60),t}(new Date(t),e.add)),"set"in e&&(t=function(t,e){var i=void 0,n=void 0,a=void 0,o={firstDayOfMonth:function(t){return i=t.getFullYear(),n=t.getMonth(),a=1,new Date(i,n,a,12)},lastDayOfMonth:function(t){return i=t.getFullYear(),n=t.getMonth(),a=E(i,n),new Date(i,n,a,12)}};return e in o?o[e](t):t}(new Date(t),e.set)),"return"in e?(p=e.return,g=void 0,v=void 0,i=t.getUTCFullYear(),g=j(t.getMonth()+1,2),v=j(t.getDate(),2),n=j(t.getHours(),2),a=j(t.getMinutes(),2),o=j(t.getSeconds(),2),r=t.getDay(),/[^y]*(yyyy)[^y]*/gi.exec(p),s=RegExp.$1,/[^m]*(MM)[^m]*/g.exec(p),l=RegExp.$1,/[^d]*(dd)[^d]*/gi.exec(p),c=RegExp.$1,/[^h]*(hh)[^h]*/gi.exec(p),u=RegExp.$1,/[^m]*(mm)[^i]*/g.exec(p),h=RegExp.$1,/[^s]*(ss)[^s]*/gi.exec(p),d=RegExp.$1,/[^d]*(dw)[^w]*/gi.exec(p),f=RegExp.$1,"yyyy"===s&&(p=p.replace(s,C(i,s.length))),"MM"===l&&(1==l.length&&(g=t.getMonth()+1),p=p.replace(l,g)),"dd"===c&&(1==c.length&&(v=t.getDate()),p=p.replace(c,v)),"hh"===u&&(p=p.replace(u,n)),"mm"===h&&(p=p.replace(h,a)),"ss"===d&&(p=p.replace(d,o)),"dw"==f&&(p=p.replace(f,m.weekNames[r].label)),p):t)}function E(t,e){return 3==e||5==e||8==e||10==e?30:1==e?t%4==0&&t%100!=0||t%400==0?29:28:31}function j(t,e,i,n){var a=t.toString(n||10);return N(i||"0",e-a.length)+a}function N(t,e){return e<1?"":new Array(e+1).join(t)}var F,W=(F={textRange:{selectAll:function(t,e,i){},arr:function(t,e,i){e.moveStart("character",i[0]),e.collapse(),e.moveEnd("character",i[1])},start:function(t,e,i){e.moveStart("character",0),e.collapse()},end:function(t,e,i){e.moveStart("character",e.text.length),e.collapse()}},range:{selectAll:function(t,e,i){e.selectNodeContents(t)},arr:function(t,e,i){b(i[0])?(e.setStart(i[0].node,i[0].offset),e.setEnd(i[1].node,i[1].offset)):(e.setStart(t.firstChild,i[0]),e.setEnd(t.firstChild,i[1]))},start:function(t,e,i){e.selectNodeContents(t),e.collapse(!0)},end:function(t,e,i){e.selectNodeContents(t),e.collapse(!1)}}},function(t,e){var n,a,o;if(t instanceof jQuery&&(t=t.get(0)),t){if(i.body.createTextRange?((n=document.body.createTextRange()).moveToElementText(t),a="textRange"):window.getSelection&&(o=window.getSelection(),n=document.createRange(),a="range"),void 0===e)F[a].selectAll.call(this,t,n,e);else if(w(e))F[a].arr.call(this,t,n,e);else for(var r in F[a])if(e==r){F[a][r].call(this,t,n,e);break}i.body.createTextRange?(n.select(),t.focus()):window.getSelection&&(t.focus(),o.removeAllRanges(),o.addRange(n))}});function H(t,e,i){var n=void 0,a=void 0,o=void 0,r=void 0,s=void 0,l=void 0,c=0,u=!1,h=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var i=n,o=a;return n=a=void 0,c=e,r=t.apply(o,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||h&&t-c>=o}function m(){var t=Date.now();if(p(t))return g(t);s=setTimeout(m,function(t){var i=t-c,n=e-(t-l);return h?Math.min(n,o-i):n}(t))}function g(t){return s=void 0,d&&n?f(t):(n=a=void 0,r)}function v(){for(var t=Date.now(),i=p(t),o=arguments.length,d=Array(o),g=0;g<o;g++)d[g]=arguments[g];if(n=d,a=this,l=t,i){if(void 0===s)return function(t){return c=t,s=setTimeout(m,e),u?f(t):r}(l);if(h)return s=setTimeout(m,e),f(l)}return void 0===s&&(s=setTimeout(m,e)),r}return e=+e||0,b(i)&&(u=!!i.leading,o=(h="maxWait"in i)?Math.max(+i.maxWait||0,e):o,d="trailing"in i?!!i.trailing:d),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=a=s=void 0},v.flush=function(){return void 0===s?r:g(Date.now())},v}function z(t){return"[object String]"!=v.call(t)?t:t?t.replace(/[\<\>\&\"]/gm,function(t){switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case'"':return"&quot;";default:return t}}):""}function Y(t){return"[object String]"!=v.call(t)?t:t?t.replace(/(&lt;)|(&gt;)|(&amp;)|(&quot;)/gm,function(t){switch(t){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&quot;":return'"';default:return t}}):""}return{alert:function(t){return e.alert(_(t)),t},each:y,map:function(t,e){if(M(t))return[];var i=void 0,n=0,a=t.length,o=[],r=void 0;if(b(t)){for(i in t)if(void 0!==t[i]){if(r=void 0,!1===(r=e.call(t[i],i,t[i])))break;o.push(r)}}else for(;n<a;)if(void 0!==t[n]){if(r=void 0,!1===(r=e.call(t[n],n,t[n++])))break;o.push(r)}return o},search:function(t,e){if(M(t))return-1;if(b(t))for(var i in t){if(void 0!==t[i]&&k(e)&&e.call(t[i],i,t[i]))return i;if(t[i]==e)return i}else for(var n=0,a=t.length;n<a;n++){if(void 0!==t[n]&&k(e)&&e.call(t[n],n,t[n]))return n;if(t[n]==e)return n}return-1},reduce:function(e,i){var n,a,o;if(w(e)){for(n=0,a=e.length,o=e[n];n<a-1&&(void 0===e[n]||!1!==(o=i.call(t,o,e[++n]))););return o}if(b(e)){for(n in e)if(void 0!==e[n]&&!1===(o=i.call(t,o,e[n])))break;return o}return console.error("argument error : ax5.util.reduce - use Array or Object"),null},reduceRight:function(e,i){for(var n=e.length-1,a=e[n];n>0&&(void 0===e[n]||!1!==(a=i.call(t,a,e[--n]))););return a},filter:function(t,e){if(M(t))return[];var i,n=0,a=t.length,o=[];if(b(t))for(i in t)void 0!==t[i]&&e.call(t[i],i,t[i])&&o.push(t[i]);else for(;n<a;)void 0!==t[n]&&(e.call(t[n],n,t[n])&&o.push(t[n]),n++);return o},sum:function(t,e,i){var n=void 0,a=void 0,o=void 0;if(k(e)&&void 0===i&&(i=e,e=0),void 0===e&&(e=0),w(t)){for(n=0,a=t.length;n<a;n++)if(void 0!==t[n]){if(!1===(o=i.call(t[n],t[n])))break;void 0!==o&&(e+=o)}return e}if(b(t)){for(n in t)if(void 0!==t[n]){if(!1===(o=i.call(t[n],t[n])))break;void 0!==o&&(e+=o)}return e}return console.error("argument error : ax5.util.sum - use Array or Object"),e},avg:function(t,e,i){var n=void 0,a=void 0,o=void 0;if(k(e)&&void 0===i&&(i=e,e=0),void 0===e&&(e=0),w(t)){for(n=0,a=t.length;n<a;n++)if(void 0!==t[n]){if(!1===(o=i.call(t[n],t[n])))break;void 0!==o&&(e+=o)}return e/a}if(b(t)){for(n in a=0,t)if(void 0!==t[n]){if(!1===(o=i.call(t[n],t[n])))break;void 0!==o&&(e+=o),++a}return e/a}return console.error("argument error : ax5.util.sum - use Array or Object"),e},toJson:_,parseJson:function(t,e){if(!e&&!n.test(t))return{error:500,msg:"syntax error"};try{return new Function("","return "+t)()}catch(t){return{error:500,msg:"syntax error"}}},first:function(t){if(b(t)){var e=Object.keys(t),i={};return i[e[0]]=t[e[0]],i}return w(t)?t[0]:void console.error("ax5.util.object.first","argument type error")},last:function(t){if(b(t)){var e=Object.keys(t),i={};return i[e[e.length-1]]=t[e[e.length-1]],i}return w(t)?t[t.length-1]:void console.error("ax5.util.object.last","argument type error")},deepCopy:function t(e){var i,n;if("object"==(void 0===e?"undefined":_typeof(e))){if(g.isArray(e)){n=e.length,i=new Array(n);for(var a=0;a<n;a++)i[a]=t(e[a]);return i}return jQuery.extend({},e)}return e},left:T,right:C,getType:function(t){var e;return null!=t&&t==t.window?e="window":t&&1==t.nodeType?e="element":t&&11==t.nodeType?e="fragment":null===t?e="null":void 0===t?e="undefined":"[object Object]"==v.call(t)?e="object":"[object Array]"==v.call(t)?e="array":"[object String]"==v.call(t)?e="string":"[object Number]"==v.call(t)?e="number":"[object NodeList]"==v.call(t)?e="nodelist":"function"==typeof t&&(e="function"),e},isWindow:function(t){return null!=t&&t==t.window},isElement:function(t){return!(!t||1!=t.nodeType&&11!=t.nodeType)},isObject:b,isArray:w,isFunction:k,isString:x,isNumber:D,isNodelist:function(t){return!!("[object NodeList]"==v.call(t)||void 0!==t&&t&&t[0]&&1==t[0].nodeType)},isUndefined:function(t){return void 0===t},isNothing:M,setCookie:function(t,e,n,a){var o;return"number"==typeof n&&(o=new Date).setDate(o.getDate()+n),a=a||{},i.cookie=[escape(t),"=",escape(e),o?"; expires="+o.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")},getCookie:function(t){for(var e=t+"=",n=i.cookie.split(";"),a=0,o=n.length;a<o;a++){for(var r=n[a];" "==r.charAt(0);)r=r.substring(1);if(-1!=r.indexOf(e))return unescape(r.substring(e.length,r.length))}return""},camelCase:S,snakeCase:P,number:A,toArray:function(t){return void 0!==t.length?Array.prototype.slice.call(t):[]},merge:function(t,e){var i=e.length,n=t.length,a=0;if("number"==typeof i)for(;a<i;a++)t[n++]=e[a];else for(;void 0!==e[a];)t[n++]=e[a++];return t.length=n,t},param:function(t,e){var i;return x(t)&&void 0!==e&&"param"==e?t:x(t)&&void 0!==e&&"object"==e||x(t)&&void 0===e?(i={},y(t.split(h),function(){var t=this.split(d);i[t[0]]?(x(i[t[0]])&&(i[t[0]]=[i[t[0]]]),i[t[0]].push(t[1])):i[t[0]]=t[1]}),i):(i=[],y(t,function(t,e){i.push(t+"="+escape(e))}),i.join("&"))},error:function(){p.info.onerror.apply(this,arguments)},date:O,dday:function(t,e){var i,n=O(t),a=864e5,o=new Date;function r(t){return Math.floor(t.getTime()/a)*a}return void 0===e?i=A((r(n)-r(o))/a,{floor:!0}):(i=A((r(n)-r(o))/a,{floor:!0}),e.today&&(o=O(e.today),i=A((r(n)-r(o))/a,{floor:!0})),e.thisYear&&(i=A((r(new Date(o.getFullYear(),n.getMonth(),n.getDate()))-r(o))/a,{floor:!0}))<0&&(i=A((r(new Date(o.getFullYear()+1,n.getMonth(),n.getDate()))-r(o))/a,{floor:!0})),e.age&&(i=new Date(o.getFullYear(),n.getMonth(),n.getDate()).getFullYear()-n.getFullYear()),i)},daysOfMonth:E,weeksOfMonth:function(t){var e=O(t);return{year:e.getFullYear(),month:e.getMonth()+1,count:parseInt(e.getDate()/7+1)}},setDigit:j,times:N,findParentNode:function(t,e){if(t)for(;function(){var i=!0;if(void 0===e)t=!!t.parentNode&&t.parentNode;else if(k(e))i=e(t);else if(b(e))for(var n in e)if("tagname"===n){if(t.tagName.toLocaleLowerCase()!=e[n]){i=!1;break}}else if("clazz"===n||"class_name"===n){if(!("className"in t)){i=!1;break}for(var a=t.className.split(f),o=!1,r=0;r<a.length;r++)if(a[r]==e[n]){o=!0;break}i=o}else{if(!t.getAttribute){i=!1;break}if(t.getAttribute(n)!=e[n]){i=!1;break}}return!i}();){if(!t.parentNode||!t.parentNode.parentNode){t=!1;break}t=t.parentNode}return t},cssNumber:function(t){var e=(""+t).match(/\D?(\d+)([a-zA-Z%]*)/i),i=e[2]||"px";return e[1]+i},css:function(t){var e;if(b(t)){for(var i in e="",t)e+=i+":"+t[i]+";";return e}if(x(t))return e={},t.split(/[ ]*;[ ]*/g).forEach(function(t){if(""!==(t=t.trim())){var i=t.split(/[ ]*:[ ]*/g);e[i[0]]=i[1]}}),e},isDate:function(t){return t instanceof Date&&!isNaN(t.valueOf())},isDateFormat:function(t){var e=!1;if(t)if(t instanceof Date&&!isNaN(t.valueOf()))e=!0;else{if(t.length>7&&O(t)instanceof Date)return!0;if((t=t.replace(/\D/g,"")).length>7){var i=t.substr(4,2),n=t.substr(6,2);(t=O(t)).getMonth()==i-1&&t.getDate()==n&&(e=!0)}}return e},stopEvent:function(t){t||(t=window.event);return t.cancelBubble=!0,t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),!1},selectRange:W,debounce:H,throttle:function(t,e,i){var n=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return b(i)&&(n="leading"in i?!!i.leading:n,a="trailing"in i?!!i.trailing:a),H(t,e,{leading:n,maxWait:e,trailing:a})},escapeHtml:z,unescapeHtml:Y,string:function(t){return new function(t){this.value=t,this.toString=function(){return this.value},this.format=function(){for(var t=[],e=0,i=arguments.length;e<i;e++)t=t.concat(arguments[e]);return this.value.replace(/{(\d+)}/g,function(e,i){return void 0!==t[i]?t[i]:e})},this.escape=function(){return z(this.value)},this.unescape=function(){return Y(this.value)},this.encode=function(){return t=this.value,encodeURIComponent(t);var t},this.decode=function(){return t=this.value,decodeURIComponent(t);var t},this.left=function(t){return T(this.value,t)},this.right=function(t){return C(this.value,t)},this.camelCase=function(){return S(this.value)},this.snakeCase=function(){return P(this.value)}}(t)},color:function t(e){var i,n,a,o=(n="[\\s|\\(]+("+(i="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",a="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",{CSS_UNIT:new RegExp(i),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function r(t){return t<=1&&(t=100*t+"%"),t}function s(t){return p.util.number(Math.min(255,Math.max(t,0)),{round:2})}function l(t){return j(Math.round(t).toString(16),2)}function c(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var i=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),i&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function u(t,e,i){t=c(t,255),e=c(e,255),i=c(i,255);var n,a,o=Math.max(t,e,i),r=Math.min(t,e,i),s=(o+r)/2;if(o==r)n=a=0;else{var l=o-r;switch(a=s>.5?l/(2-o-r):l/(o+r),o){case t:n=(e-i)/l+(e<i?6:0);break;case e:n=(i-t)/l+2;break;case i:n=(t-e)/l+4}n/=6}return{h:n,s:a,l:s}}function h(t,e,i){var n=void 0,a=void 0,o=void 0;function r(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}if(t=c(t,360),e=c(e,100),i=c(i,100),0===e)n=a=o=i;else{var s=i<.5?i*(1+e):i+e-i*e,l=2*i-s;n=r(l,s,t+1/3),a=r(l,s,t),o=r(l,s,t-1/3)}return{r:255*n,g:255*a,b:255*o}}return new function(e){this._originalValue=e,e=function(t){var e=void 0;return(e=o.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=o.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=o.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=o.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=o.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=o.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=o.hex8.exec(t))?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16),a:parseInt(e[4]/255,16),format:"hex8"}:(e=o.hex6.exec(t))?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16),format:"hex"}:(e=o.hex4.exec(t))?{r:parseInt(e[1]+""+e[1],16),g:parseInt(e[2]+""+e[2],16),b:parseInt(e[3]+""+e[3],16),a:parseInt(e[4]+""+e[4],16),format:"hex8"}:!!(e=o.hex3.exec(t))&&{r:parseInt(e[1]+""+e[1],16),g:parseInt(e[2]+""+e[2],16),b:parseInt(e[3]+""+e[3],16),format:"hex"}}(e),this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a||1,this._format=e.format,this._hex=l(this.r)+l(this.g)+l(this.b),this.getHexValue=function(){return this._hex},this.lighten=function(e){e=0===e?0:e||10;var i,n=u(this.r,this.g,this.b);return n.l+=e/100,n.l=Math.min(1,Math.max(0,n.l)),n.h=360*n.h,t("rgba("+s((i=h(n.h,r(n.s),r(n.l))).r)+", "+s(i.g)+", "+s(i.b)+", "+this.a+")")},this.darken=function(e){e=0===e?0:e||10;var i,n=u(this.r,this.g,this.b);return n.l-=e/100,n.l=Math.min(1,Math.max(0,n.l)),n.h=360*n.h,t("rgba("+s((i=h(n.h,r(n.s),r(n.l))).r)+", "+s(i.g)+", "+s(i.b)+", "+this.a+")")},this.getBrightness=function(){return(299*this.r+587*this.g+114*this.b)/1e3},this.isDark=function(){return this.getBrightness()<128},this.isLight=function(){return!this.isDark()},this.getHsl=function(){var t=u(this.r,this.g,this.b);return t.l=Math.min(1,Math.max(0,t.l)),t.h=360*t.h,{h:t.h,s:t.s,l:t.l}}}(e)}}}(),"object"===("undefined"==typeof module?"undefined":_typeof(module))&&"object"===_typeof(module.exports)?module.exports=p:t.ax5=p}).call("undefined"!=typeof window?window:void 0),ax5.def={},ax5.info.errorMsg.ax5dialog={501:"Duplicate call error"},ax5.info.errorMsg.ax5picker={401:"Can not find target element",402:"Can not find boundID",501:"Can not find content key"},ax5.info.errorMsg["single-uploader"]={460:"There are no files to be uploaded.",461:"There is no uploaded files."},ax5.info.errorMsg.ax5calendar={401:"Can not find target element"},ax5.info.errorMsg.ax5formatter={401:"Can not find target element",402:"Can not find boundID",501:"Can not find pattern"},ax5.info.errorMsg.ax5menu={501:"Can not find menu item"},ax5.info.errorMsg.ax5select={401:"Can not find target element",402:"Can not find boundID",501:"Can not find option"},ax5.info.errorMsg.ax5combobox={401:"Can not find target element",402:"Can not find boundID",501:"Can not find option"},function(){"use strict";var t,e,i,n,a,o,r=/^\s*|\s*$/g;(Object.keys||(Object.keys=(t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),n=(i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(a){if("object"!==(void 0===a?"undefined":_typeof(a))&&("function"!=typeof a||null===a))throw new TypeError("type err");var o,r,s=[];for(o in a)t.call(a,o)&&s.push(o);if(e)for(r=0;r<n;r++)t.call(a,i[r])&&s.push(i[r]);return s})),Array.prototype.forEach||(Array.prototype.forEach=function(t){if(null==this)throw TypeError();var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw TypeError();var n,a=arguments[1];for(n=0;n<i;n++)n in e&&t.call(a,e[n],n,e)}),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw TypeError("function");var e=[].slice,i=e.call(arguments,1),n=this,a=function(){return n.apply(this instanceof o?this:t,i.concat(e.call(arguments)))};function o(){}return o.prototype=n.prototype,a.prototype=new o,a}),function(){if(!document.querySelectorAll&&!document.querySelector&&document.createStyleSheet){var t=document.createStyleSheet(),e=function(e,i){var n,a=document.all,o=a.length,r=[];for(t.addRule(e,"foo:bar"),n=0;n<o&&!("bar"===a[n].currentStyle.foo&&(r.push(a[n]),r.length>i));n+=1);return t.removeRule(0),r};document.querySelectorAll=function(t){return e(t,1/0)},document.querySelector=function(t){return e(t,1)[0]||null}}}(),String.prototype.trim||(String.prototype.trim=function(){return this.replace(r,"")}),window.JSON||(window.JSON={parse:function(t){return new Function("","return "+t)()},stringify:(o=/["]/g,a=function(t){var e,i,n;switch(e=void 0===t?"undefined":_typeof(t)){case"string":return'"'+t.replace(o,'\\"')+'"';case"number":case"boolean":return t.toString();case"undefined":return"undefined";case"function":return'""';case"object":if(!t)return"null";if(e="",t.splice){for(i=0,n=t.length;i<n;i++)e+=","+a(t[i]);return"["+e.substr(1)+"]"}for(i in t)t.hasOwnProperty(i)&&void 0!==t[i]&&"function"!=typeof t[i]&&(e+=',"'+i+'":'+a(t[i]));return"{"+e.substr(1)+"}"}})}),function(){if(!document.documentMode||document.documentMode>=9)return!1;var t=Array.prototype.splice;Array.prototype.splice=function(){var e=Array.prototype.slice.call(arguments);return void 0===e[1]&&(e[1]=this.length-e[0]),t.apply(this,e)}}(),function(){var t=Array.prototype.slice;try{t.call(document.documentElement)}catch(e){Array.prototype.slice=function(e,i){if(i=void 0!==i?i:this.length,"[object Array]"===Object.prototype.toString.call(this))return t.call(this,e,i);var n,a,o=[],r=this.length,s=e||0;s=s>=0?s:Math.max(0,r+s);var l="number"==typeof i?Math.min(i,r):r;if(i<0&&(l=r+i),(a=l-s)>0)if(o=new Array(a),this.charAt)for(n=0;n<a;n++)o[n]=this.charAt(s+n);else for(n=0;n<a;n++)o[n]=this[s+n];return o}}}(),function(t){for(var e,i,n={},a=function(){},o="memory".split(","),r="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=o.pop();)t[e]=t[e]||n;for(;i=r.pop();)t[i]=t[i]||a}(window.console||{}),window.webkitMatchMedia||window.mozMatchMedia||window.oMatchMedia||window.msMatchMedia||window.matchMedia)||(document.getElementsByTagName("html")[0].className+=" no-matchmedia");window.matchMedia||(window.matchMedia=function(){var t=window.styleMedia||window.media;if(!t){var e,i=document.createElement("style"),n=document.getElementsByTagName("script")[0];i.type="text/css",i.id="matchmediajs-test",n.parentNode.insertBefore(i,n),e="getComputedStyle"in window&&window.getComputedStyle(i,null)||i.currentStyle,t={matchMedium:function(t){var n="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return i.styleSheet?i.styleSheet.cssText=n:i.textContent=n,"1px"===e.width}}}return function(e){return{matches:t.matchMedium(e||"all"),media:e||"all"}}}()),function(){if(window.matchMedia&&window.matchMedia("all").addListener)return!1;var t=window.matchMedia,e=t("only all").matches,i=!1,n=0,a=[],o=function(e){clearTimeout(n),n=setTimeout(function(){for(var e=0,i=a.length;e<i;e++){var n=a[e].mql,o=a[e].listeners||[],r=t(n.media).matches;if(r!==n.matches){n.matches=r;for(var s=0,l=o.length;s<l;s++)o[s].call(window,n)}}},30)};window.matchMedia=function(n){var r=t(n),s=[],l=0;return r.addListener=function(t){e&&(i||(i=!0,window.addEventListener("resize",o,!0)),0===l&&(l=a.push({mql:r,listeners:s})),s.push(t))},r.removeListener=function(t){for(var e=0,i=s.length;e<i;e++)s[e]===t&&s.splice(e,1)},r}}();document.getElementsByTagName("html")[0],document.getElementsByTagName("body")[0]}.call(window),ax5.ui=function(){return{root:function(){this.config={},this.name="root",this.setConfig=function(t,e){return jQuery.extend(!0,this.config,t),void 0!==e&&!0!==e||this.init(),this},this.init=function(){console.log(this.config)},this.bindWindowResize=function(t){setTimeout(function(){jQuery(window).resize(function(){this.bindWindowResize__&&clearTimeout(this.bindWindowResize__),this.bindWindowResize__=setTimeout(function(){t.call(this)}.bind(this),10)}.bind(this))}.bind(this),100)},this.stopEvent=function(t){return t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0,!1},this.toString=function(){return this.name+"@"+this.version},this.main=function(){}.apply(this,arguments)},addClass:function(t,e){if(!t||!t.className)throw"invalid call";var i=t.classStore?t.classStore:ax5.ui;if(!i)throw"invalid classStore";ax5.def[t.className]={version:ax5.info.version},function(e){var i=t.superClass?t.superClass:ax5.ui.root;if(!ax5.util.isFunction(i))throw"invalid superClass";i.call(this),e.prototype=new i}.call(this,e),i[t.className]=function i(){if(!(this&&this instanceof i))throw"invalid call";var n=function(t,e){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2])}}(e,arguments);return function(t,e,i){return i.name=t,i.version=e,i.instanceId=ax5.getGuid(),i}(t.className,t.version||"",n)}}}}(),function(t,e){e(t.mustache={})}(window.ax5,function(t){var e=Object.prototype.toString,i=Array.isArray||function(t){return"[object Array]"===e.call(t)};function n(t){return"function"==typeof t}function a(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(t,e){return null!=t&&"object"===(void 0===t?"undefined":_typeof(t))&&e in t}var r=RegExp.prototype.test;var s=/\S/;function l(t){return!function(t,e){return r.call(t,e)}(s,t)}var c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};var u=/\s*/,h=/\s+/,d=/\s*=/,f=/\s*\}/,p=/#|\^|\/|>|\{|&|=|!/;function m(t){this.string=t,this.tail=t,this.pos=0}function g(t,e){this.view=t,this.cache={".":this.view,"@each":function(){var t=[];for(var e in this)t.push({"@key":e,"@value":this[e]});return t}},this.parent=e}function v(){this.cache={}}m.prototype.eos=function(){return""===this.tail},m.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var i=e[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i},m.prototype.scanUntil=function(t){var e,i=this.tail.search(t);switch(i){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,i),this.tail=this.tail.substring(i)}return this.pos+=e.length,e},g.prototype.push=function(t){return new g(t,this)},g.prototype.lookup=function(t){var e,i=this.cache;if(i.hasOwnProperty(t))e=i[t];else{for(var a,r,s=this,l=!1;s;){if(t.indexOf(".")>0)for(e=s.view,a=t.split("."),r=0;null!=e&&r<a.length;)r===a.length-1&&(l=o(e,a[r])),e=e[a[r++]];else e=s.view[t],l=o(s.view,t);if(l)break;s=s.parent}i[t]=e}return n(e)&&(e=e.call(this.view)),e},v.prototype.clearCache=function(){this.cache={}},v.prototype.parse=function(e,n){var o=this.cache,r=o[e];return null==r&&(r=o[e]=function(e,n){if(!e)return[];var o,r,s,c=[],g=[],v=[],y=!1,_=!1;function b(){if(y&&!_)for(;v.length;)delete g[v.pop()];else v=[];y=!1,_=!1}function w(t){if("string"==typeof t&&(t=t.split(h,2)),!i(t)||2!==t.length)throw new Error("Invalid tags: "+t);o=new RegExp(a(t[0])+"\\s*"),r=new RegExp("\\s*"+a(t[1])),s=new RegExp("\\s*"+a("}"+t[1]))}w(n||t.tags);for(var k,x,D,M,T,C,S=new m(e);!S.eos();){if(k=S.pos,D=S.scanUntil(o))for(var P=0,A=D.length;P<A;++P)l(M=D.charAt(P))?v.push(g.length):_=!0,g.push(["text",M,k,k+1]),k+=1,"\n"===M&&b();if(!S.scan(o))break;if(y=!0,x=S.scan(p)||"name",S.scan(u),"="===x?(D=S.scanUntil(d),S.scan(d),S.scanUntil(r)):"{"===x?(D=S.scanUntil(s),S.scan(f),S.scanUntil(r),x="&"):D=S.scanUntil(r),!S.scan(r))throw new Error("Unclosed tag at "+S.pos);if(T=[x,D,k,S.pos],g.push(T),"#"===x||"^"===x)c.push(T);else if("/"===x){if(!(C=c.pop()))throw new Error('Unopened section "'+D+'" at '+k);if(C[1]!==D)throw new Error('Unclosed section "'+C[1]+'" at '+k)}else"name"===x||"{"===x||"&"===x?_=!0:"="===x&&w(D)}if(C=c.pop())throw new Error('Unclosed section "'+C[1]+'" at '+S.pos);return function(t){for(var e,i=[],n=i,a=[],o=0,r=t.length;o<r;++o)switch((e=t[o])[0]){case"#":case"^":n.push(e),a.push(e),n=e[4]=[];break;case"/":a.pop()[5]=e[2],n=a.length>0?a[a.length-1][4]:i;break;default:n.push(e)}return i}(function(t){for(var e,i,n=[],a=0,o=t.length;a<o;++a)(e=t[a])&&("text"===e[0]&&i&&"text"===i[0]?(i[1]+=e[1],i[3]=e[3]):(n.push(e),i=e));return n}(g))}(e,n)),r},v.prototype.render=function(t,e,i){var n=this.parse(t),a=e instanceof g?e:new g(e);return this.renderTokens(n,a,i,t)},v.prototype.renderTokens=function(t,e,i,n){for(var a,o,r,s="",l=0,c=t.length;l<c;++l)r=void 0,"#"===(o=(a=t[l])[0])?r=this.renderSection(a,e,i,n):"^"===o?r=this.renderInverted(a,e,i,n):">"===o?r=this.renderPartial(a,e,i,n):"&"===o?r=this.unescapedValue(a,e):"name"===o?r=this.escapedValue(a,e):"text"===o&&(r=this.rawValue(a)),void 0!==r&&(s+=r);return s},v.prototype.renderSection=function(t,e,a,o){var r=this,s="",l=e.lookup(t[1]);if(l){if(i(l))for(var c=0,u=l.length;c<u;++c)l[c]&&("object"===_typeof(l[c])&&(l[c]["@i"]=c,l[c]["@first"]=0===c),s+=this.renderTokens(t[4],e.push(l[c]),a,o));else if("object"===(void 0===l?"undefined":_typeof(l))||"string"==typeof l||"number"==typeof l)s+=this.renderTokens(t[4],e.push(l),a,o);else if(n(l)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");null!=(l=l.call(e.view,o.slice(t[3],t[5]),function(t){return r.render(t,e,a)}))&&(s+=l)}else s+=this.renderTokens(t[4],e,a,o);return s}},v.prototype.renderInverted=function(t,e,n,a){var o=e.lookup(t[1]);if(!o||i(o)&&0===o.length)return this.renderTokens(t[4],e,n,a)},v.prototype.renderPartial=function(t,e,i){if(i){var a=n(i)?i(t[1]):i[t[1]];return null!=a?this.renderTokens(this.parse(a),e,i,a):void 0}},v.prototype.unescapedValue=function(t,e){var i=e.lookup(t[1]);if(null!=i)return i},v.prototype.escapedValue=function(e,i){var n=i.lookup(e[1]);if(null!=n)return t.escape(n)},v.prototype.rawValue=function(t){return t[1]},t.name="mustache.js",t.version="2.1.3",t.tags=["{{","}}"];var y=new v;t.clearCache=function(){return y.clearCache()},t.parse=function(t,e){return y.parse(t,e)},t.render=function(t,e,n){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+(i(a=t)?"array":void 0===a?"undefined":_typeof(a))+'" was given as the first argument for mustache#render(template, view, partials)');var a;return y.render(t,e,n)},t.to_html=function(e,i,a,o){var r=t.render(e,i,a);if(!n(o))return r;o(r)},t.escape=function(t){return String(t).replace(/[&<>"'\/]/g,function(t){return c[t]})},t.Scanner=m,t.Context=g,t.Writer=v}),function(){var t=ax5.ui,e=ax5.util,i=void 0;t.addClass({className:"mask"},function(){var n,a=this;this.instanceId=ax5.getGuid(),this.config={theme:"",target:jQuery(document.body).get(0),animateTime:250},this.maskContent="",this.status="off",n=this.config;var o=function(t,e){return t&&t.onStateChanged?t.onStateChanged.call(e,e):this.onStateChanged&&this.onStateChanged.call(e,e),t=null,e=null,!0},r=function(t){this.maskContent=t};this.init=function(){this.onStateChanged=n.onStateChanged,this.onClick=n.onClick,this.config.content&&r.call(this,this.config.content)},this.open=function(t){"on"===this.status&&this.close(),t&&t.content&&r.call(this,t.content),t&&void 0===t.templateName&&(t.templateName="defaultMask"),a.maskConfig=jQuery.extend(!0,{},this.config,t);var e=a.maskConfig,n=e.target,s=jQuery(n),l="ax-mask-"+ax5.getGuid(),c=void 0,u={},h={},d=e.templateName,f=function(t){return void 0===t.templateName&&(t.templateName="defaultMask"),i.tmpl.get.call(this,t.templateName,t)}({theme:e.theme,maskId:l,body:this.maskContent,templateName:d});return jQuery(document.body).append(f),n&&n!==jQuery(document.body).get(0)&&(u={position:e.position||"absolute",left:s.offset().left,top:s.offset().top,width:s.outerWidth(),height:s.outerHeight()},s.addClass("ax-masking"),jQuery(window).on("resize.ax5mask-"+this.instanceId,function(t){this.align()}.bind(this))),void 0!==a.maskConfig.zIndex&&(u["z-index"]=a.maskConfig.zIndex),this.$mask=c=jQuery("#"+l),this.$target=s,this.status="on",c.css(u),e.onClick&&c.on("click",function(t){h={self:a,state:"open",type:"click"},a.maskConfig.onClick.call(h,h)}),o.call(this,null,{self:this,state:"open"}),t=null,e=null,n=null,s=null,l=null,c=null,u=null,h=null,d=null,f=null,this},this.close=function(t){if(this.$mask){var e=function(){this.status="off",this.$mask.remove(),this.$target.removeClass("ax-masking"),o.call(this,null,{self:this,state:"close"}),jQuery(window).off("resize.ax5mask-"+this.instanceId)};t?setTimeout(function(){e.call(this)}.bind(this),t):e.call(this)}return this},this.fadeOut=function(){return this.$mask&&(this.$mask.addClass("fade-out"),setTimeout(function(){(function(){this.status="off",this.$mask.remove(),this.$target.removeClass("ax-masking"),o.call(this,null,{self:this,state:"close"}),jQuery(window).off("resize.ax5mask-"+this.instanceId)}).call(this)}.bind(this),n.animateTime)),this},this.align=function(){if(this.maskConfig&&this.maskConfig.target&&this.maskConfig.target!==jQuery(document.body).get(0))try{var t={position:this.maskConfig.position||"absolute",left:this.$target.offset().left,top:this.$target.offset().top,width:this.$target.outerWidth(),height:this.$target.outerHeight()};this.$mask.css(t)}catch(t){}return this},this.pullRequest=function(){console.log("test pullRequest01"),console.log("test pullRequest02")},this.main=function(){t.mask_instance=t.mask_instance||[],t.mask_instance.push(this),arguments&&e.isObject(arguments[0])&&this.setConfig(arguments[0])}.apply(this,arguments)}),i=ax5.ui.mask}(),function(){var t=ax5.ui.mask;t.tmpl={defaultMask:function(t){return'\n <div class="ax-mask {{theme}}" id="{{maskId}}">\n <div class="ax-mask-bg"></div>\n <div class="ax-mask-content">\n <div class="ax-mask-body">\n {{{body}}}\n </div>\n </div>\n </div>\n '},get:function(e,i,n){return ax5.mustache.render(t.tmpl[e].call(this,n),i)}}}(),function(){var t=ax5.ui,e=ax5.util,i=void 0;t.addClass({className:"modal"},function(){var n,a=this,o={mousedown:ax5.info.supportTouch?"touchstart":"mousedown",mousemove:ax5.info.supportTouch?"touchmove":"mousemove",mouseup:ax5.info.supportTouch?"touchend":"mouseup"},r=function(t){var e=t;return"changedTouches"in t&&t.changedTouches&&(e=t.changedTouches[0]),{clientX:e.clientX,clientY:e.clientY}};this.instanceId=ax5.getGuid(),this.config={id:"ax5-modal-"+this.instanceId,position:{left:"center",top:"middle",margin:10},minimizePosition:"bottom-right",clickEventName:"ontouchstart"in document.documentElement?"touchstart":"click",theme:"default",width:300,height:400,closeToEsc:!0,disableDrag:!1,disableResize:!1,animateTime:250,iframe:!1},this.activeModal=null,this.watingModal=!1,this.$={},n=this.config;var s=function(t,e){var i={resize:function(e){t&&t.onResize?t.onResize.call(e,e):this.onResize&&this.onResize.call(e,e)},move:function(){}};return e.state in i&&i[e.state].call(this,e),t&&t.onStateChanged?t.onStateChanged.call(e,e):this.onStateChanged&&this.onStateChanged.call(e,e),!0},l=function(t,n){var l=void 0;jQuery(document.body).append(function(t,e){var n={modalId:t,theme:e.theme,header:e.header,fullScreen:e.fullScreen?"fullscreen":"",styles:"",iframe:e.iframe,iframeLoadingMsg:e.iframeLoadingMsg,disableResize:e.disableResize};return e.zIndex&&(n.styles+="z-index:"+e.zIndex+";"),e.absolute&&(n.styles+="position:absolute;"),n.iframe&&"string"==typeof n.iframe.param&&(n.iframe.param=ax5.util.param(n.iframe.param)),i.tmpl.get.call(this,"content",n,{})}.call(this,t.id,t)),this.activeModal=jQuery("#"+t.id),this.$={root:this.activeModal,header:this.activeModal.find('[data-modal-els="header"]'),body:this.activeModal.find('[data-modal-els="body"]')},t.iframe?(this.$["iframe-wrap"]=this.activeModal.find('[data-modal-els="iframe-wrap"]'),this.$.iframe=this.activeModal.find('[data-modal-els="iframe"]'),this.$["iframe-form"]=this.activeModal.find('[data-modal-els="iframe-form"]'),this.$["iframe-loading"]=this.activeModal.find('[data-modal-els="iframe-loading"]')):this.$["body-frame"]=this.activeModal.find('[data-modal-els="body-frame"]'),this.align(),l={self:this,id:t.id,theme:t.theme,width:t.width,height:t.height,state:"open",$:this.$},t.iframe&&(this.$["iframe-wrap"].css({height:t.height}),this.$.iframe.css({height:t.height}),this.$["iframe-form"].attr({method:t.iframe.method}),this.$["iframe-form"].attr({target:t.id+"-frame"}),this.$["iframe-form"].attr({action:t.iframe.url}),this.$.iframe.on("load",function(){l.state="load",t.iframeLoadingMsg&&this.$["iframe-loading"].hide(),s.call(this,t,l)}.bind(this)),t.iframeLoadingMsg||this.$.iframe.show(),this.$["iframe-form"].submit()),n&&n.call(l,l),this.watingModal||s.call(this,t,l),t.closeToEsc&&jQuery(window).bind("keydown.ax-modal",function(t){u.call(this,t||window.event)}.bind(this)),jQuery(window).bind("resize.ax-modal",function(t){this.align(null,t||window.event)}.bind(this)),this.$.header.off(o.mousedown).off("dragstart").on(o.mousedown,function(i){var n=e.findParentNode(i.target,function(t){if(t.getAttribute("data-modal-header-btn"))return!0});t.isFullScreen||n||1==t.disableDrag||(a.mousePosition=r(i),d.on.call(a)),n&&c.call(a,i||window.event,t)}).on("dragstart",function(t){return e.stopEvent(t.originalEvent),!1}),this.activeModal.off(o.mousedown).off("dragstart").on(o.mousedown,"[data-ax5modal-resizer]",function(e){if(t.disableDrag||t.isFullScreen)return!1;a.mousePosition=r(e),f.on.call(a,this.getAttribute("data-ax5modal-resizer"))}).on("dragstart",function(t){return e.stopEvent(t.originalEvent),!1})},c=function(t,i,n,a,o){var r=void 0;t.srcElement&&(t.target=t.srcElement),(a=e.findParentNode(t.target,function(t){if(t.getAttribute("data-modal-header-btn"))return!0}))&&(r={self:this,key:o=a.getAttribute("data-modal-header-btn"),value:i.header.btns[o],dialogId:i.id,btnTarget:a},i.header.btns[o].onClick&&i.header.btns[o].onClick.call(r,o)),r=null,i=null,a=null,o=null},u=function(t){t.keyCode==ax5.info.eventKeys.ESC&&this.close()},h={"top-left":function(){this.align({left:"left",top:"top"})},"top-right":function(){this.align({left:"right",top:"top"})},"bottom-left":function(){this.align({left:"left",top:"bottom"})},"bottom-right":function(){this.align({left:"right",top:"bottom"})},"center-middle":function(){this.align({left:"center",top:"middle"})}},d={on:function(){var t=this.activeModal.css("z-index"),e=this.activeModal.offset(),i={width:this.activeModal.outerWidth(),height:this.activeModal.outerHeight()};jQuery(window).width(),jQuery(window).height(),jQuery(document).scrollLeft(),jQuery(document).scrollTop(),a.__dx=0,a.__dy=0,a.resizerBg=jQuery('<div class="ax5modal-resizer-background" ondragstart="return false;"></div>'),a.resizer=jQuery('<div class="ax5modal-resizer" ondragstart="return false;"></div>'),a.resizerBg.css({zIndex:t}),a.resizer.css({left:e.left,top:e.top,width:i.width,height:i.height,zIndex:t+1}),jQuery(document.body).append(a.resizerBg).append(a.resizer),a.activeModal.addClass("draged"),jQuery(document.body).on(o.mousemove+".ax5modal-move-"+this.instanceId,function(t){a.resizer.css(function(t){return a.__dx=t.clientX-a.mousePosition.clientX,a.__dy=t.clientY-a.mousePosition.clientY,{left:e.left+a.__dx,top:e.top+a.__dy}}(t))}).on(o.mouseup+".ax5modal-move-"+this.instanceId,function(t){d.off.call(a)}).on("mouseleave.ax5modal-move-"+this.instanceId,function(t){d.off.call(a)}),jQuery(document.body).attr("unselectable","on").css("user-select","none").on("selectstart",!1)},off:function(){this.activeModal.removeClass("draged"),function(){var t=this.resizer.offset();this.modalConfig.absolute||(t.left-=jQuery(document).scrollLeft(),t.top-=jQuery(document).scrollTop()),this.activeModal.css(t),this.modalConfig.left=t.left,this.modalConfig.top=t.top,t=null}.call(this),this.resizer.remove(),this.resizer=null,this.resizerBg.remove(),this.resizerBg=null,jQuery(document.body).off(o.mousemove+".ax5modal-move-"+this.instanceId).off(o.mouseup+".ax5modal-move-"+this.instanceId).off("mouseleave.ax5modal-move-"+this.instanceId),jQuery(document.body).removeAttr("unselectable").css("user-select","auto").off("selectstart"),s.call(this,a.modalConfig,{self:this,state:"move"})}},f={on:function(t){var e=this.activeModal.css("z-index"),i=this.activeModal.offset(),n={width:this.activeModal.outerWidth(),height:this.activeModal.outerHeight()},r=(jQuery(window).width(),jQuery(window).height(),jQuery(document).scrollLeft(),jQuery(document).scrollTop(),{top:function(t){return l>n.height-a.__dy&&(a.__dy=n.height-l),t.shiftKey?(l>n.height-2*a.__dy&&(a.__dy=(n.height-l)/2),{left:i.left,top:i.top+a.__dy,width:n.width,height:n.height-2*a.__dy}):t.altKey?(l>n.height-2*a.__dy&&(a.__dy=(n.height-l)/2),{left:i.left+a.__dy,top:i.top+a.__dy,width:n.width-2*a.__dy,height:n.height-2*a.__dy}):{left:i.left,top:i.top+a.__dy,width:n.width,height:n.height-a.__dy}},bottom:function(t){return l>n.height+a.__dy&&(a.__dy=-n.height+l),t.shiftKey?(l>n.height+2*a.__dy&&(a.__dy=(-n.height+l)/2),{left:i.left,top:i.top-a.__dy,width:n.width,height:n.height+2*a.__dy}):t.altKey?(l>n.height+2*a.__dy&&(a.__dy=(-n.height+l)/2),{left:i.left-a.__dy,top:i.top-a.__dy,width:n.width+2*a.__dy,height:n.height+2*a.__dy}):{left:i.left,top:i.top,width:n.width,height:n.height+a.__dy}},left:function(t){return s>n.width-a.__dx&&(a.__dx=n.width-s),t.shiftKey?(s>n.width-2*a.__dx&&(a.__dx=(n.width-s)/2),{left:i.left+a.__dx,top:i.top,width:n.width-2*a.__dx,height:n.height}):t.altKey?(s>n.width-2*a.__dx&&(a.__dx=(n.width-s)/2),{left:i.left+a.__dx,top:i.top+a.__dx,width:n.width-2*a.__dx,height:n.height-2*a.__dx}):{left:i.left+a.__dx,top:i.top,width:n.width-a.__dx,height:n.height}},right:function(t){return s>n.width+a.__dx&&(a.__dx=-n.width+s),t.shiftKey?(s>n.width+2*a.__dx&&(a.__dx=(-n.width+s)/2),{left:i.left-a.__dx,top:i.top,width:n.width+2*a.__dx,height:n.height}):t.altKey?(s>n.width+2*a.__dx&&(a.__dx=(-n.width+s)/2),{left:i.left-a.__dx,top:i.top-a.__dx,width:n.width+2*a.__dx,height:n.height+2*a.__dx}):{left:i.left,top:i.top,width:n.width+a.__dx,height:n.height}},"top-left":function(t){return s>n.width-a.__dx&&(a.__dx=n.width-s),l>n.height-a.__dy&&(a.__dy=n.height-l),t.shiftKey||t.altKey?(l>n.height-2*a.__dy&&(a.__dy=(n.height-l)/2),s>n.width-2*a.__dx&&(a.__dx=(n.width-s)/2),{left:i.left+a.__dx,top:i.top+a.__dy,width:n.width-2*a.__dx,height:n.height-2*a.__dy}):(l>n.height-2*a.__dy&&(a.__dy=(n.height-l)/2),s>n.width-2*a.__dx&&(a.__dx=(n.width-s)/2),{left:i.left+a.__dx,top:i.top+a.__dy,width:n.width-a.__dx,height:n.height-a.__dy})},"top-right":function(t){return s>n.width+a.__dx&&(a.__dx=-n.width+s),l>n.height-a.__dy&&(a.__dy=n.height-l),t.shiftKey||t.altKey?(l>n.height-2*a.__dy&&(a.__dy=(n.height-l)/2),s>n.width+2*a.__dx&&(a.__dx=(-n.width+s)/2),{left:i.left-a.__dx,top:i.top+a.__dy,width:n.width+2*a.__dx,height:n.height-2*a.__dy}):{left:i.left,top:i.top+a.__dy,width:n.width+a.__dx,height:n.height-a.__dy}},"bottom-left":function(t){return s>n.width-a.__dx&&(a.__dx=n.width-s),l>n.height+a.__dy&&(a.__dy=-n.height+l),t.shiftKey||t.altKey?(s>n.width-2*a.__dx&&(a.__dx=(n.width-s)/2),l>n.height+2*a.__dy&&(a.__dy=(-n.height+l)/2),{left:i.left+a.__dx,top:i.top-a.__dy,width:n.width-2*a.__dx,height:n.height+2*a.__dy}):{left:i.left+a.__dx,top:i.top,width:n.width-a.__dx,height:n.height+a.__dy}},"bottom-right":function(t){return s>n.width+a.__dx&&(a.__dx=-n.width+s),l>n.height+a.__dy&&(a.__dy=-n.height+l),t.shiftKey||t.altKey?(s>n.width+2*a.__dx&&(a.__dx=(-n.width+s)/2),l>n.height+2*a.__dy&&(a.__dy=(-n.height+l)/2),{left:i.left-a.__dx,top:i.top-a.__dy,width:n.width+2*a.__dx,height:n.height+2*a.__dy}):{left:i.left,top:i.top,width:n.width+a.__dx,height:n.height+a.__dy}}}),s=100,l=100,c={top:"row-resize",bottom:"row-resize",left:"col-resize",right:"col-resize","top-left":"nwse-resize","top-right":"nesw-resize","bottom-left":"nesw-resize","bottom-right":"nwse-resize"};a.__dx=0,a.__dy=0,a.resizerBg=jQuery('<div class="ax5modal-resizer-background" ondragstart="return false;"></div>'),a.resizer=jQuery('<div class="ax5modal-resizer" ondragstart="return false;"></div>'),a.resizerBg.css({zIndex:e,cursor:c[t]}),a.resizer.css({left:i.left,top:i.top,width:n.width,height:n.height,zIndex:e+1,cursor:c[t]}),jQuery(document.body).append(a.resizerBg).append(a.resizer),a.activeModal.addClass("draged"),jQuery(document.body).bind(o.mousemove+".ax5modal-resize-"+this.instanceId,function(e){a.resizer.css(function(e){return a.__dx=e.clientX-a.mousePosition.clientX,a.__dy=e.clientY-a.mousePosition.clientY,r[t](e)}(e))}).bind(o.mouseup+".ax5modal-resize-"+this.instanceId,function(t){f.off.call(a)}).bind("mouseleave.ax5modal-resize-"+this.instanceId,function(t){f.off.call(a)}),jQuery(document.body).attr("unselectable","on").css("user-select","none").bind("selectstart",!1)},off:function(){this.activeModal.removeClass("draged"),function(){var t=this.resizer.offset();jQuery.extend(t,{width:this.resizer.width(),height:this.resizer.height()}),this.modalConfig.absolute||(t.left-=jQuery(document).scrollLeft(),t.top-=jQuery(document).scrollTop()),this.activeModal.css(t),this.modalConfig.left=t.left,this.modalConfig.top=t.top,this.modalConfig.width=t.width,this.modalConfig.height=t.height,this.$.body.css({height:t.height-this.modalConfig.headerHeight}),this.modalConfig.iframe&&(this.$["iframe-wrap"].css({height:t.height-this.modalConfig.headerHeight}),this.$.iframe.css({height:t.height-this.modalConfig.headerHeight})),t=null}.call(this),this.resizer.remove(),this.resizer=null,this.resizerBg.remove(),this.resizerBg=null,s.call(this,a.modalConfig,{self:this,state:"resize"}),jQuery(document.body).unbind(o.mousemove+".ax5modal-resize-"+this.instanceId).unbind(o.mouseup+".ax5modal-resize-"+this.instanceId).unbind("mouseleave.ax5modal-resize-"+this.instanceId),jQuery(document.body).removeAttr("unselectable").css("user-select","auto").unbind("selectstart")}};this.init=function(){this.onStateChanged=n.onStateChanged,this.onResize=n.onResize},this.open=function(t,e,i){return void 0===i&&(i=0),this.activeModal?i<3?(this.watingModal=!0,setTimeout(function(){this.open(t,e,i+1)}.bind(this),n.animateTime)):this.watingModal=!1:(t=a.modalConfig=jQuery.extend(!0,{},n,t),l.call(this,t,e),this.watingModal=!1),this},this.close=function(t){var i=void 0,o=void 0;return this.activeModal&&(i=a.modalConfig,this.activeModal.addClass("destroy"),jQuery(window).unbind("keydown.ax-modal"),jQuery(window).unbind("resize.ax-modal"),setTimeout(function(){if(i.iframe){var n=this.$.iframe;if(n){var a=n.get(0),r=a.contentDocument?a.contentDocument:a.contentWindow.document;try{$(r.body).children().each(function(){$(this).remove()})}catch(t){}r.innerHTML="",n.attr("src","about:blank").remove(),window.CollectGarbage&&window.CollectGarbage()}}this.activeModal.remove(),this.activeModal=null,this.watingModal||s.call(this,i,{self:this,state:"close"}),t&&e.isFunction(t.callback)&&(o={self:this,id:i.id,theme:i.theme,width:i.width,height:i.height,state:"close",$:this.$},t.callback.call(o,o))}.bind(this),n.animateTime)),this.minimized=!1,this},this.minimize=function(t){if(!0!==this.minimized){var e=a.modalConfig;void 0===t&&(t=n.minimizePosition),this.minimized=!0,this.$.body.hide(),a.modalConfig.originalHeight=e.height,a.modalConfig.height=0,h[t].call(this),s.call(this,e,{self:this,state:"minimize"})}return this},this.restore=function(){var t=a.modalConfig;return this.minimized&&(this.minimized=!1,this.$.body.show(),a.modalConfig.height=a.modalConfig.originalHeight,a.modalConfig.originalHeight=void 0,this.align({left:"center",top:"middle"}),s.call(this,t,{self:this,state:"restore"})),this},this.css=function(t){return this.activeModal&&!a.fullScreen&&(this.activeModal.css(t),void 0!==t.width&&(a.modalConfig.width=t.width),void 0!==t.height&&(a.modalConfig.height=t.height),this.align()),this},this.setModalConfig=function(t){return a.modalConfig=jQuery.extend({},a.modalConfig,t),this.align(),this},this.align=function(t,i){if(!this.activeModal)return this;var n,o=a.modalConfig,r={width:o.width,height:o.height};return(o.isFullScreen=void 0!==(n=o.fullScreen)&&(e.isFunction(n)?n():void 0))?(o.header&&this.$.header.show(),o.header?(o.headerHeight=this.$.header.outerHeight(),r.height+=o.headerHeight):o.headerHeight=0,r.width=jQuery(window).width(),r.height=o.height,r.left=0,r.top=0):(o.header&&this.$.header.show(),t&&jQuery.extend(!0,o.position,t),o.header?(o.headerHeight=this.$.header.outerHeight(),r.height+=o.headerHeight):o.headerHeight=0,"left"==o.position.left?r.left=o.position.margin||0:"right"==o.position.left?r.left=jQuery(window).width()-r.width-(o.position.margin||0):"center"==o.position.left?r.left=jQuery(window).width()/2-r.width/2:r.left=o.position.left||0,"top"==o.position.top?r.top=o.position.margin||0:"bottom"==o.position.top?r.top=jQuery(window).height()-r.height-(o.position.margin||0):"middle"==o.position.top?r.top=jQuery(window).height()/2-r.height/2:r.top=o.position.top||0,r.left<0&&(r.left=0),r.top<0&&(r.top=0),o.absolute&&(r.top+=jQuery(window).scrollTop(),r.left+=jQuery(window).scrollLeft())),this.activeModal.css(r),this.$.body.css({height:r.height-(o.headerHeight||0)}),o.iframe&&(this.$["iframe-wrap"].css({height:r.height-o.headerHeight}),this.$.iframe.css({height:r.height-o.headerHeight})),this},this.main=function(){t.modal_instance=t.modal_instance||[],t.modal_instance.push(this),arguments&&e.isObject(arguments[0])&&this.setConfig(arguments[0])}.apply(this,arguments)}),i=ax5.ui.modal}(),function(){var t=ax5.ui.modal;t.tmpl={content:function(){return' \n <div id="{{modalId}}" data-modal-els="root" class="ax5modal {{theme}} {{fullscreen}}" style="{{styles}}">\n {{#header}}\n <div class="ax-modal-header" data-modal-els="header">\n {{{title}}}\n {{#btns}}\n <div class="ax-modal-header-addon">\n {{#@each}}\n <button tabindex="-1" data-modal-header-btn="{{@key}}" class="{{@value.theme}}">{{{@value.label}}}</button>\n {{/@each}}\n </div>\n {{/btns}}\n </div>\n {{/header}}\n <div class="ax-modal-body" data-modal-els="body">\n {{#iframe}}\n <div data-modal-els="iframe-wrap" style="-webkit-overflow-scrolling: touch; overflow: auto;position: relative;">\n <table data-modal-els="iframe-loading" style="width:100%;height:100%;"><tr><td style="text-align: center;vertical-align: middle">{{{iframeLoadingMsg}}}</td></tr></table>\n <iframe name="{{modalId}}-frame" src="" width="100%" height="100%" frameborder="0" data-modal-els="iframe" style="position: absolute;left:0;top:0;"></iframe>\n </div>\n <form name="{{modalId}}-form" data-modal-els="iframe-form">\n <input type="hidden" name="modalId" value="{{modalId}}" />\n {{#param}}\n {{#@each}}\n <input type="hidden" name="{{@key}}" value="{{@value}}" />\n {{/@each}}\n {{/param}}\n </form>\n {{/iframe}}\n {{^iframe}}\n <div data-modal-els="body-frame" style="position: absolute;left:0;top:0;width:100%;height:100%;"></div>\n {{/iframe}}\n </div>\n {{^disableResize}}\n <div data-ax5modal-resizer="top"></div>\n <div data-ax5modal-resizer="right"></div>\n <div data-ax5modal-resizer="bottom"></div>\n <div data-ax5modal-resizer="left"></div>\n <div data-ax5modal-resizer="top-left"></div>\n <div data-ax5modal-resizer="top-right"></div>\n <div data-ax5modal-resizer="bottom-left"></div>\n <div data-ax5modal-resizer="bottom-right"></div>\n {{/disableResize}}\n </div>\n '},get:function(e,i,n){return ax5.mustache.render(t.tmpl[e].call(this,n),i)}}}(),function(){var t,e=ax5.ui,i=ax5.util;e.addClass({className:"toast"},function(){var n,a=this,o=0,r=null;this.instanceId=ax5.getGuid(),this.config={clickEventName:"click",theme:"default",width:300,icon:"",closeIcon:"",msg:"",lang:{ok:"ok",cancel:"cancel"},displayTime:3e3,animateTime:250,containerPosition:"bottom-left"},this.toastContainer=null,this.queue=[],n=this.config;var s=function(t,e){return t&&t.onStateChanged?t.onStateChanged.call(e,e):this.onStateChanged&&this.onStateChanged.call(e,e),t=null,e=null,!0},l=function(e,i){var n={toastId:e,theme:i.theme,icon:i.icon,msg:(i.msg||"").replace(/\n/g,"<br/>"),btns:i.btns,closeIcon:i.closeIcon};try{return t.tmpl.get.call(this,"toastDisplay",n)}finally{e=null,n=null}},c=function(t,e){r&&clearTimeout(r);var c,h={width:t.width};if(t.id="ax5-toast-"+a.containerId+"-"+ ++o,jQuery("#"+t.id).get(0))return this;"bottom"==i.left(n.containerPosition,"-")?this.toastContainer.append(l(t.id,t)):this.toastContainer.prepend(l(t.id,t)),(c=jQuery("#"+t.id)).css({width:h.width}),t.toastBox=c,this.queue.push(t),s.call(this,t,{self:this,state:"open",toastId:t.id}),"push"===t.toastType?(setTimeout(function(){this.close(t,e)}.bind(this),n.displayTime),c.find("[data-ax-toast-btn]").on(n.clickEventName,function(i){u.call(this,i||window.event,t,c,e)}.bind(this))):"confirm"===t.toastType&&c.find("[data-ax-toast-btn]").on(n.clickEventName,function(i){u.call(this,i||window.event,t,c,e)}.bind(this)),h=null},u=function(t,e,n,a,o,r){if(o=i.findParentNode(t.target,function(t){if(t.getAttribute("data-ax-toast-btn"))return!0})){var s={key:r=o.getAttribute("data-ax-toast-btn"),value:e.btns?e.btns[r]:r,toastId:e.id,btn_target:o};e.btns&&e.btns[r].onClick?e.btns[r].onClick.call(s,r):"push"===e.toastType?(a&&a.call(s,r),this.close(e,a)):"confirm"===e.toastType&&(a&&a.call(s,r),this.close(e,a))}t=null,e=null,a=null,o=null,r=null};this.init=function(){this.onStateChanged=n.onStateChanged,a.containerId=ax5.getGuid();var t=[];n.zIndex&&t.push("z-index:"+n.zIndex),jQuery(document.body).append('<div class="ax5-ui-toast-container '+n.containerPosition+'" data-toast-container="'+a.containerId+'" style="'+t.join(";")+'"></div>'),this.toastContainer=jQuery('[data-toast-container="'+a.containerId+'"]')},this.push=function(t,e){return a.containerId||this.init(),i.isString(t)&&(t={title:n.title,msg:t}),t.toastType="push",a.dialogConfig={},jQuery.extend(!0,a.dialogConfig,n,t),t=a.dialogConfig,c.call(this,t,e),t=null,e=null,this},this.confirm=function(t,e){return a.containerId||this.init(),i.isString(t)&&(t={title:n.title,msg:t}),t.toastType="confirm",a.dialogConfig={},jQuery.extend(!0,a.dialogConfig,n,t),void 0===(t=a.dialogConfig).btns&&(t.btns={ok:{label:n.lang.ok,theme:t.theme}}),c.call(this,t,e),t=null,e=null,this},this.close=function(t,e){void 0===t&&(t=i.last(this.queue));var a=t.toastBox;return a.addClass("push"==t.toastType?"removed":"destroy"),this.queue=i.filter(this.queue,function(){return t.id!=this.id}),setTimeout(function(){var i={toastId:t.id};a.remove(),e&&e.call(i),i={self:this,state:"close",toastId:t.id},s.call(this,t,i),0===this.queue.length&&(r&&clearTimeout(r),r=setTimeout(function(){0===this.queue.length&&(o=0)}.bind(this),3e3)),i=null,t=null,e=null,a=null}.bind(this),n.animateTime),this},this.main=function(){e.toast_instance=e.toast_instance||[],e.toast_instance.push(this),arguments&&i.isObject(arguments[0])&&this.setConfig(arguments[0])}.apply(this,arguments)}),t=ax5.ui.toast}(),function(){var t=ax5.ui.toast;t.tmpl={toastDisplay:function(t){return'\n <div id="{{toastId}}" data-ax5-ui="toast" class="ax5-ui-toast {{theme}}">\n {{#icon}}\n <div class="ax-toast-icon">{{{.}}}</div>\n {{/icon}}\n <div class="ax-toast-body">{{{msg}}}</div>\n {{#btns}}\n <div class="ax-toast-buttons">\n <div class="ax-button-wrap">\n {{#@each}}\n <button type="button" data-ax-toast-btn="{{@key}}" class="btn btn-{{@value.theme}}">{{{@value.label}}}</button>\n {{/@each}}\n </div>\n </div>\n {{/btns}}\n {{^btns}}\n <a class="ax-toast-close" data-ax-toast-btn="ok">{{{closeIcon}}}</a>\n {{/btns}}\n <div style="clear:both;"></div>\n </div>'},get:function(e,i,n){return ax5.mustache.render(t.tmpl[e].call(this,n),i)}}}(),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){t.ui=t.ui||{};t.ui.version="1.12.1";var e,i=0,n=Array.prototype.slice;t.cleanData=(e=t.cleanData,function(i){var n,a,o;for(o=0;null!=(a=i[o]);o++)try{(n=t._data(a,"events"))&&n.remove&&t(a).triggerHandler("remove")}catch(t){}e(i)}),t.widget=function(e,i,n){var a,o,r,s={},l=e.split(".")[0],c=l+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),t.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},a=t[l][e],o=t[l][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,a,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(r=new i).options=t.widget.extend({},r.options),t.each(n,function(e,n){t.isFunction(n)?s[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function a(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=a,e=n.apply(this,arguments),this._super=i,this._superApply=o,e}}():s[e]=n}),o.prototype=t.widget.extend(r,{widgetEventPrefix:a&&r.widgetEventPrefix||e},s,{constructor:o,namespace:l,widgetName:e,widgetFullName:c}),a?(t.each(a._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)}),delete a._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,a,o=n.call(arguments,1),r=0,s=o.length;r<s;r++)for(i in o[r])a=o[r][i],o[r].hasOwnProperty(i)&&void 0!==a&&(t.isPlainObject(a)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],a):t.widget.extend({},a):e[i]=a);return e},t.widget.bridge=function(e,i){var a=i.prototype.widgetFullName||e;t.fn[e]=function(o){var r="string"==typeof o,s=n.call(arguments,1),l=this;return r?this.length||"instance"!==o?this.each(function(){var i,n=t.data(this,a);return"instance"===o?(l=n,!1):n?t.isFunction(n[o])&&"_"!==o.charAt(0)?(i=n[o].apply(n,s))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):l=void 0:(s.length&&(o=t.widget.extend.apply(null,[o].concat(s))),this.each(function(){var e=t.data(this,a);e?(e.option(o||{}),e._init&&e._init()):t.data(this,a,new i(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,a,o,r=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(r={},n=e.split("."),e=n.shift(),n.length){for(a=r[e]=t.widget.extend({},this.options[e]),o=0;o<n.length-1;o++)a[n[o]]=a[n[o]]||{},a=a[n[o]];if(e=n.pop(),1===arguments.length)return void 0===a[e]?null:a[e];a[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=i}return this._setOptions(r),this},_setOptions:function(t){var e;for(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(e){var i,n,a;for(i in e)a=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&a&&a.length&&(n=t(a.get()),this._removeClass(a,i),n.addClass(this._classes({element:n,keys:i,classes:e,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(e){var i=[],n=this;function a(a,o){var r,s;for(s=0;s<a.length;s++)r=n.classesElementLookup[a[s]]||t(),r=e.add?t(t.unique(r.get().concat(e.element.get()))):t(r.not(e.element).get()),n.classesElementLookup[a[s]]=r,i.push(a[s]),o&&e.classes[a[s]]&&i.push(e.classes[a[s]])}return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&a(e.keys.match(/\S+/g)||[],!0),e.extra&&a(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(n,a){-1!==t.inArray(e.target,a)&&(i.classesElementLookup[n]=t(a.not(e.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,n){n="boolean"==typeof n?n:i;var a="string"==typeof t||null===t,o={extra:a?e:i,keys:a?t:e,element:a?this.element:t,add:n};return o.element.toggleClass(this._classes(o),n),this},_on:function(e,i,n){var a,o=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=a=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,a=this.widget()),t.each(n,function(n,r){function s(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof r?o[r]:r).apply(o,arguments)}"string"!=typeof r&&(s.guid=r.guid=r.guid||s.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,u=l[2];u?a.on(c,u,s):i.on(c,s)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).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(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var a,o,r=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(a in o)a in i||(i[a]=o[a]);return this.element.trigger(i,n),!(t.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,a,o){var r;"string"==typeof a&&(a={effect:a});var s=a?!0===a||"number"==typeof a?i:a.effect||i:e;"number"==typeof(a=a||{})&&(a={duration:a}),r=!t.isEmptyObject(a),a.complete=o,a.delay&&n.delay(a.delay),r&&t.effects&&t.effects.effect[s]?n[e](a):s!==e&&n[s]?n[s](a.duration,a.easing,o):n.queue(function(i){t(this)[e](),o&&o.call(n[0]),i()})}});t.widget;!function(){var e,i=Math.max,n=Math.abs,a=/left|center|right/,o=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,l=/%$/,c=t.fn.position;function u(t,e,i){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?i/100:1)]}function h(e,i){return parseInt(t.css(e,i),10)||0}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var i,n,a=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=a.children()[0];return t("body").append(a),i=o.offsetWidth,a.css("overflow","scroll"),i===(n=o.offsetWidth)&&(n=a[0].clientWidth),a.remove(),e=i-n},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),a="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:a?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),a=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:a,offset:!n&&!a?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return c.apply(this,arguments);e=t.extend({},e);var l,d,f,p,m,g,v,y,_=t(e.of),b=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(b),k=(e.collision||"flip").split(" "),x={};return g=9===(y=(v=_)[0]).nodeType?{width:v.width(),height:v.height(),offset:{top:0,left:0}}:t.isWindow(y)?{width:v.width(),height:v.height(),offset:{top:v.scrollTop(),left:v.scrollLeft()}}:y.preventDefault?{width:0,height:0,offset:{top:y.pageY,left:y.pageX}}:{width:v.outerWidth(),height:v.outerHeight(),offset:v.offset()},_[0].preventDefault&&(e.at="left top"),d=g.width,f=g.height,p=g.offset,m=t.extend({},p),t.each(["my","at"],function(){var t,i,n=(e[this]||"").split(" ");1===n.length&&(n=a.test(n[0])?n.concat(["center"]):o.test(n[0])?["center"].concat(n):["center","center"]),n[0]=a.test(n[0])?n[0]:"center",n[1]=o.test(n[1])?n[1]:"center",t=r.exec(n[0]),i=r.exec(n[1]),x[this]=[t?t[0]:0,i?i[0]:0],e[this]=[s.exec(n[0])[0],s.exec(n[1])[0]]}),1===k.length&&(k[1]=k[0]),"right"===e.at[0]?m.left+=d:"center"===e.at[0]&&(m.left+=d/2),"bottom"===e.at[1]?m.top+=f:"center"===e.at[1]&&(m.top+=f/2),l=u(x.at,d,f),m.left+=l[0],m.top+=l[1],this.each(function(){var a,o,r=t(this),s=r.outerWidth(),c=r.outerHeight(),g=h(this,"marginLeft"),v=h(this,"marginTop"),y=s+g+h(this,"marginRight")+w.width,D=c+v+h(this,"marginBottom")+w.height,M=t.extend({},m),T=u(x.my,r.outerWidth(),r.outerHeight());"right"===e.my[0]?M.left-=s:"center"===e.my[0]&&(M.left-=s/2),"bottom"===e.my[1]?M.top-=c:"center"===e.my[1]&&(M.top-=c/2),M.left+=T[0],M.top+=T[1],a={marginLeft:g,marginTop:v},t.each(["left","top"],function(i,n){t.ui.position[k[i]]&&t.ui.position[k[i]][n](M,{targetWidth:d,targetHeight:f,elemWidth:s,elemHeight:c,collisionPosition:a,collisionWidth:y,collisionHeight:D,offset:[l[0]+T[0],l[1]+T[1]],my:e.my,at:e.at,within:b,elem:r})}),e.using&&(o=function(t){var a=p.left-M.left,o=a+d-s,l=p.top-M.top,u=l+f-c,h={target:{element:_,left:p.left,top:p.top,width:d,height:f},element:{element:r,left:M.left,top:M.top,width:s,height:c},horizontal:o<0?"left":a>0?"right":"center",vertical:u<0?"top":l>0?"bottom":"middle"};d<s&&n(a+o)<d&&(h.horizontal="center"),f<c&&n(l+u)<f&&(h.vertical="middle"),i(n(a),n(o))>i(n(l),n(u))?h.important="horizontal":h.important="vertical",e.using.call(this,t,h)}),r.offset(t.extend(M,{using:o}))})},t.ui.position={fit:{left:function(t,e){var n,a=e.within,o=a.isWindow?a.scrollLeft:a.offset.left,r=a.width,s=t.left-e.collisionPosition.marginLeft,l=o-s,c=s+e.collisionWidth-r-o;e.collisionWidth>r?l>0&&c<=0?(n=t.left+l+e.collisionWidth-r-o,t.left+=l-n):t.left=c>0&&l<=0?o:l>c?o+r-e.collisionWidth:o:l>0?t.left+=l:c>0?t.left-=c:t.left=i(t.left-s,t.left)},top:function(t,e){var n,a=e.within,o=a.isWindow?a.scrollTop:a.offset.top,r=e.within.height,s=t.top-e.collisionPosition.marginTop,l=o-s,c=s+e.collisionHeight-r-o;e.collisionHeight>r?l>0&&c<=0?(n=t.top+l+e.collisionHeight-r-o,t.top+=l-n):t.top=c>0&&l<=0?o:l>c?o+r-e.collisionHeight:o:l>0?t.top+=l:c>0?t.top-=c:t.top=i(t.top-s,t.top)}},flip:{left:function(t,e){var i,a,o=e.within,r=o.offset.left+o.scrollLeft,s=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-e.collisionPosition.marginLeft,u=c-l,h=c+e.collisionWidth-s-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,f="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,p=-2*e.offset[0];u<0?((i=t.left+d+f+p+e.collisionWidth-s-r)<0||i<n(u))&&(t.left+=d+f+p):h>0&&((a=t.left-e.collisionPosition.marginLeft+d+f+p-l)>0||n(a)<h)&&(t.left+=d+f+p)},top:function(t,e){var i,a,o=e.within,r=o.offset.top+o.scrollTop,s=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=t.top-e.collisionPosition.marginTop,u=c-l,h=c+e.collisionHeight-s-l,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,p=-2*e.offset[1];u<0?((a=t.top+d+f+p+e.collisionHeight-s-r)<0||a<n(u))&&(t.top+=d+f+p):h>0&&((i=t.top-e.collisionPosition.marginTop+d+f+p-l)>0||n(i)<h)&&(t.top+=d+f+p)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}();t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])}}),t.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},t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,a=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&a.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},t.fn.extend({uniqueId:(a=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var a,o=!1;t(document).on("mouseup",function(){o=!1});t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!o){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,a=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(n&&!a&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),o=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,o=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",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 t>=e&&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._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(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,a=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,o.widgetName+"-item")===o)return n=t(this),!1}),t.data(e.target,o.widgetName+"-item")===o&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(a=!0)}),!a))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var a,o,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),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},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.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(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=t("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,a,o,r=this.options,s=!1;for(this.position=this._generatePosition(e),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-e.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+r.scrollSpeed:e.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+r.scrollSpeed:e.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(e.pageY-this.document.scrollTop()<r.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-r.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<r.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+r.scrollSpeed)),e.pageX-this.document.scrollLeft()<r.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-r.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<r.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+r.scrollSpeed))),!1!==s&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),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"),i=this.items.length-1;i>=0;i--)if(a=(n=this.items[i]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(a===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===a||t.contains(this.placeholder[0],a)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],a))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,a=this.placeholder.offset(),o=this.options.axis,r={};o&&"x"!==o||(r.left=a.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=a.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].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(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,a=n+this.helperProportions.height,o=t.left,r=o+t.width,s=t.top,l=s+t.height,c=this.offset.click.top,u=this.offset.click.left,h="x"===this.options.axis||n+c>s&&n+c<l,d="y"===this.options.axis||e+u>o&&e+u<r,f=h&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?f:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&s<n+this.helperProportions.height/2&&a-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),a="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!n||!a)&&(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return this.floating&&a?"right"===a&&i||"left"===a&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,a,o,r=[],s=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(a=t(l[i],this.document[0])).length-1;n>=0;n--)(o=t.data(a[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&s.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function c(){r.push(this)}for(s.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=s.length-1;i>=0;i--)s[i][0].each(c);return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,a,o,r,s,l,c,u=this.items,h=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=(a=t(d[i],this.document[0])).length-1;n>=0;n--)(o=t.data(a[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(h.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=h.length-1;i>=0;i--)for(r=h[i][1],n=0,c=(s=h[i][0]).length;n<c;n++)(l=t(s[n])).data(this.widgetName+"-item",r),u.push({item:l,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,n,a,o;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()),i=this.items.length-1;i>=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(a=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=a.outerWidth(),n.height=a.outerHeight()),o=a.offset(),n.left=o.left,n.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,n=(e=e||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),a=t("<"+n+">",e.document[0]);return e._addClass(a,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(a,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(a)):"tr"===n?e._createTrPlaceholder(e.currentItem,a):"img"===n&&a.attr("src",e.currentItem.attr("src")),i||a.css("visibility","hidden"),a},update:function(t,a){i&&!n.forcePlaceholderSize||(a.height()||a.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),a.width()||a.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each(function(){t("<td>&#160;</td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var i,n,a,o,r,s,l,c,u,h,d=null,f=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],f=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(a=1e4,o=null,r=(u=d.floating||this._isFloating(this.currentItem))?"left":"top",s=u?"width":"height",h=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[f].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[r],c=!1,e[h]-l>this.items[n][s]/2&&(c=!0),Math.abs(e[h]-l)<a&&(a=Math.abs(e[h]-l),o=this.items[n],this.direction=c?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f])return void(this.currentContainer.containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[f].element,!0),this._trigger("change",e,this._uiHash()),this.containers[f]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[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")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{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 e,i,n,a=this.options;"parent"===a.containment&&(a.containment=this.helper[0].parentNode),"document"!==a.containment&&"window"!==a.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===a.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===a.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(a.containment)||(e=t(a.containment)[0],i=t(a.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(a[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:a.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:a.scrollLeft())*n}},_generatePosition:function(e){var i,n,a=this.options,o=e.pageX,r=e.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(s[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&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),a.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/a.grid[1])*a.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-a.grid[1]:i+a.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/a.grid[0])*a.grid[0],o=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-a.grid[0]:n+a.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(t,e,i,n){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 a=this.counter;this._delay(function(){a===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function a(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}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(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(a("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(a("out",this,this.containers[i])),this.containers[i].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(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),n=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&n.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(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),n=t(e.currentTarget);i[0]===n[0]&&(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,n))}},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(e){this._delay(function(){!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,n,a,o,r=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:r=!1,n=this.previousFilter||"",o=!1,a=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),a===n?o=!0:a=n+a,i=this._filterMenuItems(a),(i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(a=String.fromCharCode(e.keyCode),i=this._filterMenuItems(a)),i.length?(this.focus(e,i),this.previousFilter=a,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}r&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,n,a,o=this,r=this.options.icons.submenu,s=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=s.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),n=t("<span>").data("ui-menu-submenu-caret",!0);o._addClass(n,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(e=s.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=t(this);o._isDivider(e)&&o._addClass(e,"ui-menu-divider","ui-widget-content")}),a=(n=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(a,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,n,a;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),a=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(a,null,"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(e){var i,n,a,o,r,s;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,a=e.offset().top-this.activeMenu.offset().top-i-n,o=this.activeMenu.scrollTop(),r=this.activeMenu.height(),s=e.outerHeight(),a<0?this.activeMenu.scrollTop(o+a):a+s>r&&this.activeMenu.scrollTop(o+a-r+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_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(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.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 n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,a;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,a=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-n-a<0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var i,n,a;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,a=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-n+a>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return n.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}});t.widget("ui.autocomplete",{version:"1.12.1",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 e,i,n,a=this.element[0].nodeName.toLowerCase(),o="textarea"===a,r="input"===a;this.isMultiLine=o||!r&&this._isContentEditable(this.element),this.valueMethod=this.element[o||r?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(a){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var o=t.ui.keyCode;switch(a.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",a);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",a);break;case o.UP:e=!0,this._keyEvent("previous",a);break;case o.DOWN:e=!0,this._keyEvent("next",a);break;case o.ENTER:this.menu.active&&(e=!0,a.preventDefault(),this.menu.select(a));break;case o.TAB:this.menu.active&&this.menu.select(a);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(a),a.preventDefault());break;default:i=!0,this._searchTimeout(a)}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var a=t.ui.keyCode;switch(n.keyCode){case a.PAGE_UP:this._move("previousPage",n);break;case a.PAGE_DOWN:this._move("nextPage",n);break;case a.UP:this._keyEvent("previous",n);break;case a.DOWN:this._keyEvent("next",n)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var n,a;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});a=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:a})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(a.value),(n=i.item.attr("aria-label")||a.value)&&t.trim(n).length&&(this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))},menuselect:function(e,i){var n=i.item.data("ui-autocomplete-item"),a=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=a,this._delay(function(){this.previous=a,this.selectedItem=n})),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.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()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,a){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){a(t)},error:function(){a([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||i||n)||(this.selectedItem=null,this.search(null,t))},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._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._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._off(this.document,"mousedown"),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(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){if(this.menu.element.is(":visible"))return 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);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())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}});var r;t.ui.autocomplete;function s(){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},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=l(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function l(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,c)}function c(){t.datepicker._isDisabledDatepicker(r.inline?r.dpDiv.parent()[0]:r.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function u(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}t.extend(t.ui,{datepicker:{version:"1.12.1"}}),t.extend(s.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return u(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,a,o;a="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(o=this._newInst(t(e),a)).settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,o):a&&this._inlineDatepicker(e,o)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?l(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,a,o,r=this._get(i,"appendText"),s=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=t("<span class='"+this._appendClass+"'>"+r+"</span>"),e[s?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(a=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:o,alt:a,title:a}):t("<button type='button'></button>").addClass(this._triggerClass).html(o?t("<img/>").attr({src:o,alt:a,title:a}):a)),e[s?"before":"after"](i.trigger),i.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,a,o=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(t){for(i=0,n=0,a=0;a<t.length;a++)t[a].length>i&&(i=t[a].length,n=a);return n},o.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,a,o){var r,s,l,c,h,d=this._dialogInst;return d||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(d=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",d)),u(d.settings,a||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(s=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[s/2-100+c,l/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(e){var i,n=t(e),a=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(a.append.remove(),a.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty(),r===a&&(r=null))},_enableDatepicker:function(e){var i,n,a=t(e),o=t.data(e,"datepicker");a.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,a=t(e),o=t.data(e,"datepicker");a.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.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(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var a,o,r,s,l=this._getInst(e);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):l?"all"===i?t.extend({},l.settings):this._get(l,i):null;a=i||{},"string"==typeof i&&((a={})[i]=n),l&&(this._curInst===l&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(l,"min"),s=this._getMinMaxDate(l,"max"),u(l.settings,a),null!==r&&void 0!==a.dateFormat&&void 0===a.minDate&&(l.settings.minDate=this._formatDate(l,r)),null!==s&&void 0!==a.dateFormat&&void 0===a.maxDate&&(l.settings.maxDate=this._formatDate(l,s)),"disabled"in a&&(a.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),l),this._autoSize(l),this._setDate(l,o),this._updateAlternate(l),this._updateDatepicker(l))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,a,o=t.datepicker._getInst(e.target),r=!0,s=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),r=!1;break;case 13:return(a=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv))[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,a[0]),(i=t.datepicker._get(o,"onSelect"))?(n=t.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[n,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),r=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),r=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),r=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),r=e.ctrlKey||e.metaKey;break;default:r=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):r=!1;r&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,a=t.datepicker._getInst(e.target);if(t.datepicker._get(a,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(a,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var i,n,a,o,r,s,l;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e)||(i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(a=(n=t.datepicker._get(i,"beforeShow"))?n.apply(e,[e,i]):{})&&(u(i.settings,a),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each(function(){return!(o|="fixed"===t(this).css("position"))}),r={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),r=t.datepicker._checkOffset(i,r,o),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":o?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),i.inline||(s=t.datepicker._get(i,"showAnim"),l=t.datepicker._get(i,"duration"),i.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}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[s]?i.dpDiv.show(s,t.datepicker._get(i,"showOptions"),l):i.dpDiv[s||"show"](s?l:null),t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),t.datepicker._curInst=i)))},_updateDatepicker:function(e){this.maxRows=4,r=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,n=this._getNumberOfMonths(e),a=n[1],o=e.dpDiv.find("."+this._dayOverClass+" a");o.length>0&&c.apply(o.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&e.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",17*a+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var a=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,s=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?a-r:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+s?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+a>l&&l>a?Math.abs(i.left+a-l):0),i.top-=Math.min(i.top,i.top+o>c&&c>o?Math.abs(o+s):0),i},_findPos:function(e){for(var i,n=this._getInst(e),a=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[a?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,n,a,o,r=this._curInst;!r||e&&r!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(r,"showAnim"),n=this._get(r,"duration"),a=function(){t.datepicker._tidyDialog(r)},t.effects&&(t.effects.effect[i]||t.effects[i])?r.dpDiv.hide(i,t.datepicker._get(r,"showOptions"),n,a):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,a),i||a(),this._datepickerShowing=!1,(o=this._get(r,"onClose"))&&o.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var a=t(e),o=this._getInst(a[0]);this._isDisabledDatepicker(a[0])||(this._adjustInstDate(o,i+("M"===n?this._get(o,"showCurrentAtPos"):0),n),this._updateDatepicker(o))},_gotoToday:function(e){var i,n=t(e),a=this._getInst(n[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(i=new Date,a.selectedDay=i.getDate(),a.drawMonth=a.selectedMonth=i.getMonth(),a.drawYear=a.selectedYear=i.getFullYear()),this._notifyChange(a),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var a=t(e),o=this._getInst(a[0]);o["selected"+("M"===n?"Month":"Year")]=o["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(a)},_selectDay:function(e,i,n,a){var o,r=t(e);t(a).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((o=this._getInst(r[0])).selectedDay=o.currentDay=t("a",a).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=n,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,a=t(e),o=this._getInst(a[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),(n=this._get(o,"onSelect"))?n.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,n,a,o=this._get(e,"altField");o&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),a=this.formatDate(i,n,this._getFormatConfig(e)),t(o).val(a))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var a,o,r,s,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),h=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,d=(n?n.dayNames:null)||this._defaults.dayNames,f=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,p=(n?n.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,y=-1,_=!1,b=function(t){var i=a+1<e.length&&e.charAt(a+1)===t;return i&&a++,i},w=function(t){var e=b(t),n="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,a=new RegExp("^\\d{"+("y"===t?n:1)+","+n+"}"),o=i.substring(l).match(a);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},k=function(e,n,a){var o=-1,r=t.map(b(e)?a:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(r,function(t,e){var n=e[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return o=e[0],l+=n.length,!1}),-1!==o)return o+1;throw"Unknown name at position "+l},x=function(){if(i.charAt(l)!==e.charAt(a))throw"Unexpected literal at position "+l;l++};for(a=0;a<e.length;a++)if(_)"'"!==e.charAt(a)||b("'")?x():_=!1;else switch(e.charAt(a)){case"d":v=w("d");break;case"D":k("D",h,d);break;case"o":y=w("o");break;case"m":g=w("m");break;case"M":g=k("M",f,p);break;case"y":m=w("y");break;case"@":m=(s=new Date(w("@"))).getFullYear(),g=s.getMonth()+1,v=s.getDate();break;case"!":m=(s=new Date((w("!")-this._ticksTo1970)/1e4)).getFullYear(),g=s.getMonth()+1,v=s.getDate();break;case"'":b("'")?x():_=!0;break;default:x()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===m?m=(new Date).getFullYear():m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=u?0:-100)),y>-1)for(g=1,v=y;;){if(v<=(o=this._getDaysInMonth(m,g-1)))break;g++,v-=o}if((s=this._daylightSavingAdjust(new Date(m,g-1,v))).getFullYear()!==m||s.getMonth()+1!==g||s.getDate()!==v)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,a=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,s=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},c=function(t,e,i){var n=""+e;if(l(t))for(;n.length<i;)n="0"+n;return n},u=function(t,e,i,n){return l(t)?n[e]:i[e]},h="",d=!1;if(e)for(n=0;n<t.length;n++)if(d)"'"!==t.charAt(n)||l("'")?h+=t.charAt(n):d=!1;else switch(t.charAt(n)){case"d":h+=c("d",e.getDate(),2);break;case"D":h+=u("D",e.getDay(),a,o);break;case"o":h+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=c("m",e.getMonth()+1,2);break;case"M":h+=u("M",e.getMonth(),r,s);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":d=!0;break;default:h+=t.charAt(n)}return h},_possibleChars:function(t){var e,i="",n=!1,a=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||a("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":a("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,a=this._getDefaultDate(t),o=a,r=this._getFormatConfig(t);try{o=this.parseDate(i,n,r)||a}catch(t){n=e?"":n}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=n?o.getDate():0,t.currentMonth=n?o.getMonth():0,t.currentYear=n?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var a=null==i||""===i?n:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,a=n.getFullYear(),o=n.getMonth(),r=n.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=s.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(a,o));break;case"y":case"Y":a+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(a,o))}l=s.exec(i)}return new Date(a,o,r)}(i):"number"==typeof i?isNaN(i)?n:function(t){var e=new Date;return e.setDate(e.getDate()+t),e}(i):new Date(i.getTime());return(a=a&&"Invalid Date"===a.toString()?n:a)&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,a=t.selectedMonth,o=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),a===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":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(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,a,o,r,s,l,c,u,h,d,f,p,m,g,v,y,_,b,w,k,x,D,M,T,C,S,P,A,I,O,E,j,N,F,W,H,z,Y=new Date,L=this._daylightSavingAdjust(new Date(Y.getFullYear(),Y.getMonth(),Y.getDate())),R=this._get(t,"isRTL"),$=this._get(t,"showButtonPanel"),U=this._get(t,"hideIfNoPrevNext"),B=this._get(t,"navigationAsDateFormat"),K=this._getNumberOfMonths(t),Q=this._get(t,"showCurrentAtPos"),q=this._get(t,"stepMonths"),J=1!==K[0]||1!==K[1],G=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),V=this._getMinMaxDate(t,"min"),X=this._getMinMaxDate(t,"max"),Z=t.drawMonth-Q,tt=t.drawYear;if(Z<0&&(Z+=12,tt--),X)for(e=this._daylightSavingAdjust(new Date(X.getFullYear(),X.getMonth()-K[0]*K[1]+1,X.getDate())),e=V&&e<V?V:e;this._daylightSavingAdjust(new Date(tt,Z,1))>e;)--Z<0&&(Z=11,tt--);for(t.drawMonth=Z,t.drawYear=tt,i=this._get(t,"prevText"),i=B?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,Z-q,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"e":"w")+"'>"+i+"</span></a>":U?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"e":"w")+"'>"+i+"</span></a>",a=this._get(t,"nextText"),a=B?this.formatDate(a,this._daylightSavingAdjust(new Date(tt,Z+q,1)),this._getFormatConfig(t)):a,o=this._canAdjustMonth(t,1,tt,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+a+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"w":"e")+"'>"+a+"</span></a>":U?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+a+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"w":"e")+"'>"+a+"</span></a>",r=this._get(t,"currentText"),s=this._get(t,"gotoCurrent")&&t.currentDay?G:L,r=B?this.formatDate(r,s,this._getFormatConfig(t)):r,l=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>",c=$?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(R?l:"")+(this._isInRange(t,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+(R?"":l)+"</div>":"",u=parseInt(this._get(t,"firstDay"),10),u=isNaN(u)?0:u,h=this._get(t,"showWeek"),d=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),p=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),g=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),b="",k=0;k<K[0];k++){for(x="",this.maxRows=4,D=0;D<K[1];D++){if(M=this._daylightSavingAdjust(new Date(tt,Z,t.selectedDay)),T=" ui-corner-all",C="",J){if(C+="<div class='ui-datepicker-group",K[1]>1)switch(D){case 0:C+=" ui-datepicker-group-first",T=" ui-corner-"+(R?"right":"left");break;case K[1]-1:C+=" ui-datepicker-group-last",T=" ui-corner-"+(R?"left":"right");break;default:C+=" ui-datepicker-group-middle",T=""}C+="'>"}for(C+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&0===k?R?o:n:"")+(/all|right/.test(T)&&0===k?R?n:o:"")+this._generateMonthYearHeader(t,Z,tt,V,X,k>0||D>0,p,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=h?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;w<7;w++)S+="<th scope='col'"+((w+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+d[P=(w+u)%7]+"'>"+f[P]+"</span></th>";for(C+=S+"</tr></thead><tbody>",A=this._getDaysInMonth(tt,Z),tt===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,A)),I=(this._getFirstDayOfMonth(tt,Z)-u+7)%7,O=Math.ceil((I+A)/7),E=J&&this.maxRows>O?this.maxRows:O,this.maxRows=E,j=this._daylightSavingAdjust(new Date(tt,Z,1-I)),N=0;N<E;N++){for(C+="<tr>",F=h?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(j)+"</td>":"",w=0;w<7;w++)W=g?g.apply(t.input?t.input[0]:null,[j]):[!0,""],z=(H=j.getMonth()!==Z)&&!y||!W[0]||V&&j<V||X&&j>X,F+="<td class='"+((w+u+6)%7>=5?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(j.getTime()===M.getTime()&&Z===t.selectedMonth&&t._keyEvent||_.getTime()===j.getTime()&&_.getTime()===M.getTime()?" "+this._dayOverClass:"")+(z?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!v?"":" "+W[1]+(j.getTime()===G.getTime()?" "+this._currentClass:"")+(j.getTime()===L.getTime()?" ui-datepicker-today":""))+"'"+(H&&!v||!W[2]?"":" title='"+W[2].replace(/'/g,"&#39;")+"'")+(z?"":" data-handler='selectDay' data-event='click' data-month='"+j.getMonth()+"' data-year='"+j.getFullYear()+"'")+">"+(H&&!v?"&#xa0;":z?"<span class='ui-state-default'>"+j.getDate()+"</span>":"<a class='ui-state-default"+(j.getTime()===L.getTime()?" ui-state-highlight":"")+(j.getTime()===G.getTime()?" ui-state-active":"")+(H?" ui-priority-secondary":"")+"' href='#'>"+j.getDate()+"</a>")+"</td>",j.setDate(j.getDate()+1),j=this._daylightSavingAdjust(j);C+=F+"</tr>"}++Z>11&&(Z=0,tt++),x+=C+="</tbody></table>"+(J?"</div>"+(K[0]>0&&D===K[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}b+=x}return b+=c,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,a,o,r,s){var l,c,u,h,d,f,p,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),y=this._get(t,"showMonthAfterYear"),_="<div class='ui-datepicker-title'>",b="";if(o||!g)b+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=n&&n.getFullYear()===i,c=a&&a.getFullYear()===i,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!c||u<=a.getMonth())&&(b+="<option value='"+u+"'"+(u===e?" selected='selected'":"")+">"+s[u]+"</option>");b+="</select>"}if(y||(_+=b+(!o&&g&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!v)_+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(h=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=(f=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e})(h[0]),m=Math.max(p,f(h[1]||"")),p=n?Math.max(p,n.getFullYear()):p,m=a?Math.min(m,a.getFullYear()):m,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=m;p++)t.yearshtml+="<option value='"+p+"'"+(p===i?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",_+=t.yearshtml,t.yearshtml=null}return _+=this._get(t,"yearSuffix"),y&&(_+=(!o&&g&&v?"":"&#xa0;")+b),_+="</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),a=t.selectedMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(n,a))+("D"===i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,a,o)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),a=i&&e<i?i:e;return n&&a>n?n:a},_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){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_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,n){var a=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,n+(e<0?e:a[0]*a[1]),1));return e<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,n,a=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),r=null,s=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),s=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(s+=n)),(!a||e.getTime()>=a.getTime())&&(!o||e.getTime()<=o.getTime())&&(!r||e.getFullYear()>=r)&&(!s||e.getFullYear()<=s)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var a=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),a,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new s,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1";t.datepicker}),function(){"use strict";var t,e,i,n,a;t=function(t,e){return"string"==typeof t&&"string"==typeof e&&t.toLowerCase()===e.toLowerCase()},e=function(t,i,n){var a=n||"0",o=t.toString();return o.length<i?e(a+o,i):o},i=function(t){var e,n;for(t=t||{},e=1;e<arguments.length;e++)if(n=arguments[e])for(var a in n)n.hasOwnProperty(a)&&("object"==typeof n[a]?i(t[a],n[a]):t[a]=n[a]);return t},n=function(t,e){for(var i=0;i<e.length;i++)if(e[i].toLowerCase()===t.toLowerCase())return i;return-1},a={dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(t){var e=t%10,i={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(t%100/10)&&i[e]?i[e]:"th"}},separators:/[ \-+\/\.T:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},(DateFormatter=function(t){var e=this,n=i(a,t);e.dateSettings=n.dateSettings,e.separators=n.separators,e.validParts=n.validParts,e.intParts=n.intParts,e.tzParts=n.tzParts,e.tzClip=n.tzClip}).prototype={constructor:DateFormatter,getMonth:function(t){var e;return 0===(e=n(t,this.dateSettings.monthsShort)+1)&&(e=n(t,this.dateSettings.months)+1),e},parseDate:function(e,i){var n,a,o,r,s,l,c,u,h,d,f=this,p=!1,m=!1,g=f.dateSettings,v={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!e)return null;if(e instanceof Date)return e;if("U"===i)return(o=parseInt(e))?new Date(1e3*o):e;switch(typeof e){case"number":return new Date(e);case"string":break;default:return null}if(!(n=i.match(f.validParts))||0===n.length)throw new Error("Invalid date format definition.");for(a=e.replace(f.separators,"\0").split("\0"),o=0;o<a.length;o++)switch(r=a[o],s=parseInt(r),n[o]){case"y":case"Y":if(!s)return null;h=r.length,v.year=2===h?parseInt((70>s?"20":"19")+r):s,p=!0;break;case"m":case"n":case"M":case"F":if(isNaN(s)){if(!((l=f.getMonth(r))>0))return null;v.month=l}else{if(!(s>=1&&12>=s))return null;v.month=s}p=!0;break;case"d":case"j":if(!(s>=1&&31>=s))return null;v.day=s,p=!0;break;case"g":case"h":if(d=a[c=n.indexOf("a")>-1?n.indexOf("a"):n.indexOf("A")>-1?n.indexOf("A"):-1],c>-1)u=t(d,g.meridiem[0])?0:t(d,g.meridiem[1])?12:-1,s>=1&&12>=s&&u>-1?v.hour=s+u-1:s>=0&&23>=s&&(v.hour=s);else{if(!(s>=0&&23>=s))return null;v.hour=s}m=!0;break;case"G":case"H":if(!(s>=0&&23>=s))return null;v.hour=s,m=!0;break;case"i":if(!(s>=0&&59>=s))return null;v.min=s,m=!0;break;case"s":if(!(s>=0&&59>=s))return null;v.sec=s,m=!0}if(!0===p&&v.year&&v.month&&v.day)v.date=new Date(v.year,v.month-1,v.day,v.hour,v.min,v.sec,0);else{if(!0!==m)return null;v.date=new Date(0,0,0,v.hour,v.min,v.sec,0)}return v.date},guessDate:function(t,e){if("string"!=typeof t)return t;var i,n,a,o,r,s,l=t.replace(this.separators,"\0").split("\0"),c=e.match(this.validParts),u=new Date,h=0;if(!/^[djmn]/g.test(c[0]))return t;for(a=0;a<l.length;a++){if(h=2,r=l[a],s=parseInt(r.substr(0,2)),isNaN(s))return null;switch(a){case 0:"m"===c[0]||"n"===c[0]?u.setMonth(s-1):u.setDate(s);break;case 1:"m"===c[0]||"n"===c[0]?u.setDate(s):u.setMonth(s-1);break;case 2:if(n=u.getFullYear(),h=4>(i=r.length)?i:4,!(n=parseInt(4>i?n.toString().substr(0,4-i)+r:r.substr(0,4))))return null;u.setFullYear(n);break;case 3:u.setHours(s);break;case 4:u.setMinutes(s);break;case 5:u.setSeconds(s)}(o=r.substr(h)).length>0&&l.splice(a+1,0,o)}return u},parseFormat:function(t,i){var n,a=this,o=a.dateSettings,r=/\\?(.?)/gi,s=function(t,e){return n[t]?n[t]():e};return n={d:function(){return e(n.j(),2)},D:function(){return o.daysShort[n.w()]},j:function(){return i.getDate()},l:function(){return o.days[n.w()]},N:function(){return n.w()||7},w:function(){return i.getDay()},z:function(){var t=new Date(n.Y(),n.n()-1,n.j()),e=new Date(n.Y(),0,1);return Math.round((t-e)/864e5)},W:function(){var t=new Date(n.Y(),n.n()-1,n.j()-n.N()+3),i=new Date(t.getFullYear(),0,4);return e(1+Math.round((t-i)/864e5/7),2)},F:function(){return o.months[i.getMonth()]},m:function(){return e(n.n(),2)},M:function(){return o.monthsShort[i.getMonth()]},n:function(){return i.getMonth()+1},t:function(){return new Date(n.Y(),n.n(),0).getDate()},L:function(){var t=n.Y();return t%4==0&&t%100!=0||t%400==0?1:0},o:function(){var t=n.n(),e=n.W();return n.Y()+(12===t&&9>e?1:1===t&&e>9?-1:0)},Y:function(){return i.getFullYear()},y:function(){return n.Y().toString().slice(-2)},a:function(){return n.A().toLowerCase()},A:function(){var t=n.G()<12?0:1;return o.meridiem[t]},B:function(){var t=3600*i.getUTCHours(),n=60*i.getUTCMinutes(),a=i.getUTCSeconds();return e(Math.floor((t+n+a+3600)/86.4)%1e3,3)},g:function(){return n.G()%12||12},G:function(){return i.getHours()},h:function(){return e(n.g(),2)},H:function(){return e(n.G(),2)},i:function(){return e(i.getMinutes(),2)},s:function(){return e(i.getSeconds(),2)},u:function(){return e(1e3*i.getMilliseconds(),6)},e:function(){return/\((.*)\)/.exec(String(i))[1]||"Coordinated Universal Time"},I:function(){return new Date(n.Y(),0)-Date.UTC(n.Y(),0)!=new Date(n.Y(),6)-Date.UTC(n.Y(),6)?1:0},O:function(){var t=i.getTimezoneOffset(),n=Math.abs(t);return(t>0?"-":"+")+e(100*Math.floor(n/60)+n%60,4)},P:function(){var t=n.O();return t.substr(0,3)+":"+t.substr(3,2)},T:function(){return(String(i).match(a.tzParts)||[""]).pop().replace(a.tzClip,"")||"UTC"},Z:function(){return 60*-i.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(r,s)},r:function(){return"D, d M Y H:i:s O".replace(r,s)},U:function(){return i.getTime()/1e3||0}},s(t,t)},formatDate:function(t,e){var i,n,a,o,r,s=this,l="";if("string"==typeof t&&!(t=s.parseDate(t,e)))return null;if(t instanceof Date){for(a=e.length,i=0;a>i;i++)"S"!==(r=e.charAt(i))&&"\\"!==r&&(i>0&&"\\"===e.charAt(i-1)?l+=r:(o=s.parseFormat(r,t),i!==a-1&&s.intParts.test(r)&&"S"===e.charAt(i+1)&&(n=parseInt(o)||0,o+=s.dateSettings.ordinal(n)),l+=o));return l}return""}}}();var datetimepickerFactory=function(t){"use strict";var e={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Ндл","Пнд","Втр","Срд","Чтв","Птн","Сбт"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},km:{months:["មករា​","កុម្ភៈ","មិនា​","មេសា​","ឧសភា​","មិថុនា​","កក្កដា​","សីហា​","កញ្ញា​","តុលា​","វិច្ឆិកា","ធ្នូ​"],dayOfWeekShort:["អាទិ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហ​​","សុក្រ​","សៅរ៍"],dayOfWeek:["អាទិត្យ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហស្បតិ៍​","សុក្រ​","សៅរ៍"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ug:{months:["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي"],dayOfWeek:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},ownerDocument:document,contentWindow:window,value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,openOnFocus:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,minDateTime:!1,maxDateTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",touchMovedThreshold:5,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1},i=null,n=null,a="en",o={meridiem:["AM","PM"]},r=function(){var r=e.i18n[a],s={days:r.dayOfWeek,daysShort:r.dayOfWeekShort,months:r.months,monthsShort:t.map(r.months,function(t){return t.substring(0,3)})};"function"==typeof DateFormatter&&(i=n=new DateFormatter({dateSettings:t.extend({},o,s)}))},s={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},formatter:{parseDate:function(t,e){if(c(e))return n.parseDate(t,e);var i=moment(t,e);return!!i.isValid()&&i.toDate()},formatDate:function(t,e){return c(e)?n.formatDate(t,e):moment(t).format(e)},formatMask:function(t){return t.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59")}}}};t.datetimepicker={setLocale:function(t){var i=e.i18n[t]?t:"en";a!==i&&(a=i,r())},setDateFormatter:function(n){if("string"==typeof n&&s.hasOwnProperty(n)){var a=s[n];t.extend(e,a.default_options),i=a.formatter}else i=n}};var l={RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"},c=function(t){return-1!==Object.values(l).indexOf(t)};function u(t,e,i){this.date=t,this.desc=e,this.style=i}t.extend(t.datetimepicker,l),r(),window.getComputedStyle||(window.getComputedStyle=function(t){return this.el=t,this.getPropertyValue=function(e){var i=/(-([a-z]))/g;return"float"===e&&(e="styleFloat"),i.test(e)&&(e=e.replace(i,function(t,e,i){return i.toUpperCase()})),t.currentStyle[e]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var i,n;for(i=e||0,n=this.length;i<n;i+=1)if(this[i]===t)return i;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},t.fn.xdsoftScroller=function(e,i){return this.each(function(){var n,a,o,r,s,l=t(this),c=function(t){var e,i={x:0,y:0};return"touchstart"===t.type||"touchmove"===t.type||"touchend"===t.type||"touchcancel"===t.type?(e=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],i.x=e.clientX,i.y=e.clientY):"mousedown"!==t.type&&"mouseup"!==t.type&&"mousemove"!==t.type&&"mouseover"!==t.type&&"mouseout"!==t.type&&"mouseenter"!==t.type&&"mouseleave"!==t.type||(i.x=t.clientX,i.y=t.clientY),i},u=100,h=!1,d=0,f=0,p=0,m=!1,g=0,v=function(){};"hide"!==i?(t(this).hasClass("xdsoft_scroller_box")||(n=l.children().eq(0),a=l[0].clientHeight,o=n[0].offsetHeight,r=t('<div class="xdsoft_scrollbar"></div>'),s=t('<div class="xdsoft_scroller"></div>'),r.append(s),l.addClass("xdsoft_scroller_box").append(r),v=function(t){var e=c(t).y-d+g;e<0&&(e=0),e+s[0].offsetHeight>p&&(e=p-s[0].offsetHeight),l.trigger("scroll_element.xdsoft_scroller",[u?e/u:0])},s.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(n){a||l.trigger("resize_scroll.xdsoft_scroller",[i]),d=c(n).y,g=parseInt(s.css("margin-top"),10),p=r[0].offsetHeight,"mousedown"===n.type||"touchstart"===n.type?(e.ownerDocument&&t(e.ownerDocument.body).addClass("xdsoft_noselect"),t([e.ownerDocument.body,e.contentWindow]).on("touchend mouseup.xdsoft_scroller",function i(){t([e.ownerDocument.body,e.contentWindow]).off("touchend mouseup.xdsoft_scroller",i).off("mousemove.xdsoft_scroller",v).removeClass("xdsoft_noselect")}),t(e.ownerDocument.body).on("mousemove.xdsoft_scroller",v)):(m=!0,n.stopPropagation(),n.preventDefault())}).on("touchmove",function(t){m&&(t.preventDefault(),v(t))}).on("touchend touchcancel",function(){m=!1,g=0}),l.on("scroll_element.xdsoft_scroller",function(t,e){a||l.trigger("resize_scroll.xdsoft_scroller",[e,!0]),e=e>1?1:e<0||isNaN(e)?0:e,s.css("margin-top",u*e),setTimeout(function(){n.css("marginTop",-parseInt((n[0].offsetHeight-a)*e,10))},10)}).on("resize_scroll.xdsoft_scroller",function(t,e,i){var c,h;a=l[0].clientHeight,o=n[0].offsetHeight,h=(c=a/o)*r[0].offsetHeight,c>1?s.hide():(s.show(),s.css("height",parseInt(h>10?h:10,10)),u=r[0].offsetHeight-s[0].offsetHeight,!0!==i&&l.trigger("scroll_element.xdsoft_scroller",[e||Math.abs(parseInt(n.css("marginTop"),10))/(o-a)]))}),l.on("mousewheel",function(t){var e=Math.abs(parseInt(n.css("marginTop"),10));return(e-=20*t.deltaY)<0&&(e=0),l.trigger("scroll_element.xdsoft_scroller",[e/(o-a)]),t.stopPropagation(),!1}),l.on("touchstart",function(t){h=c(t),f=Math.abs(parseInt(n.css("marginTop"),10))}),l.on("touchmove",function(t){if(h){t.preventDefault();var e=c(t);l.trigger("scroll_element.xdsoft_scroller",[(f-(e.y-h.y))/(o-a)])}}),l.on("touchend touchcancel",function(){h=!1,f=0})),l.trigger("resize_scroll.xdsoft_scroller",[i])):l.find(".xdsoft_scrollbar").hide()})},t.fn.datetimepicker=function(n,o){var r,s,l=this,c=48,h=57,d=96,f=105,p=17,m=46,g=13,v=27,y=8,_=37,b=38,w=39,k=40,x=9,D=116,M=65,T=67,C=86,S=90,P=89,A=!1,I=t.isPlainObject(n)||!n?t.extend(!0,{},e,n):t.extend(!0,{},e),O=0;return r=function(e){var o,r,s,l,O,E,j=t('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),N=t('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),F=t('<div class="xdsoft_datepicker active"></div>'),W=t('<div class="xdsoft_monthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span><i></i></div><div class="xdsoft_label xdsoft_year"><span></span><i></i></div><button type="button" class="xdsoft_next"></button></div>'),H=t('<div class="xdsoft_calendar"></div>'),z=t('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),Y=z.find(".xdsoft_time_box").eq(0),L=t('<div class="xdsoft_time_variant"></div>'),R=t('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),$=t('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),U=t('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),B=!1,K=0;I.id&&j.attr("id",I.id),I.style&&j.attr("style",I.style),I.weeks&&j.addClass("xdsoft_showweeks"),I.rtl&&j.addClass("xdsoft_rtl"),j.addClass("xdsoft_"+I.theme),j.addClass(I.className),W.find(".xdsoft_month span").after($),W.find(".xdsoft_year span").after(U),W.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(e){var i,n,a=t(this).find(".xdsoft_select").eq(0),o=0,r=0,s=a.is(":visible");for(W.find(".xdsoft_select").hide(),O.currentTime&&(o=O.currentTime[t(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),a[s?"hide":"show"](),i=a.find("div.xdsoft_option"),n=0;n<i.length&&i.eq(n).data("value")!==o;n+=1)r+=i[0].offsetHeight;return a.xdsoftScroller(I,r/(a.children()[0].offsetHeight-a[0].clientHeight)),e.stopPropagation(),!1});var Q=function(t){var e=t.originalEvent,i=e.touches?e.touches[0]:e;this.touchStartPosition=this.touchStartPosition||i;var n=Math.abs(this.touchStartPosition.clientX-i.clientX),a=Math.abs(this.touchStartPosition.clientY-i.clientY);Math.sqrt(n*n+a*a)>I.touchMovedThreshold&&(this.touchMoved=!0)};function q(){var t,i=!1;return I.startDate?i=O.strToDate(I.startDate):(i=I.value||(e&&e.val&&e.val()?e.val():""))?(i=O.strToDateTime(i),I.yearOffset&&(i=new Date(i.getFullYear()-I.yearOffset,i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()))):I.defaultDate&&(i=O.strToDateTime(I.defaultDate),I.defaultTime&&(t=O.strtotime(I.defaultTime),i.setHours(t.getHours()),i.setMinutes(t.getMinutes()))),i&&O.isValidDate(i)?j.data("changed",!0):i="",i||0}function J(n){var a=function(t,e){var i=t.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(i).test(e)},o=function(t,e){if(!(t="string"==typeof t||t instanceof String?n.ownerDocument.getElementById(t):t))return!1;if(t.createTextRange){var i=t.createTextRange();return i.collapse(!0),i.moveEnd("character",e),i.moveStart("character",e),i.select(),!0}return!!t.setSelectionRange&&(t.setSelectionRange(e,e),!0)};n.mask&&e.off("keydown.xdsoft"),!0===n.mask&&(i.formatMask?n.mask=i.formatMask(n.format):n.mask=n.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"===t.type(n.mask)&&(a(n.mask,e.val())||(e.val(n.mask.replace(/[0-9]/g,"_")),o(e[0],0)),e.on("paste.xdsoft",function(i){var r=(i.clipboardData||i.originalEvent.clipboardData||window.clipboardData).getData("text"),s=this.value,l=this.selectionStart,c=s.substr(0,l),u=s.substr(l+r.length);return s=c+r+u,l+=r.length,a(n.mask,s)?(this.value=s,o(this,l)):""===t.trim(s)?this.value=n.mask.replace(/[0-9]/g,"_"):e.trigger("error_input.xdsoft"),i.preventDefault(),!1}),e.on("keydown.xdsoft",function(i){var r,s=this.value,l=i.which,u=this.selectionStart,I=this.selectionEnd,O=u!==I;if(l>=c&&l<=h||l>=d&&l<=f||l===y||l===m){for(r=l===y||l===m?"_":String.fromCharCode(d<=l&&l<=f?l-c:l),l===y&&u&&!O&&(u-=1);;){var E=n.mask.substr(u,1),j=u<n.mask.length,N=u>0;if(!(/[^0-9_]/.test(E)&&j&&N))break;u+=l!==y||O?1:-1}if(O){var F=I-u,W=n.mask.replace(/[0-9]/g,"_"),H=W.substr(u,F).substr(1),z=s.substr(0,u),Y=r+H,L=s.substr(u+F);s=z+Y+L}else{var R=s.substr(0,u),$=r,U=s.substr(u+1);s=R+$+U}if(""===t.trim(s))s=W;else if(u===n.mask.length)return i.preventDefault(),!1;for(u+=l===y?0:1;/[^0-9_]/.test(n.mask.substr(u,1))&&u<n.mask.length&&u>0;)u+=l===y?0:1;a(n.mask,s)?(this.value=s,o(this,u)):""===t.trim(s)?this.value=n.mask.replace(/[0-9]/g,"_"):e.trigger("error_input.xdsoft")}else if(-1!==[M,T,C,S,P].indexOf(l)&&A||-1!==[v,b,k,_,w,D,p,x,g].indexOf(l))return!0;return i.preventDefault(),!1}))}W.find(".xdsoft_select").xdsoftScroller(I).on("touchstart mousedown.xdsoft",function(t){var e=t.originalEvent;this.touchMoved=!1,this.touchStartPosition=e.touches?e.touches[0]:e,t.stopPropagation(),t.preventDefault()}).on("touchmove",".xdsoft_option",Q).on("touchend mousedown.xdsoft",".xdsoft_option",function(){if(!this.touchMoved){void 0!==O.currentTime&&null!==O.currentTime||(O.currentTime=O.now());var e=O.currentTime.getFullYear();O&&O.currentTime&&O.currentTime[t(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](t(this).data("value")),t(this).parent().parent().hide(),j.trigger("xchange.xdsoft"),I.onChangeMonth&&t.isFunction(I.onChangeMonth)&&I.onChangeMonth.call(j,O.currentTime,j.data("input")),e!==O.currentTime.getFullYear()&&t.isFunction(I.onChangeYear)&&I.onChangeYear.call(j,O.currentTime,j.data("input"))}}),j.getValue=function(){return O.getCurrentTime()},j.setOptions=function(n){var a={};I=t.extend(!0,{},I,n),n.allowTimes&&t.isArray(n.allowTimes)&&n.allowTimes.length&&(I.allowTimes=t.extend(!0,[],n.allowTimes)),n.weekends&&t.isArray(n.weekends)&&n.weekends.length&&(I.weekends=t.extend(!0,[],n.weekends)),n.allowDates&&t.isArray(n.allowDates)&&n.allowDates.length&&(I.allowDates=t.extend(!0,[],n.allowDates)),n.allowDateRe&&"[object String]"===Object.prototype.toString.call(n.allowDateRe)&&(I.allowDateRe=new RegExp(n.allowDateRe)),n.highlightedDates&&t.isArray(n.highlightedDates)&&n.highlightedDates.length&&(t.each(n.highlightedDates,function(e,n){var o,r=t.map(n.split(","),t.trim),s=new u(i.parseDate(r[0],I.formatDate),r[1],r[2]),l=i.formatDate(s.date,I.formatDate);void 0!==a[l]?(o=a[l].desc)&&o.length&&s.desc&&s.desc.length&&(a[l].desc=o+"\n"+s.desc):a[l]=s}),I.highlightedDates=t.extend(!0,[],a)),n.highlightedPeriods&&t.isArray(n.highlightedPeriods)&&n.highlightedPeriods.length&&(a=t.extend(!0,[],I.highlightedDates),t.each(n.highlightedPeriods,function(e,n){var o,r,s,l,c,h,d;if(t.isArray(n))o=n[0],r=n[1],s=n[2],d=n[3];else{var f=t.map(n.split(","),t.trim);o=i.parseDate(f[0],I.formatDate),r=i.parseDate(f[1],I.formatDate),s=f[2],d=f[3]}for(;o<=r;)l=new u(o,s,d),c=i.formatDate(o,I.formatDate),o.setDate(o.getDate()+1),void 0!==a[c]?(h=a[c].desc)&&h.length&&l.desc&&l.desc.length&&(a[c].desc=h+"\n"+l.desc):a[c]=l}),I.highlightedDates=t.extend(!0,[],a)),n.disabledDates&&t.isArray(n.disabledDates)&&n.disabledDates.length&&(I.disabledDates=t.extend(!0,[],n.disabledDates)),n.disabledWeekDays&&t.isArray(n.disabledWeekDays)&&n.disabledWeekDays.length&&(I.disabledWeekDays=t.extend(!0,[],n.disabledWeekDays)),!I.open&&!I.opened||I.inline||e.trigger("open.xdsoft"),I.inline&&(B=!0,j.addClass("xdsoft_inline"),e.after(j).hide()),I.inverseButton&&(I.next="xdsoft_prev",I.prev="xdsoft_next"),I.datepicker?F.addClass("active"):F.removeClass("active"),I.timepicker?z.addClass("active"):z.removeClass("active"),I.value&&(O.setCurrentTime(I.value),e&&e.val&&e.val(O.str)),isNaN(I.dayOfWeekStart)?I.dayOfWeekStart=0:I.dayOfWeekStart=parseInt(I.dayOfWeekStart,10)%7,I.timepickerScrollbar||Y.xdsoftScroller(I,"hide"),I.minDate&&/^[\+\-](.*)$/.test(I.minDate)&&(I.minDate=i.formatDate(O.strToDateTime(I.minDate),I.formatDate)),I.maxDate&&/^[\+\-](.*)$/.test(I.maxDate)&&(I.maxDate=i.formatDate(O.strToDateTime(I.maxDate),I.formatDate)),I.minDateTime&&/^\+(.*)$/.test(I.minDateTime)&&(I.minDateTime=O.strToDateTime(I.minDateTime).dateFormat(I.formatDate)),I.maxDateTime&&/^\+(.*)$/.test(I.maxDateTime)&&(I.maxDateTime=O.strToDateTime(I.maxDateTime).dateFormat(I.formatDate)),R.toggle(I.showApplyButton),W.find(".xdsoft_today_button").css("visibility",I.todayButton?"visible":"hidden"),W.find("."+I.prev).css("visibility",I.prevButton?"visible":"hidden"),W.find("."+I.next).css("visibility",I.nextButton?"visible":"hidden"),J(I),I.validateOnBlur&&e.off("blur.xdsoft").on("blur.xdsoft",function(){if(I.allowBlank&&(!t.trim(t(this).val()).length||"string"==typeof I.mask&&t.trim(t(this).val())===I.mask.replace(/[0-9]/g,"_")))t(this).val(null),j.data("xdsoft_datetime").empty();else{var e=i.parseDate(t(this).val(),I.format);if(e)t(this).val(i.formatDate(e,I.format));else{var n=+[t(this).val()[0],t(this).val()[1]].join(""),a=+[t(this).val()[2],t(this).val()[3]].join("");!I.datepicker&&I.timepicker&&n>=0&&n<24&&a>=0&&a<60?t(this).val([n,a].map(function(t){return t>9?t:"0"+t}).join(":")):t(this).val(i.formatDate(O.now(),I.format))}j.data("xdsoft_datetime").setCurrentTime(t(this).val())}j.trigger("changedatetime.xdsoft"),j.trigger("close.xdsoft")}),I.dayOfWeekStartPrev=0===I.dayOfWeekStart?6:I.dayOfWeekStart-1,j.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},j.data("options",I).on("touchstart mousedown.xdsoft",function(t){return t.stopPropagation(),t.preventDefault(),U.hide(),$.hide(),!1}),Y.append(L),Y.xdsoftScroller(I),j.on("afterOpen.xdsoft",function(){Y.xdsoftScroller(I)}),j.append(F).append(z),!0!==I.withoutCopyright&&j.append(N),F.append(W).append(H).append(R),t(I.parentID).append(j),O=new function(){var e=this;e.now=function(t){var i,n,a=new Date;return!t&&I.defaultDate&&(i=e.strToDateTime(I.defaultDate),a.setFullYear(i.getFullYear()),a.setMonth(i.getMonth()),a.setDate(i.getDate())),a.setFullYear(a.getFullYear()),!t&&I.defaultTime&&(n=e.strtotime(I.defaultTime),a.setHours(n.getHours()),a.setMinutes(n.getMinutes()),a.setSeconds(n.getSeconds()),a.setMilliseconds(n.getMilliseconds())),a},e.isValidDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.getTime())},e.setCurrentTime=function(t,i){"string"==typeof t?e.currentTime=e.strToDateTime(t):e.isValidDate(t)?e.currentTime=t:t||i||!I.allowBlank||I.inline?e.currentTime=e.now():e.currentTime=null,j.trigger("xchange.xdsoft")},e.empty=function(){e.currentTime=null},e.getCurrentTime=function(){return e.currentTime},e.nextMonth=function(){void 0!==e.currentTime&&null!==e.currentTime||(e.currentTime=e.now());var i,n=e.currentTime.getMonth()+1;return 12===n&&(e.currentTime.setFullYear(e.currentTime.getFullYear()+1),n=0),i=e.currentTime.getFullYear(),e.currentTime.setDate(Math.min(new Date(e.currentTime.getFullYear(),n+1,0).getDate(),e.currentTime.getDate())),e.currentTime.setMonth(n),I.onChangeMonth&&t.isFunction(I.onChangeMonth)&&I.onChangeMonth.call(j,O.currentTime,j.data("input")),i!==e.currentTime.getFullYear()&&t.isFunction(I.onChangeYear)&&I.onChangeYear.call(j,O.currentTime,j.data("input")),j.trigger("xchange.xdsoft"),n},e.prevMonth=function(){void 0!==e.currentTime&&null!==e.currentTime||(e.currentTime=e.now());var i=e.currentTime.getMonth()-1;return-1===i&&(e.currentTime.setFullYear(e.currentTime.getFullYear()-1),i=11),e.currentTime.setDate(Math.min(new Date(e.currentTime.getFullYear(),i+1,0).getDate(),e.currentTime.getDate())),e.currentTime.setMonth(i),I.onChangeMonth&&t.isFunction(I.onChangeMonth)&&I.onChangeMonth.call(j,O.currentTime,j.data("input")),j.trigger("xchange.xdsoft"),i},e.getWeekOfYear=function(e){if(I.onGetWeekOfYear&&t.isFunction(I.onGetWeekOfYear)){var i=I.onGetWeekOfYear.call(j,e);if(void 0!==i)return i}var n=new Date(e.getFullYear(),0,1);return 4!==n.getDay()&&n.setMonth(0,1+(4-n.getDay()+7)%7),Math.ceil(((e-n)/864e5+n.getDay()+1)/7)},e.strToDateTime=function(t){var n,a,o=[];return t&&t instanceof Date&&e.isValidDate(t)?t:((o=/^([+-]{1})(.*)$/.exec(t))&&(o[2]=i.parseDate(o[2],I.formatDate)),o&&o[2]?(n=o[2].getTime()-6e4*o[2].getTimezoneOffset(),a=new Date(e.now(!0).getTime()+parseInt(o[1]+"1",10)*n)):a=t?i.parseDate(t,I.format):e.now(),e.isValidDate(a)||(a=e.now()),a)},e.strToDate=function(t){if(t&&t instanceof Date&&e.isValidDate(t))return t;var n=t?i.parseDate(t,I.formatDate):e.now(!0);return e.isValidDate(n)||(n=e.now(!0)),n},e.strtotime=function(t){if(t&&t instanceof Date&&e.isValidDate(t))return t;var n=t?i.parseDate(t,I.formatTime):e.now(!0);return e.isValidDate(n)||(n=e.now(!0)),n},e.str=function(){var t=I.format;return I.yearOffset&&(t=(t=t.replace("Y",e.currentTime.getFullYear()+I.yearOffset)).replace("y",String(e.currentTime.getFullYear()+I.yearOffset).substring(2,4))),i.formatDate(e.currentTime,t)},e.currentTime=this.now()},R.on("touchend click",function(t){t.preventDefault(),j.data("changed",!0),O.setCurrentTime(q()),e.val(O.str()),j.trigger("close.xdsoft")}),W.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){j.data("changed",!0),O.setCurrentTime(0,!0),j.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var t,i,n=O.getCurrentTime();n=new Date(n.getFullYear(),n.getMonth(),n.getDate()),t=O.strToDate(I.minDate),n<(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()))||(i=O.strToDate(I.maxDate),n>(i=new Date(i.getFullYear(),i.getMonth(),i.getDate()))||(e.val(O.str()),e.trigger("change"),j.trigger("close.xdsoft")))}),W.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var e=t(this),i=0,n=!1;!function t(a){e.hasClass(I.next)?O.nextMonth():e.hasClass(I.prev)&&O.prevMonth(),I.monthChangeSpinner&&(n||(i=setTimeout(t,a||100)))}(500),t([I.ownerDocument.body,I.contentWindow]).on("touchend mouseup.xdsoft",function e(){clearTimeout(i),n=!0,t([I.ownerDocument.body,I.contentWindow]).off("touchend mouseup.xdsoft",e)})}),z.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var e=t(this),i=0,n=!1,a=110;!function t(o){var r=Y[0].clientHeight,s=L[0].offsetHeight,l=Math.abs(parseInt(L.css("marginTop"),10));e.hasClass(I.next)&&s-r-I.timeHeightInTimePicker>=l?L.css("marginTop","-"+(l+I.timeHeightInTimePicker)+"px"):e.hasClass(I.prev)&&l-I.timeHeightInTimePicker>=0&&L.css("marginTop","-"+(l-I.timeHeightInTimePicker)+"px"),Y.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(L[0].style.marginTop,10)/(s-r))]),a=a>10?10:a-10,n||(i=setTimeout(t,o||a))}(500),t([I.ownerDocument.body,I.contentWindow]).on("touchend mouseup.xdsoft",function e(){clearTimeout(i),n=!0,t([I.ownerDocument.body,I.contentWindow]).off("touchend mouseup.xdsoft",e)})}),o=0,j.on("xchange.xdsoft",function(r){clearTimeout(o),o=setTimeout(function(){void 0!==O.currentTime&&null!==O.currentTime||(O.currentTime=O.now());for(var o,r,s,l,c,u,h,d,f,p,m="",g=new Date(O.currentTime.getFullYear(),O.currentTime.getMonth(),1,12,0,0),v=0,y=O.now(),_=!1,b=!1,w=!1,k=!1,x=[],D=!0,M="";g.getDay()!==I.dayOfWeekStart;)g.setDate(g.getDate()-1);for(m+="<table><thead><tr>",I.weeks&&(m+="<th></th>"),o=0;o<7;o+=1)m+="<th>"+I.i18n[a].dayOfWeekShort[(o+I.dayOfWeekStart)%7]+"</th>";for(m+="</tr></thead>",m+="<tbody>",!1!==I.maxDate&&(_=O.strToDate(I.maxDate),_=new Date(_.getFullYear(),_.getMonth(),_.getDate(),23,59,59,999)),!1!==I.minDate&&(b=O.strToDate(I.minDate),b=new Date(b.getFullYear(),b.getMonth(),b.getDate())),!1!==I.minDateTime&&(w=O.strToDate(I.minDateTime),w=new Date(w.getFullYear(),w.getMonth(),w.getDate(),w.getHours(),w.getMinutes(),w.getSeconds())),!1!==I.maxDateTime&&(k=O.strToDate(I.maxDateTime),k=new Date(k.getFullYear(),k.getMonth(),k.getDate(),k.getHours(),k.getMinutes(),k.getSeconds())),!1!==k&&(p=31*(12*k.getFullYear()+k.getMonth())+k.getDate());v<O.currentTime.countDaysInMonth()||g.getDay()!==I.dayOfWeekStart||O.currentTime.getMonth()===g.getMonth();){x=[],v+=1,s=g.getDay(),l=g.getDate(),c=g.getFullYear(),A=g.getMonth(),u=O.getWeekOfYear(g),f="",x.push("xdsoft_date"),h=I.beforeShowDay&&t.isFunction(I.beforeShowDay.call)?I.beforeShowDay.call(j,g):null,I.allowDateRe&&"[object RegExp]"===Object.prototype.toString.call(I.allowDateRe)&&(I.allowDateRe.test(i.formatDate(g,I.formatDate))||x.push("xdsoft_disabled")),I.allowDates&&I.allowDates.length>0&&-1===I.allowDates.indexOf(i.formatDate(g,I.formatDate))&&x.push("xdsoft_disabled");var T=31*(12*g.getFullYear()+g.getMonth())+g.getDate();(!1!==_&&g>_||!1!==w&&g<w||!1!==b&&g<b||!1!==k&&T>p||h&&!1===h[0])&&x.push("xdsoft_disabled"),-1!==I.disabledDates.indexOf(i.formatDate(g,I.formatDate))&&x.push("xdsoft_disabled"),-1!==I.disabledWeekDays.indexOf(s)&&x.push("xdsoft_disabled"),e.is("[disabled]")&&x.push("xdsoft_disabled"),h&&""!==h[1]&&x.push(h[1]),O.currentTime.getMonth()!==A&&x.push("xdsoft_other_month"),(I.defaultSelect||j.data("changed"))&&i.formatDate(O.currentTime,I.formatDate)===i.formatDate(g,I.formatDate)&&x.push("xdsoft_current"),i.formatDate(y,I.formatDate)===i.formatDate(g,I.formatDate)&&x.push("xdsoft_today"),0!==g.getDay()&&6!==g.getDay()&&-1===I.weekends.indexOf(i.formatDate(g,I.formatDate))||x.push("xdsoft_weekend"),void 0!==I.highlightedDates[i.formatDate(g,I.formatDate)]&&(r=I.highlightedDates[i.formatDate(g,I.formatDate)],x.push(void 0===r.style?"xdsoft_highlighted_default":r.style),f=void 0===r.desc?"":r.desc),I.beforeShowDay&&t.isFunction(I.beforeShowDay)&&x.push(I.beforeShowDay(g)),D&&(m+="<tr>",D=!1,I.weeks&&(m+="<th>"+u+"</th>")),m+='<td data-date="'+l+'" data-month="'+A+'" data-year="'+c+'" class="xdsoft_date xdsoft_day_of_week'+g.getDay()+" "+x.join(" ")+'" title="'+f+'"><div>'+l+"</div></td>",g.getDay()===I.dayOfWeekStartPrev&&(m+="</tr>",D=!0),g.setDate(l+1)}m+="</tbody></table>",H.html(m),W.find(".xdsoft_label span").eq(0).text(I.i18n[a].months[O.currentTime.getMonth()]),W.find(".xdsoft_label span").eq(1).text(O.currentTime.getFullYear()+I.yearOffset),M="",A="";var C=0;if(!1!==I.minTime){var S=O.strtotime(I.minTime);C=60*S.getHours()+S.getMinutes()}var P=1440;if(!1!==I.maxTime){S=O.strtotime(I.maxTime);P=60*S.getHours()+S.getMinutes()}if(!1!==I.minDateTime){S=O.strToDateTime(I.minDateTime);if(i.formatDate(O.currentTime,I.formatDate)===i.formatDate(S,I.formatDate))(A=60*S.getHours()+S.getMinutes())>C&&(C=A)}if(!1!==I.maxDateTime){var A;S=O.strToDateTime(I.maxDateTime);if(i.formatDate(O.currentTime,I.formatDate)===i.formatDate(S,I.formatDate))(A=60*S.getHours()+S.getMinutes())<P&&(P=A)}if(d=function(n,a){var o,r=O.now(),s=I.allowTimes&&t.isArray(I.allowTimes)&&I.allowTimes.length;r.setHours(n),n=parseInt(r.getHours(),10),r.setMinutes(a),a=parseInt(r.getMinutes(),10),x=[];var l=60*n+a;(e.is("[disabled]")||l>=P||l<C)&&x.push("xdsoft_disabled"),(o=new Date(O.currentTime)).setHours(parseInt(O.currentTime.getHours(),10)),s||o.setMinutes(Math[I.roundTime](O.currentTime.getMinutes()/I.step)*I.step),(I.initTime||I.defaultSelect||j.data("changed"))&&o.getHours()===parseInt(n,10)&&(!s&&I.step>59||o.getMinutes()===parseInt(a,10))&&(I.defaultSelect||j.data("changed")?x.push("xdsoft_current"):I.initTime&&x.push("xdsoft_init_time")),parseInt(y.getHours(),10)===parseInt(n,10)&&parseInt(y.getMinutes(),10)===parseInt(a,10)&&x.push("xdsoft_today"),M+='<div class="xdsoft_time '+x.join(" ")+'" data-hour="'+n+'" data-minute="'+a+'">'+i.formatDate(r,I.formatTime)+"</div>"},I.allowTimes&&t.isArray(I.allowTimes)&&I.allowTimes.length)for(v=0;v<I.allowTimes.length;v+=1)d(O.strtotime(I.allowTimes[v]).getHours(),A=O.strtotime(I.allowTimes[v]).getMinutes());else for(v=0,o=0;v<(I.hours12?12:24);v+=1)for(o=0;o<60;o+=I.step){var E=60*v+o;E<C||(E>=P||d((v<10?"0":"")+v,A=(o<10?"0":"")+o))}for(L.html(M),n="",v=parseInt(I.yearStart,10);v<=parseInt(I.yearEnd,10);v+=1)n+='<div class="xdsoft_option '+(O.currentTime.getFullYear()===v?"xdsoft_current":"")+'" data-value="'+v+'">'+(v+I.yearOffset)+"</div>";for(U.children().eq(0).html(n),v=parseInt(I.monthStart,10),n="";v<=parseInt(I.monthEnd,10);v+=1)n+='<div class="xdsoft_option '+(O.currentTime.getMonth()===v?"xdsoft_current":"")+'" data-value="'+v+'">'+I.i18n[a].months[v]+"</div>";$.children().eq(0).html(n),t(j).trigger("generate.xdsoft")},10),r.stopPropagation()}).on("afterOpen.xdsoft",function(){var t,e,i,n;I.timepicker&&(L.find(".xdsoft_current").length?t=".xdsoft_current":L.find(".xdsoft_init_time").length&&(t=".xdsoft_init_time"),t?(e=Y[0].clientHeight,(i=L[0].offsetHeight)-e<(n=L.find(t).index()*I.timeHeightInTimePicker+1)&&(n=i-e),Y.trigger("scroll_element.xdsoft_scroller",[parseInt(n,10)/(i-e)])):Y.trigger("scroll_element.xdsoft_scroller",[0]))}),r=0,H.on("touchend click.xdsoft","td",function(i){i.stopPropagation(),r+=1;var n=t(this),a=O.currentTime;if(null==a&&(O.currentTime=O.now(),a=O.currentTime),n.hasClass("xdsoft_disabled"))return!1;a.setDate(1),a.setFullYear(n.data("year")),a.setMonth(n.data("month")),a.setDate(n.data("date")),j.trigger("select.xdsoft",[a]),e.val(O.str()),I.onSelectDate&&t.isFunction(I.onSelectDate)&&I.onSelectDate.call(j,O.currentTime,j.data("input"),i),j.data("changed",!0),j.trigger("xchange.xdsoft"),j.trigger("changedatetime.xdsoft"),(r>1||!0===I.closeOnDateSelect||!1===I.closeOnDateSelect&&!I.timepicker)&&!I.inline&&j.trigger("close.xdsoft"),setTimeout(function(){r=0},200)}),L.on("touchstart","div",function(t){this.touchMoved=!1}).on("touchmove","div",Q).on("touchend click.xdsoft","div",function(e){if(!this.touchMoved){e.stopPropagation();var i=t(this),n=O.currentTime;if(null==n&&(O.currentTime=O.now(),n=O.currentTime),i.hasClass("xdsoft_disabled"))return!1;n.setHours(i.data("hour")),n.setMinutes(i.data("minute")),j.trigger("select.xdsoft",[n]),j.data("input").val(O.str()),I.onSelectTime&&t.isFunction(I.onSelectTime)&&I.onSelectTime.call(j,O.currentTime,j.data("input"),e),j.data("changed",!0),j.trigger("xchange.xdsoft"),j.trigger("changedatetime.xdsoft"),!0!==I.inline&&!0===I.closeOnTimeSelect&&j.trigger("close.xdsoft")}}),F.on("mousewheel.xdsoft",function(t){return!I.scrollMonth||(t.deltaY<0?O.nextMonth():O.prevMonth(),!1)}),e.on("mousewheel.xdsoft",function(t){return!I.scrollInput||(!I.datepicker&&I.timepicker?((s=L.find(".xdsoft_current").length?L.find(".xdsoft_current").eq(0).index():0)+t.deltaY>=0&&s+t.deltaY<L.children().length&&(s+=t.deltaY),L.children().eq(s).length&&L.children().eq(s).trigger("mousedown"),!1):I.datepicker&&!I.timepicker?(F.trigger(t,[t.deltaY,t.deltaX,t.deltaY]),e.val&&e.val(O.str()),j.trigger("changedatetime.xdsoft"),!1):void 0)}),j.on("changedatetime.xdsoft",function(e){if(I.onChangeDateTime&&t.isFunction(I.onChangeDateTime)){var i=j.data("input");I.onChangeDateTime.call(j,O.currentTime,i,e),delete I.value,i.trigger("change")}}).on("generate.xdsoft",function(){I.onGenerate&&t.isFunction(I.onGenerate)&&I.onGenerate.call(j,O.currentTime,j.data("input")),B&&(j.trigger("afterOpen.xdsoft"),B=!1)}).on("click.xdsoft",function(t){t.stopPropagation()}),s=0,E=function(t,e){do{if(!(t=t.parentNode)||!1===e(t))break}while("HTML"!==t.nodeName)},l=function(){var e,i,n,a,o,r,s,l,c,u,h,d,f;if(e=(l=j.data("input")).offset(),i=l[0],u="top",n=e.top+i.offsetHeight-1,a=e.left,o="absolute",c=t(I.contentWindow).width(),d=t(I.contentWindow).height(),f=t(I.contentWindow).scrollTop(),I.ownerDocument.documentElement.clientWidth-e.left<F.parent().outerWidth(!0)){var p=F.parent().outerWidth(!0)-i.offsetWidth;a-=p}"rtl"===l.parent().css("direction")&&(a-=j.outerWidth()-l.outerWidth()),I.fixed?(n-=f,a-=t(I.contentWindow).scrollLeft(),o="fixed"):(s=!1,E(i,function(t){return null!==t&&("fixed"===I.contentWindow.getComputedStyle(t).getPropertyValue("position")?(s=!0,!1):void 0)}),s?(o="fixed",n+j.outerHeight()>d+f?(u="bottom",n=d+f-e.top):n-=f):n+j[0].offsetHeight>d+f&&(n=e.top-j[0].offsetHeight+1),n<0&&(n=0),a+i.offsetWidth>c&&(a=c-i.offsetWidth)),r=j[0],E(r,function(t){if("relative"===I.contentWindow.getComputedStyle(t).getPropertyValue("position")&&c>=t.offsetWidth)return a-=(c-t.offsetWidth)/2,!1}),(h={position:o,left:a,top:"",bottom:""})[u]=n,j.css(h)},j.on("open.xdsoft",function(e){var i=!0;I.onShow&&t.isFunction(I.onShow)&&(i=I.onShow.call(j,O.currentTime,j.data("input"),e)),!1!==i&&(j.show(),l(),t(I.contentWindow).off("resize.xdsoft",l).on("resize.xdsoft",l),I.closeOnWithoutClick&&t([I.ownerDocument.body,I.contentWindow]).on("touchstart mousedown.xdsoft",function e(){j.trigger("close.xdsoft"),t([I.ownerDocument.body,I.contentWindow]).off("touchstart mousedown.xdsoft",e)}))}).on("close.xdsoft",function(e){var i=!0;W.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),I.onClose&&t.isFunction(I.onClose)&&(i=I.onClose.call(j,O.currentTime,j.data("input"),e)),!1===i||I.opened||I.inline||j.hide(),e.stopPropagation()}).on("toggle.xdsoft",function(){j.is(":visible")?j.trigger("close.xdsoft"):j.trigger("open.xdsoft")}).data("input",e),K=0,j.data("xdsoft_datetime",O),j.setOptions(I),O.setCurrentTime(q()),e.data("xdsoft_datetimepicker",j).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){e.is(":disabled")||e.data("xdsoft_datetimepicker").is(":visible")&&I.closeOnInputClick||I.openOnFocus&&(clearTimeout(K),K=setTimeout(function(){e.is(":disabled")||(B=!0,O.setCurrentTime(q(),!0),I.mask&&J(I),j.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(e){var i,n=e.which;return-1!==[g].indexOf(n)&&I.enterLikeTab?(i=t("input:visible,textarea:visible,button:visible,a:visible"),j.trigger("close.xdsoft"),i.eq(i.index(this)+1).focus(),!1):-1!==[x].indexOf(n)?(j.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){j.trigger("close.xdsoft")})},s=function(e){var i=e.data("xdsoft_datetimepicker");i&&(i.data("xdsoft_datetime",null),i.remove(),e.data("xdsoft_datetimepicker",null).off(".xdsoft"),t(I.contentWindow).off("resize.xdsoft"),t([I.contentWindow,I.ownerDocument.body]).off("mousedown.xdsoft touchstart"),e.unmousewheel&&e.unmousewheel())},t(I.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(t){t.keyCode===p&&(A=!0)}).on("keyup.xdsoftctrl",function(t){t.keyCode===p&&(A=!1)}),this.each(function(){var e,a=t(this).data("xdsoft_datetimepicker");if(a){if("string"===t.type(n))switch(n){case"show":t(this).select().focus(),a.trigger("open.xdsoft");break;case"hide":a.trigger("close.xdsoft");break;case"toggle":a.trigger("toggle.xdsoft");break;case"destroy":s(t(this));break;case"reset":this.value=this.defaultValue,this.value&&a.data("xdsoft_datetime").isValidDate(i.parseDate(this.value,I.format))||a.data("changed",!1),a.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":a.data("input").trigger("blur.xdsoft");break;default:a[n]&&t.isFunction(a[n])&&(l=a[n](o))}else a.setOptions(n);return 0}"string"!==t.type(n)&&(!I.lazyInit||I.open||I.inline?r(t(this)):(e=t(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function t(){e.is(":disabled")||e.data("xdsoft_datetimepicker")||(clearTimeout(O),O=setTimeout(function(){e.data("xdsoft_datetimepicker")||r(e),e.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",t).trigger("open.xdsoft")},100))}))}),l},t.fn.datetimepicker.defaults=e};!function(t){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(datetimepickerFactory),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(t){var e,i,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=Array.prototype.slice;if(t.event.fixHooks)for(var r=n.length;r;)t.event.fixHooks[n[--r]]=t.event.mouseHooks;var s=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=a.length;e;)this.addEventListener(a[--e],l,!1);else this.onmousewheel=l;t.data(this,"mousewheel-line-height",s.getLineHeight(this)),t.data(this,"mousewheel-page-height",s.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=a.length;e;)this.removeEventListener(a[--e],l,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),n=i["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(n){var a,r=n||window.event,l=o.call(arguments,1),h=0,d=0,f=0,p=0,m=0;if((n=t.event.fix(r)).type="mousewheel","detail"in r&&(f=-1*r.detail),"wheelDelta"in r&&(f=r.wheelDelta),"wheelDeltaY"in r&&(f=r.wheelDeltaY),"wheelDeltaX"in r&&(d=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(d=-1*f,f=0),h=0===f?d:f,"deltaY"in r&&(h=f=-1*r.deltaY),"deltaX"in r&&(d=r.deltaX,0===f&&(h=-1*d)),0!==f||0!==d){if(1===r.deltaMode){var g=t.data(this,"mousewheel-line-height");h*=g,f*=g,d*=g}else if(2===r.deltaMode){var v=t.data(this,"mousewheel-page-height");h*=v,f*=v,d*=v}if(a=Math.max(Math.abs(f),Math.abs(d)),(!i||a<i)&&(i=a,u(r,a)&&(i/=40)),u(r,a)&&(h/=40,d/=40,f/=40),h=Math[h>=1?"floor":"ceil"](h/i),d=Math[d>=1?"floor":"ceil"](d/i),f=Math[f>=1?"floor":"ceil"](f/i),s.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();p=n.clientX-y.left,m=n.clientY-y.top}return n.deltaX=d,n.deltaY=f,n.deltaFactor=i,n.offsetX=p,n.offsetY=m,n.deltaMode=0,l.unshift(n,h,d,f),e&&clearTimeout(e),e=setTimeout(c,200),(t.event.dispatch||t.event.handle).apply(this,l)}}function c(){i=null}function u(t,e){return s.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}),function(){"use strict";function t(t){t.fn._fadeIn=t.fn.fadeIn;var e=t.noop||function(){},i=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),a=(document.documentMode,t.isFunction(document.createElement("div").style.setExpression));t.blockUI=function(t){s(window,t)},t.unblockUI=function(t){l(window,t)},t.growlUI=function(e,i,n,a){var o=t('<div class="growlUI"></div>');e&&o.append("<h1>"+e+"</h1>"),i&&o.append("<h2>"+i+"</h2>"),void 0===n&&(n=3e3);var r=function(e){e=e||{},t.blockUI({message:o,fadeIn:void 0!==e.fadeIn?e.fadeIn:700,fadeOut:void 0!==e.fadeOut?e.fadeOut:1e3,timeout:void 0!==e.timeout?e.timeout:n,centerY:!1,showOverlay:!1,onUnblock:a,css:t.blockUI.defaults.growlCSS})};r();o.css("opacity");o.mouseover(function(){r({fadeIn:0,timeout:3e4});var e=t(".blockMsg");e.stop(),e.fadeTo(300,1)}).mouseout(function(){t(".blockMsg").fadeOut(1e3)})},t.fn.block=function(e){if(this[0]===window)return t.blockUI(e),this;var i=t.extend({},t.blockUI.defaults,e||{});return this.each(function(){var e=t(this);i.ignoreIfBlocked&&e.data("blockUI.isBlocked")||e.unblock({fadeOut:0})}),this.each(function(){"static"==t.css(this,"position")&&(this.style.position="relative",t(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,e)})},t.fn.unblock=function(e){return this[0]===window?(t.unblockUI(e),this):this.each(function(){l(this,e)})},t.blockUI.version=2.7,t.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var o=null,r=[];function s(s,c){var h,p,m=s==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=t.extend({},t.blockUI.defaults,c||{})).ignoreIfBlocked||!t(s).data("blockUI.isBlocked")){if(c.overlayCSS=t.extend({},t.blockUI.defaults.overlayCSS,c.overlayCSS||{}),h=t.extend({},t.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),p=t.extend({},t.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,m&&o&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var v=g.jquery?g[0]:g,y={};t(s).data("blockUI.history",y),y.el=v,y.parent=v.parentNode,y.display=v.style.display,y.position=v.style.position,y.parent&&y.parent.removeChild(v)}t(s).data("blockUI.onUnblock",c.onUnblock);var _,b,w,k,x=c.baseZ;_=i||c.forceIframe?t('<iframe class="blockUI" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):t('<div class="blockUI" style="display:none"></div>'),b=c.theme?t('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x+++';display:none"></div>'):t('<div class="blockUI blockOverlay" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&m?(k='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',c.title&&(k+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),k+='<div class="ui-widget-content ui-dialog-content"></div>',k+="</div>"):c.theme?(k='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',c.title&&(k+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),k+='<div class="ui-widget-content ui-dialog-content"></div>',k+="</div>"):k=m?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',w=t(k),g&&(c.theme?(w.css(p),w.addClass("ui-widget-content")):w.css(h)),c.theme||b.css(c.overlayCSS),b.css("position",m?"fixed":"absolute"),(i||c.forceIframe)&&_.css("opacity",0);var D=[_,b,w],M=t(m?"body":s);t.each(D,function(){this.appendTo(M)}),c.theme&&c.draggable&&t.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var T=a&&(!t.support.boxModel||t("object,embed",m?null:s).length>0);if(n||T){if(m&&c.allowBodyStretch&&t.support.boxModel&&t("html,body").css("height","100%"),(n||!t.support.boxModel)&&!m)var C=f(s,"borderTopWidth"),S=f(s,"borderLeftWidth"),P=C?"(0 - "+C+")":0,A=S?"(0 - "+S+")":0;t.each(D,function(t,e){var i=e[0].style;if(i.position="absolute",t<2)m?i.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):i.setExpression("height",'this.parentNode.offsetHeight + "px"'),m?i.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):i.setExpression("width",'this.parentNode.offsetWidth + "px"'),A&&i.setExpression("left",A),P&&i.setExpression("top",P);else if(c.centerY)m&&i.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),i.marginTop=0;else if(!c.centerY&&m){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';i.setExpression("top",n)}})}if(g&&(c.theme?w.find(".ui-widget-content").append(g):w.append(g),(g.jquery||g.nodeType)&&t(g).show()),(i||c.forceIframe)&&c.showOverlay&&_.show(),c.fadeIn){var I=c.onBlock?c.onBlock:e,O=c.showOverlay&&!g?I:e,E=g?I:e;c.showOverlay&&b._fadeIn(c.fadeIn,O),g&&w._fadeIn(c.fadeIn,E)}else c.showOverlay&&b.show(),g&&w.show(),c.onBlock&&c.onBlock.bind(w)();if(u(1,s,c),m?(o=w[0],r=t(c.focusableElements,o),c.focusInput&&setTimeout(d,20)):function(t,e,i){var n=t.parentNode,a=t.style,o=(n.offsetWidth-t.offsetWidth)/2-f(n,"borderLeftWidth"),r=(n.offsetHeight-t.offsetHeight)/2-f(n,"borderTopWidth");e&&(a.left=o>0?o+"px":"0");i&&(a.top=r>0?r+"px":"0")}(w[0],c.centerX,c.centerY),c.timeout){var j=setTimeout(function(){m?t.unblockUI(c):t(s).unblock(c)},c.timeout);t(s).data("blockUI.timeout",j)}}}function l(e,i){var n,a,s=e==window,l=t(e),h=l.data("blockUI.history"),d=l.data("blockUI.timeout");d&&(clearTimeout(d),l.removeData("blockUI.timeout")),i=t.extend({},t.blockUI.defaults,i||{}),u(0,e,i),null===i.onUnblock&&(i.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),a=s?t("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),i.cursorReset&&(a.length>1&&(a[1].style.cursor=i.cursorReset),a.length>2&&(a[2].style.cursor=i.cursorReset)),s&&(o=r=null),i.fadeOut?(n=a.length,a.stop().fadeOut(i.fadeOut,function(){0==--n&&c(a,h,i,e)})):c(a,h,i,e)}function c(e,i,n,a){var o=t(a);if(!o.data("blockUI.isBlocked")){e.each(function(t,e){this.parentNode&&this.parentNode.removeChild(this)}),i&&i.el&&(i.el.style.display=i.display,i.el.style.position=i.position,i.el.style.cursor="default",i.parent&&i.parent.appendChild(i.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(a,n);var r=t(document.body),s=r.width(),l=r[0].style.width;r.width(s-1).width(s),r[0].style.width=l}}function u(e,i,n){var a=i==window,r=t(i);if((e||(!a||o)&&(a||r.data("blockUI.isBlocked")))&&(r.data("blockUI.isBlocked",e),a&&n.bindEvents&&(!e||n.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";e?t(document).bind(s,n,h):t(document).unbind(s,h)}}function h(e){if("keydown"===e.type&&e.keyCode&&9==e.keyCode&&o&&e.data.constrainTabKey){var i=r,n=!e.shiftKey&&e.target===i[i.length-1],a=e.shiftKey&&e.target===i[0];if(n||a)return setTimeout(function(){d(a)},10),!1}var s=e.data,l=t(e.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(e),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function d(t){if(r){var e=r[!0===t?r.length-1:0];e&&e.focus()}}function f(e,i){return parseInt(t.css(e,i),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],t):t(jQuery)}(),function(t,e){"function"==typeof define&&define.amd?define(["jQuery"],e):"object"==typeof exports?e(require("jQuery")):e(t.jQuery)}(this,function(t){var e=function(){var t={},e=new RegExp("{{([^}]+)}}","g");return t.parse=function(t){for(var i={inpts:{},chars:{}},n=function(t){for(var i,n=[];i=e.exec(t);)n.push(i);return n}(t),a=t.length,o=0,r=0,s=0,l=function(t){for(var e=t.length,n=0;n<e;n++)i.inpts[r]=t.charAt(n),r++;o++,s+=t.length+4-1};s<a;s++)o<n.length&&s===n[o].index?l(n[o][1]):i.chars[s-4*o]=t.charAt(s);return i.mLength=s-4*o,i},t}(),i=function(){var t={};"undefined"!=typeof navigator&&navigator.userAgent;return t.extend=function(t){for(var e=1;e<arguments.length;e++)for(var i in arguments[e])t[i]=arguments[e][i];return t},t.addChars=function(t,e,i){return t.substr(0,i)+e+t.substr(i,t.length)},t.removeChars=function(t,e,i){return t.substr(0,e)+t.substr(i,t.length)},t.isBetween=function(t,e){return e.sort(function(t,e){return t-e}),t>e[0]&&t<e[1]},t.addListener=function(t,e,i){return void 0!==t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent("on"+e,i)},t.preventDefault=function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1},t.getClip=function(t){return t.clipboardData?t.clipboardData.getData("Text"):window.clipboardData?window.clipboardData.getData("Text"):void 0},t.getMatchingKey=function(t,e,i){for(var n in i){var a=i[n];if(t===a.which&&e===a.keyCode)return n}},t.isDelKeyDown=function(e,i){return t.getMatchingKey(e,i,{backspace:{which:8,keyCode:8},delete:{which:46,keyCode:46}})},t.isDelKeyPress=function(e,i){return t.getMatchingKey(e,i,{backspace:{which:8,keyCode:8,shiftKey:!1},delete:{which:0,keyCode:46}})},t.isSpecialKeyPress=function(e,i){return t.getMatchingKey(e,i,{tab:{which:0,keyCode:9},enter:{which:13,keyCode:13},end:{which:0,keyCode:35},home:{which:0,keyCode:36},leftarrow:{which:0,keyCode:37},uparrow:{which:0,keyCode:38},rightarrow:{which:0,keyCode:39},downarrow:{which:0,keyCode:40},F5:{which:116,keyCode:116}})},t.isModifier=function(t){return t.ctrlKey||t.altKey||t.metaKey},t.forEach=function(t,e,i){if(t.hasOwnProperty("length"))for(var n=0,a=t.length;n<a&&!1!==e.call(i,t[n],n,t);n++);else for(var o in t)if(t.hasOwnProperty(o)&&!1===e.call(i,t[o],o,t))break},t}(),n=function(t,e,i){var n={persistent:!1,repeat:!1,placeholder:" "},a={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/};function o(e,a){var o=this;if(o.el=e,!o.el)throw new TypeError("Must provide an existing element");if(o.opts=i.extend({},n,a),void 0!==o.opts.pattern&&(o.opts.patterns=o._specFromSinglePattern(o.opts.pattern),delete o.opts.pattern),void 0===o.opts.patterns)throw new TypeError("Must provide a pattern or array of patterns");o.patternMatcher=t(o.opts.patterns),o._updatePattern(),o.hldrs={},o.focus=0,i.addListener(o.el,"keydown",function(t){o._keyDown(t)}),i.addListener(o.el,"keypress",function(t){o._keyPress(t)}),i.addListener(o.el,"paste",function(t){o._paste(t)}),o.opts.persistent&&(o._processKey("",!1),o.el.blur(),i.addListener(o.el,"focus",function(t){o._focus(t)}),i.addListener(o.el,"click",function(t){o._focus(t)}),i.addListener(o.el,"touchstart",function(t){o._focus(t)}))}return o.addInptType=function(t,e){a[t]=e},o.prototype.resetPattern=function(i){this.opts.patterns=i?this._specFromSinglePattern(i):this.opts.patterns,this.sel=e.get(this.el),this.val=this.el.value,this.delta=0,this._removeChars(),this.patternMatcher=t(this.opts.patterns);var n=this.patternMatcher.getPattern(this.val);this.mLength=n.mLength,this.chars=n.chars,this.inpts=n.inpts,this._processKey("",!1,!0)},o.prototype._updatePattern=function(){var t=this.patternMatcher.getPattern(this.val);t&&(this.mLength=t.mLength,this.chars=t.chars,this.inpts=t.inpts)},o.prototype._keyDown=function(t){var e=t.which||t.keyCode;if(e&&i.isDelKeyDown(t.which,t.keyCode))return this._processKey(null,e),i.preventDefault(t)},o.prototype._keyPress=function(t){var e,n;if(e=t.which||t.keyCode,n=i.isSpecialKeyPress(t.which,t.keyCode),!i.isDelKeyPress(t.which,t.keyCode)&&!n&&!i.isModifier(t))return this._processKey(String.fromCharCode(e),!1),i.preventDefault(t)},o.prototype._paste=function(t){return this._processKey(i.getClip(t),!1),i.preventDefault(t)},o.prototype._focus=function(){var t=this;setTimeout(function(){var i=e.get(t.el),n=i.end>t.focus,a=0===i.end;(n||a)&&e.set(t.el,t.focus)},0)},o.prototype._processKey=function(t,n,a){if(this.sel=e.get(this.el),this.val=this.el.value,this.delta=0,this.sel.begin!==this.sel.end)this.delta=-1*Math.abs(this.sel.begin-this.sel.end),this.val=i.removeChars(this.val,this.sel.begin,this.sel.end);else if(n&&46===n)this._delete();else if(n&&this.sel.begin-1>=0)this.val=i.removeChars(this.val,this.sel.end-1,this.sel.end),this.delta-=1;else if(n)return!0;n||(this.val=i.addChars(this.val,t,this.sel.begin),this.delta+=t.length),this._formatValue(a)},o.prototype._delete=function(){for(;this.chars[this.sel.begin];)this._nextPos();this.sel.begin<this.val.length&&(this._nextPos(),this.val=i.removeChars(this.val,this.sel.end-1,this.sel.end),this.delta=-1)},o.prototype._nextPos=function(){this.sel.end++,this.sel.begin++},o.prototype._formatValue=function(t){this.newPos=this.sel.end+this.delta,this._removeChars(),this._updatePattern(),this._validateInpts(),this._addChars(),this.el.value=this.val.substr(0,this.mLength),void 0!==t&&!1!==t||e.set(this.el,this.newPos)},o.prototype._removeChars=function(){this.sel.end>this.focus&&(this.delta+=this.sel.end-this.focus);for(var t=0,e=0;e<=this.mLength;e++){var n,a=this.chars[e],o=this.hldrs[e],r=e+t;r=e>=this.sel.begin?r+this.delta:r,n=this.val.charAt(r),(a&&a===n||o&&o===n)&&(this.val=i.removeChars(this.val,r,r+1),t--)}this.hldrs={},this.focus=this.val.length},o.prototype._validateInpts=function(){for(var t=0;t<this.val.length;t++){var e=this.inpts[t],n=!a[e],o=!n&&!a[e].test(this.val.charAt(t)),r=this.inpts[t];(n||o)&&r&&(this.val=i.removeChars(this.val,t,t+1),this.focusStart--,this.newPos--,this.delta--,t--)}},o.prototype._addChars=function(){if(this.opts.persistent){for(var t=0;t<=this.mLength;t++)this.val.charAt(t)||(this.val=i.addChars(this.val,this.opts.placeholder,t),this.hldrs[t]=this.opts.placeholder),this._addChar(t);for(;this.chars[this.focus];)this.focus++}else for(var e=0;e<=this.val.length;e++){if(this.delta<=0&&e===this.focus)return!0;this._addChar(e)}},o.prototype._addChar=function(t){var e=this.chars[t];if(!e)return!0;i.isBetween(t,[this.sel.begin-1,this.newPos+1])&&(this.newPos++,this.delta++),t<=this.focus&&this.focus++,this.hldrs[t]&&(delete this.hldrs[t],this.hldrs[t+1]=this.opts.placeholder),this.val=i.addChars(this.val,e,t)},o.prototype._specFromSinglePattern=function(t){return[{"*":t}]},o}(function(t,e){var i=function(t){return"*"===t?/.*/:new RegExp(t)};return function(n){var a=[],o=[];return e.forEach(n,function(n){e.forEach(n,function(e,n){var r=t.parse(e),s=i(n);return a.push(s),o.push(r),!1})}),{getPattern:function(t){var i;return e.forEach(a,function(e,n){if(e.test(t))return i=n,!1}),void 0===i?null:o[i]},patterns:o,matchers:a}}}(e,i),function(){var t={get:function(t){if("number"==typeof t.selectionStart)return{begin:t.selectionStart,end:t.selectionEnd};var e=document.selection.createRange();if(e&&e.parentElement()===t){var i=t.createTextRange(),n=t.createTextRange(),a=t.value.length;return i.moveToBookmark(e.getBookmark()),n.collapse(!1),i.compareEndPoints("StartToEnd",n)>-1?{begin:a,end:a}:{begin:-i.moveStart("character",-a),end:-i.moveEnd("character",-a)}}return{begin:0,end:0}},set:function(t,e){if("object"!=typeof e&&(e={begin:e,end:e}),t.setSelectionRange)t.focus(),t.setSelectionRange(e.begin,e.end);else if(t.createTextRange){var i=t.createTextRange();i.collapse(!0),i.moveEnd("character",e.end),i.moveStart("character",e.begin),i.select()}}};return t}(),i);$.fn.formatter=function(t){return"object"==typeof t&&this.each(function(){$.data(this,"plugin_formatter")||$.data(this,"plugin_formatter",new n(this,t))}),this.resetPattern=function(t){return this.each(function(){var e=$.data(this,"plugin_formatter");e&&e.resetPattern(t)}),this},this},$.fn.formatter.addInptType=function(t,e){n.addInptType(t,e)}}),function(t,e){var i,n=t.fn.domManip,a="_tmplitem",o=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,r={},s={},l={key:0,data:{}},c=0,u=0,h=[];function d(e,i,n,a){var o={data:a||0===a||!1===a?a:i?i.data:{},_wrap:i?i._wrap:null,tmpl:null,parent:i||null,nodes:[],calls:_,nest:b,wrap:w,html:k,update:x};return e&&t.extend(o,e,{nodes:[],parent:i}),n&&(o.tmpl=n,o._ctnt=o._ctnt||o.tmpl(t,o),o.key=++c,(h.length?s:r)[c]=o),o}function f(e,i,n){var o,r=n?t.map(n,function(t){return"string"==typeof t?e.key?t.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+a+'="'+e.key+'" $2'):t:f(t,e,t._ctnt)}):e;return i?r:((r=r.join("")).replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(e,i,n,a){y(o=t(n).get()),i&&(o=p(i).concat(o)),a&&(o=o.concat(p(a)))}),o||p(r))}function p(e){var i=document.createElement("div");return i.innerHTML=e,t.makeArray(i.childNodes)}function m(e){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+t.trim(e).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(e,i,n,a,o,r,s){var l,c,u,h=t.tmpl.tag[n];if(!h)throw"Unknown template tag: "+n;return l=h._default||[],r&&!/\w$/.test(o)&&(o+=r,r=""),o?(o=v(o),s=s?","+v(s)+")":r?")":"",c=r?o.indexOf(".")>-1?o+v(r):"("+o+").call($item"+s:o,u=r?c:"(typeof("+o+")==='function'?("+o+").call($item):("+o+"))"):u=c=l.$1||"null",a=v(a),"');"+h[i?"close":"open"].split("$notnull_1").join(o?"typeof("+o+")!=='undefined' && ("+o+")!=null":"true").split("$1a").join(u).split("$1").join(c).split("$2").join(a||l.$2||"")+"__.push('"})+"');}return __;")}function g(e,i){e._wrap=f(e,!0,t.isArray(i)?i:[o.test(i)?i:t(i).html()]).join("")}function v(t){return t?t.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function y(e){var i,n,o,l,h,f="_"+u,p={};for(o=0,l=e.length;o<l;o++)if(1===(i=e[o]).nodeType){for(h=(n=i.getElementsByTagName("*")).length-1;h>=0;h--)m(n[h]);m(i)}function m(e){var i,n,o,l,h=e;if(l=e.getAttribute(a)){for(;h.parentNode&&1===(h=h.parentNode).nodeType&&!(i=h.getAttribute(a)););i!==l&&(h=h.parentNode?11===h.nodeType?0:h.getAttribute(a)||0:0,(o=r[l])||((o=d(o=s[l],r[h]||s[h])).key=++c,r[c]=o),u&&m(l)),e.removeAttribute(a)}else u&&(o=t.data(e,"tmplItem"))&&(m(o.key),r[o.key]=o,h=(h=t.data(e.parentNode,"tmplItem"))?h.key:0);if(o){for(n=o;n&&n.key!=h;)n.nodes.push(e),n=n.parent;delete o._ctnt,delete o._wrap,t.data(e,"tmplItem",o)}function m(t){o=p[t+=f]=p[t]||d(o,r[o.parent.key+f]||o.parent)}}}function _(t,e,i,n){if(!t)return h.pop();h.push({_:t,tmpl:e,item:this,data:i,options:n})}function b(e,i,n){return t.tmpl(t.template(e),i,n,this)}function w(e,i){var n=e.options||{};return n.wrapped=i,t.tmpl(t.template(e.tmpl),e.data,n,e.item)}function k(e,i){var n=this._wrap;return t.map(t(t.isArray(n)?n.join(""):n).filter(e||"*"),function(t){return i?t.innerText||t.textContent:t.outerHTML||(e=t,(n=document.createElement("div")).appendChild(e.cloneNode(!0)),n.innerHTML);var e,n})}function x(){var e=this.nodes;t.tmpl(null,null,null,this).insertBefore(e[0]),t(e).remove()}t.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,n){t.fn[e]=function(a){var o,s,l,c,h=[],d=t(a),f=1===this.length&&this[0].parentNode;if(i=r||{},f&&11===f.nodeType&&1===f.childNodes.length&&1===d.length)d[n](this[0]),h=this;else{for(s=0,l=d.length;s<l;s++)u=s,o=(s>0?this.clone(!0):this).get(),t(d[s])[n](o),h=h.concat(o);u=0,h=this.pushStack(h,e,d.selector)}return c=i,i=null,t.tmpl.complete(c),h}}),t.fn.extend({tmpl:function(e,i,n){return t.tmpl(this[0],e,i,n)},tmplItem:function(){return t.tmplItem(this[0])},template:function(e){return t.template(e,this[0])},domManip:function(e,a,o,s){if(e[0]&&t.isArray(e[0])){for(var l,c=t.makeArray(arguments),h=e[0],d=h.length,f=0;f<d&&!(l=t.data(h[f++],"tmplItem")););l&&u&&(c[2]=function(e){t.tmpl.afterManip(this,e,o)}),n.apply(this,c)}else n.apply(this,arguments);return u=0,i||t.tmpl.complete(r),this}}),t.extend({tmpl:function(e,i,n,a){var o,c=!a;if(c)a=l,e=t.template[e]||t.template(null,e),s={};else if(!e)return e=a.tmpl,r[a.key]=a,a.nodes=[],a.wrapped&&g(a,a.wrapped),t(f(a,null,a.tmpl(t,a)));return e?("function"==typeof i&&(i=i.call(a||{})),n&&n.wrapped&&g(n,n.wrapped),o=t.isArray(i)?t.map(i,function(t){return t?d(n,a,e,t):null}):[d(n,a,e,i)],c?t(f(a,null,o)):o):[]},tmplItem:function(e){var i;for(e instanceof t&&(e=e[0]);e&&1===e.nodeType&&!(i=t.data(e,"tmplItem"))&&(e=e.parentNode););return i||l},template:function(e,i){return i?("string"==typeof i?i=m(i):i instanceof t&&(i=i[0]||{}),i.nodeType&&(i=t.data(i,"tmpl")||t.data(i,"tmpl",m(i.innerHTML))),"string"==typeof e?t.template[e]=i:i):e?"string"!=typeof e?t.template(null,e):t.template[e]||t.template(null,o.test(e)?e:t(e)):null},encode:function(t){return(""+t).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}}),t.extend(t.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},if:{open:"if(($notnull_1) && $1a){",close:"}"},else:{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(t){r={}},afterManip:function(e,i,n){var a=11===i.nodeType?t.makeArray(i.childNodes):1===i.nodeType?[i]:[];n.call(e,i),y(a),u++}})}(jQuery),APP.init=function(){APP.initAjaxDefaultSetting(),APP.initMenu(),APP.initAx5(),APP.initPlugins(),APP.initCheckboxAll()},APP.initAjaxDefaultSetting=function(){$(document).ajaxError(function(t,e,i){var n="알수없는 오류가 발생하였습니다.";void 0!==e.responseJSON&&void 0!==e.responseJSON.message?n=e.responseJSON.message:500==e.status?n="서버 코드 오류가 발생하였습니다.\n관리자에게 문의하세요":401==e.status&&(n="해당 명령을 실행할 권한이 없습니다."),toastr.error(n,"오류 발생")}).ajaxStart(function(){$.blockUI({css:{width:"25px",top:"49%",left:"49%",border:"0px none",backgroundColor:"transparent",cursor:"wait"},message:'<img src="/assets/images/common/ajax-loader.gif" alt="로딩중">',baseZ:1e4,overlayCSS:{opacity:0}})}).ajaxComplete(function(){$.unblockUI()})},APP.initMenu=function(){$("#nav .main-navigation li").each(function(){$(this).data("active")==menuActive&&($(this).addClass("active"),$(this).parents("li").addClass("active"))})},APP.initPlugins=function(){$.datepicker._updateDatepicker_original=$.datepicker._updateDatepicker,$.datepicker._updateDatepicker=function(t){$.datepicker._updateDatepicker_original(t);var e=this._get(t,"afterShow");e&&e.apply(t.input?t.input[0]:null)},$.datepicker.regional.ko={closeText:"닫기",prevText:"이전달",nextText:"다음달",currentText:"오늘",monthNames:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthNamesShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayNames:["일","월","화","수","목","금","토"],dayNamesShort:["일","월","화","수","목","금","토"],dayNamesMin:["일","월","화","수","목","금","토"],weekHeader:"Wk",dateFormat:"yy-mm-dd",firstDay:0,isRTL:!1,showMonthAfterYear:!0,changeMonth:!0,changeYear:!0,yearSuffix:"",afterShow:function(){$(".ui-datepicker-prev").empty().append('<i class="far fa-chevron-left"></i>'),$(".ui-datepicker-next").empty().append('<i class="far fa-chevron-right"></i>')}},$.datepicker.setDefaults($.datepicker.regional.ko),$('[data-toggle="datepicker"]').datepicker(),$("body").on("click",'[data-toggle="datepicker"]',function(){$(this).hasClass("hasDatepicker")||($(this).datepicker(),$(this).datepicker("show"))})},APP.initCheckboxAll=function(){$("[data-checkbox]").click(function(){var t=$(this),e=t.data("checkbox-all")&&"true"==t.data("checkbox-all").toString(),i=t.data("checkbox"),n=t.prop("checked"),a=e?t:$('[data-checkbox="'+i+'"][data-checkbox-all="true"]');e?$('[data-checkbox="'+i+'"]').prop("checked",n):a.prop("checked",$('[data-checkbox="'+i+'"]').not('[data-checkbox-all="true"]').length==$('[data-checkbox="'+i+'"]:checked').not('[data-checkbox-all="true"]').length)})},APP.initAx5=function(){APP.MASK=new ax5.ui.mask({zIndex:1e3}),APP.MASK2=new ax5.ui.mask({zIndex:2e3}),APP.modal=new ax5.ui.modal({absolute:!0,iframeLoadingMsg:'<i class="far fa-spinner"></i>'}),APP.modal2=new ax5.ui.modal({absolute:!0,iframeLoadingMsg:'<i class="far fa-spinner"></i>'}),APP.toast=new ax5.ui.toast({containerPosition:"top-right",closeIcon:'<i class="far fa-times"></i>'})},$(function(){APP.init()}),function(t){"use strict";var e=".dropdown-backdrop",i='[data-toggle="dropdown"]',n=function(e){t(e).on("click.bs.dropdown",this.toggle)};function a(e){var i=e.attr("data-target");i||(i=(i=e.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function o(n){n&&3===n.which||(t(e).remove(),t(i).each(function(){var e=t(this),i=a(e),o={relatedTarget:this};i.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(i[0],n.target)||(i.trigger(n=t.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(e.attr("aria-expanded","false"),i.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}n.VERSION="3.3.7",n.prototype.toggle=function(e){var i=t(this);if(!i.is(".disabled, :disabled")){var n=a(i),r=n.hasClass("open");if(o(),!r){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",o);var s={relatedTarget:this};if(n.trigger(e=t.Event("show.bs.dropdown",s)),e.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},n.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var n=t(this);if(e.preventDefault(),e.stopPropagation(),!n.is(".disabled, :disabled")){var o=a(n),r=o.hasClass("open");if(!r&&27!=e.which||r&&27==e.which)return 27==e.which&&o.find(i).trigger("focus"),n.trigger("click");var s=o.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(e.target);38==e.which&&l>0&&l--,40==e.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var r=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var i=t(this),a=i.data("bs.dropdown");a||i.data("bs.dropdown",a=new n(this)),"string"==typeof e&&a[e].call(i)})},t.fn.dropdown.Constructor=n,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=r,this},t(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",i,n.prototype.toggle).on("keydown.bs.dropdown.data-api",i,n.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",n.prototype.keydown)}(jQuery),APP.MODAL=function(){var t={width:400,height:400,position:{left:"center",top:"middle"}},e=$.extend(!0,{},t,{iframeLoadingMsg:"",iframe:{method:"get",url:"#"},closeToEsc:!0,onStateChanged:function(){"open"===this.state?APP.MASK.open():"close"===this.state&&APP.MASK.close()},animateTime:100,zIndex:1001,absolute:!0,fullScreen:!1,header:{title:"새로운 윈도우",btns:{close:{label:'<i class="far fa-times"></i>',onClick:function(){APP.MODAL.callback()}}}}});return{open:function(t){t=$.extend(!0,{},e,t),$(document.body).addClass("modalOpened"),this.modalCallback=t.callback,this.modalSendData=t.sendData,APP.modal.open(t)},css:function(e){e=$.extend(!0,{},t,e),APP.modal.css(e)},align:function(t){APP.modal.align(t)},close:function(t){APP.modal.close(),setTimeout(function(){$(document.body).removeClass("modalOpened")},500)},minimize:function(){APP.modal.minimize()},maximize:function(){APP.modal.maximize()},callback:function(t){this.modalCallback&&this.modalCallback(t),this.close(t)},modalCallback:{},getData:function(){if(this.modalSendData)return this.modalSendData()}}}(),APP.MODAL2=function(){var t={width:400,height:400,position:{left:"center",top:"middle"}},e=$.extend(!0,{},t,{iframeLoadingMsg:"",iframe:{method:"get",url:"#"},closeToEsc:!0,onStateChanged:function(){"open"===this.state?APP.MASK2.open():"close"===this.state&&APP.MASK2.close()},animateTime:100,zIndex:2001,absolute:!0,fullScreen:!1,header:{title:"새로운 윈도우",btns:{close:{label:'<i class="far fa-times"></i>',onClick:function(){APP.MODAL2.callback()}}}}});return{open:function(t){t=$.extend(!0,{},e,t),$(document.body).addClass("modalOpened"),this.modalCallback=t.callback,this.modalSendData=t.sendData,APP.modal2.open(t)},css:function(e){e=$.extend(!0,{},t,e),APP.modal2.css(e)},align:function(t){APP.modal2.align(t)},close:function(t){APP.modal2.close(),setTimeout(function(){$(document.body).removeClass("modalOpened")},500)},minimize:function(){APP.modal2.minimize()},maximize:function(){APP.modal2.maximize()},callback:function(t){this.modalCallback&&this.modalCallback(t),this.close(t)},modalCallback:{},getData:function(){if(this.modalSendData)return this.modalSendData()}}}(),APP.TOAST={confirm:function(t){APP.toast.push({theme:"default",icon:'<i class="far fa-bell"></i>',msg:t})},error:function(t){APP.toast.push({theme:"danger",icon:'<i class="far fa-exclamation-circle"></i>',msg:t})},success:function(t){APP.toast.push({theme:"success",icon:'<i class="far fa-check-circle"></i>',msg:t})}},APP.BOARD.keyCheck=function(t){return""==t?"게시판 고유키를 입력하세요":APP.REGEX.uniqueID.test(t)?!APP.BOARD.existCheck(t)||"이미 존재하는 키 입니다.":"게시판 고유키는 영어 소문자로 시작하는 3~20 글자로 영어와 숫자만 사용가능합니다."},APP.BOARD.existCheck=function(t){var e=null;return $.ajax({url:base_url+"/ajax/board/info",type:"get",async:!1,cache:!1,data:{brd_key:t,is_raw:!0},success:function(t){e=t}}),e},APP.BOARD.CATEGORY.form=function(t,e,i){e=void 0!==e&&e>=0?e:null,i=void 0!==i&&i?i:null;return(t=void 0!==t&&t?t:null)?parseInt(e)<0?(alert("부모 카테고리가 선택되지 않았습니다."),!1):void APP.MODAL.open({width:400,height:200,header:{title:i?"카테고리 정보 수정":"카테고리 추가"},callback:function(){parent.location.reload()},iframe:{method:"get",url:"/admin/board/category_form",param:{brd_key:t,bca_parent:e,bca_idx:i}}}):(alert("게시판이 지정되지 않았습니다."),!1)},APP.BOARD.CATEGORY.remove=function(t){if(APP.BOARD.CATEGORY.count(t)>0)return alert("해당 카테고리의 하위 카테고리가 존재합니다. 하위 카테고리를 먼저 삭제해주세요"),!1;var e=APP.BOARD.CATEGORY.postCount(t);return!(e>0&&!confirm("해당 카테고리에 등록된 글이 "+e+"건이 있습니다. 삭제를 진행하시겠습니까?"))&&(!!confirm("해당 카테고리를 삭제하시겠습니까?")&&void $.ajax({url:base_url+"/ajax/board/category",type:"DELETE",cache:!1,async:!1,data:{bca_idx:t},success:function(t){t.result?(alert("카테고리 삭제에 성공하였습니다."),location.reload()):(alert("카테고리 삭제에 실패하였습니다."),location.reload())}}))},APP.BOARD.EXTRA.form=function(t,e){if(e=void 0!==e&&e?e:null,!(t=void 0!==t&&t?t:null))return alert("게시판이 지정되지 않았습니다."),!1;APP.MODAL.open({width:400,height:200,header:{title:e?"입력필드 수정":"입력필드 추가"},callback:function(){parent.location.reload()},iframe:{method:"get",url:"/admin/board/extra_form",param:{brd_key:t,bmt_idx:e}}})},APP.BOARD.EXTRA.remove=function(t,e){return t=void 0!==t&&t?t:null,(e=void 0!==e&&e?e:null)?!!confirm("해당 필드로 등록된 글이 있을경우, 해당 필드값도 같이 사라집니다. 계속 진행 하시겠습니까?")&&void $.ajax({url:base_url+"/ajax/board/extra",type:"DELETE",cache:!1,async:!1,data:{brd_key:t,bmt_idx:e},success:function(t){t.result?(alert("입력필드 삭제에 성공하였습니다."),location.reload()):(alert("입력필드 삭제에 실패하였습니다."),location.reload())}}):(alert("잘못된 접근입니다."),!1)};var faq={form:function(t,e){e="string"==typeof e||"number"==typeof e?e:null;if(!(t="string"==typeof t||"number"==typeof t?t:null))return alert("FAQ 분류 정보가 없습니다."),!1;APP.MODAL.open({width:800,height:650,header:{title:e?"FAQ 정보 수정":"FAQ 추가"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/management/faq_form",param:{fac_idx:t,faq_idx:e}}})},remove:function(t){if(void 0!==t&&t&&""!=t.trim()||alert("잘못된 접근입니다."),!confirm("해당 FAQ를 삭제하시겠습니까?"))return!1;$.ajax({url:"/ajax/faq/info",type:"delete",async:!1,cache:!1,data:{faq_idx:t},success:function(t){alert("FAQ가 삭제되었습니다."),location.reload()}})},category:{}};faq.category.form=function(t){t="string"==typeof t||"number"==typeof t?t:null;APP.MODAL.open({width:$(window).width()>600?600:$(window).width(),height:250,header:{title:t?"FAQ 분류 정보 수정":"FAQ 분류 추가"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/management/faq_category_form",param:{fac_idx:t}}})},faq.category.exist=function(t){if(void 0===t||!t||""==t.trim())return!1;var e=!1;return $.ajax({url:"/ajax/faq/category",type:"get",async:!1,cache:!1,data:{fac_idx:t},success:function(t){e=!(t&&void 0!==t.fac_idx&&t.fac_idx)}}),e},faq.category.remove=function(t){void 0!==t&&t&&""!=t.trim()||alert("잘못된 접근입니다.");var e=0;if($.ajax({url:"/ajax/faq/lists",type:"get",async:!1,cache:!1,data:{fac_idx:t},success:function(t){e=t.total_count}}),!confirm(e>0?"해당 FAQ 분류에 "+e+"개의 FAQ 목록이 등록되어 있습니다.\nFAQ 분류을 삭제할시 등록된 FAQ 목록도 같이 삭제됩니다.\n\n계속 하시겠습니까?":"FAQ 분류을 삭제하시겠습니까?"))return!1;$.ajax({url:"/ajax/faq/category",type:"delete",async:!1,cache:!1,data:{fac_idx:t},success:function(t){alert("FAQ 분류가 삭제되었습니다."),location.href=base_url+"/admin/management/faq"}})},APP.MEMBER.POP_INFO_ADMIN=function(t){if(void 0===t||!t)return alert("잘못된 접근입니다."),!1;APP.MODAL.open({width:800,height:600,header:{title:"회원 정보"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/members/info/"+t,param:{}}})},APP.MEMBER.POP_PASSWORD_ADMIN=function(t){if(void 0===t||!t)return alert("잘못된 접근입니다."),!1;APP.MODAL.open({width:800,height:600,header:{title:"비밀번호 변경"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/members/password/"+t,param:{}}})},APP.MEMBER.POP_MODIFY_ADMIN=function(t){if(void 0===t||!t)return alert("잘못된 접근입니다."),!1;APP.MODAL.open({width:800,height:600,header:{title:"회원 정보 수정"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/members/modify/"+t,param:{}}})},APP.MEMBER.POP_POINT_ADMIN=function(t){if(void 0===t||!t)return alert("잘못된 접근입니다."),!1;APP.MODAL.open({width:800,height:600,header:{title:"회원 포인트 관리"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/members/point/"+t,param:{}}})},APP.MEMBER.POP_POINT_FORM_ADMIN=function(t){(t=void 0!==t&&t?t:null)?(APP.MODAL2.callback=function(){location.reload()},APP.MODAL2.open({width:410,height:200,header:{title:"회원 포인트 추가"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/members/point_form/"+t}})):alert("잘못된 접근입니다.")},APP.MEMBER.STATUS_CHANGE=function(t,e,i){if(void 0===t||!t||void 0===e||!e||void 0===i||!i)return alert(LANG.common_msg_invalid_access),!1;var n="";if("Y"==i)n=LANG.member_status_y;else if("N"==i)n=LANG.member_status_n;else if("D"==i)n=LANG.member_status_d;else{if("H"!=i)return alert(LANG.common_msg_invalid_access),!1;n=LANG.member_status_h}confirm("해당 회원의 상태를 ["+n+"] 상태로 변경합니까?")&&$.ajax({url:"/ajax/members/status",type:"POST",async:!1,cache:!1,data:{mem_idx:t,current_status:e,change_status:i},success:function(){alert("지정한 회원의 상태를 ["+n+"] 상태로 변경하였습니다."),location.reload()}})},$(function(){});
//# sourceMappingURL=admin.min.js.map