text: 'use strict';var $$app={hasClass:function(b,c){return!!b.className.match(new RegExp('(\\s|^)'+c+'(\\s|$)'))},addClass:function(b,c){this.hasClass(b,c)||(b.className+=' '+c)},removeClass:function(b,c){if(this.hasClass(b,c)){var d=new RegExp('(\\s|^)'+c+'(\\s|$)');b.className=b.className.replace(d,' ')}},addInlineCss:function(b){var c=b,d=document.head||document.getElementsByTagName('head')[0],g=document.createElement('style');g.type='text/css',g.styleSheet?g.styleSheet.cssText=c:g.appendChild(document.createTextNode(c)),d.appendChild(g)},throttle:function(b,c){var d=null;return function(){var g=this,h=arguments;clearTimeout(d),d=window.setTimeout(function(){b.apply(g,h)},c||500)}}},$$storage={has:function(b){return!!localStorage.getItem(b)},get:function(b){return JSON.parse(localStorage.getItem(b))},set:function(b,c){localStorage.setItem(b,JSON.stringify(c))}},$$validate={isString:function(b){return!('string'!=typeof b)},isInt:function(b){return Number.isInteger(b)},isJson:function(b){try{JSON.parse(b)}catch(c){return!1}return!0},isEmpty:function(b){for(var c in b)if(b.hasOwnProperty(c))return!1;return!0},isNotEmpty:function(b){return''!==b&&null!==b&&'undefined'!=typeof b},isRequired:function(b){var c=/.*\S.*/;return!1!=c.test(b)},isDate:function(b){var c=/([123456789]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))/;return!1!=c.test(b)},isTimestamp:function(b){var c=/^\d\d\d\d-(0?[1-9]|1[0-2])-(0?[1-9]|[12][0-9]|3[01]) (00|[0-9]|1[0-9]|2[0-3]):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9])$/;return!1!=c.test(b)},isAlphanumeric:function(b){var c=/^[a-zA-Z0-9]+$/;return!1!=c.test(b)},isAlphabet:function(b){var c=/^[a-zA-Z]+$/;return!1!=c.test(b)},isDecimal:function(b){var c=/^[+-]?[0-9]+(?:\.[0-9]+)?$/;return!1!=c.test(b)},isNotLeadingZero:function(b){var c=/^[1-9][0-9]*$/;return!1!=c.test(b)},isNumeric:function(b){var c=/^[0-9]+$/;return!1!=c.test(b)},isDouble:function(b){var c=/^[+-]?[0-9]+(?:,[0-9]+)*(?:\.[0-9]+)?$/;return!1!=c.test(b)},isUsername:function(b){var c=/^[a-zA-Z0-9]{3,20}$/;return!1!=c.test(b)},isDomain:function(b){var c=/^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$/;return!1!=c.test(b)},isEmail:function(b){var c=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return!1!=c.test(b)},withRegex:function(b,c){return!1!=c.test(b)}};