text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("next-core-structures",[],t):"object"==typeof exports?exports["next-core-structures"]=t():e["next-core-structures"]=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=1)}([function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=3)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=e=>{const t=typeof e;return"function"===t||"object"===t&&!!e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=e=>"[object Function]"==Object.prototype.toString.call(e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=arguments;const o=(e,t)=>{let r,o;if("function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT);return o=Number.parseInt(e),()=>(--o>0&&(r=t.apply(void 0,n)),o<=1&&(t=void 0),r)};t.default=o},function(e,t,r){"use strict";var n=k(r(4)),o=k(r(1)),s=k(r(5)),u=k(r(6)),i=k(r(7)),l=k(r(8)),a=k(r(0)),c=k(r(9)),f=k(r(10)),d=k(r(11)),p=k(r(12)),y=k(r(13)),h=k(r(14)),_=k(r(15)),b=k(r(16)),O=k(r(2)),g=k(r(17)),j=r(18),x=r(19),v=r(20),m=k(r(21)),M=r(22),S=k(r(23));function k(e){return e&&e.__esModule?e:{default:e}}e.exports.shuffle=x.shuffle,e.exports.prettyPrint=x.prettyPrint,e.exports.binarySearch=x.binarySearch,e.exports.TransformerType=x.TransformerType,e.exports.Transformer=x.Transformer,e.exports.wrap=x.wrap,e.exports.filterObject=x.filterObject,e.exports.findByMatchingProperties=x.findByMatchingProperties,e.exports.sortObjects=v.sortObjects,e.exports.mergeSort=v.mergeSort,e.exports.quickSort=v.quickSort,e.exports.insertionSort=v.insertionSort,e.exports.bubbleSort=v.bubbleSort,e.exports.formatDate=m.default,e.exports.formatBinary=M.formatBinary,e.exports.binaryToHex=M.binaryToHex,e.exports.isString=n.default,e.exports.isFunction=o.default,e.exports.extend=s.default,e.exports.pad=u.default,e.exports.uniqueId=i.default,e.exports.has=l.default,e.exports.isObject=a.default,e.exports.allKeys=c.default,e.exports.create=f.default,e.exports.result=d.default,e.exports.arrayHas=p.default,e.exports.exec=y.default,e.exports.isDefined=h.default,e.exports.some=_.default,e.exports.splice=b.default,e.exports.before=O.default,e.exports.once=g.default,e.exports.filter=S.default,e.exports.fibonacci=j.fibonacci,e.exports.fibonacciSequence=j.fibonacciSequence},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=e=>"string"==typeof e||!!e&&"object"==typeof e&&"[object String]"===Object.prototype.toString.call(e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(...e)=>{let t=0;const r=e.length;for(t=1;t<r;t++){let r;for(r in e[t])e[t].hasOwnProperty(r)&&(e[0][r]=e[t][r])}return e[0]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t,r)=>void 0===t?e:r?`${e}${t}`:`${t}${e}`},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=0;t.default=e=>`${e}${++n}`},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>null!==e&&hasOwnProperty.call(e,t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=r(0))&&n.__esModule?n:{default:n};t.default=e=>(0,o.default)(e)?Object.getOwnPropertyNames(e):[]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=r(0))&&n.__esModule?n:{default:n};t.default=(e,t)=>{const r=(e=>(0,o.default)(e)?Object.create(e):{})(e);return t&&Object.assign(r,t),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=r(1))&&n.__esModule?n:{default:n};t.default=(e,t)=>{if(null===e)return;const r=e[t];return(0,o.default)(r)?r.call(e):r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>-1!==e.indexOf(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t,...r)=>{const n=e.split("."),o=n.pop(),s=n.length;let u=0;for(u=0;u<s;u++)t=t[n[u]];return t[o].apply(t,r)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=e=>void 0!==e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>!!Array.isArray(e)&&e.some(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t,r)=>{r=Math.min(Math.max(r,0),e.length);let n=Array(e.length-r);const o=t.length;let s;for(s=0;s<n.length;s++)n[s]=e[s+r];for(s=0;s<o;s++)e[s+r]=t[s];for(s=0;s<n.length;s++)e[s+o+r]=n[s]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=r(2))&&n.__esModule?n:{default:n};t.default=e=>(0,o.default)(2,e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=t.fibonacci=e=>{const t=(1+Math.sqrt(5))/2,r=Math.pow(t,e)/Math.sqrt(5);return Math.round(r)};t.fibonacciSequence=e=>{const t=[];let r=0;for(r=0;r<e;r++)t.push(n(r));return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=arguments;t.shuffle=e=>{const t=e.slice(0);let r,n,o=0;for(o=e.length-1;o>0;o--)n=Math.floor(Math.random()*(o+1)),r=t[o],t[o]=t[n],t[n]=r;return t},t.prettyPrint=(e,t,r)=>{let n="\t";return t&&(n=" ".repeat(r)),JSON.stringify(e,null,n)},t.binarySearch=(e,t,r)=>{let n,o,s=0,u=e.length-1;for(;s<=u;)if((o=r(e[n=Math.floor((s+u)/2)],t))<0)s=n+1;else{if(!(o>0))return n;u=n-1}return null};const o=t.TransformerType={};o.STRING=Symbol("String"),o.INTEGER=Symbol("Integer"),o.NUMBER=Symbol("Number"),o.BOOLEAN=Symbol("Boolean"),o.ARRAY=Symbol("Array"),o.OBJECT=Symbol("Object"),o.NULL=Symbol("Null");class s{constructor(){this.type=o}static transform(e,t){let r=null;switch(t){case o.STRING:r="object"==typeof e?JSON.stringify(e):String(e);break;case o.INTEGER:r=parseInt(e);break;case o.NUMBER:r=Number(e);break;case o.BOOLEAN:r=Boolean(e);break;case o.ARRAY:Array.isArray(e)?r=e:(r=[])[0]=e;break;case o.OBJECT:"object"!=typeof e?(r={})[e]=e:r=e}return r}static isType(e){return null===e?o.NULL:"string"==typeof e?o.STRING:"number"==typeof e?o.NUMBER:"boolean"==typeof e?o.BOOLEAN:Array.isArray(e)?o.ARRAY:"object"==typeof e?o.OBJECT:void 0}}t.Transformer=s,t.wrap=(e,t)=>()=>t.apply(void 0,[e].concat(Array.prototype.slice.call(n))),t.filterObject=(e,t)=>{const r={};if(e&&t){const n=t.length;let o=0;for(o=0;o<n;o++)r[t[o]]=e[t[o]]}return r},t.findByMatchingProperties=(e,t)=>e.filter(e=>Object.keys(t).every(r=>e[r]===t[r]))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortObjects=(e,t)=>e.sort((e,r)=>{const n=e[t],o=r[t];return n<o?-1:n>o?1:0});const n=t.mergeSort=e=>{if(1===e.length)return e;const t=Math.floor(e.length/2),r=e.slice(0,t),s=e.slice(t);return o(n(r),n(s))},o=(e,t)=>{let r=[],n=0,o=0;for(;n<e.length&&o<t.length;)e[n]<t[o]?(r.push(e[n]),n++):(r.push(t[o]),o++);return r.concat(e.slice(n)).concat(t.slice(o))},s=t.quickSort=e=>{if(0===e.length)return[];let t=1;const r=e.length,n=[],o=[],u=e[0];for(t=1;t<r;t++)e[t]<u?n.push(e[t]):o.push(e[t]);return s(n).concat(u,s(o))};t.insertionSort=e=>{let t=[];if(e){const r=(t=e.slice()).length;let n,o,s;for(n=1;n<r;n++){for(s=t[n],o=n-1;o>=0&&t[o]>s;o--)t[o+1]=t[o];t[o+1]=s}}return t},t.bubbleSort=e=>{let t=[];if(e){let r,n,o;const s=(t=e.slice()).length-1;do{for(r=!1,n=0;n<s;n++)t[n]>t[n+1]&&(o=t[n],t[n]=t[n+1],t[n+1]=o,r=!0)}while(r)}return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const r=e.getFullYear(),n=e.getMonth()+1,o=e.getDate(),s=e.getHours(),u=e.getMinutes();return e.getSeconds(),t?`${n}/${o}/${r}`:`${n}/${o}/${r} ${s%12||12}:${u<10?"0"+u:u}${s<12?"am":"pm"}`}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBinary=(e,t)=>(e=>{let t=0,r=e,n="";for(t=0;t<32;t++,n+=String(r>>>31),r<<=1);return n})(e).split("").reverse().join("").substring(0,t),t.binaryToHex=(e,t)=>{const r=parseInt(e.split("").reverse().join(""),2);let n="";return r<16&&t&&(n="0"),`${n}${r.toString(16)}`}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>e&&t?[].filter.call(e,e=>e!=t).join(""):null}])},function(e,t,r){"use strict";var n=u(r(2)),o=u(r(3)),s=u(r(4));function u(e){return e&&e.__esModule?e:{default:e}}e.exports.Stack=n.default,e.exports.AugmentedMap=o.default,e.exports.AsynchronousQueue=s.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e){e||(e={}),e.stack?this._stack=e.stack:this._stack=[]}empty(){return 0===this._stack.length}peek(){return this._stack[0]}pop(){return this._stack.pop()}push(e){this._stack.push(e)}search(e){return this._stack.indexOf(e)}size(){return this._stack.length}clear(){this._stack.splice(0,this._stack.length)}toArray(){return this._stack}toString(){return this._stack.toString()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);class o{constructor(e){this._keys=[],this._data={},e&&this.marshall(e)}set(e,t){null!==e&&null!==t&&(this._data[e]||this._keys.push(e),this._data[e]=t)}get(e){return this._data[e]}indexOf(e){return this._keys.indexOf(e)}remove(e){const t=this.indexOf(e);this._keys.splice(t,1),delete this._data[e]}has(e){return-1!==this.indexOf(e)}forEach(e){if("function"!=typeof e)return null;const t=this._keys.length;let r,n=0;for(n=0;n<t;n++)e(r=this._keys[n],this._data[r],n)}key(e){return this._keys[e]}entries(){let e=0;const t=this._keys.length,r=new Array(t);for(e=0;e<t;e++)r[e]={key:this._keys[e],value:this._data[e]};return r}values(){const e=this._keys.length,t=new Array(e);let r,n=0;for(n=0;n<e;n++)r=this._keys[n],t[n]=this._data[r];return t}clear(){this._keys=[],this._data={}}size(){return this._keys.length}toJSON(){return this._data}toString(){return JSON.stringify(this._data)}isEmpty(){return 0===this._keys.length}marshall(e){let t;if(e&&e instanceof o)t=e.toJSON();else if(e&&e instanceof Object&&Object.keys(e).length>0)t=e;else{if(!e||!(0,n.isString)(e))return console.warn("Map: Could not marshall data."),!1;try{t=JSON.parse(e)}catch(e){return console.warn("Map: Could not marshall data."),!1}}const r=Object.keys(t);r.length;return this._keys=r,this._data=t,!0}}t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);const o=2e3;t.default=class{constructor(e){this._timeout=e||o,this._queue={}}add(...e){return!!(e&&e.length>0)&&((0,n.extend)(this._queue,e),!0)}clear(){this._queue.length>0&&this._queue.splice(0,this._queue.length)}process(...e){e&&(0,n.extend)(this._queue,e);const t=this._queue,r=Object.keys(t).length;let o=this._timeout;if(r<=0)return!1;const s=e=>{if(e>=r||"function"!=typeof t[e])return!1;setTimeout(()=>{t[e](),s(e+1)},o)};return s(0),!0}get timeout(){return this._timeout}get queue(){return this._queue}}}])}));
  //# sourceMappingURL=next-core-structures.js.map