text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.expects=t():e.expects=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=6)}([function(e,t,n){"use strict";function r(e){for(var t=void 0,n=void 0,r=0;r<m;){if(n=g[r],!1===(t=e(n[0],y[n[1]])))return;if(!f(t))return t;r+=1}}function u(e){return r(function(t,n){if(n(e))return t})}function i(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}function f(e){return void 0===e}function o(e){return null===e}function a(e){return e!==e}function c(e){return!a(e)&&i("Number",e)}function l(e){return i("String",e)}function s(e){return i("RegExp",e)}function d(e){return i("Date",e)}function p(e){return!0===e||!1===e||i("Boolean",e)}function v(e){return null!==e&&i("Object",e)&&!b(e)}function b(e){return i("Array",e)}function h(e){return"function"==typeof e||i("Function",e)}Object.defineProperty(t,"__esModule",{value:!0});var y={isString:l,isNumber:c,isNaN:a,isBoolean:p,isFunction:h,isUndefined:f,isObject:v,isArray:b,isNull:o,isRegExp:s,isDate:d};t.default=y,t.forEachType=r,t.typeOf=u;var g=Object.keys(y).map(function(e){return[e.slice(2).toLowerCase(),e]}),m=g.length},function(e,t,n){"use strict";function r(e,t){var n=e.length;return e=e.slice(0,t),n>e.length&&e.push("..."),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(o.hasOwnProperty(e)){var t=o[e];if(i.default.isFunction(t))return t;throw t}};var u=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(u),f=function(e){return(["a","o","i","e","u","y"].indexOf(e[0])>-1?"an ":"a ")+e},o={expects:function(e,t){var n=(0,u.typeOf)(t);throw"array"===n?t="["+r(t,5)+"]":"object"===n&&(t="{"+r(Object.keys(t),5)+"}"),"`"+t+"` ("+n+") expects to be "+f(e)},name:"first parameter must be a defined name",unique:"first parameter must be a unique name, not already defined",func:"second parameter must be a function",bool:"second parameter must return a boolean value"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n){return i.default.isString(t)?e.is(t,n):!!t}function n(e,t){return i.default.isString(e)?e:r(e,t)}function r(e,t){var r=c[e[1]];if(!i.default.isUndefined(r)){return r(n(e[0],t),n(e[2],t),t)}}function u(t){return i.default.isString(t)?e.fallback(t):f(t)}function f(e){var t=u(e[0]);return i.default.isUndefined(t)?u(e[2]):t}if(!e||!i.default.isFunction(e.typeof))throw"incorrect context of comparison";var c={"|":function(e,n,r){return t(e,r)||t(n,r)},"&":function(e,n,r){return t(e,r)&&t(n,r)}};return function t(n,u){var c=n.type,l=n.value;if("value"===c){if(i.default.isString(l))return e.filter(l,u);if(i.default.isArray(l)){if(r(l,u))return u;var s=f(l);return i.default.isUndefined(s)&&(0,o.default)("expects")(n.expression,u),s}}if("array"===c){e.filter("array",u);var d=u.length,p=0;if(l.length>1)for(var v=l.length-1;p<d;)u[p]=t(l[p]||l[v],u[p]),p+=1;else{var b=l[0];if(b.value!==a)for(;p<d;)u[p]=t(b,u[p]),p+=1}return u}if("object"===c){e.filter("object",u);var h=l.map(function(e){return e.prop}),y=h.length,g=void 0,m=0;if(h[0]===a)return u;for(;m<y;){if(g=h[m],!u.hasOwnProperty(g))return"given object doesn't have `"+g+"` property.";l[m].value!==a&&(u[g]=t(l[m],u[g])),m+=1}return u}}};var u=n(0),i=r(u),f=n(1),o=r(f),a="*"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return s.default.isString(e)&&v.hasOwnProperty(e)}function i(e,t,n){u(e)&&(0,p.default)("unique"),s.default.isFunction(t)||(0,p.default)("func");var r=t();return s.default.isBoolean(r)||(0,p.default)("bool"),v[e]={test:t.bind(null),fallback:n},this}function f(e,t){var n=u(e);if(n||t)return n;(0,p.default)("name")}function o(e,t){return f(e),s.default.isUndefined(t)?v[e].fallback:(v[e].fallback=t,this)}function a(e,t){return!!f(e,!0)&&v[e].test(t)}function c(e,t){f(e);var n=v[e];if(n.test(t))return t;var r=n.fallback;return s.default.isUndefined(r)&&(0,p.default)("expects")(e,t),r}Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),s=r(l),d=n(1),p=r(d);t.default={typeof:l.typeOf,define:i,exists:u,fallback:o,filter:c,is:a};var v={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(){var e=j(),t=_(),n=void 0;if(!t||""===e)return l("value",e);if(""===(n=j()))return l("value",e);for(var r={prec:i(t),value:t},u=[e,r,n],f=[e,t,n],o=void 0,a=void 0,c=void 0;(t=_())&&0!==(a=i(t));){for(r={value:t,prec:a};u.length>2&&a<=u[u.length-2].prec;)n=u.pop(),t=u.pop().value,e=u.pop(),o=[e,t,n],u.push(o);o=j(),u.push(r,o),f.push(t,o)}for(c=u.length-1,o=u[c];c>1;)o=[u[c-2],u[c-1].value,o],c-=2;return l({type:"value",value:o,expression:f.join(" ")})}function i(e){return y[e]||0}function f(e){if(e&&e!==x){var t=m.slice(0,g);throw'Expected "'+e+'" instead of "'+x+'" in "'+t+'█"'}return g+=1,x=m.charAt(g)}function o(){for(;x&&x<=" ";)f()}function a(e){e.length>1&&(e=e.split(""));var t=d.default.isString(e)?function(t){return e===t}:function(t){return-1!==e.indexOf(t)};return function(){for(var e="";x;){if(" "!==x){if(t(x))return e;e+=x}f()}return e}}function c(e,t,n){var r=e[0],u=e[1];return function(){var e=[];for(f(r);x;){if(n(e),x===u){f(u);break}f(",")}return l(t,e)}}function l(e,t){return d.default.isString(e)&&(e={type:e,value:t}),e.value||(e.value=h),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!d.default.isString(e))throw"first parameter must be a string";e=e.trim();var t=b(e);if(!1!==t)return t;g=0,m=e,x=e[0];var n=P();return b(e,n)};var s=n(0),d=r(s),p=n(5),v=r(p),b=(0,v.default)(20),h="*",y={"|":1,"&":2},g=void 0,m=void 0,x=void 0,O=a(":,}"),j=a("|&,]}{["),_=function(e){var t=Object.keys(e);return function(){if(-1!==t.indexOf(x)){var e=x;return f(),e}return!1}}(y),w=c("[]","array",function(e){var t=P();e.length>0&&t.value===h||(1===e.length&&e[0].value===h&&(e.length=0),e.push(t),o())}),M=c("{}","object",function(e){var t=O(),n=void 0;if(""!==t||!e.length){if(1===e.length&&e[0].prop===h&&(e.length=0),""===t||":"!==x)return void e.push(l({type:"value",prop:t||h,value:h}));f(":"),n=P(),n.prop=t,e.push(n),o()}}),P=function(){switch(o(),x){case"[":return w();case"{":return M();default:return u()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e=e||r,function(e,t){if("string"!=typeof e)throw"first parameter must be a string";var n=u.hasOwnProperty(e);return void 0===t?!!n&&u[e]:n?t:(u[e]=t,t)}};var r=10,u={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!l.default.isString(e))throw"first parameter must be an expression";return p((0,f.default)(e),t)}var i=n(4),f=r(i),o=n(3),a=r(o),c=n(0),l=r(c),s=n(2),d=r(s),p=(0,d.default)(a.default);(0,c.forEachType)(function(e,t){a.default.define(e,t)}),e.exports=Object.assign(u,a.default)}])});