Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ax5core

Package Overview
Dependencies
Maintainers
1
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ax5core - npm Package Compare versions

Comparing version 0.9.7 to 0.9.8

deploy.sh

9

API-ax5-util.md

@@ -17,3 +17,3 @@ # Type

---
f
## ax5.util.is(Type)

@@ -90,2 +90,9 @@ Return argument object type is [type] result.

console.log(JSON.stringify(result));
var filObject = {a:1, s:"string", oa:{pickup:true, name:"AXISJ"}, os:{pickup:true, name:"AX5"}};
result = ax5.util.filter( filObject, function(){
return this.pickup;
});
console.log( ax5.util.toJson(result) );
// [{"pickup": , "name": "AXISJ"}, {"pickup": , "name": "AX5"}]
```

@@ -92,0 +99,0 @@

2

bower.json
{
"name": "ax5core",
"version": "0.9.7",
"version": "0.9.8",
"authors": [

@@ -5,0 +5,0 @@ "ThomasJ <tom@axisj.com>"

@@ -1,1 +0,1 @@

"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?"symbol":typeof e};(function(){var e,t,n,r=this,o=window,i=document,a=(document.documentElement,/^(["'](\\.|[^"\\\n\r])*?["']|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/),u=/^-ms-/,s=/[\-_]([\da-z])/gi,l=/([A-Z])/g,f=/\./,c=/[-|+]?[\D]/gi,p=/\D/gi,d=new RegExp("([0-9])([0-9][0-9][0-9][,.])"),h=/&/g,g=/=/,y=/[ ]+/g,m={};m.guid=1,m.getGuid=function(){return m.guid++},m.info=e=function(){function n(e,n){return e={href:o.location.href,param:o.location.search,referrer:i.referrer,pathname:o.location.pathname,hostname:o.location.hostname,port:o.location.port},n=e.href.split(/[\?#]/),e.param=e.param.replace("?",""),e.url=n[0],e.href.search("#")>-1&&(e.hashdata=t.last(n)),n=null,e.baseUrl=t.left(e.href,"?").replace(e.pathname,""),e}function r(t,n,r){return e.errorMsg&&e.errorMsg[t]?{className:t,errorCode:n,methodName:r,msg:e.errorMsg[t][n]}:{className:t,errorCode:n,methodName:r}}var a="0.0.1",u="",s=function(){console.error(t.toArray(arguments).join(":"))},l={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,t,n,r,o,i){return e=navigator.userAgent.toLowerCase(),t=-1!=e.search(/mobile/g),i,-1!=e.search(/iphone/g)?{name:"iphone",version:0,mobile:!0}:-1!=e.search(/ipad/g)?{name:"ipad",version:0,mobile:!0}:-1!=e.search(/android/g)?(r=/(android)[ \/]([\w.]+)/.exec(e)||[],i=r[2]||"0",{name:"android",version:i,mobile:t}):(n="",r=/(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=r[1]||"",i=r[2]||"0","msie"==o&&(o="ie"),{name:o,version:i,mobile:t})}(),p=!("undefined"==typeof window||"undefined"==typeof navigator||!o.document),d=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel",h={};return{errorMsg:h,version:a,baseUrl:u,onerror:s,eventKeys:l,weekNames:f,browser:c,isBrowser:p,wheelEnm:d,urlUtil:n,getError:r}}(),m.util=t=function(){function t(e,t){if(R(e))return[];var n,r=0,o=e.length,i=void 0===o||"function"==typeof e;if(i){for(n in e)if("undefined"!=typeof e[n]&&t.call(e[n],n,e[n])===!1)break}else for(;o>r&&("undefined"==typeof e[r]||t.call(e[r],r,e[r++])!==!1););return e}function b(e,t){if(R(e))return[];var n,r,o=0,i=e.length,a=[];if(j(e)){for(n in e)if("undefined"!=typeof e[n]){if(r=void 0,(r=t.call(e[n],n,e[n]))===!1)break;a.push(r)}}else for(;i>o;)if("undefined"!=typeof e[o]){if(r=void 0,(r=t.call(e[o],o,e[o++]))===!1)break;a.push(r)}return a}function v(e,t){if(R(e))return-1;var n,r=0,o=e.length;if(j(e))for(n in e){if("undefined"!=typeof e[n]&&A(t)&&t.call(e[n],n,e[n]))return n;if(e[n]==t)return n}else for(;o>r;){if("undefined"!=typeof e[r]&&A(t)&&t.call(e[r],r,e[r]))return r;if(e[r]==t)return r;r++}return-1}function w(e,t){var n,o,i;if(O(e)){for(n=0,o=e.length,i=e[n];o-1>n&&("undefined"==typeof e[n]||(i=t.call(r,i,e[++n]))!==!1););return i}if(j(e)){for(n in e)if("undefined"!=typeof e[n]&&(i=t.call(r,i,e[n]))===!1)break;return i}return console.error("argument error : ax5.util.reduce - use Array or Object"),null}function x(e,t){for(var n=e.length-1,o=e[n];n>0&&("undefined"==typeof e[n]||(o=t.call(r,o,e[--n]))!==!1););return o}function T(e,t){if(R(e))return[];var n,r,o=0,i=e.length,a=[];if(j(e))for(n in e)"undefined"!=typeof e[n]&&(r=t.call(e[n],n,e[n]))&&a.push(e[n]);else for(;i>o;)"undefined"!=typeof e[o]&&((r=t.call(e[o],o,e[o]))&&a.push(e[o]),o++);return a}function E(e){var n="";if(m.util.isArray(e)){var r=0,o=e.length;for(n+="[";o>r;r++)r>0&&(n+=","),n+=E(e[r]);n+="]"}else if(m.util.isObject(e)){n+="{";var i=[];t(e,function(e,t){i.push('"'+e+'": '+E(t))}),n+=i.join(", "),n+="}"}else m.util.isString(e)?n='"'+e+'"':m.util.isNumber(e)?n=e:m.util.isUndefined(e)?n="undefined":m.util.isFunction(e)&&(n='"{Function}"');return n}function D(e,t){if(!t&&!a.test(e))return{error:500,msg:"syntax error"};try{return new Function("","return "+e)()}catch(n){return{error:500,msg:"syntax error"}}}function N(e){var t;return null!=e&&e==e.window?t="window":e&&1==e.nodeType?t="element":e&&11==e.nodeType?t="fragment":"undefined"==typeof e?t="undefined":"[object Object]"==fe.call(e)?t="object":"[object Array]"==fe.call(e)?t="array":"[object String]"==fe.call(e)?t="string":"[object Number]"==fe.call(e)?t="number":"[object NodeList]"==fe.call(e)?t="nodelist":"function"==typeof e&&(t="function"),t}function k(e){return null!=e&&e==e.window}function S(e){return!(!e||1!=e.nodeType&&11!=e.nodeType)}function j(e){return"[object Object]"==fe.call(e)}function O(e){return"[object Array]"==fe.call(e)}function A(e){return"function"==typeof e}function M(e){return"[object String]"==fe.call(e)}function C(e){return"[object Number]"==fe.call(e)}function U(e){return"[object NodeList]"==fe.call(e)||e&&e[0]&&1==e[0].nodeType}function F(e){return"undefined"==typeof e}function R(e){return"undefined"==typeof e||null===e||""===e}function P(e){return e instanceof Date&&!isNaN(e.valueOf())}function I(e){var t=!1;if(e){if(e instanceof Date&&!isNaN(e.valueOf()))t=!0;else if(e=e.replace(/\D/g,""),e.length>7){var n=e.substr(4,2),r=e.substr(6,2);e=ee(e),e.getMonth()==n-1&&e.getDate()==r&&(t=!0)}}else;return t}function $(e){if(j(e)){var t=Object.keys(e),n={};return n[t[0]]=e[t[0]],n}return O(e)?e[0]:void console.error("ax5.util.object.first","argument type error")}function _(e){if(j(e)){var t=Object.keys(e),n={};return n[t[t.length-1]]=e[t[t.length-1]],n}return O(e)?e[e.length-1]:void console.error("ax5.util.object.last","argument type error")}function Y(e,t,n,r){var o;return"number"==typeof n&&(o=new Date,o.setDate(o.getDate()+n)),r=r||{},i.cookie=[escape(e),"=",escape(t),o?"; expires="+o.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}function z(e){for(var t=e+"=",n=i.cookie.split(";"),r=0,o=n.length;o>r;r++){for(var a=n[r];" "==a.charAt(0);)a=a.substring(1);if(-1!=a.indexOf(t))return unescape(a.substring(t.length,a.length))}return""}function B(t,r,o){for(var a,u,s=i.head||i.getElementsByTagName("head")[0],l=e.isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,f=t.length,c=[],p={},d=!1,h=n.get("script[src]"),g=(n.get("style[href]"),function(){1>f&&0==c.length&&!d&&(r&&r({}),d=!0)}),y=function(){1>f&&c.length>0&&!d&&(console.error(c),o&&o({type:"loadFail",list:c}),d=!0)},b=0,v=t.length;v>b;b++){for(var w,x,T,E=t[b],D=L(E,"."),N=!1,k=e.baseUrl+E,S="js"===D?"src":"href",j=h.length;j--;)if(h[j].getAttribute(S)===k){N=!0;break}N?(f--,g()):(w="js"===D?n.create("script",{type:"text/javascript",src:k,"data-src":k}):n.create("link",{rel:"stylesheet",type:"text/css",href:k}),x=function(e,t){e&&("load"===e.type||l.test((e.currentTarget||e.srcElement).readyState))&&(p[t]||f--,a&&clearTimeout(a),a=setTimeout(g,1))},T=function(t){f--,c.push({src:e.baseUrl+E,error:t}),u&&clearTimeout(u),u=setTimeout(y,1)},m.xhr({url:k,contentType:"",res:function(e,t){for(var r,o=!1,i=n.get("script[src]"),a=i.length;a--;)if(i[a].getAttribute(S)===k){o=!0;break}o||s.appendChild(w),w.onload=function(e){x(e,k),r&&clearTimeout(r)},r=setTimeout(function(){x({type:"load"},k)},500)},error:function(){T(this)}}))}}function W(e){return o.alert(E(e)),e}function H(e,t){return"undefined"==typeof e||"undefined"==typeof t?"":M(t)?e.indexOf(t)>-1?e.substr(0,e.indexOf(t)):e:C(t)?e.substr(0,t):""}function L(e,t){return"undefined"==typeof e||"undefined"==typeof t?"":(e=""+e,M(t)?e.lastIndexOf(t)>-1?e.substr(e.lastIndexOf(t)+1):e:C(t)?e.substr(e.length-t):"")}function V(e){return e.replace(u,"ms-").replace(s,function(e,t){return t.toUpperCase()})}function q(e){return V(e).replace(l,function(e,t){return"-"+t.toLowerCase()})}function G(e,n){var r,o=(""+e).split(f),i=Number(o[0])<0||"-0"==o[0],a=0;return o[0]=o[0].replace(c,""),o[1]?(o[1]=o[1].replace(p,""),a=Number(o[0]+"."+o[1])||0):a=Number(o[0])||0,r=i?-a:a,t(n,function(e,t){"round"==e&&(r=C(t)?0>t?+(Math.round(r+"e-"+Math.abs(t))+"e+"+Math.abs(t)):+(Math.round(r+"e+"+t)+"e-"+t):Math.round(r)),"floor"==e&&(r=Math.floor(r)),"ceil"==e?r=Math.ceil(r):"money"==e?r=function(e){var t=""+e;if(isNaN(t)||""==t)return"";var n=t.split(".");n[0]+=".";do n[0]=n[0].replace(d,"$1,$2");while(d.test(n[0]));return n.length>1?n.join(""):n[0].split(".")[0]}(r):"abs"==e?r=Math.abs(Number(r)):"byte"==e&&(r=function(e){e=Number(r);var t="KB",n=e/1024;return n/1024>1&&(t="MB",n/=1024),n/1024>1&&(t="GB",n/=1024),G(n,{round:1})+t}(r))}),r}function J(e){return"undefined"!=typeof e.length?Array.prototype.slice.call(e):[]}function K(e,t){var n=t.length,r=e.length,o=0;if("number"==typeof n)for(;n>o;o++)e[r++]=t[o];else for(;void 0!==t[o];)e[r++]=t[o++];return e.length=r,e}function X(e,n){var r;return M(e)&&"undefined"!=typeof n&&"param"==n?e:M(e)&&"undefined"!=typeof n&&"object"==n||M(e)&&"undefined"==typeof n?(r={},t(e.split(h),function(){var e=this.split(g);r[e[0]]?(M(r[e[0]])&&(r[e[0]]=[r[e[0]]]),r[e[0]].push(e[1])):r[e[0]]=e[1]}),r):(r=[],t(e,function(e,t){r.push(e+"="+escape(t))}),r.join("&"))}function Q(){m.info.onerror.apply(this,arguments)}function Z(e,t,n,r,o,i){var a,u;return u=new Date,"undefined"==typeof r&&(r=23),"undefined"==typeof o&&(o=59),a=new Date(Date.UTC(e,t,n||1,r,o,i||0)),0==t&&1==n&&a.getUTCHours()+a.getTimezoneOffset()/60<0?a.setUTCHours(0):a.setUTCHours(a.getUTCHours()+a.getTimezoneOffset()/60),a}function ee(t,n){var r,o,i,a,u,s,l,f,c,p;if(M(t))if(0==t.length)t=new Date;else if(t.length>15)s=t.split(/ /g),c=s[0].split(/\D/g),r=c[0],o=parseFloat(c[1]),i=parseFloat(c[2]),f=s[1]||"09:00",l=f.left(5).split(":"),a=parseFloat(l[0]),u=parseFloat(l[1]),("AM"===f.right(2)||"PM"===f.right(2))&&(a+=12),t=Z(r,o-1,i,a,u);else if(14==t.length)p=t.replace(/\D/g,""),t=Z(p.substr(0,4),p.substr(4,2)-1,G(p.substr(6,2)),G(p.substr(8,2)),G(p.substr(10,2)),G(p.substr(12,2)));else if(t.length>7)p=t.replace(/\D/g,""),t=Z(p.substr(0,4),p.substr(4,2)-1,G(p.substr(6,2)));else if(t.length>4)p=t.replace(/\D/g,""),t=Z(p.substr(0,4),p.substr(4,2)-1,1);else{if(t.length>2)return p=t.replace(/\D/g,""),Z(p.substr(0,4),p.substr(4,2)-1,1);t=new Date}return"undefined"==typeof n?t:(n.add&&(t=function(e,t){var n,r,o,i,a=864e5;return"undefined"!=typeof t.d?e.setTime(e.getTime()+t.d*a):"undefined"!=typeof t.m?(n=e.getFullYear(),r=e.getMonth(),o=e.getDate(),n+=parseInt(t.m/12),r+=t.m%12,i=re(n,r),o>i&&(o=i),e=new Date(n,r,o,12)):"undefined"!=typeof t.y?e.setTime(e.getTime()+365*t.y*a):e.setTime(e.getTime()+t.y*a),e}(new Date(t),n.add)),n["return"]?function(){var r,o,i,a,u,s,l,f=n["return"];r=t.getUTCFullYear(),o=oe(t.getMonth()+1,2),i=oe(t.getDate(),2),a=oe(t.getHours(),2),u=oe(t.getMinutes(),2),s=oe(t.getSeconds(),2),l=t.getDay();var c=/[^y]*(yyyy)[^y]*/gi;c.exec(f);var p=RegExp.$1,d=/[^m]*(mm)[^m]*/gi;d.exec(f);var h=RegExp.$1,g=/[^d]*(dd)[^d]*/gi;g.exec(f);var y=RegExp.$1,m=/[^h]*(hh)[^h]*/gi;m.exec(f);var b=RegExp.$1,v=/[^m]*(mi)[^i]*/gi;v.exec(f);var w=RegExp.$1,x=/[^s]*(ss)[^s]*/gi;x.exec(f);var T=RegExp.$1,E=/[^d]*(dw)[^w]*/gi;E.exec(f);var D=RegExp.$1;return"yyyy"===p&&(f=f.replace(p,L(r,p.length))),"mm"===h&&(1==h.length&&(o=t.getMonth()+1),f=f.replace(h,o)),"dd"===y&&(1==y.length&&(i=t.getDate()),f=f.replace(y,i)),"hh"===b&&(f=f.replace(b,a)),"mi"===w&&(f=f.replace(w,u)),"ss"===T&&(f=f.replace(T,s)),"dw"==D&&(f=f.replace(D,e.weekNames[l].label)),f}():t)}function te(e,t){function n(e){return Math.floor(e.getTime()/a)*a}var r,o,i=ee(e),a=864e5,u=new Date;return"undefined"==typeof t?r=G((n(i)-n(u))/a,{floor:!0}):(r=G((n(i)-n(u))/a,{floor:!0}),t.today&&(u=ee(t.today),r=G((n(i)-n(u))/a,{floor:!0})),t.thisYear&&(o=new Date(u.getFullYear(),i.getMonth(),i.getDate()),r=G((n(o)-n(u))/a,{floor:!0}),0>r&&(o=new Date(u.getFullYear()+1,i.getMonth(),i.getDate()),r=G((n(o)-n(u))/a,{floor:!0}))),t.age&&(o=new Date(u.getFullYear(),i.getMonth(),i.getDate()),r=o.getFullYear()-i.getFullYear()),r)}function ne(e){var t=ee(e);return{year:t.getFullYear(),month:t.getMonth()+1,count:parseInt(t.getDate()/7+1)}}function re(e,t){return 3==t||5==t||8==t||10==t?30:1==t?e%4==0&&e%100!=0||e%400==0?29:28:31}function oe(e,t,n,r){var o=e.toString(r||10);return ie(n||"0",t-o.length)+o}function ie(e,t){return 1>t?"":new Array(t+1).join(e)}function ae(e,t){if(e)for(;function(){var n=!0;if("undefined"==typeof t)e=e.parentNode?e.parentNode:!1;else if(A(t))n=t(e);else if(j(t))for(var r in t)if("tagname"===r){if(e.tagName.toLocaleLowerCase()!=t[r]){n=!1;break}}else if("clazz"===r||"class_name"===r){if(!("className"in e)){n=!1;break}for(var o=e.className.split(y),i=!1,a=0;a<o.length;a++)if(o[a]==t[r]){i=!0;break}n=i}else{if(!e.getAttribute){n=!1;break}if(e.getAttribute(r)!=t[r]){n=!1;break}}return!n}();){if(!e.parentNode||!e.parentNode.parentNode){e=!1;break}e=e.parentNode}return e}function ue(e){var t=/\D?(\d+)([a-zA-Z%]*)/i,n=(""+e).match(t),r=n[2]||"px";return n[1]+r}function se(e){var t;if(j(e)){t="";for(var n in e)t+=n+":"+e[n]+";";return t}if(M(e)){t={};var r=e.split(/[ ]*;[ ]*/g);return r.forEach(function(e){if(""!==(e=e.trim())){var n=e.split(/[ ]*:[ ]*/g);t[n[0]]=n[1]}}),t}}function le(e){if(!e)var e=window.event;return e.cancelBubble=!0,e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1}var fe=Object.prototype.toString;return{alert:W,each:t,map:b,search:v,reduce:w,reduceRight:x,filter:T,toJson:E,parseJson:D,first:$,last:_,left:H,right:L,getType:N,isWindow:k,isElement:S,isObject:j,isArray:O,isFunction:A,isString:M,isNumber:C,isNodelist:U,isUndefined:F,isNothing:R,setCookie:Y,getCookie:z,require:B,camelCase:V,snakeCase:q,number:G,toArray:J,merge:K,param:X,error:Q,date:ee,dday:te,daysOfMonth:re,weeksOfMonth:ne,setDigit:oe,times:ie,findParentNode:ae,cssNumber:ue,css:se,isDate:P,isDateFormat:I,stopEvent:le}}(),r.ax5=function(){return m}()}).call(window),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"},function(){var e=/^\s*|\s*$/g;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(o){if("object"!==("undefined"==typeof o?"undefined":_typeof(o))&&("function"!=typeof o||null===o))throw new TypeError("type err");var i,a,u=[];for(i in o)e.call(o,i)&&u.push(i);if(t)for(a=0;r>a;a++)e.call(o,n[a])&&u.push(n[a]);return u}}()),Array.prototype.forEach||(Array.prototype.forEach=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError();var r,o=arguments[1];for(r=0;n>r;r++)r in t&&e.call(o,t[r],r,t)}),Function.prototype.bind||(Function.prototype.bind=function(e){function t(){}if("function"!=typeof this)throw TypeError("function");var n=[].slice,r=n.call(arguments,1),o=this,i=function(){return o.apply(this instanceof t?this:e,r.concat(n.call(arguments)))};return t.prototype=o.prototype,i.prototype=new t,i}),function(){if(!document.querySelectorAll&&!document.querySelector&&document.createStyleSheet){var e=document.createStyleSheet(),t=function(t,n){var r,o=document.all,i=o.length,a=[];for(e.addRule(t,"foo:bar"),r=0;i>r&&!("bar"===o[r].currentStyle.foo&&(a.push(o[r]),a.length>n));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(e,"")}}(),window.JSON||(window.JSON={parse:function(e){return new Function("","return "+e)()},stringify:function(){var e,t=/["]/g;return e=function(n){var r,o,i;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(o=0,i=n.length;i>o;o++)r+=","+e(n[o]);return"["+r.substr(1)+"]"}for(o in n)n.hasOwnProperty(o)&&void 0!==n[o]&&"function"!=typeof n[o]&&(r+=',"'+o+'":'+e(n[o]));return"{"+r.substr(1)+"}"}}}()}),function(){if(!document.documentMode||document.documentMode>=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(e){for(var t,n,r={},o=function(){},i="memory".split(","),a="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(",");t=i.pop();)e[t]=e[t]||r;for(;n=a.pop();)e[n]=e[n]||o}(window.console||{});var t=document.getElementsByTagName("html")[0];document.getElementsByTagName("body")[0];window.innerWidth||(window.innerWidth=t.clientWidth),window.innerHeight||(window.innerHeight=t.clientHeight),window.scrollX||(window.scrollX=window.pageXOffset||t.scrollLeft),window.scrollY||(window.scrollY=window.pageYOffset||t.scrollTop)}.call(window),ax5.ui=function(e){function t(){this.config={},this.name="root",this.setConfig=function(e,t){return jQuery.extend(!0,this.config,e,!0),("undefined"==typeof t||t===!0)&&this.init(),this},this.init=function(){console.log(this.config)},this.bindWindowResize=function(e){setTimeout(function(){jQuery(window).resize(function(){this.bindWindowResize__&&clearTimeout(this.bindWindowResize__),this.bindWindowResize__=setTimeout(function(){e.call(this)}.bind(this),10)}.bind(this))}.bind(this),100)},this.stopEvent=function(e){return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0,!1},this.main=function(){}.apply(this,arguments)}return{root:t}}(ax5),function(e,t){t(e.mustache={})}(window.ax5,function(e){function t(e){return"function"==typeof e}function n(e){return g(e)?"array":"undefined"==typeof e?"undefined":_typeof(e)}function r(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"===("undefined"==typeof e?"undefined":_typeof(e))&&t in e}function i(e,t){return y.call(e,t)}function a(e){return!i(m,e)}function u(e){return String(e).replace(/[&<>"'\/]/g,function(e){return b[e]})}function s(t,n){function o(){if(m&&!b)for(;y.length;)delete h[y.pop()];else y=[];m=!1,b=!1}function i(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])),p=new RegExp("\\s*"+r("}"+e[1]))}if(!t)return[];var u,s,p,d=[],h=[],y=[],m=!1,b=!1;i(n||e.tags);for(var D,N,k,S,j,O,A=new c(t);!A.eos();){if(D=A.pos,k=A.scanUntil(u))for(var M=0,C=k.length;C>M;++M)S=k.charAt(M),a(S)?y.push(h.length):b=!0,h.push(["text",S,D,D+1]),D+=1,"\n"===S&&o();if(!A.scan(u))break;if(m=!0,N=A.scan(E)||"name",A.scan(v),"="===N?(k=A.scanUntil(x),A.scan(x),A.scanUntil(s)):"{"===N?(k=A.scanUntil(p),A.scan(T),A.scanUntil(s),N="&"):k=A.scanUntil(s),!A.scan(s))throw new Error("Unclosed tag at "+A.pos);if(j=[N,k,D,A.pos],h.push(j),"#"===N||"^"===N)d.push(j);else if("/"===N){if(O=d.pop(),!O)throw new Error('Unopened section "'+k+'" at '+D);if(O[1]!==k)throw new Error('Unclosed section "'+O[1]+'" at '+D)}else"name"===N||"{"===N||"&"===N?b=!0:"="===N&&i(k)}if(O=d.pop())throw new Error('Unclosed section "'+O[1]+'" at '+A.pos);return f(l(h))}function l(e){for(var t,n,r=[],o=0,i=e.length;i>o;++o)t=e[o],t&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(r.push(t),n=t));return r}function f(e){for(var t,n,r=[],o=r,i=[],a=0,u=e.length;u>a;++a)switch(t=e[a],t[0]){case"#":case"^":o.push(t),i.push(t),o=t[4]=[];break;case"/":n=i.pop(),n[5]=t[2],o=i.length>0?i[i.length-1][4]:r;break;default:o.push(t)}return r}function c(e){this.string=e,this.tail=e,this.pos=0}function p(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 d(){this.cache={}}var h=Object.prototype.toString,g=Array.isArray||function(e){return"[object Array]"===h.call(e)},y=RegExp.prototype.test,m=/\S/,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},v=/\s*/,w=/\s+/,x=/\s*=/,T=/\s*\}/,E=/#|\^|\/|>|\{|&|=|!/;c.prototype.eos=function(){return""===this.tail},c.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},c.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},p.prototype.push=function(e){return new p(e,this)},p.prototype.lookup=function(e){var n,r=this.cache;if(r.hasOwnProperty(e))n=r[e];else{for(var i,a,u=this,s=!1;u;){if(e.indexOf(".")>0)for(n=u.view,i=e.split("."),a=0;null!=n&&a<i.length;)a===i.length-1&&(s=o(n,i[a])),n=n[i[a++]];else n=u.view[e],s=o(u.view,e);if(s)break;u=u.parent}r[e]=n}return t(n)&&(n=n.call(this.view)),n},d.prototype.clearCache=function(){this.cache={}},d.prototype.parse=function(e,t){var n=this.cache,r=n[e];return null==r&&(r=n[e]=s(e,t)),r},d.prototype.render=function(e,t,n){var r=this.parse(e),o=t instanceof p?t:new p(t);return this.renderTokens(r,o,n,e)},d.prototype.renderTokens=function(e,t,n,r){for(var o,i,a,u="",s=0,l=e.length;l>s;++s)a=void 0,o=e[s],i=o[0],"#"===i?a=this.renderSection(o,t,n,r):"^"===i?a=this.renderInverted(o,t,n,r):">"===i?a=this.renderPartial(o,t,n,r):"&"===i?a=this.unescapedValue(o,t):"name"===i?a=this.escapedValue(o,t):"text"===i&&(a=this.rawValue(o)),void 0!==a&&(u+=a);return u},d.prototype.renderSection=function(e,n,r,o){function i(e){return a.render(e,n,r)}var a=this,u="",s=n.lookup(e[1]);if(s){if(g(s))for(var l=0,f=s.length;f>l;++l)s[l]["@i"]=l,s[l]["@first"]=0===l,u+=this.renderTokens(e[4],n.push(s[l]),r,o);else if("object"===("undefined"==typeof s?"undefined":_typeof(s))||"string"==typeof s||"number"==typeof s)u+=this.renderTokens(e[4],n.push(s),r,o);else if(t(s)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");s=s.call(n.view,o.slice(e[3],e[5]),i),null!=s&&(u+=s)}else u+=this.renderTokens(e[4],n,r,o);return u}},d.prototype.renderInverted=function(e,t,n,r){var o=t.lookup(e[1]);return!o||g(o)&&0===o.length?this.renderTokens(e[4],t,n,r):void 0},d.prototype.renderPartial=function(e,n,r){if(r){var o=t(r)?r(e[1]):r[e[1]];return null!=o?this.renderTokens(this.parse(o),n,r,o):void 0}},d.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);return null!=n?n:void 0},d.prototype.escapedValue=function(t,n){var r=n.lookup(t[1]);return null!=r?e.escape(r):void 0},d.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="2.1.3",e.tags=["{{","}}"];var D=new d;e.clearCache=function(){return D.clearCache()},e.parse=function(e,t){return D.parse(e,t)},e.render=function(e,t,r){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+n(e)+'" was given as the first argument for mustache#render(template, view, partials)');return D.render(e,t,r)},e.to_html=function(n,r,o,i){var a=e.render(n,r,o);return t(i)?void i(a):a},e.escape=u,e.Scanner=c,e.Context=p,e.Writer=d});
"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?"symbol":typeof e};(function(){var e,t,n,r=this,o=window,i=document,a=(document.documentElement,/^(["'](\\.|[^"\\\n\r])*?["']|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/),u=/^-ms-/,s=/[\-_]([\da-z])/gi,l=/([A-Z])/g,f=/\./,c=/[-|+]?[\D]/gi,p=/\D/gi,d=new RegExp("([0-9])([0-9][0-9][0-9][,.])"),h=/&/g,g=/=/,y=/[ ]+/g,m={};m.guid=1,m.getGuid=function(){return m.guid++},m.info=e=function(){function n(e,n){return e={href:o.location.href,param:o.location.search,referrer:i.referrer,pathname:o.location.pathname,hostname:o.location.hostname,port:o.location.port},n=e.href.split(/[\?#]/),e.param=e.param.replace("?",""),e.url=n[0],e.href.search("#")>-1&&(e.hashdata=t.last(n)),n=null,e.baseUrl=t.left(e.href,"?").replace(e.pathname,""),e}function r(t,n,r){return e.errorMsg&&e.errorMsg[t]?{className:t,errorCode:n,methodName:r,msg:e.errorMsg[t][n]}:{className:t,errorCode:n,methodName:r}}var a="0.0.1",u="",s=function(){console.error(t.toArray(arguments).join(":"))},l={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,t,n,r,o,i){return e=navigator.userAgent.toLowerCase(),t=-1!=e.search(/mobile/g),i,-1!=e.search(/iphone/g)?{name:"iphone",version:0,mobile:!0}:-1!=e.search(/ipad/g)?{name:"ipad",version:0,mobile:!0}:-1!=e.search(/android/g)?(r=/(android)[ \/]([\w.]+)/.exec(e)||[],i=r[2]||"0",{name:"android",version:i,mobile:t}):(n="",r=/(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=r[1]||"",i=r[2]||"0","msie"==o&&(o="ie"),{name:o,version:i,mobile:t})}(),p=!("undefined"==typeof window||"undefined"==typeof navigator||!o.document),d=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel",h={};return{errorMsg:h,version:a,baseUrl:u,onerror:s,eventKeys:l,weekNames:f,browser:c,isBrowser:p,wheelEnm:d,urlUtil:n,getError:r}}(),m.util=t=function(){function t(e,t){if(R(e))return[];var n,r=0,o=e.length,i=void 0===o||"function"==typeof e;if(i){for(n in e)if("undefined"!=typeof e[n]&&t.call(e[n],n,e[n])===!1)break}else for(;o>r&&("undefined"==typeof e[r]||t.call(e[r],r,e[r++])!==!1););return e}function b(e,t){if(R(e))return[];var n,r,o=0,i=e.length,a=[];if(j(e)){for(n in e)if("undefined"!=typeof e[n]){if(r=void 0,(r=t.call(e[n],n,e[n]))===!1)break;a.push(r)}}else for(;i>o;)if("undefined"!=typeof e[o]){if(r=void 0,(r=t.call(e[o],o,e[o++]))===!1)break;a.push(r)}return a}function v(e,t){if(R(e))return-1;var n,r=0,o=e.length;if(j(e))for(n in e){if("undefined"!=typeof e[n]&&O(t)&&t.call(e[n],n,e[n]))return n;if(e[n]==t)return n}else for(;o>r;){if("undefined"!=typeof e[r]&&O(t)&&t.call(e[r],r,e[r]))return r;if(e[r]==t)return r;r++}return-1}function w(e,t){var n,o,i;if(A(e)){for(n=0,o=e.length,i=e[n];o-1>n&&("undefined"==typeof e[n]||(i=t.call(r,i,e[++n]))!==!1););return i}if(j(e)){for(n in e)if("undefined"!=typeof e[n]&&(i=t.call(r,i,e[n]))===!1)break;return i}return console.error("argument error : ax5.util.reduce - use Array or Object"),null}function x(e,t){for(var n=e.length-1,o=e[n];n>0&&("undefined"==typeof e[n]||(o=t.call(r,o,e[--n]))!==!1););return o}function T(e,t){if(R(e))return[];var n,r,o=0,i=e.length,a=[];if(j(e))for(n in e)"undefined"!=typeof e[n]&&(r=t.call(e[n],n,e[n]))&&a.push(e[n]);else for(;i>o;)"undefined"!=typeof e[o]&&((r=t.call(e[o],o,e[o]))&&a.push(e[o]),o++);return a}function E(e){var n="";if(m.util.isArray(e)){var r=0,o=e.length;for(n+="[";o>r;r++)r>0&&(n+=","),n+=E(e[r]);n+="]"}else if(m.util.isObject(e)){n+="{";var i=[];t(e,function(e,t){i.push('"'+e+'": '+E(t))}),n+=i.join(", "),n+="}"}else m.util.isString(e)?n='"'+e+'"':m.util.isNumber(e)?n=e:m.util.isUndefined(e)?n="undefined":m.util.isFunction(e)&&(n='"{Function}"');return n}function D(e,t){if(!t&&!a.test(e))return{error:500,msg:"syntax error"};try{return new Function("","return "+e)()}catch(n){return{error:500,msg:"syntax error"}}}function k(e){var t;return null!=e&&e==e.window?t="window":e&&1==e.nodeType?t="element":e&&11==e.nodeType?t="fragment":"undefined"==typeof e?t="undefined":"[object Object]"==fe.call(e)?t="object":"[object Array]"==fe.call(e)?t="array":"[object String]"==fe.call(e)?t="string":"[object Number]"==fe.call(e)?t="number":"[object NodeList]"==fe.call(e)?t="nodelist":"function"==typeof e&&(t="function"),t}function N(e){return null!=e&&e==e.window}function S(e){return!(!e||1!=e.nodeType&&11!=e.nodeType)}function j(e){return"[object Object]"==fe.call(e)}function A(e){return"[object Array]"==fe.call(e)}function O(e){return"function"==typeof e}function M(e){return"[object String]"==fe.call(e)}function C(e){return"[object Number]"==fe.call(e)}function U(e){return"[object NodeList]"==fe.call(e)||e&&e[0]&&1==e[0].nodeType}function F(e){return"undefined"==typeof e}function R(e){return"undefined"==typeof e||null===e||""===e}function P(e){return e instanceof Date&&!isNaN(e.valueOf())}function I(e){var t=!1;if(e){if(e instanceof Date&&!isNaN(e.valueOf()))t=!0;else if(e=e.replace(/\D/g,""),e.length>7){var n=e.substr(4,2),r=e.substr(6,2);e=ee(e),e.getMonth()==n-1&&e.getDate()==r&&(t=!0)}}else;return t}function $(e){if(j(e)){var t=Object.keys(e),n={};return n[t[0]]=e[t[0]],n}return A(e)?e[0]:void console.error("ax5.util.object.first","argument type error")}function _(e){if(j(e)){var t=Object.keys(e),n={};return n[t[t.length-1]]=e[t[t.length-1]],n}return A(e)?e[e.length-1]:void console.error("ax5.util.object.last","argument type error")}function Y(e,t,n,r){var o;return"number"==typeof n&&(o=new Date,o.setDate(o.getDate()+n)),r=r||{},i.cookie=[escape(e),"=",escape(t),o?"; expires="+o.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}function z(e){for(var t=e+"=",n=i.cookie.split(";"),r=0,o=n.length;o>r;r++){for(var a=n[r];" "==a.charAt(0);)a=a.substring(1);if(-1!=a.indexOf(t))return unescape(a.substring(t.length,a.length))}return""}function B(t,r,o){for(var a,u,s=i.head||i.getElementsByTagName("head")[0],l=e.isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,f=t.length,c=[],p={},d=!1,h=n.get("script[src]"),g=(n.get("style[href]"),function(){1>f&&0==c.length&&!d&&(r&&r({}),d=!0)}),y=function(){1>f&&c.length>0&&!d&&(console.error(c),o&&o({type:"loadFail",list:c}),d=!0)},b=0,v=t.length;v>b;b++){for(var w,x,T,E=t[b],D=L(E,"."),k=!1,N=e.baseUrl+E,S="js"===D?"src":"href",j=h.length;j--;)if(h[j].getAttribute(S)===N){k=!0;break}k?(f--,g()):(w="js"===D?n.create("script",{type:"text/javascript",src:N,"data-src":N}):n.create("link",{rel:"stylesheet",type:"text/css",href:N}),x=function(e,t){e&&("load"===e.type||l.test((e.currentTarget||e.srcElement).readyState))&&(p[t]||f--,a&&clearTimeout(a),a=setTimeout(g,1))},T=function(t){f--,c.push({src:e.baseUrl+E,error:t}),u&&clearTimeout(u),u=setTimeout(y,1)},m.xhr({url:N,contentType:"",res:function(e,t){for(var r,o=!1,i=n.get("script[src]"),a=i.length;a--;)if(i[a].getAttribute(S)===N){o=!0;break}o||s.appendChild(w),w.onload=function(e){x(e,N),r&&clearTimeout(r)},r=setTimeout(function(){x({type:"load"},N)},500)},error:function(){T(this)}}))}}function W(e){return o.alert(E(e)),e}function H(e,t){return"undefined"==typeof e||"undefined"==typeof t?"":M(t)?e.indexOf(t)>-1?e.substr(0,e.indexOf(t)):e:C(t)?e.substr(0,t):""}function L(e,t){return"undefined"==typeof e||"undefined"==typeof t?"":(e=""+e,M(t)?e.lastIndexOf(t)>-1?e.substr(e.lastIndexOf(t)+1):e:C(t)?e.substr(e.length-t):"")}function V(e){return e.replace(u,"ms-").replace(s,function(e,t){return t.toUpperCase()})}function q(e){return V(e).replace(l,function(e,t){return"-"+t.toLowerCase()})}function G(e,n){var r,o=(""+e).split(f),i=Number(o[0])<0||"-0"==o[0],a=0;return o[0]=o[0].replace(c,""),o[1]?(o[1]=o[1].replace(p,""),a=Number(o[0]+"."+o[1])||0):a=Number(o[0])||0,r=i?-a:a,t(n,function(e,t){"round"==e&&(r=C(t)?0>t?+(Math.round(r+"e-"+Math.abs(t))+"e+"+Math.abs(t)):+(Math.round(r+"e+"+t)+"e-"+t):Math.round(r)),"floor"==e&&(r=Math.floor(r)),"ceil"==e?r=Math.ceil(r):"money"==e?r=function(e){var t=""+e;if(isNaN(t)||""==t)return"";var n=t.split(".");n[0]+=".";do n[0]=n[0].replace(d,"$1,$2");while(d.test(n[0]));return n.length>1?n.join(""):n[0].split(".")[0]}(r):"abs"==e?r=Math.abs(Number(r)):"byte"==e&&(r=function(e){e=Number(r);var t="KB",n=e/1024;return n/1024>1&&(t="MB",n/=1024),n/1024>1&&(t="GB",n/=1024),G(n,{round:1})+t}(r))}),r}function J(e){return"undefined"!=typeof e.length?Array.prototype.slice.call(e):[]}function K(e,t){var n=t.length,r=e.length,o=0;if("number"==typeof n)for(;n>o;o++)e[r++]=t[o];else for(;void 0!==t[o];)e[r++]=t[o++];return e.length=r,e}function X(e,n){var r;return M(e)&&"undefined"!=typeof n&&"param"==n?e:M(e)&&"undefined"!=typeof n&&"object"==n||M(e)&&"undefined"==typeof n?(r={},t(e.split(h),function(){var e=this.split(g);r[e[0]]?(M(r[e[0]])&&(r[e[0]]=[r[e[0]]]),r[e[0]].push(e[1])):r[e[0]]=e[1]}),r):(r=[],t(e,function(e,t){r.push(e+"="+escape(t))}),r.join("&"))}function Q(){m.info.onerror.apply(this,arguments)}function Z(e,t,n,r,o,i){var a,u;return u=new Date,"undefined"==typeof r&&(r=23),"undefined"==typeof o&&(o=59),a=new Date(Date.UTC(e,t,n||1,r,o,i||0)),0==t&&1==n&&a.getUTCHours()+a.getTimezoneOffset()/60<0?a.setUTCHours(0):a.setUTCHours(a.getUTCHours()+a.getTimezoneOffset()/60),a}function ee(t,n){var r,o,i,a,u,s,l,f,c,p;if(M(t))if(0==t.length)t=new Date;else if(t.length>15)s=t.split(/ /g),c=s[0].split(/\D/g),r=c[0],o=parseFloat(c[1]),i=parseFloat(c[2]),f=s[1]||"09:00",l=f.left(5).split(":"),a=parseFloat(l[0]),u=parseFloat(l[1]),("AM"===f.right(2)||"PM"===f.right(2))&&(a+=12),t=Z(r,o-1,i,a,u);else if(14==t.length)p=t.replace(/\D/g,""),t=Z(p.substr(0,4),p.substr(4,2)-1,G(p.substr(6,2)),G(p.substr(8,2)),G(p.substr(10,2)),G(p.substr(12,2)));else if(t.length>7)p=t.replace(/\D/g,""),t=Z(p.substr(0,4),p.substr(4,2)-1,G(p.substr(6,2)));else if(t.length>4)p=t.replace(/\D/g,""),t=Z(p.substr(0,4),p.substr(4,2)-1,1);else{if(t.length>2)return p=t.replace(/\D/g,""),Z(p.substr(0,4),p.substr(4,2)-1,1);t=new Date}return"undefined"==typeof n?t:(n.add&&(t=function(e,t){var n,r,o,i,a=864e5;return"undefined"!=typeof t.d?e.setTime(e.getTime()+t.d*a):"undefined"!=typeof t.m?(n=e.getFullYear(),r=e.getMonth(),o=e.getDate(),n+=parseInt(t.m/12),r+=t.m%12,i=re(n,r),o>i&&(o=i),e=new Date(n,r,o,12)):"undefined"!=typeof t.y?e.setTime(e.getTime()+365*t.y*a):e.setTime(e.getTime()+t.y*a),e}(new Date(t),n.add)),n["return"]?function(){var r,o,i,a,u,s,l,f=n["return"];r=t.getUTCFullYear(),o=oe(t.getMonth()+1,2),i=oe(t.getDate(),2),a=oe(t.getHours(),2),u=oe(t.getMinutes(),2),s=oe(t.getSeconds(),2),l=t.getDay();var c=/[^y]*(yyyy)[^y]*/gi;c.exec(f);var p=RegExp.$1,d=/[^m]*(mm)[^m]*/gi;d.exec(f);var h=RegExp.$1,g=/[^d]*(dd)[^d]*/gi;g.exec(f);var y=RegExp.$1,m=/[^h]*(hh)[^h]*/gi;m.exec(f);var b=RegExp.$1,v=/[^m]*(mi)[^i]*/gi;v.exec(f);var w=RegExp.$1,x=/[^s]*(ss)[^s]*/gi;x.exec(f);var T=RegExp.$1,E=/[^d]*(dw)[^w]*/gi;E.exec(f);var D=RegExp.$1;return"yyyy"===p&&(f=f.replace(p,L(r,p.length))),"mm"===h&&(1==h.length&&(o=t.getMonth()+1),f=f.replace(h,o)),"dd"===y&&(1==y.length&&(i=t.getDate()),f=f.replace(y,i)),"hh"===b&&(f=f.replace(b,a)),"mi"===w&&(f=f.replace(w,u)),"ss"===T&&(f=f.replace(T,s)),"dw"==D&&(f=f.replace(D,e.weekNames[l].label)),f}():t)}function te(e,t){function n(e){return Math.floor(e.getTime()/a)*a}var r,o,i=ee(e),a=864e5,u=new Date;return"undefined"==typeof t?r=G((n(i)-n(u))/a,{floor:!0}):(r=G((n(i)-n(u))/a,{floor:!0}),t.today&&(u=ee(t.today),r=G((n(i)-n(u))/a,{floor:!0})),t.thisYear&&(o=new Date(u.getFullYear(),i.getMonth(),i.getDate()),r=G((n(o)-n(u))/a,{floor:!0}),0>r&&(o=new Date(u.getFullYear()+1,i.getMonth(),i.getDate()),r=G((n(o)-n(u))/a,{floor:!0}))),t.age&&(o=new Date(u.getFullYear(),i.getMonth(),i.getDate()),r=o.getFullYear()-i.getFullYear()),r)}function ne(e){var t=ee(e);return{year:t.getFullYear(),month:t.getMonth()+1,count:parseInt(t.getDate()/7+1)}}function re(e,t){return 3==t||5==t||8==t||10==t?30:1==t?e%4==0&&e%100!=0||e%400==0?29:28:31}function oe(e,t,n,r){var o=e.toString(r||10);return ie(n||"0",t-o.length)+o}function ie(e,t){return 1>t?"":new Array(t+1).join(e)}function ae(e,t){if(e)for(;function(){var n=!0;if("undefined"==typeof t)e=e.parentNode?e.parentNode:!1;else if(O(t))n=t(e);else if(j(t))for(var r in t)if("tagname"===r){if(e.tagName.toLocaleLowerCase()!=t[r]){n=!1;break}}else if("clazz"===r||"class_name"===r){if(!("className"in e)){n=!1;break}for(var o=e.className.split(y),i=!1,a=0;a<o.length;a++)if(o[a]==t[r]){i=!0;break}n=i}else{if(!e.getAttribute){n=!1;break}if(e.getAttribute(r)!=t[r]){n=!1;break}}return!n}();){if(!e.parentNode||!e.parentNode.parentNode){e=!1;break}e=e.parentNode}return e}function ue(e){var t=/\D?(\d+)([a-zA-Z%]*)/i,n=(""+e).match(t),r=n[2]||"px";return n[1]+r}function se(e){var t;if(j(e)){t="";for(var n in e)t+=n+":"+e[n]+";";return t}if(M(e)){t={};var r=e.split(/[ ]*;[ ]*/g);return r.forEach(function(e){if(""!==(e=e.trim())){var n=e.split(/[ ]*:[ ]*/g);t[n[0]]=n[1]}}),t}}function le(e){if(!e)var e=window.event;return e.cancelBubble=!0,e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1}var fe=Object.prototype.toString;return{alert:W,each:t,map:b,search:v,reduce:w,reduceRight:x,filter:T,toJson:E,parseJson:D,first:$,last:_,left:H,right:L,getType:k,isWindow:N,isElement:S,isObject:j,isArray:A,isFunction:O,isString:M,isNumber:C,isNodelist:U,isUndefined:F,isNothing:R,setCookie:Y,getCookie:z,require:B,camelCase:V,snakeCase:q,number:G,toArray:J,merge:K,param:X,error:Q,date:ee,dday:te,daysOfMonth:re,weeksOfMonth:ne,setDigit:oe,times:ie,findParentNode:ae,cssNumber:ue,css:se,isDate:P,isDateFormat:I,stopEvent:le}}(),r.ax5=function(){return m}()}).call(window),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 content key"},function(){var e=/^\s*|\s*$/g;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(o){if("object"!==("undefined"==typeof o?"undefined":_typeof(o))&&("function"!=typeof o||null===o))throw new TypeError("type err");var i,a,u=[];for(i in o)e.call(o,i)&&u.push(i);if(t)for(a=0;r>a;a++)e.call(o,n[a])&&u.push(n[a]);return u}}()),Array.prototype.forEach||(Array.prototype.forEach=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError();var r,o=arguments[1];for(r=0;n>r;r++)r in t&&e.call(o,t[r],r,t)}),Function.prototype.bind||(Function.prototype.bind=function(e){function t(){}if("function"!=typeof this)throw TypeError("function");var n=[].slice,r=n.call(arguments,1),o=this,i=function(){return o.apply(this instanceof t?this:e,r.concat(n.call(arguments)))};return t.prototype=o.prototype,i.prototype=new t,i}),function(){if(!document.querySelectorAll&&!document.querySelector&&document.createStyleSheet){var e=document.createStyleSheet(),t=function(t,n){var r,o=document.all,i=o.length,a=[];for(e.addRule(t,"foo:bar"),r=0;i>r&&!("bar"===o[r].currentStyle.foo&&(a.push(o[r]),a.length>n));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(e,"")}}(),window.JSON||(window.JSON={parse:function(e){return new Function("","return "+e)()},stringify:function(){var e,t=/["]/g;return e=function(n){var r,o,i;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(o=0,i=n.length;i>o;o++)r+=","+e(n[o]);return"["+r.substr(1)+"]"}for(o in n)n.hasOwnProperty(o)&&void 0!==n[o]&&"function"!=typeof n[o]&&(r+=',"'+o+'":'+e(n[o]));return"{"+r.substr(1)+"}"}}}()}),function(){if(!document.documentMode||document.documentMode>=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,o,i=[],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(0>n&&(s=a+n),o=s-u,o>0)if(i=new Array(o),this.charAt)for(r=0;o>r;r++)i[r]=this.charAt(u+r);else for(r=0;o>r;r++)i[r]=this[u+r];return i}}}(),function(e){for(var t,n,r={},o=function(){},i="memory".split(","),a="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(",");t=i.pop();)e[t]=e[t]||r;for(;n=a.pop();)e[n]=e[n]||o}(window.console||{});var t=document.getElementsByTagName("html")[0];document.getElementsByTagName("body")[0];window.innerWidth||(window.innerWidth=t.clientWidth),window.innerHeight||(window.innerHeight=t.clientHeight),window.scrollX||(window.scrollX=window.pageXOffset||t.scrollLeft),window.scrollY||(window.scrollY=window.pageYOffset||t.scrollTop)}.call(window),ax5.ui=function(e){function t(){this.config={},this.name="root",this.setConfig=function(e,t){return jQuery.extend(!0,this.config,e,!0),("undefined"==typeof t||t===!0)&&this.init(),this},this.init=function(){console.log(this.config)},this.bindWindowResize=function(e){setTimeout(function(){jQuery(window).resize(function(){this.bindWindowResize__&&clearTimeout(this.bindWindowResize__),this.bindWindowResize__=setTimeout(function(){e.call(this)}.bind(this),10)}.bind(this))}.bind(this),100)},this.stopEvent=function(e){return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0,!1},this.main=function(){}.apply(this,arguments)}return{root:t}}(ax5),function(e,t){t(e.mustache={})}(window.ax5,function(e){function t(e){return"function"==typeof e}function n(e){return g(e)?"array":"undefined"==typeof e?"undefined":_typeof(e)}function r(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"===("undefined"==typeof e?"undefined":_typeof(e))&&t in e}function i(e,t){return y.call(e,t)}function a(e){return!i(m,e)}function u(e){return String(e).replace(/[&<>"'\/]/g,function(e){return b[e]})}function s(t,n){function o(){if(m&&!b)for(;y.length;)delete h[y.pop()];else y=[];m=!1,b=!1}function i(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])),p=new RegExp("\\s*"+r("}"+e[1]))}if(!t)return[];var u,s,p,d=[],h=[],y=[],m=!1,b=!1;i(n||e.tags);for(var D,k,N,S,j,A,O=new c(t);!O.eos();){if(D=O.pos,N=O.scanUntil(u))for(var M=0,C=N.length;C>M;++M)S=N.charAt(M),a(S)?y.push(h.length):b=!0,h.push(["text",S,D,D+1]),D+=1,"\n"===S&&o();if(!O.scan(u))break;if(m=!0,k=O.scan(E)||"name",O.scan(v),"="===k?(N=O.scanUntil(x),O.scan(x),O.scanUntil(s)):"{"===k?(N=O.scanUntil(p),O.scan(T),O.scanUntil(s),k="&"):N=O.scanUntil(s),!O.scan(s))throw new Error("Unclosed tag at "+O.pos);if(j=[k,N,D,O.pos],h.push(j),"#"===k||"^"===k)d.push(j);else if("/"===k){if(A=d.pop(),!A)throw new Error('Unopened section "'+N+'" at '+D);if(A[1]!==N)throw new Error('Unclosed section "'+A[1]+'" at '+D)}else"name"===k||"{"===k||"&"===k?b=!0:"="===k&&i(N)}if(A=d.pop())throw new Error('Unclosed section "'+A[1]+'" at '+O.pos);return f(l(h))}function l(e){for(var t,n,r=[],o=0,i=e.length;i>o;++o)t=e[o],t&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(r.push(t),n=t));return r}function f(e){for(var t,n,r=[],o=r,i=[],a=0,u=e.length;u>a;++a)switch(t=e[a],t[0]){case"#":case"^":o.push(t),i.push(t),o=t[4]=[];break;case"/":n=i.pop(),n[5]=t[2],o=i.length>0?i[i.length-1][4]:r;break;default:o.push(t)}return r}function c(e){this.string=e,this.tail=e,this.pos=0}function p(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 d(){this.cache={}}var h=Object.prototype.toString,g=Array.isArray||function(e){return"[object Array]"===h.call(e)},y=RegExp.prototype.test,m=/\S/,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},v=/\s*/,w=/\s+/,x=/\s*=/,T=/\s*\}/,E=/#|\^|\/|>|\{|&|=|!/;c.prototype.eos=function(){return""===this.tail},c.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},c.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},p.prototype.push=function(e){return new p(e,this)},p.prototype.lookup=function(e){var n,r=this.cache;if(r.hasOwnProperty(e))n=r[e];else{for(var i,a,u=this,s=!1;u;){if(e.indexOf(".")>0)for(n=u.view,i=e.split("."),a=0;null!=n&&a<i.length;)a===i.length-1&&(s=o(n,i[a])),n=n[i[a++]];else n=u.view[e],s=o(u.view,e);if(s)break;u=u.parent}r[e]=n}return t(n)&&(n=n.call(this.view)),n},d.prototype.clearCache=function(){this.cache={}},d.prototype.parse=function(e,t){var n=this.cache,r=n[e];return null==r&&(r=n[e]=s(e,t)),r},d.prototype.render=function(e,t,n){var r=this.parse(e),o=t instanceof p?t:new p(t);return this.renderTokens(r,o,n,e)},d.prototype.renderTokens=function(e,t,n,r){for(var o,i,a,u="",s=0,l=e.length;l>s;++s)a=void 0,o=e[s],i=o[0],"#"===i?a=this.renderSection(o,t,n,r):"^"===i?a=this.renderInverted(o,t,n,r):">"===i?a=this.renderPartial(o,t,n,r):"&"===i?a=this.unescapedValue(o,t):"name"===i?a=this.escapedValue(o,t):"text"===i&&(a=this.rawValue(o)),void 0!==a&&(u+=a);return u},d.prototype.renderSection=function(e,n,r,o){function i(e){return a.render(e,n,r)}var a=this,u="",s=n.lookup(e[1]);if(s){if(g(s))for(var l=0,f=s.length;f>l;++l)s[l]["@i"]=l,s[l]["@first"]=0===l,u+=this.renderTokens(e[4],n.push(s[l]),r,o);else if("object"===("undefined"==typeof s?"undefined":_typeof(s))||"string"==typeof s||"number"==typeof s)u+=this.renderTokens(e[4],n.push(s),r,o);else if(t(s)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");s=s.call(n.view,o.slice(e[3],e[5]),i),null!=s&&(u+=s)}else u+=this.renderTokens(e[4],n,r,o);return u}},d.prototype.renderInverted=function(e,t,n,r){var o=t.lookup(e[1]);return!o||g(o)&&0===o.length?this.renderTokens(e[4],t,n,r):void 0},d.prototype.renderPartial=function(e,n,r){if(r){var o=t(r)?r(e[1]):r[e[1]];return null!=o?this.renderTokens(this.parse(o),n,r,o):void 0}},d.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);return null!=n?n:void 0},d.prototype.escapedValue=function(t,n){var r=n.lookup(t[1]);return null!=r?e.escape(r):void 0},d.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="2.1.3",e.tags=["{{","}}"];var D=new d;e.clearCache=function(){return D.clearCache()},e.parse=function(e,t){return D.parse(e,t)},e.render=function(e,t,r){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+n(e)+'" was given as the first argument for mustache#render(template, view, partials)');return D.render(e,t,r)},e.to_html=function(n,r,o,i){var a=e.render(n,r,o);return t(i)?void i(a):a},e.escape=u,e.Scanner=c,e.Context=p,e.Writer=d});

@@ -1,21 +0,13 @@

The MIT License (MIT)
Copyright [2016] [AXISJ, Thomas Jang]
Copyright (c) AXISJ
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
http://www.apache.org/licenses/LICENSE-2.0
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{
"name": "ax5core",
"version": "0.9.7",
"version": "0.9.8",
"description": "`ax5core` is a collection of utility functions that have been designed for use in ax5ui",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -42,2 +42,9 @@ [![axisj-contributed](https://img.shields.io/badge/AXISJ.com-Contributed-green.svg)](https://github.com/axisj)

### Use CDN
```html
https://cdn.rawgit.com/ax5ui/ax5core/master/dist/ax5core.js
https://cdn.rawgit.com/ax5ui/ax5core/master/dist/ax5core.min.js
```
***
### Install by npm

@@ -73,2 +80,2 @@

If you have any questions, please refer to the following [gitHub](https://github.com/ax5ui/ax5ui-kernel)
If you have any questions, please refer to the following [gitHub](https://github.com/ax5ui/ax5ui-kernel)

@@ -1,5 +0,1 @@

/**
* Created by tom on 16. 2. 15..
*/
ax5.info.errorMsg["ax5dialog"] = {

@@ -32,2 +28,8 @@ "501": "Duplicate call error"

"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 content key"
};

@@ -175,2 +175,67 @@ // 필수 Ployfill 확장 구문

/**
* Shim for "fixing" IE's lack of support (IE < 9) for applying slice
* on host objects like NamedNodeMap, NodeList, and HTMLCollection
* (technically, since host objects have been implementation-dependent,
* at least before ES6, IE hasn't needed to work this way).
* Also works on strings, fixes IE < 9 to allow an explicit undefined
* for the 2nd argument (as in Firefox), and prevents errors when
* called on other DOM objects.
*/
(function () {
'use strict';
var _slice = Array.prototype.slice;
try {
// Can't be used with DOM elements in IE < 9
_slice.call(document.documentElement);
} catch (e) { // Fails in IE < 9
// This will work for genuine arrays, array-like objects,
// NamedNodeMap (attributes, entities, notations),
// NodeList (e.g., getElementsByTagName), HTMLCollection (e.g., childNodes),
// and will not fail on other DOM objects (as do DOM elements in IE < 9)
Array.prototype.slice = function(begin, end) {
// IE < 9 gets unhappy with an undefined end argument
end = (typeof end !== 'undefined') ? end : this.length;
// For native Array objects, we use the native slice function
if (Object.prototype.toString.call(this) === '[object Array]'){
return _slice.call(this, begin, end);
}
// For array like object we handle it ourselves.
var i, cloned = [],
size, len = this.length;
// Handle negative value for "begin"
var start = begin || 0;
start = (start >= 0) ? start : Math.max(0, len + start);
// Handle negative value for "end"
var upTo = (typeof end == 'number') ? Math.min(end, len) : len;
if (end < 0) {
upTo = len + end;
}
// Actual expected size of the slice
size = upTo - start;
if (size > 0) {
cloned = new Array(size);
if (this.charAt) {
for (i = 0; i < size; i++) {
cloned[i] = this.charAt(start + i);
}
} else {
for (i = 0; i < size; i++) {
cloned[i] = this[start + i];
}
}
}
return cloned;
};
}
}());
// Console-polyfill. MIT license. https://github.com/paulmillr/console-polyfill

@@ -177,0 +242,0 @@ // Make it safe to do console.log() always.

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc