var collect=function(t){var r={};function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var i in t)e.d(n,i,function(r){return t[r]}.bind(null,i));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=10)}([function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={isArray:function(t){return Array.isArray(t)},isObject:function(t){return"object"===(void 0===t?"undefined":n(t))&&!1===Array.isArray(t)&&null!==t},isFunction:function(t){return"function"==typeof t}}},function(t,r,e){"use strict";function n(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r0:void 0!==this.items[t]&&this.items[t]===r;if(i(t))return this.items.filter((function(r,e){return t(r,e)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(t);var e=n(this.items);return e.push.apply(e,function(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r1?r-1:0),i=1;i=t.items.length}}}}},function(t,r,e){"use strict";t.exports=function(){return this.items}},function(t,r,e){"use strict";var n=e(4);t.exports=n},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var r=this,e=[],i=0;if(Array.isArray(this.items))do{var o=this.items.slice(i,i+t),s=new this.constructor(o);e.push(s),i+=t}while(i0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return new this.constructor(this.items).groupBy(t).map((function(t){return t.count()}))}},function(t,r,e){"use strict";t.exports=function(){function t(r,e,n){var i=n[0];i instanceof e&&(i=i.all());for(var o=n.slice(1),s=!o.length,u=[],c=0;c1)for(var e=1;e0;)s(n);return new this.constructor(n)}},function(t,r,e){"use strict";t.exports=function(){var t=this,r={};return Array.isArray(this.items)?Object.keys(this.items).forEach((function(e){r[t.items[e]]=Number(e)})):Object.keys(this.items).forEach((function(e){r[t.items[e]]=e})),new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(t,r){var e=this,n={};return Array.isArray(this.items)?n=this.items.slice(t*r-r,t*r):Object.keys(this.items).slice(t*r-r,t*r).forEach((function(t){n[t]=e.items[t]})),new this.constructor(n)}},function(t,r,e){"use strict";t.exports=function(t){return Array.isArray(this.items)?this.items.splice(t,1):delete this.items[t],this}},function(t,r,e){"use strict";var n=e(0).isFunction;t.exports=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==this.items[t]?this.items[t]:n(r)?r():null!==r?r:null}},function(t,r,e){"use strict";var n=e(2),i=e(0).isFunction;t.exports=function(t){var r=this,e={};return this.items.forEach((function(o,s){var u=void 0;u=i(t)?t(o,s):n(o,t)||0===n(o,t)?n(o,t):"",void 0===e[u]&&(e[u]=new r.constructor([])),e[u].push(o)})),new this.constructor(e)}},function(t,r,e){"use strict";var n=e(3);t.exports=function(){for(var t=this,r=arguments.length,e=Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return new this.constructor(t)}},function(t,r,e){"use strict";t.exports=function(t){var r=this;if(Array.isArray(this.items))return new this.constructor(this.items.map(t));var e={};return Object.keys(this.items).forEach((function(n){e[n]=t(r.items[n],n)})),new this.constructor(e)}},function(t,r,e){"use strict";t.exports=function(t){return this.map((function(r,e){return t.apply(void 0,function(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);re&&(e=o)}else void 0!==t?r.push({key:n[t],count:1}):r.push({key:n,count:1})})),r.filter((function(t){return t.count===e})).map((function(t){return t.key}))):null}},function(t,r,e){"use strict";var n=e(1);t.exports=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=n(this.items),i=e.slice(r).filter((function(r,e){return e%t==0}));return new this.constructor(i)}},function(t,r,e){"use strict";var n=e(3);t.exports=function(){for(var t=this,r=arguments.length,e=Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:1;if(this.isEmpty())return null;if(i(this.items))return 1===r?this.items.pop():new this.constructor(this.items.splice(-r));if(o(this.items)){var e=Object.keys(this.items);if(1===r){var n=e[e.length-1],u=this.items[n];return s(this.items,n),u}var c=e.slice(-r),f=c.reduce((function(r,e){return r[e]=t.items[e],r}),{});return s(this.items,c),new this.constructor(f)}return null}},function(t,r,e){"use strict";t.exports=function(t,r){return void 0!==r?this.put(r,t):(this.items.unshift(t),this)}},function(t,r,e){"use strict";var n=e(0).isFunction;t.exports=function(t,r){var e=this.items[t]||null;return e||void 0===r||(e=n(r)?r():r),delete this.items[t],e}},function(t,r,e){"use strict";t.exports=function(){var t;return(t=this.items).push.apply(t,arguments),this}},function(t,r,e){"use strict";t.exports=function(t,r){return this.items[t]=r,this}},function(t,r,e){"use strict";var n=e(1);t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=n(this.items),e=new this.constructor(r).shuffle();return t!==parseInt(t,10)?e.first():e.take(t)}},function(t,r,e){"use strict";t.exports=function(t,r){var e=this,n=null;return void 0!==r&&(n=r),Array.isArray(this.items)?this.items.forEach((function(r){n=t(n,r)})):Object.keys(this.items).forEach((function(r){n=t(n,e.items[r],r)})),n}},function(t,r,e){"use strict";t.exports=function(t){return new this.constructor(this.items).filter((function(r){return!t(r)}))}},function(t,r,e){"use strict";t.exports=function(t){if(!t)return this;if(Array.isArray(t)){var r=this.items.map((function(r,e){return t[e]||r}));return new this.constructor(r)}if("Collection"===t.constructor.name){var e=Object.assign({},this.items,t.all());return new this.constructor(e)}var n=Object.assign({},this.items,t);return new this.constructor(n)}},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var r=function t(r,e){var i=Object.assign({},r);return Object.keys(Object.assign({},r,e)).forEach((function(o){Array.isArray(e[o])||"object"!==n(e[o])?void 0===r[o]&&void 0!==e[o]?"object"===n(r[o])?i[o]=Object.assign({},e[o]):i[o]=e[o]:void 0!==r[o]&&void 0===e[o]?"object"===n(r[o])?i[o]=Object.assign({},r[o]):i[o]=r[o]:void 0!==r[o]&&void 0!==e[o]&&("object"===n(e[o])?i[o]=Object.assign({},e[o]):i[o]=e[o]):i[o]=t(r[o],e[o])})),i};return t?Array.isArray(t)||"object"===(void 0===t?"undefined":n(t))?"Collection"===t.constructor.name?new this.constructor(r(this.items,t.all())):new this.constructor(r(this.items,t)):new this.constructor(r(this.items,[t])):this}},function(t,r,e){"use strict";t.exports=function(){var t=[].concat(this.items).reverse();return new this.constructor(t)}},function(t,r,e){"use strict";var n=e(0),i=n.isArray,o=n.isObject,s=n.isFunction;t.exports=function(t,r){var e=this,n=void 0,u=function(n,i){return s(t)?t(e.items[i],i):r?e.items[i]===t:e.items[i]==t};return i(this.items)?n=this.items.findIndex(u):o(this.items)&&(n=Object.keys(this.items).find((function(t){return u(e.items[t],t)}))),!(void 0===n||n<0)&&n}},function(t,r,e){"use strict";var n=e(0),i=n.isArray,o=n.isObject,s=e(7);t.exports=function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(this.isEmpty())return null;if(i(this.items))return 1===r?this.items.shift():new this.constructor(this.items.splice(0,r));if(o(this.items)){if(1===r){var e=Object.keys(this.items)[0],n=this.items[e];return delete this.items[e],n}var u=Object.keys(this.items),c=u.slice(0,r),f=c.reduce((function(r,e){return r[e]=t.items[e],r}),{});return s(this.items,c),new this.constructor(f)}return null}},function(t,r,e){"use strict";var n=e(1);t.exports=function(){var t=n(this.items),r=void 0,e=void 0,i=void 0;for(i=t.length;i;i-=1)r=Math.floor(Math.random()*i),e=t[i-1],t[i-1]=t[r],t[r]=e;return this.items=t,this}},function(t,r,e){"use strict";var n=e(0).isObject;t.exports=function(t){var r=this;return n(this.items)?new this.constructor(Object.keys(this.items).reduce((function(e,n,i){return i+1>t&&(e[n]=r.items[n]),e}),{})):new this.constructor(this.items.slice(t))}},function(t,r,e){"use strict";var n=e(0),i=n.isArray,o=n.isObject,s=n.isFunction;t.exports=function(t){var r=this,e=null,n=void 0,u=function(r){return r===t};return s(t)&&(u=t),i(this.items)&&(n=this.items.filter((function(t){return!0!==e&&(e=u(t)),e}))),o(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!0!==e&&(e=u(r.items[n])),!1!==e&&(t[n]=r.items[n]),t}),{})),new this.constructor(n)}},function(t,r,e){"use strict";var n=e(0),i=n.isArray,o=n.isObject,s=n.isFunction;t.exports=function(t){var r=this,e=null,n=void 0,u=function(r){return r===t};return s(t)&&(u=t),i(this.items)&&(n=this.items.filter((function(t){return!0!==e&&(e=!u(t)),e}))),o(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!0!==e&&(e=!u(r.items[n])),!1!==e&&(t[n]=r.items[n]),t}),{})),new this.constructor(n)}},function(t,r,e){"use strict";t.exports=function(t,r){var e=this.items.slice(t);return void 0!==r&&(e=e.slice(0,r)),new this.constructor(e)}},function(t,r,e){"use strict";var n=e(0).isFunction;t.exports=function(t,r,e){var i=void 0;if((i=n(t)?this.filter(t):this.where(t,r,e)).isEmpty())throw new Error("Item not found.");if(i.count()>1)throw new Error("Multiple items found.");return i.first()}},function(t,r,e){"use strict";var n=e(6);t.exports=n},function(t,r,e){"use strict";t.exports=function(t){var r=[].concat(this.items);return void 0===t?this.every((function(t){return"number"==typeof t}))?r.sort((function(t,r){return t-r})):r.sort():r.sort(t),new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(){return this.sort().reverse()}},function(t,r,e){"use strict";var n=e(2),i=e(0).isFunction;t.exports=function(t){var r=[].concat(this.items),e=function(r){return i(t)?t(r):n(r,t)};return r.sort((function(t,r){var n=e(t),i=e(r);return null==n?1:null==i?-1:ni?1:0})),new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(t){return this.sortBy(t).reverse()}},function(t,r,e){"use strict";t.exports=function(){var t=this,r={};return Object.keys(this.items).sort().forEach((function(e){r[e]=t.items[e]})),new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(){var t=this,r={};return Object.keys(this.items).sort().reverse().forEach((function(e){r[e]=t.items[e]})),new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(t,r,e){var n=this.slice(t,r);if(this.items=this.diff(n.all()).all(),Array.isArray(e))for(var i=0,o=e.length;i":return i(r,t)!==Number(s)&&i(r,t)!==s.toString();case"!==":return i(r,t)!==s;case"<":return i(r,t)":return i(r,t)>s;case">=":return i(r,t)>=s}}));return new this.constructor(c)}},function(t,r,e){"use strict";t.exports=function(t,r){return this.where(t,">=",r[0]).where(t,"<=",r[r.length-1])}},function(t,r,e){"use strict";var n=e(1),i=e(2);t.exports=function(t,r){var e=n(r),o=this.items.filter((function(r){return-1!==e.indexOf(i(r,t))}));return new this.constructor(o)}},function(t,r,e){"use strict";t.exports=function(t){return this.filter((function(r){return r instanceof t}))}},function(t,r,e){"use strict";var n=e(2);t.exports=function(t,r){return this.filter((function(e){return n(e,t)r[r.length-1]}))}},function(t,r,e){"use strict";var n=e(1),i=e(2);t.exports=function(t,r){var e=n(r),o=this.items.filter((function(r){return-1===e.indexOf(i(r,t))}));return new this.constructor(o)}},function(t,r,e){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"===",null)}},function(t,r,e){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"!==",null)}},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return t instanceof this.constructor?t:"object"===(void 0===t?"undefined":n(t))?new this.constructor(t):new this.constructor([t])}},function(t,r,e){"use strict";t.exports=function(t){var r=this,e=t;e instanceof this.constructor&&(e=e.all());var n=this.items.map((function(t,n){return new r.constructor([t,e[n]])}));return new this.constructor(n)}}]);