diff --git a/dist/be.js b/dist/be.js index 193ebed..a3db111 100644 --- a/dist/be.js +++ b/dist/be.js @@ -1,4 +1,4 @@ -// [AIV] beJS Build version: 1.0.17 +// [AIV] beJS Build version: 1.0.18 var be = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache @@ -870,7 +870,7 @@ module.exports = __webpack_require__(5); var Helpers = __webpack_require__(2); var Interface = __webpack_require__(0); -var version = '1.0.17'; +var version = '1.0.18'; /** * be class @@ -2809,13 +2809,13 @@ module.exports = DOM; module.exports = { "name": "bejs", - "version": "1.0.17", + "version": "1.0.18", "description": "Simple, light-weight assertions framework for javascript", "main": "index.js", "scripts": { - "version:major": "webpack --env.major && npm run-script doc && version-to-tag.sh", - "version:minor": "webpack --env.minor && npm run-script doc && version-to-tag.sh", - "version:patch": "webpack --env.patch && npm run-script doc && version-to-tag.sh", + "version:major": "webpack --env.major && npm run-script doc && version-to-tag.sh && npm publish", + "version:minor": "webpack --env.minor && npm run-script doc && version-to-tag.sh && npm publish", + "version:patch": "webpack --env.patch && npm run-script doc && version-to-tag.sh && npm publish", "build": "webpack --progress", "doc": "jsdox -i -r -o docs src", "test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" diff --git a/dist/be.min.js b/dist/be.min.js index f64b4b2..228750d 100644 --- a/dist/be.min.js +++ b/dist/be.min.js @@ -1,2 +1,2 @@ -// [AIV] beJS Build version: 1.0.17 - var be=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(t,e,n){"use strict";var r=n(2),i={};i._isArray=function(t){return"[object Array]"===r.objectToString(t)},i.create=function(t){t.all={},t.any={},t.not={};for(var e in t)!function(e){t.hasOwnProperty(e)&&"function"==typeof t[e]&&(t.not[e]=function(){for(var n=arguments.length,r=Array(n),i=0;i0)return!1;if(0===t.length)return!0;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1}return!(o.string(t)&&t.length>0)},o.falsy=function(t){return!t},o.truthy=function(t){return!o.falsy(t)},o=i.create(o),t.exports=o},function(t,e,n){"use strict";var r={};r.getUserAgent=function(){if(arguments.length)return arguments.length<=0?void 0:arguments[0];if("undefined"==typeof window||void 0===window.navigator)throw new Error("test allowed only in browser environment");return navigator.userAgent},r.objectToString=function(t){return Object.prototype.toString.call(t)},r.getEditDistance=function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var n=[],r=void 0;for(r=0;r<=e.length;r++)n[r]=[r];var i=void 0;for(i=0;i<=t.length;i++)n[0][i]=i;for(r=1;r<=e.length;r++)for(i=1;i<=t.length;i++)e.charAt(r-1)===t.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[e.length][t.length]},t.exports=r},function(t,e,n){"use strict";var r=n(1),i=n(0),o={};o.int=function(t){return r.number(t)&&isFinite(t)&&Math.floor(t)===t},o.float=function(t){return r.number(t)&&!o.int(t)},o.nan=function(t){return isNaN(t)},o.even=function(t){return r.number(t)&&t%2==0},o.odd=function(t){return r.number(t)&&!o.even(t)},o.positive=function(t){return r.number(t)&&t>0},o.negative=function(t){return r.number(t)&&t<0},o.infinity=function(t){return o.infinityPositive(t)||o.infinityNegative(t)},o.infinityPositive=function(t){return t===Number.POSITIVE_INFINITY},o.infinityNegative=function(t){return t===Number.NEGATIVE_INFINITY},o.between=function(t,e,n){return r.all.number(t,e,n)&&t>=e&&t<=n},o.between.multiple=!1,o.greater=function(t,e){return r.all.number(t,e)&&t>e},o.greater.multiple=!1,o.lesser=function(t,e){return r.all.number(t,e)&&t1)&&(n=1);var i=t,a=e;t.length=n},a.similarity.multiple=!1,a.contains=function(t,e){return!!o.string(t)&&t.indexOf(e)>-1},a.contains.multiple=!1,a.lowerCase=function(t){return!!o.string(t)&&t.toLowerCase()===t},a.upperCase=function(t){return!!o.string(t)&&t.toUpperCase()===t},a.word=function(t){if(!o.string(t))return!1;var e=t.trim();return e.length>0&&1===e.split(" ").length},a.capitalized=function(t){if(!o.string(t))return!1;if(0===t.trim().length)return!1;var e=t.trim().split(" ");for(var n in e){var r=e[n].charAt(0);if(r!==r.toUpperCase())return!1}return!0},a.emptyString=function(t){return o.string(t)&&0===t.length},a.alphanumeric=function(t){return/^[a-z0-9]+$/i.test(t)&&o.string(t)},a.startWith=function(t,e,n){return o.falsy(n)&&(n=!1),new RegExp("^"+t,o.booleanTrue(n)?"i":"").test(e)},a.startWith.multiple=!1,a.palindrome=function(t){return!!o.string(t)&&(t=t.replace(/\s/g,"").toLowerCase())===t.split("").reverse().join("")},a.char=function(t){return o.string(t)&&1===t.length},a.space=function(t){return a.char(t)&&/\s/.test(t)},a.spaces=function(t){return/\s/.test(t)},a=i.create(a),t.exports=a},function(t,e,n){"use strict";(function(e){var r=n(2),i=n(0),o={};o.commonjsEnv=function(){return void 0!==e},o.commonjsEnv.multiple=!1,o.browserEnv=function(){return"undefined"!=typeof window},o.browserEnv.multiple=!1,o.amdEnv=function(){return n(9)},o.amdEnv.multiple=!1,o.ios=function(){for(var t=arguments.length,e=Array(t),n=0;n1)for(var n=1;ne)return!1;return n===e},o.propertyCount.multiple=!1,o=i.create(o),t.exports=o},function(t,e,n){"use strict";var r=n(1),i=n(0),o={};o.email=function(t){return/^(([^<>()\[\]\\.,;:\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,}))$/.test(t)},o.hex=function(t){return/^(?:0x)?[a-f0-9]+$/.test(t)},o.hexColor=function(t){try{return t=t.replace("#",""),o.hex(t)&&(3===t.length||6===t.length)}catch(t){return!1}},o.ipv4=function(t){return/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(t)},o.ipv6=function(t){return/^(([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))$/.test(t)},o.ip=function(t){return o.ipv4(t)||o.ipv6(t)},o.base64=function(t){return/^([0-9a-zA-Z+\/]{4})*(([0-9a-zA-Z+\/]{2}==)|([0-9a-zA-Z+\/]{3}=))?$/.test(t)},o.semVer=function(t){return/^(\d*)\.(\d*)\.(\d*)(-(\d*|\d*[a-z-][0-9a-z-]*)(\.(\d*|\d*[a-z-][0-9a-z-]*))*)?(\+[0-9a-z-]+(\.[0-9a-z-]+)*)?$/i.test(t)},o.equal=function(t,e){return r.all.number(t,e)?t===e:r.all.string(t,e)||r.all.regexp(t,e)?t+""==""+e:!!r.all.boolean(t,e)&&t===e},o.equal.multiple=!1,o.fiscalCodeIT=function(t){return/^[A-Za-z]{6}[0-9]{2}[A-Za-z]{1}[0-9]{2}[A-Za-z]{1}[0-9]{3}[A-Za-z]{1}$/.test(t)},o.macAddress=function(t){return/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(t)},o=i.create(o),t.exports=o},function(t,e,n){"use strict";var r=n(1),i=n(0),o={};o.inArray=function(t,e){if(!r.array(e))return!1;for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return!0;return!1},o.inArray.multiple=!1,o=i.create(o),t.exports=o},function(t,e,n){"use strict";var r=n(1),i=n(3),o=n(0),a={},u=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],s=["january","february","march","april","may","june","july","august","september","october","november","december"];a.dateString=function(t){var e=Date.parse(t);return!isNaN(e)},a.timeString=function(t){return/^(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)$/.test(t)},a.today=function(t){var e=new Date;return r.date(t)&&e.toDateString()===t.toDateString()},a.tomorrow=function(t){var e=new Date;return e.setDate(e.getDate()+1),r.date(t)&&e.toDateString()===t.toDateString()},a.yesterday=function(t){var e=new Date;return e.setDate(e.getDate()-1),r.date(t)&&e.toDateString()===t.toDateString()},a.past=function(t){var e=(new Date).getTime();return r.date(t)&&e>t.getTime()},a.future=function(t){return r.date(t)&&!a.past(t)},a.day=function(t,e){return r.date(t)&&r.string(e)&&u[t.getDay()]===e.toLowerCase()},a.day.multiple=!1,a.month=function(t,e){return r.date(t)&&r.string(e)&&s[t.getMonth()]===e.toLowerCase()},a.month.multiple=!1,a.year=function(t,e){return r.date(t)&&r.number(e)&&t.getFullYear()===e},a.year.multiple=!1,a.leapYear=function(t){return r.number(t)&&t%4==0&&t%100!=0||t%400==0},a.weekend=function(t){return a.day(t,"saturday")||a.day(t,"sunday")},a.weekday=function(t){return r.date(t)&&!a.weekend(t)},a.dateBetween=function(t,e,n){return r.all.date(t,e,n)&&i.between(t.getTime(),e.getTime(),n.getTime())},a.dateBetween.multiple=!1,a.dayLightSavingTime=function(t){if(!r.date(t))return!1;var e=new Date(t.getFullYear(),0,1),n=new Date(t.getFullYear(),6,1),i=Math.max(e.getTimezoneOffset(),n.getTimezoneOffset());return t.getTimezoneOffset()0)return!1;if(0===t.length)return!0;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1}return!(o.string(t)&&t.length>0)},o.falsy=function(t){return!t},o.truthy=function(t){return!o.falsy(t)},o=i.create(o),t.exports=o},function(t,e,n){"use strict";var r={};r.getUserAgent=function(){if(arguments.length)return arguments.length<=0?void 0:arguments[0];if("undefined"==typeof window||void 0===window.navigator)throw new Error("test allowed only in browser environment");return navigator.userAgent},r.objectToString=function(t){return Object.prototype.toString.call(t)},r.getEditDistance=function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var n=[],r=void 0;for(r=0;r<=e.length;r++)n[r]=[r];var i=void 0;for(i=0;i<=t.length;i++)n[0][i]=i;for(r=1;r<=e.length;r++)for(i=1;i<=t.length;i++)e.charAt(r-1)===t.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[e.length][t.length]},t.exports=r},function(t,e,n){"use strict";var r=n(1),i=n(0),o={};o.int=function(t){return r.number(t)&&isFinite(t)&&Math.floor(t)===t},o.float=function(t){return r.number(t)&&!o.int(t)},o.nan=function(t){return isNaN(t)},o.even=function(t){return r.number(t)&&t%2==0},o.odd=function(t){return r.number(t)&&!o.even(t)},o.positive=function(t){return r.number(t)&&t>0},o.negative=function(t){return r.number(t)&&t<0},o.infinity=function(t){return o.infinityPositive(t)||o.infinityNegative(t)},o.infinityPositive=function(t){return t===Number.POSITIVE_INFINITY},o.infinityNegative=function(t){return t===Number.NEGATIVE_INFINITY},o.between=function(t,e,n){return r.all.number(t,e,n)&&t>=e&&t<=n},o.between.multiple=!1,o.greater=function(t,e){return r.all.number(t,e)&&t>e},o.greater.multiple=!1,o.lesser=function(t,e){return r.all.number(t,e)&&t1)&&(n=1);var i=t,a=e;t.length=n},a.similarity.multiple=!1,a.contains=function(t,e){return!!o.string(t)&&t.indexOf(e)>-1},a.contains.multiple=!1,a.lowerCase=function(t){return!!o.string(t)&&t.toLowerCase()===t},a.upperCase=function(t){return!!o.string(t)&&t.toUpperCase()===t},a.word=function(t){if(!o.string(t))return!1;var e=t.trim();return e.length>0&&1===e.split(" ").length},a.capitalized=function(t){if(!o.string(t))return!1;if(0===t.trim().length)return!1;var e=t.trim().split(" ");for(var n in e){var r=e[n].charAt(0);if(r!==r.toUpperCase())return!1}return!0},a.emptyString=function(t){return o.string(t)&&0===t.length},a.alphanumeric=function(t){return/^[a-z0-9]+$/i.test(t)&&o.string(t)},a.startWith=function(t,e,n){return o.falsy(n)&&(n=!1),new RegExp("^"+t,o.booleanTrue(n)?"i":"").test(e)},a.startWith.multiple=!1,a.palindrome=function(t){return!!o.string(t)&&(t=t.replace(/\s/g,"").toLowerCase())===t.split("").reverse().join("")},a.char=function(t){return o.string(t)&&1===t.length},a.space=function(t){return a.char(t)&&/\s/.test(t)},a.spaces=function(t){return/\s/.test(t)},a=i.create(a),t.exports=a},function(t,e,n){"use strict";(function(e){var r=n(2),i=n(0),o={};o.commonjsEnv=function(){return void 0!==e},o.commonjsEnv.multiple=!1,o.browserEnv=function(){return"undefined"!=typeof window},o.browserEnv.multiple=!1,o.amdEnv=function(){return n(9)},o.amdEnv.multiple=!1,o.ios=function(){for(var t=arguments.length,e=Array(t),n=0;n1)for(var n=1;ne)return!1;return n===e},o.propertyCount.multiple=!1,o=i.create(o),t.exports=o},function(t,e,n){"use strict";var r=n(1),i=n(0),o={};o.email=function(t){return/^(([^<>()\[\]\\.,;:\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,}))$/.test(t)},o.hex=function(t){return/^(?:0x)?[a-f0-9]+$/.test(t)},o.hexColor=function(t){try{return t=t.replace("#",""),o.hex(t)&&(3===t.length||6===t.length)}catch(t){return!1}},o.ipv4=function(t){return/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(t)},o.ipv6=function(t){return/^(([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))$/.test(t)},o.ip=function(t){return o.ipv4(t)||o.ipv6(t)},o.base64=function(t){return/^([0-9a-zA-Z+\/]{4})*(([0-9a-zA-Z+\/]{2}==)|([0-9a-zA-Z+\/]{3}=))?$/.test(t)},o.semVer=function(t){return/^(\d*)\.(\d*)\.(\d*)(-(\d*|\d*[a-z-][0-9a-z-]*)(\.(\d*|\d*[a-z-][0-9a-z-]*))*)?(\+[0-9a-z-]+(\.[0-9a-z-]+)*)?$/i.test(t)},o.equal=function(t,e){return r.all.number(t,e)?t===e:r.all.string(t,e)||r.all.regexp(t,e)?t+""==""+e:!!r.all.boolean(t,e)&&t===e},o.equal.multiple=!1,o.fiscalCodeIT=function(t){return/^[A-Za-z]{6}[0-9]{2}[A-Za-z]{1}[0-9]{2}[A-Za-z]{1}[0-9]{3}[A-Za-z]{1}$/.test(t)},o.macAddress=function(t){return/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(t)},o=i.create(o),t.exports=o},function(t,e,n){"use strict";var r=n(1),i=n(0),o={};o.inArray=function(t,e){if(!r.array(e))return!1;for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return!0;return!1},o.inArray.multiple=!1,o=i.create(o),t.exports=o},function(t,e,n){"use strict";var r=n(1),i=n(3),o=n(0),a={},u=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],s=["january","february","march","april","may","june","july","august","september","october","november","december"];a.dateString=function(t){var e=Date.parse(t);return!isNaN(e)},a.timeString=function(t){return/^(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)$/.test(t)},a.today=function(t){var e=new Date;return r.date(t)&&e.toDateString()===t.toDateString()},a.tomorrow=function(t){var e=new Date;return e.setDate(e.getDate()+1),r.date(t)&&e.toDateString()===t.toDateString()},a.yesterday=function(t){var e=new Date;return e.setDate(e.getDate()-1),r.date(t)&&e.toDateString()===t.toDateString()},a.past=function(t){var e=(new Date).getTime();return r.date(t)&&e>t.getTime()},a.future=function(t){return r.date(t)&&!a.past(t)},a.day=function(t,e){return r.date(t)&&r.string(e)&&u[t.getDay()]===e.toLowerCase()},a.day.multiple=!1,a.month=function(t,e){return r.date(t)&&r.string(e)&&s[t.getMonth()]===e.toLowerCase()},a.month.multiple=!1,a.year=function(t,e){return r.date(t)&&r.number(e)&&t.getFullYear()===e},a.year.multiple=!1,a.leapYear=function(t){return r.number(t)&&t%4==0&&t%100!=0||t%400==0},a.weekend=function(t){return a.day(t,"saturday")||a.day(t,"sunday")},a.weekday=function(t){return r.date(t)&&!a.weekend(t)},a.dateBetween=function(t,e,n){return r.all.date(t,e,n)&&i.between(t.getTime(),e.getTime(),n.getTime())},a.dateBetween.multiple=!1,a.dayLightSavingTime=function(t){if(!r.date(t))return!1;var e=new Date(t.getFullYear(),0,1),n=new Date(t.getFullYear(),6,1),i=Math.max(e.getTimezoneOffset(),n.getTimezoneOffset());return t.getTimezoneOffset()