hamjest
Version:
A library of composable matchers for defining meaningful and readable assertions in JavaScript.
1 lines • 221 kB
JavaScript
!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).hamjest=e()}(function(){return function r(s,i,o){function a(t,e){if(!i[t]){if(!s[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=i[t]={exports:{}},s[t][0].call(n.exports,function(e){return a(s[t][1][e]||e)},n,n.exports,r,s,i,o)}return i[t].exports}for(var c="function"==typeof require&&require,e=0;e<o.length;e++)a(o[e]);return a}({1:[function(e,t,n){"use strict";e("core-js/modules/es.string.starts-with.js"),e("core-js/modules/es.string.ends-with.js");var r=e("./lib/matchers/IsEqual"),s=e("./lib/matchers/Matcher"),i=e("./lib/matchers/SubstringMatcher"),o=e("./lib/matchers/NumberComparisonMatcher"),a=e("./lib/matchers/DateComparisonMatcher"),c=e("./lib/Description");e("./lib/fixErrorJson")(),t.exports.assertThat=e("./lib/assertThat"),t.exports.promiseThat=e("./lib/promiseThat"),t.exports.fail=e("./lib/fail"),t.exports.Matcher=s,t.exports.TypeSafeMatcher=e("./lib/matchers/TypeSafeMatcher"),t.exports.FeatureMatcher=e("./lib/matchers/FeatureMatcher"),t.exports.anything=e("./lib/matchers/IsAnything").anything,t.exports.strictlyEqualTo=e("./lib/matchers/IsSame").strictlyEqualTo,t.exports.is=e("./lib/matchers/Is").is,t.exports.not=e("./lib/matchers/IsNot").not,t.exports.equalTo=r.equalTo,t.exports.truthy=e("./lib/matchers/truthy"),t.exports.falsy=e("./lib/matchers/falsy"),t.exports.falsey=e("./lib/matchers/falsy"),t.exports.defined=e("./lib/matchers/IsDefined").defined,t.exports.undefined=e("./lib/matchers/IsDefined").undefined,t.exports.undef=e("./lib/matchers/IsDefined").undefined,t.exports.instanceOf=e("./lib/matchers/IsInstanceOf").instanceOf,t.exports.array=e("./lib/matchers/IsArray").array,t.exports.bool=e("./lib/matchers/IsBoolean").bool,t.exports.boolean=e("./lib/matchers/IsBoolean").bool,t.exports.date=e("./lib/matchers/IsDate").date,t.exports.func=e("./lib/matchers/IsFunction").func,t.exports.number=e("./lib/matchers/IsNumber").number,t.exports.object=e("./lib/matchers/IsObject").object,t.exports.regExp=e("./lib/matchers/IsRegExp").regExp,t.exports.string=e("./lib/matchers/IsString").string,t.exports.containsString=i.containsString,t.exports.containsStrings=i.containsStrings,t.exports.startsWith=i.startsWith,t.exports.endsWith=i.endsWith,t.exports.matchesPattern=e("./lib/matchers/IsStringMatching").matchesPattern,t.exports.matches=e("./lib/matchers/matches"),t.exports.failsToMatch=e("./lib/matchers/failsToMatch"),t.exports.hasDescription=e("./lib/matchers/hasDescription"),t.exports.lessThan=o.lessThan,t.exports.lessThanOrEqualTo=o.lessThanOrEqualTo,t.exports.greaterThan=o.greaterThan,t.exports.greaterThanOrEqualTo=o.greaterThanOrEqualTo,t.exports.inRange=e("./lib/matchers/inRange"),t.exports.after=a.after,t.exports.afterOrEqualTo=a.afterOrEqualTo,t.exports.before=a.before,t.exports.beforeOrEqualTo=a.beforeOrEqualTo,t.exports.closeTo=e("./lib/matchers/IsCloseTo").closeTo,t.exports.allOf=e("./lib/matchers/AllOf").allOf,t.exports.anyOf=e("./lib/matchers/AnyOf").anyOf,t.exports.everyItem=e("./lib/matchers/Every").everyItem,t.exports.startsWithItems=e("./lib/matchers/IsArrayStartingWith").startsWithItems,t.exports.endsWithItems=e("./lib/matchers/IsArrayEndingWith").endsWithItems,t.exports.contains=e("./lib/matchers/IsArrayContaining").contains,t.exports.containsInAnyOrder=e("./lib/matchers/IsArrayContainingInAnyOrder").containsInAnyOrder,t.exports.hasItem=e("./lib/matchers/IsArrayWithItem").hasItem,t.exports.hasItems=e("./lib/matchers/IsArrayWithItems").hasItems,t.exports.hasExactlyOneItem=e("./lib/matchers/hasExactlyOneItem"),t.exports.orderedBy=e("./lib/matchers/IsArrayOrderedBy").orderedBy,t.exports.hasSize=e("./lib/matchers/hasSize"),t.exports.isEmpty=e("./lib/matchers/isEmpty"),t.exports.empty=e("./lib/matchers/isEmpty"),t.exports.hasProperties=e("./lib/matchers/IsObjectWithProperties").hasProperties,t.exports.hasDeepProperties=e("./lib/matchers/IsObjectWithProperties").hasDeepProperties,t.exports.hasProperty=e("./lib/matchers/IsObjectWithProperties").hasProperty,t.exports.throws=e("./lib/matchers/IsFunctionThrowing").throws,t.exports.returns=e("./lib/matchers/returns"),t.exports.typedError=e("./lib/matchers/typedError"),t.exports.promise=e("./lib/matchers/IsPromise").promise,t.exports.fulfilled=e("./lib/matchers/IsFulfilled").fulfilled,t.exports.isFulfilledWith=e("./lib/matchers/IsFulfilled").isFulfilledWith,t.exports.willBe=e("./lib/matchers/IsFulfilled").isFulfilledWith,t.exports.rejected=e("./lib/matchers/IsRejected").rejected,t.exports.isRejectedWith=e("./lib/matchers/IsRejected").isRejectedWith,t.exports.promiseAllOf=e("./lib/matchers/AllOf").allOf,t.exports.isMatcher=s.isMatcher,t.exports.asMatcher=e("./lib/utils/asMatcher"),t.exports.acceptingMatcher=e("./lib/utils/acceptingMatcher"),t.exports.Description=c,t.exports.describe=function(e){return(new c).appendDescriptionOf(e).get()}},{"./lib/Description":2,"./lib/assertThat":3,"./lib/fail":4,"./lib/fixErrorJson":5,"./lib/matchers/AllOf":6,"./lib/matchers/AnyOf":7,"./lib/matchers/DateComparisonMatcher":8,"./lib/matchers/Every":9,"./lib/matchers/FeatureMatcher":10,"./lib/matchers/Is":11,"./lib/matchers/IsAnything":12,"./lib/matchers/IsArray":13,"./lib/matchers/IsArrayContaining":14,"./lib/matchers/IsArrayContainingInAnyOrder":15,"./lib/matchers/IsArrayEndingWith":16,"./lib/matchers/IsArrayOrderedBy":17,"./lib/matchers/IsArrayStartingWith":18,"./lib/matchers/IsArrayWithItem":19,"./lib/matchers/IsArrayWithItems":20,"./lib/matchers/IsBoolean":21,"./lib/matchers/IsCloseTo":22,"./lib/matchers/IsDate":23,"./lib/matchers/IsDefined":24,"./lib/matchers/IsEqual":25,"./lib/matchers/IsFulfilled":26,"./lib/matchers/IsFunction":27,"./lib/matchers/IsFunctionThrowing":28,"./lib/matchers/IsInstanceOf":29,"./lib/matchers/IsNot":30,"./lib/matchers/IsNumber":31,"./lib/matchers/IsObject":32,"./lib/matchers/IsObjectWithProperties":33,"./lib/matchers/IsPromise":34,"./lib/matchers/IsRegExp":35,"./lib/matchers/IsRejected":36,"./lib/matchers/IsSame":37,"./lib/matchers/IsString":38,"./lib/matchers/IsStringMatching":39,"./lib/matchers/Matcher":40,"./lib/matchers/NumberComparisonMatcher":41,"./lib/matchers/SubstringMatcher":42,"./lib/matchers/TypeSafeMatcher":43,"./lib/matchers/failsToMatch":44,"./lib/matchers/falsy":45,"./lib/matchers/hasDescription":46,"./lib/matchers/hasExactlyOneItem":47,"./lib/matchers/hasSize":48,"./lib/matchers/inRange":49,"./lib/matchers/isEmpty":50,"./lib/matchers/matches":51,"./lib/matchers/returns":53,"./lib/matchers/truthy":54,"./lib/matchers/typedError":55,"./lib/promiseThat":56,"./lib/utils/acceptingMatcher":57,"./lib/utils/asMatcher":58,"core-js/modules/es.string.ends-with.js":253,"core-js/modules/es.string.starts-with.js":256}],2:[function(e,t,n){"use strict";function r(e){return(r="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})(e)}e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.symbol.iterator.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.regexp.to-string.js");var i=e("lodash/forEach"),s=e("lodash/isArray"),o=e("lodash/isFunction"),a=e("lodash/isNull"),c=e("lodash/isNumber"),l=e("lodash/isRegExp"),u=e("lodash/isString"),f=e("lodash/isUndefined"),p=e("lodash/padEnd");function d(e,t){return"number"==typeof t&&isNaN(t)?"<NaN>":t}t.exports=function(){var n="";return{useJsonForObjects:!0,indentation:0,append:function(t){this.indentation&&(t=(""+t).replace("\n",p("\n",this.indentation+1,"\t")));try{n+=t}catch(e){n+="[ "+r(t)+"]"}return this},indented:function(e){var t,n=this,e=(this.indentation+=1,e());return e&&o(e.then)?(t=function(){--n.indentation},Promise.resolve(e).then(function(e){return Promise.resolve(t()).then(e)},function(e){return Promise.resolve(t()).then(function(){throw e})})):(--this.indentation,e)},appendDescriptionOf:function(e){return e&&o(e.describeTo)?e.describeTo(this):this.appendValue(e),this},appendValue:function(t,n){var e=this;if(f(t))this.append("undefined");else if(a(t))this.append("null");else if(u(t))this.append('"'),this.append(t),this.append('"');else if(c(t))this.append("<"),this.append(t),this.append(">");else if(s(t))n&&1<t.length?this.indented(function(){return e.appendList("[\n",",\n","",t)}).append("\n]"):this.appendList("[",", ","]",t);else if((n=t)&&(o(n.appendChild)&&o(n.isEqualNode)&&!f(n.outerHTML)||o(n.html)&&o(n.text)))this.append("DOM node ").appendValue(o(t.html)?t.html():t.outerHTML);else if(o(t))this.append("Function"+(t.name?" "+t.name:""));else if(l(t))this.append(t.toString());else if(this.useJsonForObjects)try{this.append(JSON.stringify(t,d))}catch(e){n=this.useJsonForObjects;this.useJsonForObjects=!1,this.appendNonJson(t),this.useJsonForObjects=n}else this.append(t);return this},appendNonJson:function(e){var n=this,r=(this.append("{"),!0);i(e,function(e,t){r||n.append(", "),r=!1,n.append(t).append(": "),n.appendValue(e)},this),this.append("}")},appendList:function(e,r,t,n){var s=this;return this.append(e),i(n,function(e,t){var n;0!==t&&s.append(r),s.appendDescriptionOf((n=e)&&o(n.describeTo)?n:{describeTo:function(e){e.appendValue(n)}})},this),this.append(t),this},get:function(){return n}}}},{"core-js/modules/es.array.iterator.js":228,"core-js/modules/es.function.name.js":233,"core-js/modules/es.object.to-string.js":241,"core-js/modules/es.promise.js":245,"core-js/modules/es.regexp.exec.js":251,"core-js/modules/es.regexp.to-string.js":252,"core-js/modules/es.string.iterator.js":254,"core-js/modules/es.string.replace.js":255,"core-js/modules/es.symbol.description.js":258,"core-js/modules/es.symbol.iterator.js":260,"core-js/modules/es.symbol.js":261,"core-js/modules/web.dom-collections.iterator.js":265,"lodash/forEach":438,"lodash/isArray":444,"lodash/isFunction":450,"lodash/isNull":453,"lodash/isNumber":454,"lodash/isRegExp":457,"lodash/isString":459,"lodash/isUndefined":462,"lodash/padEnd":468}],3:[function(e,t,n){!function(h){!function(){"use strict";function c(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,i,o,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){l=!0,s=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw s}}return a}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){var n;if(e)return"string"==typeof e?r(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.symbol.iterator.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.array.concat.js");var u=e("lodash/isFunction"),f=e("assertion-error"),p=e("./Description"),d=e("./utils/asMatcher");t.exports=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];o=l(3===(o=n).length?o:[""].concat(c(o)),3),s=o[0],i=o[1],o=o[2];var s={reason:s,actual:i,matcher:d(o)},i=s.reason,o=s.matcher,s=s.actual,a=o.matches(s);if(a&&u(a.then))throw new f("Matcher returned a promise instead of a boolean - use promiseThat for promising matchers!",{},e);if(!a)throw(a=new p).append(i).append("\nExpected: ").appendDescriptionOf(o).append("\n but: "),o.describeMismatch(s,a),i={},u(o.getExpectedForDiff)&&u(o.formatActualForDiff)&&(i={showDiff:!0,expected:o.getExpectedForDiff(),actual:o.formatActualForDiff(s)}),new f(a.get(),i,e);h&&h.expect&&(o=h.expect())&&o.nothing&&o.nothing()}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Description":2,"./utils/asMatcher":58,"assertion-error":61,"core-js/modules/es.array.concat.js":226,"core-js/modules/es.array.from.js":227,"core-js/modules/es.array.iterator.js":228,"core-js/modules/es.array.slice.js":230,"core-js/modules/es.function.name.js":233,"core-js/modules/es.object.to-string.js":241,"core-js/modules/es.regexp.exec.js":251,"core-js/modules/es.regexp.to-string.js":252,"core-js/modules/es.string.iterator.js":254,"core-js/modules/es.symbol.description.js":258,"core-js/modules/es.symbol.iterator.js":260,"core-js/modules/es.symbol.js":261,"core-js/modules/web.dom-collections.iterator.js":265,"lodash/isFunction":450}],4:[function(e,t,n){"use strict";var r=e("assertion-error");t.exports=function e(t){throw new r(t,{},e)}},{"assertion-error":61}],5:[function(e,t,n){"use strict";e("core-js/modules/web.url.to-json.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.get-own-property-names.js"),t.exports=function(){Error.prototype.toJSON||Object.defineProperty(Error.prototype,"toJSON",{value:function(){var t={};return Object.getOwnPropertyNames(this).forEach(function(e){t[e]=this[e]},this),t},configurable:!0,writable:!0})}},{"core-js/modules/es.object.get-own-property-names.js":237,"core-js/modules/es.object.to-string.js":241,"core-js/modules/web.dom-collections.for-each.js":264,"core-js/modules/web.url.to-json.js":266}],6:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/every"),i=e("lodash/map"),a=e("lodash/mapValues"),c=e("./Matcher"),l=e("./promiseAgnostic");function o(o){return r(new c,{matches:function(t){var e=i(o,function(e){return e.matches(t)});return l.matchesAggregate(e,s)},describeTo:function(e){e.appendList("("," and ",")",o)},describeMismatch:function(r,s){var e=a(o,function(e){return e.matches(r)}),i=!0;return l.describeMismatchAggregate(e,function(e,t){var n;if(!e)return n=o[t],i||s.append("\n"),i=!1,s.appendDescriptionOf(n).append(": "),s.indented(function(){return n.describeMismatch(r,s)})})}})}o.allOf=function(){return new o(arguments)},t.exports=o},{"./Matcher":40,"./promiseAgnostic":52,"lodash/create":433,"lodash/every":435,"lodash/map":465,"lodash/mapValues":466}],7:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/map"),i=e("lodash/some"),o=e("./Matcher"),a=e("./promiseAgnostic"),c=e("../utils/asMatcher");function l(n){return r(new o,{matches:function(t){var e=s(n,function(e){return c(e).matches(t)});return a.matchesAggregate(e,i)},describeTo:function(e){e.appendList("("," or ",")",n)}})}l.anyOf=function(){return new l(arguments)},t.exports=l},{"../utils/asMatcher":58,"./Matcher":40,"./promiseAgnostic":52,"lodash/create":433,"lodash/map":465,"lodash/some":473}],8:[function(e,t,n){"use strict";var s=e("lodash/create"),i=e("./IsDate"),o=e("../assertThat"),a=e("./Is").is,c=e("./IsDate").date;function r(t,n,r){return o(t,a(c())),s(new i,{matchesSafely:function(e){return r.call(this,e)},describeTo:function(e){e.append("a date ").append(n).append(" ").appendValue(t)},describeMismatchSafely:function(e,t){t.append("was ").appendValue(e)}})}r.after=function(t){return new r(t,"after",function(e){return t<e})},r.afterOrEqualTo=function(t){return new r(t,"after or equal to",function(e){return t<=e})},r.before=function(t){return new r(t,"before",function(e){return e<t})},r.beforeOrEqualTo=function(t){return new r(t,"before or equal to",function(e){return e<=t})},t.exports=r},{"../assertThat":3,"./Is":11,"./IsDate":23,"lodash/create":433}],9:[function(e,t,n){"use strict";var r=e("lodash/create"),i=e("lodash/every"),o=e("lodash/isArray"),a=e("lodash/isObject"),c=e("lodash/map"),l=e("lodash/mapValues"),u=e("./TypeSafeMatcher"),f=e("./promiseAgnostic"),p=e("../utils/asMatcher");function s(e){var s=p(e);return r(new u,{isExpectedType:function(e){return o(e)||a(e)},matchesSafely:function(e){e=c(e,function(e){return s.matches(e)});return f.matchesAggregate(e,i)},describeTo:function(e){e.append("every item is ").appendDescriptionOf(s)},describeMismatchSafely:function(n,r){var e=o(n)?c(n,function(e){return s.matches(e)}):l(n,function(e){return s.matches(e)});return f.describeMismatchAggregate(e,function(e,t){if(!e)return r.append("\nitem ").appendValue(t).append(" "),r.indented(function(){return s.describeMismatch(n[t],r)})})}})}s.everyItem=function(e){return new s(e)},t.exports=s},{"../utils/asMatcher":58,"./TypeSafeMatcher":43,"./promiseAgnostic":52,"lodash/create":433,"lodash/every":435,"lodash/isArray":444,"lodash/isObject":455,"lodash/map":465,"lodash/mapValues":466}],10:[function(e,t,n){"use strict";var o=e("lodash/create"),a=e("./Matcher"),c=e("../utils/asMatcher"),l=e("./promiseAgnostic");t.exports=function(e,t,r,s){var i=c(e);return s=s||function(e){return e[r]},o(new a,{matches:function(e){e=s(e);return i.matches(e)},describeTo:function(e){e.append(t).append(" ").appendDescriptionOf(i)},describeMismatch:function(e,t){var n=s(e);return l.describeMismatch(i.matches(n),function(){return t.append(r).append(" "),i.describeMismatch(n,t)},function(){t.append("\nfor ").appendValue(e)})}})}},{"../utils/asMatcher":58,"./Matcher":40,"./promiseAgnostic":52,"lodash/create":433}],11:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("./Matcher"),i=e("../utils/asMatcher");function o(e){var n=i(e);return r(new s,{matches:function(e){return n.matches(e)},describeTo:function(e){e.append("is ").appendDescriptionOf(n)},describeMismatch:function(e,t){return n.describeMismatch(e,t)},getExpectedForDiff:n.getExpectedForDiff,formatActualForDiff:n.formatActualForDiff})}o.is=function(e){return new o(e)},t.exports=o},{"../utils/asMatcher":58,"./Matcher":40,"lodash/create":433}],12:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("./Matcher");function i(){return r(new s,{matches:function(){return!0},describeTo:function(e){e.append("anything")}})}i.anything=function(){return new i},t.exports=i},{"./Matcher":40,"lodash/create":433}],13:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/isArray"),i=e("./TypeSafeMatcher");function o(){return r(new i,{isExpectedType:function(e){return s(e)},describeTo:function(e){e.append("an array")}})}o.array=function(){return new o},t.exports=o},{"./TypeSafeMatcher":43,"lodash/create":433,"lodash/isArray":444}],14:[function(e,t,n){"use strict";e("core-js/modules/es.array.slice.js");var r=e("lodash/create"),s=e("lodash/every"),o=e("lodash/map"),a=e("./IsArray"),c=e("../utils/asMatcher"),l=e("./promiseAgnostic");function i(e){var i=o(e,c);return r(new a,{matchesSafely:function(n){var e;return n.length===i.length&&(e=o(i,function(e,t){return e.matches(n[t])}),l.matchesAggregate(e,s))},describeTo:function(e){e.appendList("[",", ","]",i)},describeMismatchSafely:function(n,r){var e=o(n,function(e,t){if(i.length>t)return i[t].matches(e)}),s=!0;return l.describeMismatchAggregate(e,function(e,t){if(!(e||i.length<=t||n.length<=t))return s||r.append("\n"),s=!1,r.append("item ").append(t).append(": "),i[t].describeMismatch(n[t],r)},function(){s||r.append("\n"),n.length>i.length?r.indented(function(){return r.appendList("not matched:\n",",\n","",n.slice(i.length))}):n.length<i.length&&r.indented(function(){return r.appendList("missing:\n",",\n","",i.slice(n.length))})})}})}i.contains=function(){return new i(arguments)},t.exports=i},{"../utils/asMatcher":58,"./IsArray":13,"./promiseAgnostic":52,"core-js/modules/es.array.slice.js":230,"lodash/create":433,"lodash/every":435,"lodash/map":465}],15:[function(e,t,n){"use strict";e("core-js/modules/es.array.splice.js");var r=e("lodash/clone"),i=e("lodash/create"),o=e("lodash/forEach"),a=e("lodash/map"),c=e("./IsArray"),l=e("../utils/asMatcher");function u(e){return i({},{unmatchedMatchers:r(e),matches:function(n){var r=this,s=!1;return o(this.unmatchedMatchers,function(e,t){if(e.matches(n))return s=!0,r.unmatchedMatchers.splice(t,1),!1},this),s}})}function s(e){var s=a(e,l);return i(new c,{matchesSafely:function(e){var t;return e.length===s.length&&(t=new u(s),o(e,function(e){if(!t.matches(e))return!1}),0===t.unmatchedMatchers.length)},describeTo:function(e){e.appendList("[",", ","]",s).append(" in any order")},describeMismatchSafely:function(e,t){var n=new u(s),r=[];o(e,function(e){n.matches(e)||r.push(e)}),0!==n.unmatchedMatchers.length?t.append("no item in ").appendValue(e,!0).indented(function(){return t.appendList(" matches:\n",",\n","",n.unmatchedMatchers)}):0!==r.length&&t.indented(function(){return t.appendList("not matched:\n",",\n","",r)}).append("\nfrom ").appendValue(e,!0)}})}s.containsInAnyOrder=function(){return new s(arguments)},t.exports=s},{"../utils/asMatcher":58,"./IsArray":13,"core-js/modules/es.array.splice.js":231,"lodash/clone":431,"lodash/create":433,"lodash/forEach":438,"lodash/map":465}],16:[function(e,t,n){"use strict";e("core-js/modules/es.array.slice.js");function r(e){var o=a(e,l);return s(new c,{matchesSafely:function(n){var e;return!(n.length<o.length)&&(e=a(o,function(e,t){return e.matches(n[n.length-o.length+t])}),u.matchesAggregate(e,i))},describeTo:function(e){e.appendList("[…, ",", ","]",o)},describeMismatchSafely:function(r,s){var e=a(o,function(e,t){t=r.length-o.length+t;if(0<=t)return e.matches(r[t])}),i=!0;return u.describeMismatchAggregate(e,function(e,t){var n=r.length-o.length+t;if(!(e||n<0))return i||s.append("\n"),i=!1,s.append("item ").append(n).append(": "),o[t].describeMismatch(r[n],s)},function(){i||s.append("\n"),r.length<o.length&&s.indented(function(){return s.appendList("missing:\n",",\n","",o.slice(0,o.length-r.length))})})}})}var s=e("lodash/create"),i=e("lodash/every"),a=e("lodash/map"),c=e("./IsArray"),l=e("../utils/asMatcher"),u=e("./promiseAgnostic");r.endsWithItems=function(){return new r(arguments)},t.exports=r},{"../utils/asMatcher":58,"./IsArray":13,"./promiseAgnostic":52,"core-js/modules/es.array.slice.js":230,"lodash/create":433,"lodash/every":435,"lodash/map":465}],17:[function(e,t,n){"use strict";e("core-js/modules/es.function.name.js");var r=e("lodash/create"),o=e("lodash/reduce"),s=e("./IsArray");function i(i,t){return t=t||i.name,r(new s,{matchesSafely:function(e){var n=!0;return o(e,function(e,t){return i(e,t)||(n=!1),t}),n},describeTo:function(e){e.append("an array ordered ").append(t)},describeMismatchSafely:function(e,t){var r,s=!0;o(e,function(e,t,n){return!i(e,t)&&s&&(s=!1,r={a:e,aIndex:n-1,b:t,bIndex:n}),t}),t.appendValue(r.a).append(" at index ").append(r.aIndex).append(" and ").appendValue(r.b).append(" at index ").append(r.bIndex).append(" are not in order")}})}i.orderedBy=function(e,t){return new i(e,t)},t.exports=i},{"./IsArray":13,"core-js/modules/es.function.name.js":233,"lodash/create":433,"lodash/reduce":470}],18:[function(e,t,n){"use strict";e("core-js/modules/es.array.slice.js");function r(e){var i=a(e,l);return s(new c,{matchesSafely:function(n){var e;return!(n.length<i.length)&&(e=a(i,function(e,t){return e.matches(n[t])}),u.matchesAggregate(e,o))},describeTo:function(e){e.appendList("[",", ",", …]",i)},describeMismatchSafely:function(n,r){var e=a(i,function(e,t){if(t<n.length)return e.matches(n[t])}),s=!0;return u.describeMismatchAggregate(e,function(e,t){if(!(e||t>=n.length))return s||r.append("\n"),s=!1,r.append("item ").append(t).append(": "),i[t].describeMismatch(n[t],r)},function(){s||r.append("\n"),n.length<i.length&&r.indented(function(){return r.appendList("missing:\n",",\n","",i.slice(n.length))})})}})}var s=e("lodash/create"),o=e("lodash/every"),a=e("lodash/map"),c=e("./IsArray"),l=e("../utils/asMatcher"),u=e("./promiseAgnostic");r.startsWithItems=function(){return new r(arguments)},t.exports=r},{"../utils/asMatcher":58,"./IsArray":13,"./promiseAgnostic":52,"core-js/modules/es.array.slice.js":230,"lodash/create":433,"lodash/every":435,"lodash/map":465}],19:[function(e,t,n){"use strict";var r=e("lodash/create"),i=e("lodash/map"),o=e("lodash/some"),a=e("./IsArray"),c=e("./promiseAgnostic"),l=e("../utils/asMatcher");function s(e){var s=l(e);return r(new a,{matchesSafely:function(e){e=i(e,function(e){return s.matches(e)});return c.matchesAggregate(e,o)},describeTo:function(e){e.append("an array containing ").appendDescriptionOf(s)},describeMismatchSafely:function(n,r){var e;if(0!==n.length)return e=i(n,function(e){return s.matches(e)}),c.describeMismatchAggregate(e,function(e,t){return r.append("\n"),r.append("item ").append(t).append(": "),r.indented(function(){return s.describeMismatch(n[t],r)})});r.append("was empty")}})}s.hasItem=function(e){return new s(e)},t.exports=s},{"../utils/asMatcher":58,"./IsArray":13,"./promiseAgnostic":52,"lodash/create":433,"lodash/map":465,"lodash/some":473}],20:[function(e,t,n){"use strict";function r(e){var n=new l(o(e,c));return s(new a,{matchesSafely:function(e){return n.matches(e)},describeTo:function(t){t.append("an array containing ");var n=!0;i(e,function(e){n||t.append(", "),n=!1,u(e).describeTo(t)})},describeMismatchSafely:function(e,t){0===e.length?t.append("was empty"):n.describeMismatch(e,t)}})}var s=e("lodash/create"),i=e("lodash/forEach"),o=e("lodash/map"),a=e("./IsArray"),c=e("./IsArrayWithItem").hasItem,l=e("./AllOf"),u=e("../utils/asMatcher");r.hasItems=function(){return new r(arguments)},t.exports=r},{"../utils/asMatcher":58,"./AllOf":6,"./IsArray":13,"./IsArrayWithItem":19,"lodash/create":433,"lodash/forEach":438,"lodash/map":465}],21:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/isBoolean"),i=e("./TypeSafeMatcher");function o(){return r(new i,{isExpectedType:function(e){return s(e)},describeTo:function(e){e.append("a boolean")}})}o.bool=function(){return new o},t.exports=o},{"./TypeSafeMatcher":43,"lodash/create":433,"lodash/isBoolean":446}],22:[function(e,t,n){"use strict";var s=e("lodash/create"),i=e("./IsNumber"),o=e("../assertThat"),a=e("./Is").is,c=e("./IsNumber").number;function r(t,n){function r(e){return Math.abs(e-t)}return o(t,a(c())),o(n,a(c())),s(new i,{matchesSafely:function(e){return r(e)<=n},describeTo:function(e){e.append("a number within ").appendValue(n).append(" of ").appendValue(t)},describeMismatchSafely:function(e,t){t.appendValue(e).append(" differed by ").appendValue(r(e))}})}r.closeTo=function(e,t){return new r(e,t)},t.exports=r},{"../assertThat":3,"./Is":11,"./IsNumber":31,"lodash/create":433}],23:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/isDate"),i=e("./TypeSafeMatcher");function o(){return r(new i,{isExpectedType:function(e){return s(e)},describeTo:function(e){e.append("a date")}})}o.date=function(){return new o},t.exports=o},{"./TypeSafeMatcher":43,"lodash/create":433,"lodash/isDate":448}],24:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/isUndefined"),i=e("./Matcher"),o=e("./IsNot").not;function a(){return r(new i,{matches:function(e){return!s(e)},describeTo:function(e){e.append("defined")}})}a.defined=function(){return new a},a.undefined=function(){return o(a.defined())},t.exports=a},{"./IsNot":30,"./Matcher":40,"lodash/create":433,"lodash/isUndefined":462}],25:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/isEqual"),i=e("./Matcher");function o(t){return r(new i,{matches:function(e){return s(t,e)},describeTo:function(e){e.appendValue(t)},getExpectedForDiff:function(){return t},formatActualForDiff:function(e){return e}})}o.equalTo=function(e){return new o(e)},t.exports=o},{"./Matcher":40,"lodash/create":433,"lodash/isEqual":449}],26:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("./IsPromise"),i=e("../utils/asMatcher"),o=e("./IsAnything").anything;function a(e){var t=0===arguments.length,n=t?o():i(e);return r(new s,{matchesSafely:function(e){return e.then(function(e){return n.matches(e)},function(){return!1})},describeTo:function(e){t?e.append("a fulfilled promise"):(e.append("a promise fulfilled with "),n.describeTo(e))},describeMismatchSafely:function(e,t){return e.then(function(e){return t.append("fulfillment value: "),n.describeMismatch(e,t)},function(e){t.append("was rejected with ").appendValue(e)})}})}a.isFulfilledWith=a.fulfilled=function(e){return 0===arguments.length?new a:new a(e)},t.exports=a},{"../utils/asMatcher":58,"./IsAnything":12,"./IsPromise":34,"lodash/create":433}],27:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/isFunction"),i=e("./TypeSafeMatcher");function o(){return r(new i,{isExpectedType:function(e){return s(e)},describeTo:function(e){e.append("a function")}})}o.func=function(){return new o},t.exports=o},{"./TypeSafeMatcher":43,"lodash/create":433,"lodash/isFunction":450}],28:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("./IsFunction"),i=e("../utils/asMatcher"),o=e("./IsAnything").anything;function a(e){var n=0===arguments.length?o():i(e);return r(new s,{matchesSafely:function(e){try{return e(),!1}catch(e){return n.matches(e)}},describeTo:function(e){e.append("a function throwing "),n.describeTo(e)},describeMismatch:function(e,t){try{e(),t.appendValue(e).append(" did not throw anything")}catch(e){return t.append("thrown object: "),n.describeMismatch(e,t)}}})}a.throws=function(e){return 0===arguments.length?new a:new a(e)},t.exports=a},{"../utils/asMatcher":58,"./IsAnything":12,"./IsFunction":27,"lodash/create":433}],29:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/isUndefined"),i=e("./Matcher"),o=e("../assertThat"),a=e("./Is").is,c=e("./IsFunction").func,l=e("../utils/getType"),u=e("../utils/getTypeName");function f(t){return o(t,a(c())),r(new i,{matches:function(e){return e instanceof t},describeTo:function(e){e.append("an instance of ").append(u(t))},describeMismatch:function(e,t){s(e)?t.append("was ").appendValue(e):t.appendValue(e).append(" is a ").append(l(e))}})}f.instanceOf=function(e){return new f(e)},t.exports=f},{"../assertThat":3,"../utils/getType":59,"../utils/getTypeName":60,"./Is":11,"./IsFunction":27,"./Matcher":40,"lodash/create":433,"lodash/isUndefined":462}],30:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("./Matcher"),i=e("./promiseAgnostic"),o=e("../utils/asMatcher");function a(e){var t=o(e);return r(new s,{matches:function(e){return i.matches(t.matches(e),function(e){return!e})},describeTo:function(e){e.append("not ").appendDescriptionOf(t)},describeMismatch:function(e,t){t.append("was ").appendValue(e)}})}a.not=function(e){return new a(e)},t.exports=a},{"../utils/asMatcher":58,"./Matcher":40,"./promiseAgnostic":52,"lodash/create":433}],31:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/isNumber"),i=e("./TypeSafeMatcher");function o(){return r(new i,{isExpectedType:function(e){return s(e)},describeTo:function(e){e.append("a number")}})}o.number=function(){return new o},t.exports=o},{"./TypeSafeMatcher":43,"lodash/create":433,"lodash/isNumber":454}],32:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/isObject"),i=e("./TypeSafeMatcher");function o(){return r(new i,{isExpectedType:function(e){return s(e)},describeTo:function(e){e.append("an object")}})}o.object=function(){return new o},t.exports=o},{"./TypeSafeMatcher":43,"lodash/create":433,"lodash/isObject":455}],33:[function(e,t,n){"use strict";function r(e){return(r="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})(e)}function s(e,t,n){return(t=function(e){e=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===r(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var n;if(e)return"string"==typeof e?o(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.symbol.iterator.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.symbol.to-primitive.js"),e("core-js/modules/es.date.to-primitive.js"),e("core-js/modules/es.number.constructor.js"),e("core-js/modules/es.object.get-prototype-of.js");var a=e("lodash/create"),c=e("lodash/every"),l=e("lodash/forEach"),u=e("lodash/isArray"),f=e("lodash/isUndefined"),p=e("lodash/map"),d=e("lodash/mapValues"),h=e("lodash/reduceRight"),y=e("./IsArrayContaining").contains,b=e("./IsObject"),m=e("./Matcher").isMatcher,g=e("../utils/asMatcher"),v=e("./IsDefined").defined,j=e("./promiseAgnostic");function x(e){if(e&&!m(e)){if(e.constructor===Object||null===Object.getPrototypeOf(e))return new _(e,!0);if(u(e))return y.apply(void 0,i(p(e,x)))}return g(e)}function _(e){var i=d(e,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?x:g);return a(new b,{matchesSafely:function(n){var e=d(i,function(e,t){return e.matches(n[t])});return j.matchesAggregate(e,c)},describeTo:function(n){n.append("an object with {");var r=!0;l(i,function(e,t){r||n.append(", "),r=!1,n.append(t).append(": ").appendDescriptionOf(e)}),n.append("}")},describeMismatchSafely:function(n,r){var e=d(i,function(e,t){return e.matches(n[t])}),s=!0,t=this.describeVerbose;return j.describeMismatchAggregate(e,function(e,t){if(!e)return s||r.append(",\n"),s=!1,r.append(t).append(" "),r.indented(function(){return i[t].describeMismatch(n[t],r)})},function(){t&&r.append("\nfor ").appendValue(n)})},verbose:function(){return this.describeVerbose=!0,this}})}_.hasProperties=function(e){return new _(e)},_.hasDeepProperties=function(e){return new _(e,!0)},_.hasProperty=function(e,t){e=u(e)?e:e.split("."),t=f(t)?v():t;return h(e,function(e,t){return new _(s({},t,e))},t)},t.exports=_},{"../utils/asMatcher":58,"./IsArrayContaining":14,"./IsDefined":24,"./IsObject":32,"./Matcher":40,"./promiseAgnostic":52,"core-js/modules/es.array.from.js":227,"core-js/modules/es.array.iterator.js":228,"core-js/modules/es.array.slice.js":230,"core-js/modules/es.date.to-primitive.js":232,"core-js/modules/es.function.name.js":233,"core-js/modules/es.number.constructor.js":235,"core-js/modules/es.object.get-prototype-of.js":239,"core-js/modules/es.object.to-string.js":241,"core-js/modules/es.regexp.exec.js":251,"core-js/modules/es.regexp.to-string.js":252,"core-js/modules/es.string.iterator.js":254,"core-js/modules/es.symbol.description.js":258,"core-js/modules/es.symbol.iterator.js":260,"core-js/modules/es.symbol.js":261,"core-js/modules/es.symbol.to-primitive.js":263,"core-js/modules/web.dom-collections.iterator.js":265,"lodash/create":433,"lodash/every":435,"lodash/forEach":438,"lodash/isArray":444,"lodash/isUndefined":462,"lodash/map":465,"lodash/mapValues":466,"lodash/reduceRight":471}],34:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/isFunction"),i=e("./TypeSafeMatcher");function o(){return r(new i,{isExpectedType:function(e){return e&&s(e.then)},describeTo:function(e){e.append("a promise")}})}o.promise=function(){return new o},t.exports=o},{"./TypeSafeMatcher":43,"lodash/create":433,"lodash/isFunction":450}],35:[function(e,t,n){"use strict";function s(e){return(s="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})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===s(e)?e:String(e)}(r.key),r)}}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=c(n),t=(e=r?(e=c(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.reflect.construct.js"),e("core-js/modules/es.symbol.to-primitive.js"),e("core-js/modules/es.date.to-primitive.js"),e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.number.constructor.js"),e("core-js/modules/es.symbol.iterator.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.object.set-prototype-of.js"),e("core-js/modules/es.object.get-prototype-of.js");var l=e("lodash/isRegExp"),u=e("./TypeSafeMatcher"),e=function(){var e=s,t=u;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t);var n,r=a(s);function s(){var e=this,t=s;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return e=s,t=[{key:"regExp",value:function(){return new s}}],(n=[{key:"isExpectedType",value:function(e){return l(e)}},{key:"describeTo",value:function(e){e.append("a regular expression")}}])&&i(e.prototype,n),t&&i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),s}();t.exports=e},{"./TypeSafeMatcher":43,"core-js/modules/es.array.iterator.js":228,"core-js/modules/es.date.to-primitive.js":232,"core-js/modules/es.number.constructor.js":235,"core-js/modules/es.object.get-prototype-of.js":239,"core-js/modules/es.object.set-prototype-of.js":240,"core-js/modules/es.object.to-string.js":241,"core-js/modules/es.reflect.construct.js":249,"core-js/modules/es.string.iterator.js":254,"core-js/modules/es.symbol.description.js":258,"core-js/modules/es.symbol.iterator.js":260,"core-js/modules/es.symbol.js":261,"core-js/modules/es.symbol.to-primitive.js":263,"core-js/modules/web.dom-collections.iterator.js":265,"lodash/isRegExp":457}],36:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("./IsPromise"),i=e("../utils/asMatcher"),o=e("./IsAnything").anything;function a(e){var t=0===arguments.length,n=t?o():i(e);return r(new s,{matchesSafely:function(e){return e.then(function(){return!1},function(e){return n.matches(e)})},describeTo:function(e){t?e.append("a rejected promise"):(e.append("a promise rejected with "),n.describeTo(e))},describeMismatchSafely:function(e,t){return e.then(function(e){t.append("was fulfilled with ").appendValue(e)},function(e){return t.append("rejection value "),n.describeMismatch(e,t)})}})}a.isRejectedWith=a.rejected=function(e){return 0===arguments.length?new a:new a(e)},t.exports=a},{"../utils/asMatcher":58,"./IsAnything":12,"./IsPromise":34,"lodash/create":433}],37:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("./Matcher");function i(t){return r(new s,{matches:function(e){return t===e},describeTo:function(e){e.append("same instance (").appendValue(t).append(")")}})}i.strictlyEqualTo=function(e){return new i(e)},t.exports=i},{"./Matcher":40,"lodash/create":433}],38:[function(e,t,n){"use strict";var r=e("lodash/create"),s=e("lodash/isString"),i=e("./TypeSafeMatcher");function o(){return r(new i,{isExpectedType:function(e){return s(e)},describeTo:function(e){e.append("a string")}})}o.string=function(){return new o},t.exports=o},{"./TypeSafeMatcher":43,"lodash/create":433,"lodash/isString":459}],39:[function(e,t,n){"use strict";e("core-js/modules/es.regexp.constructor.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.regexp.to-string.js");var r=e("lodash/create"),s=e("./IsString"),i=e("../assertThat"),o=e("./AnyOf").anyOf,a=e("./IsString").string,c=e("./IsRegExp").regExp;function l(e){i(e,o(c(),a()));var t=new RegExp(e);return r(new s,{matchesSafely:function(e){return t.test(e)},describeTo:function(e){e.append("a string matching ").appendValue(t)},describeMismatchSafely:function(e,t){t.append("was ").appendValue(e)}})}l.matchesPattern=function(e){return new l(e)},t.exports=l},{"../assertThat":3,"./AnyOf":7,"./IsRegExp":35,"./IsString":38,"core-js/modules/es.regexp.constructor.js":250,"core-js/modules/es.regexp.exec.js":251,"core-js/modules/es.regexp.to-string.js":252,"lodash/create":433}],40:[function(e,t,n){"use strict";function s(e){return(s="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})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===s(e)?e:String(e)}(r.key),r)}}e("core-js/modules/es.symbol.iterator.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.symbol.to-primitive.js"),e("core-js/modules/es.date.to-primitive.js"),e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.number.constructor.js");var o=e("lodash/extend"),a=e("lodash/isFunction"),c=e("lodash/isNull"),l=e("lodash/isUndefined"),e=function(){function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");o(this,e)}var e,t,n;return e=r,n=[{key:"isMatcher",value:function(e){return!l(e)&&!c(e)&&a(e.matches)&&a(e.describeTo)&&a(e.describeMismatch)}}],(t=[{key:"matches",value:function(){throw new Error("Not implemented")}},{key:"describeTo",value:function(){throw new Error("Not implemented")}},{key:"describeMismatch",value:function(e,t){t.append("was ").appendValue(e)}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),r}();t.exports=e},{"core-js/modules/es.array.iterator.js":228,"core-js/modules/es.date.to-primitive.js":232,"core-js/modules/es.number.constructor.js":235,"core-js/modules/es.object.to-string.js":241,"core-js/modules/es.string.iterator.js":254,"core-js/modules/es.symbol.description.js":258,"core-js/modules/es.symbol.iterator.js":260,"core-js/modules/es.symbol.js":261,"core-js/modules/es.symbol.to-primitive.js":263,"core-js/modules/web.dom-collections.iterator.js":265,"lodash/extend":436,"lodash/isFunction":450,"lodash/isNull":453,"lodash/isUndefined":462}],41:[function(e,t,n){"use strict";var s=e("lodash/create"),i=e("./IsNumber"),o=e("../assertThat"),a=e("./Is").is,c=e("./IsNumber").number;function r(t,n,r){return o(n,a(c())),s(new i,{matchesSafely:function(e){return r.call(this,e)},describeTo:function(e){e.append("a number ").append(t).append(" ").appendValue(n)},describeMismatchSafely:function(e,t){t.append("was ").appendValue(e)}})}r.greaterThan=function(t){return new r("greater than",t,function(e){return t<e})},r.greaterThanOrEqualTo=function(t){return new r("greater than or equal to",t,function(e){return t<=e})},r.lessThan=function(t){return new r("less than",t,function(e){return e<t})},r.lessThanOrEqualTo=function(t){return new r("less than or equal to",t,function(e){return e<=t})},t.exports=r},{"../assertThat":3,"./Is":11,"./IsNumber":31,"lodash/create":433}],42:[function(e,t,n){"use strict";e("core-js/modules/es.array.map.js"),e("core-js/modules/es.string.starts-with.js"),e("core-js/modules/es.string.ends-with.js");var s=e("lodash/create"),i=e("lodash/every"),o=e("lodash/filter"),a=e("./IsString"),c=e("../assertThat"),l=e("./Is").is,u=e("./IsString").string;function r(t,n,r){return c(t,l(u())),s(new a,{matchesSafely:function(e){return r.call(this,e)},describeTo:function(e){e.append("a string ").append(n).append(" ").appendValue(t)},describeMismatchSafely:function(e,t){t.append("was ").appendValue(e)},getExpectedForDiff:function(){return t},formatActualForDiff:function(e){return e}})}r.containsString=function(t){return new r(t,"containing",function(e){return-1!==e.indexOf(t)})},r.containsStrings=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.map(function(e){return c(e,l(u()))}),s(new a,{matchesSafely:function(t){return i(r,function(e){return-1!==t.indexOf(e)})},describeTo:function(e){e.append("a string containing ").appendList("",", ","",r)},describeMismatchSafely:function(t,e){var n=o(r,function(e){return-1===t.indexOf(e)});e.appendList("",", ","",n).append(" could not be found in ").appendValue(t)}})},r.startsWith=function(t){return new r(t,"starting with",function(e){return 0===e.indexOf(t)})},r.endsWith=function(t){return new r(t,"ending with",function(e){return-1!==e.indexOf(t,e.length-t.length)})},t.exports=r},{"../assertThat":3,"./Is":11,"./IsString":38,"core-js/modules/es.array.map.js":229,"core-js/modules/es.string.ends-with.js":253,"core-js/modules/es.string.starts-with.js":256,"lodash/create":433,"lodash/every":435,"lodash/filter":437}],43:[function(e,t,n){"use strict";function s(e){return(s="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})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===s(e)?e:String(e)}(r.key),r)}}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=c(n),t=(e=r?(e=c(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(e){ret