"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};(function(){var e=this,t=this,n=t?t.document:null,r=(t?t.document.documentElement:null,/^(["'](\\.|[^"\\\n\r])*?["']|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/),i=/^-ms-/,o=/[\-_]([\da-z])/gi,a=/([A-Z])/g,u=/\./,s=/[-|+]?[\D]/gi,f=/\D/gi,c=new RegExp("([0-9])([0-9][0-9][0-9][,.])"),l=/&/g,d=/=/,h=/[ ]+/g,p={},g=void 0,m=void 0;p.guid=1,p.getGuid=function(){return p.guid++},p.info=g=function(){function e(e,r){return e={href:t.location.href,param:t.location.search,referrer:n.referrer,pathname:t.location.pathname,hostname:t.location.hostname,port:t.location.port},r=e.href.split(/[\?#]/),e.param=e.param.replace("?",""),e.url=r[0],e.href.search("#")>-1&&(e.hashdata=m.last(r)),r=null,e.baseUrl=m.left(e.href,"?").replace(e.pathname,""),e}function r(e,t,n){return g.errorMsg&&g.errorMsg[e]?{className:e,errorCode:t,methodName:n,msg:g.errorMsg[e][t]}:{className:e,errorCode:t,methodName:n}}var i=arguments,o="1.4.126",a="",u=function(){console.error(m.toArray(i).join(":"))},s={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},f=[{label:"SUN"},{label:"MON"},{label:"TUE"},{label:"WED"},{label:"THU"},{label:"FRI"},{label:"SAT"}],c=function(e,n,r,i,o,a){return t&&t.navigator?(e=navigator.userAgent.toLowerCase(),n=e.search(/mobile/g)!=-1,a,e.search(/iphone/g)!=-1?{name:"iphone",version:0,mobile:!0}:e.search(/ipad/g)!=-1?{name:"ipad",version:0,mobile:!0}:e.search(/android/g)!=-1?(i=/(android)[ \/]([\w.]+)/.exec(e)||[],a=i[2]||"0",{name:"android",version:a,mobile:n}):(r="",i=/(opr)[ \/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],o=i[1]||"",a=i[2]||"0","msie"==o&&(o="ie"),{name:o,version:a,mobile:n})):{}}(),l=!("undefined"==typeof window||"undefined"==typeof navigator||!t.document),d=t&&/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel",h={},p=!!t&&("ontouchstart"in t||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),v=!!t&&(t.FileReader&&t.File&&t.FileList&&t.Blob);return{errorMsg:h,version:o,baseUrl:a,onerror:u,eventKeys:s,weekNames:f,browser:c,isBrowser:l,supportTouch:p,supportFileApi:v,wheelEnm:d,urlUtil:e,getError:r}}(),p.util=m=function(){function v(e,t){if(_(e))return[];var n=void 0,r=0,i=e.length,o=void 0===i||"function"==typeof e;if(o){for(n in e)if("undefined"!=typeof e[n]&&t.call(e[n],n,e[n])===!1)break}else for(;r0&&("undefined"==typeof t[r]||(i=n.call(e,i,t[--r]))!==!1););return i}function T(e,t){if(_(e))return[];var n,r,i=0,o=e.length,a=[];if(k(e))for(n in e)"undefined"!=typeof e[n]&&(r=t.call(e[n],n,e[n]))&&a.push(e[n]);else for(;i0&&(t+=","),t+=S(e[n]);t+="]"}else if(p.util.isObject(e)){t+="{";var i=[];v(e,function(e,t){i.push('"'+e+'": '+S(t))}),t+=i.join(", "),t+="}"}else t=p.util.isString(e)?'"'+e+'"':p.util.isNumber(e)?e:p.util.isUndefined(e)?"undefined":p.util.isFunction(e)?'"{Function}"':e;return t}function A(e,t){if(!t&&!r.test(e))return{error:500,msg:"syntax error"};try{return new Function("","return "+e)()}catch(n){return{error:500,msg:"syntax error"}}}function D(e){var t;return null!=e&&e==e.window?t="window":e&&1==e.nodeType?t="element":e&&11==e.nodeType?t="fragment":null===e?t="null":"undefined"==typeof e?t="undefined":"[object Object]"==we.call(e)?t="object":"[object Array]"==we.call(e)?t="array":"[object String]"==we.call(e)?t="string":"[object Number]"==we.call(e)?t="number":"[object NodeList]"==we.call(e)?t="nodelist":"function"==typeof e&&(t="function"),t}function C(e){return null!=e&&e==e.window}function N(e){return!(!e||1!=e.nodeType&&11!=e.nodeType)}function k(e){return"[object Object]"==we.call(e)}function j(e){return"[object Array]"==we.call(e)}function F(e){return"function"==typeof e}function O(e){return"[object String]"==we.call(e)}function R(e){return"[object Number]"==we.call(e)}function I(e){return!!("[object NodeList]"==we.call(e)||"undefined"!=typeof e&&e&&e[0]&&1==e[0].nodeType)}function U(e){return"undefined"==typeof e}function _(e){return"undefined"==typeof e||null===e||""===e}function P(e){return e instanceof Date&&!isNaN(e.valueOf())}function $(e){var t=!1;if(e)if(e instanceof Date&&!isNaN(e.valueOf()))t=!0;else{if(e.length>7&&re(e)instanceof Date)return!0;if(e=e.replace(/\D/g,""),e.length>7){var n=e.substr(4,2),r=e.substr(6,2);e=re(e),e.getMonth()==n-1&&e.getDate()==r&&(t=!0)}}else;return t}function B(e){if(k(e)){var t=Object.keys(e),n={};return n[t[0]]=e[t[0]],n}return j(e)?e[0]:void console.error("ax5.util.object.first","argument type error")}function L(e){if(k(e)){var t=Object.keys(e),n={};return n[t[t.length-1]]=e[t[t.length-1]],n}return j(e)?e[e.length-1]:void console.error("ax5.util.object.last","argument type error")}function z(e,t,r,i){var o;return"number"==typeof r&&(o=new Date,o.setDate(o.getDate()+r)),i=i||{},n.cookie=[escape(e),"=",escape(t),o?"; expires="+o.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}function H(e){for(var t=e+"=",r=n.cookie.split(";"),i=0,o=r.length;i-1?e.substr(0,e.indexOf(t)):"":R(t)?e.substr(0,t):""}function q(e,t){return"undefined"==typeof e||"undefined"==typeof t?"":(e=""+e,O(t)?e.lastIndexOf(t)>-1?e.substr(e.lastIndexOf(t)+1):"":R(t)?e.substr(e.length-t):"")}function V(e){return e.replace(i,"ms-").replace(o,function(e,t){return t.toUpperCase()})}function G(e){return V(e).replace(a,function(e,t){return"-"+t.toLowerCase()})}function J(e,t){var n,r,i,o=(""+e).split(u);return r=Number(o[0].replace(/,/g,""))<0||"-0"==o[0],i=0,o[0]=o[0].replace(s,""),o[1]?(o[1]=o[1].replace(f,""),i=Number(o[0]+"."+o[1])||0):i=Number(o[0])||0,n=r?-i:i,v(t,function(e,t){"round"==e&&(n=R(t)?t<0?+(Math.round(n+"e-"+Math.abs(t))+"e+"+Math.abs(t)):+(Math.round(n+"e+"+t)+"e-"+t):Math.round(n)),"floor"==e&&(n=Math.floor(n)),"ceil"==e?n=Math.ceil(n):"money"==e?n=function(e){var t=""+e;if(isNaN(t)||""==t)return"";var n=t.split(".");n[0]+=".";do n[0]=n[0].replace(c,"$1,$2");while(c.test(n[0]));return n.length>1?n.join(""):n[0].split(".")[0]}(n):"abs"==e?n=Math.abs(Number(n)):"byte"==e&&(n=function(e){e=Number(n);var t="KB",r=e/1024;return r/1024>1&&(t="MB",r/=1024),r/1024>1&&(t="GB",r/=1024),J(r,{round:1})+t}(n))}),n}function Q(e){return"undefined"!=typeof e.length?Array.prototype.slice.call(e):[]}function Z(e,t){var n=t.length,r=e.length,i=0;if("number"==typeof n)for(;i15)h.test(e)||d.test(e)?e=new Date(e):(u=e.split(/ /g),c=u[0].split(/\D/g),n=c[0],r=parseFloat(c[1]),i=parseFloat(c[2]),f=u[1]||"09:00",s=f.substring(0,5).split(":"),o=parseFloat(s[0]),a=parseFloat(s[1]),"AM"!==q(f,2)&&"PM"!==q(f,2)||(o+=12),e=ne(n,r-1,i,o,a));else if(14==e.length)l=e.replace(/\D/g,""),e=ne(l.substr(0,4),l.substr(4,2)-1,J(l.substr(6,2)),J(l.substr(8,2)),J(l.substr(10,2)),J(l.substr(12,2)));else if(e.length>7)l=e.replace(/\D/g,""),e=ne(l.substr(0,4),l.substr(4,2)-1,J(l.substr(6,2)));else if(e.length>4)l=e.replace(/\D/g,""),e=ne(l.substr(0,4),l.substr(4,2)-1,1);else{if(e.length>2)return l=e.replace(/\D/g,""),ne(l.substr(0,4),l.substr(4,2)-1,1);e=new Date}return"undefined"==typeof t||"undefined"==typeof e?e:("add"in t&&(e=function(e,t){var n=void 0,r=void 0,i=void 0,o=void 0,a=864e5;return"undefined"!=typeof t.d?e.setTime(e.getTime()+t.d*a):"undefined"!=typeof t.m?(n=e.getFullYear(),r=e.getMonth(),i=e.getDate(),n+=parseInt(t.m/12),r+=t.m%12,o=ae(n,r),o=t||n<0||w&&r>=p}function u(){var e=Date.now();return a(e)?s(e):void(m=setTimeout(u,o(e)))}function s(e){return m=void 0,x&&d?r(e):(d=h=void 0,g)}function f(){void 0!==m&&clearTimeout(m),y=0,d=v=h=m=void 0}function c(){return void 0===m?g:s(Date.now())}function l(){for(var e=Date.now(),n=a(e),o=arguments.length,s=Array(o),f=0;f\&\"]/gm,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";default:return e}}):""}function ve(e){return"[object String]"!=we.call(e)?e:e?e.replace(/(<)|(>)|(&)|(")/gm,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";case""":return'"';default:return e}}):""}function ye(e){return new function(e){this.value=e,this.toString=function(){return this.value},this.format=function(){for(var e=[],t=0,n=arguments.length;t.5?f/(2-o-u):f/(o+u),o){case e:r=(t-n)/f+(t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var i=void 0,o=void 0,u=void 0;if(e=a(e,360),t=a(t,100),n=a(n,100),0===t)i=o=u=n;else{var s=n<.5?n*(1+t):n+t-n*t,f=2*n-s;i=r(f,s,e+1/3),o=r(f,s,e),u=r(f,s,e-1/3)}return{r:255*i,g:255*o,b:255*u}}var f=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),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})$/}}(),c=function(e){var t=void 0;return(t=f.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=f.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=f.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=f.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=f.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=f.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=f.hex8.exec(e))?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),a:parseInt(t[4]/255,16),format:"hex8"}:(t=f.hex6.exec(e))?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),format:"hex"}:(t=f.hex4.exec(e))?{r:parseInt(t[1]+""+t[1],16),g:parseInt(t[2]+""+t[2],16),b:parseInt(t[3]+""+t[3],16),a:parseInt(t[4]+""+t[4],16),format:"hex8"}:!!(t=f.hex3.exec(e))&&{r:parseInt(t[1]+""+t[1],16),g:parseInt(t[2]+""+t[2],16),b:parseInt(t[3]+""+t[3],16),format:"hex"}};return new function(e){this._originalValue=e,e=c(e),this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a||1,this._format=e.format,this._hex=o(this.r)+o(this.g)+o(this.b),this.getHexValue=function(){return this._hex},this.lighten=function(e){e=0===e?0:e||10;var t=u(this.r,this.g,this.b),n={};return t.l+=e/100,t.l=Math.min(1,Math.max(0,t.l)),t.h=360*t.h,n=s(t.h,r(t.s),r(t.l)),be("rgba("+i(n.r)+", "+i(n.g)+", "+i(n.b)+", "+this.a+")")},this.darken=function(e){e=0===e?0:e||10;var t=u(this.r,this.g,this.b),n={};return t.l-=e/100,t.l=Math.min(1,Math.max(0,t.l)),t.h=360*t.h,n=s(t.h,r(t.s),r(t.l)),be("rgba("+i(n.r)+", "+i(n.g)+", "+i(n.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 e=u(this.r,this.g,this.b);return e.l=Math.min(1,Math.max(0,e.l)),e.h=360*e.h,{h:e.h,s:e.s,l:e.l}}}(e)}var we=Object.prototype.toString,xe=function(){var e={textRange:{selectAll:function(e,t,n){},arr:function(e,t,n){t.moveStart("character",n[0]),t.collapse(),t.moveEnd("character",n[1])},start:function(e,t,n){t.moveStart("character",0),t.collapse()},end:function(e,t,n){t.moveStart("character",t.text.length),t.collapse()}},range:{selectAll:function(e,t,n){t.selectNodeContents(e)},arr:function(e,t,n){k(n[0])?(t.setStart(n[0].node,n[0].offset),t.setEnd(n[1].node,n[1].offset)):(t.setStart(e.firstChild,n[0]),t.setEnd(e.firstChild,n[1]))},start:function(e,t,n){t.selectNodeContents(e),t.collapse(!0)},end:function(e,t,n){t.selectNodeContents(e),t.collapse(!1)}}};return function(t,r){var i,o,a;if(t instanceof jQuery&&(t=t.get(0)),t){if(n.body.createTextRange?(i=document.body.createTextRange(),i.moveToElementText(t),o="textRange"):window.getSelection&&(a=window.getSelection(),i=document.createRange(),o="range"),"undefined"==typeof r)e[o].selectAll.call(this,t,i,r);else if(j(r))e[o].arr.call(this,t,i,r);else for(var u in e[o])if(r==u){e[o][u].call(this,t,i,r);break}n.body.createTextRange?(i.select(),t.focus()):window.getSelection&&(t.focus(),a.removeAllRanges(),a.addRange(i))}}}();return{alert:W,each:v,map:y,search:b,reduce:M,reduceRight:E,filter:T,sum:w,avg:x,toJson:S,parseJson:A,first:B,last:L,deepCopy:ge,left:Y,right:q,getType:D,isWindow:C,isElement:N,isObject:k,isArray:j,isFunction:F,isString:O,isNumber:R,isNodelist:I,isUndefined:U,isNothing:_,setCookie:z,getCookie:H,camelCase:V,snakeCase:G,number:J,toArray:Q,merge:Z,param:K,error:te,date:re,dday:ie,daysOfMonth:ae,weeksOfMonth:oe,setDigit:ue,times:se,findParentNode:fe,cssNumber:ce,css:le,isDate:P,isDateFormat:$,stopEvent:de,selectRange:xe,debounce:he,throttle:pe,escapeHtml:me,unescapeHtml:ve,string:ye,color:be}}(),"object"===("undefined"==typeof module?"undefined":_typeof(module))&&"object"===_typeof(module.exports)?module.exports=p:e.ax5=function(){return 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(){var e=this,t=/^\s*|\s*$/g;if(Object.keys||(Object.keys=function(){var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(i){if("object"!==("undefined"==typeof i?"undefined":_typeof(i))&&("function"!=typeof i||null===i))throw new TypeError("type err");var o,a,u=[];for(o in i)e.call(i,o)&&u.push(o);if(t)for(a=0;a>>0;if("function"!=typeof e)throw TypeError();var r,i=arguments[1];for(r=0;rn));r+=1);return e.removeRule(0),a};document.querySelectorAll=function(e){return t(e,1/0)},document.querySelector=function(e){return t(e,1)[0]||null}}}(),String.prototype.trim||!function(){String.prototype.trim=function(){return this.replace(t,"")}}(),window.JSON||(window.JSON={parse:function(e){return new Function("","return "+e)()},stringify:function(){var e,t=/["]/g;return e=function(n){var r,i,o;switch(r="undefined"==typeof n?"undefined":_typeof(n)){case"string":return'"'+n.replace(t,'\\"')+'"';case"number":case"boolean":return n.toString();case"undefined":return"undefined";case"function":return'""';case"object":if(!n)return"null";if(r="",n.splice){for(i=0,o=n.length;i=9)return!1;var e=Array.prototype.splice;Array.prototype.splice=function(){var t=Array.prototype.slice.call(arguments);return"undefined"==typeof t[1]&&(t[1]=this.length-t[0]),e.apply(this,t)}}(),function(){var e=Array.prototype.slice;try{e.call(document.documentElement)}catch(t){Array.prototype.slice=function(t,n){if(n="undefined"!=typeof n?n:this.length,"[object Array]"===Object.prototype.toString.call(this))return e.call(this,t,n);var r,i,o=[],a=this.length,u=t||0;u=u>=0?u:Math.max(0,a+u);var s="number"==typeof n?Math.min(n,a):a;if(n<0&&(s=a+n),i=s-u,i>0)if(o=new Array(i),this.charAt)for(r=0;r"'\/]/g,function(e){return y[e]})}function s(t,n){function i(){if(v&&!y)for(;m.length;)delete p[m.pop()];else m=[];v=!1,y=!1}function o(e){if("string"==typeof e&&(e=e.split(w,2)),!g(e)||2!==e.length)throw new Error("Invalid tags: "+e);u=new RegExp(r(e[0])+"\\s*"),s=new RegExp("\\s*"+r(e[1])),d=new RegExp("\\s*"+r("}"+e[1]))}if(!t)return[];var u,s,d,h=[],p=[],m=[],v=!1,y=!1;o(n||e.tags);for(var T,S,A,D,C,N,k=new l(t);!k.eos();){if(T=k.pos,A=k.scanUntil(u))for(var j=0,F=A.length;j0?o[o.length-1][4]:r;break;default:i.push(t)}return r}function l(e){this.string=e,this.tail=e,this.pos=0}function d(e,t){this.view=e,this.cache={".":this.view,"@each":function(){var e=[];for(var t in this)e.push({"@key":t,"@value":this[t]});return e}},this.parent=t}function h(){this.cache={}}var p=Object.prototype.toString,g=Array.isArray||function(e){return"[object Array]"===p.call(e)},m=RegExp.prototype.test,v=/\S/,y={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},b=/\s*/,w=/\s+/,x=/\s*=/,M=/\s*\}/,E=/#|\^|\/|>|\{|&|=|!/; l.prototype.eos=function(){return""===this.tail},l.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},l.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},d.prototype.push=function(e){return new d(e,this)},d.prototype.lookup=function(e){var n,r=this.cache;if(r.hasOwnProperty(e))n=r[e];else{for(var o,a,u=this,s=!1;u;){if(e.indexOf(".")>0)for(n=u.view,o=e.split("."),a=0;null!=n&&a"===o?a=this.renderPartial(i,t,n,r):"&"===o?a=this.unescapedValue(i,t):"name"===o?a=this.escapedValue(i,t):"text"===o&&(a=this.rawValue(i)),void 0!==a&&(u+=a);return u},h.prototype.renderSection=function(e,n,r,i){function o(e){return a.render(e,n,r)}var a=this,u="",s=n.lookup(e[1]);if(s){if(g(s))for(var f=0,c=s.length;f