@aquera/nile-elements 0.1.73-beta-1.8 → 0.1.73-beta-1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -3
- package/demo/index.html +9 -47
- package/dist/axe.min-2b379f29.cjs.js +12 -0
- package/dist/axe.min-2b379f29.cjs.js.map +1 -0
- package/dist/axe.min-c2cd8733.esm.js +12 -0
- package/dist/{fixture-90b199c4.esm.js → fixture-2b5b3aba.esm.js} +1 -1
- package/dist/{fixture-5b79f853.cjs.js → fixture-3bfb4490.cjs.js} +2 -2
- package/dist/{fixture-5b79f853.cjs.js.map → fixture-3bfb4490.cjs.js.map} +1 -1
- package/dist/{fixture-dbd66009.cjs.js → fixture-7bfb866e.cjs.js} +2 -2
- package/dist/fixture-7bfb866e.cjs.js.map +1 -0
- package/dist/{fixture-cf7bfcf5.esm.js → fixture-8edec91c.esm.js} +1 -1
- package/dist/fixture-e7023246.esm.js +569 -0
- package/dist/fixture-fe6c932e.cjs.js +395 -0
- package/dist/{fixture-dbd66009.cjs.js.map → fixture-fe6c932e.cjs.js.map} +1 -1
- package/dist/index.js +4 -5
- package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-card/nile-card.test.cjs.js +1 -1
- package/dist/nile-card/nile-card.test.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
- package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.test.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-link/nile-link.test.cjs.js +1 -1
- package/dist/nile-link/nile-link.test.esm.js +1 -1
- package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.test.esm.js +1 -1
- package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.test.esm.js +1 -1
- package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.test.esm.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
- package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.test.esm.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.esm.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.esm.js +2 -2
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
- package/dist/nile-virtual-select/renderer.cjs.js +1 -1
- package/dist/nile-virtual-select/renderer.cjs.js.map +1 -1
- package/dist/nile-virtual-select/renderer.esm.js +3 -4
- package/dist/src/nile-icon/icons/svg/ng-lock-03.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-lock-03.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-lock-03.js.map +1 -0
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +1 -9
- package/dist/src/nile-virtual-select/nile-virtual-select.js +5 -55
- package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
- package/dist/src/nile-virtual-select/renderer.d.ts +2 -2
- package/dist/src/nile-virtual-select/renderer.js +5 -6
- package/dist/src/nile-virtual-select/renderer.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-select/nile-select.ts +11 -11
- package/src/nile-virtual-select/nile-virtual-select.ts +7 -68
- package/src/nile-virtual-select/renderer.ts +5 -7
- package/vscode-html-custom-data.json +1 -17
- package/dist/src/internal/resizable-helper.d.ts +0 -59
- package/dist/src/internal/resizable-helper.js +0 -115
- package/dist/src/internal/resizable-helper.js.map +0 -1
- package/dist/src/internal/resizable-styles.d.ts +0 -16
- package/dist/src/internal/resizable-styles.js +0 -144
- package/dist/src/internal/resizable-styles.js.map +0 -1
- package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +0 -17
- package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +0 -310
- package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +0 -34
- package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +0 -31
- package/dist/src/nile-grid/data-processor.d.ts +0 -37
- package/dist/src/nile-grid/data-processor.js +0 -122
- package/dist/src/nile-grid/data-processor.js.map +0 -1
- package/dist/src/nile-grid/event-handlers.d.ts +0 -35
- package/dist/src/nile-grid/event-handlers.js +0 -158
- package/dist/src/nile-grid/event-handlers.js.map +0 -1
- package/dist/src/nile-grid/index.d.ts +0 -5
- package/dist/src/nile-grid/index.js +0 -6
- package/dist/src/nile-grid/index.js.map +0 -1
- package/dist/src/nile-grid/nile-grid.css.d.ts +0 -1
- package/dist/src/nile-grid/nile-grid.css.js +0 -120
- package/dist/src/nile-grid/nile-grid.css.js.map +0 -1
- package/dist/src/nile-grid/nile-grid.d.ts +0 -39
- package/dist/src/nile-grid/nile-grid.js +0 -182
- package/dist/src/nile-grid/nile-grid.js.map +0 -1
- package/dist/src/nile-grid/renderer.d.ts +0 -8
- package/dist/src/nile-grid/renderer.js +0 -78
- package/dist/src/nile-grid/renderer.js.map +0 -1
- package/dist/src/nile-grid/resize-handler.d.ts +0 -4
- package/dist/src/nile-grid/resize-handler.js +0 -36
- package/dist/src/nile-grid/resize-handler.js.map +0 -1
- package/dist/src/nile-grid/types.d.ts +0 -32
- package/dist/src/nile-grid/types.js +0 -2
- package/dist/src/nile-grid/types.js.map +0 -1
- package/dist/src/nile-grid/utils.d.ts +0 -4
- package/dist/src/nile-grid/utils.js +0 -32
- package/dist/src/nile-grid/utils.js.map +0 -1
- package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +0 -47
- package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +0 -16
- package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +0 -75
- package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +0 -22
- package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +0 -9
- package/dist/src/nile-table-body/virtual-scroll-helper.js +0 -24
- package/dist/src/nile-table-body/virtual-scroll-helper.js.map +0 -1
- package/dist/src/nile-virtual-table-body/index.d.ts +0 -2
- package/dist/src/nile-virtual-table-body/index.js +0 -3
- package/dist/src/nile-virtual-table-body/index.js.map +0 -1
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +0 -1
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +0 -44
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +0 -1
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +0 -50
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +0 -135
- package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +0 -1
- package/dist/src/nile-virtual-table-body/renderer.d.ts +0 -16
- package/dist/src/nile-virtual-table-body/renderer.js +0 -49
- package/dist/src/nile-virtual-table-body/renderer.js.map +0 -1
@@ -0,0 +1,395 @@
|
|
1
|
+
System.register(["lit","lit/directives/unsafe-html.js","lit/html.js","lit/directive-helpers.js"],function(_export,_context){"use strict";var t,e,n,i,_templateObject,o,a,s,c,u,f,l,w,b,v,x,E,O,S,k,A,q,P,R,I;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){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 _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _wrapRegExp(){_wrapRegExp=function _wrapRegExp(e,r){return new BabelRegExp(e,void 0,r);};var e=RegExp.prototype,r=new WeakMap();function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),_setPrototypeOf(o,BabelRegExp.prototype);}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce(function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]];}return r;},Object.create(null));}return _inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this));}return t;},BabelRegExp.prototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\$<([^>]+)>/g,function(e,r){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t);}));}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,function(){var e=arguments;return"object"!=_typeof(e[e.length-1])&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e);});}return e[Symbol.replace].call(this,t,p);},_wrapRegExp.apply(this,arguments);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){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 _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function r(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');}function h(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=e.ignoreAttributes?e.ignoreAttributes.filter(function(t){return"string"==typeof t;}):[],i=e.ignoreAttributes?e.ignoreAttributes.filter(function(t){return"string"!=typeof t;}):[],o=[].concat(_toConsumableArray(e.ignoreTags||[]),c),r=e.ignoreChildren||[],a=e.stripEmptyAttributes||u,s=/(&|")/g,h=function h(t){return"&"===t?"&":""";};var l="",d=-1;var p=new Set(),w=new Set();function b(){return" ".repeat(d);}function v(t){return t instanceof Element?t.getAttribute("data-tag-name")||t.localName:t.nodeName.toLowerCase();}function m(t){var e=v(t);return!o.includes(e)&&!r.includes(e)&&!p.has(t);}function g(_ref){var t=_ref.name,e=_ref.value;return a.includes(t)&&""===e.trim();}function y(t,_ref2){var e=_ref2.name,n=_ref2.value;return g({name:e,value:n})?"":"class"===e?" class=\"".concat(function(t){return _toConsumableArray(t.classList.values()).sort().join(" ");}(t),"\""):" ".concat(e,"=\"").concat(n.replace(s,h),"\"");}var x=function x(t,e){return t.name.localeCompare(e.name);};function j(t){var e="";var o=Array.from(t.attributes).filter((r=function(t){return function(e){return!(!n.includes(e.name)&&!g(e)&&!i.find(function(n){if(!n.tags||!n.attributes)throw new Error("An object entry to ignoreAttributes should contain a 'tags' and an 'attributes' property.");return n.tags.includes(v(t))&&n.attributes.includes(e.name);}));};}(t),function(){return!r.apply(void 0,arguments);})).sort(x);var r;if(1===o.length)e=y(t,o[0]);else if(o.length>1){for(var _n2=0;_n2<o.length;_n2+=1)e+="\n".concat(b()," ").concat(y(t,o[_n2]));e+="\n".concat(b());}return e;}function E(t,e){var n;if("diff-container"!==v(t)&&!o.includes(v(t))&&!w.has(t))if(w.add(t),t instanceof Text)!function(t,e){var n="",i=t;for(;i&&i instanceof Text;)n+=i.nodeValue,i=e.nextSibling();i&&e.previousSibling(),n=n.trim(),""!==n&&(l+="".concat(b()).concat(n,"\n"));}(t,e);else{if(!(t instanceof Element))throw new Error("Unknown node type: ".concat(t));n=t,l+="".concat(b(),"<").concat(v(n)).concat(j(n),">\n");}}function O(t){var e;o.includes(v(t))||t instanceof Element&&("diff-container"===v(e=t)||f.includes(v(e))||(l+="".concat(b(),"</").concat(v(e),">\n")));}var S;if("string"==typeof t)S=document.createElement("diff-container"),S.innerHTML=t,d=-1;else{if(!(t instanceof Node))throw new Error("Cannot create diffable HTML from: ".concat(t));S=t,d=0;}var k=document.createTreeWalker(S,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null,!1);for(;k.currentNode;){var _t=k.currentNode;if(E(_t,k),m(_t)&&k.firstChild())d+=1;else{O(_t);if(!k.nextSibling()){d-=1;var _t2=k.parentNode();if(!_t2)break;p.add(_t2);}}}return l;}function d(t){return null!=t&&"object"==_typeof(t);}function p(_x,_x2,_x3){return _p.apply(this,arguments);}function _p(){_p=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(t,e,n){var i,_t4,_o2,_e6;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:if(!("string"!=typeof l)){_context7.next=2;break;}throw new Error("Unable to execute server commands in a browser not controlled by the test runner. Use the debug option from the watch menu to debug in a controlled browser.");case 2:_context7.prev=2;_context7.next=5;return _context["import"]("../../../../../../../../__web-dev-server__web-socket.js");case 5:_t4=_context7.sent;i=_t4.sendMessageWaitForResponse;_context7.next=12;break;case 9:_context7.prev=9;_context7.t0=_context7["catch"](2);throw new Error("Could not setup web socket connection. Are you executing this test through Web Test Runner?");case 12:_context7.prev=12;_context7.next=15;return i({type:"wtr-command",sessionId:l,command:t,payload:e});case 15:_o2=_context7.sent;if(_o2.executed){_context7.next=18;break;}throw _e6=n?"Unknown command ".concat(t,". Add the ").concat(n," to your config."):"Unknown command ".concat(t,". Did you install a plugin to handle this command?"),new Error(_e6);case 18:return _context7.abrupt("return",_o2.result);case 21:_context7.prev=21;_context7.t1=_context7["catch"](12);throw new Error("Error while executing command ".concat(t).concat(e?" with payload ".concat(JSON.stringify(e)):"",": ").concat(_context7.t1.message));case 24:case"end":return _context7.stop();}},_callee6,null,[[2,9],[12,21]]);}));return _p.apply(this,arguments);}function m(){return _m.apply(this,arguments);}function _m(){_m=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _ref7,_ref7$cache,t,e,n,i,_args7=arguments;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_ref7=_args7.length>0&&_args7[0]!==undefined?_args7[0]:{},_ref7$cache=_ref7.cache,t=_ref7$cache===void 0?!0:_ref7$cache;if(!(t&&b)){_context8.next=3;break;}return _context8.abrupt("return",b);case 3:_context8.next=5;return p("get-snapshots",void 0,"snapshotPlugin from @web/test-runner-commands");case 5:e=_context8.sent;if(!("string"!=typeof(e===null||e===void 0?void 0:e.content))){_context8.next=8;break;}throw new Error("Expected a result as string");case 8:n="".concat(function(t){return _toConsumableArray(t.matchAll(v)).forEach(function(_ref8){var e=_ref8.groups.content;t=t.replaceAll(e,encodeURIComponent(e));}),t;}(e.content),"/* ").concat(Math.random()," */");_context8.next=11;return function(specifier){return new Promise(function(r){return r(_context["import"](specifier));});}("data:text/javascript;charset=utf-8,".concat(n));case 11:i=_context8.sent;if(!(!i||!d(i.snapshots))){_context8.next=14;break;}throw new Error("Expected snapshot result to be a module that exports an object.");case 14:return _context8.abrupt("return",(b=i.snapshots,b));case 15:case"end":return _context8.stop();}},_callee7);}));return _m.apply(this,arguments);}function g(t){var e=[];var n;for(n="hook"===t.type?t.ctx.currentTest:t;n&&n.parent;)n.title&&e.push(n.title),n=n.parent;return e.reverse();}function y(){for(var _len=arguments.length,t=new Array(_len),_key=0;_key<_len;_key++){t[_key]=arguments[_key];}switch(t.length){case 2:{var _e=t[0],_n3=t[1];return{message:_e,options:_n3};}case 1:{var _n4=t[0];return(e=_n4)&&null!==e&&"object"==_typeof(e)&&("ignoreAttributes"in e||"ignoreTags"in e||"ignoreChildren"in e||"stripEmptyAttributes"in e)?{options:_n4}:{message:_n4};}default:return{};}var e;}function j(_x4,_x5){return _j.apply(this,arguments);}function _j(){_j=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(t,e){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.t0=x;if(_context10.t0){_context10.next=4;break;}_context10.next=4;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:if(!window.axe){_context9.next=4;break;}x=window.axe;_context9.next=13;break;case 4:if(!("function"!=typeof require)){_context9.next=12;break;}_context9.next=7;return _context["import"]("./axe.min-69d47269.cjs.js").then(function(t){return t.a;});case 7:if(window.axe){_context9.next=9;break;}throw new Error("Error importing axe-core/axe.min.js, are you using a bundler or build tool that doesnt handle es modules?");case 9:x=window.axe;_context9.next=13;break;case 12:x=require("axe-core/axe.min.js");case 13:case"end":return _context9.stop();}},_callee8);}))();case 4:return _context10.abrupt("return",new Promise(function(n,i){x.run(t,e,function(t,e){t?i(new Error(t)):n(e);});}));case 5:case"end":return _context10.stop();}},_callee9);}));return _j.apply(this,arguments);}function D(t){return new Promise(function(e){setTimeout(e,t);});}function T(t,e){return new Promise(function(n){t.addEventListener(e,function i(o){n(o),t.removeEventListener(e,i);});});}function M(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$interval=n.interval,i=_n$interval===void 0?50:_n$interval,_n$timeout=n.timeout,o=_n$timeout===void 0?1e3:_n$timeout,_Error=new Error(),r=_Error.stack;return new Promise(function(n,a){var s;setTimeout(function(){clearTimeout(s);var t=new Error(e?"Timeout: ".concat(e):"waitUntil timed out after ".concat(o,"ms"));t.stack=r,a(t);},o),function(){var _e2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return t();case 3:if(!_context2.sent){_context2.next=7;break;}n();_context2.next=8;break;case 7:s=setTimeout(function(){e();},i);case 8:_context2.next=13;break;case 10:_context2.prev=10;_context2.t0=_context2["catch"](0);a(_context2.t0);case 13:case"end":return _context2.stop();}},_callee,null,[[0,10]]);}));function e(){return _e2.apply(this,arguments);}return e;}()();});}function $(_x10){return _$.apply(this,arguments);}function _$(){_$=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t){var e,n;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:e=!1,n=t&&t.updateComplete;_context11.t0=q(n);if(!_context11.t0){_context11.next=6;break;}_context11.next=5;return n;case 5:e=!0;case 6:n=!(!t||!t.componentOnReady)&&t.componentOnReady();_context11.t1=q(n);if(!_context11.t1){_context11.next=12;break;}_context11.next=11;return n;case 11:e=!0;case 12:_context11.t2=e;if(_context11.t2){_context11.next=16;break;}_context11.next=16;return new Promise(function(t){requestAnimationFrame(function(){return t();});});case 16:window.ShadyDOM&&"function"==typeof window.ShadyDOM.flush&&window.ShadyDOM.flush();return _context11.abrupt("return",t);case 18:case"end":return _context11.stop();}},_callee10);}));return _$.apply(this,arguments);}function N(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:document.createElement("div");return document.body.appendChild(t),P.push(t),t;}function F(){P&&P.forEach(function(t){document.body.removeChild(t);}),P.length=0;}function L(t){return i(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t;}function C(t){return null!=(e=t)&&"function"==typeof e[Symbol.iterator]?_toConsumableArray(t).every(L):L(t);var e;}function _(_x11){return _2.apply(this,arguments);}function _2(){_2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(t){var e,o,_Array$from$filter3,_Array$from$filter4,_t5,_args11=arguments;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:e=_args11.length>1&&_args11[1]!==undefined?_args11[1]:{};_context12.t0=function(t){var _e$render;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var o=arguments.length>2?arguments[2]:undefined;var r=N(e.parentNode);if(((_e$render=e.render)!==null&&_e$render!==void 0?_e$render:n)(e.scopedElements?o(t,e.scopedElements):t,r),i(t))return r.firstElementChild;var _Array$from$filter=Array.from(r.childNodes).filter(I),_Array$from$filter2=_slicedToArray(_Array$from$filter,1),a=_Array$from$filter2[0];return a;};_context12.t1=t;_context12.t2=e;if(!e.scopedElements){_context12.next=10;break;}_context12.next=7;return _context["import"]("./scopedElementsWrapper-a112fc73.cjs.js").then(function(t){return t.getScopedElementsTemplate;});case 7:_context12.t3=_context12.sent;_context12.next=11;break;case 10:_context12.t3=void 0;case 11:_context12.t4=_context12.t3;o=(0,_context12.t0)(_context12.t1,_context12.t2,_context12.t4);_context12.next=15;return $(o);case 15:if(!e.scopedElements){_context12.next=20;break;}_Array$from$filter3=Array.from(o.shadowRoot.childNodes).filter(I),_Array$from$filter4=_slicedToArray(_Array$from$filter3,1),_t5=_Array$from$filter4[0];_context12.next=19;return $(_t5);case 19:return _context12.abrupt("return",_t5);case 20:return _context12.abrupt("return",o);case 21:case"end":return _context12.stop();}},_callee11);}));return _2.apply(this,arguments);}function U(_x12){return _U.apply(this,arguments);}function _U(){_U=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(n){var i,o,_args12=arguments;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:i=_args12.length>1&&_args12[1]!==undefined?_args12[1]:{};if(!i.scopedElements){_context13.next=3;break;}return _context13.abrupt("return",_(t(_templateObject||(_templateObject=_taggedTemplateLiteral(["",""])),e(n)),i));case 3:o=function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=N(e.parentNode);return n.innerHTML=t,n.children[0];}(n,i);_context13.next=6;return $(o);case 6:return _context13.abrupt("return",o);case 7:case"end":return _context13.stop();}},_callee12);}));return _U.apply(this,arguments);}function W(_x13,_x14){return _W.apply(this,arguments);}function _W(){_W=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t,e){return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:if(!("string"==typeof t)){_context14.next=2;break;}return _context14.abrupt("return",U(t,e));case 2:if(!(e!==null&&e!==void 0&&e.render||C(t))){_context14.next=4;break;}return _context14.abrupt("return",_(t,e));case 4:throw new Error("Invalid template provided - string or lit-html TemplateResult is supported");case 5:case"end":return _context14.stop();}},_callee13);}));return _W.apply(this,arguments);}_export({b:D,e:$,f:W,o:T,w:M});return{setters:[function(_lit){t=_lit.html;},function(_litDirectivesUnsafeHtmlJs){e=_litDirectivesUnsafeHtmlJs.unsafeHTML;},function(_litHtmlJs){n=_litHtmlJs.render;},function(_litDirectiveHelpersJs){i=_litDirectiveHelpersJs.isTemplateResult;}],execute:function execute(){o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};a=function t(e,n,i){function o(s,c){if(!n[s]){if(!e[s]){if(!c&&r)return r(s);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u;}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){return o(e[s][1][t]||t);},f,f.exports,t,e,n,i);}return n[s].exports;}for(var a=r,s=0;s<i.length;s++)o(i[s]);return o;}({1:[function(t,e,n){e.exports=t("./lib/chai");},{"./lib/chai":2}],2:[function(t,e,n){/*!
|
2
|
+
* chai
|
3
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
4
|
+
* MIT Licensed
|
5
|
+
*/var i=[];/*!
|
6
|
+
* Chai version
|
7
|
+
*/n.version="4.3.3",/*!
|
8
|
+
* Assertion Error
|
9
|
+
*/n.AssertionError=t("assertion-error");/*!
|
10
|
+
* Utils for plugins (not exported)
|
11
|
+
*/var o=t("./chai/utils");n.use=function(t){return~i.indexOf(t)||(t(n,o),i.push(t)),n;/*!
|
12
|
+
* Utility Functions
|
13
|
+
*/},n.util=o;/*!
|
14
|
+
* Configuration
|
15
|
+
*/var r=t("./chai/config");n.config=r;/*!
|
16
|
+
* Primary `Assertion` prototype
|
17
|
+
*/var a=t("./chai/assertion");n.use(a);/*!
|
18
|
+
* Core Assertions
|
19
|
+
*/var s=t("./chai/core/assertions");n.use(s);/*!
|
20
|
+
* Expect interface
|
21
|
+
*/var c=t("./chai/interface/expect");n.use(c);/*!
|
22
|
+
* Should interface
|
23
|
+
*/var u=t("./chai/interface/should");n.use(u);/*!
|
24
|
+
* Assert interface
|
25
|
+
*/var f=t("./chai/interface/assert");n.use(f);},{"./chai/assertion":3,"./chai/config":4,"./chai/core/assertions":5,"./chai/interface/assert":6,"./chai/interface/expect":7,"./chai/interface/should":8,"./chai/utils":23,"assertion-error":34}],3:[function(t,e,n){/*!
|
26
|
+
* chai
|
27
|
+
* http://chaijs.com
|
28
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
29
|
+
* MIT Licensed
|
30
|
+
*/var i=t("./config");e.exports=function(t,e){/*!
|
31
|
+
* Module dependencies.
|
32
|
+
*/var n=t.AssertionError,o=e.flag;/*!
|
33
|
+
* Module export.
|
34
|
+
*//*!
|
35
|
+
* Assertion Constructor
|
36
|
+
*
|
37
|
+
* Creates object for chaining.
|
38
|
+
*
|
39
|
+
* `Assertion` objects contain metadata in the form of flags. Three flags can
|
40
|
+
* be assigned during instantiation by passing arguments to this constructor:
|
41
|
+
*
|
42
|
+
* - `object`: This flag contains the target of the assertion. For example, in
|
43
|
+
* the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
|
44
|
+
* contain `numKittens` so that the `equal` assertion can reference it when
|
45
|
+
* needed.
|
46
|
+
*
|
47
|
+
* - `message`: This flag contains an optional custom error message to be
|
48
|
+
* prepended to the error message that's generated by the assertion when it
|
49
|
+
* fails.
|
50
|
+
*
|
51
|
+
* - `ssfi`: This flag stands for "start stack function indicator". It
|
52
|
+
* contains a function reference that serves as the starting point for
|
53
|
+
* removing frames from the stack trace of the error that's created by the
|
54
|
+
* assertion when it fails. The goal is to provide a cleaner stack trace to
|
55
|
+
* end users by removing Chai's internal functions. Note that it only works
|
56
|
+
* in environments that support `Error.captureStackTrace`, and only when
|
57
|
+
* `Chai.config.includeStack` hasn't been set to `false`.
|
58
|
+
*
|
59
|
+
* - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
|
60
|
+
* should retain its current value, even as assertions are chained off of
|
61
|
+
* this object. This is usually set to `true` when creating a new assertion
|
62
|
+
* from within another assertion. It's also temporarily set to `true` before
|
63
|
+
* an overwritten assertion gets called by the overwriting assertion.
|
64
|
+
*
|
65
|
+
* @param {Mixed} obj target of the assertion
|
66
|
+
* @param {String} msg (optional) custom error message
|
67
|
+
* @param {Function} ssfi (optional) starting point for removing stack frames
|
68
|
+
* @param {Boolean} lockSsfi (optional) whether or not the ssfi flag is locked
|
69
|
+
* @api private
|
70
|
+
*/function r(t,n,i,a){return o(this,"ssfi",i||r),o(this,"lockSsfi",a),o(this,"object",t),o(this,"message",n),e.proxify(this);}t.Assertion=r,Object.defineProperty(r,"includeStack",{get:function get(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),i.includeStack;},set:function set(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),i.includeStack=t;}}),Object.defineProperty(r,"showDiff",{get:function get(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),i.showDiff;},set:function set(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),i.showDiff=t;}}),r.addProperty=function(t,n){e.addProperty(this.prototype,t,n);},r.addMethod=function(t,n){e.addMethod(this.prototype,t,n);},r.addChainableMethod=function(t,n,i){e.addChainableMethod(this.prototype,t,n,i);},r.overwriteProperty=function(t,n){e.overwriteProperty(this.prototype,t,n);},r.overwriteMethod=function(t,n){e.overwriteMethod(this.prototype,t,n);},r.overwriteChainableMethod=function(t,n,i){e.overwriteChainableMethod(this.prototype,t,n,i);},r.prototype.assert=function(t,r,a,s,c,u){var f=e.test(this,arguments);if(!1!==u&&(u=!0),void 0===s&&void 0===c&&(u=!1),!0!==i.showDiff&&(u=!1),!f){r=e.getMessage(this,arguments);var h={actual:e.getActual(this,arguments),expected:s,showDiff:u},l=e.getOperator(this,arguments);throw l&&(h.operator=l),new n(r,h,i.includeStack?this.assert:o(this,"ssfi"));}},/*!
|
71
|
+
* ### ._obj
|
72
|
+
*
|
73
|
+
* Quick reference to stored `actual` value for plugin developers.
|
74
|
+
*
|
75
|
+
* @api private
|
76
|
+
*/Object.defineProperty(r.prototype,"_obj",{get:function get(){return o(this,"object");},set:function set(t){o(this,"object",t);}});};},{"./config":4}],4:[function(t,e,n){e.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"]};},{}],5:[function(t,e,n){/*!
|
77
|
+
* chai
|
78
|
+
* http://chaijs.com
|
79
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
80
|
+
* MIT Licensed
|
81
|
+
*/e.exports=function(t,e){var n=t.Assertion,i=t.AssertionError,o=e.flag;function r(t,n){n&&o(this,"message",n),t=t.toLowerCase();var i=o(this,"object"),r=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an ":"a ";this.assert(t===e.type(i).toLowerCase(),"expected #{this} to be "+r+t,"expected #{this} not to be "+r+t);}function a(t,n){return e.isNaN(t)&&e.isNaN(n)||t===n;}function s(){o(this,"contains",!0);}function c(t,r){r&&o(this,"message",r);var s=o(this,"object"),c=e.type(s).toLowerCase(),u=o(this,"message"),f=o(this,"negate"),h=o(this,"ssfi"),l=o(this,"deep"),d=l?"deep ":"";u=u?u+": ":"";var p=!1;switch(c){case"string":p=-1!==s.indexOf(t);break;case"weakset":if(l)throw new i(u+"unable to use .deep.include with WeakSet",void 0,h);p=s.has(t);break;case"map":var w=l?e.eql:a;s.forEach(function(e){p=p||w(e,t);});break;case"set":l?s.forEach(function(n){p=p||e.eql(n,t);}):p=s.has(t);break;case"array":p=l?s.some(function(n){return e.eql(n,t);}):-1!==s.indexOf(t);break;default:if(t!==Object(t))throw new i(u+"the given combination of arguments ("+c+" and "+e.type(t).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+e.type(t).toLowerCase(),void 0,h);var b=Object.keys(t),v=null,m=0;if(b.forEach(function(r){var a=new n(s);if(e.transferFlags(this,a,!0),o(a,"lockSsfi",!0),f&&1!==b.length)try{a.property(r,t[r]);}catch(t){if(!e.checkError.compatibleConstructor(t,i))throw t;null===v&&(v=t),m++;}else a.property(r,t[r]);},this),f&&b.length>1&&m===b.length)throw v;return;}this.assert(p,"expected #{this} to "+d+"include "+e.inspect(t),"expected #{this} to not "+d+"include "+e.inspect(t));}function u(){var t=o(this,"object");this.assert(null!=t,"expected #{this} to exist","expected #{this} to not exist");}function f(){var t=o(this,"object"),n=e.type(t);this.assert("Arguments"===n,"expected #{this} to be arguments but got "+n,"expected #{this} to not be arguments");}function h(t,e){e&&o(this,"message",e);var n=o(this,"object");if(o(this,"deep")){var i=o(this,"lockSsfi");o(this,"lockSsfi",!0),this.eql(t),o(this,"lockSsfi",i);}else this.assert(t===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",t,this._obj,!0);}function l(t,n){n&&o(this,"message",n),this.assert(e.eql(t,o(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,this._obj,!0);}function d(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to above must be a number":a=f+"the argument to above must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w>t,"expected #{this} to have a "+b+" above #{exp} but got #{act}","expected #{this} to not have a "+b+" above #{exp}",t,w);}else this.assert(s>t,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",t);}function p(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to least must be a number":a=f+"the argument to least must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w>=t,"expected #{this} to have a "+b+" at least #{exp} but got #{act}","expected #{this} to have a "+b+" below #{exp}",t,w);}else this.assert(s>=t,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",t);}function w(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to below must be a number":a=f+"the argument to below must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w<t,"expected #{this} to have a "+b+" below #{exp} but got #{act}","expected #{this} to not have a "+b+" below #{exp}",t,w);}else this.assert(s<t,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",t);}function b(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to most must be a number":a=f+"the argument to most must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w<=t,"expected #{this} to have a "+b+" at most #{exp} but got #{act}","expected #{this} to have a "+b+" above #{exp}",t,w);}else this.assert(s<=t,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",t);}function v(t,n){n&&o(this,"message",n);var r=o(this,"object"),a=o(this,"ssfi"),s=o(this,"message");try{var c=r instanceof t;}catch(n){if(n instanceof TypeError)throw new i((s=s?s+": ":"")+"The instanceof assertion needs a constructor but "+e.type(t)+" was given.",void 0,a);throw n;}var u=e.getName(t);null===u&&(u="an unnamed constructor"),this.assert(c,"expected #{this} to be an instance of "+u,"expected #{this} to not be an instance of "+u);}function m(t,n,r){r&&o(this,"message",r);var a=o(this,"nested"),s=o(this,"own"),c=o(this,"message"),u=o(this,"object"),f=o(this,"ssfi"),h=_typeof(t);if(c=c?c+": ":"",a){if("string"!==h)throw new i(c+"the argument to property must be a string when using nested syntax",void 0,f);}else if("string"!==h&&"number"!==h&&"symbol"!==h)throw new i(c+"the argument to property must be a string, number, or symbol",void 0,f);if(a&&s)throw new i(c+'The "nested" and "own" flags cannot be combined.',void 0,f);if(null==u)throw new i(c+"Target cannot be null or undefined.",void 0,f);var l,d=o(this,"deep"),p=o(this,"negate"),w=a?e.getPathInfo(u,t):null,b=a?w.value:u[t],v="";d&&(v+="deep "),s&&(v+="own "),a&&(v+="nested "),v+="property ",l=s?Object.prototype.hasOwnProperty.call(u,t):a?w.exists:e.hasProperty(u,t),p&&1!==arguments.length||this.assert(l,"expected #{this} to have "+v+e.inspect(t),"expected #{this} to not have "+v+e.inspect(t)),arguments.length>1&&this.assert(l&&(d?e.eql(n,b):n===b),"expected #{this} to have "+v+e.inspect(t)+" of #{exp}, but got #{act}","expected #{this} to not have "+v+e.inspect(t)+" of #{act}",n,b),o(this,"object",b);}function g(t,e,n){o(this,"own",!0),m.apply(this,arguments);}function y(t,n,i){"string"==typeof n&&(i=n,n=null),i&&o(this,"message",i);var r=o(this,"object"),a=Object.getOwnPropertyDescriptor(Object(r),t);a&&n?this.assert(e.eql(n,a),"expected the own property descriptor for "+e.inspect(t)+" on #{this} to match "+e.inspect(n)+", got "+e.inspect(a),"expected the own property descriptor for "+e.inspect(t)+" on #{this} to not match "+e.inspect(n),n,a,!0):this.assert(a,"expected #{this} to have an own property descriptor for "+e.inspect(t),"expected #{this} to not have an own property descriptor for "+e.inspect(t)),o(this,"object",a);}function x(){o(this,"doLength",!0);}function j(t,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=e.type(a).toLowerCase(),c=o(this,"message"),u=o(this,"ssfi"),f="length";switch(s){case"map":case"set":f="size",r=a.size;break;default:new n(a,c,u,!0).to.have.property("length"),r=a.length;}this.assert(r==t,"expected #{this} to have a "+f+" of #{exp} but got #{act}","expected #{this} to not have a "+f+" of #{act}",t,r);}function E(t,e){e&&o(this,"message",e);var n=o(this,"object");this.assert(t.exec(n),"expected #{this} to match "+t,"expected #{this} not to match "+t);}function O(t){var n,r,a=o(this,"object"),s=e.type(a),c=e.type(t),u=o(this,"ssfi"),f=o(this,"deep"),h="",l=!0,d=o(this,"message"),p=(d=d?d+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===s||"Set"===s)h=f?"deeply ":"",r=[],a.forEach(function(t,e){r.push(e);}),"Array"!==c&&(t=Array.prototype.slice.call(arguments));else{switch(r=e.getOwnEnumerableProperties(a),c){case"Array":if(arguments.length>1)throw new i(p,void 0,u);break;case"Object":if(arguments.length>1)throw new i(p,void 0,u);t=Object.keys(t);break;default:t=Array.prototype.slice.call(arguments);}t=t.map(function(t){return"symbol"==_typeof(t)?t:String(t);});}if(!t.length)throw new i(d+"keys required",void 0,u);var w=t.length,b=o(this,"any"),v=o(this,"all"),m=t;if(b||v||(v=!0),b&&(l=m.some(function(t){return r.some(function(n){return f?e.eql(t,n):t===n;});})),v&&(l=m.every(function(t){return r.some(function(n){return f?e.eql(t,n):t===n;});}),o(this,"contains")||(l=l&&t.length==r.length)),w>1){var g=(t=t.map(function(t){return e.inspect(t);})).pop();v&&(n=t.join(", ")+", and "+g),b&&(n=t.join(", ")+", or "+g);}else n=e.inspect(t[0]);n=(w>1?"keys ":"key ")+n,n=(o(this,"contains")?"contain ":"have ")+n,this.assert(l,"expected #{this} to "+h+n,"expected #{this} to not "+h+n,m.slice(0).sort(e.compareByInspect),r.sort(e.compareByInspect),!0);}function S(t,i,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"ssfi"),u=o(this,"message"),f=o(this,"negate")||!1;new n(s,u,c,!0).is.a("function"),(t instanceof RegExp||"string"==typeof t)&&(i=t,t=null);try{s();}catch(t){a=t;}var h=void 0===t&&void 0===i,l=Boolean(t&&i),d=!1,p=!1;if(h||!h&&!f){var w="an error";t instanceof Error?w="#{exp}":t&&(w=e.checkError.getConstructorName(t)),this.assert(a,"expected #{this} to throw "+w,"expected #{this} to not throw an error but #{act} was thrown",t&&t.toString(),a instanceof Error?a.toString():"string"==typeof a?a:a&&e.checkError.getConstructorName(a));}if(t&&a&&(t instanceof Error&&e.checkError.compatibleInstance(a,t)===f&&(l&&f?d=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!f?" but #{act} was thrown":""),t.toString(),a.toString())),e.checkError.compatibleConstructor(a,t)===f&&(l&&f?d=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&e.checkError.getConstructorName(t),a instanceof Error?a.toString():a&&e.checkError.getConstructorName(a)))),a&&null!=i){var b="including";i instanceof RegExp&&(b="matching"),e.checkError.compatibleMessage(a,i)===f&&(l&&f?p=!0:this.assert(f,"expected #{this} to throw error "+b+" #{exp} but got #{act}","expected #{this} to throw error not "+b+" #{exp}",i,e.checkError.getMessage(a)));}d&&p&&this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&e.checkError.getConstructorName(t),a instanceof Error?a.toString():a&&e.checkError.getConstructorName(a)),o(this,"object",a);}function k(t,n){n&&o(this,"message",n);var i=o(this,"object"),r=o(this,"itself"),a="function"!=typeof i||r?i[t]:i.prototype[t];this.assert("function"==typeof a,"expected #{this} to respond to "+e.inspect(t),"expected #{this} to not respond to "+e.inspect(t));}function A(t,n){n&&o(this,"message",n);var i=t(o(this,"object"));this.assert(i,"expected #{this} to satisfy "+e.objDisplay(t),"expected #{this} to not satisfy"+e.objDisplay(t),!o(this,"negate"),i);}function D(t,e,r){r&&o(this,"message",r);var a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");if(new n(a,s,c,!0).is.a("number"),"number"!=typeof t||"number"!=typeof e)throw new i((s=s?s+": ":"")+"the arguments to closeTo or approximately must be numbers"+(void 0===e?", and a delta is required":""),void 0,c);this.assert(Math.abs(a-t)<=e,"expected #{this} to be close to "+t+" +/- "+e,"expected #{this} not to be close to "+t+" +/- "+e);}function T(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","change"),o(this,"realDelta",u!==r),this.assert(r!==u,"expected "+f+" to change","expected "+f+" to not change");}function M(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),new n(r,s,c,!0).is.a("number"),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","increase"),o(this,"realDelta",u-r),this.assert(u-r>0,"expected "+f+" to increase","expected "+f+" to not increase");}function q(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),new n(r,s,c,!0).is.a("number"),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","decrease"),o(this,"realDelta",r-u),this.assert(u-r<0,"expected "+f+" to decrease","expected "+f+" to not decrease");}["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(t){n.addProperty(t);}),n.addProperty("not",function(){o(this,"negate",!0);}),n.addProperty("deep",function(){o(this,"deep",!0);}),n.addProperty("nested",function(){o(this,"nested",!0);}),n.addProperty("own",function(){o(this,"own",!0);}),n.addProperty("ordered",function(){o(this,"ordered",!0);}),n.addProperty("any",function(){o(this,"any",!0),o(this,"all",!1);}),n.addProperty("all",function(){o(this,"all",!0),o(this,"any",!1);}),n.addChainableMethod("an",r),n.addChainableMethod("a",r),n.addChainableMethod("include",c,s),n.addChainableMethod("contain",c,s),n.addChainableMethod("contains",c,s),n.addChainableMethod("includes",c,s),n.addProperty("ok",function(){this.assert(o(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy");}),n.addProperty("true",function(){this.assert(!0===o(this,"object"),"expected #{this} to be true","expected #{this} to be false",!o(this,"negate"));}),n.addProperty("false",function(){this.assert(!1===o(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!o(this,"negate"));}),n.addProperty("null",function(){this.assert(null===o(this,"object"),"expected #{this} to be null","expected #{this} not to be null");}),n.addProperty("undefined",function(){this.assert(void 0===o(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined");}),n.addProperty("NaN",function(){this.assert(e.isNaN(o(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN");}),n.addProperty("exist",u),n.addProperty("exists",u),n.addProperty("empty",function(){var t,n=o(this,"object"),r=o(this,"ssfi"),a=o(this,"message");switch(a=a?a+": ":"",e.type(n).toLowerCase()){case"array":case"string":t=n.length;break;case"map":case"set":t=n.size;break;case"weakmap":case"weakset":throw new i(a+".empty was passed a weak collection",void 0,r);case"function":var s=a+".empty was passed a function "+e.getName(n);throw new i(s.trim(),void 0,r);default:if(n!==Object(n))throw new i(a+".empty was passed non-string primitive "+e.inspect(n),void 0,r);t=Object.keys(n).length;}this.assert(0===t,"expected #{this} to be empty","expected #{this} not to be empty");}),n.addProperty("arguments",f),n.addProperty("Arguments",f),n.addMethod("equal",h),n.addMethod("equals",h),n.addMethod("eq",h),n.addMethod("eql",l),n.addMethod("eqls",l),n.addMethod("above",d),n.addMethod("gt",d),n.addMethod("greaterThan",d),n.addMethod("least",p),n.addMethod("gte",p),n.addMethod("greaterThanOrEqual",p),n.addMethod("below",w),n.addMethod("lt",w),n.addMethod("lessThan",w),n.addMethod("most",b),n.addMethod("lte",b),n.addMethod("lessThanOrEqual",b),n.addMethod("within",function(t,r,a){a&&o(this,"message",a);var s,c=o(this,"object"),u=o(this,"doLength"),f=o(this,"message"),h=f?f+": ":"",l=o(this,"ssfi"),d=e.type(c).toLowerCase(),p=e.type(t).toLowerCase(),w=e.type(r).toLowerCase(),b=!0,v="date"===p&&"date"===w?t.toUTCString()+".."+r.toUTCString():t+".."+r;if(u&&"map"!==d&&"set"!==d&&new n(c,f,l,!0).to.have.property("length"),u||"date"!==d||"date"===p&&"date"===w?"number"===p&&"number"===w||!u&&"number"!==d?u||"date"===d||"number"===d?b=!1:s=h+"expected "+("string"===d?"'"+c+"'":c)+" to be a number or a date":s=h+"the arguments to within must be numbers":s=h+"the arguments to within must be dates",b)throw new i(s,void 0,l);if(u){var m,g="length";"map"===d||"set"===d?(g="size",m=c.size):m=c.length,this.assert(m>=t&&m<=r,"expected #{this} to have a "+g+" within "+v,"expected #{this} to not have a "+g+" within "+v);}else this.assert(c>=t&&c<=r,"expected #{this} to be within "+v,"expected #{this} to not be within "+v);}),n.addMethod("instanceof",v),n.addMethod("instanceOf",v),n.addMethod("property",m),n.addMethod("ownProperty",g),n.addMethod("haveOwnProperty",g),n.addMethod("ownPropertyDescriptor",y),n.addMethod("haveOwnPropertyDescriptor",y),n.addChainableMethod("length",j,x),n.addChainableMethod("lengthOf",j,x),n.addMethod("match",E),n.addMethod("matches",E),n.addMethod("string",function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi");new n(r,a,s,!0).is.a("string"),this.assert(~r.indexOf(t),"expected #{this} to contain "+e.inspect(t),"expected #{this} to not contain "+e.inspect(t));}),n.addMethod("keys",O),n.addMethod("key",O),n.addMethod("throw",S),n.addMethod("throws",S),n.addMethod("Throw",S),n.addMethod("respondTo",k),n.addMethod("respondsTo",k),n.addProperty("itself",function(){o(this,"itself",!0);}),n.addMethod("satisfy",A),n.addMethod("satisfies",A),n.addMethod("closeTo",D),n.addMethod("approximately",D),n.addMethod("members",function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi");new n(r,a,s,!0).to.be.an("array"),new n(t,a,s,!0).to.be.an("array");var c,u,f,h=o(this,"contains"),l=o(this,"ordered");h?(u="expected #{this} to be "+(c=l?"an ordered superset":"a superset")+" of #{exp}",f="expected #{this} to not be "+c+" of #{exp}"):(u="expected #{this} to have the same "+(c=l?"ordered members":"members")+" as #{exp}",f="expected #{this} to not have the same "+c+" as #{exp}");var d=o(this,"deep")?e.eql:void 0;this.assert(function(t,e,n,i,o){if(!i){if(t.length!==e.length)return!1;e=e.slice();}return t.every(function(t,r){if(o)return n?n(t,e[r]):t===e[r];if(!n){var a=e.indexOf(t);return-1!==a&&(i||e.splice(a,1),!0);}return e.some(function(o,r){return!!n(t,o)&&(i||e.splice(r,1),!0);});});}(t,r,d,h,l),u,f,t,r,!0);}),n.addMethod("oneOf",function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi"),c=o(this,"contains"),u=o(this,"deep");new n(t,a,s,!0).to.be.an("array"),c?this.assert(t.some(function(t){return r.indexOf(t)>-1;}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",t,r):u?this.assert(t.some(function(t){return e.eql(r,t);}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",t,r):this.assert(t.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",t,r);}),n.addMethod("change",T),n.addMethod("changes",T),n.addMethod("increase",M),n.addMethod("increases",M),n.addMethod("decrease",q),n.addMethod("decreases",q),n.addMethod("by",function(t,e){e&&o(this,"message",e);var n,i=o(this,"deltaMsgObj"),r=o(this,"initialDeltaValue"),a=o(this,"finalDeltaValue"),s=o(this,"deltaBehavior"),c=o(this,"realDelta");n="change"===s?Math.abs(a-r)===Math.abs(t):c===Math.abs(t),this.assert(n,"expected "+i+" to "+s+" by "+t,"expected "+i+" to not "+s+" by "+t);}),n.addProperty("extensible",function(){var t=o(this,"object"),e=t===Object(t)&&Object.isExtensible(t);this.assert(e,"expected #{this} to be extensible","expected #{this} to not be extensible");}),n.addProperty("sealed",function(){var t=o(this,"object"),e=t!==Object(t)||Object.isSealed(t);this.assert(e,"expected #{this} to be sealed","expected #{this} to not be sealed");}),n.addProperty("frozen",function(){var t=o(this,"object"),e=t!==Object(t)||Object.isFrozen(t);this.assert(e,"expected #{this} to be frozen","expected #{this} to not be frozen");}),n.addProperty("finite",function(t){var e=o(this,"object");this.assert("number"==typeof e&&isFinite(e),"expected #{this} to be a finite number","expected #{this} to not be a finite number");});};},{}],6:[function(t,e,n){/*!
|
82
|
+
* chai
|
83
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
84
|
+
* MIT Licensed
|
85
|
+
*/e.exports=function(t,e){/*!
|
86
|
+
* Chai dependencies.
|
87
|
+
*/var n=t.Assertion,i=e.flag,o=t.assert=function(e,i){new n(null,null,t.assert,!0).assert(e,i,"[ negation message unavailable ]");};/*!
|
88
|
+
* Module export.
|
89
|
+
*/o.fail=function(e,n,i,r){throw arguments.length<2&&(i=e,e=void 0),i=i||"assert.fail()",new t.AssertionError(i,{actual:e,expected:n,operator:r},o.fail);},o.isOk=function(t,e){new n(t,e,o.isOk,!0).is.ok;},o.isNotOk=function(t,e){new n(t,e,o.isNotOk,!0).is.not.ok;},o.equal=function(t,e,r){var a=new n(t,r,o.equal,!0);a.assert(e==i(a,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",e,t,!0);},o.notEqual=function(t,e,r){var a=new n(t,r,o.notEqual,!0);a.assert(e!=i(a,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",e,t,!0);},o.strictEqual=function(t,e,i){new n(t,i,o.strictEqual,!0).to.equal(e);},o.notStrictEqual=function(t,e,i){new n(t,i,o.notStrictEqual,!0).to.not.equal(e);},o.deepEqual=o.deepStrictEqual=function(t,e,i){new n(t,i,o.deepEqual,!0).to.eql(e);},o.notDeepEqual=function(t,e,i){new n(t,i,o.notDeepEqual,!0).to.not.eql(e);},o.isAbove=function(t,e,i){new n(t,i,o.isAbove,!0).to.be.above(e);},o.isAtLeast=function(t,e,i){new n(t,i,o.isAtLeast,!0).to.be.least(e);},o.isBelow=function(t,e,i){new n(t,i,o.isBelow,!0).to.be.below(e);},o.isAtMost=function(t,e,i){new n(t,i,o.isAtMost,!0).to.be.most(e);},o.isTrue=function(t,e){new n(t,e,o.isTrue,!0).is["true"];},o.isNotTrue=function(t,e){new n(t,e,o.isNotTrue,!0).to.not.equal(!0);},o.isFalse=function(t,e){new n(t,e,o.isFalse,!0).is["false"];},o.isNotFalse=function(t,e){new n(t,e,o.isNotFalse,!0).to.not.equal(!1);},o.isNull=function(t,e){new n(t,e,o.isNull,!0).to.equal(null);},o.isNotNull=function(t,e){new n(t,e,o.isNotNull,!0).to.not.equal(null);},o.isNaN=function(t,e){new n(t,e,o.isNaN,!0).to.be.NaN;},o.isNotNaN=function(t,e){new n(t,e,o.isNotNaN,!0).not.to.be.NaN;},o.exists=function(t,e){new n(t,e,o.exists,!0).to.exist;},o.notExists=function(t,e){new n(t,e,o.notExists,!0).to.not.exist;},o.isUndefined=function(t,e){new n(t,e,o.isUndefined,!0).to.equal(void 0);},o.isDefined=function(t,e){new n(t,e,o.isDefined,!0).to.not.equal(void 0);},o.isFunction=function(t,e){new n(t,e,o.isFunction,!0).to.be.a("function");},o.isNotFunction=function(t,e){new n(t,e,o.isNotFunction,!0).to.not.be.a("function");},o.isObject=function(t,e){new n(t,e,o.isObject,!0).to.be.a("object");},o.isNotObject=function(t,e){new n(t,e,o.isNotObject,!0).to.not.be.a("object");},o.isArray=function(t,e){new n(t,e,o.isArray,!0).to.be.an("array");},o.isNotArray=function(t,e){new n(t,e,o.isNotArray,!0).to.not.be.an("array");},o.isString=function(t,e){new n(t,e,o.isString,!0).to.be.a("string");},o.isNotString=function(t,e){new n(t,e,o.isNotString,!0).to.not.be.a("string");},o.isNumber=function(t,e){new n(t,e,o.isNumber,!0).to.be.a("number");},o.isNotNumber=function(t,e){new n(t,e,o.isNotNumber,!0).to.not.be.a("number");},o.isFinite=function(t,e){new n(t,e,o.isFinite,!0).to.be.finite;},o.isBoolean=function(t,e){new n(t,e,o.isBoolean,!0).to.be.a("boolean");},o.isNotBoolean=function(t,e){new n(t,e,o.isNotBoolean,!0).to.not.be.a("boolean");},o.typeOf=function(t,e,i){new n(t,i,o.typeOf,!0).to.be.a(e);},o.notTypeOf=function(t,e,i){new n(t,i,o.notTypeOf,!0).to.not.be.a(e);},o.instanceOf=function(t,e,i){new n(t,i,o.instanceOf,!0).to.be.instanceOf(e);},o.notInstanceOf=function(t,e,i){new n(t,i,o.notInstanceOf,!0).to.not.be.instanceOf(e);},o.include=function(t,e,i){new n(t,i,o.include,!0).include(e);},o.notInclude=function(t,e,i){new n(t,i,o.notInclude,!0).not.include(e);},o.deepInclude=function(t,e,i){new n(t,i,o.deepInclude,!0).deep.include(e);},o.notDeepInclude=function(t,e,i){new n(t,i,o.notDeepInclude,!0).not.deep.include(e);},o.nestedInclude=function(t,e,i){new n(t,i,o.nestedInclude,!0).nested.include(e);},o.notNestedInclude=function(t,e,i){new n(t,i,o.notNestedInclude,!0).not.nested.include(e);},o.deepNestedInclude=function(t,e,i){new n(t,i,o.deepNestedInclude,!0).deep.nested.include(e);},o.notDeepNestedInclude=function(t,e,i){new n(t,i,o.notDeepNestedInclude,!0).not.deep.nested.include(e);},o.ownInclude=function(t,e,i){new n(t,i,o.ownInclude,!0).own.include(e);},o.notOwnInclude=function(t,e,i){new n(t,i,o.notOwnInclude,!0).not.own.include(e);},o.deepOwnInclude=function(t,e,i){new n(t,i,o.deepOwnInclude,!0).deep.own.include(e);},o.notDeepOwnInclude=function(t,e,i){new n(t,i,o.notDeepOwnInclude,!0).not.deep.own.include(e);},o.match=function(t,e,i){new n(t,i,o.match,!0).to.match(e);},o.notMatch=function(t,e,i){new n(t,i,o.notMatch,!0).to.not.match(e);},o.property=function(t,e,i){new n(t,i,o.property,!0).to.have.property(e);},o.notProperty=function(t,e,i){new n(t,i,o.notProperty,!0).to.not.have.property(e);},o.propertyVal=function(t,e,i,r){new n(t,r,o.propertyVal,!0).to.have.property(e,i);},o.notPropertyVal=function(t,e,i,r){new n(t,r,o.notPropertyVal,!0).to.not.have.property(e,i);},o.deepPropertyVal=function(t,e,i,r){new n(t,r,o.deepPropertyVal,!0).to.have.deep.property(e,i);},o.notDeepPropertyVal=function(t,e,i,r){new n(t,r,o.notDeepPropertyVal,!0).to.not.have.deep.property(e,i);},o.ownProperty=function(t,e,i){new n(t,i,o.ownProperty,!0).to.have.own.property(e);},o.notOwnProperty=function(t,e,i){new n(t,i,o.notOwnProperty,!0).to.not.have.own.property(e);},o.ownPropertyVal=function(t,e,i,r){new n(t,r,o.ownPropertyVal,!0).to.have.own.property(e,i);},o.notOwnPropertyVal=function(t,e,i,r){new n(t,r,o.notOwnPropertyVal,!0).to.not.have.own.property(e,i);},o.deepOwnPropertyVal=function(t,e,i,r){new n(t,r,o.deepOwnPropertyVal,!0).to.have.deep.own.property(e,i);},o.notDeepOwnPropertyVal=function(t,e,i,r){new n(t,r,o.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(e,i);},o.nestedProperty=function(t,e,i){new n(t,i,o.nestedProperty,!0).to.have.nested.property(e);},o.notNestedProperty=function(t,e,i){new n(t,i,o.notNestedProperty,!0).to.not.have.nested.property(e);},o.nestedPropertyVal=function(t,e,i,r){new n(t,r,o.nestedPropertyVal,!0).to.have.nested.property(e,i);},o.notNestedPropertyVal=function(t,e,i,r){new n(t,r,o.notNestedPropertyVal,!0).to.not.have.nested.property(e,i);},o.deepNestedPropertyVal=function(t,e,i,r){new n(t,r,o.deepNestedPropertyVal,!0).to.have.deep.nested.property(e,i);},o.notDeepNestedPropertyVal=function(t,e,i,r){new n(t,r,o.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(e,i);},o.lengthOf=function(t,e,i){new n(t,i,o.lengthOf,!0).to.have.lengthOf(e);},o.hasAnyKeys=function(t,e,i){new n(t,i,o.hasAnyKeys,!0).to.have.any.keys(e);},o.hasAllKeys=function(t,e,i){new n(t,i,o.hasAllKeys,!0).to.have.all.keys(e);},o.containsAllKeys=function(t,e,i){new n(t,i,o.containsAllKeys,!0).to.contain.all.keys(e);},o.doesNotHaveAnyKeys=function(t,e,i){new n(t,i,o.doesNotHaveAnyKeys,!0).to.not.have.any.keys(e);},o.doesNotHaveAllKeys=function(t,e,i){new n(t,i,o.doesNotHaveAllKeys,!0).to.not.have.all.keys(e);},o.hasAnyDeepKeys=function(t,e,i){new n(t,i,o.hasAnyDeepKeys,!0).to.have.any.deep.keys(e);},o.hasAllDeepKeys=function(t,e,i){new n(t,i,o.hasAllDeepKeys,!0).to.have.all.deep.keys(e);},o.containsAllDeepKeys=function(t,e,i){new n(t,i,o.containsAllDeepKeys,!0).to.contain.all.deep.keys(e);},o.doesNotHaveAnyDeepKeys=function(t,e,i){new n(t,i,o.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(e);},o.doesNotHaveAllDeepKeys=function(t,e,i){new n(t,i,o.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(e);},o["throws"]=function(t,e,r,a){("string"==typeof e||e instanceof RegExp)&&(r=e,e=null);var s=new n(t,a,o["throws"],!0).to["throw"](e,r);return i(s,"object");},o.doesNotThrow=function(t,e,i,r){("string"==typeof e||e instanceof RegExp)&&(i=e,e=null),new n(t,r,o.doesNotThrow,!0).to.not["throw"](e,i);},o.operator=function(r,a,s,c){var u;switch(a){case"==":u=r==s;break;case"===":u=r===s;break;case">":u=r>s;break;case">=":u=r>=s;break;case"<":u=r<s;break;case"<=":u=r<=s;break;case"!=":u=r!=s;break;case"!==":u=r!==s;break;default:throw c=c?c+": ":c,new t.AssertionError(c+'Invalid operator "'+a+'"',void 0,o.operator);}var f=new n(u,c,o.operator,!0);f.assert(!0===i(f,"object"),"expected "+e.inspect(r)+" to be "+a+" "+e.inspect(s),"expected "+e.inspect(r)+" to not be "+a+" "+e.inspect(s));},o.closeTo=function(t,e,i,r){new n(t,r,o.closeTo,!0).to.be.closeTo(e,i);},o.approximately=function(t,e,i,r){new n(t,r,o.approximately,!0).to.be.approximately(e,i);},o.sameMembers=function(t,e,i){new n(t,i,o.sameMembers,!0).to.have.same.members(e);},o.notSameMembers=function(t,e,i){new n(t,i,o.notSameMembers,!0).to.not.have.same.members(e);},o.sameDeepMembers=function(t,e,i){new n(t,i,o.sameDeepMembers,!0).to.have.same.deep.members(e);},o.notSameDeepMembers=function(t,e,i){new n(t,i,o.notSameDeepMembers,!0).to.not.have.same.deep.members(e);},o.sameOrderedMembers=function(t,e,i){new n(t,i,o.sameOrderedMembers,!0).to.have.same.ordered.members(e);},o.notSameOrderedMembers=function(t,e,i){new n(t,i,o.notSameOrderedMembers,!0).to.not.have.same.ordered.members(e);},o.sameDeepOrderedMembers=function(t,e,i){new n(t,i,o.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(e);},o.notSameDeepOrderedMembers=function(t,e,i){new n(t,i,o.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(e);},o.includeMembers=function(t,e,i){new n(t,i,o.includeMembers,!0).to.include.members(e);},o.notIncludeMembers=function(t,e,i){new n(t,i,o.notIncludeMembers,!0).to.not.include.members(e);},o.includeDeepMembers=function(t,e,i){new n(t,i,o.includeDeepMembers,!0).to.include.deep.members(e);},o.notIncludeDeepMembers=function(t,e,i){new n(t,i,o.notIncludeDeepMembers,!0).to.not.include.deep.members(e);},o.includeOrderedMembers=function(t,e,i){new n(t,i,o.includeOrderedMembers,!0).to.include.ordered.members(e);},o.notIncludeOrderedMembers=function(t,e,i){new n(t,i,o.notIncludeOrderedMembers,!0).to.not.include.ordered.members(e);},o.includeDeepOrderedMembers=function(t,e,i){new n(t,i,o.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(e);},o.notIncludeDeepOrderedMembers=function(t,e,i){new n(t,i,o.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(e);},o.oneOf=function(t,e,i){new n(t,i,o.oneOf,!0).to.be.oneOf(e);},o.changes=function(t,e,i,r){3===arguments.length&&"function"==typeof e&&(r=i,i=null),new n(t,r,o.changes,!0).to.change(e,i);},o.changesBy=function(t,e,i,r,a){if(4===arguments.length&&"function"==typeof e){var s=r;r=i,a=s;}else 3===arguments.length&&(r=i,i=null);new n(t,a,o.changesBy,!0).to.change(e,i).by(r);},o.doesNotChange=function(t,e,i,r){return 3===arguments.length&&"function"==typeof e&&(r=i,i=null),new n(t,r,o.doesNotChange,!0).to.not.change(e,i);},o.changesButNotBy=function(t,e,i,r,a){if(4===arguments.length&&"function"==typeof e){var s=r;r=i,a=s;}else 3===arguments.length&&(r=i,i=null);new n(t,a,o.changesButNotBy,!0).to.change(e,i).but.not.by(r);},o.increases=function(t,e,i,r){return 3===arguments.length&&"function"==typeof e&&(r=i,i=null),new n(t,r,o.increases,!0).to.increase(e,i);},o.increasesBy=function(t,e,i,r,a){if(4===arguments.length&&"function"==typeof e){var s=r;r=i,a=s;}else 3===arguments.length&&(r=i,i=null);new n(t,a,o.increasesBy,!0).to.increase(e,i).by(r);},o.doesNotIncrease=function(t,e,i,r){return 3===arguments.length&&"function"==typeof e&&(r=i,i=null),new n(t,r,o.doesNotIncrease,!0).to.not.increase(e,i);},o.increasesButNotBy=function(t,e,i,r,a){if(4===arguments.length&&"function"==typeof e){var s=r;r=i,a=s;}else 3===arguments.length&&(r=i,i=null);new n(t,a,o.increasesButNotBy,!0).to.increase(e,i).but.not.by(r);},o.decreases=function(t,e,i,r){return 3===arguments.length&&"function"==typeof e&&(r=i,i=null),new n(t,r,o.decreases,!0).to.decrease(e,i);},o.decreasesBy=function(t,e,i,r,a){if(4===arguments.length&&"function"==typeof e){var s=r;r=i,a=s;}else 3===arguments.length&&(r=i,i=null);new n(t,a,o.decreasesBy,!0).to.decrease(e,i).by(r);},o.doesNotDecrease=function(t,e,i,r){return 3===arguments.length&&"function"==typeof e&&(r=i,i=null),new n(t,r,o.doesNotDecrease,!0).to.not.decrease(e,i);},o.doesNotDecreaseBy=function(t,e,i,r,a){if(4===arguments.length&&"function"==typeof e){var s=r;r=i,a=s;}else 3===arguments.length&&(r=i,i=null);return new n(t,a,o.doesNotDecreaseBy,!0).to.not.decrease(e,i).by(r);},o.decreasesButNotBy=function(t,e,i,r,a){if(4===arguments.length&&"function"==typeof e){var s=r;r=i,a=s;}else 3===arguments.length&&(r=i,i=null);new n(t,a,o.decreasesButNotBy,!0).to.decrease(e,i).but.not.by(r);},/*!
|
90
|
+
* ### .ifError(object)
|
91
|
+
*
|
92
|
+
* Asserts if value is not a false value, and throws if it is a true value.
|
93
|
+
* This is added to allow for chai to be a drop-in replacement for Node's
|
94
|
+
* assert class.
|
95
|
+
*
|
96
|
+
* var err = new Error('I am a custom error');
|
97
|
+
* assert.ifError(err); // Rethrows err!
|
98
|
+
*
|
99
|
+
* @name ifError
|
100
|
+
* @param {Object} object
|
101
|
+
* @namespace Assert
|
102
|
+
* @api public
|
103
|
+
*/o.ifError=function(t){if(t)throw t;},o.isExtensible=function(t,e){new n(t,e,o.isExtensible,!0).to.be.extensible;},o.isNotExtensible=function(t,e){new n(t,e,o.isNotExtensible,!0).to.not.be.extensible;},o.isSealed=function(t,e){new n(t,e,o.isSealed,!0).to.be.sealed;},o.isNotSealed=function(t,e){new n(t,e,o.isNotSealed,!0).to.not.be.sealed;},o.isFrozen=function(t,e){new n(t,e,o.isFrozen,!0).to.be.frozen;},o.isNotFrozen=function(t,e){new n(t,e,o.isNotFrozen,!0).to.not.be.frozen;},o.isEmpty=function(t,e){new n(t,e,o.isEmpty,!0).to.be.empty;},o.isNotEmpty=function(t,e){new n(t,e,o.isNotEmpty,!0).to.not.be.empty;},/*!
|
104
|
+
* Aliases.
|
105
|
+
*/function t(e,n){return o[n]=o[e],t;}("isOk","ok")("isNotOk","notOk")("throws","throw")("throws","Throw")("isExtensible","extensible")("isNotExtensible","notExtensible")("isSealed","sealed")("isNotSealed","notSealed")("isFrozen","frozen")("isNotFrozen","notFrozen")("isEmpty","empty")("isNotEmpty","notEmpty");};},{}],7:[function(t,e,n){/*!
|
106
|
+
* chai
|
107
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
108
|
+
* MIT Licensed
|
109
|
+
*/e.exports=function(t,e){t.expect=function(e,n){return new t.Assertion(e,n);},t.expect.fail=function(e,n,i,o){throw arguments.length<2&&(i=e,e=void 0),i=i||"expect.fail()",new t.AssertionError(i,{actual:e,expected:n,operator:o},t.expect.fail);};};},{}],8:[function(t,e,n){/*!
|
110
|
+
* chai
|
111
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
112
|
+
* MIT Licensed
|
113
|
+
*/e.exports=function(t,e){var n=t.Assertion;function i(){Object.defineProperty(Object.prototype,"should",{set:function set(t){Object.defineProperty(this,"should",{value:t,enumerable:!0,configurable:!0,writable:!0});},get:function t(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol||"function"==typeof BigInt&&this instanceof BigInt?new n(this.valueOf(),null,t):new n(this,null,t);},configurable:!0});var e={fail:function fail(n,i,o,r){throw arguments.length<2&&(o=n,n=void 0),o=o||"should.fail()",new t.AssertionError(o,{actual:n,expected:i,operator:r},e.fail);},equal:function equal(t,e,i){new n(t,i).to.equal(e);},Throw:function Throw(t,e,i,o){new n(t,o).to.Throw(e,i);},exist:function exist(t,e){new n(t,e).to.exist;},not:{}};return e.not.equal=function(t,e,i){new n(t,i).to.not.equal(e);},e.not.Throw=function(t,e,i,o){new n(t,o).to.not.Throw(e,i);},e.not.exist=function(t,e){new n(t,e).to.not.exist;},e["throw"]=e.Throw,e.not["throw"]=e.not.Throw,e;}t.should=i,t.Should=i;};},{}],9:[function(t,e,n){/*!
|
114
|
+
* Chai - addChainingMethod utility
|
115
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
116
|
+
* MIT Licensed
|
117
|
+
*//*!
|
118
|
+
* Module dependencies
|
119
|
+
*/var i=t("./addLengthGuard"),o=t("../../chai"),r=t("./flag"),a=t("./proxify"),s=t("./transferFlags"),c="function"==typeof Object.setPrototypeOf,u=function u(){},f=Object.getOwnPropertyNames(u).filter(function(t){var e=Object.getOwnPropertyDescriptor(u,t);return"object"!=_typeof(e)||!e.configurable;}),h=Function.prototype.call,l=Function.prototype.apply;e.exports=function(t,e,n,u){"function"!=typeof u&&(u=function u(){});var d={method:n,chainingBehavior:u};t.t||(t.t={}),t.t[e]=d,Object.defineProperty(t,e,{get:function get(){d.chainingBehavior.call(this);var _n=function n(){r(this,"lockSsfi")||r(this,"ssfi",_n);var t=d.method.apply(this,arguments);if(void 0!==t)return t;var e=new o.Assertion();return s(this,e),e;};if(i(_n,e,!0),c){var u=Object.create(this);u.call=h,u.apply=l,Object.setPrototypeOf(_n,u);}else Object.getOwnPropertyNames(t).forEach(function(e){if(-1===f.indexOf(e)){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(_n,e,i);}});return s(this,_n),a(_n);},configurable:!0});};},{"../../chai":2,"./addLengthGuard":10,"./flag":15,"./proxify":31,"./transferFlags":33}],10:[function(t,e,n){var i=Object.getOwnPropertyDescriptor(function(){},"length");/*!
|
120
|
+
* Chai - addLengthGuard utility
|
121
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
122
|
+
* MIT Licensed
|
123
|
+
*/e.exports=function(t,e,n){return i.configurable?(Object.defineProperty(t,"length",{get:function get(){if(n)throw Error("Invalid Chai property: "+e+'.length. Due to a compatibility issue, "length" cannot directly follow "'+e+'". Use "'+e+'.lengthOf" instead.');throw Error("Invalid Chai property: "+e+'.length. See docs for proper usage of "'+e+'".');}}),t):t;};},{}],11:[function(t,e,n){/*!
|
124
|
+
* Chai - addMethod utility
|
125
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
126
|
+
* MIT Licensed
|
127
|
+
*/var i=t("./addLengthGuard"),o=t("../../chai"),r=t("./flag"),a=t("./proxify"),s=t("./transferFlags");e.exports=function(t,e,n){var _c=function c(){r(this,"lockSsfi")||r(this,"ssfi",_c);var t=n.apply(this,arguments);if(void 0!==t)return t;var e=new o.Assertion();return s(this,e),e;};i(_c,e,!1),t[e]=a(_c,e);};},{"../../chai":2,"./addLengthGuard":10,"./flag":15,"./proxify":31,"./transferFlags":33}],12:[function(t,e,n){/*!
|
128
|
+
* Chai - addProperty utility
|
129
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
130
|
+
* MIT Licensed
|
131
|
+
*/var i=t("../../chai"),o=t("./flag"),r=t("./isProxyEnabled"),a=t("./transferFlags");e.exports=function(t,e,n){n=void 0===n?function(){}:n,Object.defineProperty(t,e,{get:function t(){r()||o(this,"lockSsfi")||o(this,"ssfi",t);var e=n.call(this);if(void 0!==e)return e;var s=new i.Assertion();return a(this,s),s;},configurable:!0});};},{"../../chai":2,"./flag":15,"./isProxyEnabled":26,"./transferFlags":33}],13:[function(t,e,n){/*!
|
132
|
+
* Chai - compareByInspect utility
|
133
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
134
|
+
* MIT Licensed
|
135
|
+
*//*!
|
136
|
+
* Module dependencies
|
137
|
+
*/var i=t("./inspect");e.exports=function(t,e){return i(t)<i(e)?-1:1;};},{"./inspect":24}],14:[function(t,e,n){/*!
|
138
|
+
* Chai - expectTypes utility
|
139
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
140
|
+
* MIT Licensed
|
141
|
+
*/var i=t("assertion-error"),o=t("./flag"),r=t("type-detect");e.exports=function(t,e){var n=o(t,"message"),a=o(t,"ssfi");n=n?n+": ":"",t=o(t,"object"),(e=e.map(function(t){return t.toLowerCase();})).sort();var s=e.map(function(t,n){var i=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an":"a";return(e.length>1&&n===e.length-1?"or ":"")+i+" "+t;}).join(", "),c=r(t).toLowerCase();if(!e.some(function(t){return c===t;}))throw new i(n+"object tested must be "+s+", but "+c+" given",void 0,a);};},{"./flag":15,"assertion-error":34,"type-detect":39}],15:[function(t,e,n){/*!
|
142
|
+
* Chai - flag utility
|
143
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
144
|
+
* MIT Licensed
|
145
|
+
*/e.exports=function(t,e,n){var i=t.o||(t.o=Object.create(null));if(3!==arguments.length)return i[e];i[e]=n;};},{}],16:[function(t,e,n){/*!
|
146
|
+
* Chai - getActual utility
|
147
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
148
|
+
* MIT Licensed
|
149
|
+
*/e.exports=function(t,e){return e.length>4?e[4]:t._obj;};},{}],17:[function(t,e,n){/*!
|
150
|
+
* Chai - getEnumerableProperties utility
|
151
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
152
|
+
* MIT Licensed
|
153
|
+
*/e.exports=function(t){var e=[];for(var n in t)e.push(n);return e;};},{}],18:[function(t,e,n){/*!
|
154
|
+
* Chai - message composition utility
|
155
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
156
|
+
* MIT Licensed
|
157
|
+
*//*!
|
158
|
+
* Module dependencies
|
159
|
+
*/var i=t("./flag"),o=t("./getActual"),r=t("./objDisplay");e.exports=function(t,e){var n=i(t,"negate"),a=i(t,"object"),s=e[3],c=o(t,e),u=n?e[2]:e[1],f=i(t,"message");return"function"==typeof u&&(u=u()),u=(u=u||"").replace(/#\{this\}/g,function(){return r(a);}).replace(/#\{act\}/g,function(){return r(c);}).replace(/#\{exp\}/g,function(){return r(s);}),f?f+": "+u:u;};},{"./flag":15,"./getActual":16,"./objDisplay":27}],19:[function(t,e,n){var i=t("type-detect"),o=t("./flag");function r(t){var e=i(t);return-1!==["Array","Object","function"].indexOf(e);}e.exports=function(t,e){var n=o(t,"operator"),i=o(t,"negate"),a=e[3],s=i?e[2]:e[1];if(n)return n;if("function"==typeof s&&(s=s()),(s=s||"")&&!/\shave\s/.test(s)){var c=r(a);return /\snot\s/.test(s)?c?"notDeepStrictEqual":"notStrictEqual":c?"deepStrictEqual":"strictEqual";}};},{"./flag":15,"type-detect":39}],20:[function(t,e,n){/*!
|
160
|
+
* Chai - getOwnEnumerableProperties utility
|
161
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
162
|
+
* MIT Licensed
|
163
|
+
*//*!
|
164
|
+
* Module dependencies
|
165
|
+
*/var i=t("./getOwnEnumerablePropertySymbols");e.exports=function(t){return Object.keys(t).concat(i(t));};},{"./getOwnEnumerablePropertySymbols":21}],21:[function(t,e,n){/*!
|
166
|
+
* Chai - getOwnEnumerablePropertySymbols utility
|
167
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
168
|
+
* MIT Licensed
|
169
|
+
*/e.exports=function(t){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable;});};},{}],22:[function(t,e,n){/*!
|
170
|
+
* Chai - getProperties utility
|
171
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
172
|
+
* MIT Licensed
|
173
|
+
*/e.exports=function(t){var e=Object.getOwnPropertyNames(t);function n(t){-1===e.indexOf(t)&&e.push(t);}for(var i=Object.getPrototypeOf(t);null!==i;)Object.getOwnPropertyNames(i).forEach(n),i=Object.getPrototypeOf(i);return e;};},{}],23:[function(t,e,n){/*!
|
174
|
+
* chai
|
175
|
+
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
|
176
|
+
* MIT Licensed
|
177
|
+
*//*!
|
178
|
+
* Dependencies that are used for multiple exports are required here only once
|
179
|
+
*/var i=t("pathval");/*!
|
180
|
+
* test utility
|
181
|
+
*/n.test=t("./test"),/*!
|
182
|
+
* type utility
|
183
|
+
*/n.type=t("type-detect"),/*!
|
184
|
+
* expectTypes utility
|
185
|
+
*/n.expectTypes=t("./expectTypes"),/*!
|
186
|
+
* message utility
|
187
|
+
*/n.getMessage=t("./getMessage"),/*!
|
188
|
+
* actual utility
|
189
|
+
*/n.getActual=t("./getActual"),/*!
|
190
|
+
* Inspect util
|
191
|
+
*/n.inspect=t("./inspect"),/*!
|
192
|
+
* Object Display util
|
193
|
+
*/n.objDisplay=t("./objDisplay"),/*!
|
194
|
+
* Flag utility
|
195
|
+
*/n.flag=t("./flag"),/*!
|
196
|
+
* Flag transferring utility
|
197
|
+
*/n.transferFlags=t("./transferFlags"),/*!
|
198
|
+
* Deep equal utility
|
199
|
+
*/n.eql=t("deep-eql"),/*!
|
200
|
+
* Deep path info
|
201
|
+
*/n.getPathInfo=i.getPathInfo,/*!
|
202
|
+
* Check if a property exists
|
203
|
+
*/n.hasProperty=i.hasProperty,/*!
|
204
|
+
* Function name
|
205
|
+
*/n.getName=t("get-func-name"),/*!
|
206
|
+
* add Property
|
207
|
+
*/n.addProperty=t("./addProperty"),/*!
|
208
|
+
* add Method
|
209
|
+
*/n.addMethod=t("./addMethod"),/*!
|
210
|
+
* overwrite Property
|
211
|
+
*/n.overwriteProperty=t("./overwriteProperty"),/*!
|
212
|
+
* overwrite Method
|
213
|
+
*/n.overwriteMethod=t("./overwriteMethod"),/*!
|
214
|
+
* Add a chainable method
|
215
|
+
*/n.addChainableMethod=t("./addChainableMethod"),/*!
|
216
|
+
* Overwrite chainable method
|
217
|
+
*/n.overwriteChainableMethod=t("./overwriteChainableMethod"),/*!
|
218
|
+
* Compare by inspect method
|
219
|
+
*/n.compareByInspect=t("./compareByInspect"),/*!
|
220
|
+
* Get own enumerable property symbols method
|
221
|
+
*/n.getOwnEnumerablePropertySymbols=t("./getOwnEnumerablePropertySymbols"),/*!
|
222
|
+
* Get own enumerable properties method
|
223
|
+
*/n.getOwnEnumerableProperties=t("./getOwnEnumerableProperties"),/*!
|
224
|
+
* Checks error against a given set of criteria
|
225
|
+
*/n.checkError=t("check-error"),/*!
|
226
|
+
* Proxify util
|
227
|
+
*/n.proxify=t("./proxify"),/*!
|
228
|
+
* addLengthGuard util
|
229
|
+
*/n.addLengthGuard=t("./addLengthGuard"),/*!
|
230
|
+
* isProxyEnabled helper
|
231
|
+
*/n.isProxyEnabled=t("./isProxyEnabled"),/*!
|
232
|
+
* isNaN method
|
233
|
+
*/n.isNaN=t("./isNaN"),/*!
|
234
|
+
* getOperator method
|
235
|
+
*/n.getOperator=t("./getOperator");},{"./addChainableMethod":9,"./addLengthGuard":10,"./addMethod":11,"./addProperty":12,"./compareByInspect":13,"./expectTypes":14,"./flag":15,"./getActual":16,"./getMessage":18,"./getOperator":19,"./getOwnEnumerableProperties":20,"./getOwnEnumerablePropertySymbols":21,"./inspect":24,"./isNaN":25,"./isProxyEnabled":26,"./objDisplay":27,"./overwriteChainableMethod":28,"./overwriteMethod":29,"./overwriteProperty":30,"./proxify":31,"./test":32,"./transferFlags":33,"check-error":35,"deep-eql":36,"get-func-name":37,pathval:38,"type-detect":39}],24:[function(t,e,n){var i=t("get-func-name"),o=t("./getProperties"),r=t("./getEnumerableProperties"),a=t("../config");e.exports=function(t,e,n,i){return c({showHidden:e,seen:[],stylize:function stylize(t){return t;}},t,void 0===n?2:n);};var s=function s(t){return"object"==(typeof HTMLElement==="undefined"?"undefined":_typeof(HTMLElement))?t instanceof HTMLElement:t&&"object"==_typeof(t)&&"nodeType"in t&&1===t.nodeType&&"string"==typeof t.nodeName;};function c(t,e,a){if(e&&"function"==typeof e.inspect&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var v=e.inspect(a,t);return"string"!=typeof v&&(v=c(t,v,a)),v;}var m=function(t,e){switch(_typeof(e)){case"undefined":return t.stylize("undefined","undefined");case"string":var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string");case"number":return 0===e&&1/e==-1/0?t.stylize("-0","number"):t.stylize(""+e,"number");case"boolean":return t.stylize(""+e,"boolean");case"symbol":return t.stylize(e.toString(),"symbol");case"bigint":return t.stylize(e.toString()+"n","bigint");}if(null===e)return t.stylize("null","null");}(t,e);if(m)return m;if(s(e)){if("outerHTML"in e)return e.outerHTML;try{if(document.xmlVersion)return new XMLSerializer().serializeToString(e);var g=document.createElementNS("http://www.w3.org/1999/xhtml","_");g.appendChild(e.cloneNode(!1));var y=g.innerHTML.replace("><",">"+e.innerHTML+"<");return g.innerHTML="",y;}catch(t){}}var x,j,E=r(e),O=t.showHidden?o(e):E;if(0===O.length||b(e)&&(1===O.length&&"stack"===O[0]||2===O.length&&"description"===O[0]&&"stack"===O[1])){if("function"==typeof e)return j=(x=i(e))?": "+x:"",t.stylize("[Function"+j+"]","special");if(p(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(w(e))return t.stylize(Date.prototype.toUTCString.call(e),"date");if(b(e))return u(e);}var S,k="",A=!1,D=!1,T=["{","}"];if(l(e)&&(D=!0,T=["[","]"]),d(e)&&(A=!0,T=["[","]"]),"function"==typeof e&&(k=" [Function"+(j=(x=i(e))?": "+x:"")+"]"),p(e)&&(k=" "+RegExp.prototype.toString.call(e)),w(e)&&(k=" "+Date.prototype.toUTCString.call(e)),b(e))return u(e);if(0===O.length&&(!A||0==e.length))return T[0]+k+T[1];if(a<0)return p(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");if(t.seen.push(e),A)S=function(t,e,n,i,o){for(var r=[],a=0,s=e.length;a<s;++a)Object.prototype.hasOwnProperty.call(e,String(a))?r.push(h(t,e,n,i,String(a),!0)):r.push("");return o.forEach(function(o){o.match(/^\d+$/)||r.push(h(t,e,n,i,o,!0));}),r;}(t,e,a,E,O);else{if(D)return f(e);S=O.map(function(n){return h(t,e,a,E,n,A);});}return t.seen.pop(),function(t,e,n){return t.reduce(function(t,e){return t+e.length+1;},0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1];}(S,k,T);}function u(t){return"["+Error.prototype.toString.call(t)+"]";}function f(t){for(var e="[ ",n=0;n<t.length;++n){if(e.length>=a.truncateThreshold-7){e+="...";break;}e+=t[n]+", ";}return-1!==(e+=" ]").indexOf(", ]")&&(e=e.replace(", ]"," ]")),e;}function h(t,e,n,i,o,r){var a,s,u=Object.getOwnPropertyDescriptor(e,o);if(u&&(u.get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special"))),i.indexOf(o)<0&&(a="["+o+"]"),s||(t.seen.indexOf(e[o])<0?(s=c(t,e[o],null===n?null:n-1)).indexOf("\n")>-1&&(s=r?s.split("\n").map(function(t){return" "+t;}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t;}).join("\n")):s=t.stylize("[Circular]","special")),void 0===a){if(r&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"));}return a+": "+s;}function l(t){return"object"==_typeof(t)&&/\w+Array]$/.test(v(t));}function d(t){return Array.isArray(t)||"object"==_typeof(t)&&"[object Array]"===v(t);}function p(t){return"object"==_typeof(t)&&"[object RegExp]"===v(t);}function w(t){return"object"==_typeof(t)&&"[object Date]"===v(t);}function b(t){return"object"==_typeof(t)&&"[object Error]"===v(t);}function v(t){return Object.prototype.toString.call(t);}},{"../config":4,"./getEnumerableProperties":17,"./getProperties":22,"get-func-name":37}],25:[function(t,e,n){e.exports=Number.isNaN||/*!
|
236
|
+
* Chai - isNaN utility
|
237
|
+
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
238
|
+
* MIT Licensed
|
239
|
+
*/function(t){return t!=t;};},{}],26:[function(t,e,n){var i=t("../config");/*!
|
240
|
+
* Chai - isProxyEnabled helper
|
241
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
242
|
+
* MIT Licensed
|
243
|
+
*/e.exports=function(){return i.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect;};},{"../config":4}],27:[function(t,e,n){/*!
|
244
|
+
* Chai - flag utility
|
245
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
246
|
+
* MIT Licensed
|
247
|
+
*//*!
|
248
|
+
* Module dependencies
|
249
|
+
*/var i=t("./inspect"),o=t("../config");e.exports=function(t){var e=i(t),n=Object.prototype.toString.call(t);if(o.truncateThreshold&&e.length>=o.truncateThreshold){if("[object Function]"===n)return t.name&&""!==t.name?"[Function: "+t.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+t.length+") ]";if("[object Object]"===n){var r=Object.keys(t);return"{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }";}return e;}return e;};},{"../config":4,"./inspect":24}],28:[function(t,e,n){/*!
|
250
|
+
* Chai - overwriteChainableMethod utility
|
251
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
252
|
+
* MIT Licensed
|
253
|
+
*/var i=t("../../chai"),o=t("./transferFlags");e.exports=function(t,e,n,r){var a=t.t[e],s=a.chainingBehavior;a.chainingBehavior=function(){var t=r(s).call(this);if(void 0!==t)return t;var e=new i.Assertion();return o(this,e),e;};var c=a.method;a.method=function(){var t=n(c).apply(this,arguments);if(void 0!==t)return t;var e=new i.Assertion();return o(this,e),e;};};},{"../../chai":2,"./transferFlags":33}],29:[function(t,e,n){/*!
|
254
|
+
* Chai - overwriteMethod utility
|
255
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
256
|
+
* MIT Licensed
|
257
|
+
*/var i=t("./addLengthGuard"),o=t("../../chai"),r=t("./flag"),a=t("./proxify"),s=t("./transferFlags");e.exports=function(t,e,n){var c=t[e],u=function u(){throw new Error(e+" is not a function");};c&&"function"==typeof c&&(u=c);var _f=function f(){r(this,"lockSsfi")||r(this,"ssfi",_f);var t=r(this,"lockSsfi");r(this,"lockSsfi",!0);var e=n(u).apply(this,arguments);if(r(this,"lockSsfi",t),void 0!==e)return e;var i=new o.Assertion();return s(this,i),i;};i(_f,e,!1),t[e]=a(_f,e);};},{"../../chai":2,"./addLengthGuard":10,"./flag":15,"./proxify":31,"./transferFlags":33}],30:[function(t,e,n){/*!
|
258
|
+
* Chai - overwriteProperty utility
|
259
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
260
|
+
* MIT Licensed
|
261
|
+
*/var i=t("../../chai"),o=t("./flag"),r=t("./isProxyEnabled"),a=t("./transferFlags");e.exports=function(t,e,n){var s=Object.getOwnPropertyDescriptor(t,e),c=function c(){};s&&"function"==typeof s.get&&(c=s.get),Object.defineProperty(t,e,{get:function t(){r()||o(this,"lockSsfi")||o(this,"ssfi",t);var e=o(this,"lockSsfi");o(this,"lockSsfi",!0);var s=n(c).call(this);if(o(this,"lockSsfi",e),void 0!==s)return s;var u=new i.Assertion();return a(this,u),u;},configurable:!0});};},{"../../chai":2,"./flag":15,"./isProxyEnabled":26,"./transferFlags":33}],31:[function(t,e,n){var i=t("../config"),o=t("./flag"),r=t("./getProperties"),a=t("./isProxyEnabled"),s=["__flags","__methods","_obj","assert"];e.exports=function(t,e){return a()?new Proxy(t,{get:function t(n,a){if("string"==typeof a&&-1===i.proxyExcludedKeys.indexOf(a)&&!Reflect.has(n,a)){if(e)throw Error("Invalid Chai property: "+e+"."+a+'. See docs for proper usage of "'+e+'".');var c=null,u=4;throw r(n).forEach(function(t){if(!Object.prototype.hasOwnProperty(t)&&-1===s.indexOf(t)){var e=function(t,e,n){if(Math.abs(t.length-e.length)>=n)return n;for(var i=[],o=0;o<=t.length;o++)i[o]=Array(e.length+1).fill(0),i[o][0]=o;for(var r=0;r<e.length;r++)i[0][r]=r;for(o=1;o<=t.length;o++){var a=t.charCodeAt(o-1);for(r=1;r<=e.length;r++)Math.abs(o-r)>=n?i[o][r]=n:i[o][r]=Math.min(i[o-1][r]+1,i[o][r-1]+1,i[o-1][r-1]+(a===e.charCodeAt(r-1)?0:1));}return i[t.length][e.length];}(a,t,u);e<u&&(c=t,u=e);}}),null!==c?Error("Invalid Chai property: "+a+'. Did you mean "'+c+'"?'):Error("Invalid Chai property: "+a);}return-1!==s.indexOf(a)||o(n,"lockSsfi")||o(n,"ssfi",t),Reflect.get(n,a);}}):t;};},{"../config":4,"./flag":15,"./getProperties":22,"./isProxyEnabled":26}],32:[function(t,e,n){/*!
|
262
|
+
* Chai - test utility
|
263
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
264
|
+
* MIT Licensed
|
265
|
+
*//*!
|
266
|
+
* Module dependencies
|
267
|
+
*/var i=t("./flag");e.exports=function(t,e){var n=i(t,"negate"),o=e[0];return n?!o:o;};},{"./flag":15}],33:[function(t,e,n){/*!
|
268
|
+
* Chai - transferFlags utility
|
269
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
270
|
+
* MIT Licensed
|
271
|
+
*/e.exports=function(t,e,n){var i=t.o||(t.o=Object.create(null));for(var o in e.o||(e.o=Object.create(null)),n=3!==arguments.length||n,i)(n||"object"!==o&&"ssfi"!==o&&"lockSsfi"!==o&&"message"!=o)&&(e.o[o]=i[o]);};},{}],34:[function(t,e,n){/*!
|
272
|
+
* assertion-error
|
273
|
+
* Copyright(c) 2013 Jake Luer <jake@qualiancy.com>
|
274
|
+
* MIT Licensed
|
275
|
+
*//*!
|
276
|
+
* Return a function that will copy properties from
|
277
|
+
* one object to another excluding any originally
|
278
|
+
* listed. Returned function will create a new `{}`.
|
279
|
+
*
|
280
|
+
* @param {String} excluded properties ...
|
281
|
+
* @return {Function}
|
282
|
+
*/function i(){var t=[].slice.call(arguments);function e(e,n){Object.keys(n).forEach(function(i){~t.indexOf(i)||(e[i]=n[i]);});}return function(){for(var t=[].slice.call(arguments),n=0,i={};n<t.length;n++)e(i,t[n]);return i;};}/*!
|
283
|
+
* Primary Exports
|
284
|
+
*/function o(t,e,n){var r=i("name","message","stack","constructor","toJSON")(e||{});for(var a in this.message=t||"Unspecified AssertionError",this.showDiff=!1,r)this[a]=r[a];if(n=n||o,Error.captureStackTrace)Error.captureStackTrace(this,n);else try{throw new Error();}catch(t){this.stack=t.stack;}}/*!
|
285
|
+
* Inherit from Error.prototype
|
286
|
+
*/e.exports=o,o.prototype=Object.create(Error.prototype),/*!
|
287
|
+
* Statically set name
|
288
|
+
*/o.prototype.name="AssertionError",/*!
|
289
|
+
* Ensure correct constructor
|
290
|
+
*/o.prototype.constructor=o,o.prototype.toJSON=function(t){var e=i("constructor","toJSON","stack")({name:this.name},this);return!1!==t&&this.stack&&(e.stack=this.stack),e;};},{}],35:[function(t,e,n){var i=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\(\/]+)/;function o(t){var e="";if(void 0===t.name){var n=String(t).match(i);n&&(e=n[1]);}else e=t.name;return e;}e.exports={compatibleInstance:function compatibleInstance(t,e){return e instanceof Error&&t===e;},compatibleConstructor:function compatibleConstructor(t,e){return e instanceof Error?t.constructor===e.constructor||t instanceof e.constructor:(e.prototype instanceof Error||e===Error)&&(t.constructor===e||t instanceof e);},compatibleMessage:function compatibleMessage(t,e){var n="string"==typeof t?t:t.message;return e instanceof RegExp?e.test(n):"string"==typeof e&&-1!==n.indexOf(e);},getMessage:function getMessage(t){var e="";return t&&t.message?e=t.message:"string"==typeof t&&(e=t),e;},getConstructorName:function getConstructorName(t){var e=t;return t instanceof Error?e=o(t.constructor):"function"==typeof t&&(e=o(t).trim()||o(new t())),e;}};},{}],36:[function(t,e,n){/*!
|
291
|
+
* deep-eql
|
292
|
+
* Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
|
293
|
+
* MIT Licensed
|
294
|
+
*/var i=t("type-detect");function o(){this._key="chai/deep-eql__"+Math.random()+Date.now();}o.prototype={get:function get(t){return t[this._key];},set:function set(t,e){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:e,configurable:!0});}};var r="function"==typeof WeakMap?WeakMap:o;/*!
|
295
|
+
* Check to see if the MemoizeMap has recorded a result of the two operands
|
296
|
+
*
|
297
|
+
* @param {Mixed} leftHandOperand
|
298
|
+
* @param {Mixed} rightHandOperand
|
299
|
+
* @param {MemoizeMap} memoizeMap
|
300
|
+
* @returns {Boolean|null} result
|
301
|
+
*/function a(t,e,n){if(!n||b(t)||b(e))return null;var i=n.get(t);if(i){var o=i.get(e);if("boolean"==typeof o)return o;}return null;}/*!
|
302
|
+
* Set the result of the equality into the MemoizeMap
|
303
|
+
*
|
304
|
+
* @param {Mixed} leftHandOperand
|
305
|
+
* @param {Mixed} rightHandOperand
|
306
|
+
* @param {MemoizeMap} memoizeMap
|
307
|
+
* @param {Boolean} result
|
308
|
+
*/function s(t,e,n,i){if(n&&!b(t)&&!b(e)){var o=n.get(t);o?o.set(e,i):((o=new r()).set(e,i),n.set(t,o));}}/*!
|
309
|
+
* Primary Export
|
310
|
+
*/function c(t,e,n){if(n&&n.comparator)return f(t,e,n);var i=u(t,e);return null!==i?i:f(t,e,n);}function u(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e||!b(t)&&!b(e)&&null;}/*!
|
311
|
+
* The main logic of the `deepEqual` function.
|
312
|
+
*
|
313
|
+
* @param {Mixed} leftHandOperand
|
314
|
+
* @param {Mixed} rightHandOperand
|
315
|
+
* @param {Object} [options] (optional) Additional options
|
316
|
+
* @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
|
317
|
+
* @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
|
318
|
+
complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
|
319
|
+
references to blow the stack.
|
320
|
+
* @return {Boolean} equal match
|
321
|
+
*/function f(t,e,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new r());var o=n&&n.comparator,c=a(t,e,n.memoize);if(null!==c)return c;var f=a(e,t,n.memoize);if(null!==f)return f;if(o){var l=o(t,e);if(!1===l||!0===l)return s(t,e,n.memoize,l),l;var d=u(t,e);if(null!==d)return d;}var p=i(t);if(p!==i(e))return s(t,e,n.memoize,!1),!1;s(t,e,n.memoize,!0);var w=h(t,e,p,n);return s(t,e,n.memoize,w),w;}function h(t,e,n,i){switch(n){case"String":case"Number":case"Boolean":case"Date":return c(t.valueOf(),e.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":case"Error":return t===e;case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return l(t,e,i);case"RegExp":/*!
|
322
|
+
* Compare two Regular Expressions for equality.
|
323
|
+
*
|
324
|
+
* @param {RegExp} leftHandOperand
|
325
|
+
* @param {RegExp} rightHandOperand
|
326
|
+
* @return {Boolean} result
|
327
|
+
*/return function(t,e){return t.toString()===e.toString();}/*!
|
328
|
+
* Compare two Sets/Maps for equality. Faster than other equality functions.
|
329
|
+
*
|
330
|
+
* @param {Set} leftHandOperand
|
331
|
+
* @param {Set} rightHandOperand
|
332
|
+
* @param {Object} [options] (Optional)
|
333
|
+
* @return {Boolean} result
|
334
|
+
*/(t,e);case"Generator":/*!
|
335
|
+
* Simple equality for generator objects such as those returned by generator functions.
|
336
|
+
*
|
337
|
+
* @param {Iterable} leftHandOperand
|
338
|
+
* @param {Iterable} rightHandOperand
|
339
|
+
* @param {Object} [options] (Optional)
|
340
|
+
* @return {Boolean} result
|
341
|
+
*/return function(t,e,n){return l(p(t),p(e),n);}/*!
|
342
|
+
* Determine if the given object has an @@iterator function.
|
343
|
+
*
|
344
|
+
* @param {Object} target
|
345
|
+
* @return {Boolean} `true` if the object has an @@iterator function.
|
346
|
+
*/(t,e,i);case"DataView":return l(new Uint8Array(t.buffer),new Uint8Array(e.buffer),i);case"ArrayBuffer":return l(new Uint8Array(t),new Uint8Array(e),i);case"Set":case"Map":return function(t,e,n){if(t.size!==e.size)return!1;if(0===t.size)return!0;var i=[],o=[];return t.forEach(function(t,e){i.push([t,e]);}),e.forEach(function(t,e){o.push([t,e]);}),l(i.sort(),o.sort(),n);}/*!
|
347
|
+
* Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
|
348
|
+
*
|
349
|
+
* @param {Iterable} leftHandOperand
|
350
|
+
* @param {Iterable} rightHandOperand
|
351
|
+
* @param {Object} [options] (Optional)
|
352
|
+
* @return {Boolean} result
|
353
|
+
*/(t,e,i);default:/*!
|
354
|
+
* Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
|
355
|
+
* for each enumerable key in the object.
|
356
|
+
*
|
357
|
+
* @param {Mixed} leftHandOperand
|
358
|
+
* @param {Mixed} rightHandOperand
|
359
|
+
* @param {Object} [options] (Optional)
|
360
|
+
* @return {Boolean} result
|
361
|
+
*/return function(t,e,n){var i=w(t),o=w(e);if(i.length&&i.length===o.length)return i.sort(),o.sort(),!1!==l(i,o)&&/*!
|
362
|
+
* Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
|
363
|
+
* each key. If any value of the given key is not equal, the function will return false (early).
|
364
|
+
*
|
365
|
+
* @param {Mixed} leftHandOperand
|
366
|
+
* @param {Mixed} rightHandOperand
|
367
|
+
* @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
|
368
|
+
* @param {Object} [options] (Optional)
|
369
|
+
* @return {Boolean} result
|
370
|
+
*/function(t,e,n,i){var o=n.length;if(0===o)return!0;for(var r=0;r<o;r+=1)if(!1===c(t[n[r]],e[n[r]],i))return!1;return!0;}(t,e,i,n);var r=d(t),a=d(e);return r.length&&r.length===a.length?(r.sort(),a.sort(),l(r,a,n)):0===i.length&&0===r.length&&0===o.length&&0===a.length;}/*!
|
371
|
+
* Returns true if the argument is a primitive.
|
372
|
+
*
|
373
|
+
* This intentionally returns true for all objects that can be compared by reference,
|
374
|
+
* including functions and symbols.
|
375
|
+
*
|
376
|
+
* @param {Mixed} value
|
377
|
+
* @return {Boolean} result
|
378
|
+
*/(t,e,i);}}function l(t,e,n){var i=t.length;if(i!==e.length)return!1;if(0===i)return!0;for(var o=-1;++o<i;)if(!1===c(t[o],e[o],n))return!1;return!0;}/*!
|
379
|
+
* Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
|
380
|
+
* This will consume the iterator - which could have side effects depending on the @@iterator implementation.
|
381
|
+
*
|
382
|
+
* @param {Object} target
|
383
|
+
* @returns {Array} an array of entries from the @@iterator function
|
384
|
+
*/function d(t){if(function(t){return"undefined"!=typeof Symbol&&"object"==_typeof(t)&&void 0!==Symbol.iterator&&"function"==typeof t[Symbol.iterator];}(t))try{return p(t[Symbol.iterator]());}catch(t){return[];}return[];}/*!
|
385
|
+
* Gets all entries from a Generator. This will consume the generator - which could have side effects.
|
386
|
+
*
|
387
|
+
* @param {Generator} target
|
388
|
+
* @returns {Array} an array of entries from the Generator.
|
389
|
+
*/function p(t){for(var e=t.next(),n=[e.value];!1===e.done;)e=t.next(),n.push(e.value);return n;}/*!
|
390
|
+
* Gets all own and inherited enumerable keys from a target.
|
391
|
+
*
|
392
|
+
* @param {Object} target
|
393
|
+
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
394
|
+
*/function w(t){var e=[];for(var n in t)e.push(n);return e;}function b(t){return null===t||"object"!=_typeof(t);}e.exports=c,e.exports.MemoizeMap=r;},{"type-detect":39}],37:[function(t,e,n){var i=Function.prototype.toString,o=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;e.exports=function(t){if("function"!=typeof t)return null;var e="";if(void 0===Function.prototype.name&&void 0===t.name){var n=i.call(t).match(o);n&&(e=n[1]);}else e=t.name;return e;};},{}],38:[function(t,e,n){function i(t,e){return null!=t&&e in Object(t);}function o(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(function(t){if("constructor"===t||"__proto__"===t||"prototype"===t)return{};var e=/^\[(\d+)\]$/.exec(t);return e?{i:parseFloat(e[1])}:{p:t.replace(/\\([.[\]])/g,"$1")};});}function r(t,e,n){var i=t,o=null;n=void 0===n?e.length:n;for(var r=0;r<n;r++){var a=e[r];i&&(i=void 0===a.p?i[a.i]:i[a.p],r===n-1&&(o=i));}return o;}function a(t,e){var n=o(e),a=n[n.length-1],s={parent:n.length>1?r(t,n,n.length-1):t,name:a.p||a.i,value:r(t,n)};return s.exists=i(s.parent,s.name),s;}e.exports={hasProperty:i,getPathInfo:a,getPathValue:function getPathValue(t,e){return a(t,e).value;},setPathValue:function setPathValue(t,e,n){return function(t,e,n){for(var i=t,o=n.length,r=null,a=0;a<o;a++){var s=null,c=null;if(r=n[a],a===o-1)i[s=void 0===r.p?r.i:r.p]=e;else if(void 0!==r.p&&i[r.p])i=i[r.p];else if(void 0!==r.i&&i[r.i])i=i[r.i];else{var u=n[a+1];s=void 0===r.p?r.i:r.p,c=void 0===u.p?[]:{},i[s]=c,i=i[s];}}}(t,n,o(e)),t;}};},{}],39:[function(t,e,n){!function(t,i){"object"==_typeof(n)&&void 0!==e?e.exports=i():t.typeDetect=i();}(this,function(){var t="function"==typeof Promise,e="object"==(typeof self==="undefined"?"undefined":_typeof(self))?self:o,n="undefined"!=typeof Symbol,i="undefined"!=typeof Map,r="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,u=n&&void 0!==Symbol.iterator,f=n&&void 0!==Symbol.toStringTag,h=r&&"function"==typeof Set.prototype.entries,l=i&&"function"==typeof Map.prototype.entries,d=h&&Object.getPrototypeOf(new Set().entries()),p=l&&Object.getPrototypeOf(new Map().entries()),w=u&&"function"==typeof Array.prototype[Symbol.iterator],b=w&&Object.getPrototypeOf([][Symbol.iterator]()),v=u&&"function"==typeof String.prototype[Symbol.iterator],m=v&&Object.getPrototypeOf(""[Symbol.iterator]());return function(n){var o=_typeof(n);if("object"!==o)return o;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===f||!(Symbol.toStringTag in n)))return"Array";if("object"==(typeof window==="undefined"?"undefined":_typeof(window))&&null!==window){if("object"==_typeof(window.location)&&n===window.location)return"Location";if("object"==_typeof(window.document)&&n===window.document)return"Document";if("object"==_typeof(window.navigator)){if("object"==_typeof(window.navigator.mimeTypes)&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==_typeof(window.navigator.plugins)&&n===window.navigator.plugins)return"PluginArray";}if(("function"==typeof window.HTMLElement||"object"==_typeof(window.HTMLElement))&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement";}}var u=f&&n[Symbol.toStringTag];if("string"==typeof u)return u;var h=Object.getPrototypeOf(n);return h===RegExp.prototype?"RegExp":h===Date.prototype?"Date":t&&h===Promise.prototype?"Promise":r&&h===Set.prototype?"Set":i&&h===Map.prototype?"Map":s&&h===WeakSet.prototype?"WeakSet":a&&h===WeakMap.prototype?"WeakMap":c&&h===DataView.prototype?"DataView":i&&h===p?"Map Iterator":r&&h===d?"Set Iterator":w&&h===b?"Array Iterator":v&&h===m?"String Iterator":null===h?"Object":Object.prototype.toString.call(n).slice(8,-1);};});},{}]},{},[1])(1);a.version,a.AssertionError,a.use,a.util,a.config,a.Assertion;_export("a",s=a.expect);a.should,a.Should,a.assert;c=["script","style","svg"],u=["class","id"],f=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];l=new URL(window.location.href).searchParams.get("wtr-session-id");v=/*#__PURE__*/_wrapRegExp(/snapshots\[[^\]]+] = (\n)?(`[^`]*`)/gm,{content:2});O={};E={get exports(){return O;},set exports(t){O=t;}},function(t){E.exports=t;}(function(t,e){var n=e.flag,_i=function i(t){var e;return a(t)?0===t.length?"empty NodeList":(e=Array.prototype.slice.call(t,0,5).map(_i).join(", "),t.length>5?e+"... (+"+(t.length-5)+" more)":e):r(t)?(e=t.tagName.toLowerCase(),t.id&&(e+="#"+t.id),t.className&&(e+="."+String(t.className).replace(/\s+/g,".")),Array.prototype.forEach.call(t.attributes,function(t){"class"!==t.name&&"id"!==t.name&&(e+="["+t.name+(t.value?'="'+t.value+'"]':"]"));}),e):String(t);},o=function o(t,_o){var r=n(this,"object"),a=r.getAttribute(t);n(this,"negate")&&void 0!==_o||this.assert(!!r.attributes[t],"expected "+_i(r)+" to have an attribute #{exp}","expected "+_i(r)+" not to have an attribute #{exp}",t),void 0!==_o&&this.assert(_o===a,"expected "+_i(r)+" to have an attribute "+e.inspect(t)+" with the value #{exp}, but the value was #{act}","expected "+_i(r)+" not to have an attribute "+e.inspect(t)+" with the value #{act}",_o,a),n(this,"object",a);},r=function r(t){return 1===t.nodeType;},a=function a(t){return"[object NodeList]"===Object.prototype.toString.call(t);};e.elToString=_i,t.Assertion.addMethod("attr",o),t.Assertion.addMethod("attribute",o),t.Assertion.addMethod("class",function(t){var e=n(this,"object");if(t instanceof RegExp)return this.assert(Array.from(e.classList).some(function(e){return t.test(e);}),"expected "+_i(e)+" to have class matching #{exp}","expected "+_i(e)+" not to have class matching #{exp}",t);this.assert(e.classList.contains(t),"expected "+_i(e)+" to have class #{exp}","expected "+_i(e)+" not to have class #{exp}",t);}),t.Assertion.addMethod("id",function(t){var e=n(this,"object");this.assert(e.id==t,"expected "+_i(e)+" to have id #{exp}","expected "+_i(e)+" not to have id #{exp}",t);}),t.Assertion.addMethod("html",function(t){var e=n(this,"object"),o=n(this,"object").innerHTML;n(this,"contains")?this.assert(o.indexOf(t)>=0,"expected #{act} to contain HTML #{exp}","expected #{act} not to contain HTML #{exp}",t,o):this.assert(o===t,"expected "+_i(e)+" to have HTML #{exp}, but the HTML was #{act}","expected "+_i(e)+" not to have HTML #{exp}",t,o);}),t.Assertion.addChainableMethod("trimmed",null,function(){n(this,"trim-text",!0);}),t.Assertion.addProperty("rendered",function(){n(this,"rendered-text",!0);}),t.Assertion.addMethod("text",function(t){var o,r,s=n(this,"object"),c=n(this,"contains"),u=n(this,"trim-text"),f=n(this,"rendered-text")?"innerText":"textContent";a(s)?(o=Array.prototype.map.call(s,function(t){return u?t[f].trim():t[f];}),Array.isArray(t)?(r=c?t[n(this,"negate")?"some":"every"](function(t){return Array.prototype.some.call(s,function(e){return(u?e[f].trim():e[f])===t;});}):e.eql(o,t),o=o.join(),t=t.join()):(o=o.join(""),r=c?o.indexOf(t)>=0:o===t)):(o=u?s[f].trim():s[f],r=c?o.indexOf(t)>=0:o===t);var h=_i(s),l="";u&&(l+="trimmed "),n(this,"rendered-text")&&(l+="rendered "),l+="text",c?this.assert(r,"expected "+h+" to contain #{exp}, but the "+l+" was #{act}","expected "+h+" not to contain #{exp}, but the "+l+" was #{act}",t,o):this.assert(r,"expected "+h+" to have "+l+" #{exp}, but the "+l+" was #{act}","expected "+h+" not to have "+l+" #{exp}",t,o);}),t.Assertion.addMethod("value",function(t){var e=n(this,"object"),o=n(this,"object").value;this.assert(n(this,"object").value===t,"expected "+_i(e)+" to have value #{exp}, but the value was #{act}","expected "+_i(e)+" not to have value #{exp}",t,o);}),t.Assertion.overwriteProperty("exist",function(t){return function(){var e=n(this,"object");a(e)?this.assert(e.length>0,"expected an empty NodeList to have nodes","expected "+_i(e)+" to not exist"):t.apply(this,arguments);};}),t.Assertion.overwriteProperty("empty",function(t){return function(){var e=n(this,"object");r(e)?this.assert(0===e.children.length,"expected "+_i(e)+" to be empty","expected "+_i(e)+" to not be empty"):a(e)?this.assert(0===e.length,"expected "+_i(e)+" to be empty","expected "+_i(e)+" to not be empty"):t.apply(this,arguments);};}),t.Assertion.overwriteChainableMethod("length",function(t){return function(e){var o=n(this,"object");if(a(o)||r(o)){var s=o.children?o.children.length:o.length;this.assert(s===e,"expected "+_i(o)+" to have #{exp} children but it had #{act} children","expected "+_i(o)+" to not have #{exp} children",e,s);}else t.apply(this,arguments);};},function(t){return function(){t.call(this);};}),t.Assertion.overwriteMethod("match",function(t){return function(e){var o=n(this,"object");r(o)?this.assert(o.matches(e),"expected "+_i(o)+" to match #{exp}","expected "+_i(o)+" to not match #{exp}",e):a(o)?this.assert(!!o.length&&Array.prototype.every.call(o,function(t){return t.matches(e);}),"expected "+_i(o)+" to match #{exp}","expected "+_i(o)+" to not match #{exp}",e):t.apply(this,arguments);};}),t.Assertion.overwriteChainableMethod("contain",function(t){return function(e){var o=n(this,"object");r(o)?"string"==typeof e?this.assert(!!o.querySelector(e),"expected "+_i(o)+" to contain #{exp}","expected "+_i(o)+" to not contain #{exp}",e):this.assert(o.contains(e),"expected "+_i(o)+" to contain "+_i(e),"expected "+_i(o)+" to not contain "+_i(e)):t.apply(this,arguments);};},function(t){return function(){t.call(this);};}),t.Assertion.addMethod("descendant",function(t){var e=n(this,"object"),o=t;"string"==typeof t?(o=e.querySelector(t),this.assert(!!o,"expected "+_i(e)+" to have descendant #{exp}","expected "+_i(e)+" to not have descendant #{exp}",t)):this.assert(e.contains(t),"expected "+_i(e)+" to contain "+_i(t),"expected "+_i(e)+" to not contain "+_i(t)),n(this,"object",o);}),t.Assertion.addMethod("descendants",function(t){var e=n(this,"object"),o=e.querySelectorAll(t);this.assert(!!o.length,"expected "+_i(e)+" to have descendants #{exp}","expected "+_i(e)+" to not have descendants #{exp}",t),n(this,"object",o);}),t.Assertion.addProperty("displayed",function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).display:t.style.display;this.assert("none"!==e,"expected "+_i(t)+" to be displayed, but it was not","expected "+_i(t)+" to not be displayed, but it was as "+e,e);}),t.Assertion.addProperty("visible",function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).visibility:t.style.visibility;this.assert("hidden"!==e&&"collapse"!==e,"expected "+_i(t)+" to be visible, but it was "+("hidden"===e?"hidden":"collapsed"),"expected "+_i(t)+" to not be visible, but it was",e);}),t.Assertion.addMethod("tagName",function(t){var e=n(this,"object"),o=e.tagName;this.assert(o.toUpperCase()===t.toUpperCase(),"expected "+_i(e)+" to have tagName "+t+", but it was "+o,"expected "+_i(e)+" to not have tagName "+t+", but it was "+o,o);}),t.Assertion.addMethod("style",function(t,e){var o=n(this,"object"),r=window.getComputedStyle(o).getPropertyValue(t).trim();this.assert(r===e,"expected "+_i(o)+" to have style property "+t+" equal to "+e+", but it was equal to "+r,"expected "+_i(o)+" to not have style property "+t+" equal to "+e+", but it was equal to "+r,r);}),t.Assertion.overwriteProperty("focus",function(){return function(){var t=n(this,"object"),e=t.ownerDocument.activeElement;this.assert(t===t.ownerDocument.activeElement,"expected #{this} to have focus","expected #{this} not to have focus",t,e);};}),t.Assertion.overwriteProperty("checked",function(){return function(){var t=n(this,"object");if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type&&"radio"!==t.type)throw new TypeError(_i(t)+" is not a checkbox or radio input");this.assert(t.checked,"expected "+_i(t)+" to be checked","expected "+_i(t)+" to not be checked");};});});S=O;k={};!function(t){!function(e){t.exports=e;}(function(t,e){var n,i,o,r=Array.prototype.slice;function a(t){return"function"==typeof t&&"function"==typeof t.getCall&&"function"==typeof t.calledWithExactly;}function s(t){switch(t){case 1:return"once";case 2:return"twice";case 3:return"thrice";default:return(t||0)+" times";}}function c(t){if(!a(t._obj)&&(!(n=t._obj)||!a(n.proxy)))throw new TypeError(e.inspect(t._obj)+" is not a spy or a call to a spy!");var n;}function u(t,e,n,i,o){var r=i?"always have ":"have ";function s(e){return t.printf.apply(t,e);}return n=n||"",a(t.proxy)&&(t=t.proxy),{affirmative:function affirmative(){return s(["expected %n to "+r+e+n].concat(o));},negative:function negative(){return s(["expected %n to not "+r+e].concat(o));}};}function f(n,i,o){e.addProperty(t.Assertion.prototype,n,function(){c(this);var t=u(this._obj,i,o,!1);this.assert(this._obj[n],t.affirmative,t.negative);});}function h(t,n,i){return function(){c(this);var o="always"+t[0].toUpperCase()+t.substring(1),a=e.flag(this,"always")&&"function"==typeof this._obj[o],s=a?o:t,f=u(this._obj,n,i,a,r.call(arguments));this.assert(this._obj[s].apply(this._obj,arguments),f.affirmative,f.negative);};}function l(n,i,o,r){var a=h(i,o,r);e.addMethod(t.Assertion.prototype,n,a);}function d(t,e,n){l(t,t,e,n);}e.addProperty(t.Assertion.prototype,"always",function(){e.flag(this,"always",!0);}),f("called","been called"," at least once, but it was never called"),n="callCount",i="been called exactly %1",o=", but it was called %c%C",e.addMethod(t.Assertion.prototype,n,function(t){c(this);var e=u(this._obj,i,o,!1,[s(t)]);this.assert(this._obj[n]===t,e.affirmative,e.negative);}),f("calledOnce","been called exactly once",", but it was called %c%C"),f("calledTwice","been called exactly twice",", but it was called %c%C"),f("calledThrice","been called exactly thrice",", but it was called %c%C"),function(n,i,o){var r=h(n,i,o);e.addProperty(t.Assertion.prototype,n,r);}("calledWithNew","been called with new"),d("calledBefore","been called before %1"),d("calledAfter","been called after %1"),d("calledImmediatelyBefore","been called immediately before %1"),d("calledImmediatelyAfter","been called immediately after %1"),d("calledOn","been called with %1 as this",", but it was called with %t instead"),d("calledWith","been called with arguments %*","%D"),d("calledOnceWith","been called exactly once with arguments %*","%D"),d("calledWithExactly","been called with exact arguments %*","%D"),d("calledOnceWithExactly","been called exactly once with exact arguments %*","%D"),d("calledWithMatch","been called with arguments matching %*","%D"),d("returned","returned %1"),l("thrown","threw","thrown %1");});}({get exports(){return k;},set exports(t){k=t;}});A=k;a.use(function(t,e){t.Assertion.addProperty("lightDom",function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"lightDom",!0);}),t.Assertion.addProperty("shadowDom",function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"shadowDom",!0);}),t.Assertion.addProperty("dom",function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"dom",!0);});var n=function n(t){return function(t){if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){var _e3=t.tagName.toLowerCase();var _n5=" ";return Array.prototype.slice.call(t.attributes).forEach(function(t){_n5+="".concat(t.name,"=\"").concat(t.value,"\" ");}),_n5=_n5.slice(0,-1),"<".concat(_e3).concat(_n5,">").concat(t.innerHTML,"</").concat(_e3,">");}return t.outerHTML;}(t);},i=function i(t){return t.innerHTML;},o=function o(t){return function(t){if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){var _e4=t.tagName.toLowerCase(),_n6=new RegExp(_e4,"g");var _i2=t.shadowRoot.innerHTML;return _i2=_i2.replace(/style-scope/g,""),_i2=_i2.replace(_n6,""),_i2=_i2.replace(/(class=".*?)(\s)*"/g,'$1"'),_i2=_i2.replace(/ class="\w?"/g,""),_i2;}return t.shadowRoot.innerHTML;}(t);},r=function r(e,n,i){for(var _len2=arguments.length,o=new Array(_len2>3?_len2-3:0),_key2=3;_key2<_len2;_key2++){o[_key2-3]=arguments[_key2];}var _y=y.apply(void 0,o),r=_y.message,a=_y.options,s=new t.Assertion(h(e,a),r),c=h(n,a);i?s.not.equal(c,r):s.equal(c,r);},a=function a(t){return function(a){for(var _len3=arguments.length,s=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++){s[_key3-1]=arguments[_key3];}if(e.flag(this,"lightDom")||e.flag(this,"shadowDom")||e.flag(this,"dom")){var _t3;_t3=e.flag(this,"lightDom")?i(this._obj):e.flag(this,"shadowDom")?o(this._obj):n(this._obj),r(_t3,a,e.flag(this,"negate"),s[0]);}else t.apply(this,[a].concat(s));};};function s(e,n){for(var _len4=arguments.length,i=new Array(_len4>2?_len4-2:0),_key4=2;_key4<_len4;_key4++){i[_key4-2]=arguments[_key4];}var o=window.__mocha_context__,r=window.__snapshot__,_y2=y.apply(void 0,i),a=_y2.message,s=_y2.options,c=o.index;o.index+=1;var u=g(o.runnable),f=h(e,s);if(r.update)r.set(u,c,f,"html");else{var _e5=r.get(u,c);if(_e5){var _i3=r.match(f,h(_e5.code,s));if(_i3&&n||!_i3&&!n)throw new t.AssertionError(a||"Received value does not match stored snapshot ".concat(c),{actual:f,expected:_e5.code,showDiff:!0},t.util.flag(this,"ssfi"));}else r.set(u,c,f,"html");}}function c(_x6,_x7){return _c2.apply(this,arguments);}function _c2(){_c2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(e,n){var _len5,i,_key5,_y3,o,r,a,s,c,u,_args5=arguments;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:for(_len5=_args5.length,i=new Array(_len5>2?_len5-2:0),_key5=2;_key5<_len5;_key5++){i[_key5-2]=_args5[_key5];}_y3=y.apply(void 0,i);o=_y3.message;r=_y3.options;a=g(window.__WTR_MOCHA_RUNNER__.test).join(" ");s=h(e,r);_context6.next=8;return function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(t){return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(d(t)){_context3.next=2;break;}throw new Error("You must provide a payload object");case 2:if(!("string"!=typeof t.name)){_context3.next=4;break;}throw new Error("You must provide a snapshot name");case 4:_context3.next=6;return m(t);case 6:_context3.t0=t.name;return _context3.abrupt("return",_context3.sent[_context3.t0]);case 8:case"end":return _context3.stop();}},_callee2);}));return function(_x8){return _ref3.apply(this,arguments);};}()({name:a});case 8:c=_context6.sent;_context6.next=11;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.t0=w;if(_context4.t0){_context4.next=5;break;}_context4.next=4;return p("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands");case 4:w=_context4.sent;case 5:return _context4.abrupt("return",w);case 6:case"end":return _context4.stop();}},_callee3);}))();case 11:u=_context6.sent;if(!(c&&!u.updateSnapshots)){_context6.next=17;break;}if(!(n?c===s:c!==s)){_context6.next=15;break;}throw new t.AssertionError(o||"Snapshot ".concat(a," does not match the saved snapshot on disk"),{actual:s,expected:c,showDiff:!0},t.util.flag(this,"ssfi"));case 15:_context6.next=21;break;case 17:_context6.t0=c!==s;if(!_context6.t0){_context6.next=21;break;}_context6.next=21;return function(){var _ref5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(t){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:if(d(t)){_context5.next=2;break;}throw new Error("You must provide a payload object");case 2:if(!("string"!=typeof t.name)){_context5.next=4;break;}throw new Error("You must provide a snapshot name");case 4:if(!(void 0!==t.content&&"string"!=typeof t.content)){_context5.next=6;break;}throw new Error("You must provide a snapshot content");case 6:_context5.next=8;return m();case 8:_context5.t0=t.name;_context5.sent[_context5.t0]=t.content;return _context5.abrupt("return",p("save-snapshot",t,"snapshotPlugin from @web/test-runner-commands"));case 11:case"end":return _context5.stop();}},_callee4);}));return function(_x9){return _ref5.apply(this,arguments);};}()({name:a,content:s});case 21:case"end":return _context6.stop();}},_callee5,this);}));return _c2.apply(this,arguments);}function u(t,e){for(var _len6=arguments.length,n=new Array(_len6>2?_len6-2:0),_key6=2;_key6<_len6;_key6++){n[_key6-2]=arguments[_key6];}if(window.__mocha_context__&&window.__snapshot__)return s.call.apply(s,[this,t,e].concat(n));if(window.__WTR_MOCHA_RUNNER__)return c.call.apply(c,[this,t,e].concat(n));throw new Error("Could not detect test runner environment. Snapshots require either Web Test Runner with mocha, or Karma with mocha and karma mocha snapshot");}function f(n){var r=t.util.flag(this,"object");var a;return a=e.flag(this,"shadowDom")?o(r):e.flag(this,"lightDom")?i(r):r,u.call(this,a,e.flag(this,"negate"),n);}t.Assertion.overwriteMethod("equals",a),t.Assertion.overwriteMethod("equal",a),t.Assertion.overwriteMethod("eq",a),e.addMethod(t.Assertion.prototype,"equalSnapshot",f),e.addMethod(t.Assertion.prototype,"notEqualSnapshot",f),e.addMethod(t.assert,"equalSnapshot",u),e.addMethod(t.assert,"notEqualSnapshot",u),t.assert.dom={equal:function equal(t,e){for(var _len7=arguments.length,i=new Array(_len7>2?_len7-2:0),_key7=2;_key7<_len7;_key7++){i[_key7-2]=arguments[_key7];}return r.call.apply(r,[this,n(t),e,!1].concat(i));},notEqual:function notEqual(t,e){for(var _len8=arguments.length,i=new Array(_len8>2?_len8-2:0),_key8=2;_key8<_len8;_key8++){i[_key8-2]=arguments[_key8];}return r.call.apply(r,[this,n(t),e,!0].concat(i));},equalSnapshot:function equalSnapshot(t){for(var _len9=arguments.length,e=new Array(_len9>1?_len9-1:0),_key9=1;_key9<_len9;_key9++){e[_key9-1]=arguments[_key9];}return u.call.apply(u,[this,t,!1].concat(e));},notEqualSnapshot:function notEqualSnapshot(t){for(var _len10=arguments.length,e=new Array(_len10>1?_len10-1:0),_key10=1;_key10<_len10;_key10++){e[_key10-1]=arguments[_key10];}return u.call.apply(u,[this,t,!0].concat(e));}},t.assert.lightDom={equal:function equal(t,e){for(var _len11=arguments.length,n=new Array(_len11>2?_len11-2:0),_key11=2;_key11<_len11;_key11++){n[_key11-2]=arguments[_key11];}return r.call.apply(r,[this,i(t),e,!1].concat(n));},notEqual:function notEqual(t,e){for(var _len12=arguments.length,n=new Array(_len12>2?_len12-2:0),_key12=2;_key12<_len12;_key12++){n[_key12-2]=arguments[_key12];}return r.call.apply(r,[this,i(t),e,!0].concat(n));},equalSnapshot:function equalSnapshot(t){for(var _len13=arguments.length,e=new Array(_len13>1?_len13-1:0),_key13=1;_key13<_len13;_key13++){e[_key13-1]=arguments[_key13];}return u.call.apply(u,[this,i(t),!1].concat(e));},notEqualSnapshot:function notEqualSnapshot(t){for(var _len14=arguments.length,e=new Array(_len14>1?_len14-1:0),_key14=1;_key14<_len14;_key14++){e[_key14-1]=arguments[_key14];}return u.call.apply(u,[this,i(t),!0].concat(e));}},t.assert.shadowDom={equal:function equal(t,e){for(var _len15=arguments.length,n=new Array(_len15>2?_len15-2:0),_key15=2;_key15<_len15;_key15++){n[_key15-2]=arguments[_key15];}return r.call.apply(r,[this,o(t),e,!1].concat(n));},notEqual:function notEqual(t,e){for(var _len16=arguments.length,n=new Array(_len16>2?_len16-2:0),_key16=2;_key16<_len16;_key16++){n[_key16-2]=arguments[_key16];}return r.call.apply(r,[this,o(t),e,!0].concat(n));},equalSnapshot:function equalSnapshot(t){for(var _len17=arguments.length,e=new Array(_len17>1?_len17-1:0),_key17=1;_key17<_len17;_key17++){e[_key17-1]=arguments[_key17];}return u.call.apply(u,[this,o(t),!1].concat(e));},notEqualSnapshot:function notEqualSnapshot(t){for(var _len18=arguments.length,e=new Array(_len18>1?_len18-1:0),_key18=1;_key18<_len18;_key18++){e[_key18-1]=arguments[_key18];}return u.call.apply(u,[this,o(t),!0].concat(e));}};}),a.use(function(t,e){var n=t.assert;e.addMethod(t.Assertion.prototype,"accessible",function(t){var _this=this;var n=this._obj,i=t||{},o=function(t){if(!t||!t.length)return;var e={};return t.forEach(function(t){e[t]={enabled:!1};}),e;}(i.ignoredRules),r={resultTypes:["violations"]};o&&(r.rules=o);var a=i.done?i.done:void 0;if(a||(a=function a(){}),i.ignoredTags){n.parentNode.querySelectorAll(i.ignoredTags.toString()).forEach(function(t){return t.setAttribute("aria-hidden",!0);});}var s=j(n,r).then(function(t){return function(t,e,n){var i=e.violations;if(i.length&&t)return void n();if(!i.length&&!t)return void n();var o=[];i.length&&(o[o.length]="Accessibility Violations",o[o.length]="---",i.forEach(function(t){o[o.length]="Rule: ".concat(t.id),o[o.length]="Impact: ".concat(t.impact),o[o.length]="".concat(t.help," (").concat(t.helpUrl,")"),t.nodes.forEach(function(t){o[o.length]="",t.target&&(o[o.length]="Issue target: ".concat(t.target)),o[o.length]="Context: ".concat(t.html),t.failureSummary&&(o[o.length]="".concat(t.failureSummary));}),o[o.length]="---";}));var r=new Error(o.join("\n"));throw n(r),r;}(e.flag(_this,"negate"),t,a);});return this.then=s.then.bind(s),this;}),n.isAccessible=function(e,n){return new t.Assertion(e).to.be.accessible(n);},n.isNotAccessible=function(e,n){return new t.Assertion(e).not.to.be.accessible(n);};}),a.use(S),a.use(A);q=function q(t){return"object"==_typeof(t)&&Promise.resolve(t)===t;};P=[];R=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11}),I=function I(_ref6){var t=_ref6.nodeType,e=_ref6.textContent;switch(t){case R.COMMENT_NODE:return!1;case R.TEXT_NODE:return e.trim();default:return!0;}};try{"afterEach"in window&&afterEach(function(){F();}),"teardown"in window&&teardown(function(){F();});}catch(t){}}};});
|
395
|
+
//# sourceMappingURL=fixture-fe6c932e.cjs.js.map
|