@kizmann/pico-js 0.4.15 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pico-js.js +370 -2
- package/dist/pico-js.js.map +1 -1
- package/docs/index.html +12 -0
- package/docs/utility/any.md +427 -0
- package/package.json +2 -1
- package/src/utility/array.js +4 -0
- package/src/utility/number.js +1 -1
- package/tsconfig.json +14 -0
- package/types/index.d.ts +25 -0
- package/types/utility/any.d.ts +66 -0
- package/types/utility/array.d.ts +46 -0
- package/types/utility/now.d.ts +148 -0
- package/types/utility/number.d.ts +31 -0
- package/types/utility/object.d.ts +54 -0
- package/types/utility/string.d.ts +33 -0
- package/webservy.json +6 -0
package/dist/pico-js.js
CHANGED
@@ -1,2 +1,370 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Pico=t():e.Pico=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Pico",(function(){return k}));var r=n(2);n.d(t,"Arr",(function(){return r.a}));var i=n(4);n.d(t,"Obj",(function(){return i.a}));var a=n(3);n.d(t,"Num",(function(){return a.a}));var o=n(6);n.d(t,"Str",(function(){return o.a}));var u=n(7);n.d(t,"Now",(function(){return u.a}));var l=n(1);n.d(t,"Any",(function(){return l.a}));var s=n(8);n.d(t,"Dom",(function(){return s.a}));var c=n(9);n.d(t,"Cookie",(function(){return c.a}));var f=n(10);n.d(t,"Data",(function(){return f.a}));var v=n(11);n.d(t,"Element",(function(){return v.a}));var h=n(12);n.d(t,"Event",(function(){return h.a}));var d=n(13);n.d(t,"Locale",(function(){return d.a}));var y=n(14);n.d(t,"Map",(function(){return y.a}));var g=n(15);n.d(t,"Queue",(function(){return g.a}));var p=n(16);n.d(t,"Route",(function(){return p.a}));var m=n(17);n.d(t,"UUID",(function(){return m.v4}));var k={UUID:m.v4,Arr:r.a,Obj:i.a,Num:a.a,Str:o.a,Now:u.a,Any:l.a,Dom:s.a,Cookie:c.a,Data:f.a,Element:v.a,Event:h.a,Locale:d.a,Map:y.a,Queue:g.a,Route:p.a};void 0===e.IE&&e.navigator&&(e.IE=!!e.navigator.userAgent.match(/Edge\/|Trident\/|MSIE /)),void 0===e.WIN&&e.navigator&&(e.WIN=!!e.navigator.userAgent.match(/Windows/)),void 0===e.pi&&e.navigator&&(e.pi=k),void 0!==e.pi&&e.document&&e.pi.Dom.ready(e.pi.Element.listen),t.default=k}.call(this,n(5))},function(e,t,n){"use strict";var r=n(0);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,o=[{key:"isEmpty",value:function(e){return!this.isNumber(e)&&(this.isString(e)?""===e:this.isBool(e)?null===e:this.isPlain(e)||this.isArray(e)?0===Object.keys(e).length:null==e)}},{key:"isNull",value:function(e){return null===e}},{key:"isEqual",value:function(e,t){return e instanceof Node?e.isEqualNode(t):this.isPlain(e)||this.isArray(e)?Object.is(e,t):e===t}},{key:"isString",value:function(e){return"string"==typeof e}},{key:"isNumber",value:function(e){return"number"==typeof e||"string"==typeof e&&e.match(/^\-?[0-9]+$/)}},{key:"isBool",value:function(e){return"boolean"==typeof e||"string"==typeof e&&e.match(/^(true|false)$/)}},{key:"isFunction",value:function(e){return"function"==typeof e}},{key:"isObject",value:function(e){return null!==e&&"object"===i(e)}},{key:"isPlain",value:function(e){return this.isObject(e)&&e.constructor===Object}},{key:"isArray",value:function(e){return this.isObject(e)&&e.constructor===Array}},{key:"isDate",value:function(e){return e instanceof Date}},{key:"string",value:function(e){return String(e)}},{key:"convertString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return this.isEmpty(e)?t:this.string(e)}},{key:"integer",value:function(e){return parseInt(e)}},{key:"float",value:function(e){return parseFloat(e)}},{key:"bool",value:function(e){var t=String(e).match(/^(true|1|yes|ja)$/i);return null!==t&&0!==t.length}},{key:"boolean",value:function(e){var t=String(e).match(/^(true|1|yes|ja)$/i);return null!==t&&0!==t.length}},{key:"convertBool",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Yes",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"No",r=String(e).match(/^(true|1|yes|ja)$/i);return null===r||0===r.length?n:t}},{key:"convertBoolean",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Yes",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"No",r=String(e).match(/^(true|1|yes|ja)$/i);return null===r||0===r.length?n:t}},{key:"convertDatetime",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD hh:mm:ss",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-";return!0===e.isEmpty(t)?i:r.Now.make(t).format(n)}},{key:"vals",value:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}},{key:"keys",value:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}},{key:"async",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return setTimeout((function(){e.apply(void 0,n)}),0),this}},{key:"delay",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return setTimeout((function(){e.apply(void 0,r)}),t),this}},{key:"debounce",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=null;return e.isEmpty(r)||(i=r()),null!==r&&void 0!==r.__debouce&&(i=r.__debouce),function(){for(var a=arguments.length,o=new Array(a),u=0;u<a;u++)o[u]=arguments[u];clearTimeout(i),i=setTimeout((function(){t.apply(void 0,o)}),n),e.isEmpty(r)||r(i)}}},{key:"throttle",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=null;e.isEmpty(r)||(i=r());var a=null;return function(){clearTimeout(a),a=setTimeout((function(){i=null}),n),!0!==i&&(i=!0,e.isEmpty(r)||r(i),t.apply(void 0,arguments))}}},{key:"framerate",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=0;return e.isEmpty(r)||(i=r()),function(){Date.now()-i<=1e3/n||(t.apply(void 0,arguments),i=Date.now(),e.isEmpty(r)||r(i))}}},{key:"form",value:function(t){var n=new FormData;return function t(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r.Obj.each(i,(function(i,o){var u=r.Arr.merge([],a,o);if(e.isPlain(i))return t(i,u);if(e.isArray(i))return t(i,u);var l=u.splice(0,1)[0];r.Arr.each(u,(function(e){l+="["+e+"]"})),null!==i&&n.append(l,i)})),n}(t)}}],(n=null)&&a(t.prototype,n),o&&a(t,o),e}();t.a=o},function(e,t,n){"use strict";var r=n(0);function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){l=!0,o=e},f:function(){try{u||null==n.return||n.return()}finally{if(l)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,a=[{key:"make",value:function(t){return e.map(Array(t).fill(null),(function(e,t){return r.Num.int(t)+1}))}},{key:"all",value:function(e){return Array.isArray(e)?e:[e]}},{key:"get",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e[t]||n}},{key:"set",value:function(e,t,n){return e[t]=n}},{key:"first",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(Array.isArray(e)?e[0]:e)||t}},{key:"second",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(Array.isArray(e)?e[1]||e[0]:e)||t}},{key:"third",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(Array.isArray(e)?e[2]||e[1]||e[0]:e)||t}},{key:"last",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(Array.isArray(e)?e[e.length-1]:e)||t}},{key:"prepend",value:function(e,t){return e.splice(0,0,t),e}},{key:"append",value:function(e,t){return e.splice(e.length,0,t),e}},{key:"sort",value:function(t,n){var i=r.Any.keys(t);r.Any.isFunction(n)&&(i=i.sort((function(e,r){return n.call({},t[e],t[r])}))),r.Any.isFunction(n)||(i=i.sort((function(e,i){return r.Any.integer(r.Obj.get(t[e],n))-r.Any.integer(r.Obj.get(t[i],n))})));var a=[];return e.each(i,(function(e,n){t[e]._key=e,a[n]=t[e]})),a}},{key:"sortString",value:function(t,n){var i=r.Any.keys(t);r.Any.isFunction(n)||(i=i.sort((function(e,i){var a=r.Any.string(r.Obj.get(t[e],n)).toLowerCase(),o=r.Any.string(r.Obj.get(t[i],n)).toLowerCase();return a<o?-1:a>o?1:0})));var a=[];return e.each(i,(function(e,n){t[e]._key=e,a[n]=t[e]})),a}},{key:"filter",value:function(t,n){return e.each(e.filterIndex(t,n),(function(e){return t[e]}))}},{key:"filterIndex",value:function(t,n){return r.Any.keys(t).filter((function(i){return r.Any.isFunction(n)?n.call({},t[i],i):r.Any.isPlain(n)?r.Obj.includes(n,t[i]):r.Any.isArray(n)?e.includes(n,t[i]):n===t[i]}))}},{key:"find",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e.first(e.filter(t,n))||r}},{key:"findIndex",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return r.Any.integer(e.first(e.filterIndex(t,n))||i)}},{key:"has",value:function(e,t){return-1!==this.findIndex(e,t)}},{key:"add",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.findIndex(e,n||t);return-1===r&&e.push(t),e}},{key:"replace",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.findIndex(e,n||t);return-1!==r&&e.splice(r,1),e.push(t),e}},{key:"remove",value:function(e,t){var n=this.findIndex(e,t);return-1!==n&&e.splice(n,1),e}},{key:"toggle",value:function(e,t){var n=this.findIndex(e,t);return-1!==n?e.splice(n,1):e.push(t),e}},{key:"removeIndex",value:function(e,t){return t<e.length&&e.splice(r.Num.int(t),1),e}},{key:"insert",value:function(e,t,n){return e.splice(r.Num.int(t),0,n),e}},{key:"slice",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e.slice(r.Num.int(t),n)}},{key:"splice",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e.splice(r.Num.int(t),n)}},{key:"equal",value:function(e,t){var n=this,r=this.merge([],e,t),i=this.each(r,(function(r){return n.has(e,r)&&n.has(t,r)}));return!this.has(i,!1)}},{key:"includes",value:function(e,t){var n,a=!1,o=i(r.Any.vals(e));try{for(o.s();!(n=o.n()).done;){var u=n.value;a=-1!==t.indexOf(u)||a}}catch(e){o.e(e)}finally{o.f()}return a}},{key:"contains",value:function(e,t){var n,a=!0,o=i(r.Any.vals(t));try{for(o.s();!(n=o.n()).done;){var u=n.value;a=-1!==r.Any.vals(e).indexOf(u)&&a}}catch(e){o.e(e)}finally{o.f()}return a}},{key:"concat",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.concat.apply(e,n)}},{key:"clone",value:function(e){var t;if(r.Any.isPlain(e))return r.Obj.clone(e);if(r.Any.isArray(e)){t=[];var n,a=i(r.Any.keys(e));try{for(a.s();!(n=a.n()).done;){var o=n.value;t[o]=r.Obj.clone(e[o])}}catch(e){a.e(e)}finally{a.f()}return t}return t||e}},{key:"merge",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.concat.apply(e,n)}},{key:"push",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.push.apply(e,n),e}},{key:"diff",value:function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))}},{key:"intersect",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))}},{key:"chunk",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=[],r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}},{key:"reduce",value:function(e,t,n){return Object.values(e).reduce(t,n)}},{key:"extract",value:function(e,t){return this.each(e,(function(e){return r.Obj.get(e,t,null)}))}},{key:"each",value:function(t,n){var a,o=e.clone(t),u=i(r.Any.keys(o));try{for(u.s();!(a=u.n()).done;){var l=a.value;o[l]=n(o[l],r.Any.isNumber(l)?r.Any.integer(l):l)}}catch(e){u.e(e)}finally{u.f()}return r.Any.vals(o)}},{key:"map",value:function(t,n){var a,o=e.clone(t),u=i(r.Any.keys(o));try{for(u.s();!(a=u.n()).done;){var l=a.value;o[l]=t[l]=n(o[l],r.Any.isNumber(l)?r.Any.integer(l):l)}}catch(e){u.e(e)}finally{u.f()}return o}},{key:"recursive",value:function(t,n,i){var a=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(!0===r.Any.isArray(t))return this.map(t,(function(e){return a.recursive(e,n,i,o)}));if(!0===r.Any.isObject(t)){var u=i(t,o);t=void 0!==u?u:t}return!0===r.Any.isArray(t[n])?(o=e.clone(o),e.push(o,t),t[n]=this.map(t[n],(function(e){return a.recursive(e,n,i,o)})),t):!1===r.Any.isEmpty(t[n])?(o=e.clone(o),e.push(o,t),t[n]=this.recursive(t[n],n,i,o),t):t}}],(n=null)&&o(t.prototype,n),a&&o(t,a),e}();t.a=u},function(e,t,n){"use strict";var r=n(0);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,a=[{key:"int",value:function(e){return r.Any.isString(e)?parseInt(e.replace("px","")):parseInt(e)}},{key:"float",value:function(e){return r.Any.isString(e)?parseFloat(e.replace("px","")):parseFloat(e)}},{key:"ceil",value:function(e){return Math.ceil(e)}},{key:"round",value:function(e){return Math.round(e)}},{key:"floor",value:function(e){return Math.floor(e)}},{key:"fixed",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return this.float(e).toFixed(t)}},{key:"random",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return Math.floor(Math.random()*(t+1)+e)}},{key:"matrix",value:function(e){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=0,r=20;r>=0;r--)e>=(n=Math.pow(2,r))&&(t.push(n),e-=n);return t}},{key:"combine",value:function(e){return r.Arr.reduce(e,(function(e,t){return e+t}),0)}},{key:"distance",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i={lat:0,lng:0};e=r.Obj.assign({},i,e),t=r.Obj.assign({},i,t);var a=Math.PI*this.float(e.lat)/180,o=Math.PI*this.float(t.lat)/180,u=this.float(e.lng)-this.float(t.lng),l=Math.PI*u/180,s=Math.sin(a)*Math.sin(o)+Math.cos(a)*Math.cos(o)*Math.cos(l);return s>1&&(s=1),s=180*Math.acos(s)/Math.PI*60*1.1515,n||(s*=1.609344),s}},{key:"format",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:",",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(null===e)return null;var a=e.toString();null!==i&&-1!==i&&(a=e.toFixed(i));var o=a.replace(/\.[0-9]+$/,""),u=a.replace(/^[0-9\-]+\./,""),l=r.Arr.reduce(o.split("").reverse(),(function(e,t,n){var r=Math.floor(n/3);return e[r]=r===n/3?t:e[r]=t+e[r],e}),[]),s=l.reverse().join(n);return-1!==i&&0!==i&&a.match(/\./)&&(s+=t+u),s}}],(n=null)&&i(t.prototype,n),a&&i(t,a),e}();t.a=a},function(e,t,n){"use strict";(function(e){var r=n(2),i=n(1);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw a}}return n}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function u(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}var n,u,l;return n=t,l=[{key:"has",value:function(e,t){if(null==e)return!1;if(null==t)return!1;i.a.isArray(t)&&(t=t.join(".")),i.a.isString(t)||(t=t.toString());for(var n=(t=t.split(".")).pop(),r=0,a=t.length;null!=e&&r<a;)e=e[t[r++]];return null!=e&&void 0!==e[n]}},{key:"empty",value:function(e,t){return i.a.isEmpty(this.get(e,t,null))}},{key:"get",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null==e)return n;if(null==t)return n;i.a.isArray(t)&&(t=t.join("."));var r=!0;if("object"===s(e)&&(r=null===e[t]||void 0===e[t]),!r)return e[t];i.a.isString(t)||(t=t.toString());var a=0,o=(t=t.split(".")).length;if(0===o)return n;for(;null!=e&&a<o;)e=e[t[a++]];return null==e?n:e}},{key:"set",value:function(e,t,n){i.a.isArray(t)&&(t=t.join(".")),i.a.isString(t)||(t=t.toString());var r=!0;if("object"===s(e)&&(r=null===e[t]||void 0===e[t]),!r)return e[t]=n,e;var a=0,o=(t=t.split(".")).length,u=e;if(0===o)return e;for(;null!==u&&a<o;)void 0!==u[t[a]]&&null!==u[t[a]]||(u[t[a]]={}),a==o-1&&(u[t[a]]=n),u=u[t[a++]];return e}},{key:"unset",value:function(e,t){i.a.isArray(t)&&(t=t.join(".")),i.a.isString(t)||(t=t.toString());var n=(t=t.split(".")).shift();return void 0===e[n]?e:0===t.length?(delete e[n],e):this.unset(e[n],t)}},{key:"pluck",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.get(e,t,n);return this.unset(e,t),r}},{key:"only",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={};return this.each(e,(function(e,n){!0===r.a.has(t,n)&&(a[n]=e)})),i.a.isEmpty(n)||(a=this.assign(a,n)),a}},{key:"except",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={};return this.each(e,(function(e,n){!1===r.a.has(t,n)&&(a[n]=e)})),i.a.isEmpty(n)||(a=this.assign(a,n)),a}},{key:"includes",value:function(e,t){var n,r=!0,a=o(i.a.keys(e));try{for(a.s();!(n=a.n()).done;){var u=n.value;void 0!==t[u]&&(r=(i.a.isPlain(e[u])||i.a.isArray(e[u])?this.includes(e[u],t[u]):e[u]===t[u])&&r)}}catch(e){a.e(e)}finally{a.f()}return r}},{key:"matches",value:function(e,t){var n,r=!0,a=o(i.a.keys(e));try{for(a.s();!(n=a.n()).done;){var u=n.value;void 0!==t[u]&&(r=(i.a.isObject(e[u])?this.matches(e[u],t[u]):e[u]===t[u])&&r)}}catch(e){a.e(e)}finally{a.f()}return r}},{key:"sort",value:function(e,n){var a=i.a.keys(e);i.a.isFunction(n)&&(a=a.sort((function(t,r){return n.call({},e[t],e[r])}))),i.a.isFunction(n)||(a=a.sort((function(r,a){return i.a.integer(t.get(e[r],n))-i.a.integer(t.get(e[a],n))})));var o=[];return r.a.each(a,(function(t,n){e[t]._key=t,o[n]=e[t]})),o}},{key:"sortString",value:function(e,n){var a=i.a.keys(e);i.a.isFunction(n)||(a=a.sort((function(r,a){var o=i.a.string(t.get(e[r],n)).toLowerCase(),u=i.a.string(t.get(e[a],n)).toLowerCase();return o<u?-1:o>u?1:0})));var o=[];return r.a.each(a,(function(t,n){e[t]._key=t,o[n]=e[t]})),o}},{key:"filter",value:function(e,n){return t.each(t.filterIndex(e,n),(function(t){return e[t]}))}},{key:"filterIndex",value:function(e,n){return i.a.keys(e).filter((function(a){return i.a.isFunction(n)?n.call({},e[a],a):i.a.isPlain(n)?t.includes(n,e[a]):i.a.isArray(n)?r.a.includes(n,e[a]):n===e[a]}))}},{key:"find",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return r.a.first(t.filter(e,n))||i}},{key:"findIndex",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return r.a.first(t.filterIndex(e,n))||i}},{key:"clone",value:function(e){var n;if(!0===i.a.isArray(e))return r.a.clone(e);if(!0===i.a.isPlain(e)){n={};var a,u=o(i.a.keys(e));try{for(u.s();!(a=u.n()).done;){var l=a.value;n[l]=t.clone(e[l])}}catch(e){u.e(e)}finally{u.f()}return n}return n||e}},{key:"assign",value:function(){return Object.assign.apply(Object,arguments)}},{key:"remove",value:function(e,t){return r.a.each(t,(function(t){return delete e[t]})),e}},{key:"each",value:function(t,n){var r={};if(e.FormData&&t instanceof FormData){var u,l=o(t.entries());try{for(l.s();!(u=l.n()).done;){var s=a(u.value,2),c=s[0],f=s[1];r[c]=n(f,c)}}catch(e){l.e(e)}finally{l.f()}return t}var v,h=o(i.a.keys(t));try{for(h.s();!(v=h.n()).done;){var d=v.value;r[d]=n(t[d],d)}}catch(e){h.e(e)}finally{h.f()}return r}},{key:"map",value:function(e,t){var n,r=o(i.a.keys(e));try{for(r.s();!(n=r.n()).done;){var a=n.value;e[a]=t(e[a],a)}}catch(e){r.e(e)}finally{r.f()}return e}},{key:"values",value:function(e){var t=[];return this.each(e,(function(e){return t.push(e)})),t}},{key:"flatten",value:function(e){var t={};return function e(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r.a.each(i.a.keys(n),(function(r){var o=r;if(i.a.isEmpty(a)||(o="".concat(a,".").concat(r)),i.a.isPlain(n[r]))return e(n[r],o);t[o]=n[r]}))}(e),t}}],(u=null)&&c(n.prototype,u),l&&c(n,l),t}();t.a=f}).call(this,n(5))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(2),i=n(4),a=n(3),o=n(1);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,l;return t=e,l=[{key:"regexEscape",value:function(e){return String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},{key:"upper",value:function(e){return String(e).toUpperCase()}},{key:"lower",value:function(e){return String(e).toLowerCase()}},{key:"camelcase",value:function(t){var n=e.slugify(t);return r.a.each(n.split("-"),(function(t,n){return 0===n?t:e.ucfirst(t)})).join("")}},{key:"humancase",value:function(t){var n=e.slugify(t);return r.a.each(n.split("-"),(function(t){return e.ucfirst(t)})).join(" ")}},{key:"slugify",value:function(e){e=String(e).replace(/^\s+|\s+$/g,"").toLowerCase();var t=["a","a","a","e","e","e","i","i","i","i","o","o","o","u","u","u","n","c","-","-","-","-","-","-","ae","oe","ue"];return r.a.each(["à","á","â","è","é","ê","ì","í","ï","î","ò","ó","ô","ù","ú","û","ñ","ç","·","/","_",",",":",";","ä","ö","ü"],(function(n,r){e=e.replace(new RegExp(n.charAt(n),"g"),t[r])})),e.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}},{key:"ucfirst",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"lcfirst",value:function(e){return e.charAt(0).toLowerCase()+e.slice(1)}},{key:"has",value:function(e,t){return-1!==this.lower(e).indexOf(this.lower(t))}},{key:"filesize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=null,i=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];return r.a.each(i,(function(r,i){var u=Math.pow(1e3,o.a.integer(i));e<=u||(n=a.a.fixed(e/u,t)+" "+r)})),n}},{key:"array",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t=t.replace(/^@\[(.*?)?\]$/,"$1"),o.a.isEmpty(t)?n:r.a.each(t.split(","),(function(t){return e.real(t.replace(/(^"|^'|"$|'$)/g,""))}))}},{key:"real",value:function(t){return"string"==typeof t&&t.match(/^@\[.*?\]$/)&&(t=e.array(t)),"string"==typeof t&&t.match(/^(null|undefined)$/i)&&(t=null),"string"==typeof t&&t.match(/^(true|false)$/i)&&(t=o.a.bool(t)),"string"==typeof t&&t.match(/^[0-9]+$/)&&(t=a.a.int(t)),"string"==typeof t&&t.match(/^[0-9]+\\.[0-9]+$/)&&(t=a.a.float(t)),t}},{key:"objectify",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"options",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.a.isObject(t)?t:"params"===n?e.fromParams(t,r):"options"===n?e.fromOptions(t,r):JSON.parse(t)}},{key:"stringify",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"options";return o.a.isString(t)?t:"params"===n?e.params(t):"options"===n?e.options(t):JSON.stringify(t)}},{key:"options",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(o.a.isEmpty(t))return"";var r=[];return i.a.each(t,(function(t,i){if(null!==n&&(i=n+"."+i),o.a.isObject(t))return r.push(e.options(t,i).replace(/;$/,""));r.push(String(i)+":"+String(t))})),r.join(";")+";"}},{key:"fromOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(o.a.isEmpty(e))return{};var n="(^|;)(\\s*(.*?)\\s*:\\s*(\".*?\"|'.*?'|.*?)\\s*)(?=;|$)",i=e.match(new RegExp(n,"g")),a=r.a.reduce(i||[],this.convertFromOptions,{});return t?o.a.vals(a):a}},{key:"convertFromOptions",value:function(t,n){var r=n.match(/^;?\s*(.*?)\s*:\s*(".*?"|'.*?'|.*?)\s*$/);if(3!==r.length)return t;var a=e.real(r[2].replace(/(^["']*|["']*$)/g,""));return i.a.set(t,r[1],a),t}},{key:"params",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(o.a.isEmpty(t))return"";var r=[];return i.a.each(t,(function(t,i){if(null!==n&&(i=n+"["+i+"]"),o.a.isObject(t))return r.push(e.params(t,i));r.push(String(i)+"="+String(t))})),r.join("&")}},{key:"fromParams",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(o.a.isEmpty(e))return{};var n="(^|&)(\\s*(.*?)\\s*=\\s*(\".*?\"|'.*?'|.*?)\\s*)(?=&|$)",i=e.match(new RegExp(n,"g")),a=r.a.reduce(i||[],this.convertFromParams,{});return t?o.a.vals(a):a}},{key:"convertFromParams",value:function(t,n){var r=n.match(/^&?\s*(.*?)\s*=\s*(".*?"|'.*?'|.*?)\s*$/);if(3!==r.length)return t;var a=r[1].replace(/(\]\[|\[|\])/g,".").replace(/\.$/,""),o=e.real(r[2].replace(/(^["']*|["']*$)/g,""));return i.a.set(t,a,o),t}}],(n=null)&&u(t.prototype,n),l&&u(t,l),e}();t.a=l},function(e,t,n){"use strict";(function(e){var r=n(0);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";if(i(this,t),o(this,"initialDate",null),o(this,"moment",null),!e.moment)throw new Error("Moment.js is required for pi.Now");if(n instanceof t&&(n=n.get().toDate()),this.initialDate=n,r.Any.isString(n)||(this.moment=e.moment(n||new Date,a)),null!==this.moment)return this;this.moment=e.moment(n.match(/^now/)?new Date:n,a);var u=this.initialDate.match(/(\+|-)([0-9]+)seconds?/);!1===r.Any.isEmpty(u)&&"+"===u[1]&&this.moment.add(u[2],"second");var l=this.initialDate.match(/(\+|-)([0-9]+)minutes?/);!1===r.Any.isEmpty(l)&&"+"===l[1]&&this.moment.add(l[2],"minute");var s=this.initialDate.match(/(\+|-)([0-9]+)hours?/);!1===r.Any.isEmpty(s)&&"+"===s[1]&&this.moment.add(s[2],"hour");var c=this.initialDate.match(/(\+|-)([0-9]+)days?/);!1===r.Any.isEmpty(c)&&"+"===c[1]&&this.moment.add(c[2],"day"),!1===r.Any.isEmpty(c)&&"-"===c[1]&&this.moment.subtract(c[2],"day");var f=this.initialDate.match(/(\+|-)([0-9]+)months?/);!1===r.Any.isEmpty(f)&&"+"===f[1]&&this.moment.add(f[2],"month"),!1===r.Any.isEmpty(f)&&"-"===f[1]&&this.moment.subtract(f[2],"month");var v=this.initialDate.match(/(\+|-)([0-9]+)years?/);return!1===r.Any.isEmpty(v)&&"+"===v[1]&&this.moment.add(v[2],"year"),!1===r.Any.isEmpty(v)&&"-"===v[1]&&this.moment.subtract(v[2],"year"),this}var n,u,l;return n=t,l=[{key:"make",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return new t(e,n)}}],(u=[{key:"get",value:function(){return this.moment}},{key:"valid",value:function(){return!r.Any.isEmpty(this.initialDate)&&e.moment(this.initialDate).isValid()}},{key:"clone",value:function(){return new t(this.moment.toDate())}},{key:"code",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"X";return r.Num.int(this.format(e,!0))}},{key:"format",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"YYYY-MM-DD HH:mm:ss",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.valid()||t?this.moment.format(e):""}},{key:"before",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.code()<t.make(e).code()}},{key:"beforeDate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.code("YYYYMMDD")<t.make(e).code("YYYYMMDD")}},{key:"beforeTime",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.code("HHmmss")<t.make(e).code("HHmmss")}},{key:"after",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.code()>t.make(e).code()}},{key:"afterDate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.code("YYYYMMDD")>t.make(e).code("YYYYMMDD")}},{key:"afterTime",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.code("HHmmss")>t.make(e).code("HHmmss")}},{key:"equal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"X";return this.code(n)===t.make(e).code(n)}},{key:"equalDate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYYMMDD";return this.equal(e,t)}},{key:"equalTime",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HHmmss";return this.equal(e,t)}},{key:"between",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYYMMDD";return t.make(n).code(r)<t.make(e).code(r)?this.after(n,r)&&this.before(e,r)&&!this.equal(n,r)&&!this.equal(e,r):this.after(e,r)&&this.before(n,r)&&!this.equal(n,r)&&!this.equal(e,r)}},{key:"decade",value:function(){return 10*Math.floor(this.year()/10)}},{key:"prevDecade",value:function(){return this.clone().subDecades(1)}},{key:"nextDecade",value:function(){return this.clone().addDecades(1)}},{key:"addDecades",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.year(this.moment.year()+10*e)}},{key:"subDecades",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.year(this.moment.year()-10*e)}},{key:"year",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.moment.year():(this.moment.year(e),this)}},{key:"prevYear",value:function(){return this.clone().year(this.year()-1)}},{key:"nextYear",value:function(){return this.clone().year(this.year()+1)}},{key:"addYears",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.year(this.year()+e)}},{key:"subYears",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.year(this.year()-e)}},{key:"month",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.moment.month():(this.moment.month(e),this)}},{key:"addMonths",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.month(this.month()+e)}},{key:"subMonths",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.month(this.month()-e)}},{key:"prevMonth",value:function(){return this.clone().month(this.month()-1)}},{key:"nextMonth",value:function(){return this.clone().month(this.month()+1)}},{key:"date",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.moment.date():(this.moment.date(e),this)}},{key:"addDates",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.date(this.date()+e)}},{key:"subDates",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.date(this.date()-e)}},{key:"prevDate",value:function(){return this.clone().date(this.date()-1)}},{key:"nextDate",value:function(){return this.clone().date(this.date()+1)}},{key:"lastDate",value:function(){return this.prevMonth().date(0).date()}},{key:"day",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.moment.day():(this.moment.day(e),this)}},{key:"hour",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.moment.hour():(this.moment.hour(e),this)}},{key:"addHour",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.hour(this.hour()+e)}},{key:"subHour",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.hour(this.hour()-e)}},{key:"prevHour",value:function(){return this.clone().hour(this.hour()-1)}},{key:"nextHour",value:function(){return this.clone().hour(this.hour()+1)}},{key:"minute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.moment.minute():(this.moment.minute(e),this)}},{key:"addMinute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.minute(this.minute()+e)}},{key:"subMinute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.minute(this.minute()-e)}},{key:"prevMinute",value:function(){return this.clone().minute(this.minute()-1)}},{key:"nextMinute",value:function(){return this.clone().minute(this.minute()+1)}},{key:"second",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.moment.second():(this.moment.second(e),this)}},{key:"addSecond",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.second(this.second()+e)}},{key:"subSecond",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.second(this.second()-e)}},{key:"prevSecond",value:function(){return this.clone().second(this.second()-1)}},{key:"nextSecond",value:function(){return this.clone().second(this.second()+1)}},{key:"humanDay",value:function(){return this.day()}},{key:"humanMonth",value:function(){return this.month()}},{key:"getMonths",value:function(){var e=this;return r.Arr.make(12).map((function(t){return e.clone().month(t-1)}))}},{key:"getYears",value:function(){var e=this;return r.Arr.make(10).map((function(t){return e.clone().year(e.decade()+t-1)}))}},{key:"getYearsGrid",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12;return r.Arr.make(t).map((function(n){return e.clone().year(Math.floor(e.year()/t)*t+n-1)}))}},{key:"getDates",value:function(){var e=this;return r.Arr.make(this.lastDate()).map((function(t){return e.clone().date(t)}))}},{key:"getDatesRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=[],i=t.make(e);if(this.afterDate(e)){for(var a=i;!a.equalDate(this);a=a.nextDate())r.Arr.push(n,a);r.Arr.push(n,this)}if(this.beforeDate(e)){for(var o=this;!o.equalDate(i);o=o.nextDate())r.Arr.push(n,o);r.Arr.push(n,i)}return 0===n.length&&(n=[this]),n}},{key:"getDatesGrid",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getDates(),i=[],a=[],o=r.Arr.first(n);for(o.day();o.day()!==e;o.day())r.Arr.prepend(i,o=o.prevDate());var u=r.Arr.last(n);for(u.day();u.day()!==t;u.day())r.Arr.append(a,u=u.nextDate());return r.Arr.merge(i,n,a)}},{key:"getHours",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return r.Arr.make(24/t).map((function(n,r){return e.clone().hour(r*t)}))}},{key:"getMinutes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return r.Arr.make(60/t).map((function(n,r){return e.clone().minute(r*t)}))}},{key:"getSeconds",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return r.Arr.make(60/t).map((function(n,r){return e.clone().second(r*t)}))}},{key:"resetTime",value:function(){return this.hour(0),this.minute(0),this.second(0),this}},{key:"applyDate",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";e=t.make(e,n),this.year(e.year()),this.month(e.month()),this.date(e.date())}},{key:"applyTime",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";e=t.make(e,n),this.hour(e.hour()),this.minute(e.minute()),this.second(e.second())}}])&&a(n.prototype,u),l&&a(n,l),t}();t.a=u}).call(this,n(5))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n(4),a=n(6),o=n(3),u=n(1);function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,"el",null),e instanceof NodeList&&(e=Array.prototype.slice.call(e)),this.el=e}var n,s,v;return n=t,v=[{key:"ready",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i="loading"!==document.readyState;return 0===n&&!1===i&&r>=n?(t.find(document).on("DOMContentLoaded",e),this):0!==n&&(!1===i||r<=n)?(setTimeout((function(){return t.ready(e,n,r+50)}),50),this):(e(),this)}},{key:"complete",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i="complete"===document.readyState||"interactive"===document.readyState;return 0===n&&(!1===i||r<n)?(t.find(document).on("load",e),this):0!==n&&(!1===i||r<n)?(setTimeout((function(){return t.ready(e,n,r+50)}),50),this):(e(),this)}},{key:"required",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,o=r.a.each(n,(function(e){return i.a.has(window,e)}));return r.a.has(o,!1)?(setTimeout((function(){return t.required(e,n,a)}),a),this):(e(),this)}},{key:"find",value:function(e){return new t("string"!=typeof e?e:document.querySelectorAll(e))}},{key:"make",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="string"!=typeof e?e:document.createElement(e);return i.a.assign(r,n),new t(r)}},{key:"location",value:function(e,n){var r=null;return void 0!==document.elementsFromPoint&&(r=document.elementsFromPoint(e,n)),void 0!==document.msElementsFromPoint&&(r=document.msElementsFromPoint(e,n)),new t(r)}},{key:"title",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" - ";return document.title=void 0!==e.baseTitle?t+n+e.baseTitle:t,this}}],(s=[{key:"length",value:function(){return u.a.isArray(this.el)?this.el.length:u.a.isEmpty(this.el)?0:1}},{key:"empty",value:function(){return 0===this.length()||null===this.el}},{key:"visible",value:function(){return this.get(0)&&this.get(0).is(":visible")}},{key:"inviewX",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n={width:t.find(window).width(),height:t.find(window).height()},r={width:this.width(),height:this.height()},i=this.scroll(),a=this.offset(),o=a.left+e*r.width-n.width,u=a.left+r.width-e*r.width;return o<=i.left&&i.left<=u}},{key:"inviewY",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n={width:t.find(window).width(),height:t.find(window).height()},r={width:this.width(),height:this.height()},i=this.scroll(),a=this.offset(),o=a.top+e*r.height-n.height,u=a.top+r.height-e*r.height;return o<=i.top&&i.top<=u}},{key:"is",value:function(e){return this.matches(e)}},{key:"isParent",value:function(e){var n=this.parent();return!0!==u.a.isEmpty(n)&&(u.a.isString(e)?t.find(n).matches(e):this.get(0)===e)}},{key:"first",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=u.a.isArray(this.el)?this.el:[this.el];return t[e]}},{key:"last",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=u.a.isArray(this.el)?this.el:[this.el];return t[t.length-e]}},{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=u.a.isArray(this.el)?this.el:[this.el];return-1!==e?t[e]||null:t}},{key:"getNot",value:function(e){var n,r=l(this.el);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i!==e)return t.find(i)}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"each",value:function(e){return u.a.isArray(this.el)?r.a.each(this.el,e):e(this.el,0)}},{key:"matches",value:function(e){var n=this.get(0),r=null;return t.find(e).each((function(e){e===n&&(r=e)})),null!==r}},{key:"closest",value:function(e){if(this.get(0)===e)return e;for(var n=this.get(0);null!==n&&void 0!==n.parentNode;n=n.parentNode)if(t.find(n).is(e))return n;return null}},{key:"closestScrollable",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,t=this.get(0);null!==t&&void 0!==t.parentNode;t=t.parentNode)if(t.scrollHeight>t.clientHeight+1)return t;return e}},{key:"contains",value:function(e){return!0===u.a.isString(e)?null!==this.find(e).get(0):e instanceof Element!=0&&this.get(0).contains(e)}},{key:"inside",value:function(e){return null!==this.closest(e)}},{key:"parent",value:function(){var e=this.get(0);return null===e||void 0===e.parentNode?t.find(null):t.find(e.parentNode)}},{key:"child",value:function(e){var n=this.get(0).childNodes;return n=Array.prototype.slice.call(n),r.a.each(n,(function(e,t){3===e.nodeType&&(n=r.a.splice(n,t))})),null===e||r.a.each(n,(function(i,a){(u.a.isEmpty(i)||!1===t.find(i).is(e))&&(n=r.a.splice(n,a))})),t.find(n[0]||null)}},{key:"childs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.get(0).childNodes;return i=Array.prototype.slice.call(i),r.a.each(i,(function(e,t){3===e.nodeType&&!0===n&&(i=r.a.splice(i,t))})),null===e||r.a.each(i,(function(n,a){(u.a.isEmpty(n)||!1===t.find(n).is(e))&&(i=r.a.splice(i,a))})),t.find(i)}},{key:"find",value:function(e){var n=this.get(0);if(!0===u.a.isEmpty(n))return t.find(null);var i=n.querySelectorAll(e);return i=Array.prototype.slice.call(i),r.a.each(i,(function(e,t){3===e.nodeType&&(i=r.a.splice(i,t))})),t.find(i)}},{key:"where",value:function(e){var n=this.get();return r.a.each(n,(function(i,a){(u.a.isEmpty(i)||!1===t.find(i).is(e))&&(n=r.a.splice(n,a))})),t.find(n)}},{key:"not",value:function(e){var n=this.get();return r.a.each(n,(function(i,a){(u.a.isEmpty(i)||!0===t.find(i).is(e))&&(n=r.a.splice(n,a))})),t.find(n)}},{key:"prepend",value:function(e){return this.each((function(t){return t.prepend(e)})),this}},{key:"prependTo",value:function(e){var n=this;return t.find(e).each((function(e){return e.prepend(n.el)})),this}},{key:"append",value:function(e){return this.each((function(t){void 0!==t.append&&t.append(e)})),this}},{key:"appendTo",value:function(e){var n=this;return t.find(e).each((function(e){void 0!==e.append&&e.append(n.el)})),this}},{key:"replace",value:function(e){return this.parent().get(0).insertBefore(e,this.get(0)),this.parent().get(0).removeChild(this.get(0)),this}},{key:"previous",value:function(){if(!0===this.empty())return t.find(null);for(var e=this.get(0).previousSibling;null!==e;e=e.previousSibling)if(1===e.nodeType)return t.find(e);return t.find(null)}},{key:"next",value:function(){if(!0===this.empty())return t.find(null);for(var e=this.get(0).nextSibling;null!==e;e=e.nextSibling)if(1===e.nodeType)return t.find(e);return t.find(null)}},{key:"loaded",value:function(e){var t=this.get(0),n=null;return t?(n=setInterval((function(){t.complete&&0!==t.naturalWidth&&(e(t),clearInterval(n))}),100),this):this}},{key:"bind",value:function(e,t){return this.each((function(n){return n[e]=function(e){return t.call(n,e)}})),this}},{key:"unbind",value:function(e){this.each((function(t){return delete t[e]}))}},{key:"on",value:function(e,n){var i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!0===u.a.isArray(e))return r.a.each(e,(function(e){i.on(e,n,a)})),this;var l=function(e){n.call(e.target,e,e.target)},s=null;return this.each((function(n){t.events=r.a.push(t.events,{el:n,event:e,options:a,selector:s,paused:o,func:l}),n.addEventListener(e,l,a)})),this}},{key:"live",value:function(e,n,i){var a=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!0===u.a.isArray(e))return r.a.each(e,(function(e){a.live(e,n,i,o)})),this;var s=function(r){var a=r.srcElement||r.target;e.match(/^(drag[a-z]*|drop$)/)&&(a=t.location(r.clientX,r.clientY).get(0)),t.find(a).inside(n)&&i.call(a,r,t.find(a).closest(n))};return this.each((function(i){t.events=r.a.push(t.events,{el:i,event:e,options:o,selector:n,paused:l,func:s}),i.addEventListener(e,s,o)})),this}},{key:"one",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.on(e,(function(r){t(r),n.off(e)}),r),this}},{key:"fire",value:function(e){var t=new Event(e);return this.each((function(e){e.dispatchEvent(t)})),this}},{key:"delayed",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.on(e,u.a.debounce(t,n),r),this}},{key:"off",value:function(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!0===u.a.isArray(e)?(r.a.each(e,(function(e){n.off(e,i)})),this):(this.each((function(n){var o=r.a.filterIndex(t.events,{el:n,event:e,selector:i,options:a});0!==o.length&&r.a.each(o.reverse(),(function(i){n.removeEventListener(e,t.events[i].func,t.events[i].options),r.a.removeIndex(t.events,i)}))})),this)}},{key:"unpause",value:function(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!0===u.a.isArray(e)?(r.a.each(e,(function(e){n.unpause(e,i,a)})),this):(this.each((function(n){var o=r.a.find(t.events,{el:n,event:e,selector:i,options:a});null!==o&&(o.paused=!0,n.addEventListener(e,o.func,o.options))})),this)}},{key:"pause",value:function(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!0===u.a.isArray(e)?(r.a.each(e,(function(e){n.pause(e,i,a)})),this):(this.each((function(n){var o=r.a.find(t.events,{el:n,event:e,selector:i,options:a});null!==o&&(o.paused=!0,n.removeEventListener(e,o.func,o.options))})),this)}},{key:"observer",value:function(e){var n=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===r&&this.each((function(t){return e(t,{})}));var i=new MutationObserver((function(t){n.each((function(n){return e(n,t)}))}));return function(e,n){i.observe(t.find(e).get(0),n)}}},{key:"observerResize",value:function(e){var n=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===r&&this.each((function(t){return e(t)}));var i=new ResizeObserver((function(){n.each((function(t){return e(t)}))}));return function(e){i.observe(t.find(e).get(0))}}},{key:"data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=r.a.find(t.datas,{el:this.get(0)},{el:this.get(0)});return void 0===e?o:void 0===n?i.a.get(o,e,a):(r.a.replace(t.datas,i.a.set(o,e,n),{el:this.get(0)}),this)}},{key:"value",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return void 0===e?this.get(0).value:(this.each((function(t){return t.value=e})),this)}},{key:"html",value:function(e){return this.each((function(t){return t.innerHTML=e})),this}},{key:"computed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.get(0);if(null===n||n===window||n===document)return null!==e?t:{};var r=getComputedStyle(n);return null!==e?i.a.get(r,e,t):r}},{key:"css",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(null===e)return this.attr("style",null);var t=a.a.objectify(this.attr("style")||"");if(void 0===e)return t;this.attr("style",i.a.assign({},t,a.a.objectify(e)))}},{key:"class",value:function(e){u.a.isString(e)&&(e=e.split(" ")),u.a.isArray(e)||(e=[e]),this.attr("class",e.join(" "))}},{key:"hasClass",value:function(e){var t=this.attr("class")||[];return u.a.isString(e)&&(e=e.split(" ")),u.a.isString(t)&&(t=t.split(" ")),u.a.isArray(e)||(e=[e]),u.a.isArray(t)||(t=[t]),0!==r.a.intersect(e,t).length}},{key:"addClass",value:function(e){if(this.length()>1)return this.each((function(n){return t.find(n).addClass(e)}));var n=this.attr("class")||[];u.a.isString(e)&&(e=e.split(" ")),u.a.isString(n)&&(n=n.split(" ")),u.a.isArray(e)||(e=[e]),u.a.isArray(n)||(n=[n]),r.a.each(e,(function(e){r.a.add(n,e)})),this.attr("class",n.join(" "))}},{key:"removeClass",value:function(e){if(this.length()>1)return this.each((function(n){return t.find(n).removeClass(e)}));var n=this.attr("class")||[];u.a.isString(e)&&(e=e.split(" ")),u.a.isString(n)&&(n=n.split(" ")),u.a.isArray(e)||(e=[e]),u.a.isArray(n)||(n=[n]),r.a.each(e,(function(e){r.a.remove(n,e)})),this.attr("class",n.join(" "))}},{key:"toggleClass",value:function(e){return this.length()>1?this.each((function(n){return t.find(n).toggleClass(e)})):(this.hasClass(e)?this.removeClass(e):this.addClass(e),this)}},{key:"attr",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(this.empty())return null;if(u.a.isPlain(e))return i.a.each(e,(function(e,n){return t.attr(n,e)}));var r=this.get(0).getAttribute(e);return void 0===n?r:null===n?(this.get(0).removeAttribute(e),r):(u.a.isPlain(n)&&(n=a.a.options(n)),this.get(0).setAttribute(e,n),r)}},{key:"actual",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.attr("style");this.attr("style",t);var r=e.call(this.get(0),this.get(0));return this.attr("style",n),r}},{key:"loopParent",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.get(0);null!==r&&void 0!==r.parentNode;r=r.parentNode){if("fixed"===t.find(r).computed("position"))return!0;if(!0===t.find(r).is(n))return!0;e.call({},r)}return!1}},{key:"loopOffsetParent",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,r=this.get(0);null!==r&&void 0!==r.offsetParent;r=r.offsetParent){if(!0===t.find(r).is(n))return!0;e.call({},r)}return!1}},{key:"offset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={top:0,left:0,bottom:0,right:0};this.loopOffsetParent((function(e){e.offsetTop&&(r.top+=o.a.float(e.offsetTop)),e.offsetLeft&&(r.left+=o.a.float(e.offsetLeft))})),r.bottom=t.find(document.body).scrollHeight()-r.top-this.height(),r.right=t.find(document.body).scrollWidth()-r.left-this.width();var a={top:0,left:0,bottom:0,right:0};t.find(n).loopOffsetParent((function(e){e.offsetTop&&(a.top+=o.a.float(e.offsetTop)),e.offsetLeft&&(a.left+=o.a.float(e.offsetLeft))})),a.bottom=t.find(document.body).scrollHeight()-a.top-t.find(n||document.body).scrollHeight(),a.right=t.find(document.body).scrollWidth()-a.left-t.find(n||document.body).scrollWidth();var u={top:r.top-a.top,bottom:r.bottom-a.bottom,left:r.left-a.left,right:r.right-a.right};return null!==e?i.a.get(u,e,0):u}},{key:"offsetTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.offset("top",e)}},{key:"offsetBottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.offset("bottom",e)}},{key:"offsetLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.offset("left",e)}},{key:"offsetRight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.offset("right",e)}},{key:"scroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={top:0,left:0};this.loopParent((function(e){void 0!==e.scrollTop&&(r.top+=o.a.float(e.scrollTop)),void 0===e.scrollTop&&void 0!==e.pageYOffset&&(r.top+=o.a.float(e.pageYOffset)),void 0!==e.scrollTop&&(r.left+=o.a.float(e.scrollLeft)),void 0===e.scrollTop&&void 0!==e.pageXOffset&&(r.left+=o.a.float(e.pageXOffset))}));var a={top:0,left:0};t.find(n).loopParent((function(e){void 0!==e.scrollTop&&(a.top+=o.a.float(e.scrollTop)),void 0===e.scrollTop&&void 0!==e.pageYOffset&&(a.top+=o.a.float(e.pageYOffset)),void 0!==e.scrollTop&&(a.left+=o.a.float(e.scrollLeft)),void 0===e.scrollTop&&void 0!==e.pageXOffset&&(a.left+=o.a.float(e.pageXOffset))}));var u={top:r.top-a.top,left:r.left-a.left};return null!==e?i.a.get(u,e,0):u}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===e?this.scroll("top",t):(this.each((function(t){return t.scrollTop=e})),this)}},{key:"scrollTopGlobal",value:function(){return this.scroll("top",document.body)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===e?this.scroll("left",t):(this.each((function(t){return t.scrollLeft=e})),this)}},{key:"scrollLeftGlobal",value:function(){return this.scroll("left",document.body)}},{key:"margin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.computed(),n={top:o.a.float(t.marginTop),left:o.a.float(t.marginLeft),bottom:o.a.float(t.marginBottom),right:o.a.float(t.marginRight)};return null!==e?i.a.get(n,e,0):n}},{key:"padding",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.computed(),n={top:o.a.float(t.paddingTop),left:o.a.float(t.paddingLeft),bottom:o.a.float(t.paddingBottom),right:o.a.float(t.paddingRight)};return null!==e?i.a.get(n,e,0):n}},{key:"height",value:function(){var e=this.get(0);return u.a.isEmpty(e)?0:e===window?e.innerHeight:e.offsetHeight}},{key:"clientHeight",value:function(){return u.a.integer(this.computed("height","0px").replace("px",""))}},{key:"scrollHeight",value:function(){var e=this.get(0);return u.a.isEmpty(e)?0:e.scrollHeight}},{key:"innerHeight",value:function(){var e=this.get(0);return u.a.isEmpty(e)?0:this.height()-this.padding("top")-this.padding("bottom")}},{key:"realHeight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="auto";return this.actual((function(){return n=e.height()}),t),n}},{key:"evaluateHeight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];u.a.isString(e)&&(e=t.find(e)),null===e&&(e=this.parent());var r="auto";return this.actual((function(){r=e.innerHeight()}),{display:"none"}),!0===n&&this.css({height:r+"px"}),r}},{key:"width",value:function(){var e=this.get(0);return u.a.isEmpty(e)?0:e===window?e.innerWidth:e.offsetWidth}},{key:"clientWidth",value:function(){var e=this.get(0);return u.a.isEmpty(e)?0:u.a.integer(this.computed("width","0px").replace("px",""))}},{key:"scrollWidth",value:function(){var e=this.get(0);return u.a.isEmpty(e)?0:e.scrollWidth}},{key:"innerWidth",value:function(){var e=this.get(0);return u.a.isEmpty(e)?0:this.width()-this.padding("left")-this.padding("right")}},{key:"realWidth",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0;return this.actual((function(){return n=e.width()}),t),n}},{key:"evaluateWidth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];null===e&&(e=this.parent());var n="auto";return this.actual((function(){n=e.innerWidth()}),{display:"none"}),!0===t&&this.css({width:n+"px"}),n}}])&&c(n.prototype,s),v&&c(n,v),t}();f(v,"events",[]),f(v,"datas",[]),t.a=v}).call(this,n(5))},function(e,t,n){"use strict";var r=n(0);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a,o,u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,a=[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",i=this.pattern.replace("{key}",e),a=document.cookie.match(i);if(!a)return t;var o=a[2].replace(/\{:\}/g,";");return"boolean"===n?r.Any.boolean(o):"float"===n?r.Any.float(o):"integer"===n?r.Any.integer(o):"object"===n?r.Str.objectify(o,"params",!1):"array"===n?r.Str.objectify(o,"params",!0):o}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=new Date;null!==n&&a.setTime(Date.now()+(n||0)),Date.now()!==a.getTime()&&(i.expires=a.toUTCString()),i.path||(i.path="/"),r.Any.isObject(t)&&(t=r.Str.stringify(t,"params")),r.Any.isString(t)&&(t=t.replace(/;/g,"{:}"));var o="".concat(e,"=").concat(t,";");r.Obj.each(i,(function(e,t){o+="".concat(t,"=").concat(e,";")})),document.cookie=o}},{key:"forget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.path||(t.path="/"),t.expires="Thu, 01 Jan 1970 00:00:01 GMT";var n="".concat(e,"=null;");r.Obj.each(t,(function(e,t){n+="".concat(t,"=").concat(e,";")})),document.cookie=n}}],(n=null)&&i(t.prototype,n),a&&i(t,a),e}();u="(^|;)\\s*{key}\\s*=\\s*([^;]+)",(o="pattern")in(a=l)?Object.defineProperty(a,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[o]=u,t.a=l},function(e,t,n){"use strict";(function(e){var r=n(0);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a,o,u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,a=[{key:"has",value:function(e){return r.Obj.has(this.data,r.Arr.first(e))}},{key:"set",value:function(e,t){var n=t,i=r.Arr.first(e);r.Any.isEqual(r.Obj.get(this.data,i),n)||(r.Obj.set(this.data,i,n),r.Event.fire("store:"+i,n,i))}},{key:"unset",value:function(e){var t=r.Arr.first(e);r.Obj.unset(this.data,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=r.Arr.first(e);if(!r.Obj.has(this.data,i)&&!n)return t;r.Obj.has(this.data,i)&&n&&r.Obj.set(this.data,i,t);var a=r.Obj.get(this.data,i,t);return r.Any.isPlain(a)?r.Obj.clone(a):a}},{key:"find",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=r.Arr.first(e);if(!1===r.Obj.has(this.data,i))return n;if(!1===r.Obj.has(t,"id"))return n;var a=r.Arr.findIndex(this.get(i),{id:t.id});return-1===a?n:this.get(i+"."+a)}},{key:"replace",value:function(e,t){var n=r.Arr.first(e);if(!1!==r.Obj.has(this.data,n)&&!1!==r.Obj.has(t,"id")){var i=r.Arr.findIndex(this.get(n),{id:r.Num.int(t.id)});-1!==i&&this.set(n+"."+i,t)}}},{key:"add",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.set(e,r.Arr.concat(this.get(e,[]),n))}},{key:"remove",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.set(e,r.Arr.diff(this.get(e,[]),n))}}],(n=null)&&i(t.prototype,n),a&&i(t,a),e}();a=l,o="data",u=r.Obj.get(e,"_data",{}),o in a?Object.defineProperty(a,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[o]=u,t.a=l}).call(this,n(5))},function(e,t,n){"use strict";var r=n(0);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,a=[{key:"listen",value:function(){document.addEventListener("scroll",e.scroll),e.scroll()}},{key:"scroll",value:function(){var e=this;r.Arr.each(this.invi,(function(t,n){r.Dom.find(t.el).inviewY()&&(r.Arr.removeIndex(e.invi,n),t.cb())}))}},{key:"alias",value:function(e,t){return r.Obj.set(this.inis,e,t),this}},{key:"bind",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.Dom.find(n),o=this.getPrefix(t);a.addClass(o);var u=r.Obj.get(this.inis,t,null);if(r.Any.isEmpty(u))return console.error('Element "'.concat(t,'" is not defined.'));var l=function(t,n){var r=new u(t.get(0),n);return e.runs.push({el:t.get(0),prefix:o,deamon:r}),t.data(o,r),void 0!==r.bind?r.bind(t.get(0),n):r};return r.Dom.ready((function(){return l.call({},a,i)})),this}},{key:"unbind",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.Dom.find(n),o=this.getPrefix(t),u=r.Obj.get(this.inis,t,null);if(r.Any.isEmpty(u))return console.error('Element "'.concat(t,'" is not defined.'));var l=function(e,t){var n=e.data(o);if(void 0!==n.unbind)return n.unbind(e.get(0),t)};return l.call({},a,i),r.Arr.remove(e.runs,{el:a.get(0)}),this}},{key:"observe",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.getPrefix(t),o={childList:!0,subtree:!0,attributes:!0,attributeFilter:[a]},u=function(){var o=e.getPrefix(t),u=r.Arr.filter(n.runs,{prefix:a});r.Arr.each(u,(function(e){var o=e.el,u=r.Str.objectify(r.Dom.find(o).attr(a));if(i&&r.Any.isEmpty(u)&&(u={_plain:r.Dom.find(o).attr(a)}),r.Obj.pluck(u,"inview",!1)&&r.Arr.remove(n.invi,{el:o}),!document.body.contains(o))return n.unbind(t,o,u)})),r.Dom.find("[".concat(a,"]:not(.").concat(o,")")).each((function(e){var o=r.Str.objectify(r.Dom.find(e).attr(a));i&&r.Any.isEmpty(o)&&(o={_plain:r.Dom.find(e).attr(a)});var u=function(){n.bind(t,e,o)};r.Obj.pluck(o,"inview",!1)?n.bindInview(e,u):u()}))};return r.Dom.find(document.body).observer(u)(document.body,o),r.Dom.find(document.body).on("dom.change",u),this}},{key:"bindInview",value:function(e,t){r.Arr.add(this.invi,{el:e,cb:t},{el:e})}},{key:"unbindInview",value:function(e,t){r.Arr.remove(this.invi,{el:e,cb:t},{el:e})}},{key:"getPrefix",value:function(e){return e?this.prefix+"-"+e:this.prefix}},{key:"setPrefix",value:function(e){this.prefix=e}}],(n=null)&&i(t.prototype,n),a&&i(t,a),e}();a(o,"prefix","js"),a(o,"mount","mount"),a(o,"inis",{}),a(o,"runs",[]),a(o,"invi",[]),t.a=o},function(e,t,n){"use strict";var r=n(0);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a,o,u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,a=[{key:"bind",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return r.Any.isArray(e)?r.Arr.each(e,(function(e){return n.bind(e,t,i,a)})):(r.Any.isPlain(i)||(i={value:i}),this.events=r.Arr.push(this.events,{name:e,callback:t,options:i,paused:a}),this)}},{key:"unbind",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.Any.isArray(e)?r.Arr.each(e,(function(e){return t.unbind(e,n)})):(r.Any.isPlain(n)||(n={value:n}),r.Arr.remove(this.events,{name:e,options:n}),this)}},{key:"fire",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var a=this.events.filter((function(t){return t.name===e}));return r.Arr.each(a,(function(e){var t;!1===e.paused&&(t=e.callback).call.apply(t,[{}].concat(n))})),this}},{key:"pause",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.Any.isArray(e))return r.Arr.each(e,(function(e){return t.pause(e,n)}));var i=r.Arr.find(this.events,{name:e,options:n});return null!==i?(i.paused=!0,this):void 0}},{key:"unpause",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.Any.isArray(e))return r.Arr.each(e,(function(e){return t.unpause(e,n)}));var i=r.Arr.find(this.events,{name:e,options:n});return null!==i?(i.paused=!1,this):void 0}}],(n=null)&&i(t.prototype,n),a&&i(t,a),e}();u=[],(o="events")in(a=l)?Object.defineProperty(a,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[o]=u,t.a=l},function(e,t,n){"use strict";(function(e){var r=n(0);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a,o,u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,a=[{key:"pickByCount",value:function(e,t){var n=e.length;return 3===n&&0===t?e[0]:3===n&&1===t?e[1]:3===n&&t>=2?e[2]:2===n&&1===t?e[0]:2===n&&1!==t?e[1]:e[0]}},{key:"has",value:function(t){return r.Obj.has(e.locales,t)}},{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r.Obj.get(e.locales,t,n||t)}},{key:"set",value:function(t,n){return r.Obj.set(e.locales,t,n),this}},{key:"trans",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.Obj.get(e.locales,t,t);return r.Obj.each(n,(function(e,t){i=i.replace(new RegExp(":"+t,"g"),e)})),i}},{key:"choice",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.Obj.get(e.locales,t,t).split("|");void 0===i.count&&(i=r.Obj.assign({count:n},i));var o=e.pickByCount(a,n);return r.Obj.each(i,(function(e,t){o=o.replace(new RegExp(":"+t,"g"),e)})),o}}],(n=null)&&i(t.prototype,n),a&&i(t,a),e}();a=l,o="locales",u=r.Obj.get(e,"_locales",{}),o in a?Object.defineProperty(a,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[o]=u,t.a=l}).call(this,n(5))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(0);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){function t(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,t),o(this,"map",null),o(this,"markers",{}),o(this,"cluster",null),o(this,"clusterFilter",null),o(this,"clusterOptions",{}),!e.google)throw new Error("Google Maps is required for pi.Map");var u=r.Obj.only(a,["lat","lng"]);r.Obj.has(a,"styles")||(a.styles=t.mapStyle),a=r.Obj.assign({gestureHandling:"cooperative",scrollwheel:null,zoom:12,center:u},r.Obj.except(a,["lat","lng"])),this.map=new e.google.maps.Map(r.Dom.find(n).get(0),a)}var n,u,l;return n=t,l=[{key:"setMapStyle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.mapStyle=e,this}},{key:"setMarkerStyle",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.google)throw new Error("Google Maps is required for pi.Map");if(!r.Obj.has(i,"default"))return console.error("Marker style requires default property");r.Obj.has(i,"width")||(i.width=45),r.Obj.has(i,"height")||(i.height=45);var o={},u=new e.google.maps.Size(i.width,i.height),l=new e.google.maps.Point(0,0),s=new e.google.maps.Point(i.width/2,i.height);return o.default={url:i.default,size:u,origin:l,anchor:s,scaledSize:u},r.Obj.has(i,"hover")&&(o.hover=r.Obj.assign({},o.default,{url:i.hover})),r.Obj.has(o,"hover")||(o.hover=o.default),r.Obj.has(i,"active")&&(o.active=r.Obj.assign({},o.default,{url:i.active})),r.Obj.has(o,"active")||(o.active=o.default),r.Obj.each(a,(function(e,t){o[t]=r.Obj.assign({},o.default,{url:e})})),r.Obj.set(t.markerStyles,n,o),this}}],(u=[{key:"clusterMarkers",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.cluster||a){if(void 0===e.MarkerClusterer)return console.error("Google Maps Cluster library not laoded!");r.Obj.has(n,"imagePath")||r.Obj.has(n,"styles")||(n.imagePath="//developers.google.com/maps/documentation/javascript/examples/markerclusterer/m"),this.cluster&&this.cluster.clearMarkers(),r.Any.isFunction(i)&&(this.clusterFilter=i);var o=r.Arr.filter(this.markers,(function(e){var n=t.getMarkerVisibility(e.key);return r.Any.isFunction(t.clusterFilter)?n&&t.clusterFilter.call(t,e):n}));this.cluster=new e.MarkerClusterer(this.map,r.Arr.each(o,(function(e){return e.marker})),this.clusterOptions=n)}}},{key:"styleMarker",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=r.Obj.get(this.markers,e);if(r.Any.isEmpty(i))return console.error('Marker "'.concat(e,'" not found'));r.Any.isEmpty(n)&&(n=this.getInfoVisibility(e)?"active":"default"),r.Obj.has(t.markerStyles,[i.style,n])&&i.marker.setIcon(r.Obj.get(t.markerStyles,[i.style,n]))}},{key:"getMarker",value:function(e){return r.Obj.get(this.markers,e)}},{key:"getMarkerVisibility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r.Obj.get(this.markers,e);return r.Any.isEmpty(n)?t:n.marker.getVisible()}},{key:"getMarkerPositon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=r.Obj.get(this.markers,e);return r.Any.isEmpty(n)?t:n.marker.getPosition()}},{key:"toggleMarker",value:function(e){var t=r.Obj.get(this.markers,e);return r.Any.isEmpty(t)?console.error('Marker "'.concat(e,'" not found')):t.marker.getVisible()?this.hideMarker(e):this.showMarker(e)}},{key:"showMarker",value:function(e){var t=r.Obj.get(this.markers,e);if(r.Any.isEmpty(t))return console.error('Marker "'.concat(e,'" not found'));var n=!t.marker.getVisible();return n&&t.marker.setVisible(!0),n}},{key:"hideMarker",value:function(e){var t=r.Obj.get(this.markers,e);if(r.Any.isEmpty(t))return console.error('Marker "'.concat(e,'" not found'));var n=!!t.marker.getVisible();return n&&t.marker.setVisible(!1),this.closeInfo(e),n}},{key:"enterMarker",value:function(e){var t=r.Obj.get(this.markers,e);if(r.Any.isEmpty(t))return console.error('Marker "'.concat(e,'" not found'));var n="hover";return this.getInfoVisibility(e)&&(n="active"),this.styleMarker(e,n),this}},{key:"leaveMarker",value:function(e){var t=r.Obj.get(this.markers,e);if(r.Any.isEmpty(t))return console.error('Marker "'.concat(e,'" not found'));var n="default";return this.getInfoVisibility(e)&&(n="active"),this.styleMarker(e,n),this}},{key:"getInfoVisibility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r.Obj.get(this.markers,e);return r.Any.isEmpty(n)||!r.Obj.has(n,"info")?t:!!n.info.getMap()}},{key:"toggleInfo",value:function(e){var t=r.Obj.get(this.markers,e);return r.Any.isEmpty(t)?console.error('Marker "'.concat(e,'" not found')):t.info.getMap()?this.closeInfo(e):this.openInfo(e)}},{key:"openInfo",value:function(e){var n=r.Obj.get(this.markers,e);if(r.Any.isEmpty(n))return console.error('InfoWindow "'.concat(e,'" not found'));if(!r.Obj.has(n,"info"))return!0;var i=!n.info.getMap();return t.closeInfoWindows&&r.Obj.each(r.Any.keys(this.markers),this.closeInfo.bind(this)),i&&n.info.open(this.map,n.marker),this.styleMarker(e,"active"),i}},{key:"closeInfo",value:function(e){var t=r.Obj.get(this.markers,e);if(r.Any.isEmpty(t))return console.error('InfoWindow "'.concat(e,'" not found'));if(!r.Obj.has(t,"info"))return!1;var n=!!t.info.getMap();return n&&t.info.close(),this.styleMarker(e,"default"),n}},{key:"createMarker",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.Any.isEmpty(n)&&(n=Object(r.UUID)());var a={key:n};return r.Obj.has(i,"visible")||(i.visible=!0),a.extras=r.Obj.except(i,["map","position","lat","lng","html","style","visible"]),r.Obj.has(i,"map")||(i.map=this.map),r.Obj.has(i,"positon")||(i.position=r.Obj.only(i,["lat","lng"])),r.Obj.has(i,"style")&&(a.style=i.style),a.marker=new e.google.maps.Marker(i),i.visible||a.marker.setVisible(!1),r.Obj.set(this.markers,n,a),this.clusterMarkers(this.clusterOptions,null,!1),r.Obj.has(i,"html")?(r.Obj.has(a,"style")||(a.style="default"),this.styleMarker(n),a.marker.addListener("mouseover",(function(){return t.enterMarker(n)})),a.marker.addListener("mouseout",(function(){return t.leaveMarker(n)})),a.info=new e.google.maps.InfoWindow({content:'<div class="gw-i-html">'+r.Obj.get(i,"html")+"</div>"}),a.marker.addListener("click",(function(){return t.toggleInfo(n)})),a.info.addListener("closeclick",(function(){return t.closeInfo(n)})),a.info.addListener("domready",(function(){return r.Event.fire("MapsDomReady")})),r.Obj.set(this.markers,n,a),r.Obj.get(this.markers,n)):r.Obj.get(this.markers,n)}},{key:"setMarkerPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.Obj.get(this.markers,e);if(r.Any.isEmpty(n))return console.error('Marker "'.concat(e,'" not found'));n.marker.setPosition(t)}},{key:"setMarkerByAddress",value:function(e,t){var n=this;return this.getLocationByAddress(t,(function(t){n.setMarkerPosition(e,r.Obj.get(t,"0.geometry.location",{}))}))}},{key:"getLocationByAddress",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=new e.google.maps.Geocoder,i=function(e,i){r.geocode({address:t},(function(t,r){"OK"===r&&(n(t),e(t)),"OK"!==r&&i(t)}))};return new Promise(i)}},{key:"showMarkers",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this.markers;return r.Any.isEmpty(n)||(i=r.Obj.filter(this.markers,n)),t.hideMarkers&&r.Obj.each(r.Any.keys(this.markers),this.hideMarker.bind(this)),r.Obj.each(i,(function(t){return e.showMarker(t.key)})),this.clusterMarkers(this.clusterOptions,null,!1),this}},{key:"getMarkerBoundry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.markers;r.Any.isEmpty(t)||(n=r.Obj.filter(this.markers,t));var i=new e.google.maps.LatLngBounds;return r.Obj.each(n,(function(e){e.marker.getVisible()&&i.extend(e.marker.getPosition())})),i}},{key:"focusMarkers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:14,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15,r=this.getMarkerBoundry(e);return this.map.setCenter(r.getCenter()),this.map.fitBounds(r,n),this.map.getZoom()>t&&this.map.setZoom(t),this}},{key:"renderDirections",value:function(t){var n=new e.google.maps.DirectionsService,i=new e.google.maps.DirectionsRenderer;return r.Obj.has(t,"map")||(t.map=this.map),r.Obj.has(t,"travelMode")||(t.travelMode="DRIVING"),i.setMap(t.map),r.Obj.has(t,"panel")&&!r.Dom.find(t.panel).empty()&&i.setPanel(r.Dom.find(t.panel).get(0)),t=r.Obj.only(t,["origin","destination","travelMode"]),new Promise((function(e,r){n.route(t,(function(t,n){"OK"===n&&(i.setDirections(t),e(t)),"OK"!==n&&r(t)}))}))}}])&&a(n.prototype,u),l&&a(n,l),t}();o(u,"mapStyle",[]),o(u,"markerStyles",{}),o(u,"hideMarkers",!0),o(u,"closeInfoWindows",!0)}).call(this,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),o(this,"queue",[]),o(this,"stopQueue",!1),o(this,"activeQueue",!1),this.queue=t}var t,n,u;return t=e,(n=[{key:"handler",value:function(e,t){var n=this;return function(){return e.length-1>t++&&!1===n.stopQueue?e[t](n.handler(e,t)):function(){}}}},{key:"stop",value:function(){return this.stopQueue=!0,this.activeQueue=!1,this.queue=[],this}},{key:"clear",value:function(){return this.queue=[],this}},{key:"add",value:function(e){return this.queue.push(e),this}},{key:"run",value:function(){var t=new e(this.queue);return t.add((function(){t.activeQueue=!1})),0!==t.queue.length&&r.Arr.first(t.queue)(t.handler(t.queue.slice(0),0)),t}},{key:"active",value:function(){return this.activeQueue}}])&&a(t.prototype,n),u&&a(t,u),e}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(0);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a,o,u,l=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}var n,a,o;return n=t,o=[{key:"set",value:function(e,t){this.routes[e]=t}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=e.match(/^https?:\/\//)?e:this.routes[e]||e;return r.Obj.each(t||{},(function(e,t){i=i.replace(new RegExp("{"+t+"\\?*}","g"),e)})),i+(r.Any.isEmpty(n)?"":"?"+r.Str.params(n))}},{key:"goto",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.location.href=this.get(t,n,r)}}],(a=null)&&i(n.prototype,a),o&&i(n,o),t}();a=l,o="routes",u=r.Obj.get(e,"_routes",{}),o in a?Object.defineProperty(a,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[o]=u}).call(this,n(5))},function(e,t,n){var r=n(21),i=n(22),a=i;a.v1=r,a.v4=i,e.exports=a},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t,n){e.exports=n(0)},function(e,t,n){var r,i,a=n(18),o=n(19),u=0,l=0;e.exports=function(e,t,n){var s=t&&n||0,c=t||[],f=(e=e||{}).node||r,v=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==v){var h=a();null==f&&(f=r=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==v&&(v=i=16383&(h[6]<<8|h[7]))}var d=void 0!==e.msecs?e.msecs:(new Date).getTime(),y=void 0!==e.nsecs?e.nsecs:l+1,g=d-u+(y-l)/1e4;if(g<0&&void 0===e.clockseq&&(v=v+1&16383),(g<0||d>u)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=d,l=y,i=v;var p=(1e4*(268435455&(d+=122192928e5))+y)%4294967296;c[s++]=p>>>24&255,c[s++]=p>>>16&255,c[s++]=p>>>8&255,c[s++]=255&p;var m=d/4294967296*1e4&268435455;c[s++]=m>>>8&255,c[s++]=255&m,c[s++]=m>>>24&15|16,c[s++]=m>>>16&255,c[s++]=v>>>8|128,c[s++]=255&v;for(var k=0;k<6;++k)c[s+k]=f[k];return t||o(c)}},function(e,t,n){var r=n(18),i=n(19);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var u=0;u<16;++u)t[a+u]=o[u];return t||i(o)}}])}));
|
2
|
-
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
+
module.exports = factory();
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
5
|
+
define([], factory);
|
6
|
+
else if(typeof exports === 'object')
|
7
|
+
exports["Pico"] = factory();
|
8
|
+
else
|
9
|
+
root["Pico"] = factory();
|
10
|
+
})(window, function() {
|
11
|
+
return /******/ (function(modules) { // webpackBootstrap
|
12
|
+
/******/ // The module cache
|
13
|
+
/******/ var installedModules = {};
|
14
|
+
/******/
|
15
|
+
/******/ // The require function
|
16
|
+
/******/ function __webpack_require__(moduleId) {
|
17
|
+
/******/
|
18
|
+
/******/ // Check if module is in cache
|
19
|
+
/******/ if(installedModules[moduleId]) {
|
20
|
+
/******/ return installedModules[moduleId].exports;
|
21
|
+
/******/ }
|
22
|
+
/******/ // Create a new module (and put it into the cache)
|
23
|
+
/******/ var module = installedModules[moduleId] = {
|
24
|
+
/******/ i: moduleId,
|
25
|
+
/******/ l: false,
|
26
|
+
/******/ exports: {}
|
27
|
+
/******/ };
|
28
|
+
/******/
|
29
|
+
/******/ // Execute the module function
|
30
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
31
|
+
/******/
|
32
|
+
/******/ // Flag the module as loaded
|
33
|
+
/******/ module.l = true;
|
34
|
+
/******/
|
35
|
+
/******/ // Return the exports of the module
|
36
|
+
/******/ return module.exports;
|
37
|
+
/******/ }
|
38
|
+
/******/
|
39
|
+
/******/
|
40
|
+
/******/ // expose the modules object (__webpack_modules__)
|
41
|
+
/******/ __webpack_require__.m = modules;
|
42
|
+
/******/
|
43
|
+
/******/ // expose the module cache
|
44
|
+
/******/ __webpack_require__.c = installedModules;
|
45
|
+
/******/
|
46
|
+
/******/ // define getter function for harmony exports
|
47
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
48
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
49
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
50
|
+
/******/ }
|
51
|
+
/******/ };
|
52
|
+
/******/
|
53
|
+
/******/ // define __esModule on exports
|
54
|
+
/******/ __webpack_require__.r = function(exports) {
|
55
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
56
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
57
|
+
/******/ }
|
58
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
59
|
+
/******/ };
|
60
|
+
/******/
|
61
|
+
/******/ // create a fake namespace object
|
62
|
+
/******/ // mode & 1: value is a module id, require it
|
63
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
64
|
+
/******/ // mode & 4: return value when already ns object
|
65
|
+
/******/ // mode & 8|1: behave like require
|
66
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
67
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
68
|
+
/******/ if(mode & 8) return value;
|
69
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
70
|
+
/******/ var ns = Object.create(null);
|
71
|
+
/******/ __webpack_require__.r(ns);
|
72
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
73
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
74
|
+
/******/ return ns;
|
75
|
+
/******/ };
|
76
|
+
/******/
|
77
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
78
|
+
/******/ __webpack_require__.n = function(module) {
|
79
|
+
/******/ var getter = module && module.__esModule ?
|
80
|
+
/******/ function getDefault() { return module['default']; } :
|
81
|
+
/******/ function getModuleExports() { return module; };
|
82
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
83
|
+
/******/ return getter;
|
84
|
+
/******/ };
|
85
|
+
/******/
|
86
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
87
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
88
|
+
/******/
|
89
|
+
/******/ // __webpack_public_path__
|
90
|
+
/******/ __webpack_require__.p = "";
|
91
|
+
/******/
|
92
|
+
/******/
|
93
|
+
/******/ // Load entry module and return exports
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = 0);
|
95
|
+
/******/ })
|
96
|
+
/************************************************************************/
|
97
|
+
/******/ ({
|
98
|
+
|
99
|
+
/***/ "./node_modules/uuid/index.js":
|
100
|
+
/*!************************************!*\
|
101
|
+
!*** ./node_modules/uuid/index.js ***!
|
102
|
+
\************************************/
|
103
|
+
/*! no static exports found */
|
104
|
+
/***/ (function(module, exports, __webpack_require__) {
|
105
|
+
|
106
|
+
eval("var v1 = __webpack_require__(/*! ./v1 */ \"./node_modules/uuid/v1.js\");\nvar v4 = __webpack_require__(/*! ./v4 */ \"./node_modules/uuid/v4.js\");\n\nvar uuid = v4;\nuuid.v1 = v1;\nuuid.v4 = v4;\n\nmodule.exports = uuid;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vbm9kZV9tb2R1bGVzL3V1aWQvaW5kZXguanM/MTFjMSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxTQUFTLG1CQUFPLENBQUMsdUNBQU07QUFDdkIsU0FBUyxtQkFBTyxDQUFDLHVDQUFNOztBQUV2QjtBQUNBO0FBQ0E7O0FBRUEiLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdXVpZC9pbmRleC5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbInZhciB2MSA9IHJlcXVpcmUoJy4vdjEnKTtcbnZhciB2NCA9IHJlcXVpcmUoJy4vdjQnKTtcblxudmFyIHV1aWQgPSB2NDtcbnV1aWQudjEgPSB2MTtcbnV1aWQudjQgPSB2NDtcblxubW9kdWxlLmV4cG9ydHMgPSB1dWlkO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/uuid/index.js\n");
|
107
|
+
|
108
|
+
/***/ }),
|
109
|
+
|
110
|
+
/***/ "./node_modules/uuid/lib/bytesToUuid.js":
|
111
|
+
/*!**********************************************!*\
|
112
|
+
!*** ./node_modules/uuid/lib/bytesToUuid.js ***!
|
113
|
+
\**********************************************/
|
114
|
+
/*! no static exports found */
|
115
|
+
/***/ (function(module, exports) {
|
116
|
+
|
117
|
+
eval("/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJz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baSsrXV0sIGJ0aFtidWZbaSsrXV0sICctJyxcbiAgICBidGhbYnVmW2krK11dLCBidGhbYnVmW2krK11dLCAnLScsXG4gICAgYnRoW2J1ZltpKytdXSwgYnRoW2J1ZltpKytdXSwgJy0nLFxuICAgIGJ0aFtidWZbaSsrXV0sIGJ0aFtidWZbaSsrXV0sICctJyxcbiAgICBidGhbYnVmW2krK11dLCBidGhbYnVmW2krK11dLFxuICAgIGJ0aFtidWZbaSsrXV0sIGJ0aFtidWZbaSsrXV0sXG4gICAgYnRoW2J1ZltpKytdXSwgYnRoW2J1ZltpKytdXVxuICBdKS5qb2luKCcnKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBieXRlc1RvVXVpZDtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/uuid/lib/bytesToUuid.js\n");
|
118
|
+
|
119
|
+
/***/ }),
|
120
|
+
|
121
|
+
/***/ "./node_modules/uuid/lib/rng-browser.js":
|
122
|
+
/*!**********************************************!*\
|
123
|
+
!*** ./node_modules/uuid/lib/rng-browser.js ***!
|
124
|
+
\**********************************************/
|
125
|
+
/*! no static exports found */
|
126
|
+
/***/ (function(module, exports) {
|
127
|
+
|
128
|
+
eval("// Unique ID creation requires a high quality random # generator. In the\n// browser this is a little complicated due to unknown quality of Math.random()\n// and inconsistent support for the `crypto` API. We do the best we can via\n// feature-detection\n\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto\n// implementation. Also, find the complete implementation of crypto on IE11.\nvar getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||\n (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));\n\nif (getRandomValues) {\n // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto\n var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef\n\n module.exports = function whatwgRNG() {\n getRandomValues(rnds8);\n return rnds8;\n };\n} else {\n // Math.random()-based (RNG)\n //\n // If all else fails, use Math.random(). It's fast, but is of unspecified\n // quality.\n var rnds = new Array(16);\n\n module.exports = function mathRNG() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 0x03) === 0) r = Math.random() * 0x100000000;\n rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;\n }\n\n return rnds;\n };\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vbm9kZV9tb2R1bGVzL3V1aWQvbGliL3JuZy1icm93c2VyLmpzP2UxZjQiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBLGlDQUFpQzs7QUFFakM7QUFDQTtBQUNBO0FBQ0E7QUFDQSxDQUFDO0FBQ0Q7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBLHNCQUFzQixRQUFRO0FBQzlCO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0EiLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdXVpZC9saWIvcm5nLWJyb3dzZXIuanMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBVbmlxdWUgSUQgY3JlYXRpb24gcmVxdWlyZXMgYSBoaWdoIHF1YWxpdHkgcmFuZG9tICMgZ2VuZXJhdG9yLiAgSW4gdGhlXG4vLyBicm93c2VyIHRoaXMgaXMgYSBsaXR0bGUgY29tcGxpY2F0ZWQgZHVlIHRvIHVua25vd24gcXVhbGl0eSBvZiBNYXRoLnJhbmRvbSgpXG4vLyBhbmQgaW5jb25zaXN0ZW50IHN1cHBvcnQgZm9yIHRoZSBgY3J5cHRvYCBBUEkuICBXZSBkbyB0aGUgYmVzdCB3ZSBjYW4gdmlhXG4vLyBmZWF0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dzIGZhc3QsIGJ1dCBpcyBvZiB1bnNwZWNpZmllZFxuICAvLyBxdWFsaXR5LlxuICB2YXIgcm5kcyA9IG5ldyBBcnJheSgxNik7XG5cbiAgbW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiBtYXRoUk5HKCkge1xuICAgIGZvciAodmFyIGkgPSAwLCByOyBpIDwgMTY7IGkrKykge1xuICAgICAgaWYgKChpICYgMHgwMykgPT09IDApIHIgPSBNYXRoLnJhbmRvbSgpICogMHgxMDAwMDAwMDA7XG4gICAgICBybmRzW2ldID0gciA+Pj4gKChpICYgMHgwMykgPDwgMykgJiAweGZmO1xuICAgIH1cblxuICAgIHJldHVybiBybmRzO1xuICB9O1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/uuid/lib/rng-browser.js\n");
|
129
|
+
|
130
|
+
/***/ }),
|
131
|
+
|
132
|
+
/***/ "./node_modules/uuid/v1.js":
|
133
|
+
/*!*********************************!*\
|
134
|
+
!*** ./node_modules/uuid/v1.js ***!
|
135
|
+
\*********************************/
|
136
|
+
/*! no static exports found */
|
137
|
+
/***/ (function(module, exports, __webpack_require__) {
|
138
|
+
|
139
|
+
eval("var rng = __webpack_require__(/*! ./lib/rng */ \"./node_modules/uuid/lib/rng-browser.js\");\nvar bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ \"./node_modules/uuid/lib/bytesToUuid.js\");\n\n// **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\n\nvar _nodeId;\nvar _clockseq;\n\n// Previous uuid creation time\nvar _lastMSecs = 0;\nvar _lastNSecs = 0;\n\n// See https://github.com/uuidjs/uuid for API details\nfunction v1(options, buf, offset) {\n var i = buf && offset || 0;\n var b = buf || [];\n\n options = options || {};\n var node = options.node || _nodeId;\n var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;\n\n // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n if (node == null || clockseq == null) {\n var seedBytes = rng();\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [\n seedBytes[0] | 0x01,\n seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]\n ];\n }\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n }\n\n // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();\n\n // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;\n\n // Time since last uuid creation (in msecs)\n var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;\n\n // Per 4.2.1.2, Bump clockseq on clock regression\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n }\n\n // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n }\n\n // Per 4.2.1.2 Throw error if too many uuids are requested\n if (nsecs >= 10000) {\n throw new Error('uuid.v1(): Can\\'t create more than 10M uuids/sec');\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq;\n\n // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n msecs += 12219292800000;\n\n // `time_low`\n var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff;\n\n // `time_mid`\n var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff;\n\n // `time_high_and_version`\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n b[i++] = tmh >>> 16 & 0xff;\n\n // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n b[i++] = clockseq >>> 8 | 0x80;\n\n // `clock_seq_low`\n b[i++] = clockseq & 0xff;\n\n // `node`\n for (var n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf ? buf : bytesToUuid(b);\n}\n\nmodule.exports = v1;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vbm9kZV9tb2R1bGVzL3V1aWQvdjEuanM/YzQzNyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxVQUFVLG1CQUFPLENBQUMseURBQVc7QUFDN0Isa0JBQWtCLG1CQUFPLENBQUMsaUVBQW1COztBQUU3QztBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO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gIGJbaSsrXSA9IHRtaCA+Pj4gOCAmIDB4ZmY7XG4gIGJbaSsrXSA9IHRtaCAmIDB4ZmY7XG5cbiAgLy8gYHRpbWVfaGlnaF9hbmRfdmVyc2lvbmBcbiAgYltpKytdID0gdG1oID4+PiAyNCAmIDB4ZiB8IDB4MTA7IC8vIGluY2x1ZGUgdmVyc2lvblxuICBiW2krK10gPSB0bWggPj4+IDE2ICYgMHhmZjtcblxuICAvLyBgY2xvY2tfc2VxX2hpX2FuZF9yZXNlcnZlZGAgKFBlciA0LjIuMiAtIGluY2x1ZGUgdmFyaWFudClcbiAgYltpKytdID0gY2xvY2tzZXEgPj4+IDggfCAweDgwO1xuXG4gIC8vIGBjbG9ja19zZXFfbG93YFxuICBiW2krK10gPSBjbG9ja3NlcSAmIDB4ZmY7XG5cbiAgLy8gYG5vZGVgXG4gIGZvciAodmFyIG4gPSAwOyBuIDwgNjsgKytuKSB7XG4gICAgYltpICsgbl0gPSBub2RlW25dO1xuICB9XG5cbiAgcmV0dXJuIGJ1ZiA/IGJ1ZiA6IGJ5dGVzVG9VdWlkKGIpO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IHYxO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/uuid/v1.js\n");
|
140
|
+
|
141
|
+
/***/ }),
|
142
|
+
|
143
|
+
/***/ "./node_modules/uuid/v4.js":
|
144
|
+
/*!*********************************!*\
|
145
|
+
!*** ./node_modules/uuid/v4.js ***!
|
146
|
+
\*********************************/
|
147
|
+
/*! no static exports found */
|
148
|
+
/***/ (function(module, exports, __webpack_require__) {
|
149
|
+
|
150
|
+
eval("var rng = __webpack_require__(/*! ./lib/rng */ \"./node_modules/uuid/lib/rng-browser.js\");\nvar bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ \"./node_modules/uuid/lib/bytesToUuid.js\");\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vbm9kZV9tb2R1bGVzL3V1aWQvdjQuanM/YzY0ZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxVQUFVLG1CQUFPLENBQUMseURBQVc7QUFDN0Isa0JBQWtCLG1CQUFPLENBQUMsaUVBQW1COztBQUU3QztBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQSxvQkFBb0IsU0FBUztBQUM3QjtBQUNBO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy91dWlkL3Y0LmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsidmFyIHJuZyA9IHJlcXVpcmUoJy4vbGliL3JuZycpO1xudmFyIGJ5dGVzVG9VdWlkID0gcmVxdWlyZSgnLi9saWIvYnl0ZXNUb1V1aWQnKTtcblxuZnVuY3Rpb24gdjQob3B0aW9ucywgYnVmLCBvZmZzZXQpIHtcbiAgdmFyIGkgPSBidWYgJiYgb2Zmc2V0IHx8IDA7XG5cbiAgaWYgKHR5cGVvZihvcHRpb25zKSA9PSAnc3RyaW5nJykge1xuICAgIGJ1ZiA9IG9wdGlvbnMgPT09ICdiaW5hcnknID8gbmV3IEFycmF5KDE2KSA6IG51bGw7XG4gICAgb3B0aW9ucyA9IG51bGw7XG4gIH1cbiAgb3B0aW9ucyA9IG9wdGlvbnMgfHwge307XG5cbiAgdmFyIHJuZHMgPSBvcHRpb25zLnJhbmRvbSB8fCAob3B0aW9ucy5ybmcgfHwgcm5nKSgpO1xuXG4gIC8vIFBlciA0LjQsIHNldCBiaXRzIGZvciB2ZXJzaW9uIGFuZCBgY2xvY2tfc2VxX2hpX2FuZF9yZXNlcnZlZGBcbiAgcm5kc1s2XSA9IChybmRzWzZdICYgMHgwZikgfCAweDQwO1xuICBybmRzWzhdID0gKHJuZHNbOF0gJiAweDNmKSB8IDB4ODA7XG5cbiAgLy8gQ29weSBieXRlcyB0byBidWZmZXIsIGlmIHByb3ZpZGVkXG4gIGlmIChidWYpIHtcbiAgICBmb3IgKHZhciBpaSA9IDA7IGlpIDwgMTY7ICsraWkpIHtcbiAgICAgIGJ1ZltpICsgaWldID0gcm5kc1tpaV07XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIGJ1ZiB8fCBieXRlc1RvVXVpZChybmRzKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSB2NDtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/uuid/v4.js\n");
|
151
|
+
|
152
|
+
/***/ }),
|
153
|
+
|
154
|
+
/***/ "./node_modules/webpack/buildin/global.js":
|
155
|
+
/*!***********************************!*\
|
156
|
+
!*** (webpack)/buildin/global.js ***!
|
157
|
+
\***********************************/
|
158
|
+
/*! no static exports found */
|
159
|
+
/***/ (function(module, exports) {
|
160
|
+
|
161
|
+
eval("var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLyh3ZWJwYWNrKS9idWlsZGluL2dsb2JhbC5qcz9jZDAwIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztBQUVBO0FBQ0E7QUFDQTtBQUNBLENBQUM7O0FBRUQ7QUFDQTtBQUNBO0FBQ0EsQ0FBQztBQUNEO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0EsNENBQTRDOztBQUU1QyIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy93ZWJwYWNrL2J1aWxkaW4vZ2xvYmFsLmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsidmFyIGc7XG5cbi8vIFRoaXMgd29ya3MgaW4gbm9uLXN0cmljdCBtb2RlXG5nID0gKGZ1bmN0aW9uKCkge1xuXHRyZXR1cm4gdGhpcztcbn0pKCk7XG5cbnRyeSB7XG5cdC8vIFRoaXMgd29ya3MgaWYgZXZhbCBpcyBhbGxvd2VkIChzZWUgQ1NQKVxuXHRnID0gZyB8fCBuZXcgRnVuY3Rpb24oXCJyZXR1cm4gdGhpc1wiKSgpO1xufSBjYXRjaCAoZSkge1xuXHQvLyBUaGlzIHdvcmtzIGlmIHRoZSB3aW5kb3cgcmVmZXJlbmNlIGlzIGF2YWlsYWJsZVxuXHRpZiAodHlwZW9mIHdpbmRvdyA9PT0gXCJvYmplY3RcIikgZyA9IHdpbmRvdztcbn1cblxuLy8gZyBjYW4gc3RpbGwgYmUgdW5kZWZpbmVkLCBidXQgbm90aGluZyB0byBkbyBhYm91dCBpdC4uLlxuLy8gV2UgcmV0dXJuIHVuZGVmaW5lZCwgaW5zdGVhZCBvZiBub3RoaW5nIGhlcmUsIHNvIGl0J3Ncbi8vIGVhc2llciB0byBoYW5kbGUgdGhpcyBjYXNlLiBpZighZ2xvYmFsKSB7IC4uLn1cblxubW9kdWxlLmV4cG9ydHMgPSBnO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/webpack/buildin/global.js\n");
|
162
|
+
|
163
|
+
/***/ }),
|
164
|
+
|
165
|
+
/***/ "./src/index.js":
|
166
|
+
/*!**********************!*\
|
167
|
+
!*** ./src/index.js ***!
|
168
|
+
\**********************/
|
169
|
+
/*! exports provided: Arr, Obj, Num, Str, Now, Any, Dom, Cookie, Data, Element, Event, Locale, Map, Queue, Route, UUID, Pico, default */
|
170
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
171
|
+
|
172
|
+
"use strict";
|
173
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Pico\", function() { return Pico; });\n/* harmony import */ var _utility_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utility/array.js */ \"./src/utility/array.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Arr\", function() { return _utility_array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _utility_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utility/object.js */ \"./src/utility/object.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Obj\", function() { return _utility_object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _utility_number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utility/number.js */ \"./src/utility/number.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Num\", function() { return _utility_number_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _utility_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utility/string.js */ \"./src/utility/string.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Str\", function() { return _utility_string_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _utility_now_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utility/now.js */ \"./src/utility/now.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Now\", function() { return _utility_now_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _utility_any_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utility/any.js */ \"./src/utility/any.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Any\", function() { return _utility_any_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _utility_dom_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utility/dom.js */ \"./src/utility/dom.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Dom\", function() { return _utility_dom_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _library_cookie_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./library/cookie.js */ \"./src/library/cookie.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Cookie\", function() { return _library_cookie_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _library_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./library/data.js */ \"./src/library/data.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Data\", function() { return _library_data_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/* harmony import */ var _library_element_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./library/element.js */ \"./src/library/element.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Element\", function() { return _library_element_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; });\n\n/* harmony import */ var _library_event_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./library/event.js */ \"./src/library/event.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Event\", function() { return _library_event_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; });\n\n/* harmony import */ var _library_locale_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./library/locale.js */ \"./src/library/locale.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Locale\", function() { return _library_locale_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"]; });\n\n/* harmony import */ var _library_map_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./library/map.js */ \"./src/library/map.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Map\", function() { return _library_map_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"]; });\n\n/* harmony import */ var _library_queue_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./library/queue.js */ \"./src/library/queue.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Queue\", function() { return _library_queue_js__WEBPACK_IMPORTED_MODULE_13__[\"default\"]; });\n\n/* harmony import */ var _library_route_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./library/route.js */ \"./src/library/route.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Route\", function() { return _library_route_js__WEBPACK_IMPORTED_MODULE_14__[\"default\"]; });\n\n/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! uuid */ \"./node_modules/uuid/index.js\");\n/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"UUID\", function() { return uuid__WEBPACK_IMPORTED_MODULE_15__[\"v4\"]; });\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Pico = {\n UUID: uuid__WEBPACK_IMPORTED_MODULE_15__[\"v4\"],\n Arr: _utility_array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n Obj: _utility_object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n Num: _utility_number_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n Str: _utility_string_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n Now: _utility_now_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n Any: _utility_any_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n Dom: _utility_dom_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n Cookie: _library_cookie_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n Data: _library_data_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n Element: _library_element_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n Event: _library_event_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n Locale: _library_locale_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n Map: _library_map_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n Queue: _library_queue_js__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n Route: _library_route_js__WEBPACK_IMPORTED_MODULE_14__[\"default\"]\n};\n/**\n * @const global\n */\n\nif (typeof global.IE === 'undefined' && global.navigator) {\n global.IE = !!global.navigator.userAgent.match(/Edge\\/|Trident\\/|MSIE /);\n}\n\nif (typeof global.WIN === 'undefined' && global.navigator) {\n global.WIN = !!global.navigator.userAgent.match(/Windows/);\n}\n\nif (typeof global.pi === 'undefined' && global.navigator) {\n global.pi = Pico;\n}\n\nif (typeof global.pi !== 'undefined' && global.document) {\n global.pi.Dom.ready(global.pi.Element.listen);\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Pico);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vc3JjL2luZGV4LmpzP2I2MzUiXSwibmFtZXMiOlsiUGljbyIsIlVVSUQiLCJBcnIiLCJPYmoiLCJOdW0iLCJTdHIiLCJOb3ciLCJBbnkiLCJEb20iLCJDb29raWUiLCJEYXRhIiwiRWxlbWVudCIsIkV2ZW50IiwiTG9jYWxlIiwiTWFwIiwiUXVldWUiLCJSb3V0ZSIsImdsb2JhbCIsIklFIiwibmF2aWdhdG9yIiwidXNlckFnZW50IiwibWF0Y2giLCJXSU4iLCJwaSIsImRvY3VtZW50IiwicmVhZHkiLCJsaXN0ZW4iXSwibWFwcGluZ3MiOiJBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFDQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFDQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFDQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFDQT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iAgICBFdmVudDogRXZlbnQsXG4gICAgTG9jYWxlOiBMb2NhbGUsXG4gICAgTWFwOiBNYXAsXG4gICAgUXVldWU6IFF1ZXVlLFxuICAgIFJvdXRlOiBSb3V0ZSxcbn1cblxuLyoqXG4gKiBAY29uc3QgZ2xvYmFsXG4gKi9cblxuaWYgKCB0eXBlb2YgZ2xvYmFsLklFID09PSAndW5kZWZpbmVkJyAmJiBnbG9iYWwubmF2aWdhdG9yICkge1xuICAgIGdsb2JhbC5JRSA9ICEhIGdsb2JhbC5uYXZpZ2F0b3IudXNlckFnZW50Lm1hdGNoKC9FZGdlXFwvfFRyaWRlbnRcXC98TVNJRSAvKTtcbn1cblxuaWYgKCB0eXBlb2YgZ2xvYmFsLldJTiA9PT0gJ3VuZGVmaW5lZCcgJiYgZ2xvYmFsLm5hdmlnYXRvciApIHtcbiAgICBnbG9iYWwuV0lOID0gISEgZ2xvYmFsLm5hdmlnYXRvci51c2VyQWdlbnQubWF0Y2goL1dpbmRvd3MvKTtcbn1cblxuaWYgKCB0eXBlb2YgZ2xvYmFsLnBpID09PSAndW5kZWZpbmVkJyAmJiBnbG9iYWwubmF2aWdhdG9yICkge1xuICAgIGdsb2JhbC5waSA9IFBpY287XG59XG5cbmlmICggdHlwZW9mIGdsb2JhbC5waSAhPT0gJ3VuZGVmaW5lZCcgJiYgZ2xvYmFsLmRvY3VtZW50ICkge1xuICAgIGdsb2JhbC5waS5Eb20ucmVhZHkoZ2xvYmFsLnBpLkVsZW1lbnQubGlzdGVuKTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgUGljbztcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/index.js\n");
|
174
|
+
|
175
|
+
/***/ }),
|
176
|
+
|
177
|
+
/***/ "./src/library/cookie.js":
|
178
|
+
/*!*******************************!*\
|
179
|
+
!*** ./src/library/cookie.js ***!
|
180
|
+
\*******************************/
|
181
|
+
/*! exports provided: Cookie, default */
|
182
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
183
|
+
|
184
|
+
"use strict";
|
185
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Cookie\", function() { return Cookie; });\n/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ \"./src/index.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\nvar Cookie = /*#__PURE__*/function () {\n function Cookie() {\n _classCallCheck(this, Cookie);\n }\n\n _createClass(Cookie, null, [{\n key: \"get\",\n\n /**\n * Pattern to get the cookie desired\n *\n * @type {string}\n */\n\n /**\n * Get cookie from current session\n *\n * @param {string} key\n * @param {*} fallback\n * @param {'string','boolean','float','integer','object','array'} decode\n * @returns {*}\n */\n value: function get(key) {\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var decode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'string';\n var pattern = this.pattern.replace('{key}', key);\n var result = document.cookie.match(pattern);\n\n if (!result) {\n return fallback;\n }\n\n var plain = result[2].replace(/\\{:\\}/g, ';');\n\n if (decode === 'boolean') {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"][\"boolean\"](plain);\n }\n\n if (decode === 'float') {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"][\"float\"](plain);\n }\n\n if (decode === 'integer') {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].integer(plain);\n }\n\n if (decode === 'object') {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Str\"].objectify(plain, 'params', false);\n }\n\n if (decode === 'array') {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Str\"].objectify(plain, 'params', true);\n }\n\n return plain;\n }\n /**\n * Set cookie in current session\n *\n * @param {string} key\n * @param {*} value\n * @param {integer} expire\n * @param {object} options\n */\n\n }, {\n key: \"set\",\n value: function set(key, value) {\n var expire = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var date = new Date();\n\n if (expire !== null) {\n date.setTime(Date.now() + (expire || 0));\n }\n\n if (Date.now() !== date.getTime()) {\n options.expires = date.toUTCString();\n }\n\n if (!options.path) {\n options.path = '/';\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isObject(value)) {\n value = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Str\"].stringify(value, 'params');\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isString(value)) {\n value = value.replace(/;/g, '{:}');\n }\n\n var plain = \"\".concat(key, \"=\").concat(value, \";\");\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].each(options, function (value, key) {\n plain += \"\".concat(key, \"=\").concat(value, \";\");\n });\n document.cookie = plain;\n }\n /**\n * Forget cookie from current session\n *\n * @param {string} key\n * @param {object} options\n */\n\n }, {\n key: \"forget\",\n value: function forget(key) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (!options.path) {\n options.path = '/';\n }\n\n options.expires = 'Thu, 01 Jan 1970 00:00:01 GMT';\n var plain = \"\".concat(key, \"=null;\");\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].each(options, function (value, key) {\n plain += \"\".concat(key, \"=\").concat(value, \";\");\n });\n document.cookie = plain;\n }\n }]);\n\n return Cookie;\n}();\n\n_defineProperty(Cookie, \"pattern\", '(^|;)\\\\s*{key}\\\\s*=\\\\s*([^;]+)');\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Cookie);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vc3JjL2xpYnJhcnkvY29va2llLmpzP2VjYzciXSwibmFtZXMiOlsiQ29va2llIiwia2V5IiwiZmFsbGJhY2siLCJkZWNvZGUiLCJwYXR0ZXJuIiwicmVwbGFjZSIsInJlc3VsdCIsImRvY3VtZW50IiwiY29va2llIiwibWF0Y2giLCJwbGFpbiIsIkFueSIsImludGVnZXIiLCJTdHIiLCJvYmplY3RpZnkiLCJ2YWx1ZSIsImV4cGlyZSIsIm9wdGlvbnMiLCJkYXRlIiwiRGF0ZSIsInNldFRpbWUiLCJub3ciLCJnZXRUaW1lIiwiZXhwaXJlcyIsInRvVVRDU3RyaW5nIiwicGF0aCIsImlzT2JqZWN0Iiwic3RyaW5naWZ5IiwiaXNTdHJpbmciLCJPYmoiLCJlYWNoIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBO0FBRU8sSUFBTUEsTUFBYjtBQUFBO0FBQUE7QUFBQTs7QUFBQTtBQUFBOztBQUVJO0FBQ0o7QUFDQTtBQUNBO0FBQ0E7O0FBR0k7QUFDSjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQWhCQSx3QkFpQmVDLEdBakJmLEVBa0JJO0FBQUEsVUFEZ0JDLFFBQ2hCLHVFQUQyQixJQUMzQjtBQUFBLFVBRGlDQyxNQUNqQyx1RUFEMEMsUUFDMUM7QUFDSSxVQUFJQyxPQUFPLEdBQUcsS0FBS0EsT0FBTCxDQUNUQyxPQ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xzKntrZXl9XFxcXHMqPVxcXFxzKihbXjtdKyknO1xuXG4gICAgLyoqXG4gICAgICogR2V0IGNvb2tpZSBmcm9tIGN1cnJlbnQgc2Vzc2lvblxuICAgICAqXG4gICAgICogQHBhcmFtIHtzdHJpbmd9IGtleVxuICAgICAqIEBwYXJhbSB7Kn0gZmFsbGJhY2tcbiAgICAgKiBAcGFyYW0geydzdHJpbmcnLCdib29sZWFuJywnZmxvYXQnLCdpbnRlZ2VyJywnb2JqZWN0JywnYXJyYXknfSBkZWNvZGVcbiAgICAgKiBAcmV0dXJucyB7Kn1cbiAgICAgKi9cbiAgICBzdGF0aWMgZ2V0KGtleSwgZmFsbGJhY2sgPSBudWxsLCBkZWNvZGUgPSAnc3RyaW5nJylcbiAgICB7XG4gICAgICAgIGxldCBwYXR0ZXJuID0gdGhpcy5wYXR0ZXJuXG4gICAgICAgICAgICAucmVwbGFjZSgne2tleX0nLCBrZXkpO1xuXG4gICAgICAgIGxldCByZXN1bHQgPSBkb2N1bWVudC5jb29raWVcbiAgICAgICAgICAgIC5tYXRjaChwYXR0ZXJuKTtcblxuICAgICAgICBpZiAoICEgcmVzdWx0ICkge1xuICAgICAgICAgICAgcmV0dXJuIGZhbGxiYWNrO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHBsYWluID0gcmVzdWx0WzJdLnJlcGxhY2UoL1xcezpcXH0vZywgJzsnKTtcblxuICAgICAgICBpZiAoIGRlY29kZSA9PT0gJ2Jvb2xlYW4nICkge1xuICAgICAgICAgICAgcmV0dXJuIEFueS5ib29sZWFuKHBsYWluKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggZGVjb2RlID09PSAnZmxvYXQnICkge1xuICAgICAgICAgICAgcmV0dXJuIEFueS5mbG9hdChwbGFpbik7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIGRlY29kZSA9PT0gJ2ludGVnZXInICkge1xuICAgICAgICAgICAgcmV0dXJuIEFueS5pbnRlZ2VyKHBsYWluKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggZGVjb2RlID09PSAnb2JqZWN0JyApIHtcbiAgICAgICAgICAgIHJldHVybiBTdHIub2JqZWN0aWZ5KHBsYWluLCAncGFyYW1zJywgZmFsc2UpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBkZWNvZGUgPT09ICdhcnJheScgKSB7XG4gICAgICAgICAgICByZXR1cm4gU3RyLm9iamVjdGlmeShwbGFpbiwgJ3BhcmFtcycsIHRydWUpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHBsYWluO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFNldCBjb29raWUgaW4gY3VycmVudCBzZXNzaW9uXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge3N0cmluZ30ga2V5XG4gICAgICogQHBhcmFtIHsqfSB2YWx1ZVxuICAgICAqIEBwYXJhbSB7aW50ZWdlcn0gZXhwaXJlXG4gICAgICogQHBhcmFtIHtvYmplY3R9IG9wdGlvbnNcbiAgICAgKi9cbiAgICBzdGF0aWMgc2V0KGtleSwgdmFsdWUsIGV4cGlyZSA9IG51bGwsIG9wdGlvbnMgPSB7fSlcbiAgICB7XG4gICAgICAgIGxldCBkYXRlID0gbmV3IERhdGU7XG5cbiAgICAgICAgaWYgKCBleHBpcmUgIT09IG51bGwgKSB7XG4gICAgICAgICAgICBkYXRlLnNldFRpbWUoRGF0ZS5ub3coKSArIChleHBpcmUgfHwgMCkpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBEYXRlLm5vdygpICE9PSBkYXRlLmdldFRpbWUoKSApIHtcbiAgICAgICAgICAgIG9wdGlvbnMuZXhwaXJlcyA9IGRhdGUudG9VVENTdHJpbmcoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggISBvcHRpb25zLnBhdGggKSB7XG4gICAgICAgICAgICBvcHRpb25zLnBhdGggPSAnLyc7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIEFueS5pc09iamVjdCh2YWx1ZSkgKSB7XG4gICAgICAgICAgICB2YWx1ZSA9IFN0ci5zdHJpbmdpZnkodmFsdWUsICdwYXJhbXMnKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggQW55LmlzU3RyaW5nKHZhbHVlKSApIHtcbiAgICAgICAgICAgIHZhbHVlID0gdmFsdWUucmVwbGFjZSgvOy9nLCAnezp9Jyk7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgcGxhaW4gPSBgJHtrZXl9PSR7dmFsdWV9O2A7XG5cbiAgICAgICAgT2JqLmVhY2gob3B0aW9ucywgKHZhbHVlLCBrZXkpID0+IHtcbiAgICAgICAgICAgIHBsYWluICs9IGAke2tleX09JHt2YWx1ZX07YDtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgZG9jdW1lbnQuY29va2llID0gcGxhaW47XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogRm9yZ2V0IGNvb2tpZSBmcm9tIGN1cnJlbnQgc2Vzc2lvblxuICAgICAqXG4gICAgICogQHBhcmFtIHtzdHJpbmd9IGtleVxuICAgICAqIEBwYXJhbSB7b2JqZWN0fSBvcHRpb25zXG4gICAgICovXG4gICAgc3RhdGljIGZvcmdldChrZXksIG9wdGlvbnMgPSB7fSlcbiAgICB7XG4gICAgICAgIGlmICggISBvcHRpb25zLnBhdGggKSB7XG4gICAgICAgICAgICBvcHRpb25zLnBhdGggPSAnLyc7XG4gICAgICAgIH1cblxuICAgICAgICBvcHRpb25zLmV4cGlyZXMgPSAnVGh1LCAwMSBKYW4gMTk3MCAwMDowMDowMSBHTVQnO1xuXG4gICAgICAgIGxldCBwbGFpbiA9IGAke2tleX09bnVsbDtgO1xuXG4gICAgICAgIE9iai5lYWNoKG9wdGlvbnMsICh2YWx1ZSwga2V5KSA9PiB7XG4gICAgICAgICAgICBwbGFpbiArPSBgJHtrZXl9PSR7dmFsdWV9O2A7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGRvY3VtZW50LmNvb2tpZSA9IHBsYWluO1xuICAgIH1cblxufVxuXG5leHBvcnQgZGVmYXVsdCBDb29raWU7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/library/cookie.js\n");
|
186
|
+
|
187
|
+
/***/ }),
|
188
|
+
|
189
|
+
/***/ "./src/library/data.js":
|
190
|
+
/*!*****************************!*\
|
191
|
+
!*** ./src/library/data.js ***!
|
192
|
+
\*****************************/
|
193
|
+
/*! exports provided: Data, default */
|
194
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
195
|
+
|
196
|
+
"use strict";
|
197
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Data\", function() { return Data; });\n/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ \"./src/index.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\nvar Data = /*#__PURE__*/function () {\n function Data() {\n _classCallCheck(this, Data);\n }\n\n _createClass(Data, null, [{\n key: \"has\",\n value: function has(input) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(this.data, _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].first(input));\n }\n }, {\n key: \"set\",\n value: function set(input, value) {\n var clone = value,\n key = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].first(input);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEqual(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.data, key), clone)) {\n return;\n }\n\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].set(this.data, key, clone);\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Event\"].fire('store:' + key, clone, key);\n }\n }, {\n key: \"unset\",\n value: function unset(input) {\n var key = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].first(input);\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].unset(this.data, key);\n }\n }, {\n key: \"get\",\n value: function get(input) {\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var forceSet = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var key = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].first(input);\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(this.data, key) && !forceSet) {\n return fallback;\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(this.data, key) && forceSet) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].set(this.data, key, fallback);\n }\n\n var value = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.data, key, fallback);\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isPlain(value)) {\n return value;\n }\n\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].clone(value);\n }\n }, {\n key: \"find\",\n value: function find(input, value) {\n var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var key = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].first(input);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(this.data, key) === false) {\n return fallback;\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(value, 'id') === false) {\n return fallback;\n }\n\n var index = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].findIndex(this.get(key), {\n id: value.id\n });\n\n if (index === -1) {\n return fallback;\n }\n\n return this.get(key + '.' + index);\n }\n }, {\n key: \"replace\",\n value: function replace(input, value) {\n var key = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].first(input);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(this.data, key) === false) {\n return;\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(value, 'id') === false) {\n return;\n }\n\n var index = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].findIndex(this.get(key), {\n id: _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Num\"][\"int\"](value.id)\n });\n\n if (index === -1) {\n return;\n }\n\n this.set(key + '.' + index, value);\n }\n }, {\n key: \"add\",\n value: function add(input) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n this.set(input, _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].concat(this.get(input, []), args));\n }\n }, {\n key: \"remove\",\n value: function remove(input) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n this.set(input, _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].diff(this.get(input, []), args));\n }\n }]);\n\n return Data;\n}();\n\n_defineProperty(Data, \"data\", _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(global, '_data', {}));\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Data);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/global.js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HV0KTtcblxuICAgICAgICBPYmoudW5zZXQodGhpcy5kYXRhLCBrZXkpO1xuICAgIH1cblxuICAgIHN0YXRpYyBnZXQgKGlucHV0LCBmYWxsYmFjayA9IG51bGwsIGZvcmNlU2V0ID0gZmFsc2UpXG4gICAge1xuICAgICAgICBsZXQga2V5ID0gQXJyLmZpcnN0KGlucHV0KTtcblxuICAgICAgICBpZiAoICEgT2JqLmhhcyh0aGlzLmRhdGEsIGtleSkgJiYgISBmb3JjZVNldCApIHtcbiAgICAgICAgICAgIHJldHVybiBmYWxsYmFjaztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggT2JqLmhhcyh0aGlzLmRhdGEsIGtleSkgJiYgZm9yY2VTZXQgKSB7XG4gICAgICAgICAgICBPYmouc2V0KHRoaXMuZGF0YSwga2V5LCBmYWxsYmFjayk7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgdmFsdWUgPSBPYmouZ2V0KHRoaXMuZGF0YSwga2V5LCBmYWxsYmFjayk7XG5cbiAgICAgICAgaWYgKCAhIEFueS5pc1BsYWluKHZhbHVlKSApIHtcbiAgICAgICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBPYmouY2xvbmUodmFsdWUpO1xuICAgIH1cblxuICAgIHN0YXRpYyBmaW5kIChpbnB1dCwgdmFsdWUsIGZhbGxiYWNrID0gbnVsbClcbiAgICB7XG4gICAgICAgIGxldCBrZXkgPSBBcnIuZmlyc3QoaW5wdXQpO1xuXG4gICAgICAgIGlmICggT2JqLmhhcyh0aGlzLmRhdGEsIGtleSkgPT09IGZhbHNlICkge1xuICAgICAgICAgICAgcmV0dXJuIGZhbGxiYWNrO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBPYmouaGFzKHZhbHVlLCAnaWQnKSA9PT0gZmFsc2UgICkge1xuICAgICAgICAgICAgcmV0dXJuIGZhbGxiYWNrO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGluZGV4ID0gQXJyLmZpbmRJbmRleCh0aGlzLmdldChrZXkpLCB7XG4gICAgICAgICAgICBpZDogdmFsdWUuaWRcbiAgICAgICAgfSk7XG5cbiAgICAgICAgaWYgKCBpbmRleCA9PT0gLTEgKSB7XG4gICAgICAgICAgICByZXR1cm4gZmFsbGJhY2s7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpcy5nZXQoa2V5ICsgJy4nICsgaW5kZXgpO1xuICAgIH1cblxuICAgIHN0YXRpYyByZXBsYWNlIChpbnB1dCwgdmFsdWUpXG4gICAge1xuICAgICAgICBsZXQga2V5ID0gQXJyLmZpcnN0KGlucHV0KTtcblxuICAgICAgICBpZiAoIE9iai5oYXModGhpcy5kYXRhLCBrZXkpID09PSBmYWxzZSApIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggT2JqLmhhcyh2YWx1ZSwgJ2lkJykgPT09IGZhbHNlICApIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBpbmRleCA9IEFyci5maW5kSW5kZXgodGhpcy5nZXQoa2V5KSwge1xuICAgICAgICAgICAgaWQ6IE51bS5pbnQodmFsdWUuaWQpXG4gICAgICAgIH0pO1xuXG4gICAgICAgIGlmICggaW5kZXggPT09IC0xICkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5zZXQoa2V5ICsgJy4nICsgaW5kZXgsIHZhbHVlKTtcbiAgICB9XG5cbiAgICBzdGF0aWMgYWRkIChpbnB1dCwgLi4uYXJncylcbiAgICB7XG4gICAgICAgIHRoaXMuc2V0KGlucHV0LCBBcnIuY29uY2F0KHRoaXMuZ2V0KGlucHV0LCBbXSksIGFyZ3MpKTtcbiAgICB9XG5cbiAgICBzdGF0aWMgcmVtb3ZlIChpbnB1dCwgLi4uYXJncylcbiAgICB7XG4gICAgICAgIHRoaXMuc2V0KGlucHV0LCBBcnIuZGlmZih0aGlzLmdldChpbnB1dCwgW10pLCBhcmdzKSk7XG4gICAgfVxuXG59XG5cbmV4cG9ydCBkZWZhdWx0IERhdGE7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/library/data.js\n");
|
198
|
+
|
199
|
+
/***/ }),
|
200
|
+
|
201
|
+
/***/ "./src/library/element.js":
|
202
|
+
/*!********************************!*\
|
203
|
+
!*** ./src/library/element.js ***!
|
204
|
+
\********************************/
|
205
|
+
/*! exports provided: Element, default */
|
206
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
207
|
+
|
208
|
+
"use strict";
|
209
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Element\", function() { return Element; });\n/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ \"./src/index.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\nvar Element = /*#__PURE__*/function () {\n function Element() {\n _classCallCheck(this, Element);\n }\n\n _createClass(Element, null, [{\n key: \"listen\",\n\n /**\n * Prefix for attribute selector.\n */\n\n /**\n * Mounted identifier.\n */\n\n /**\n * Instance storage.\n */\n\n /**\n * Runtime storage.\n */\n\n /**\n * Instance storage.\n */\n value: function listen() {\n // Apply dom scroll event\n document.addEventListener(\"scroll\", Element.scroll); // Apply initial scroll event\n\n Element.scroll();\n }\n }, {\n key: \"scroll\",\n value: function scroll() {\n var _this = this;\n\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].each(this.invi, function (item, index) {\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(item.el).inviewY()) {\n return;\n }\n\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].removeIndex(_this.invi, index);\n item.cb();\n });\n }\n /**\n * Bind a class on selector.\n */\n\n }, {\n key: \"alias\",\n value: function alias(key, instance) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].set(this.inis, key, instance);\n return this;\n }\n }, {\n key: \"bind\",\n value: function bind(key, selector) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var el = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(selector),\n prefix = this.getPrefix(key); // Add mounted class\n\n el.addClass(prefix);\n var instance = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.inis, key, null);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(instance)) {\n return console.error(\"Element \\\"\".concat(key, \"\\\" is not defined.\"));\n }\n\n var callback = function callback(el, options) {\n var cb = new instance(el.get(0), options);\n Element.runs.push({\n el: el.get(0),\n prefix: prefix,\n deamon: cb\n });\n el.data(prefix, cb);\n return cb.bind !== undefined ? cb.bind(el.get(0), options) : cb;\n }; // Bind option\n\n\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].ready(function () {\n return callback.call({}, el, options);\n });\n return this;\n }\n }, {\n key: \"unbind\",\n value: function unbind(key, selector) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var el = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(selector),\n prefix = this.getPrefix(key);\n var instance = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.inis, key, null);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(instance)) {\n return console.error(\"Element \\\"\".concat(key, \"\\\" is not defined.\"));\n }\n\n var callback = function callback(el, options) {\n var cb = el.data(prefix);\n\n if (cb.unbind === undefined) {\n return;\n }\n\n return cb.unbind(el.get(0), options);\n }; // Unbind option\n\n\n callback.call({}, el, options);\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].remove(Element.runs, {\n el: el.get(0)\n });\n return this;\n }\n /**\n * Bind callback on selector.\n */\n\n }, {\n key: \"observe\",\n value: function observe(key) {\n var _this2 = this;\n\n var plain = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var selector = this.getPrefix(key);\n var options = {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: [selector]\n };\n\n var callback = function callback() {\n var mounted = Element.getPrefix(key);\n var deamons = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].filter(_this2.runs, {\n prefix: selector\n });\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].each(deamons, function (_ref) {\n var el = _ref.el;\n var options = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Str\"].objectify(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(el).attr(selector));\n\n if (plain && _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(options)) {\n options = {\n _plain: _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(el).attr(selector)\n };\n }\n\n var inview = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].pluck(options, 'inview', false);\n\n if (inview) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].remove(_this2.invi, {\n el: el\n });\n }\n\n if (document.body.contains(el)) {\n return;\n }\n\n return _this2.unbind(key, el, options);\n });\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(\"[\".concat(selector, \"]:not(.\").concat(mounted, \")\")).each(function (el) {\n var options = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Str\"].objectify(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(el).attr(selector));\n\n if (plain && _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(options)) {\n options = {\n _plain: _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(el).attr(selector)\n };\n }\n\n var inview = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].pluck(options, 'inview', false);\n\n var bindCb = function bindCb() {\n _this2.bind(key, el, options);\n };\n\n inview ? _this2.bindInview(el, bindCb) : bindCb();\n });\n };\n\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(document.body).observer(callback)(document.body, options);\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(document.body).on('dom.change', callback);\n return this;\n }\n }, {\n key: \"bindInview\",\n value: function bindInview(el, cb) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].add(this.invi, {\n el: el,\n cb: cb\n }, {\n el: el\n });\n }\n }, {\n key: \"unbindInview\",\n value: function unbindInview(el, cb) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].remove(this.invi, {\n el: el,\n cb: cb\n }, {\n el: el\n });\n }\n /**\n * Return prefix with key.\n */\n\n }, {\n key: \"getPrefix\",\n value: function getPrefix(key) {\n return key ? this.prefix + '-' + key : this.prefix;\n }\n /**\n * Set prefix to given value.\n */\n\n }, {\n key: \"setPrefix\",\n value: function setPrefix(prefix) {\n this.prefix = prefix;\n }\n }]);\n\n return Element;\n}();\n\n_defineProperty(Element, \"prefix\", 'js');\n\n_defineProperty(Element, \"mount\", 'mount');\n\n_defineProperty(Element, \"inis\", {});\n\n_defineProperty(Element, \"runs\", []);\n\n_defineProperty(Element, \"invi\", []);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Element);//# source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21vdW50JztcblxuICAgIC8qKlxuICAgICAqIEluc3RhbmNlIHN0b3JhZ2UuXG4gICAgICovXG4gICAgc3RhdGljIGluaXMgPSB7fTtcblxuICAgIC8qKlxuICAgICAqIFJ1bnRpbWUgc3RvcmFnZS5cbiAgICAgKi9cbiAgICBzdGF0aWMgcnVucyA9IFtdO1xuXG4gICAgLyoqXG4gICAgICogSW5zdGFuY2Ugc3RvcmFnZS5cbiAgICAgKi9cbiAgICBzdGF0aWMgaW52aSA9IFtdO1xuXG4gICAgc3RhdGljIGxpc3RlbigpXG4gICAge1xuICAgICAgICAvLyBBcHBseSBkb20gc2Nyb2xsIGV2ZW50XG4gICAgICAgIGRvY3VtZW50LmFkZEV2ZW50TGlzdGVuZXIoXCJzY3JvbGxcIiwgRWxlbWVudC5zY3JvbGwpO1xuXG4gICAgICAgIC8vIEFwcGx5IGluaXRpYWwgc2Nyb2xsIGV2ZW50XG4gICAgICAgIEVsZW1lbnQuc2Nyb2xsKCk7XG4gICAgfVxuXG4gICAgc3RhdGljIHNjcm9sbCgpXG4gICAge1xuICAgICAgICBBcnIuZWFjaCh0aGlzLmludmksIChpdGVtLCBpbmRleCkgPT4ge1xuXG4gICAgICAgICAgICBpZiAoICEgRG9tLmZpbmQoaXRlbS5lbCkuaW52aWV3WSgpICkge1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgQXJyLnJlbW92ZUluZGV4KHRoaXMuaW52aSwgaW5kZXgpO1xuXG4gICAgICAgICAgICBpdGVtLmNiKCk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEJpbmQgYSBjbGFzcyBvbiBzZWxlY3Rvci5cbiAgICAgKi9cbiAgICBzdGF0aWMgYWxpYXMoa2V5LCBpbnN0YW5jZSlcbiAgICB7XG4gICAgICAgIE9iai5zZXQodGhpcy5pbmlzLCBrZXksIGluc3RhbmNlKTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBzdGF0aWMgYmluZChrZXksIHNlbGVjdG9yLCBvcHRpb25zID0ge30pXG4gICAge1xuICAgICAgICBsZXQgZWwgPSBEb20uZmluZChzZWxlY3RvciksIHByZWZpeCA9IHRoaXMuZ2V0UHJlZml4KGtleSk7XG5cbiAgICAgICAgLy8gQWRkIG1vdW50ZWQgY2xhc3NcbiAgICAgICAgZWwuYWRkQ2xhc3MocHJlZml4KTtcblxuICAgICAgICBsZXQgaW5zdGFuY2UgPSBPYmouZ2V0KHRoaXMuaW5pcyxcbiAgICAgICAgICAgIGtleSwgbnVsbCk7XG5cbiAgICAgICAgaWYgKCBBbnkuaXNFbXB0eShpbnN0YW5jZSkgKSB7XG4gICAgICAgICAgICByZXR1cm4gY29uc29sZS5lcnJvcihgRWxlbWVudCBcIiR7a2V5fVwiIGlzIG5vdCBkZWZpbmVkLmApO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGNhbGxiYWNrID0gKGVsLCBvcHRpb25zKSA9PiB7XG5cbiAgICAgICAgICAgIGxldCBjYiA9IG5ldyBpbnN0YW5jZShcbiAgICAgICAgICAgICAgICBlbC5nZXQoMCksIG9wdGlvbnNcbiAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgIEVsZW1lbnQucnVucy5wdXNoKHtcbiAgICAgICAgICAgICAgICBlbDogZWwuZ2V0KDApLCBwcmVmaXg6IHByZWZpeCwgZGVhbW9uOiBjYlxuICAgICAgICAgICAgfSk7XG5cblxuICAgICAgICAgICAgZWwuZGF0YShwcmVmaXgsIGNiKTtcblxuICAgICAgICAgICAgcmV0dXJuIGNiLmJpbmQgIT09IHVuZGVmaW5lZCA/XG4gICAgICAgICAgICAgICAgY2IuYmluZChlbC5nZXQoMCksIG9wdGlvbnMpIDogY2I7XG4gICAgICAgIH07XG5cbiAgICAgICAgLy8gQmluZCBvcHRpb25cbiAgICAgICAgRG9tLnJlYWR5KCgpID0+IGNhbGxiYWNrLmNhbGwoe30sIGVsLCBvcHRpb25zKSk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgc3RhdGljIHVuYmluZChrZXksIHNlbGVjdG9yLCBvcHRpb25zID0ge30pXG4gICAge1xuICAgICAgICBsZXQgZWwgPSBEb20uZmluZChzZWxlY3RvciksIHByZWZpeCA9IHRoaXMuZ2V0UHJlZml4KGtleSk7XG5cbiAgICAgICAgbGV0IGluc3RhbmNlID0gT2JqLmdldCh0aGlzLmluaXMsXG4gICAgICAgICAgICBrZXksIG51bGwpO1xuXG4gICAgICAgIGlmICggQW55LmlzRW1wdHkoaW5zdGFuY2UpICkge1xuICAgICAgICAgICAgcmV0dXJuIGNvbnNvbGUuZXJyb3IoYEVsZW1lbnQgXCIke2tleX1cIiBpcyBub3QgZGVmaW5lZC5gKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBjYWxsYmFjayA9IChlbCwgb3B0aW9ucykgPT4ge1xuXG4gICAgICAgICAgICBsZXQgY2IgPSBlbC5kYXRhKHByZWZpeCk7XG5cbiAgICAgICAgICAgIGlmICggY2IudW5iaW5kID09PSB1bmRlZmluZWQgKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gY2IudW5iaW5kKGVsLmdldCgwKSwgb3B0aW9ucyk7XG4gICAgICAgIH07XG5cbiAgICAgICAgLy8gVW5iaW5kIG9wdGlvblxuICAgICAgICBjYWxsYmFjay5jYWxsKHt9LCBlbCwgb3B0aW9ucyk7XG5cbiAgICAgICAgQXJyLnJlbW92ZShFbGVtZW50LnJ1bnMsIHsgZWw6IGVsLmdldCgwKSB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cblxuICAgIC8qKlxuICAgICAqIEJpbmQgY2FsbGJhY2sgb24gc2VsZWN0b3IuXG4gICAgICovXG4gICAgc3RhdGljIG9ic2VydmUoa2V5LCBwbGFpbiA9IGZhbHNlKVxuICAgIHtcbiAgICAgICAgbGV0IHNlbGVjdG9yID0gdGhpcy5nZXRQcmVmaXgoa2V5KTtcblxuICAgICAgICBsZXQgb3B0aW9ucyA9IHtcbiAgICAgICAgICAgIGNoaWxkTGlzdDogdHJ1ZSxcbiAgICAgICAgICAgIHN1YnRyZWU6IHRydWUsXG4gICAgICAgICAgICBhdHRyaWJ1dGVzOiB0cnVlLFxuICAgICAgICAgICAgYXR0cmlidXRlRmlsdGVyOiBbc2VsZWN0b3JdXG4gICAgICAgIH07XG5cbiAgICAgICAgbGV0IGNhbGxiYWNrID0gKCkgPT4ge1xuXG4gICAgICAgICAgICBsZXQgbW91bnRlZCA9IEVsZW1lbnQuZ2V0UHJlZml4KGtleSk7XG5cbiAgICAgICAgICAgIGxldCBkZWFtb25zID0gQXJyLmZpbHRlcih0aGlzLnJ1bnMsXG4gICAgICAgICAgICAgICAgeyBwcmVmaXg6IHNlbGVjdG9yIH0pO1xuXG4gICAgICAgICAgICBBcnIuZWFjaChkZWFtb25zLCAoeyBlbCB9KSA9PiB7XG5cbiAgICAgICAgICAgICAgICBsZXQgb3B0aW9ucyA9IFN0ci5vYmplY3RpZnkoXG4gICAgICAgICAgICAgICAgICAgIERvbS5maW5kKGVsKS5hdHRyKHNlbGVjdG9yKVxuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICBpZiAoIHBsYWluICYmIEFueS5pc0VtcHR5KG9wdGlvbnMpICkge1xuICAgICAgICAgICAgICAgICAgICBvcHRpb25zID0geyBfcGxhaW46IERvbS5maW5kKGVsKS5hdHRyKHNlbGVjdG9yKSB9O1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGxldCBpbnZpZXcgPSBPYmoucGx1Y2sob3B0aW9ucywgJ2ludmlldycsIGZhbHNlKTtcblxuICAgICAgICAgICAgICAgIGlmICggaW52aWV3ICkge1xuICAgICAgICAgICAgICAgICAgICBBcnIucmVtb3ZlKHRoaXMuaW52aSwgeyBlbCB9KTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAoIGRvY3VtZW50LmJvZHkuY29udGFpbnMoZWwpICkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMudW5iaW5kKGtleSwgZWwsIG9wdGlvbnMpXG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgRG9tLmZpbmQoYFske3NlbGVjdG9yfV06bm90KC4ke21vdW50ZWR9KWApLmVhY2goKGVsKSA9PiB7XG5cbiAgICAgICAgICAgICAgICBsZXQgb3B0aW9ucyA9IFN0ci5vYmplY3RpZnkoXG4gICAgICAgICAgICAgICAgICAgIERvbS5maW5kKGVsKS5hdHRyKHNlbGVjdG9yKVxuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICBpZiAoIHBsYWluICYmIEFueS5pc0VtcHR5KG9wdGlvbnMpICkge1xuICAgICAgICAgICAgICAgICAgICBvcHRpb25zID0geyBfcGxhaW46IERvbS5maW5kKGVsKS5hdHRyKHNlbGVjdG9yKSB9O1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGxldCBpbnZpZXcgPSBPYmoucGx1Y2sob3B0aW9ucywgJ2ludmlldycsIGZhbHNlKTtcblxuICAgICAgICAgICAgICAgIGxldCBiaW5kQ2IgPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuYmluZChrZXksIGVsLCBvcHRpb25zKTtcbiAgICAgICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICAgICAgaW52aWV3ID8gdGhpcy5iaW5kSW52aWV3KGVsLCBiaW5kQ2IpIDogYmluZENiKCk7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICB9O1xuXG4gICAgICAgIERvbS5maW5kKGRvY3VtZW50LmJvZHkpLm9ic2VydmVyKGNhbGxiYWNrKVxuICAgICAgICAgICAgKGRvY3VtZW50LmJvZHksIG9wdGlvbnMpO1xuXG4gICAgICAgIERvbS5maW5kKGRvY3VtZW50LmJvZHkpLm9uKCdkb20uY2hhbmdlJywgY2FsbGJhY2spO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIHN0YXRpYyBiaW5kSW52aWV3KGVsLCBjYilcbiAgICB7XG4gICAgICAgIEFyci5hZGQodGhpcy5pbnZpLCB7IGVsLCBjYiB9LCB7IGVsIH0pO1xuICAgIH1cblxuICAgIHN0YXRpYyB1bmJpbmRJbnZpZXcoZWwsIGNiKVxuICAgIHtcbiAgICAgICAgQXJyLnJlbW92ZSh0aGlzLmludmksIHsgZWwsIGNiIH0sIHsgZWwgfSk7XG4gICAgfVxuXG5cblxuICAgIC8qKlxuICAgICAqIFJldHVybiBwcmVmaXggd2l0aCBrZXkuXG4gICAgICovXG4gICAgc3RhdGljIGdldFByZWZpeChrZXkpXG4gICAge1xuICAgICAgICByZXR1cm4ga2V5ID8gdGhpcy5wcmVmaXggKyAnLScgKyBrZXkgOiB0aGlzLnByZWZpeDtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBTZXQgcHJlZml4IHRvIGdpdmVuIHZhbHVlLlxuICAgICAqL1xuICAgIHN0YXRpYyBzZXRQcmVmaXgocHJlZml4KVxuICAgIHtcbiAgICAgICAgdGhpcy5wcmVmaXggPSBwcmVmaXg7XG4gICAgfVxuXG59XG5cbmV4cG9ydCBkZWZhdWx0IEVsZW1lbnQ7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/library/element.js\n");
|
210
|
+
|
211
|
+
/***/ }),
|
212
|
+
|
213
|
+
/***/ "./src/library/event.js":
|
214
|
+
/*!******************************!*\
|
215
|
+
!*** ./src/library/event.js ***!
|
216
|
+
\******************************/
|
217
|
+
/*! exports provided: Event, default */
|
218
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
219
|
+
|
220
|
+
"use strict";
|
221
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Event\", function() { return Event; });\n/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ \"./src/index.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\nvar Event = /*#__PURE__*/function () {\n function Event() {\n _classCallCheck(this, Event);\n }\n\n _createClass(Event, null, [{\n key: \"bind\",\n value: function bind(name, callback) {\n var _this = this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var paused = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isArray(name)) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].each(name, function (val) {\n return _this.bind(val, callback, options, paused);\n });\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isPlain(options)) {\n options = {\n value: options\n };\n }\n\n this.events = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].push(this.events, {\n name: name,\n callback: callback,\n options: options,\n paused: paused\n });\n return this;\n }\n }, {\n key: \"unbind\",\n value: function unbind(name) {\n var _this2 = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isArray(name)) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].each(name, function (val) {\n return _this2.unbind(val, options);\n });\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isPlain(options)) {\n options = {\n value: options\n };\n }\n\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].remove(this.events, {\n name: name,\n options: options\n });\n return this;\n }\n }, {\n key: \"fire\",\n value: function fire(name) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var events = this.events.filter(function (item) {\n return item.name === name;\n });\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].each(events, function (event) {\n if (event.paused === false) {\n var _event$callback;\n\n (_event$callback = event.callback).call.apply(_event$callback, [{}].concat(args));\n }\n });\n return this;\n }\n }, {\n key: \"pause\",\n value: function pause(name) {\n var _this3 = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isArray(name)) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].each(name, function (val) {\n return _this3.pause(val, options);\n });\n }\n\n var val = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].find(this.events, {\n name: name,\n options: options\n });\n\n if (val === null) {\n return;\n }\n\n val.paused = true;\n return this;\n }\n }, {\n key: \"unpause\",\n value: function unpause(name) {\n var _this4 = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isArray(name)) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].each(name, function (val) {\n return _this4.unpause(val, options);\n });\n }\n\n var val = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].find(this.events, {\n name: name,\n options: options\n });\n\n if (val === null) {\n return;\n }\n\n val.paused = false;\n return this;\n }\n }]);\n\n return Event;\n}();\n\n_defineProperty(Event, \"events\", []);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Event);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vc3JjL2xpYnJhcnkvZXZlbnQuanM/YTk5OSJdLCJuYW1lcyI6WyJFdmVudCIsIm5hbWUiLCJjYWxsYmFjayIsIm9wdGlvbnMiLCJwYXVzZWQiLCJBbnkiLCJpc0FycmF5IiwiQXJyIiwiZWFjaCIsInZhbCIsImJpbmQiLCJpc1BsYWluIiwidmFsdWUiLCJldmVudHMiLCJwdXNoIiwidW5iaW5kIiwicmVtb3ZlIiwiYXJncyIsImZpbHRlciIsIml0ZW0iLCJldmVudCIsImNhbGwiLCJwYXVzZSIsImZpbmQiLCJ1bnBhdXNlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBO0FBRU8sSUFBTUEsS0FBYjtBQUFBO0FBQUE7QUFBQTs7QUFBQTtBQUFBO0FBQUEseUJBSWdCQyxJQUpoQixFQUlzQkMsUUFKdEIsRUFLSTtBQUFBOztBQUFBLFVBRDRCQyxPQUM1Qix1RUFEc0MsRUFDdEM7QUFBQSxVQUQwQ0MsTUFDMUMsdUVBRG1ELEtBQ25EOztBQUNJLFVBQUtDLDZDQUFHLENBQUNDLE9BQUosQ0FBWUwsSUFBWixDQUFMLEVBQXlCO0FBQ3JCLGVBQU9NLDZDQUFHLENBQUNDLElBQUosQ0FBU1AsSUFBVCxFQUFlLFVBQUNRLEdBQUQ7QUFBQSxpQkFDbEIsS0FBSSxDQUFDQyxJQUFMLENBQVVELEdBQVYsRUFBZVAsUUFBZixFQUF5QkMsT0FBekIsRUFBa0NDLE1BQWxDLENBRGtCO0FBQUEsU0FBZixDQUF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LCBjYWxsYmFjaywgb3B0aW9ucyA9IHt9LCBwYXVzZWQgPSBmYWxzZSlcbiAgICB7XG4gICAgICAgIGlmICggQW55LmlzQXJyYXkobmFtZSkgKSB7XG4gICAgICAgICAgICByZXR1cm4gQXJyLmVhY2gobmFtZSwgKHZhbCkgPT5cbiAgICAgICAgICAgICAgICB0aGlzLmJpbmQodmFsLCBjYWxsYmFjaywgb3B0aW9ucywgcGF1c2VkKSk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoICEgQW55LmlzUGxhaW4ob3B0aW9ucykgKSB7XG4gICAgICAgICAgICBvcHRpb25zID0geyB2YWx1ZTogb3B0aW9ucyB9XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmV2ZW50cyA9IEFyci5wdXNoKHRoaXMuZXZlbnRzLCB7XG4gICAgICAgICAgICBuYW1lLCBjYWxsYmFjaywgb3B0aW9ucywgcGF1c2VkXG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIHN0YXRpYyB1bmJpbmQobmFtZSwgb3B0aW9ucyA9IHt9KVxuICAgIHtcbiAgICAgICAgaWYgKCBBbnkuaXNBcnJheShuYW1lKSApIHtcbiAgICAgICAgICAgIHJldHVybiBBcnIuZWFjaChuYW1lLCAodmFsKSA9PiB0aGlzLnVuYmluZCh2YWwsIG9wdGlvbnMpKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggISBBbnkuaXNQbGFpbihvcHRpb25zKSApIHtcbiAgICAgICAgICAgIG9wdGlvbnMgPSB7IHZhbHVlOiBvcHRpb25zIH1cbiAgICAgICAgfVxuXG4gICAgICAgIEFyci5yZW1vdmUodGhpcy5ldmVudHMsIHsgbmFtZSwgb3B0aW9ucyB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBzdGF0aWMgZmlyZShuYW1lLCAuLi5hcmdzKVxuICAgIHtcbiAgICAgICAgbGV0IGV2ZW50cyA9IHRoaXMuZXZlbnRzLmZpbHRlcigoaXRlbSkgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIGl0ZW0ubmFtZSA9PT0gbmFtZTtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgQXJyLmVhY2goZXZlbnRzLCAoZXZlbnQpID0+IHtcbiAgICAgICAgICAgIGlmICggZXZlbnQucGF1c2VkID09PSBmYWxzZSApIHtcbiAgICAgICAgICAgICAgICBldmVudC5jYWxsYmFjay5jYWxsKHt9LCAuLi5hcmdzKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgc3RhdGljIHBhdXNlKG5hbWUsIG9wdGlvbnMgPSB7fSlcbiAgICB7XG4gICAgICAgIGlmICggQW55LmlzQXJyYXkobmFtZSkgKSB7XG4gICAgICAgICAgICByZXR1cm4gQXJyLmVhY2gobmFtZSwgKHZhbCkgPT4gdGhpcy5wYXVzZSh2YWwsIG9wdGlvbnMpKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCB2YWwgPSBBcnIuZmluZCh0aGlzLmV2ZW50cywgeyBuYW1lLCBvcHRpb25zIH0pO1xuXG4gICAgICAgIGlmICggdmFsID09PSBudWxsICkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgdmFsLnBhdXNlZCA9IHRydWU7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgc3RhdGljIHVucGF1c2UobmFtZSwgb3B0aW9ucyA9IHt9KVxuICAgIHtcbiAgICAgICAgaWYgKCBBbnkuaXNBcnJheShuYW1lKSApIHtcbiAgICAgICAgICAgIHJldHVybiBBcnIuZWFjaChuYW1lLCAodmFsKSA9PiB0aGlzLnVucGF1c2UodmFsLCBvcHRpb25zKSk7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgdmFsID0gQXJyLmZpbmQodGhpcy5ldmVudHMsIHsgbmFtZSwgb3B0aW9ucyB9KTtcblxuICAgICAgICBpZiAoIHZhbCA9PT0gbnVsbCApIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIHZhbC5wYXVzZWQgPSBmYWxzZTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbn1cblxuZXhwb3J0IGRlZmF1bHQgRXZlbnQ7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/library/event.js\n");
|
222
|
+
|
223
|
+
/***/ }),
|
224
|
+
|
225
|
+
/***/ "./src/library/locale.js":
|
226
|
+
/*!*******************************!*\
|
227
|
+
!*** ./src/library/locale.js ***!
|
228
|
+
\*******************************/
|
229
|
+
/*! exports provided: Locale, default */
|
230
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
231
|
+
|
232
|
+
"use strict";
|
233
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Locale\", function() { return Locale; });\n/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ \"./src/index.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\nvar Locale = /*#__PURE__*/function () {\n function Locale() {\n _classCallCheck(this, Locale);\n }\n\n _createClass(Locale, null, [{\n key: \"pickByCount\",\n\n /**\n * Get locales from window if present.\n */\n value: function pickByCount(splits, count) {\n var splitLength = splits.length;\n\n if (splitLength === 3 && count === 0) {\n return splits[0];\n }\n\n if (splitLength === 3 && count === 1) {\n return splits[1];\n }\n\n if (splitLength === 3 && count >= 2) {\n return splits[2];\n }\n\n if (splitLength === 2 && count === 1) {\n return splits[0];\n }\n\n if (splitLength === 2 && count !== 1) {\n return splits[1];\n }\n\n return splits[0];\n }\n }, {\n key: \"has\",\n value: function has(key) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(Locale.locales, key);\n }\n }, {\n key: \"get\",\n value: function get(key) {\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(Locale.locales, key, fallback || key);\n }\n }, {\n key: \"set\",\n value: function set(key, value) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].set(Locale.locales, key, value);\n return this;\n }\n }, {\n key: \"trans\",\n value: function trans(key) {\n var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var message = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(Locale.locales, key, key);\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].each(values, function (value, key) {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n return message;\n }\n }, {\n key: \"choice\",\n value: function choice(key) {\n var count = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var splits = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(Locale.locales, key, key).split('|');\n\n if (typeof values.count === 'undefined') {\n values = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].assign({\n count: count\n }, values);\n }\n\n var message = Locale.pickByCount(splits, count);\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].each(values, function (value, key) {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n return message;\n }\n }]);\n\n return Locale;\n}();\n\n_defineProperty(Locale, \"locales\", _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(global, '_locales', {}));\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Locale);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vc3JjL2xpYnJhcnkvbG9jYWxlLmpzPzYzOTciXSwibmFtZXMiOlsiTG9jYWxlIiwic3BsaXRzIiwiY291bnQiLCJzcGxpdExlbmd0aCIsImxlbmd0aCIsImtleSIsIk9iaiIsImhhcyIsImxvY2FsZXMiLCJmYWxsYmFjayIsImdldCIsInZhbHVlIiwic2V0IiwidmFsdWVzIiwibWVzc2FnZSIsImVhY2giLCJyZXBsYWNlIiwiUmVnRXhwIiwic3BsaXQiLCJhc3NpZ24iLCJwaWNrQnlDb3VudCIsImdsb2JhbCJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTtBQUVPLElBQU1BLE1BQWI7QUFBQTtBQUFBO0FBQUE7O0FBQUE7QUFBQTs7QUFFSTtBQUNKO0FBQ0E7QUFKQSxnQ0FPdUJDLE1BUHZCLEVBTytCQyxLQVAvQixFQVFJO0FBQ0ksVUFBSUMsV0FBVyxHQUFHRixNQUFNLENBQUNHLE1BQXpCOztBQUVBLFVBQUtELFdBQVcsS0FBSyxDQUFoQixJQUFxQkQsS0FBSyxLQUFLLENBQXBDLEVBQXdDO0FBQ3BDLGVBQU9ELE1BQU0sQ0FBQyxDQUFELENBQWI7QUFDSDs7QUFFRCxVQUFLRSxXQUFXLE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AgICAgICAgICAgIHJldHVybiBzcGxpdHNbMV07XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIHNwbGl0TGVuZ3RoID09PSAzICYmIGNvdW50ID49IDIgKSB7XG4gICAgICAgICAgICByZXR1cm4gc3BsaXRzWzJdO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBzcGxpdExlbmd0aCA9PT0gMiAmJiBjb3VudCA9PT0gMSApIHtcbiAgICAgICAgICAgIHJldHVybiBzcGxpdHNbMF07XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIHNwbGl0TGVuZ3RoID09PSAyICYmIGNvdW50ICE9PSAxICkge1xuICAgICAgICAgICAgcmV0dXJuIHNwbGl0c1sxXTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBzcGxpdHNbMF07XG4gICAgfVxuXG4gICAgc3RhdGljIGhhcyhrZXkpXG4gICAge1xuICAgICAgICByZXR1cm4gT2JqLmhhcyhMb2NhbGUubG9jYWxlcywga2V5KTtcbiAgICB9XG5cbiAgICBzdGF0aWMgZ2V0KGtleSwgZmFsbGJhY2sgPSBudWxsKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIE9iai5nZXQoTG9jYWxlLmxvY2FsZXMsIGtleSwgZmFsbGJhY2sgfHwga2V5KTtcbiAgICB9XG5cbiAgICBzdGF0aWMgc2V0KGtleSwgdmFsdWUpXG4gICAge1xuICAgICAgICBPYmouc2V0KExvY2FsZS5sb2NhbGVzLCBrZXksIHZhbHVlKTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBzdGF0aWMgdHJhbnMoa2V5LCB2YWx1ZXMgPSB7fSlcbiAgICB7XG4gICAgICAgIGxldCBtZXNzYWdlID0gT2JqLmdldChMb2NhbGUubG9jYWxlcywga2V5LCBrZXkpO1xuXG4gICAgICAgIE9iai5lYWNoKHZhbHVlcywgKHZhbHVlLCBrZXkpID0+IHtcbiAgICAgICAgICAgIG1lc3NhZ2UgPSBtZXNzYWdlLnJlcGxhY2UobmV3IFJlZ0V4cCgnOicgKyBrZXksICdnJyksIHZhbHVlKTtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgcmV0dXJuIG1lc3NhZ2U7XG4gICAgfVxuXG4gICAgc3RhdGljIGNob2ljZShrZXksIGNvdW50ID0gMCwgdmFsdWVzID0ge30pXG4gICAge1xuICAgICAgICBsZXQgc3BsaXRzID0gT2JqLmdldChMb2NhbGUubG9jYWxlcywga2V5LCBrZXkpLnNwbGl0KCd8Jyk7XG5cbiAgICAgICAgaWYgKCB0eXBlb2YgdmFsdWVzLmNvdW50ID09PSAndW5kZWZpbmVkJyApIHtcbiAgICAgICAgICAgIHZhbHVlcyA9IE9iai5hc3NpZ24oeyBjb3VudDogY291bnQgfSwgdmFsdWVzKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBtZXNzYWdlID0gTG9jYWxlLnBpY2tCeUNvdW50KHNwbGl0cywgY291bnQpO1xuXG4gICAgICAgIE9iai5lYWNoKHZhbHVlcywgKHZhbHVlLCBrZXkpID0+IHtcbiAgICAgICAgICAgIG1lc3NhZ2UgPSBtZXNzYWdlLnJlcGxhY2UobmV3IFJlZ0V4cCgnOicgKyBrZXksICdnJyksIHZhbHVlKTtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgcmV0dXJuIG1lc3NhZ2U7XG4gICAgfVxuXG59XG5cbmV4cG9ydCBkZWZhdWx0IExvY2FsZTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/library/locale.js\n");
|
234
|
+
|
235
|
+
/***/ }),
|
236
|
+
|
237
|
+
/***/ "./src/library/map.js":
|
238
|
+
/*!****************************!*\
|
239
|
+
!*** ./src/library/map.js ***!
|
240
|
+
\****************************/
|
241
|
+
/*! exports provided: default */
|
242
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
243
|
+
|
244
|
+
"use strict";
|
245
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Map; });\n/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ \"./src/index.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n/**\n * @const {object} google\n */\n\nvar Map = /*#__PURE__*/function () {\n function Map(el) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, Map);\n\n _defineProperty(this, \"map\", null);\n\n _defineProperty(this, \"markers\", {});\n\n _defineProperty(this, \"cluster\", null);\n\n _defineProperty(this, \"clusterFilter\", null);\n\n _defineProperty(this, \"clusterOptions\", {});\n\n if (!global.google) {\n throw new Error('Google Maps is required for pi.Map');\n }\n\n var center = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].only(options, ['lat', 'lng']);\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(options, 'styles')) {\n options.styles = Map.mapStyle;\n }\n\n options = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].assign({\n gestureHandling: 'cooperative',\n scrollwheel: null,\n zoom: 12,\n center: center\n }, _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].except(options, ['lat', 'lng']));\n this.map = new global.google.maps.Map(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(el).get(0), options);\n }\n\n _createClass(Map, [{\n key: \"clusterMarkers\",\n value: function clusterMarkers() {\n var _this = this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var filter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var allowCreate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n if (!this.cluster && !allowCreate) {\n return;\n }\n\n if (typeof global.MarkerClusterer === \"undefined\") {\n return console.error('Google Maps Cluster library not laoded!');\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(options, 'imagePath') && !_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(options, 'styles')) {\n options.imagePath = '//developers.google.com/maps/documentation/javascript/examples/markerclusterer/m';\n }\n\n if (this.cluster) {\n this.cluster.clearMarkers();\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isFunction(filter)) {\n this.clusterFilter = filter;\n }\n\n var markers = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].filter(this.markers, function (item) {\n var visible = _this.getMarkerVisibility(item.key);\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isFunction(_this.clusterFilter)) {\n return visible;\n }\n\n return visible && _this.clusterFilter.call(_this, item);\n });\n this.cluster = new global.MarkerClusterer(this.map, _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].each(markers, function (item) {\n return item.marker;\n }), this.clusterOptions = options);\n }\n }, {\n key: \"styleMarker\",\n value: function styleMarker(key) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item)) {\n return console.error(\"Marker \\\"\".concat(key, \"\\\" not found\"));\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(type)) {\n type = this.getInfoVisibility(key) ? 'active' : 'default';\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(Map.markerStyles, [item.style, type])) {\n return;\n }\n\n item.marker.setIcon(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(Map.markerStyles, [item.style, type]));\n }\n }, {\n key: \"getMarker\",\n value: function getMarker(key) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n }\n }, {\n key: \"getMarkerVisibility\",\n value: function getMarkerVisibility(key) {\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item)) {\n return fallback;\n }\n\n return item.marker.getVisible();\n }\n }, {\n key: \"getMarkerPositon\",\n value: function getMarkerPositon(key) {\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item)) {\n return fallback;\n }\n\n return item.marker.getPosition();\n }\n }, {\n key: \"toggleMarker\",\n value: function toggleMarker(key) {\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item)) {\n return console.error(\"Marker \\\"\".concat(key, \"\\\" not found\"));\n }\n\n if (item.marker.getVisible()) {\n return this.hideMarker(key);\n }\n\n return this.showMarker(key);\n }\n }, {\n key: \"showMarker\",\n value: function showMarker(key) {\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item)) {\n return console.error(\"Marker \\\"\".concat(key, \"\\\" not found\"));\n }\n\n var hidden = !item.marker.getVisible();\n\n if (hidden) {\n item.marker.setVisible(true);\n }\n\n return hidden;\n }\n }, {\n key: \"hideMarker\",\n value: function hideMarker(key) {\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item)) {\n return console.error(\"Marker \\\"\".concat(key, \"\\\" not found\"));\n }\n\n var visible = !!item.marker.getVisible();\n\n if (visible) {\n item.marker.setVisible(false);\n }\n\n this.closeInfo(key);\n return visible;\n }\n }, {\n key: \"enterMarker\",\n value: function enterMarker(key) {\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item)) {\n return console.error(\"Marker \\\"\".concat(key, \"\\\" not found\"));\n }\n\n var type = 'hover';\n\n if (this.getInfoVisibility(key)) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n return this;\n }\n }, {\n key: \"leaveMarker\",\n value: function leaveMarker(key) {\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item)) {\n return console.error(\"Marker \\\"\".concat(key, \"\\\" not found\"));\n }\n\n var type = 'default';\n\n if (this.getInfoVisibility(key)) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n return this;\n }\n }, {\n key: \"getInfoVisibility\",\n value: function getInfoVisibility(key) {\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item) || !_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(item, 'info')) {\n return fallback;\n }\n\n return !!item.info.getMap();\n }\n }, {\n key: \"toggleInfo\",\n value: function toggleInfo(key) {\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item)) {\n return console.error(\"Marker \\\"\".concat(key, \"\\\" not found\"));\n }\n\n if (item.info.getMap()) {\n return this.closeInfo(key);\n }\n\n return this.openInfo(key);\n }\n }, {\n key: \"openInfo\",\n value: function openInfo(key) {\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item)) {\n return console.error(\"InfoWindow \\\"\".concat(key, \"\\\" not found\"));\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(item, 'info')) {\n return true;\n }\n\n var hidden = !item.info.getMap();\n\n if (Map.closeInfoWindows) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].each(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].keys(this.markers), this.closeInfo.bind(this));\n }\n\n if (hidden) {\n item.info.open(this.map, item.marker);\n }\n\n this.styleMarker(key, 'active');\n return hidden;\n }\n }, {\n key: \"closeInfo\",\n value: function closeInfo(key) {\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item)) {\n return console.error(\"InfoWindow \\\"\".concat(key, \"\\\" not found\"));\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(item, 'info')) {\n return false;\n }\n\n var visible = !!item.info.getMap();\n\n if (visible) {\n item.info.close();\n }\n\n this.styleMarker(key, 'default');\n return visible;\n }\n }, {\n key: \"createMarker\",\n value: function createMarker() {\n var _this2 = this;\n\n var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(key)) {\n key = Object(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"UUID\"])();\n }\n\n var item = {\n key: key\n };\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(options, 'visible')) {\n options.visible = true;\n }\n\n item.extras = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].except(options, ['map', 'position', 'lat', 'lng', 'html', 'style', 'visible']);\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(options, 'map')) {\n options.map = this.map;\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(options, 'positon')) {\n options.position = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].only(options, ['lat', 'lng']);\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(options, 'style')) {\n item.style = options.style;\n }\n\n item.marker = new global.google.maps.Marker(options);\n\n if (!options.visible) {\n item.marker.setVisible(false);\n }\n\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].set(this.markers, key, item);\n this.clusterMarkers(this.clusterOptions, null, false);\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(options, 'html')) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(item, 'style')) {\n item.style = 'default';\n } // Style marker\n\n\n this.styleMarker(key); // Add marker hover style\n\n item.marker.addListener('mouseover', function () {\n return _this2.enterMarker(key);\n }); // Add marker default style\n\n item.marker.addListener('mouseout', function () {\n return _this2.leaveMarker(key);\n });\n item.info = new global.google.maps.InfoWindow({\n content: '<div class=\"gw-i-html\">' + _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(options, 'html') + '</div>'\n });\n item.marker.addListener('click', function () {\n return _this2.toggleInfo(key);\n });\n item.info.addListener('closeclick', function () {\n return _this2.closeInfo(key);\n }); // Dom change event\n\n item.info.addListener('domready', function () {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Event\"].fire('MapsDomReady');\n });\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].set(this.markers, key, item);\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n }\n }, {\n key: \"setMarkerPosition\",\n value: function setMarkerPosition(key) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var item = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(this.markers, key);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(item)) {\n return console.error(\"Marker \\\"\".concat(key, \"\\\" not found\"));\n }\n\n item.marker.setPosition(options);\n }\n }, {\n key: \"setMarkerByAddress\",\n value: function setMarkerByAddress(key, address) {\n var _this3 = this;\n\n return this.getLocationByAddress(address, function (res) {\n _this3.setMarkerPosition(key, _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(res, '0.geometry.location', {}));\n });\n }\n }, {\n key: \"getLocationByAddress\",\n value: function getLocationByAddress(address) {\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var geocoderService = new global.google.maps.Geocoder();\n\n var geocoderPromise = function geocoderPromise(resolve, reject) {\n var geocoderResult = function geocoderResult(response, status) {\n if (status === 'OK') {\n callback(response);\n resolve(response);\n }\n\n if (status !== 'OK') {\n reject(response);\n }\n };\n\n geocoderService.geocode({\n address: address\n }, geocoderResult);\n };\n\n return new Promise(geocoderPromise);\n }\n }, {\n key: \"showMarkers\",\n value: function showMarkers() {\n var _this4 = this;\n\n var filter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var markers = this.markers;\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(filter)) {\n markers = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].filter(this.markers, filter);\n }\n\n if (Map.hideMarkers) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].each(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].keys(this.markers), this.hideMarker.bind(this));\n }\n\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].each(markers, function (item) {\n return _this4.showMarker(item.key);\n });\n this.clusterMarkers(this.clusterOptions, null, false);\n return this;\n }\n }, {\n key: \"getMarkerBoundry\",\n value: function getMarkerBoundry() {\n var filter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var markers = this.markers;\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(filter)) {\n markers = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].filter(this.markers, filter);\n }\n\n var boundry = new global.google.maps.LatLngBounds();\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].each(markers, function (item) {\n if (item.marker.getVisible()) {\n boundry.extend(item.marker.getPosition());\n }\n });\n return boundry;\n }\n }, {\n key: \"focusMarkers\",\n value: function focusMarkers() {\n var filter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var maxZoom = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 14;\n var boundSpace = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 15;\n var boundry = this.getMarkerBoundry(filter); // Center map to boundry\n\n this.map.setCenter(boundry.getCenter()); // Adapt viewport to boundry\n\n this.map.fitBounds(boundry, boundSpace);\n\n if (this.map.getZoom() > maxZoom) {\n this.map.setZoom(maxZoom);\n }\n\n return this;\n }\n }, {\n key: \"renderDirections\",\n value: function renderDirections(options) {\n // Get directions service\n var directionsService = new global.google.maps.DirectionsService(); // Get directions renderer\n\n var directionsRenderer = new global.google.maps.DirectionsRenderer();\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(options, 'map')) {\n options.map = this.map;\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(options, 'travelMode')) {\n options.travelMode = 'DRIVING';\n } // Set directions map\n\n\n directionsRenderer.setMap(options.map);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(options, 'panel') && !_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(options.panel).empty()) {\n directionsRenderer.setPanel(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Dom\"].find(options.panel).get(0));\n }\n\n options = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].only(options, ['origin', 'destination', 'travelMode']);\n\n var directionsPromise = function directionsPromise(resolve, reject) {\n var directionsResult = function directionsResult(response, status) {\n if (status === 'OK') {\n directionsRenderer.setDirections(response);\n resolve(response);\n }\n\n if (status !== 'OK') {\n reject(response);\n }\n };\n\n directionsService.route(options, directionsResult);\n };\n\n return new Promise(directionsPromise);\n }\n }], [{\n key: \"setMapStyle\",\n value: function setMapStyle() {\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n Map.mapStyle = style;\n return this;\n }\n }, {\n key: \"setMarkerStyle\",\n value: function setMarkerStyle(key) {\n var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var extra = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (!global.google) {\n throw new Error('Google Maps is required for pi.Map');\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(style, 'default')) {\n return console.error('Marker style requires default property');\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(style, 'width')) {\n style.width = 45;\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(style, 'height')) {\n style.height = 45;\n }\n\n var _final = {}; // Marker size\n\n var size = new global.google.maps.Size(style.width, style.height); // Point position\n\n var origin = new global.google.maps.Point(0, 0); // Point position\n\n var anchor = new global.google.maps.Point(style.width / 2, style.height);\n _final[\"default\"] = {\n url: style[\"default\"],\n size: size,\n origin: origin,\n anchor: anchor,\n scaledSize: size\n };\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(style, 'hover')) {\n _final.hover = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].assign({}, _final[\"default\"], {\n url: style.hover\n });\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(_final, 'hover')) {\n _final.hover = _final[\"default\"];\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(style, 'active')) {\n _final.active = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].assign({}, _final[\"default\"], {\n url: style.active\n });\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].has(_final, 'active')) {\n _final.active = _final[\"default\"];\n }\n\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].each(extra, function (value, prop) {\n _final[prop] = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].assign({}, _final[\"default\"], {\n url: value\n });\n });\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].set(Map.markerStyles, key, _final);\n return this;\n }\n }]);\n\n return Map;\n}();\n\n_defineProperty(Map, \"mapStyle\", []);\n\n_defineProperty(Map, \"markerStyles\", {});\n\n_defineProperty(Map, \"hideMarkers\", true);\n\n_defineProperty(Map, \"closeInfoWindows\", true);\n\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2V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dGVtID0gT2JqLmdldCh0aGlzLm1hcmtlcnMsIGtleSk7XG5cbiAgICAgICAgaWYgKCBBbnkuaXNFbXB0eShpdGVtKSApIHtcbiAgICAgICAgICAgIHJldHVybiBmYWxsYmFjaztcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBpdGVtLm1hcmtlci5nZXRQb3NpdGlvbigpO1xuICAgIH1cblxuICAgIHRvZ2dsZU1hcmtlcihrZXkpXG4gICAge1xuICAgICAgICBsZXQgaXRlbSA9IE9iai5nZXQodGhpcy5tYXJrZXJzLCBrZXkpO1xuXG4gICAgICAgIGlmICggQW55LmlzRW1wdHkoaXRlbSkgKSB7XG4gICAgICAgICAgICByZXR1cm4gY29uc29sZS5lcnJvcihgTWFya2VyIFwiJHtrZXl9XCIgbm90IGZvdW5kYCk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIGl0ZW0ubWFya2VyLmdldFZpc2libGUoKSApIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmhpZGVNYXJrZXIoa2V5KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0aGlzLnNob3dNYXJrZXIoa2V5KTtcbiAgICB9XG5cbiAgICBzaG93TWFya2VyKGtleSlcbiAgICB7XG4gICAgICAgIGxldCBpdGVtID0gT2JqLmdldCh0aGlzLm1hcmtlcnMsIGtleSk7XG5cbiAgICAgICAgaWYgKCBBbnkuaXNFbXB0eShpdGVtKSApIHtcbiAgICAgICAgICAgIHJldHVybiBjb25zb2xlLmVycm9yKGBNYXJrZXIgXCIke2tleX1cIiBub3QgZm91bmRgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBoaWRkZW4gPSAhIGl0ZW0ubWFya2VyLmdldFZpc2libGUoKTtcblxuICAgICAgICBpZiAoIGhpZGRlbiApIHtcbiAgICAgICAgICAgIGl0ZW0ubWFya2VyLnNldFZpc2libGUodHJ1ZSk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gaGlkZGVuO1xuICAgIH1cblxuICAgIGhpZGVNYXJrZXIoa2V5KVxuICAgIHtcbiAgICAgICAgbGV0IGl0ZW0gPSBPYmouZ2V0KHRoaXMubWFya2Vycywga2V5KTtcblxuICAgICAgICBpZiAoIEFueS5pc0VtcHR5KGl0ZW0pICkge1xuICAgICAgICAgICAgcmV0dXJuIGNvbnNvbGUuZXJyb3IoYE1hcmtlciBcIiR7a2V5fVwiIG5vdCBmb3VuZGApO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHZpc2libGUgPSAhISBpdGVtLm1hcmtlci5nZXRWaXNpYmxlKCk7XG5cbiAgICAgICAgaWYgKCB2aXNpYmxlICkge1xuICAgICAgICAgICAgaXRlbS5tYXJrZXIuc2V0VmlzaWJsZShmYWxzZSk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmNsb3NlSW5mbyhrZXkpO1xuXG4gICAgICAgIHJldHVybiB2aXNpYmxlO1xuICAgIH1cblxuICAgIGVudGVyTWFya2VyKGtleSlcbiAgICB7XG4gICAgICAgIGxldCBpdGVtID0gT2JqLmdldCh0aGlzLm1hcmtlcnMsIGtleSk7XG5cbiAgICAgICAgaWYgKCBBbnkuaXNFbXB0eShpdGVtKSApIHtcbiAgICAgICAgICAgIHJldHVybiBjb25zb2xlLmVycm9yKGBNYXJrZXIgXCIke2tleX1cIiBub3QgZm91bmRgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCB0eXBlID0gJ2hvdmVyJztcblxuICAgICAgICBpZiAoIHRoaXMuZ2V0SW5mb1Zpc2liaWxpdHkoa2V5KSApIHtcbiAgICAgICAgICAgIHR5cGUgPSAnYWN0aXZlJztcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuc3R5bGVNYXJrZXIoa2V5LCB0eXBlKTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBsZWF2ZU1hcmtlcihrZXkpXG4gICAge1xuICAgICAgICBsZXQgaXRlbSA9IE9iai5nZXQodGhpcy5tYXJrZXJzLCBrZXkpO1xuXG4gICAgICAgIGlmICggQW55LmlzRW1wdHkoaXRlbSkgKSB7XG4gICAgICAgICAgICByZXR1cm4gY29uc29sZS5lcnJvcihgTWFya2VyIFwiJHtrZXl9XCIgbm90IGZvdW5kYCk7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgdHlwZSA9ICdkZWZhdWx0JztcblxuICAgICAgICBpZiAoIHRoaXMuZ2V0SW5mb1Zpc2liaWxpdHkoa2V5KSApIHtcbiAgICAgICAgICAgIHR5cGUgPSAnYWN0aXZlJztcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuc3R5bGVNYXJrZXIoa2V5LCB0eXBlKTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBnZXRJbmZvVmlzaWJpbGl0eShrZXksIGZhbGxiYWNrID0gZmFsc2UpXG4gICAge1xuICAgICAgICBsZXQgaXRlbSA9IE9iai5nZXQodGhpcy5tYXJrZXJzLCBrZXkpO1xuXG4gICAgICAgIGlmICggQW55LmlzRW1wdHkoaXRlbSkgfHwgISBPYmouaGFzKGl0ZW0sICdpbmZvJykgKSB7XG4gICAgICAgICAgICByZXR1cm4gZmFsbGJhY2s7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gISEgaXRlbS5pbmZvLmdldE1hcCgpO1xuICAgIH1cblxuICAgIHRvZ2dsZUluZm8oa2V5KVxuICAgIHtcbiAgICAgICAgbGV0IGl0ZW0gPSBPYmouZ2V0KHRoaXMubWFya2Vycywga2V5KTtcblxuICAgICAgICBpZiAoIEFueS5pc0VtcHR5KGl0ZW0pICkge1xuICAgICAgICAgICAgcmV0dXJuIGNvbnNvbGUuZXJyb3IoYE1hcmtlciBcIiR7a2V5fVwiIG5vdCBmb3VuZGApO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBpdGVtLmluZm8uZ2V0TWFwKCkgKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5jbG9zZUluZm8oa2V5KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0aGlzLm9wZW5JbmZvKGtleSk7XG4gICAgfVxuXG4gICAgb3BlbkluZm8oa2V5KVxuICAgIHtcbiAgICAgICAgbGV0IGl0ZW0gPSBPYmouZ2V0KHRoaXMubWFya2Vycywga2V5KTtcblxuICAgICAgICBpZiAoIEFueS5pc0VtcHR5KGl0ZW0pICkge1xuICAgICAgICAgICAgcmV0dXJuIGNvbnNvbGUuZXJyb3IoYEluZm9XaW5kb3cgXCIke2tleX1cIiBub3QgZm91bmRgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggISBPYmouaGFzKGl0ZW0sICdpbmZvJykgKSB7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBoaWRkZW4gPSAhIGl0ZW0uaW5mby5nZXRNYXAoKTtcblxuICAgICAgICBpZiAoIE1hcC5jbG9zZUluZm9XaW5kb3dzICkge1xuICAgICAgICAgICAgT2JqLmVhY2goQW55LmtleXModGhpcy5tYXJrZXJzKSwgdGhpcy5jbG9zZUluZm8uYmluZCh0aGlzKSk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIGhpZGRlbiApIHtcbiAgICAgICAgICAgIGl0ZW0uaW5mby5vcGVuKHRoaXMubWFwLCBpdGVtLm1hcmtlcik7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnN0eWxlTWFya2VyKGtleSwgJ2FjdGl2ZScpO1xuXG4gICAgICAgIHJldHVybiBoaWRkZW47XG4gICAgfVxuXG4gICAgY2xvc2VJbmZvKGtleSlcbiAgICB7XG4gICAgICAgIGxldCBpdGVtID0gT2JqLmdldCh0aGlzLm1hcmtlcnMsIGtleSk7XG5cbiAgICAgICAgaWYgKCBBbnkuaXNFbXB0eShpdGVtKSApIHtcbiAgICAgICAgICAgIHJldHVybiBjb25zb2xlLmVycm9yKGBJbmZvV2luZG93IFwiJHtrZXl9XCIgbm90IGZvdW5kYCk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoICEgT2JqLmhhcyhpdGVtLCAnaW5mbycpICkge1xuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHZpc2libGUgPSAhISBpdGVtLmluZm8uZ2V0TWFwKCk7XG5cbiAgICAgICAgaWYgKCB2aXNpYmxlICkge1xuICAgICAgICAgICAgaXRlbS5pbmZvLmNsb3NlKCk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnN0eWxlTWFya2VyKGtleSwgJ2RlZmF1bHQnKTtcblxuICAgICAgICByZXR1cm4gdmlzaWJsZTtcbiAgICB9XG5cbiAgICBjcmVhdGVNYXJrZXIoa2V5ID0gbnVsbCwgb3B0aW9ucyA9IHt9KVxuICAgIHtcbiAgICAgICAgaWYgKCBBbnkuaXNFbXB0eShrZXkpICkge1xuICAgICAgICAgICAga2V5ID0gVVVJRCgpO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGl0ZW0gPSB7IGtleSB9O1xuXG4gICAgICAgIGlmICggISBPYmouaGFzKG9wdGlvbnMsICd2aXNpYmxlJykgKSB7XG4gICAgICAgICAgICBvcHRpb25zLnZpc2libGUgPSB0cnVlO1xuICAgICAgICB9XG5cbiAgICAgICAgaXRlbS5leHRyYXMgPSBPYmouZXhjZXB0KG9wdGlvbnMsIFtcbiAgICAgICAgICAgICdtYXAnLCAncG9zaXRpb24nLCAnbGF0JywgJ2xuZycsICdodG1sJywgJ3N0eWxlJywgJ3Zpc2libGUnXG4gICAgICAgIF0pO1xuXG4gICAgICAgIGlmICggISBPYmouaGFzKG9wdGlvbnMsICdtYXAnKSApIHtcbiAgICAgICAgICAgIG9wdGlvbnMubWFwID0gdGhpcy5tYXA7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoICEgT2JqLmhhcyhvcHRpb25zLCAncG9zaXRvbicpICkge1xuICAgICAgICAgICAgb3B0aW9ucy5wb3NpdGlvb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GlvbnMpO1xuICAgIH1cblxuICAgIHNldE1hcmtlckJ5QWRkcmVzcyhrZXksIGFkZHJlc3MpXG4gICAge1xuICAgICAgICByZXR1cm4gdGhpcy5nZXRMb2NhdGlvbkJ5QWRkcmVzcyhhZGRyZXNzLCAocmVzKSA9PiB7XG4gICAgICAgICAgICB0aGlzLnNldE1hcmtlclBvc2l0aW9uKGtleSwgT2JqLmdldChyZXMsICcwLmdlb21ldHJ5LmxvY2F0aW9uJywge30pKTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgZ2V0TG9jYXRpb25CeUFkZHJlc3MoYWRkcmVzcywgY2FsbGJhY2sgPSBudWxsKVxuICAgIHtcbiAgICAgICAgbGV0IGdlb2NvZGVyU2VydmljZSA9IG5ldyBnbG9iYWwuZ29vZ2xlLm1hcHMuR2VvY29kZXIoKTtcblxuICAgICAgICBsZXQgZ2VvY29kZXJQcm9taXNlID0gKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuXG4gICAgICAgICAgICBsZXQgZ2VvY29kZXJSZXN1bHQgPSAocmVzcG9uc2UsIHN0YXR1cykgPT4ge1xuXG4gICAgICAgICAgICAgICAgaWYgKCBzdGF0dXMgPT09ICdPSycgKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrKHJlc3BvbnNlKTtcbiAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZShyZXNwb25zZSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKCBzdGF0dXMgIT09ICdPSycgKSB7XG4gICAgICAgICAgICAgICAgICAgIHJlamVjdChyZXNwb25zZSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICBnZW9jb2RlclNlcnZpY2UuZ2VvY29kZSh7IGFkZHJlc3MgfSwgZ2VvY29kZXJSZXN1bHQpO1xuICAgICAgICB9O1xuXG4gICAgICAgIHJldHVybiBuZXcgUHJvbWlzZShnZW9jb2RlclByb21pc2UpO1xuICAgIH1cblxuICAgIHNob3dNYXJrZXJzKGZpbHRlciA9IG51bGwpXG4gICAge1xuICAgICAgICBsZXQgbWFya2VycyA9IHRoaXMubWFya2VycztcblxuICAgICAgICBpZiAoICEgQW55LmlzRW1wdHkoZmlsdGVyKSApIHtcbiAgICAgICAgICAgIG1hcmtlcnMgPSBPYmouZmlsdGVyKHRoaXMubWFya2VycywgZmlsdGVyKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggTWFwLmhpZGVNYXJrZXJzICkge1xuICAgICAgICAgICAgT2JqLmVhY2goQW55LmtleXModGhpcy5tYXJrZXJzKSwgdGhpcy5oaWRlTWFya2VyLmJpbmQodGhpcykpO1xuICAgICAgICB9XG5cbiAgICAgICAgT2JqLmVhY2gobWFya2VycywgKGl0ZW0pID0+IHRoaXMuc2hvd01hcmtlcihpdGVtLmtleSkpO1xuXG4gICAgICAgIHRoaXMuY2x1c3Rlck1hcmtlcnModGhpcy5jbHVzdGVyT3B0aW9ucywgbnVsbCwgZmFsc2UpO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGdldE1hcmtlckJvdW5kcnkoZmlsdGVyID0gbnVsbClcbiAgICB7XG4gICAgICAgIGxldCBtYXJrZXJzID0gdGhpcy5tYXJrZXJzO1xuXG4gICAgICAgIGlmICggISBBbnkuaXNFbXB0eShmaWx0ZXIpICkge1xuICAgICAgICAgICAgbWFya2VycyA9IE9iai5maWx0ZXIodGhpcy5tYXJrZXJzLCBmaWx0ZXIpO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGJvdW5kcnkgPSBuZXcgZ2xvYmFsLmdvb2dsZS5tYXBzLkxhdExuZ0JvdW5kcygpO1xuXG4gICAgICAgIE9iai5lYWNoKG1hcmtlcnMsIChpdGVtKSA9PiB7XG4gICAgICAgICAgICBpZiAoIGl0ZW0ubWFya2VyLmdldFZpc2libGUoKSApIHtcbiAgICAgICAgICAgICAgICBib3VuZHJ5L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vcHRpb25zLCAnbWFwJykgKSB7XG4gICAgICAgICAgICBvcHRpb25zLm1hcCA9IHRoaXMubWFwO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCAhIE9iai5oYXMob3B0aW9ucywgJ3RyYXZlbE1vZGUnKSApIHtcbiAgICAgICAgICAgIG9wdGlvbnMudHJhdmVsTW9kZSA9ICdEUklWSU5HJztcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIFNldCBkaXJlY3Rpb25zIG1hcFxuICAgICAgICBkaXJlY3Rpb25zUmVuZGVyZXIuc2V0TWFwKG9wdGlvbnMubWFwKTtcblxuICAgICAgICBpZiAoIE9iai5oYXMob3B0aW9ucywgJ3BhbmVsJykgJiYgISBEb20uZmluZChvcHRpb25zLnBhbmVsKS5lbXB0eSgpICkge1xuICAgICAgICAgICAgZGlyZWN0aW9uc1JlbmRlcmVyLnNldFBhbmVsKERvbS5maW5kKG9wdGlvbnMucGFuZWwpLmdldCgwKSk7XG4gICAgICAgIH1cblxuICAgICAgICBvcHRpb25zID0gT2JqLm9ubHkob3B0aW9ucywgWydvcmlnaW4nLCAnZGVzdGluYXRpb24nLCAndHJhdmVsTW9kZSddKTtcblxuICAgICAgICBsZXQgZGlyZWN0aW9uc1Byb21pc2UgPSAocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG5cbiAgICAgICAgICAgIGxldCBkaXJlY3Rpb25zUmVzdWx0ID0gKHJlc3BvbnNlLCBzdGF0dXMpID0+IHtcblxuICAgICAgICAgICAgICAgIGlmICggc3RhdHVzID09PSAnT0snICkge1xuICAgICAgICAgICAgICAgICAgICBkaXJlY3Rpb25zUmVuZGVyZXIuc2V0RGlyZWN0aW9ucyhyZXNwb25zZSk7XG4gICAgICAgICAgICAgICAgICAgIHJlc29sdmUocmVzcG9uc2UpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmICggc3RhdHVzICE9PSAnT0snICkge1xuICAgICAgICAgICAgICAgICAgICByZWplY3QocmVzcG9uc2UpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgZGlyZWN0aW9uc1NlcnZpY2Uucm91dGUob3B0aW9ucywgZGlyZWN0aW9uc1Jlc3VsdCk7XG4gICAgICAgIH07XG5cbiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKGRpcmVjdGlvbnNQcm9taXNlKTtcbiAgICB9XG5cbn1cbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/library/map.js\n");
|
246
|
+
|
247
|
+
/***/ }),
|
248
|
+
|
249
|
+
/***/ "./src/library/queue.js":
|
250
|
+
/*!******************************!*\
|
251
|
+
!*** ./src/library/queue.js ***!
|
252
|
+
\******************************/
|
253
|
+
/*! exports provided: default */
|
254
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
255
|
+
|
256
|
+
"use strict";
|
257
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Queue; });\n/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ \"./src/index.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\nvar Queue = /*#__PURE__*/function () {\n function Queue() {\n var queue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n _classCallCheck(this, Queue);\n\n _defineProperty(this, \"queue\", []);\n\n _defineProperty(this, \"stopQueue\", false);\n\n _defineProperty(this, \"activeQueue\", false);\n\n this.queue = queue;\n }\n\n _createClass(Queue, [{\n key: \"handler\",\n value: function handler(queue, index) {\n var _this = this;\n\n return function () {\n return queue.length - 1 > index++ && _this.stopQueue === false ? queue[index](_this.handler(queue, index)) : function () {};\n };\n }\n }, {\n key: \"stop\",\n value: function stop() {\n this.stopQueue = true;\n this.activeQueue = false;\n this.queue = [];\n return this;\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.queue = [];\n return this;\n }\n }, {\n key: \"add\",\n value: function add(cb) {\n this.queue.push(cb);\n return this;\n }\n }, {\n key: \"run\",\n value: function run() {\n var instance = new Queue(this.queue);\n instance.add(function () {\n instance.activeQueue = false;\n });\n\n if (instance.queue.length !== 0) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].first(instance.queue)(instance.handler(instance.queue.slice(0), 0));\n }\n\n return instance;\n }\n }, {\n key: \"active\",\n value: function active() {\n return this.activeQueue;\n }\n }]);\n\n return Queue;\n}();\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vc3JjL2xpYnJhcnkvcXVldWUuanM/MGRlYSJdLCJuYW1lcyI6WyJRdWV1ZSIsInF1ZXVlIiwiaW5kZXgiLCJsZW5ndGgiLCJzdG9wUXVldWUiLCJoYW5kbGVyIiwiYWN0aXZlUXVldWUiLCJjYiIsInB1c2giLCJpbnN0YW5jZSIsImFkZCIsIkFyciIsImZpcnN0Iiwic2xpY2UiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7O0lBRXFCQSxLO0FBTWpCLG1CQUNBO0FBQUEsUUFEWUMsS0FDWix1RUFEb0IsRUFDcEI7O0FB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AgICAgdGhpcy5xdWV1ZSA9IFtdO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGFkZChjYilcbiAgICB7XG4gICAgICAgIHRoaXMucXVldWUucHVzaChjYik7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgcnVuKClcbiAgICB7XG4gICAgICAgIGxldCBpbnN0YW5jZSA9IG5ldyBRdWV1ZSh0aGlzLnF1ZXVlKTtcblxuICAgICAgICBpbnN0YW5jZS5hZGQoKCkgPT4ge1xuICAgICAgICAgICAgaW5zdGFuY2UuYWN0aXZlUXVldWUgPSBmYWxzZTtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgaWYgKCBpbnN0YW5jZS5xdWV1ZS5sZW5ndGggIT09IDAgKSB7XG4gICAgICAgICAgICBBcnIuZmlyc3QoaW5zdGFuY2UucXVldWUpKGluc3RhbmNlLmhhbmRsZXIoaW5zdGFuY2UucXVldWUuc2xpY2UoMCksIDApKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBpbnN0YW5jZTtcbiAgICB9XG5cbiAgICBhY3RpdmUoKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuYWN0aXZlUXVldWU7XG4gICAgfVxuXG59XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/library/queue.js\n");
|
258
|
+
|
259
|
+
/***/ }),
|
260
|
+
|
261
|
+
/***/ "./src/library/route.js":
|
262
|
+
/*!******************************!*\
|
263
|
+
!*** ./src/library/route.js ***!
|
264
|
+
\******************************/
|
265
|
+
/*! exports provided: default */
|
266
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
267
|
+
|
268
|
+
"use strict";
|
269
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Route; });\n/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ \"./src/index.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\nvar Route = /*#__PURE__*/function () {\n function Route() {\n _classCallCheck(this, Route);\n }\n\n _createClass(Route, null, [{\n key: \"set\",\n value: function set(key, value) {\n this.routes[key] = value;\n }\n }, {\n key: \"get\",\n value: function get(key) {\n var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var route = key.match(/^https?:\\/\\//) ? key : this.routes[key] || key;\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].each(values || {}, function (value, key) {\n route = route.replace(new RegExp('{' + key + '\\\\?*}', 'g'), value);\n });\n return route + (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(params) ? '?' + _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Str\"].params(params) : '');\n }\n }, {\n key: \"goto\",\n value: function goto(key) {\n var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n global.location.href = this.get(key, values, params);\n }\n }]);\n\n return Route;\n}();\n\n_defineProperty(Route, \"routes\", _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(global, '_routes', {}));\n\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vc3JjL2xpYnJhcnkvcm91dGUuanM/MmI1OCJdLCJuYW1lcyI6WyJSb3V0ZSIsImtleSIsInZhbHVlIiwicm91dGVzIiwidmFsdWVzIiwicGFyYW1zIiwicm91dGUiLCJtYXRjaCIsIk9iaiIsImVhY2giLCJyZXBsYWNlIiwiUmVnRXhwIiwiQW55IiwiaXNFbXB0eSIsIlN0ciIsImdsb2JhbCIsImxvY2F0aW9uIiwiaHJlZiIsImdldCJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTs7SUFFcUJBLEs7Ozs7Ozs7d0JBSUxDLEcsRUFBS0MsSyxFQUNqQjtBQUNJLFdBQUtDLE1BQUwsQ0FBWUYsR0FBWixJQUFtQkMsS0FBbkI7QUFDSDs7O3dCQUVXRCxHLEVBQ1o7QUFBQSxVQURpQkcsTUFDakIsdUVBRDBCLElBQzFCO0FBQUEsVUFEZ0NDLE1BQ2hDLHVFQUR5QyxJQUN6QztBQUNJLFVBQUlDLEtBQUssR0FBR0wsR0FBRyxDQUFDTSxLQUFKLENBQVUsY0FBVixJQUE0Qk4sR0FBNUIsR0FBa0MsS0FBS0UsTUFBTCxDQUFZRixHQUFaLEtBQW9CQSxHQUFsRTtBQUVBTyxtREFBRyxDQUFDQyxJQUFKLENBQVNMLE1BQU0sSUFBSSxFQUFuQixFQUF1QixVQUFDRixLQUFELEVBQVFELEdBQVIsRUFBZ0I7QUFDbkNLLGFBQUssR0FBR0EsS0FBSyxDQUFDSSxPQUFOLENBQWMsSUFBSUMsTUFBSixDQUFXLE1BQU1WLEdBQU4sR0FBWSxPQUF2QixFQUF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BzPzpcXC9cXC8vKSA/IGtleSA6IHRoaXMucm91dGVzW2tleV0gfHwga2V5O1xuXG4gICAgICAgIE9iai5lYWNoKHZhbHVlcyB8fCB7fSwgKHZhbHVlLCBrZXkpID0+IHtcbiAgICAgICAgICAgIHJvdXRlID0gcm91dGUucmVwbGFjZShuZXcgUmVnRXhwKCd7JyArIGtleSArICdcXFxcPyp9JywgJ2cnKSwgdmFsdWUpO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gcm91dGUgKyAoISBBbnkuaXNFbXB0eShwYXJhbXMpID8gKCc/JyArIFN0ci5wYXJhbXMocGFyYW1zKSkgOiAnJyk7XG4gICAgfVxuXG4gICAgc3RhdGljIGdvdG8gKGtleSwgdmFsdWVzID0gbnVsbCwgcGFyYW1zID0gbnVsbClcbiAgICB7XG4gICAgICAgIGdsb2JhbC5sb2NhdGlvbi5ocmVmID0gdGhpcy5nZXQoa2V5LCB2YWx1ZXMsIHBhcmFtcyk7XG4gICAgfVxuXG59XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/library/route.js\n");
|
270
|
+
|
271
|
+
/***/ }),
|
272
|
+
|
273
|
+
/***/ "./src/utility/any.js":
|
274
|
+
/*!****************************!*\
|
275
|
+
!*** ./src/utility/any.js ***!
|
276
|
+
\****************************/
|
277
|
+
/*! exports provided: Any, default */
|
278
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
279
|
+
|
280
|
+
"use strict";
|
281
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Any\", function() { return Any; });\n/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ \"./src/index.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\nvar Any = /*#__PURE__*/function () {\n function Any() {\n _classCallCheck(this, Any);\n }\n\n _createClass(Any, null, [{\n key: \"isEmpty\",\n value: function isEmpty(val) {\n if (this.isNumber(val)) {\n return false;\n }\n\n if (this.isString(val)) {\n return val === '';\n }\n\n if (this.isBool(val)) {\n return val === null;\n }\n\n if (this.isPlain(val)) {\n return Object.keys(val).length === 0;\n }\n\n if (this.isArray(val)) {\n return Object.keys(val).length === 0;\n }\n\n return val === null || val === undefined;\n }\n }, {\n key: \"isNull\",\n value: function isNull(val) {\n return val === null;\n }\n }, {\n key: \"isEqual\",\n value: function isEqual(obj, val) {\n if (obj instanceof Node) {\n return obj.isEqualNode(val);\n }\n\n if (this.isPlain(obj)) {\n return Object.is(obj, val);\n }\n\n if (this.isArray(obj)) {\n return Object.is(obj, val);\n }\n\n return obj === val;\n }\n }, {\n key: \"isString\",\n value: function isString(val) {\n return typeof val === 'string';\n }\n }, {\n key: \"isNumber\",\n value: function isNumber(val) {\n return typeof val === 'number' || typeof val === 'string' && val.match(/^\\-?[0-9]+$/);\n }\n }, {\n key: \"isBool\",\n value: function isBool(val) {\n return typeof val === 'boolean' || typeof val === 'string' && val.match(/^(true|false)$/);\n }\n }, {\n key: \"isFunction\",\n value: function isFunction(val) {\n return typeof val === 'function';\n }\n }, {\n key: \"isObject\",\n value: function isObject(val) {\n return val !== null && _typeof(val) === 'object';\n }\n }, {\n key: \"isPlain\",\n value: function isPlain(val) {\n return this.isObject(val) && val.constructor === Object;\n }\n }, {\n key: \"isArray\",\n value: function isArray(val) {\n return this.isObject(val) && val.constructor === Array;\n }\n }, {\n key: \"isDate\",\n value: function isDate(val) {\n return val instanceof Date;\n }\n }, {\n key: \"string\",\n value: function string(val) {\n return String(val);\n }\n }, {\n key: \"convertString\",\n value: function convertString(val) {\n var empty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '-';\n return this.isEmpty(val) ? empty : this.string(val);\n }\n }, {\n key: \"integer\",\n value: function integer(val) {\n return parseInt(val);\n }\n }, {\n key: \"float\",\n value: function float(val) {\n return parseFloat(val);\n }\n }, {\n key: \"bool\",\n value: function bool(val) {\n var result = String(val).match(/^(true|1|yes|ja)$/i);\n return result === null ? false : result.length !== 0;\n }\n }, {\n key: \"boolean\",\n value: function boolean(val) {\n var result = String(val).match(/^(true|1|yes|ja)$/i);\n return result === null ? false : result.length !== 0;\n }\n }, {\n key: \"convertBool\",\n value: function convertBool(val) {\n var yes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Yes';\n var no = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'No';\n var result = String(val).match(/^(true|1|yes|ja)$/i);\n return result === null || result.length === 0 ? no : yes;\n }\n }, {\n key: \"convertBoolean\",\n value: function convertBoolean(val) {\n var yes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Yes';\n var no = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'No';\n var result = String(val).match(/^(true|1|yes|ja)$/i);\n return result === null || result.length === 0 ? no : yes;\n }\n }, {\n key: \"convertDatetime\",\n value: function convertDatetime(val) {\n var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'YYYY-MM-DD hh:mm:ss';\n var empty = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '-';\n\n if (Any.isEmpty(val) === true) {\n return empty;\n }\n\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Now\"].make(val).format(format);\n }\n }, {\n key: \"vals\",\n value: function vals(obj) {\n var keys = [];\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n keys.push(obj[key]);\n }\n }\n\n return keys;\n }\n }, {\n key: \"keys\",\n value: function keys(obj) {\n var keys = [];\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n keys.push(key);\n }\n }\n\n return keys;\n }\n }, {\n key: \"async\",\n value: function async(callback) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n setTimeout(function () {\n callback.apply(void 0, args);\n }, 0);\n return this;\n }\n }, {\n key: \"delay\",\n value: function delay(callback) {\n var _delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;\n\n for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n setTimeout(function () {\n callback.apply(void 0, args);\n }, _delay);\n return this;\n }\n }, {\n key: \"debounce\",\n value: function debounce(callback) {\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;\n var ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var debounce = null;\n\n if (!Any.isEmpty(ref)) {\n debounce = ref();\n }\n\n if (ref !== null && ref.__debouce !== undefined) {\n debounce = ref.__debouce;\n }\n\n return function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n clearTimeout(debounce);\n debounce = setTimeout(function () {\n callback.apply(void 0, args);\n }, delay);\n\n if (!Any.isEmpty(ref)) {\n ref(debounce);\n }\n };\n }\n }, {\n key: \"throttle\",\n value: function throttle(callback) {\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;\n var ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var throttle = null;\n\n if (!Any.isEmpty(ref)) {\n throttle = ref();\n }\n\n var timer = null;\n return function () {\n clearTimeout(timer);\n timer = setTimeout(function () {\n throttle = null;\n }, delay);\n\n if (throttle === true) {\n return;\n }\n\n throttle = true;\n\n if (!Any.isEmpty(ref)) {\n ref(throttle);\n }\n\n callback.apply(void 0, arguments);\n };\n }\n }, {\n key: \"framerate\",\n value: function framerate(callback) {\n var rate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 30;\n var ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var latest = 0;\n\n if (!Any.isEmpty(ref)) {\n latest = ref();\n }\n\n return function () {\n if (Date.now() - latest <= 1000 / rate) {\n return;\n }\n\n callback.apply(void 0, arguments);\n latest = Date.now();\n\n if (!Any.isEmpty(ref)) {\n ref(latest);\n }\n };\n }\n }, {\n key: \"form\",\n value: function form(obj) {\n var form = new FormData();\n\n var appendField = function appendField(values) {\n var keys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].each(values, function (value, index) {\n var inner = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].merge([], keys, index);\n\n if (Any.isPlain(value)) {\n return appendField(value, inner);\n }\n\n if (Any.isArray(value)) {\n return appendField(value, inner);\n }\n\n var key = inner.splice(0, 1)[0];\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].each(inner, function (index) {\n key += '[' + index + ']';\n });\n\n if (value !== null) {\n form.append(key, value);\n }\n });\n return form;\n };\n\n return appendField(obj);\n }\n }]);\n\n return Any;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (Any);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vc3JjL3V0aWxpdH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gICAgIGlmICggdGhpcy5pc0FycmF5KHZhbCkgKSB7XG4gICAgICAgICAgICByZXR1cm4gT2JqZWN0LmtleXModmFsKS5sZW5ndGggPT09IDA7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdmFsID09PSBudWxsIHx8IHZhbCA9PT0gdW5kZWZpbmVkO1xuICAgIH1cblxuICAgIHN0YXRpYyBpc051bGwodmFsKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIHZhbCA9PT0gbnVsbDtcbiAgICB9XG5cbiAgICBzdGF0aWMgaXNFcXVhbChvYmosIHZhbClcbiAgICB7XG4gICAgICAgIGlmICggb2JqIGluc3RhbmNlb2YgTm9kZSApIHtcbiAgICAgICAgICAgIHJldHVybiBvYmouaXNFcXVhbE5vZGUodmFsKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggdGhpcy5pc1BsYWluKG9iaikgKSB7XG4gICAgICAgICAgICByZXR1cm4gT2JqZWN0LmlzKG9iaiwgdmFsKVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCB0aGlzLmlzQXJyYXkob2JqKSApIHtcbiAgICAgICAgICAgIHJldHVybiBPYmplY3QuaXMob2JqLCB2YWwpXG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gb2JqID09PSB2YWw7XG4gICAgfVxuXG4gICAgc3RhdGljIGlzU3RyaW5nKHZhbClcbiAgICB7XG4gICAgICAgIHJldHVybiB0eXBlb2YgdmFsID09PSAnc3RyaW5nJztcbiAgICB9XG5cbiAgICBzdGF0aWMgaXNOdW1iZXIodmFsKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIHR5cGVvZiB2YWwgPT09ICdudW1iZXInIHx8XG4gICAgICAgICAgICAodHlwZW9mIHZhbCA9PT0gJ3N0cmluZycgJiYgdmFsLm1hdGNoKC9eXFwtP1swLTldKyQvKSk7XG4gICAgfVxuXG4gICAgc3RhdGljIGlzQm9vbCh2YWwpXG4gICAge1xuICAgICAgICByZXR1cm4gdHlwZW9mI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RpYyBjb252ZXJ0RGF0ZXRpbWUodmFsLCBmb3JtYXQgPSAnWVlZWS1NTS1ERCBoaDptbTpzcycsIGVtcHR5ID0gJy0nKVxuICAgIHtcbiAgICAgICAgaWYgKCBBbnkuaXNFbXB0eSh2YWwpID09PSB0cnVlICkge1xuICAgICAgICAgICAgcmV0dXJuIGVtcHR5O1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIE5vdy5tYWtlKHZhbCkuZm9ybWF0KGZvcm1hdCk7XG4gICAgfVxuXG4gICAgc3RhdGljIHZhbHMob2JqKVxuICAgIHtcbiAgICAgICAgbGV0IGtleXMgPSBbXTtcblxuICAgICAgICBmb3IgKCBsZXQga2V5IGluIG9iaiApIHtcbiAgICAgICAgICAgIGlmICggb2JqLmhhc093blByb3BlcnR5KGtleSkgKSB7XG4gICAgICAgICAgICAgICAga2V5cy5wdXNoKG9ialtrZXldKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBrZXlzO1xuICAgIH1cblxuICAgIHN0YXRpYyBrZXlzKG9iailcbiAgICB7XG4gICAgICAgIGxldCBrZXlzID0gW107XG5cbiAgICAgICAgZm9yICggbGV0IGtleSBpbiBvYmogKSB7XG4gICAgICAgICAgICBpZiAoIG9iai5oYXNPd25Qcm9wZXJ0eShrZXkpICkge1xuICAgICAgICAgICAgICAgIGtleXMucHVzaChrZXkpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGtleXM7XG4gICAgfVxuXG4gICAgc3RhdGljIGFzeW5jKGNhbGxiYWNrLCAuLi5hcmdzKVxuICAgIHtcbiAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbigpIHtcbiAgICAgICAgICAgIGNhbGxiYWNrKC4uLmFyZ3MpO1xuICAgICAgICB9LCAwKTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBzdGF0aWMgZGVsYXkoY2FsbGJhY2ssIGRlbGF5ID0gMTAwLCAuLi5hcmdzKVxuICAgIHtcbiAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbigpIHtcbiAgICAgICAgICAgIGNhbGxiYWNrKC4uLmFyZ3MpO1xuICAgICAgICB9LCBkZWxheSk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgc3RhdGljIGRlYm91bmNlKGNhbGxiYWNrLCBkZWxheSA9IDEwMCwgcmVmID0gbnVsbClcbiAgICB7XG4gICAgICAgIGxldCBkZWJvdW5jZSA9IG51bGw7XG5cbiAgICAgICAgaWYgKCAhIEFueS5pc0VtcHR5KHJlZikgKSB7XG4gICAgICAgICAgICBkZWJvdW5jZSA9IHJlZigpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCByZWYgIT09IG51bGwgJiYgcmVmLl9fZGVib3VjZSAhPT0gdW5kZWZpbmVkICkge1xuICAgICAgICAgICAgZGVib3VuY2UgPSByZWYuX19kZWJvdWNlO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuICguLi5hcmdzKSA9PiB7XG5cbiAgICAgICAgICAgIGNsZWFyVGltZW91dChkZWJvdW5jZSk7XG5cbiAgICAgICAgICAgIGRlYm91bmNlID0gc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgY2FsbGJhY2soLi4uYXJncyk7XG4gICAgICAgICAgICB9LCBkZWxheSk7XG5cbiAgICAgICAgICAgIGlmICggISBBbnkuaXNFbXB0eShyZWYpICkge1xuICAgICAgICAgICAgICAgIHJlZihkZWJvdW5jZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG4gICAgfVxuXG4gICAgc3RhdGljIHRocm90dGxlKGNhbGxiYWNrLCBkZWxheSA9IDEwMCwgcmVmID0gbnVsbClcbiAgICB7XG4gICAgICAgIGxldCB0aHJvdHRsZSA9IG51bGw7XG5cbiAgICAgICAgaWYgKCAhIEFueS5pc0VtcHR5KHJlZikgKSB7XG4gICAgICAgICAgICB0aHJvdHRsZSA9IHJlZigpO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHRpbWVyID0gbnVsbDtcblxuICAgICAgICByZXR1cm4gKC4uLmFyZ3MpID0+IHtcblxuICAgICAgICAgICAgY2xlYXJUaW1lb3V0KHRpbWVyKTtcblxuICAgICAgICAgICAgdGltZXIgPSBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgICB0aHJvdHRsZSA9IG51bGw7XG4gICAgICAgICAgICB9LCBkZWxheSk7XG5cbiAgICAgICAgICAgIGlmICggdGhyb3R0bGUgPT09IHRydWUgKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aHJvdHRsZSA9IHRydWU7XG5cbiAgICAgICAgICAgIGlmICggISBBbnkuaXNFbXB0eShyZWYpICkge1xuICAgICAgICAgICAgICAgIHJlZih0aHJvdHRsZSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGNhbGxiYWNrKC4uLmFyZ3MpO1xuICAgICAgICB9O1xuICAgIH1cblxuICAgIHN0YXRpYyBmcmFtZXJhdGUoY2FsbGJhY2ssIHJhdGUgPSAzMCwgcmVmID0gbnVsbClcbiAgICB7XG4gICAgICAgIGxldCBsYXRlc3QgPSAwO1xuXG4gICAgICAgIGlmICggISBBbnkuaXNFbXB0eShyZWYpICkge1xuICAgICAgICAgICAgbGF0ZXN0ID0gcmVmKCk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gKC4uLmFyZ3MpID0+IHtcblxuICAgICAgICAgICAgaWYgKCBEYXRlLm5vdygpIC0gbGF0ZXN0IDw9ICgxMDAwIC8gcmF0ZSkgKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjYWxsYmFjayguLi5hcmdzKTtcblxuICAgICAgICAgICAgbGF0ZXN0ID0gRGF0ZS5ub3coKTtcblxuICAgICAgICAgICAgaWYgKCAhIEFueS5pc0VtcHR5KHJlZikgKSB7XG4gICAgICAgICAgICAgICAgcmVmKGxhdGVzdCk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBzdGF0aWMgZm9ybShvYmopXG4gICAge1xuICAgICAgICBsZXQgZm9ybSA9IG5ldyBGb3JtRGF0YSgpO1xuXG4gICAgICAgIGxldCBhcHBlbmRGaWVsZCA9ICh2YWx1ZXMsIGtleXMgPSBbXSkgPT4ge1xuICAgICAgICAgICAgT2JqLmVhY2godmFsdWVzLCAodmFsdWUsIGluZGV4KSA9PiB7XG5cbiAgICAgICAgICAgICAgICBsZXQgaW5uZXIgPSBBcnIubWVyZ2UoW10sIGtleXMsIGluZGV4KTtcblxuICAgICAgICAgICAgICAgIGlmICggQW55LmlzUGxhaW4odmFsdWUpICkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gYXBwZW5kRmllbGQodmFsdWUsIGlubmVyKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAoIEFueS5pc0FycmF5KHZhbHVlKSApIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGFwcGVuZEZpZWxkKHZhbHVlLCBpbm5lcik7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgbGV0IGtleSA9IGlubmVyLnNwbGljZSgwLCAxKVswXTtcblxuICAgICAgICAgICAgICAgIEFyci5lYWNoKGlubmVyLCAoaW5kZXgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAga2V5ICs9ICdbJyArIGluZGV4ICsgJ10nO1xuICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgICAgaWYgKCB2YWx1ZSAhPT0gbnVsbCApIHtcbiAgICAgICAgICAgICAgICAgICAgZm9ybS5hcHBlbmQoa2V5LCB2YWx1ZSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgIHJldHVybiBmb3JtO1xuICAgICAgICB9O1xuXG4gICAgICAgIHJldHVybiBhcHBlbmRGaWVsZChvYmopO1xuICAgIH1cblxufVxuXG5leHBvcnQgZGVmYXVsdCBBbnk7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/utility/any.js\n");
|
282
|
+
|
283
|
+
/***/ }),
|
284
|
+
|
285
|
+
/***/ "./src/utility/array.js":
|
286
|
+
/*!******************************!*\
|
287
|
+
!*** ./src/utility/array.js ***!
|
288
|
+
\******************************/
|
289
|
+
/*! exports provided: Arr, default */
|
290
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
291
|
+
|
292
|
+
"use strict";
|
293
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Arr\", function() { return Arr; });\n/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ \"./src/index.js\");\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\nvar Arr = /*#__PURE__*/function () {\n function Arr() {\n _classCallCheck(this, Arr);\n }\n\n _createClass(Arr, null, [{\n key: \"make\",\n value: function make(count) {\n return Arr.map(Array(count).fill(null), function (val, key) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Num\"][\"int\"](key) + 1;\n });\n }\n }, {\n key: \"all\",\n value: function all(arr) {\n return Array.isArray(arr) ? arr : [arr];\n }\n }, {\n key: \"get\",\n value: function get(arr, index) {\n var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n return arr[index] || fallback;\n }\n }, {\n key: \"set\",\n value: function set(arr, index, value) {\n return arr[index] = value;\n }\n }, {\n key: \"first\",\n value: function first(arr) {\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n return (Array.isArray(arr) ? arr[0] : arr) || fallback;\n }\n }, {\n key: \"second\",\n value: function second(arr) {\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n return (Array.isArray(arr) ? arr[1] || arr[0] : arr) || fallback;\n }\n }, {\n key: \"third\",\n value: function third(arr) {\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n return (Array.isArray(arr) ? arr[2] || arr[1] || arr[0] : arr) || fallback;\n }\n }, {\n key: \"last\",\n value: function last(arr) {\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n return (Array.isArray(arr) ? arr[arr.length - 1] : arr) || fallback;\n }\n }, {\n key: \"prepend\",\n value: function prepend(arr, val) {\n arr.splice(0, 0, val);\n return arr;\n }\n }, {\n key: \"append\",\n value: function append(arr, val) {\n arr.splice(arr.length, 0, val);\n return arr;\n }\n }, {\n key: \"sort\",\n value: function sort(obj, key) {\n var keys = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].keys(obj);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isFunction(key)) {\n keys = keys.sort(function (a, b) {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isFunction(key)) {\n keys = keys.sort(function (a, b) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].integer(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(obj[a], key)) - _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].integer(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(obj[b], key));\n });\n }\n\n var result = [];\n Arr.each(keys, function (key, index) {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n return result;\n }\n }, {\n key: \"sortString\",\n value: function sortString(obj, key) {\n var keys = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].keys(obj);\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isFunction(key)) {\n keys = keys.sort(function (a, b) {\n var va = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].string(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(obj[a], key)).toLowerCase();\n var vb = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].string(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(obj[b], key)).toLowerCase();\n return va < vb ? -1 : va > vb ? 1 : 0;\n });\n }\n\n var result = [];\n Arr.each(keys, function (key, index) {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n return result;\n }\n }, {\n key: \"filter\",\n value: function filter(arr, _filter) {\n return Arr.each(Arr.filterIndex(arr, _filter), function (key) {\n return arr[key];\n });\n }\n }, {\n key: \"filterIndex\",\n value: function filterIndex(arr, filter) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].keys(arr).filter(function (key) {\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isFunction(filter)) {\n return filter.call({}, arr[key], key);\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isPlain(filter)) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].includes(filter, arr[key]);\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isArray(filter)) {\n return Arr.includes(filter, arr[key]);\n }\n\n return filter === arr[key];\n });\n }\n }, {\n key: \"find\",\n value: function find(arr, val) {\n var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n return Arr.first(Arr.filter(arr, val)) || fallback;\n }\n }, {\n key: \"findIndex\",\n value: function findIndex(arr, val) {\n var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].integer(Arr.first(Arr.filterIndex(arr, val)) || fallback);\n }\n }, {\n key: \"has\",\n value: function has(arr, val) {\n return this.findIndex(arr, val) !== -1;\n }\n }, {\n key: \"add\",\n value: function add(arr, val) {\n var finder = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var index = this.findIndex(arr, finder || val);\n\n if (index === -1) {\n arr.push(val);\n }\n\n return arr;\n }\n }, {\n key: \"replace\",\n value: function replace(arr, val) {\n var finder = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var index = this.findIndex(arr, finder || val);\n\n if (index !== -1) {\n arr.splice(index, 1);\n }\n\n arr.push(val);\n return arr;\n }\n }, {\n key: \"remove\",\n value: function remove(arr, val) {\n var index = this.findIndex(arr, val);\n\n if (index !== -1) {\n arr.splice(index, 1);\n }\n\n return arr;\n }\n }, {\n key: \"toggle\",\n value: function toggle(arr, val) {\n var index = this.findIndex(arr, val);\n\n if (index !== -1) {\n arr.splice(index, 1);\n } else {\n arr.push(val);\n }\n\n return arr;\n }\n }, {\n key: \"removeIndex\",\n value: function removeIndex(arr, val) {\n if (val < arr.length) {\n arr.splice(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Num\"][\"int\"](val), 1);\n }\n\n return arr;\n }\n }, {\n key: \"insert\",\n value: function insert(arr, key, val) {\n arr.splice(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Num\"][\"int\"](key), 0, val);\n return arr;\n }\n }, {\n key: \"slice\",\n value: function slice(arr, key) {\n var count = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n return arr.slice(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Num\"][\"int\"](key), count);\n }\n }, {\n key: \"splice\",\n value: function splice(arr, key) {\n var count = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n return arr.splice(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Num\"][\"int\"](key), count);\n }\n }, {\n key: \"equal\",\n value: function equal(arr1, arr2) {\n var _this = this;\n\n var complete = this.merge([], arr1, arr2);\n var rainbow = this.each(complete, function (value) {\n return _this.has(arr1, value) && _this.has(arr2, value);\n });\n return !this.has(rainbow, false);\n }\n }, {\n key: \"includes\",\n value: function includes(arr, val) {\n var result = false;\n\n var _iterator = _createForOfIteratorHelper(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].vals(arr)),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var key = _step.value;\n result = val.indexOf(key) !== -1 || result;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return result;\n }\n }, {\n key: \"contains\",\n value: function contains(arr, val) {\n var result = true;\n\n var _iterator2 = _createForOfIteratorHelper(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].vals(val)),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var key = _step2.value;\n result = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].vals(arr).indexOf(key) !== -1 && result;\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n return result;\n }\n }, {\n key: \"concat\",\n value: function concat(arr) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return arr.concat.apply(arr, args);\n }\n }, {\n key: \"clone\",\n value: function clone(arr) {\n var clone;\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isPlain(arr)) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].clone(arr);\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isArray(arr)) {\n clone = [];\n\n var _iterator3 = _createForOfIteratorHelper(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].keys(arr)),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var key = _step3.value;\n clone[key] = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].clone(arr[key]);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n\n return clone;\n }\n\n return clone || arr;\n }\n }, {\n key: \"merge\",\n value: function merge(arr) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n return arr.concat.apply(arr, args);\n }\n }, {\n key: \"push\",\n value: function push(arr) {\n for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n args[_key3 - 1] = arguments[_key3];\n }\n\n arr.push.apply(arr, args);\n return arr;\n }\n }, {\n key: \"diff\",\n value: function diff(arr, val) {\n return arr.filter(function (diff) {\n return val.indexOf(diff) < 0;\n });\n }\n }, {\n key: \"intersect\",\n value: function intersect() {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n return args.reduce(function (a, c) {\n return a.filter(function (i) {\n return c.includes(i);\n });\n });\n }\n }, {\n key: \"chunk\",\n value: function chunk(arr) {\n var _chunk = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;\n\n var res = [];\n\n for (var i = 0; i < arr.length; i += _chunk) {\n res.push(arr.slice(i, i + _chunk));\n }\n\n return res;\n }\n }, {\n key: \"reduce\",\n value: function reduce(arr, callback, accumulator) {\n return Object.values(arr).reduce(callback, accumulator);\n }\n }, {\n key: \"extract\",\n value: function extract(arr, path) {\n return this.each(arr, function (val) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].get(val, path, null);\n });\n }\n }, {\n key: \"each\",\n value: function each(arr, callback) {\n var result = Arr.clone(arr);\n\n var _iterator4 = _createForOfIteratorHelper(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].keys(result)),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var key = _step4.value;\n result[key] = callback(result[key], _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isNumber(key) ? _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].integer(key) : key);\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].vals(result);\n }\n }, {\n key: \"map\",\n value: function map(arr, callback) {\n var result = Arr.clone(arr);\n\n var _iterator5 = _createForOfIteratorHelper(_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].keys(result)),\n _step5;\n\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var key = _step5.value;\n result[key] = arr[key] = callback(result[key], _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isNumber(key) ? _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].integer(key) : key);\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n\n return result;\n }\n }, {\n key: \"recursive\",\n value: function recursive(arr, key, callback) {\n var _this2 = this;\n\n var cascade = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isArray(arr) === true) {\n return this.map(arr, function (val) {\n return _this2.recursive(val, key, callback, cascade);\n });\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isObject(arr) === true) {\n var res = callback(arr, cascade);\n arr = res !== undefined ? res : arr;\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isArray(arr[key]) === true) {\n cascade = Arr.clone(cascade);\n Arr.push(cascade, arr);\n arr[key] = this.map(arr[key], function (val) {\n return _this2.recursive(val, key, callback, cascade);\n });\n return arr;\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(arr[key]) === false) {\n cascade = Arr.clone(cascade);\n Arr.push(cascade, arr);\n arr[key] = this.recursive(arr[key], key, callback, cascade);\n return arr;\n }\n\n return arr;\n }\n }]);\n\n return Arr;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (Arr);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZX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KHZhbCwga2V5KSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gTnVtLmludChrZXkpICsgMTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgc3RhdGljIGFsbChhcnIpXG4gICAge1xuICAgICAgICByZXR1cm4gQXJyYXkuaXNBcnJheShhcnIpID8gYXJyIDogW2Fycl07XG4gICAgfVxuXG4gICAgc3RhdGljIGdldChhcnIsIGluZGV4LCBmYWxsYmFjayA9IG51bGwpXG4gICAge1xuICAgICAgICByZXR1cm4gYXJyW2luZGV4XSB8fCBmYWxsYmFjaztcbiAgICB9XG5cbiAgICBzdGF0aWMgc2V0KGFyciwgaW5kZXgsIHZhbHVlKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIGFycltpbmRleF0gPSB2YWx1ZTtcbiAgICB9XG5cbiAgICBzdGF0aWMgZmlyc3QoYXJyLCBmYWxsYmFjayA9IG51bGwpXG4gICAge1xuICAgICAgICByZXR1cm4gKEFycmF5LmlzQXJyYXkoYXJyKSA/IGFyclswXSA6IFxuICAgICAgICAgICAgYXJyKSB8fCBmYWxsYmFjaztcbiAgICB9XG5cbiAgICBzdGF0aWMgc2Vjb25kKGFyciwgZmFsbGJhY2sgPSBudWxsKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIChBcnJheS5pc0FycmF5KGFycikgPyBhcnJbMV0gfHwgXG4gICAgICAgICAgICBhcnJbMF0gOiBhcnIpIHx8IGZhbGxiYWNrO1xuICAgIH1cblxuICAgIHN0YXRpYyB0aGlyZChhcnIsIGZhbGxiYWNrID0gbnVsbClcbiAgICB7XG4gICAgICAgIHJldHVybiAoQXJyYXkuaXNBcnJheShhcnIpID8gYXJyWzJdIHx8IFxuICAgICAgICAgICAgYXJyWzFdIHx8IGFyclswXSA6IGFycikgfHwgZmFsbGJhY2s7XG4gICAgfVxuXG4gICAgc3RhdGljIGxhc3QoYXJyLCBmYWxsYmFjayA9IG51bGwpXG4gICAge1xuICAgICAgICByZXR1cm4gKEFycmF5LmlzQXJyYXkoYXJyKSA/IGFyclthcnIubGVuZ3RoIC0gMV0gOiBcbiAgICAgICAgICAgIGFycikgfHwgZmFsbGJhY2s7XG4gICAgfVxuXG4gICAgc3RhdGljIHByZXBlbmQoYXJyLCB2YWwpXG4gICAge1xuICAgICAgICBhcnIuc3BsaWNlKDAsIDAsIHZhbCk7XG4gICAgICAgIHJldHVybiBhcnI7XG4gICAgfVxuXG4gICAgc3RhdGljIGFwcGVuZChhcnIsIHZhbClcbiAgICB7XG4gICAgICAgIGFyci5zcGxpY2UoYXJyLmxlbmd0aCwgMCwgdmFsKTtcbiAgICAgICAgcmV0dXJuIGFycjtcbiAgICB9XG5cbiAgICBzdGF0aWMgc29ydChvYmosIGtleSlcbiAgICB7XG4gICAgICAgIGxldCBrZXlzID0gQW55LmtleXMob2JqKTtcblxuICAgICAgICBpZiAoIEFueS5pc0Z1bmN0aW9uKGtleSkgKSB7XG4gICAgICAgICAgICBrZXlzID0ga2V5cy5zb3J0KChhLCBiKSA9PiB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGtleS5jYWxsKHt9LCBvYmpbYV0sIG9ialtiXSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggISBBbnkuaXNGdW5jdGlvbihrZXkpICkge1xuICAgICAgICAgICAga2V5cyA9IGtleXMuc29ydCgoYSwgYikgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBBbnkuaW50ZWdlcihPYmouZ2V0KG9ialthXSwga2V5KSkgLSBBbnkuaW50ZWdlcihPYmouZ2V0KG9ialtiXSwga2V5KSk7XG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHJlc3VsdCA9IFtdO1xuXG4gICAgICAgIEFyci5lYWNoKGtleXMsIChrZXksIGluZGV4KSA9PiB7XG4gICAgICAgICAgICBvYmpba2V5XVsnX2tleSddID0ga2V5O1xuICAgICAgICAgICAgcmVzdWx0W2luZGV4XSA9IG9ialtrZXldO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgIH1cblxuICAgIHN0YXRpYyBzb3J0U3RyaW5nKG9iaiwga2V5KVxuICAgIHtcbiAgICAgICAgbGV0IGtleXMgPSBBbnkua2V5cyhvYmopO1xuXG4gICAgICAgIGlmICggISBBbnkuaXNGdW5jdGlvbihrZXkpICkge1xuICAgICAgICAgICAga2V5cyA9IGtleXMuc29ydCgoYSwgYikgPT4ge1xuXG4gICAgICAgICAgICAgICAgbGV0IHZhID0gQW55LnN0cmluZyhPYmouZ2V0KG9ialthXSwga2V5KSkudG9Mb3dlckNhc2UoKTtcbiAgICAgICAgICAgICAgICBsZXQgdmIgPSBBbnkuc3RyaW5nKE9iai5nZXQob2JqW2JdLCBrZXkpKS50b0xvd2VyQ2FzZSgpO1xuXG4gICAgICAgICAgICAgICAgcmV0dXJuKHZhIDwgdmIpID8gLTEgOiAodmEgPiB2YikgPyAxIDogMDtcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cblxuICAgICAgICBsZXQgcmVzdWx0ID0gW107XG5cbiAgICAgICAgQXJyLmVhY2goa2V5cywgKGtleSwgaW5kZXgpID0+IHtcbiAgICAgICAgICAgIG9ialtrZXldWydfa2V5J10gPSBrZXk7XG4gICAgICAgICAgICByZXN1bHRbaW5kZXhdID0gb2JqW2tleV07XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgfVxuXG5cbiAgICBzdGF0aWMgZmlsdGVyKGFyciwgZmlsdGVyKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIEFyci5lYWNoKEFyci5maWx0ZXJJbmRleChhcnIsIGZpbHRlciksIChrZXkpID0+IHtcbiAgICAgICAgICAgIHJldHVybiBhcnJba2V5XTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgc3RhdGljIGZpbHRlckluZGV4KGFyciwgZmlsdGVyKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIEFueS5rZXlzKGFycikuZmlsdGVyKChrZXkpID0+IHtcblxuICAgICAgICAgICAgaWYgKCBBbnkuaXNGdW5jdGlvbihmaWx0ZXIpICkge1xuICAgICAgICAgICAgICAgIHJldHVybiBmaWx0ZXIuY2FsbCh7fSwgYXJyW2tleV0sIGtleSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmICggQW55LmlzUGxhaW4oZmlsdGVyKSApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gT2JqLmluY2x1ZGVzKGZpbHRlciwgYXJyW2tleV0pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoIEFueS5pc0FycmF5KGZpbHRlcikgKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIEFyci5pbmNsdWRlcyhmaWx0ZXIsIGFycltrZXldKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgcmV0dXJuIGZpbHRlciA9PT0gYXJyW2tleV07XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHN0YXRpYyBmaW5kKGFyciwgdmFsLCBmYWxsYmFjayA9IG51bGwpXG4gICAge1xuICAgICAgICByZXR1cm4gQXJyLmZpcnN0KEFyci5maWx0ZXIoYXJyLCB2YWwpKSB8fCBmYWxsYmFjaztcbiAgICB9XG5cbiAgICBzdGF0aWMgZmluZEluZGV4KGFyciwgdmFsLCBmYWxsYmFjayA9IC0xKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIEFueS5pbnRlZ2VyKEFyci5maXJzdChBcnIuZmlsdGVySW5kZXgoYXJyLCB2YWwpKSB8fCBmYWxsYmFjayk7XG4gICAgfVxuXG4gICAgc3RhdGljIGhhcyhhcnIsIHZhbClcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLmZpbmRJbmRleChhcnIsIHZhbCkgIT09IC0gMTtcbiAgICB9XG5cbiAgICBzdGF0aWMgYWRkKGFyciwgdmFsLCBmaW5kZXIgPSBudWxsKVxuICAgIHtcbiAgICAgICAgbGV0IGluZGV4ID0gdGhpcy5maW5kSW5kZXgoYXJyLCBmaW5kZXIgfHwgdmFsKTtcblxuICAgICAgICBpZiAoIGluZGV4ID09PSAtIDEgKSB7XG4gICAgICAgICAgICBhcnIucHVzaCh2YWwpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGFycjtcbiAgICB9XG5cbiAgICBzdGF0aWMgcmVwbGFjZShhcnIsIHZhbCwgZmluZGVyID0gbnVsbClcbiAgICB7XG4gICAgICAgIGxldCBpbmRleCA9IHRoaXMuZmluZEluZGV4KGFyciwgZmluZGVyIHx8IHZhbCk7XG5cbiAgICAgICAgaWYgKCBpbmRleCAhPT0gLSAxICkge1xuICAgICAgICAgICAgYXJyLnNwbGljZShpbmRleCwgMSk7XG4gICAgICAgIH1cblxuICAgICAgICBhcnIucHVzaCh2YWwpO1xuXG4gICAgICAgIHJldHVybiBhcnI7XG4gICAgfVxuXG4gICAgc3RhdGljIHJlbW92ZShhcnIsIHZhbClcbiAgICB7XG4gICAgICAgIGxldCBpbmRleCA9IHRoaXMuZmluZEluZGV4KGFyciwgdmFsKTtcblxuICAgICAgICBpZiAoIGluZGV4ICE9PSAtIDEgKSB7XG4gICAgICAgICAgICBhcnIuc3BsaWNlKGluZGV4LCAxKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBhcnI7XG4gICAgfVxuXG4gICAgc3RhdGljIHRvZ2dsZShhcnIsIHZhbClcbiAgICB7XG4gICAgICAgIGxldCBpbmRleCA9IHRoaXMuZmluZEluZGV4KGFyciwgdmFsKTtcblxuICAgICAgICBpZiAoIGluZGV4ICE9PSAtIDEgKSB7XG4gICAgICAgICAgICBhcnIuc3BsaWNlKGluZGV4LCAxKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGFyci5wdXNoKHZhbCk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gYXJyO1xuICAgIH1cblxuICAgIHN0YXRpYyByZW1vdmVJbmRleChhcnIsIHZhbClcbiAgICB7XG4gICAgICAgIGlmICggdmFsIDwgYXJyLmxlbmd0aCApIHtcbiAgICAgICAgICAgIGFyci5zcGxpY2UoTnVtLmludCh2YWwpLCAxKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBhcnI7XG4gICAgfVxuXG4gICAgc3RhdGljIGluc2VydChhcnIsIGtleSwgdmFsKVxuICAgIHtcbiAgICAgICAgYXJyLnNwbGljZShOdW0uaW50KGtleSksIDAsIHZhbCk7XG5cbiAgICAgICAgcmV0dXJuIGFycjtcbiAgICB9XG5cbiAgICBzdGF0aWMgc2xpY2UoYXJyLCBrZXksIGNvdW50ID0gMSlcbiAgICB7XG4gICAgICAgIHJldHVybiBhcnIuc2xpY2UoTnVtLmludChrZXkpLCBjb3VudCk7XG4gICAgfVxuXG4gICAgc3RhdGljIHNwbGljZShhcnIsIGtleSwgY291bnQgPSAxKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIGFyci5zcGxpY2UoTnVtLmludChrZXkpLCBjb3VudCk7XG4gICAgfVxuXG4gICAgc3RhdGljIGVxdWFsKGFycjEsIGFycjIpXG4gICAge1xuICAgICAgICBsZXQgY29tcGxldGUgPSB0aGlzLm1lcmdlKFtdLCBhcnIxLCBhcnIyKTtcblxuICAgICAgICBsZXQgcmFpbmJvdyA9IHRoaXMuZWFjaChjb21wbGV0ZSwgKHZhbHVlKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5oYXMoYXJyMSwgdmFsdWUpICYmIHRoaXMuaGFzKGFycjIsIHZhbHVlKTtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgcmV0dXJuICEgdGhpcy5oYXMocmFpbmJvdywgZmFsc2UpO1xuICAgIH1cblxuICAgIHN0YXRpYyBpbmNsdWRlcyhhcnIsIHZhbClcbiAgICB7XG4gICAgICAgIGxldCByZXN1bHQgPSBmYWxzZTtcblxuICAgICAgICBmb3IgKCBsZXQga2V5IG9mIEFueS52YWxzKGFycikgKSB7XG4gICAgICAgICAgICByZXN1bHQgPSB2YWwuaW5kZXhPZihrZXkpICE9PSAtMSB8fCByZXN1bHQ7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgIH1cblxuICAgIHN0YXRpYyBjb250YWlucyhhcnIsIHZhbClcbiAgICB7XG4gICAgICAgIGxldCByZXN1bHQgPSB0cnVlO1xuXG4gICAgICAgIGZvciAoIGxldCBrZXkgb2YgQW55LnZhbHModmFsKSApIHtcbiAgICAgICAgICAgIHJlc3VsdCA9IEFueS52YWxzKGFycikuaW5kZXhPZihrZXkpICE9PSAtMSAmJiByZXN1bHQ7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgIH1cblxuICAgIHN0YXRpYyBjb25jYXQoYXJyLCAuLi5hcmdzKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIGFyci5jb25jYXQoLi4uYXJncyk7XG4gICAgfVxuXG4gICAgc3RhdGljIGNsb25lKGFycilcbiAgICB7XG4gICAgICAgIGxldCBjbG9uZTtcblxuICAgICAgICBpZiAoIEFueS5pc1BsYWluKGFycikgKXtcbiAgICAgICAgICAgIHJldHVybiBPYmouY2xvbmUoYXJyKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggQW55LmlzQXJyYXkoYXJyKSApe1xuXG4gICAgICAgICAgICBjbG9uZSA9IFtdO1xuXG4gICAgICAgICAgICBmb3IgKCBsZXQga2V5IG9mIEFueS5rZXlzKGFycikgKSB7XG4gICAgICAgICAgICAgICAgY2xvbmVba2V5XSA9IE9iai5jbG9uZShhcnJba2V5XSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHJldHVybiBjbG9uZTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBjbG9uZSB8fCBhcnI7XG4gICAgfVxuXG4gICAgc3RhdGljIG1lcmdlKGFyciwgLi4uYXJncylcbiAgICB7XG4gICAgICAgIHJldHVybiBhcnIuY29uY2F0KC4uLmFyZ3MpO1xuICAgIH1cblxuICAgIHN0YXRpYyBwdXNoKGFyciwgLi4uYXJncylcbiAgICB7XG4gICAgICAgIGFyci5wdXNoKC4uLmFyZ3MpO1xuXG4gICAgICAgIHJldHVybiBhcnI7XG4gICAgfVxuXG4gICAgc3RhdGljIGRpZmYoYXJyLCB2YWwpXG4gICAge1xuICAgICAgICByZXR1cm4gYXJyLmZpbHRlcigoZGlmZikgPT4gdmFsLmluZGV4T2YoZGlmZikgPCAwKTtcbiAgICB9XG5cbiAgICBzdGF0aWMgaW50ZXJzZWN0KC4uLmFyZ3MpXG4gICAge1xuICAgICAgICByZXR1cm4gYXJncy5yZWR1Y2UoKGEsIGMpID0+IGEuZmlsdGVyKGkgPT4gYy5pbmNsdWRlcyhpKSkpO1xuICAgIH1cblxuICAgIHN0YXRpYyBjaHVuayhhcnIsIGNodW5rID0gMTApXG4gICAge1xuICAgICAgICBsZXQgcmVzID0gW107XG5cbiAgICAgICAgZm9yICggbGV0IGkgPSAwOyBpIDwgYXJyLmxlbmd0aDsgaSArPSBjaHVuayApIHtcbiAgICAgICAgICAgIHJlcy5wdXNoKGFyci5zbGljZShpLCBpICsgY2h1bmspKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiByZXM7XG4gICAgfVxuXG4gICAgc3RhdGljIHJlZHVjZShhcnIsIGNhbGxiYWNrLCBhY2N1bXVsYXRvcilcbiAgICB7XG4gICAgICAgIHJldHVybiBPYmplY3QudmFsdWVzKGFycikucmVkdWNlKGNhbGxiYWNrLCBhY2N1bXVsYXRvcik7XG4gICAgfVxuXG4gICAgc3RhdGljIGV4dHJhY3QoYXJyLCBwYXRoKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuZWFjaChhcnIsICh2YWwpID0+IE9iai5nZXQodmFsLCBwYXRoLCBudWxsKSk7XG4gICAgfVxuXG4gICAgc3RhdGljIGVhY2goYXJyLCBjYWxsYmFjaylcbiAgICB7XG4gICAgICAgIGxldCByZXN1bHQgPSBBcnIuY2xvbmUoYXJyKTtcblxuICAgICAgICBmb3IgKCBsZXQga2V5IG9mIEFueS5rZXlzKHJlc3VsdCkgKSB7XG4gICAgICAgICAgICByZXN1bHRba2V5XSA9IGNhbGxiYWNrKHJlc3VsdFtrZXldLCBBbnkuaXNOdW1iZXIoa2V5KSA/XG4gICAgICAgICAgICAgICAgQW55LmludGVnZXIoa2V5KSA6IGtleSk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gQW55LnZhbHMocmVzdWx0KTtcbiAgICB9XG5cbiAgICBzdGF0aWMgbWFwKGFyciwgY2FsbGJhY2spXG4gICAge1xuICAgICAgICBsZXQgcmVzdWx0ID0gQXJyLmNsb25lKGFycik7XG5cbiAgICAgICAgZm9yICggbGV0IGtleSBvZiBBbnkua2V5cyhyZXN1bHQpICkge1xuICAgICAgICAgICAgcmVzdWx0W2tleV0gPSBhcnJba2V5XSA9IGNhbGxiYWNrKHJlc3VsdFtrZXldLCBBbnkuaXNOdW1iZXIoa2V5KSA/XG4gICAgICAgICAgICAgICAgQW55LmludGVnZXIoa2V5KSA6IGtleSk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgIH1cblxuICAgIHN0YXRpYyByZWN1cnNpdmUoYXJyLCBrZXksIGNhbGxiYWNrLCBjYXNjYWRlID0gW10pXG4gICAge1xuICAgICAgICBpZiAoIEFueS5pc0FycmF5KGFycikgPT09IHRydWUgKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5tYXAoYXJyLCAodmFsKSA9PiB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMucmVjdXJzaXZlKHZhbCwga2V5LCBjYWxsYmFjaywgY2FzY2FkZSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggQW55LmlzT2JqZWN0KGFycikgPT09IHRydWUgKSB7XG5cbiAgICAgICAgICAgIGxldCByZXMgPSBjYWxsYmFjayhhcnIsIGNhc2NhZGUpO1xuXG4gICAgICAgICAgICBhcnIgPSByZXMgIT09IHVuZGVmaW5lZCA/XG4gICAgICAgICAgICAgICAgcmVzIDogYXJyO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBBbnkuaXNBcnJheShhcnJba2V5XSkgPT09IHRydWUgKSB7XG5cbiAgICAgICAgICAgIGNhc2NhZGUgPSBBcnIuY2xvbmUoY2FzY2FkZSk7XG5cbiAgICAgICAgICAgIEFyci5wdXNoKGNhc2NhZGUsIGFycik7XG5cbiAgICAgICAgICAgIGFycltrZXldID0gdGhpcy5tYXAoYXJyW2tleV0sICh2YWwpID0+IHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5yZWN1cnNpdmUodmFsLCBrZXksIGNhbGxiYWNrLCBjYXNjYWRlKTtcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICByZXR1cm4gYXJyO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBBbnkuaXNFbXB0eShhcnJba2V5XSkgPT09IGZhbHNlICkge1xuXG4gICAgICAgICAgICBjYXNjYWRlID0gQXJyLmNsb25lKGNhc2NhZGUpO1xuXG4gICAgICAgICAgICBBcnIucHVzaChjYXNjYWRlLCBhcnIpO1xuXG4gICAgICAgICAgICBhcnJba2V5XSA9IHRoaXMucmVjdXJzaXZlKGFycltrZXldLCBrZXksIGNhbGxiYWNrLCBjYXNjYWRlKTtcblxuICAgICAgICAgICAgcmV0dXJuIGFycjtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBhcnI7XG4gICAgfVxuXG59XG5cbmV4cG9ydCBkZWZhdWx0IEFycjtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utility/array.js\n");
|
294
|
+
|
295
|
+
/***/ }),
|
296
|
+
|
297
|
+
/***/ "./src/utility/dom.js":
|
298
|
+
/*!****************************!*\
|
299
|
+
!*** ./src/utility/dom.js ***!
|
300
|
+
\****************************/
|
301
|
+
/*! exports provided: Dom, default */
|
302
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
303
|
+
|
304
|
+
"use strict";
|
305
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Dom\", function() { return Dom; });\n/* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array.js */ \"./src/utility/array.js\");\n/* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./object.js */ \"./src/utility/object.js\");\n/* harmony import */ var _string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./string.js */ \"./src/utility/string.js\");\n/* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./number.js */ \"./src/utility/number.js\");\n/* harmony import */ var _any_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./any.js */ \"./src/utility/any.js\");\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\nvar Dom = /*#__PURE__*/function () {\n function Dom(el) {\n _classCallCheck(this, Dom);\n\n _defineProperty(this, \"el\", null);\n\n if (el instanceof NodeList) {\n el = Array.prototype.slice.call(el);\n }\n\n this.el = el;\n }\n\n _createClass(Dom, [{\n key: \"length\",\n value: function length() {\n return _any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(this.el) ? this.el.length : _any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(this.el) ? 0 : 1;\n }\n }, {\n key: \"empty\",\n value: function empty() {\n return this.length() === 0 || this.el === null;\n }\n }, {\n key: \"visible\",\n value: function visible() {\n return this.get(0) && this.get(0).is(':visible');\n }\n }, {\n key: \"inviewX\",\n value: function inviewX() {\n var ratio = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height()\n };\n var element = {\n width: this.width(),\n height: this.height()\n };\n var scroll = this.scroll(),\n offset = this.offset();\n var left = offset.left + ratio * element.width - viewport.width;\n var right = offset.left + element.width - ratio * element.width;\n return left <= scroll.left && scroll.left <= right;\n }\n }, {\n key: \"inviewY\",\n value: function inviewY() {\n var ratio = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height()\n };\n var element = {\n width: this.width(),\n height: this.height()\n };\n var scroll = this.scroll(),\n offset = this.offset();\n var top = offset.top + ratio * element.height - viewport.height;\n var bottom = offset.top + element.height - ratio * element.height;\n return top <= scroll.top && scroll.top <= bottom;\n }\n }, {\n key: \"is\",\n value: function is(selector) {\n return this.matches(selector);\n }\n }, {\n key: \"isParent\",\n value: function isParent(selector) {\n var el = this.parent();\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(el) === true) {\n return false;\n }\n\n return _any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isString(selector) ? Dom.find(el).matches(selector) : this.get(0) === selector;\n }\n }, {\n key: \"first\",\n value: function first() {\n var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var els = _any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(this.el) ? this.el : [this.el];\n return els[offset];\n }\n }, {\n key: \"last\",\n value: function last() {\n var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n var els = _any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(this.el) ? this.el : [this.el];\n return els[els.length - offset];\n }\n }, {\n key: \"get\",\n value: function get() {\n var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;\n var els = _any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(this.el) ? this.el : [this.el];\n return index !== -1 ? els[index] || null : els;\n }\n }, {\n key: \"getNot\",\n value: function getNot(el) {\n var _iterator = _createForOfIteratorHelper(this.el),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var node = _step.value;\n\n if (node !== el) {\n return Dom.find(node);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return null;\n }\n }, {\n key: \"each\",\n value: function each(callback) {\n return _any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(this.el) ? _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(this.el, callback) : callback(this.el, 0);\n }\n }, {\n key: \"matches\",\n value: function matches(selector) {\n var source = this.get(0),\n target = null;\n Dom.find(selector).each(function (el) {\n if (el === source) target = el;\n });\n return target !== null;\n }\n }, {\n key: \"closest\",\n value: function closest(selector) {\n if (this.get(0) === selector) {\n return selector;\n }\n\n for (var el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n if (Dom.find(el).is(selector)) {\n return el;\n }\n }\n\n return null;\n }\n }, {\n key: \"closestScrollable\",\n value: function closestScrollable() {\n var fallback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;\n\n for (var el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n if (el.scrollHeight > el.clientHeight + 1) {\n return el;\n }\n }\n\n return fallback;\n }\n }, {\n key: \"contains\",\n value: function contains(selector) {\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isString(selector) === true) {\n return this.find(selector).get(0) !== null;\n }\n\n if (selector instanceof Element === false) {\n return false;\n }\n\n return this.get(0).contains(selector);\n }\n }, {\n key: \"inside\",\n value: function inside(selector) {\n return this.closest(selector) !== null;\n }\n }, {\n key: \"parent\",\n value: function parent() {\n var el = this.get(0);\n\n if (el === null || el.parentNode === undefined) {\n return Dom.find(null);\n }\n\n return Dom.find(el.parentNode);\n }\n }, {\n key: \"child\",\n value: function child(selector) {\n var nodes = this.get(0).childNodes;\n nodes = Array.prototype.slice.call(nodes);\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(nodes, function (node, index) {\n if (node.nodeType === 3) {\n nodes = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].splice(nodes, index);\n }\n });\n\n if (selector === null) {\n return Dom.find(nodes[0] || null);\n }\n\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(nodes, function (node, index) {\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(node) || Dom.find(node).is(selector) === false) {\n nodes = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].splice(nodes, index);\n }\n });\n return Dom.find(nodes[0] || null);\n }\n }, {\n key: \"childs\",\n value: function childs() {\n var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var filter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var nodes = this.get(0).childNodes;\n nodes = Array.prototype.slice.call(nodes);\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(nodes, function (node, index) {\n if (node.nodeType === 3 && filter === true) {\n nodes = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].splice(nodes, index);\n }\n });\n\n if (selector === null) {\n return Dom.find(nodes);\n }\n\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(nodes, function (node, index) {\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(node) || Dom.find(node).is(selector) === false) {\n nodes = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].splice(nodes, index);\n }\n });\n return Dom.find(nodes);\n }\n }, {\n key: \"find\",\n value: function find(selector) {\n var el = this.get(0);\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(el) === true) {\n return Dom.find(null);\n }\n\n var nodes = el.querySelectorAll(selector);\n nodes = Array.prototype.slice.call(nodes);\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(nodes, function (node, index) {\n if (node.nodeType === 3) {\n nodes = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].splice(nodes, index);\n }\n });\n return Dom.find(nodes);\n }\n }, {\n key: \"where\",\n value: function where(selector) {\n var nodes = this.get();\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(nodes, function (el, index) {\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(el) || Dom.find(el).is(selector) === false) {\n nodes = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].splice(nodes, index);\n }\n });\n return Dom.find(nodes);\n }\n }, {\n key: \"not\",\n value: function not(selector) {\n var nodes = this.get();\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(nodes, function (el, index) {\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(el) || Dom.find(el).is(selector) === true) {\n nodes = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].splice(nodes, index);\n }\n });\n return Dom.find(nodes);\n }\n }, {\n key: \"prepend\",\n value: function prepend(val) {\n this.each(function (el) {\n return el.prepend(val);\n });\n return this;\n }\n }, {\n key: \"prependTo\",\n value: function prependTo(el) {\n var _this = this;\n\n Dom.find(el).each(function (val) {\n return val.prepend(_this.el);\n });\n return this;\n }\n }, {\n key: \"append\",\n value: function append(val) {\n this.each(function (el) {\n if (el.append !== undefined) {\n el.append(val);\n }\n });\n return this;\n }\n }, {\n key: \"appendTo\",\n value: function appendTo(el) {\n var _this2 = this;\n\n Dom.find(el).each(function (val) {\n if (val.append !== undefined) {\n val.append(_this2.el);\n }\n });\n return this;\n }\n }, {\n key: \"replace\",\n value: function replace(el) {\n // Append node to element\n this.parent().get(0).insertBefore(el, this.get(0)); // Remove existing element\n\n this.parent().get(0).removeChild(this.get(0));\n return this;\n }\n }, {\n key: \"previous\",\n value: function previous() {\n if (this.empty() === true) {\n return Dom.find(null);\n }\n\n for (var el = this.get(0).previousSibling; el !== null; el = el.previousSibling) {\n if (el.nodeType === 1) {\n return Dom.find(el);\n }\n }\n\n return Dom.find(null);\n }\n }, {\n key: \"next\",\n value: function next() {\n if (this.empty() === true) {\n return Dom.find(null);\n }\n\n for (var el = this.get(0).nextSibling; el !== null; el = el.nextSibling) {\n if (el.nodeType === 1) {\n return Dom.find(el);\n }\n }\n\n return Dom.find(null);\n }\n }, {\n key: \"loaded\",\n value: function loaded(callback) {\n var el = this.get(0),\n timeout = null;\n\n if (!el) {\n return this;\n }\n\n timeout = setInterval(function () {\n if (!el.complete || el.naturalWidth === 0) {\n return;\n }\n\n callback(el);\n clearInterval(timeout);\n }, 100);\n return this;\n }\n }, {\n key: \"bind\",\n value: function bind(event, callback) {\n this.each(function (el) {\n return el[event] = function (e) {\n return callback.call(el, e);\n };\n });\n return this;\n }\n }, {\n key: \"unbind\",\n value: function unbind(event) {\n this.each(function (el) {\n return delete el[event];\n });\n }\n }, {\n key: \"on\",\n value: function on(event, callback) {\n var _this3 = this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var paused = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(event) === true) {\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(event, function (e) {\n _this3.on(e, callback, options);\n });\n return this;\n }\n\n var func = function func(e) {\n callback.call(e.target, e, e.target);\n };\n\n var selector = null;\n this.each(function (el) {\n Dom.events = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].push(Dom.events, {\n el: el,\n event: event,\n options: options,\n selector: selector,\n paused: paused,\n func: func\n });\n el.addEventListener(event, func, options);\n });\n return this;\n }\n }, {\n key: \"live\",\n value: function live(event, selector, callback) {\n var _this4 = this;\n\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var paused = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(event) === true) {\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(event, function (e) {\n _this4.live(e, selector, callback, options);\n });\n return this;\n }\n\n var func = function func(e) {\n var target = e.srcElement || e.target;\n\n if (event.match(/^(drag[a-z]*|drop$)/)) {\n target = Dom.location(e.clientX, e.clientY).get(0);\n }\n\n if (!Dom.find(target).inside(selector)) {\n return;\n }\n\n callback.call(target, e, Dom.find(target).closest(selector));\n };\n\n this.each(function (el) {\n Dom.events = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].push(Dom.events, {\n el: el,\n event: event,\n options: options,\n selector: selector,\n paused: paused,\n func: func\n });\n el.addEventListener(event, func, options);\n });\n return this;\n }\n }, {\n key: \"one\",\n value: function one(event, callback) {\n var _this5 = this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n this.on(event, function (e) {\n callback(e);\n\n _this5.off(event);\n }, options);\n return this;\n }\n }, {\n key: \"fire\",\n value: function fire(event) {\n var callback = new Event(event);\n this.each(function (el) {\n el.dispatchEvent(callback);\n });\n return this;\n }\n }, {\n key: \"delayed\",\n value: function delayed(event, callback) {\n var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n this.on(event, _any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].debounce(callback, delay), options);\n return this;\n }\n }, {\n key: \"off\",\n value: function off(event) {\n var _this6 = this;\n\n var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(event) === true) {\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(event, function (e) {\n _this6.off(e, selector);\n });\n return this;\n }\n\n this.each(function (el) {\n var indexes = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].filterIndex(Dom.events, {\n el: el,\n event: event,\n selector: selector,\n options: options\n });\n\n if (indexes.length === 0) {\n return;\n }\n\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(indexes.reverse(), function (index) {\n el.removeEventListener(event, Dom.events[index].func, Dom.events[index].options);\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].removeIndex(Dom.events, index);\n });\n });\n return this;\n }\n }, {\n key: \"unpause\",\n value: function unpause(event) {\n var _this7 = this;\n\n var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(event) === true) {\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(event, function (e) {\n _this7.unpause(e, selector, options);\n });\n return this;\n }\n\n this.each(function (el) {\n var val = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].find(Dom.events, {\n el: el,\n event: event,\n selector: selector,\n options: options\n });\n\n if (val === null) {\n return;\n }\n\n val.paused = true;\n el.addEventListener(event, val.func, val.options);\n });\n return this;\n }\n }, {\n key: \"pause\",\n value: function pause(event) {\n var _this8 = this;\n\n var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(event) === true) {\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(event, function (e) {\n _this8.pause(e, selector, options);\n });\n return this;\n }\n\n this.each(function (el) {\n var val = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].find(Dom.events, {\n el: el,\n event: event,\n selector: selector,\n options: options\n });\n\n if (val === null) {\n return;\n }\n\n val.paused = true;\n el.removeEventListener(event, val.func, val.options);\n });\n return this;\n }\n }, {\n key: \"observer\",\n value: function observer(callback) {\n var _this9 = this;\n\n var initial = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (initial === true) {\n this.each(function (el) {\n return callback(el, {});\n });\n }\n\n var observer = new MutationObserver(function (mutation) {\n _this9.each(function (el) {\n return callback(el, mutation);\n });\n });\n return function (el, options) {\n observer.observe(Dom.find(el).get(0), options);\n };\n }\n }, {\n key: \"observerResize\",\n value: function observerResize(callback) {\n var _this10 = this;\n\n var initial = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (initial === true) {\n this.each(function (el) {\n return callback(el);\n });\n }\n\n var observer = new ResizeObserver(function () {\n _this10.each(function (el) {\n return callback(el);\n });\n });\n return function (el) {\n observer.observe(Dom.find(el).get(0));\n };\n }\n }, {\n key: \"data\",\n value: function data() {\n var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;\n var val = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var match = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].find(Dom.datas, {\n el: this.get(0)\n }, {\n el: this.get(0)\n });\n\n if (key === undefined) {\n return match;\n }\n\n if (val === undefined) {\n return _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(match, key, fallback);\n }\n\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].replace(Dom.datas, _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].set(match, key, val), {\n el: this.get(0)\n });\n return this;\n }\n }, {\n key: \"value\",\n value: function value() {\n var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;\n\n if (val === undefined) {\n return this.get(0).value;\n }\n\n this.each(function (el) {\n return el.value = val;\n });\n return this;\n }\n }, {\n key: \"html\",\n value: function html(_html) {\n this.each(function (el) {\n return el.innerHTML = _html;\n });\n return this;\n }\n }, {\n key: \"computed\",\n value: function computed() {\n var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var el = this.get(0);\n\n if (el === null || el === window || el === document) {\n return key !== null ? fallback : {};\n }\n\n var computed = getComputedStyle(el);\n return key !== null ? _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(computed, key, fallback) : computed;\n }\n }, {\n key: \"css\",\n value: function css() {\n var vals = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;\n\n if (vals === null) {\n return this.attr('style', null);\n }\n\n var styles = _string_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].objectify(this.attr('style') || '');\n\n if (vals === undefined) {\n return styles;\n }\n\n this.attr('style', _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].assign({}, styles, _string_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].objectify(vals)));\n }\n }, {\n key: \"class\",\n value: function _class(vals) {\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isString(vals)) {\n vals = vals.split(' ');\n }\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(vals)) {\n vals = [vals];\n }\n\n this.attr('class', vals.join(' '));\n }\n }, {\n key: \"hasClass\",\n value: function hasClass(vals) {\n var cls = this.attr('class') || [];\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isString(vals)) {\n vals = vals.split(' ');\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isString(cls)) {\n cls = cls.split(' ');\n }\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(vals)) {\n vals = [vals];\n }\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(cls)) {\n cls = [cls];\n }\n\n return _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].intersect(vals, cls).length !== 0;\n }\n }, {\n key: \"addClass\",\n value: function addClass(vals) {\n if (this.length() > 1) {\n return this.each(function (el) {\n return Dom.find(el).addClass(vals);\n });\n }\n\n var cls = this.attr('class') || [];\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isString(vals)) {\n vals = vals.split(' ');\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isString(cls)) {\n cls = cls.split(' ');\n }\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(vals)) {\n vals = [vals];\n }\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(cls)) {\n cls = [cls];\n }\n\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(vals, function (val) {\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].add(cls, val);\n });\n this.attr('class', cls.join(' '));\n }\n }, {\n key: \"removeClass\",\n value: function removeClass(vals) {\n if (this.length() > 1) {\n return this.each(function (el) {\n return Dom.find(el).removeClass(vals);\n });\n }\n\n var cls = this.attr('class') || [];\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isString(vals)) {\n vals = vals.split(' ');\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isString(cls)) {\n cls = cls.split(' ');\n }\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(vals)) {\n vals = [vals];\n }\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isArray(cls)) {\n cls = [cls];\n }\n\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(vals, function (val) {\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].remove(cls, val);\n });\n this.attr('class', cls.join(' '));\n }\n }, {\n key: \"toggleClass\",\n value: function toggleClass(vals) {\n if (this.length() > 1) {\n return this.each(function (el) {\n return Dom.find(el).toggleClass(vals);\n });\n }\n\n this.hasClass(vals) ? this.removeClass(vals) : this.addClass(vals);\n return this;\n }\n }, {\n key: \"attr\",\n value: function attr(_attr) {\n var _this11 = this;\n\n var val = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n if (this.empty()) {\n return null;\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isPlain(_attr)) {\n return _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].each(_attr, function (value, key) {\n return _this11.attr(key, value);\n });\n }\n\n var res = this.get(0).getAttribute(_attr);\n\n if (val === undefined) {\n return res;\n }\n\n if (val === null) {\n this.get(0).removeAttribute(_attr);\n return res;\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isPlain(val)) {\n val = _string_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].options(val);\n }\n\n this.get(0).setAttribute(_attr, val);\n return res;\n }\n }, {\n key: \"actual\",\n value: function actual(callback) {\n var val = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var style = this.attr('style');\n this.attr('style', val);\n var result = callback.call(this.get(0), this.get(0));\n this.attr('style', style);\n return result;\n }\n }, {\n key: \"loopParent\",\n value: function loopParent(callback) {\n var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n for (var el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n if (Dom.find(el).computed('position') === 'fixed') {\n return true;\n }\n\n if (Dom.find(el).is(target) === true) {\n return true;\n }\n\n callback.call({}, el);\n }\n\n return false;\n }\n }, {\n key: \"loopOffsetParent\",\n value: function loopOffsetParent(callback) {\n var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document.body;\n\n for (var el = this.get(0); el !== null && el.offsetParent !== undefined; el = el.offsetParent) {\n if (Dom.find(el).is(target) === true) {\n return true;\n }\n\n callback.call({}, el);\n }\n\n return false;\n }\n }, {\n key: \"offset\",\n value: function offset() {\n var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var boundry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var source = {\n top: 0,\n left: 0,\n bottom: 0,\n right: 0\n };\n this.loopOffsetParent(function (el) {\n if (el.offsetTop) {\n source.top += _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](el.offsetTop);\n }\n\n if (el.offsetLeft) {\n source.left += _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](el.offsetLeft);\n }\n });\n source.bottom = Dom.find(document.body).scrollHeight() - source.top - this.height();\n source.right = Dom.find(document.body).scrollWidth() - source.left - this.width();\n var target = {\n top: 0,\n left: 0,\n bottom: 0,\n right: 0\n };\n Dom.find(boundry).loopOffsetParent(function (el) {\n if (el.offsetTop) {\n target.top += _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](el.offsetTop);\n }\n\n if (el.offsetLeft) {\n target.left += _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](el.offsetLeft);\n }\n });\n target.bottom = Dom.find(document.body).scrollHeight() - target.top - Dom.find(boundry || document.body).scrollHeight();\n target.right = Dom.find(document.body).scrollWidth() - target.left - Dom.find(boundry || document.body).scrollWidth();\n var offset = {\n top: source.top - target.top,\n bottom: source.bottom - target.bottom,\n left: source.left - target.left,\n right: source.right - target.right\n };\n return key !== null ? _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(offset, key, 0) : offset;\n }\n }, {\n key: \"offsetTop\",\n value: function offsetTop() {\n var boundry = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return this.offset('top', boundry);\n }\n }, {\n key: \"offsetBottom\",\n value: function offsetBottom() {\n var boundry = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return this.offset('bottom', boundry);\n }\n }, {\n key: \"offsetLeft\",\n value: function offsetLeft() {\n var boundry = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return this.offset('left', boundry);\n }\n }, {\n key: \"offsetRight\",\n value: function offsetRight() {\n var boundry = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return this.offset('right', boundry);\n }\n }, {\n key: \"scroll\",\n value: function scroll() {\n var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var boundry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var source = {\n top: 0,\n left: 0\n };\n this.loopParent(function (el) {\n if (el.scrollTop !== undefined) {\n source.top += _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](el.scrollTop);\n }\n\n if (el.scrollTop === undefined && el.pageYOffset !== undefined) {\n source.top += _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](el.pageYOffset);\n }\n\n if (el.scrollTop !== undefined) {\n source.left += _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](el.scrollLeft);\n }\n\n if (el.scrollTop === undefined && el.pageXOffset !== undefined) {\n source.left += _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](el.pageXOffset);\n }\n });\n var target = {\n top: 0,\n left: 0\n };\n Dom.find(boundry).loopParent(function (el) {\n if (el.scrollTop !== undefined) {\n target.top += _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](el.scrollTop);\n }\n\n if (el.scrollTop === undefined && el.pageYOffset !== undefined) {\n target.top += _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](el.pageYOffset);\n }\n\n if (el.scrollTop !== undefined) {\n target.left += _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](el.scrollLeft);\n }\n\n if (el.scrollTop === undefined && el.pageXOffset !== undefined) {\n target.left += _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](el.pageXOffset);\n }\n });\n var scroll = {\n top: source.top - target.top,\n left: source.left - target.left\n };\n return key !== null ? _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(scroll, key, 0) : scroll;\n }\n }, {\n key: \"scrollTop\",\n value: function scrollTop() {\n var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var boundry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (val === null) {\n return this.scroll('top', boundry);\n }\n\n this.each(function (el) {\n return el.scrollTop = val;\n });\n return this;\n }\n }, {\n key: \"scrollTopGlobal\",\n value: function scrollTopGlobal() {\n return this.scroll('top', document.body);\n }\n }, {\n key: \"scrollLeft\",\n value: function scrollLeft() {\n var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var boundry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (val === null) {\n return this.scroll('left', boundry);\n }\n\n this.each(function (el) {\n return el.scrollLeft = val;\n });\n return this;\n }\n }, {\n key: \"scrollLeftGlobal\",\n value: function scrollLeftGlobal() {\n return this.scroll('left', document.body);\n }\n }, {\n key: \"margin\",\n value: function margin() {\n var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var computedStyle = this.computed();\n var margin = {\n top: _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](computedStyle.marginTop),\n left: _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](computedStyle.marginLeft),\n bottom: _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](computedStyle.marginBottom),\n right: _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](computedStyle.marginRight)\n };\n return key !== null ? _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(margin, key, 0) : margin;\n }\n }, {\n key: \"padding\",\n value: function padding() {\n var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var computedStyle = this.computed();\n var padding = {\n top: _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](computedStyle.paddingTop),\n left: _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](computedStyle.paddingLeft),\n bottom: _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](computedStyle.paddingBottom),\n right: _number_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"][\"float\"](computedStyle.paddingRight)\n };\n return key !== null ? _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(padding, key, 0) : padding;\n }\n }, {\n key: \"height\",\n value: function height() {\n var el = this.get(0);\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(el)) {\n return 0;\n }\n\n if (el === window) {\n return el.innerHeight;\n }\n\n return el.offsetHeight;\n }\n }, {\n key: \"clientHeight\",\n value: function clientHeight() {\n return _any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].integer(this.computed('height', '0px').replace(\"px\", \"\"));\n }\n }, {\n key: \"scrollHeight\",\n value: function scrollHeight() {\n var el = this.get(0);\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(el)) {\n return 0;\n }\n\n return el.scrollHeight;\n }\n }, {\n key: \"innerHeight\",\n value: function innerHeight() {\n var el = this.get(0);\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(el)) {\n return 0;\n }\n\n return this.height() - this.padding('top') - this.padding('bottom');\n }\n }, {\n key: \"realHeight\",\n value: function realHeight() {\n var _this12 = this;\n\n var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var height = 'auto';\n this.actual(function () {\n return height = _this12.height();\n }, styles);\n return height;\n }\n }, {\n key: \"evaluateHeight\",\n value: function evaluateHeight() {\n var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var auto = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isString(target)) {\n target = Dom.find(target);\n }\n\n if (target === null) {\n target = this.parent();\n }\n\n var height = 'auto';\n this.actual(function () {\n height = target.innerHeight();\n }, {\n display: 'none'\n });\n\n if (auto === true) {\n this.css({\n height: height + 'px'\n });\n }\n\n return height;\n }\n }, {\n key: \"width\",\n value: function width() {\n var el = this.get(0);\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(el)) {\n return 0;\n }\n\n if (el === window) {\n return el.innerWidth;\n }\n\n return el.offsetWidth;\n }\n }, {\n key: \"clientWidth\",\n value: function clientWidth() {\n var el = this.get(0);\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(el)) {\n return 0;\n }\n\n return _any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].integer(this.computed('width', '0px').replace(\"px\", \"\"));\n }\n }, {\n key: \"scrollWidth\",\n value: function scrollWidth() {\n var el = this.get(0);\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(el)) {\n return 0;\n }\n\n return el.scrollWidth;\n }\n }, {\n key: \"innerWidth\",\n value: function innerWidth() {\n var el = this.get(0);\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isEmpty(el)) {\n return 0;\n }\n\n return this.width() - this.padding('left') - this.padding('right');\n }\n }, {\n key: \"realWidth\",\n value: function realWidth() {\n var _this13 = this;\n\n var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var width = 0;\n this.actual(function () {\n return width = _this13.width();\n }, styles);\n return width;\n }\n }, {\n key: \"evaluateWidth\",\n value: function evaluateWidth() {\n var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var auto = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (target === null) {\n target = this.parent();\n }\n\n var width = 'auto';\n this.actual(function () {\n width = target.innerWidth();\n }, {\n display: 'none'\n });\n\n if (auto === true) {\n this.css({\n width: width + 'px'\n });\n }\n\n return width;\n }\n }], [{\n key: \"ready\",\n value: function ready(callback) {\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var count = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var ready = document.readyState !== 'loading';\n\n if (delay === 0 && ready === false && count >= delay) {\n Dom.find(document).on('DOMContentLoaded', callback);\n return this;\n }\n\n if (delay !== 0 && (ready === false || count <= delay)) {\n setTimeout(function () {\n return Dom.ready(callback, delay, count + 50);\n }, 50);\n return this;\n }\n\n callback();\n return this;\n }\n }, {\n key: \"complete\",\n value: function complete(callback) {\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var count = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var ready = document.readyState === 'complete' || document.readyState === 'interactive';\n\n if (delay === 0 && (ready === false || count < delay)) {\n Dom.find(document).on('load', callback);\n return this;\n }\n\n if (delay !== 0 && (ready === false || count < delay)) {\n setTimeout(function () {\n return Dom.ready(callback, delay, count + 50);\n }, 50);\n return this;\n }\n\n callback();\n return this;\n }\n }, {\n key: \"required\",\n value: function required(callback) {\n var globals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var timer = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 100;\n var matches = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(globals, function (key) {\n return _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].has(window, key);\n });\n\n if (_array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].has(matches, false)) {\n setTimeout(function () {\n return Dom.required(callback, globals, timer);\n }, timer);\n return this;\n }\n\n callback();\n return this;\n }\n }, {\n key: \"find\",\n value: function find(element) {\n var el = typeof element !== 'string' ? element : document.querySelectorAll(element);\n return new Dom(el);\n }\n }, {\n key: \"make\",\n value: function make(element) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var el = typeof element !== 'string' ? element : document.createElement(element);\n _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].assign(el, options);\n return new Dom(el);\n }\n }, {\n key: \"location\",\n value: function location(posx, posy) {\n var el = null;\n\n if (document.elementsFromPoint !== undefined) {\n el = document.elementsFromPoint(posx, posy);\n }\n\n if (document.msElementsFromPoint !== undefined) {\n el = document.msElementsFromPoint(posx, posy);\n }\n\n return new Dom(el);\n }\n }, {\n key: \"title\",\n value: function title() {\n var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var glue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' - ';\n document.title = global.baseTitle !== undefined ? text + glue + global.baseTitle : text;\n return this;\n }\n }]);\n\n return Dom;\n}();\n\n_defineProperty(Dom, \"events\", []);\n\n_defineProperty(Dom, \"datas\", []);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Dom);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vc3JjL3V0aWxpdHkvZG9tLmpzP2Y3ZmIiXSwibmFtZXMiOlsiRG9tIiwiZWwiLCJOb2RlTGlzdCIsIkFycmF5IiwicHJvdG90eXBlIiwic2xpY2UiLCJjYWxsIiwiQW55IiwiaXNBcnJheSIsImxlbmd0aCIsImlzRW1wdHkiLCJnZXQiLCJpcyIsInJhdGlvIiwidmlld3BvcnQiLCJ3aWR0aCIsImZpbmQiLCJ3aW5kb3ciLCJoZWlnaHQiLCJlbGVtZW50Iiwic2Nyb2xsIiwib2Zmc2V0IiwibGVmdCIsInJpZ2h0IiwidG9wIiwiYm90dG9tIiwic2VsZWN0b3IiLCJtYXRjaGVzIiwicGFyZW50IiwiaXNTdHJpbmciLCJlbHMiLCJpbmRleCIsIm5vZGUiLCJjYWxsYmFjayIsIkFyciIsImVhY2giLCJzb3VyY2UiLCJ0YXJnZXQiLCJwYXJlbnROb2RlIiwidW5kZWZpbmVkIiwiZmFsbGJhY2siLCJkb2N1bWVudCIsImJvZHkiLCJzY3JvbGxIZWlnaHQiLCJjbGllbnRIZWlnaHQiLCJFbGVtZW50IiwiY29udGFpbnMiLCJjbG9zZXN0Iiwibm9kZXMiLCJjaGlsZE5vZGVzIiwibm9kZVR5cGUiLCJzcGxpY2UiLCJmaWx0ZXIiLCJxdWVyeVNlbGVj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FkZWQnLCBjYWxsYmFjayk7XG4gICAgICAgICAgICByZXR1cm4gdGhpcztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggZGVsYXkgIT09IDAgJiYgKHJlYWR5ID09PSBmYWxzZSB8fCBjb3VudCA8PSBkZWxheSkgKSB7XG4gICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IERvbS5yZWFkeShjYWxsYmFjaywgZGVsYXksIGNvdW50ICsgNTApLCA1MCk7XG4gICAgICAgICAgICByZXR1cm4gdGhpcztcbiAgICAgICAgfVxuXG4gICAgICAgIGNhbGxiYWNrKCk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgc3RhdGljIGNvbXBsZXRlKGNhbGxiYWNrLCBkZWxheSA9IDAsIGNvdW50ID0gMClcbiAgICB7XG4gICAgICAgIGxldCByZWFkeSA9IGRvY3VtZW50LnJlYWR5U3RhdGUgPT09ICdjb21wbGV0ZScgfHxcbiAgICAgICAgICAgIGRvY3VtZW50LnJlYWR5U3RhdGUgPT09ICdpbnRlcmFjdGl2ZSc7XG5cbiAgICAgICAgaWYgKCBkZWxheSA9PT0gMCAmJiAocmVhZHkgPT09IGZhbHNlIHx8IGNvdW50IDwgZGVsYXkpICkge1xuICAgICAgICAgICAgRG9tLmZpbmQoZG9jdW1lbnQpLm9uKCdsb2FkJywgY2FsbGJhY2spO1xuICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIGRlbGF5ICE9PSAwICYmIChyZWFkeSA9PT0gZmFsc2UgfHwgY291bnQgPCBkZWxheSkgKSB7XG4gICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IERvbS5yZWFkeShjYWxsYmFjaywgZGVsYXksIGNvdW50ICsgNTApLCA1MCk7XG4gICAgICAgICAgICByZXR1cm4gdGhpcztcbiAgICAgICAgfVxuXG4gICAgICAgIGNhbGxiYWNrKCk7XG5cbiAgICAgICAgcmV0dXJuIHRo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aW52aWV3WChyYXRpbyA9IDApXG4gICAge1xuICAgICAgICBsZXQgdmlld3BvcnQgPSB7XG4gICAgICAgICAgICB3aWR0aDogRG9tLmZpbmQod2luZG93KS53aWR0aCgpLFxuICAgICAgICAgICAgaGVpZ2h0OiBEb20uZmluZCh3aW5kb3cpLmhlaWdodCgpLFxuICAgICAgICB9O1xuXG4gICAgICAgIGxldCBlbGVtZW50ID0ge1xuICAgICAgICAgICAgd2lkdGg6IHRoaXMud2lkdGgoKSxcbiAgICAgICAgICAgIGhlaWdodDogdGhpcy5oZWlnaHQoKSxcbiAgICAgICAgfTtcblxuICAgICAgICBsZXQgc2Nyb2xsID0gdGhpcy5zY3JvbGwoKSxcbiAgICAgICAgICAgIG9mZnNldCA9IHRoaXMub2Zmc2V0KCk7XG5cbiAgICAgICAgbGV0IGxlZnQgPSBvZmZzZXQubGVmdCArIChyYXRpbyAqIGVsZW1lbnQud2lkdGgpIC1cbiAgICAgICAgICAgIHZpZXdwb3J0LndpZHRoO1xuXG4gICAgICAgIGxldCByaWdodCA9IG9mZnNldC5sZWZ0ICsgZWxlbWVudC53aWR0aCAtXG4gICAgICAgICAgICAocmF0aW8gKiBlbGVtZW50LndpZHRoKTtcblxuICAgICAgICByZXR1cm4gbGVmdCA8PSBzY3JvbGwubGVmdCAmJiBzY3JvbGwubGVmdCA8PSByaWdodDtcbiAgICB9XG5cbiAgICBpbnZpZXdZKHJhdGlvID0gMClcbiAgICB7XG4gICAgICAgIGxldCB2aWV3cG9ydCA9IHtcbiAgICAgICAgICAgIHdpZHRoOiBEb20uZmluZCh3aW5kb3cpLndpZHRoKCksXG4gICAgICAgICAgICBoZWlnaHQ6IERvbS5maW5kKHdpbmRvdykuaGVpZ2h0KCksXG4gICAgICAgIH07XG5cbiAgICAgICAgbGV0IGVsZW1lbnQgPSB7XG4gICAgICAgICAgICB3aWR0aDogdGhpcy53aWR0aCgpLFxuICAgICAgICAgICAgaGVpZ2h0OiB0aGlzLmhlaWdodCgpLFxuICAgICAgICB9O1xuXG4gICAgICAgIGxldCBzY3JvbGwgPSB0aGlzLnNjcm9sbCgpLFxuICAgICAgICAgICAgb2Zmc2V0ID0gdGhpcy5vZmZzZXQoKTtcblxuICAgICAgICBsZXQgdG9wID0gb2Zmc2V0LnRvcCArIChyYXRpbyAqIGVsZW1lbnQuaGVpZ2h0KSAtXG4gICAgICAgICAgICB2aWV3cG9ydC5oZWlnaHQ7XG5cbiAgICAgICAgbGV0IGJvdHRvbSA9IG9mZnNldC50b3AgKyBlbGVtZW50LmhlaWdodCAtXG4gICAgICAgICAgICAocmF0aW8gKiBlbGVtZW50LmhlaWdodCk7XG5cbiAgICAgICAgcmV0dXJuIHRvcCA8PSBzY3JvbGwudG9wICYmIHNjcm9sbC50b3AgPD0gYm90dG9tO1xuICAgIH1cblxuICAgIGlzKHNlbGVjdG9yKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIHRoaXMubWF0Y2hlcyhzZWxlY3Rvcik7XG4gICAgfVxuXG4gICAgaXNQYXJlbnQoc2VsZWN0b3IpXG4gICAge1xuICAgICAgICBsZXQgZWwgPSB0aGlzLnBhcmVudCgpO1xuXG4gICAgICAgIGlmICggQW55LmlzRW1wdHkoZWwpID09PSB0cnVlICkge1xuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIEFueS5pc1N0cmluZyhzZWxlY3RvcikgP1xuICAgICAgICAgICAgRG9tLmZpbmQoZWwpLm1hdGNoZXMoc2VsZWN0b3IpIDogdGhpcy5nZXQoMCkgPT09IHNlbGVjdG9yO1xuICAgIH1cblxuICAgIGZpcnN0KG9mZnNldCA9IDApXG4gICAge1xuICAgICAgICBsZXQgZWxzID0gQW55LmlzQXJyYXkodGhpcy5lbCkgP1xuICAgICAgICAgICAgdGhpcy5lbCA6IFt0aGlzLmVsXTtcblxuICAgICAgICByZXR1cm4gZWxzW29mZnNldF07XG4gICAgfVxuXG4gICAgbGFzdChvZmZzZ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ICAgICAgcmV0dXJuIHRhcmdldCAhPT0gbnVsbDtcbiAgICB9XG5cbiAgICBjbG9zZXN0KHNlbGVjdG9yKVxuICAgIHtcbiAgICAgICAgaWYgKCB0aGlzLmdldCgwKSA9PT0gc2VsZWN0b3IgKSB7XG4gICAgICAgICAgICByZXR1cm4gc2VsZWN0b3I7XG4gICAgICAgIH1cblxuICAgICAgICBmb3IgKGxldCBlbCA9IHRoaXMuZ2V0KDApOyBlbCAhPT0gbnVsbCAmJiBlbC5wYXJlbnROb2RlICE9PSB1bmRlZmluZWQ7IGVsID0gZWwucGFyZW50Tm9kZSkge1xuICAgICAgICAgICAgaWYgKCBEb20uZmluZChlbCkuaXMoc2VsZWN0b3IpICkge1xuICAgICAgICAgICAgICAgIHJldHVybiBlbDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIGNsb3Nlc3RTY3JvbGxhYmxlKGZhbGxiYWNrID0gZG9jdW1lbnQuYm9keSlcbiAgICB7XG4gICAgICAgIGZvciAobGV0IGVsID0gdGhpcy5nZXQoMCk7IGVsICE9PSBudWxsICYmIGVsLnBhcmVudE5vZGUgIT09IHVuZGVmaW5lZDsgZWwgPSBlbC5wYXJlbnROb2RlKSB7XG4gICAgICAgICAgICBpZiAoIGVsLnNjcm9sbEhlaWdodCA+IGVsLmNsaWVudEhlaWdodCArIDEgKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGVsO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGZhbGxiYWNrO1xuICAgIH1cblxuICAgIGNvbnRhaW5zKHNlbGVjdG9yKVxuICAgIHtcbiAgICAgICAgaWYgKCBBbnkuaXNTdHJpbmcoc2VsZWN0b3IpID09PSB0cnVlICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuZmluZChzZWxlY3RvcikuZ2V0KDApICE9PSBudWxsO1xuICAgICAgICB9XG5cblxuICAgICAgICBpZiAoIHNlbGVjdG9yIGluc3RhbmNlb2YgRWxlbWVudCA9PT0gZmFsc2UgKSB7XG4gICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpcy5nZXQoMCkuY29udGFpbnMoc2VsZWN0b3IpO1xuICAgIH1cblxuICAgIGluc2lkZShzZWxlY3RvcilcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLmNsb3Nlc3Qoc2VsZWN0b3IpICE9PSBudWxsO1xuICAgIH1cblxuICAgIHBhcmVudCgpXG4gICAge1xuICAgICAgICBsZXQgZWwgPSB0aGlzLmdldCgwKTtcblxuICAgICAgICBpZiAoIGVsID09PSBudWxsIHx8IGVsLnBhcmVudE5vZGUgPT09IHVuZGVmaW5lZCAgKSB7XG4gICAgICAgICAgICByZXR1cm4gRG9tLmZpbmQobnVsbCk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gRG9tLmZpbmQoZWwucGFyZW50Tm9kZSk7XG4gICAgfVxuXG4gICAgY2hpbGQoc2VsZWN0b3IpXG4gICAge1xuICAgICAgICBsZXQgbm9kZXMgPSB0aGlzLmdldCgwKS5jaGlsZE5vZGVzO1xuXG4gICAgICAgIG5vZGVzID0gQXJyYXkucHJvdG90eXBlLnNsaWNlLmNhbGwobm9kZXMpO1xuXG4gICAgICAgIEFyci5lYWNoKG5vZGVzLCAobm9kZSwgaW5kZXgpID0+IHtcbiAgICAgICAgICAgIGlmICggbm9kZS5ub2RlVHlwZSA9PT0gMyApIHtcbiAgICAgICAgICAgICAgICBub2RlcyA9IEFyci5zcGxpY2Uobm9kZXMsIGluZGV4KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgaWYgKCBzZWxlY3RvciA9PT0gbnVsbCApIHtcbiAgICAgICAgICAgIHJldHVybiBEb20uZmluZChub2Rlc1swXSB8fCBudWxsKTtcbiAgICAgICAgfVxuXG4gICAgICAgIEFyci5lYWNoKG5vZGVzLCAobm9kZSwgaW5kZXgpID0+IHtcbiAgICAgICAgICAgIGlmICggQW55LmlzRW1wdHkobm9kZSkgfHwgRG9tLmZpbmQobm9kZSkuaXMoc2VsZWN0b3IpID09PSBmYWxzZSApIHtcbiAgICAgICAgICAgICAgICBub2RlcyA9IEFyci5zcGxpY2Uobm9kZXMsIGluZGV4KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgcmV0dXJuIERvbS5maW5kKG5vZGVzWzBdIHx8IG51bGwpO1xuICAgIH1cblxuICAgIGNoaWxkcyhzZWxlY3RvciA9IG51bGwsIGZpbHRlciA9IHRydWUpXG4gICAge1xuICAgICAgICBsZXQgbm9kZXMgPSB0aGlzLmdldCgwKS5jaGlsZE5vZGVzO1xuXG4gICAgICAgIG5vZGVzID0gQXJyYXkucHJvdG90eXBlLnNsaWNlLmNhbGwobm9kZXMpO1xuXG4gICAgICAgIEFyci5lYWNoKG5vZGVzLCAobm9kZSwgaW5kZXgpID0+IHtcbiAgICAgICAgICAgIGlmICggbm9kZS5ub2RlVHlwZSA9PT0gMyAmJiBmaWx0ZXIgPT09IHRydWUgKSB7XG4gICAgICAgICAgICAgICAgbm9kZXMgPSBBcnIuc3BsaWNlKG5vZGVzLCBpbmRleCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGlmICggc2VsZWN0b3IgPT09IG51bGwgKSB7XG4gICAgICAgICAgICByZXR1cm4gRG9tLmZpbmQobm9kZXMpO1xuICAgICAgICB9XG5cbiAgICAgICAgQXJyLmVhY2gobm9kZXMsIChub2RlLCBpbmRleCkgPT4ge1xuICAgICAgICAgICAgaWYgKCBBbnkuaXNFbXB0eShub2RlKSB8fCBEb20uZmluZChub2RlKS5pcyhzZWxlY3RvcikgPT09IGZhbHNlICkge1xuICAgICAgICAgICAgICAgIG5vZGVzID0gQXJyLnNwbGljZShub2RlcywgaW5kZXgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gRG9tLmZpbmQobm9kZXMpO1xuICAgIH1cblxuICAgIGZpbmQoc2VsZWN0b3IpXG4gICAge1xuICAgICAgICBsZXQgZWwgPSB0aGlzLmdldCgwKTtcblxuICAgICAgICBpZiAoIEFueS5pc0VtcHR5KGVsKSA9PT0gdHJ1ZSApIHtcbiAgICAgICAgICAgIHJldHVybiBEb20uZmluZChudWxsKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBub2RlcyA9IGVsLnF1ZXJ5U2VsZWN0b3JBbGwoc2VsZWN0b3IpO1xuXG4gICAgICAgIG5vZGVzID0gQXJyYXkucHJvdG90eXBlLnNsaWNlLmNhbGwobm9kZXMpO1xuXG4gICAgICAgIEFyci5lYWNoKG5vZGVzLCAobm9kZSwgaW5kZXgpID0+IHtcbiAgICAgICAgICAgIGlmICggbm9kZS5ub2RlVHlwZSA9PT0gMyApIHtcbiAgICAgICAgICAgICAgICBub2RlcyA9IEFyci5zcGxpY2Uobm9kZXMsIGluZGV4KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgcmV0dXJuIERvbS5maW5kKG5vZGVzKTtcbiAgICB9XG5cbiAgICB3aGVyZShzZWxlY3RvcilcbiAgICB7XG4gICAgICAgIGxldCBub2RlcyA9IHRoaXMuZ2V0KCk7XG5cbiAgICAgICAgQXJyLmVhY2gobm9kZXMsIChlbCwgaW5kZXgpID0+IHtcbiAgICAgICAgICAgIGlmICggQW55LmlzRW1wdHkoZWwpIHx8IERvbS5maW5kKGVsKS5pcyhzZWxlY3RvcikgPT09IGZhbHNlICkge1xuICAgICAgICAgICAgICAgIG5vZGVzID0gQXJyLnNwbGljZShub2RlcywgaW5kZXgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gRG9tLmZpbmQobm9kZXMpO1xuICAgIH1cblxuICAgIG5vdChzZWxlY3RvcilcbiAgICB7XG4gICAgICAgIGxldCBub2RlcyA9IHRoaXMuZ2V0KCk7XG5cbiAgICAgICAgQXJyLmVhY2gobm9kZXMsIChlbCwgaW5kZXgpID0+IHtcbiAgICAgICAgICAgIGlmICggQW55LmlzRW1wdHkoZWwpIHx8IERvbS5maW5kKGVsKS5pcyhzZWxlY3RvcikgPT09IHRydWUgKSB7XG4gICAgICAgICAgICAgICAgbm9kZXMgPSBBcnIuc3BsaWNlKG5vZGVzLCBpbmRleCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiBEb20uZmluZChub2Rlcyk7XG4gICAgfVxuXG4gICAgcHJlcGVuZCh2YWwpXG4gICAge1xuICAgICAgICB0aGlzLmVhY2goKGVsKSA9PiBlbC5wcmVwZW5kKHZhbCkpO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIHByZXBlbmRUbyhlbClcbiAgICB7XG4gICAgICAgIERvbS5maW5kKGVsKS5lYWNoKCh2YWwpID0+IHZhbC5wcmVwZW5kKHRoaXMuZWwpKTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBhcHBlbmQodmFsKVxuICAgIHtcbiAgICAgICAgdGhpcy5lYWNoKChlbCkgPT4ge1xuICAgICAgICAgICAgaWYgKCBlbC5hcHBlbmQgIT09IHVuZGVmaW5lZCApIHtcbiAgICAgICAgICAgICAgICBlbC5hcHBlbmQodmFsKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYXBwZW5kVG8oZWwpXG4gICAge1xuICAgICAgICBEb20uZmluZChlbCkuZWFjaCgodmFsKSA9PiB7XG4gICAgICAgICAgICBpZiAoIHZhbC5hcHBlbmQgIT09IHVuZGVmaW5lZCApIHtcbiAgICAgICAgICAgICAgICB2YWwuYXBwZW5kKHRoaXMuZWwpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICByZXBsYWNlKGVsKVxuICAgIHtcbiAgICAgICAgLy8gQXBwZW5kIG5vZGUgdG8gZWxlbWVudFxuICAgICAgICB0aGlzLnBhcmVudCgpLmdldCgwKS5pbnNlcnRCZWZvcmUoZWwsIHRoaXMuZ2V0KDApKTtcblxuICAgICAgICAvLyBSZW1vdmUgZXhpc3RpbmcgZWxlbWVudFxuICAgICAgICB0aGlzLnBhcmVudCgpLmdldCgwKS5yZW1vdmVDaGlsZCh0aGlzLmdldCgwKSk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgcHJldmlvdXMoKVxuICAgIHtcbiAgICAgICAgaWYgKCB0aGlzLmVtcHR5KCkgPT09IHRydWUgKSB7XG4gICAgICAgICAgICByZXR1cm4gRG9tLmZpbmQobnVsbCk7XG4gICAgICAgIH1cblxuICAgICAgICBmb3IgKGxldCBlbCA9IHRoaXMuZ2V0KDApLnByZXZpb3VzU2libGluZzsgZWwgIT09IG51bGw7IGVsID0gZWwucHJldmlvdXNTaWJsaW5nKSB7XG4gICAgICAgICAgICBpZiAoIGVsLm5vZGVUeXBlID09PSAxICkge1xuICAgICAgICAgICAgICAgIHJldHVybiBEb20uZmluZChlbCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gRG9tLmZpbmQobnVsbCk7XG4gICAgfVxuXG4gICAgbmV4dCgpXG4gICAge1xuICAgICAgICBpZiAoIHRoaXMuZW1wdHkoKSA9PT0gdHJ1ZSApIHtcbiAgICAgICAgICAgIHJldHVybiBEb20uZmluZChudWxsKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGZvciAobGV0IGVsID0gdGhpcy5nZXQoMCkubmV4dFNpYmxpbmc7IGVsICE9PSBudWxsOyBlbCA9IGVsLm5leHRTaWJsaW5nKSB7XG4gICAgICAgICAgICBpZiAoIGVsLm5vZGVUeXBlID09PSAxICkge1xuICAgICAgICAgICAgICAgIHJldHVybiBEb20uZmluZChlbCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gRG9tLmZpbmQobnVsbCk7XG4gICAgfVxuXG4gICAgbG9hZGVkKGNhbGxiYWNrKVxuICAgIHtcbiAgICAgICAgbGV0IGVsID0gdGhpcy5nZXQoMCksIHRpbWVvdXQgPSBudWxsO1xuXG4gICAgICAgIGlmICggISBlbCApIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzO1xuICAgICAgICB9XG5cbiAgICAgICAgdGltZW91dCA9IHNldEludGVydmFsKCgpID0+IHtcblxuICAgICAgICAgICAgaWYgKCAhIGVsLmNvbXBsZXRlIHx8IGVsLm5hdHVyYWxXaWR0aCA9PT0gMCApIHtcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGNhbGxiYWNrKGVsKTtcbiAgICAgICAgICAgIGNsZWFySW50ZXJ2YWwodGltZW91dCk7XG5cbiAgICAgICAgfSwgMTAwKTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBiaW5kKGV2ZW50LCBjYWxsYmFjaylcbiAgICB7XG4gICAgICAgIHRoaXMuZWFjaCgoZWwpID0+IGVsW2V2ZW50XSA9IChlKSA9PiBjYWxsYmFjay5jYWxsKGVsLCBlKSk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgdW5iaW5kKGV2ZW50KVxuICAgIHtcbiAgICAgICAgdGhpcy5lYWNoKChlbCkgPT4gZGVsZXRlIGVsW2V2ZW50XSk7XG4gICAgfVxuXG4gICAgb24oZXZlbnQsIGNhbGxiYWNrLCBvcHRpb25zID0ge30sIHBhdXNlZCA9IGZhbHNlKVxuICAgIHtcbiAgICAgICAgaWYgKCBBbnkuaXNBcnJheShldmVudCkgPT09IHRydWUgKSB7XG5cbiAgICAgICAgICAgIEFyci5lYWNoKGV2ZW50LCAoZSkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMub24oZSwgY2FsbGJhY2ssIG9wdGlvbnMpO1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgIHJldHVybiB0aGlzO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGZ1bmMgPSAoZSkgPT4ge1xuICAgICAgICAgICAgY2FsbGJhY2suY2FsbChlLnRhcmdldCwgZSwgZS50YXJnZXQpO1xuICAgICAgICB9O1xuXG4gICAgICAgIGxldCBzZWxlY3RvciA9IG51bGw7XG5cbiAgICAgICAgdGhpcy5lYWNoKChlbCkgPT4ge1xuXG4gICAgICAgICAgICBEb20uZXZlbnRzID0gQXJyLnB1c2goRG9tLmV2ZW50cywge1xuICAgICAgICAgICAgICAgIGVsLCBldmVudCwgb3B0aW9ucywgc2VsZWN0b3IsIHBhdXNlZCwgZnVuY1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgIGVsLmFkZEV2ZW50TGlzdGVuZXIoZXZlbnQsIGZ1bmMsIG9wdGlvbnMpO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBsaXZlKGV2ZW50LCBzZWxlY3RvciwgY2FsbGJhY2ssIG9wdGlvbnMgPSB7fSwgcGF1c2VkID0gZmFsc2UpXG4gICAge1xuICAgICAgICBpZiAoIEFueS5pc0FycmF5KGV2ZW50KSA9PT0gdHJ1ZSApIHtcblxuICAgICAgICAgICAgQXJyLmVhY2goZXZlbnQsIChlKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5saXZlKGUsIHNlbGVjdG9yLCBjYWxsYmFjaywgb3B0aW9ucyk7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgZnVuYyA9IChlKSA9PiB7XG5cbiAgICAgICAgICAgIGxldCB0YXJnZXQgPSBlLnNyY0VsZW1lbnQgfHwgZS50YXJnZXQ7XG5cbiAgICAgICAgICAgIGlmICggZXZlbnQubWF0Y2goL14oZHJhZ1thLXpdKnxkcm9wJCkvKSApIHtcbiAgICAgICAgICAgICAgICB0YXJnZXQgPSBEb20ubG9jYXRpb24oZS5jbGllbnRYLCBlLmNsaWVudFkpLmdldCgwKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKCAhIERvbS5maW5kKHRhcmdldCkuaW5zaWRlKHNlbGVjdG9yKSApIHtcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGNhbGxiYWNrLmNhbGwodGFyZ2V0LCBlLCBEb20uZmluZCh0YXJnZXQpLmNsb3Nlc3Qoc2VsZWN0b3IpKTtcbiAgICAgICAgfTtcblxuICAgICAgICB0aGlzLmVhY2goKGVsKSA9PiB7XG5cbiAgICAgICAgICAgIERvbS5ldmVudHMgPSBBcnIucHVzaChEb20uZXZlbnRzLCB7XG4gICAgICAgICAgICAgICAgZWwsIGV2ZW50LCBvcHRpb25zLCBzZWxlY3RvciwgcGF1c2VkLCBmdW5jXG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgZWwuYWRkRXZlbnRMaXN0ZW5lcihldmVudCwgZnVuYywgb3B0aW9ucyk7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIG9uZShldmVudCwgY2FsbGJhY2ssIG9wdGlvbnMgPSB7fSlcbiAgICB7XG4gICAgICAgIHRoaXMub24oZXZlbnQsIChlKSA9PiB7XG4gICAgICAgICAgICBjYWxsYmFjayhlKTsgdGhpcy5vZmYoZXZlbnQpO1xuICAgICAgICB9LCBvcHRpb25zKTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBmaXJlKGV2ZW50KVxuICAgIHtcbiAgICAgICAgbGV0IGNhbGxiYWNrID0gbmV3IEV2ZW50KGV2ZW50KTtcblxuICAgICAgICB0aGlzLmVhY2goKGVsKSA9PiB7XG4gICAgICAgICAgICBlbC5kaXNwYXRjaEV2ZW50KGNhbGxiYWNrKTtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgZGVsYXllZChldmVudCwgY2FsbGJhY2ssIGRlbGF5ID0gMCwgb3B0aW9ucyA9IHt9KVxuICAgIHtcbiAgICAgICAgdGhpcy5vbihldmVudCwgQW55LmRlYm91bmNlKGNhbGxiYWNrLCBkZWxheSksIG9wdGlvbnMpO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIG9mZihldmVudCwgc2VsZWN0b3IgPSBudWxsLCBvcHRpb25zID0ge30pXG4gICAge1xuICAgICAgICBpZiAoIEFueS5pc0FycmF5KGV2ZW50KSA9PT0gdHJ1ZSApIHtcblxuICAgICAgICAgICAgQXJyLmVhY2goZXZlbnQsIChlKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5vZmYoZSwgc2VsZWN0b3IpO1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgIHJldHVybiB0aGlzO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5lYWNoKChlbCkgPT4ge1xuXG4gICAgICAgICAgICBsZXQgaW5kZXhlcyA9IEFyci5maWx0ZXJJbmRleChEb20uZXZlbnRzLCB7XG4gICAgICAgICAgICAgICAgZWwsIGV2ZW50LCBzZWxlY3Rvciwgb3B0aW9uc1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgIGlmICggaW5kZXhlcy5sZW5ndGggPT09IDAgKcKge1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgQXJyLmVhY2goaW5kZXhlcy5yZXZlcnNlKCksIChpbmRleCkgPT4ge1xuXG4gICAgICAgICAgICAgICAgZWwucmVtb3ZlRXZlbnRMaXN0ZW5lcihldmVudCwgRG9tLmV2ZW50c1tpbmRleF0uZnVuYyxcbiAgICAgICAgICAgICAgICAgICAgRG9tLmV2ZW50c1tpbmRleF0ub3B0aW9ucyk7XG5cbiAgICAgICAgICAgICAgICBBcnIucmVtb3ZlSW5kZXgoRG9tLmV2ZW50cywgaW5kZXgpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIHVucGF1c2UoZXZlbnQsIHNlbGVjdG9yID0gbnVsbCwgb3B0aW9ucyA9IHt9KVxuICAgIHtcbiAgICAgICAgaWYgKCBBbnkuaXNBcnJheShldmVudCkgPT09IHRydWUgKSB7XG5cbiAgICAgICAgICAgIEFyci5lYWNoKGV2ZW50LCAoZSkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMudW5wYXVzZShlLCBzZWxlY3Rvciwgb3B0aW9ucyk7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmVhY2goKGVsKSA9PiB7XG5cbiAgICAgICAgICAgIGxldCB2YWwgPSBBcnIuZmluZChEb20uZXZlbnRzLCB7XG4gICAgICAgICAgICAgICAgZWwsIGV2ZW50LCBzZWxlY3Rvciwgb3B0aW9uc1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgIGlmICggdmFsID09PSBudWxsICnCoHtcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHZhbC5wYXVzZWQgPSB0cnVlO1xuXG4gICAgICAgICAgICBlbC5hZGRFdmVudExpc3RlbmVyKGV2ZW50LCB2YWwuZnVuYywgdmFsLm9wdGlvbnMpO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBwYXVzZShldmVudCwgc2VsZWN0b3IgPSBudWxsLCBvcHRpb25zID0ge30pXG4gICAge1xuICAgICAgICBpZiAoIEFueS5pc0FycmF5KGV2ZW50KSA9PT0gdHJ1ZSApIHtcblxuICAgICAgICAgICAgQXJyLmVhY2goZXZlbnQsIChlKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5wYXVzZShlLCBzZWxlY3Rvciwgb3B0aW9ucyk7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmVhY2goKGVsKSA9PiB7XG5cbiAgICAgICAgICAgIGxldCB2YWwgPSBBcnIuZmluZChEb20uZXZlbnRzLCB7XG4gICAgICAgICAgICAgICAgZWwsIGV2ZW50LCBzZWxlY3Rvciwgb3B0aW9uc1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgIGlmICggdmFsID09PSBudWxsICnCoHtcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHZhbC5wYXVzZWQgPSB0cnVlO1xuXG4gICAgICAgICAgICBlbC5yZW1vdmVFdmVudExpc3RlbmVyKGV2ZW50LCB2YWwuZnVuYywgdmFsLm9wdGlvbnMpO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBvYnNlcnZlcihjYWxsYmFjaywgaW5pdGlhbCA9IHRydWUpXG4gICAge1xuICAgICAgICBpZiAoIGluaXRpYWwgPT09IHRydWUgKSB7XG4gICAgICAgICAgICB0aGlzLmVhY2goKGVsKSA9PiBjYWxsYmFjayhlbCwge30pKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBvYnNlcnZlciA9IG5ldyBNdXRhdGlvbk9ic2VydmVyKChtdXRhdGlvbikgPT4ge1xuICAgICAgICAgICAgdGhpcy5lYWNoKChlbCkgPT4gY2FsbGJhY2soZWwsIG11dGF0aW9uKSk7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiAoZWwsIG9wdGlvbnMpID0+IHtcbiAgICAgICAgICAgIG9ic2VydmVyLm9ic2VydmUoRG9tLmZpbmQoZWwpLmdldCgwKSwgb3B0aW9ucyk7XG4gICAgICAgIH07XG4gICAgfVxuXG4gICAgb2JzZXJ2ZXJSZXNpemUoY2FsbGJhY2ssIGluaXRpYWwgPSB0cnVlKVxuICAgIHtcbiAgICAgICAgaWYgKCBpbml0aWFsID09PSB0cnVlICkge1xuICAgICAgICAgICAgdGhpcy5lYWNoKChlbCkgPT4gY2FsbGJhY2soZWwpKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBvYnNlcnZlciA9IG5ldyBSZXNpemVPYnNlcnZlcigoKSA9PiB7XG4gICAgICAgICAgICB0aGlzLmVhY2goKGVsKSA9PiBjYWxsYmFjayhlbCkpO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gKGVsKSA9PiB7XG4gICAgICAgICAgICBvYnNlcnZlci5vYnNlcnZlKERvbS5maW5kKGVsKS5nZXQoMCkpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZGF0YShrZXkgPSB1bmRlZmluZWQsIHZhbCA9IHVuZGVmaW5lZCwgZmFsbGJhY2sgPSBudWxsKVxuICAgIHtcbiAgICAgICAgbGV0IG1hdGNoID0gQXJyLmZpbmQoRG9tLmRhdGFzLCB7IGVsOiB0aGlzLmdldCgwKSB9LFxuICAgICAgICAgICAgeyBlbDogdGhpcy5nZXQoMCkgfSk7XG5cbiAgICAgICAgaWYgKCBrZXkgPT09IHVuZGVmaW5lZCApIHtcbiAgICAgICAgICAgIHJldHVybiBtYXRjaDtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggdmFsID09PSB1bmRlZmluZWQgKSB7XG4gICAgICAgICAgICByZXR1cm4gT2JqLmdldChtYXRjaCwga2V5LCBmYWxsYmFjayk7XG4gICAgICAgIH1cblxuICAgICAgICBBcnIucmVwbGFjZShEb20uZGF0YXMsIE9iai5zZXQobWF0Y2gsIGtleSwgdmFsKSxcbiAgICAgICAgICAgIHsgZWw6IHRoaXMuZ2V0KDApIH0pO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIHZhbHVlKHZhbCA9IHVuZGVmaW5lZClcbiAgICB7XG4gICAgICAgIGlmICggdmFsID09PSB1bmRlZmluZWQgKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5nZXQoMCkudmFsdWU7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmVhY2goKGVsKSA9PiBlbC52YWx1ZSA9IHZhbCk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgaHRtbChodG1sKVxuICAgIHtcbiAgICAgICAgdGhpcy5lYWNoKChlbCkgPT4gZWwuaW5uZXJIVE1MID0gaHRtbCk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgY29tcHV0ZWQoa2V5ID0gbnVsbCwgZmFsbGJhY2sgPSBudWxsKVxuICAgIHtcbiAgICAgICAgbGV0IGVsID0gdGhpcy5nZXQoMCk7XG5cbiAgICAgICAgaWYgKCBlbCA9PT0gbnVsbCB8fCBlbCA9PT0gd2luZG93IHx8IGVsID09PSBkb2N1bWVudCkge1xuICAgICAgICAgICAgcmV0dXJuIGtleSAhPT0gbnVsbCA/IGZhbGxiYWNrIDoge307XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgY29tcHV0ZWQgPSBnZXRDb21wdXRlZFN0eWxlKGVsKTtcblxuICAgICAgICByZXR1cm4ga2V5ICE9PSBudWxsID8gT2JqLmdldChjb21wdXRlZCwga2V5LCBmYWxsYmFjaykgOiBjb21wdXRlZDtcbiAgICB9XG5cbiAgICBjc3ModmFscyA9IHVuZGVmaW5lZClcbiAgICB7XG4gICAgICAgIGlmICggdmFscyA9PT0gbnVsbCApIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmF0dHIoJ3N0eWxlJywgbnVsbCk7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgc3R5bGVzID0gU3RyLm9iamVjdGlmeSh0aGlzLmF0dHIoJ3N0eWxlJykgfHwgJycpO1xuXG4gICAgICAgIGlmICggdmFscyA9PT0gdW5kZWZpbmVkICkge1xuICAgICAgICAgICAgcmV0dXJuIHN0eWxlcztcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuYXR0cignc3R5bGUnLCBPYmouYXNzaWduKHt9LCBzdHlsZXMsIFN0ci5vYmplY3RpZnkodmFscykpKTtcbiAgICB9XG5cbiAgICBjbGFzcyh2YWxzKVxuICAgIHtcbiAgICAgICAgaWYgKCBBbnkuaXNTdHJpbmcodmFscykgKSB7XG4gICAgICAgICAgICB2YWxzID0gdmFscy5zcGxpdCgnICcpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCAhIEFueS5pc0FycmF5KHZhbHMpICkge1xuICAgICAgICAgICAgdmFscyA9IFt2YWxzXTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuYXR0cignY2xhc3MnLCB2YWxzLmpvaW4oJyAnKSk7XG4gICAgfVxuXG4gICAgaGFzQ2xhc3ModmFscylcbiAgICB7XG4gICAgICAgIGxldCBjbHMgPSB0aGlzLmF0dHIoJ2NsYXNzJykgfHwgW107XG5cbiAgICAgICAgaWYgKCBBbnkuaXNTdHJpbmcodmFscykgKSB7XG4gICAgICAgICAgICB2YWxzID0gdmFscy5zcGxpdCgnICcpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBBbnkuaXNTdHJpbmcoY2xzKSApIHtcbiAgICAgICAgICAgIGNscyA9IGNscy5zcGxpdCgnICcpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCAhIEFueS5pc0FycmF5KHZhbHMpICkge1xuICAgICAgICAgICAgdmFscyA9IFt2YWxzXTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggISBBbnkuaXNBcnJheShjbHMpICkge1xuICAgICAgICAgICAgY2xzID0gW2Nsc107XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gQXJyLmludGVyc2VjdCh2YWxzLCBjbHMpLmxlbmd0aCAhPT0gMDtcbiAgICB9XG5cbiAgICBhZGRDbGFzcyh2YWxzKVxuICAgIHtcbiAgICAgICAgaWYgKCB0aGlzLmxlbmd0aCgpID4gMSApIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmVhY2goKGVsKSA9PiBEb20uZmluZChlbCkuYWRkQ2xhc3ModmFscykpO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGNscyA9IHRoaXMuYXR0cignY2xhc3MnKSB8fCBbXTtcblxuICAgICAgICBpZiAoIEFueS5pc1N0cmluZyh2YWxzKSApIHtcbiAgICAgICAgICAgIHZhbHMgPSB2YWxzLnNwbGl0KCcgJyk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIEFueS5pc1N0cmluZyhjbHMpICkge1xuICAgICAgICAgICAgY2xzID0gY2xzLnNwbGl0KCcgJyk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoICEgQW55LmlzQXJyYXkodmFscykgKSB7XG4gICAgICAgICAgICB2YWxzID0gW3ZhbHNdO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCAhIEFueS5pc0FycmF5KGNscykgKSB7XG4gICAgICAgICAgICBjbHMgPSBbY2xzXTtcbiAgICAgICAgfVxuXG4gICAgICAgIEFyci5lYWNoKHZhbHMsICh2YWwpID0+IHtcbiAgICAgICAgICAgIEFyci5hZGQoY2xzLCB2YWwpO1xuICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLmF0dHIoJ2NsYXNzJywgY2xzLmpvaW4oJyAnKSk7XG4gICAgfVxuXG4gICAgcmVtb3ZlQ2xhc3ModmFscylcbiAgICB7XG4gICAgICAgIGlmICggdGhpcy5sZW5ndGgoKSA+IDEgKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5lYWNoKChlbCkgPT4gRG9tLmZpbmQoZWwpLnJlbW92ZUNsYXNzKHZhbHMpKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBjbHMgPSB0aGlzLmF0dHIoJ2NsYXNzJykgfHwgW107XG5cbiAgICAgICAgaWYgKCBBbnkuaXNTdHJpbmcodmFscykgKSB7XG4gICAgICAgICAgICB2YWxzID0gdmFscy5zcGxpdCgnICcpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBBbnkuaXNTdHJpbmcoY2xzKSApIHtcbiAgICAgICAgICAgIGNscyA9IGNscy5zcGxpdCgnICcpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCAhIEFueS5pc0FycmF5KHZhbHMpICkge1xuICAgICAgICAgICAgdmFscyA9IFt2YWxzXTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggISBBbnkuaXNBcnJheShjbHMpICkge1xuICAgICAgICAgICAgY2xzID0gW2Nsc107XG4gICAgICAgIH1cblxuICAgICAgICBBcnIuZWFjaCh2YWxzLCAodmFsKSA9PiB7XG4gICAgICAgICAgICBBcnIucmVtb3ZlKGNscywgdmFsKTtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgdGhpcy5hdHRyKCdjbGFzcycsIGNscy5qb2luKCcgJykpO1xuICAgIH1cblxuICAgIHRvZ2dsZUNsYXNzKHZhbHMpXG4gICAge1xuICAgICAgICBpZiAoIHRoaXMubGVuZ3RoKCkgPiAxICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuZWFjaCgoZWwpID0+IERvbS5maW5kKGVsKS50b2dnbGVDbGFzcyh2YWxzKSk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmhhc0NsYXNzKHZhbHMpID8gdGhpcy5yZW1vdmVDbGFzcyh2YWxzKSA6IHRoaXMuYWRkQ2xhc3ModmFscyk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYXR0cihhdHRyLCB2YWwgPSB1bmRlZmluZWQpXG4gICAge1xuICAgICAgICBpZiAoIHRoaXMuZW1wdHkoKSApIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBBbnkuaXNQbGFpbihhdHRyKSApIHtcbiAgICAgICAgICAgIHJldHVybiBPYmouZWFjaChhdHRyLCAodmFsdWUsIGtleSkgPT5cbiAgICAgICAgICAgICAgICB0aGlzLmF0dHIoa2V5LCB2YWx1ZSkpO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHJlcyA9IHRoaXMuZ2V0KDApLmdldEF0dHJpYnV0ZShhdHRyKTtcblxuICAgICAgICBpZiAoIHZhbCA9PT0gdW5kZWZpbmVkICkge1xuICAgICAgICAgICAgcmV0dXJuIHJlcztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggdmFsID09PSBudWxsICkge1xuICAgICAgICAgICAgdGhpcy5nZXQoMCkucmVtb3ZlQXR0cmlidXRlKGF0dHIpO1xuICAgICAgICAgICAgcmV0dXJuIHJlcztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggQW55LmlzUGxhaW4odmFsKSApIHtcbiAgICAgICAgICAgIHZhbCA9IFN0ci5vcHRpb25zKHZhbCk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmdldCgwKS5zZXRBdHRyaWJ1dGUoYXR0ciwgdmFsKTtcbiAgICAgICAgcmV0dXJuIHJlcztcbiAgICB9XG5cbiAgICBhY3R1YWwoY2FsbGJhY2ssIHZhbCA9IG51bGwpXG4gICAge1xuICAgICAgICBsZXQgc3R5bGUgPSB0aGlzLmF0dHIoJ3N0eWxlJyk7XG5cbiAgICAgICAgdGhpcy5hdHRyKCdzdHlsZScsIHZhbCk7XG5cbiAgICAgICAgbGV0IHJlc3VsdCA9IGNhbGxiYWNrLmNhbGwodGhpcy5nZXQoMCksIHRoaXMuZ2V0KDApKTtcblxuICAgICAgICB0aGlzLmF0dHIoJ3N0eWxlJywgc3R5bGUpO1xuXG4gICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgfVxuXG4gICAgbG9vcFBhcmVudChjYWxsYmFjaywgdGFyZ2V0ID0gbnVsbClcbiAgICB7XG4gICAgICAgIGZvciAobGV0IGVsID0gdGhpcy5nZXQoMCk7IGVsICE9PSBudWxsICYmIGVsLnBhcmVudE5vZGUgIT09IHVuZGVmaW5lZDsgZWwgPSBlbC5wYXJlbnROb2RlKSB7XG5cbiAgICAgICAgICAgIGlmICggRG9tLmZpbmQoZWwpLmNvbXB1dGVkKCdwb3NpdGlvbicpID09PSAnZml4ZWQnICkge1xuICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoIERvbS5maW5kKGVsKS5pcyh0YXJnZXQpID09PSB0cnVlICkge1xuICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjYWxsYmFjay5jYWxsKHt9LCBlbCk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgbG9vcE9mZnNldFBhcmVudChjYWxsYmFjaywgdGFyZ2V0ID0gZG9jdW1lbnQuYm9keSlcbiAgICB7XG4gICAgICAgIGZvciAobGV0IGVsID0gdGhpcy5nZXQoMCk7IGVsICE9PSBudWxsICYmIGVsLm9mZnNldFBhcmVudCAhPT0gdW5kZWZpbmVkOyBlbCA9IGVsLm9mZnNldFBhcmVudCkge1xuXG4gICAgICAgICAgICBpZiAoIERvbS5maW5kKGVsKS5pcyh0YXJnZXQpID09PSB0cnVlICkge1xuICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjYWxsYmFjay5jYWxsKHt9LCBlbCk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgb2Zmc2V0KGtleSA9IG51bGwsIGJvdW5kcnkgPSBudWxsKVxuICAgIHtcbiAgICAgICAgbGV0IHNvdXJjZSA9IHtcbiAgICAgICAgICAgIHRvcDogMCwgbGVmdDogMCwgYm90dG9tOiAwLCByaWdodDogMFxuICAgICAgICB9O1xuXG4gICAgICAgIHRoaXMubG9vcE9mZnNldFBhcmVudCgoZWwpID0+IHtcblxuICAgICAgICAgICAgaWYgKCBlbC5vZmZzZXRUb3AgKSB7XG4gICAgICAgICAgICAgICAgc291cmNlLnRvcCArPSBOdW0uZmxvYXQoZWwub2Zmc2V0VG9wKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKCBlbC5vZmZzZXRMZWZ0ICkge1xuICAgICAgICAgICAgICAgIHNvdXJjZS5sZWZ0ICs9IE51bS5mbG9hdChlbC5vZmZzZXRMZWZ0KTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICB9KTtcblxuICAgICAgICBzb3VyY2UuYm90dG9tID0gRG9tLmZpbmQoZG9jdW1lbnQuYm9keSkuc2Nyb2xsSGVpZ2h0KCkgLVxuICAgICAgICAgICAgc291cmNlLnRvcCAtIHRoaXMuaGVpZ2h0KCk7XG5cbiAgICAgICAgc291cmNlLnJpZ2h0ID0gRG9tLmZpbmQoZG9jdW1lbnQuYm9keSkuc2Nyb2xsV2lkdGgoKSAtXG4gICAgICAgICAgICBzb3VyY2UubGVmdCAtIHRoaXMud2lkdGgoKTtcblxuICAgICAgICBsZXQgdGFyZ2V0ID0ge1xuICAgICAgICAgICAgdG9wOiAwLCBsZWZ0OiAwLCBib3R0b206IDAsIHJpZ2h0OiAwXG4gICAgICAgIH07XG5cbiAgICAgICAgRG9tLmZpbmQoYm91bmRyeSkubG9vcE9mZnNldFBhcmVudCgoZWwpID0+IHtcblxuICAgICAgICAgICAgaWYgKCBlbC5vZmZzZXRUb3AgKSB7XG4gICAgICAgICAgICAgICAgdGFyZ2V0LnRvcCArPSBOdW0uZmxvYXQoZWwub2Zmc2V0VG9wKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKCBlbC5vZmZzZXRMZWZ0ICkge1xuICAgICAgICAgICAgICAgIHRh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ge1xuICAgICAgICAgICAgICAgIHNvdXJjZS5sZWZ0ICs9IE51bS5mbG9hdChlbC5wYWdlWE9mZnNldCk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgfSk7XG5cbiAgICAgICAgbGV0IHRhcmdldCA9IHtcbiAgICAgICAgICAgIHRvcDogMCwgbGVmdDogMFxuICAgICAgICB9O1xuXG4gICAgICAgIERvbS5maW5kKGJvdW5kcnkpLmxvb3BQYXJlbnQoKGVsKSA9PiB7XG5cbiAgICAgICAgICAgIGlmICggZWwuc2Nyb2xsVG9wICE9PSB1bmRlZmluZWQgKSB7XG4gICAgICAgICAgICAgICAgdGFyZ2V0LnRvcCArPSBOdW0uZmxvYXQoZWwuc2Nyb2xsVG9wKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKCBlbC5zY3JvbGxUb3AgPT09IHVuZGVmaW5lZCAmJiBlbC5wYWdlWU9mZnNldCAhPT0gdW5kZWZpbmVkICApIHtcbiAgICAgICAgICAgICAgICB0YXJnZXQudG9wICs9IE51bS5mbG9hdChlbC5wYWdlWU9mZnNldCk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmICggZWwuc2Nyb2xsVG9wICE9PSB1bmRlZmluZWQgKSB7XG4gICAgICAgICAgICAgICAgdGFyZ2V0LmxlZnQgKz0gTnVtLmZsb2F0KGVsLnNjcm9sbExlZnQpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoIGVsLnNjcm9sbFRvcCA9PT0gdW5kZWZpbmVkICYmIGVsLnBhZ2VYT2Zmc2V0ICE9PSB1bmRlZmluZWQgICkge1xuICAgICAgICAgICAgICAgIHRhcmdldC5sZWZ0ICs9IE51bS5mbG9hdChlbC5wYWdlWE9mZnNldCk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgfSk7XG5cbiAgICAgICAgbGV0IHNjcm9sbCA9IHtcbiAgICAgICAgICAgIHRvcDogc291cmNlLnRvcCAtIHRhcmdldC50b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iAgICAgICAgcmV0dXJuIGhlaWdodDtcbiAgICB9XG5cbiAgICBldmFsdWF0ZUhlaWdodCh0YXJnZXQgPSBudWxsLCBhdXRvID0gdHJ1ZSlcbiAgICB7XG4gICAgICAgIGlmICggQW55LmlzU3RyaW5nKHRhcmdldCkgKSB7XG4gICAgICAgICAgICB0YXJnZXQgPSBEb20uZmluZCh0YXJnZXQpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCB0YXJnZXQgPT09IG51bGwgKSB7XG4gICAgICAgICAgICB0YXJnZXQgPSB0aGlzLnBhcmVudCgpO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGhlaWdodCA9ICdhdXRvJztcblxuICAgICAgICB0aGlzLmFjdHVhbCgoKSA9PiB7XG4gICAgICAgICAgICBoZWlnaHQgPSB0YXJnZXQuaW5uZXJIZWlnaHQoKTtcbiAgICAgICAgfSwgeyBkaXNwbGF5OiAnbm9uZScgfSk7XG5cbiAgICAgICAgaWYgKCBhdXRvID09PSB0cnVlICkge1xuICAgICAgICAgICAgdGhpcy5jc3MoeyBoZWlnaHQ6IGhlaWdodCArICdweCcgfSk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gaGVpZ2h0O1xuICAgIH1cblxuICAgIHdpZHRoKClcbiAgICB7XG4gICAgICAgIGxldCBlbCA9IHRoaXMuZ2V0KDApO1xuXG4gICAgICAgIGlmICggQW55LmlzRW1wdHkoZWwpICkge1xuICAgICAgICAgICAgcmV0dXJuIDA7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIGVsID09PSB3aW5kb3cgKSB7XG4gICAgICAgICAgICByZXR1cm4gZWwuaW5uZXJXaWR0aDtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBlbC5vZmZzZXRXaWR0aDtcbiAgICB9XG5cbiAgICBjbGllbnRXaWR0aCgpXG4gICAge1xuICAgICAgICBsZXQgZWwgPSB0aGlzLmdldCgwKTtcblxuICAgICAgICBpZiAoIEFueS5pc0VtcHR5KGVsKSApIHtcbiAgICAgICAgICAgIHJldHVybiAwO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIEFueS5pbnRlZ2VyKHRoaXMuY29tcHV0ZWQoJ3dpZHRoJywgJzBweCcpLnJlcGxhY2UoXCJweFwiLCBcIlwiKSk7XG4gICAgfVxuXG4gICAgc2Nyb2xsV2lkdGgoKVxuICAgIHtcbiAgICAgICAgbGV0IGVsID0gdGhpcy5nZXQoMCk7XG5cbiAgICAgICAgaWYgKCBBbnkuaXNFbXB0eShlbCkgKSB7XG4gICAgICAgICAgICByZXR1cm4gMDtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBlbC5zY3JvbGxXaWR0aDtcbiAgICB9XG5cbiAgICBpbm5lcldpZHRoKClcbiAgICB7XG4gICAgICAgIGxldCBlbCA9IHRoaXMuZ2V0KDApO1xuXG4gICAgICAgIGlmICggQW55LmlzRW1wdHkoZWwpICkge1xuICAgICAgICAgICAgcmV0dXJuIDA7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpcy53aWR0aCgpIC0gdGhpcy5wYWRkaW5nKCdsZWZ0JykgLVxuICAgICAgICAgICAgdGhpcy5wYWRkaW5nKCdyaWdodCcpO1xuICAgIH1cblxuICAgIHJlYWxXaWR0aChzdHlsZXMgPSB7fSlcbiAgICB7XG4gICAgICAgIGxldCB3aWR0aCA9IDA7XG5cbiAgICAgICAgdGhpcy5hY3R1YWwoKCkgPT4gd2lkdGggPSB0aGlzLndpZHRoKCksIHN0eWxlcyk7XG5cbiAgICAgICAgcmV0dXJuIHdpZHRoO1xuICAgIH1cblxuICAgIGV2YWx1YXRlV2lkdGgodGFyZ2V0ID0gbnVsbCwgYXV0byA9IHRydWUpXG4gICAge1xuICAgICAgICBpZiAoIHRhcmdldCA9PT0gbnVsbCApIHtcbiAgICAgICAgICAgIHRhcmdldCA9IHRoaXMucGFyZW50KCk7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgd2lkdGggPSAnYXV0byc7XG5cbiAgICAgICAgdGhpcy5hY3R1YWwoKCkgPT4ge1xuICAgICAgICAgICAgd2lkdGggPSB0YXJnZXQuaW5uZXJXaWR0aCgpO1xuICAgICAgICB9LCB7IGRpc3BsYXk6ICdub25lJyB9KTtcblxuICAgICAgICBpZiAoIGF1dG8gPT09IHRydWUgKSB7XG4gICAgICAgICAgICB0aGlzLmNzcyh7IHdpZHRoOiB3aWR0aCArICdweCcgfSk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gd2lkdGg7XG4gICAgfVxuXG59XG5cbmV4cG9ydCBkZWZhdWx0IERvbTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utility/dom.js\n");
|
306
|
+
|
307
|
+
/***/ }),
|
308
|
+
|
309
|
+
/***/ "./src/utility/now.js":
|
310
|
+
/*!****************************!*\
|
311
|
+
!*** ./src/utility/now.js ***!
|
312
|
+
\****************************/
|
313
|
+
/*! exports provided: Now, default */
|
314
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
315
|
+
|
316
|
+
"use strict";
|
317
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Now\", function() { return Now; });\n/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ \"./src/index.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\nvar Now = /*#__PURE__*/function () {\n function Now() {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'YYYY-MM-DD HH:mm:ss';\n\n _classCallCheck(this, Now);\n\n _defineProperty(this, \"initialDate\", null);\n\n _defineProperty(this, \"moment\", null);\n\n if (!global.moment) {\n throw new Error('Moment.js is required for pi.Now');\n }\n\n if (date instanceof Now) {\n date = date.get().toDate();\n }\n\n this.initialDate = date;\n\n if (!_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isString(date)) {\n this.moment = global.moment(date || new Date(), format);\n }\n\n if (this.moment !== null) {\n return this;\n }\n\n this.moment = global.moment(date.match(/^now/) ? new Date() : date, format);\n var second = this.initialDate.match(/(\\+|-)([0-9]+)seconds?/);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(second) === false && second[1] === '+') {\n this.moment.add(second[2], 'second');\n }\n\n var minute = this.initialDate.match(/(\\+|-)([0-9]+)minutes?/);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(minute) === false && minute[1] === '+') {\n this.moment.add(minute[2], 'minute');\n }\n\n var hour = this.initialDate.match(/(\\+|-)([0-9]+)hours?/);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(hour) === false && hour[1] === '+') {\n this.moment.add(hour[2], 'hour');\n }\n\n var day = this.initialDate.match(/(\\+|-)([0-9]+)days?/);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(day) === false && day[1] === '+') {\n this.moment.add(day[2], 'day');\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(day) === false && day[1] === '-') {\n this.moment.subtract(day[2], 'day');\n }\n\n var month = this.initialDate.match(/(\\+|-)([0-9]+)months?/);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(month) === false && month[1] === '+') {\n this.moment.add(month[2], 'month');\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(month) === false && month[1] === '-') {\n this.moment.subtract(month[2], 'month');\n }\n\n var year = this.initialDate.match(/(\\+|-)([0-9]+)years?/);\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(year) === false && year[1] === '+') {\n this.moment.add(year[2], 'year');\n }\n\n if (_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(year) === false && year[1] === '-') {\n this.moment.subtract(year[2], 'year');\n }\n\n return this;\n }\n\n _createClass(Now, [{\n key: \"get\",\n value: function get() {\n return this.moment;\n }\n }, {\n key: \"valid\",\n value: function valid() {\n return !_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isEmpty(this.initialDate) && global.moment(this.initialDate).isValid();\n }\n }, {\n key: \"clone\",\n value: function clone() {\n return new Now(this.moment.toDate());\n }\n }, {\n key: \"code\",\n value: function code() {\n var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'X';\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Num\"][\"int\"](this.format(format, true));\n }\n }, {\n key: \"format\",\n value: function format() {\n var _format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';\n\n var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n if (!this.valid() && !force) {\n return '';\n }\n\n return this.moment.format(_format);\n }\n }, {\n key: \"before\",\n value: function before() {\n var _before = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n return this.code() < Now.make(_before).code();\n }\n }, {\n key: \"beforeDate\",\n value: function beforeDate() {\n var before = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return this.code('YYYYMMDD') < Now.make(before).code('YYYYMMDD');\n }\n }, {\n key: \"beforeTime\",\n value: function beforeTime() {\n var before = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return this.code('HHmmss') < Now.make(before).code('HHmmss');\n }\n }, {\n key: \"after\",\n value: function after() {\n var _after = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n return this.code() > Now.make(_after).code();\n }\n }, {\n key: \"afterDate\",\n value: function afterDate() {\n var after = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return this.code('YYYYMMDD') > Now.make(after).code('YYYYMMDD');\n }\n }, {\n key: \"afterTime\",\n value: function afterTime() {\n var after = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return this.code('HHmmss') > Now.make(after).code('HHmmss');\n }\n }, {\n key: \"equal\",\n value: function equal() {\n var _equal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'X';\n return this.code(format) === Now.make(_equal).code(format);\n }\n }, {\n key: \"equalDate\",\n value: function equalDate() {\n var equal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'YYYYMMDD';\n return this.equal(equal, format);\n }\n }, {\n key: \"equalTime\",\n value: function equalTime() {\n var equal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'HHmmss';\n return this.equal(equal, format);\n }\n }, {\n key: \"between\",\n value: function between() {\n var fromDate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var toDate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'YYYYMMDD';\n\n if (Now.make(toDate).code(format) < Now.make(fromDate).code(format)) {\n return this.after(toDate, format) && this.before(fromDate, format) && !this.equal(toDate, format) && !this.equal(fromDate, format);\n }\n\n return this.after(fromDate, format) && this.before(toDate, format) && !this.equal(toDate, format) && !this.equal(fromDate, format);\n }\n }, {\n key: \"decade\",\n value: function decade() {\n return Math.floor(this.year() / 10) * 10;\n }\n }, {\n key: \"prevDecade\",\n value: function prevDecade() {\n return this.clone().subDecades(1);\n }\n }, {\n key: \"nextDecade\",\n value: function nextDecade() {\n return this.clone().addDecades(1);\n }\n }, {\n key: \"addDecades\",\n value: function addDecades() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.year(this.moment.year() + count * 10);\n }\n }, {\n key: \"subDecades\",\n value: function subDecades() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.year(this.moment.year() - count * 10);\n }\n }, {\n key: \"year\",\n value: function year() {\n var _year = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (_year === null) {\n return this.moment.year();\n }\n\n this.moment.year(_year);\n return this;\n }\n }, {\n key: \"prevYear\",\n value: function prevYear() {\n return this.clone().year(this.year() - 1);\n }\n }, {\n key: \"nextYear\",\n value: function nextYear() {\n return this.clone().year(this.year() + 1);\n }\n }, {\n key: \"addYears\",\n value: function addYears() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.year(this.year() + count);\n }\n }, {\n key: \"subYears\",\n value: function subYears() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.year(this.year() - count);\n }\n }, {\n key: \"month\",\n value: function month() {\n var _month = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (_month === null) {\n return this.moment.month();\n }\n\n this.moment.month(_month);\n return this;\n }\n }, {\n key: \"addMonths\",\n value: function addMonths() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.month(this.month() + count);\n }\n }, {\n key: \"subMonths\",\n value: function subMonths() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.month(this.month() - count);\n }\n }, {\n key: \"prevMonth\",\n value: function prevMonth() {\n return this.clone().month(this.month() - 1);\n }\n }, {\n key: \"nextMonth\",\n value: function nextMonth() {\n return this.clone().month(this.month() + 1);\n }\n }, {\n key: \"date\",\n value: function date() {\n var _date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (_date === null) {\n return this.moment.date();\n }\n\n this.moment.date(_date);\n return this;\n }\n }, {\n key: \"addDates\",\n value: function addDates() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.date(this.date() + count);\n }\n }, {\n key: \"subDates\",\n value: function subDates() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.date(this.date() - count);\n }\n }, {\n key: \"prevDate\",\n value: function prevDate() {\n return this.clone().date(this.date() - 1);\n }\n }, {\n key: \"nextDate\",\n value: function nextDate() {\n return this.clone().date(this.date() + 1);\n }\n }, {\n key: \"lastDate\",\n value: function lastDate() {\n return this.prevMonth().date(0).date();\n }\n }, {\n key: \"day\",\n value: function day() {\n var _day = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (_day === null) {\n return this.moment.day();\n }\n\n this.moment.day(_day);\n return this;\n }\n }, {\n key: \"hour\",\n value: function hour() {\n var _hour = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (_hour === null) {\n return this.moment.hour();\n }\n\n this.moment.hour(_hour);\n return this;\n }\n }, {\n key: \"addHour\",\n value: function addHour() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.hour(this.hour() + count);\n }\n }, {\n key: \"subHour\",\n value: function subHour() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.hour(this.hour() - count);\n }\n }, {\n key: \"prevHour\",\n value: function prevHour() {\n return this.clone().hour(this.hour() - 1);\n }\n }, {\n key: \"nextHour\",\n value: function nextHour() {\n return this.clone().hour(this.hour() + 1);\n }\n }, {\n key: \"minute\",\n value: function minute() {\n var _minute = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (_minute === null) {\n return this.moment.minute();\n }\n\n this.moment.minute(_minute);\n return this;\n }\n }, {\n key: \"addMinute\",\n value: function addMinute() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.minute(this.minute() + count);\n }\n }, {\n key: \"subMinute\",\n value: function subMinute() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.minute(this.minute() - count);\n }\n }, {\n key: \"prevMinute\",\n value: function prevMinute() {\n return this.clone().minute(this.minute() - 1);\n }\n }, {\n key: \"nextMinute\",\n value: function nextMinute() {\n return this.clone().minute(this.minute() + 1);\n }\n }, {\n key: \"second\",\n value: function second() {\n var _second = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (_second === null) {\n return this.moment.second();\n }\n\n this.moment.second(_second);\n return this;\n }\n }, {\n key: \"addSecond\",\n value: function addSecond() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.second(this.second() + count);\n }\n }, {\n key: \"subSecond\",\n value: function subSecond() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return this.second(this.second() - count);\n }\n }, {\n key: \"prevSecond\",\n value: function prevSecond() {\n return this.clone().second(this.second() - 1);\n }\n }, {\n key: \"nextSecond\",\n value: function nextSecond() {\n return this.clone().second(this.second() + 1);\n }\n }, {\n key: \"humanDay\",\n value: function humanDay() {\n return this.day();\n }\n }, {\n key: \"humanMonth\",\n value: function humanMonth() {\n return this.month();\n }\n }, {\n key: \"getMonths\",\n value: function getMonths() {\n var _this = this;\n\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].make(12).map(function (month) {\n return _this.clone().month(month - 1);\n });\n }\n }, {\n key: \"getYears\",\n value: function getYears() {\n var _this2 = this;\n\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].make(10).map(function (year) {\n return _this2.clone().year(_this2.decade() + year - 1);\n });\n }\n }, {\n key: \"getYearsGrid\",\n value: function getYearsGrid() {\n var _this3 = this;\n\n var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 12;\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].make(size).map(function (year) {\n return _this3.clone().year(Math.floor(_this3.year() / size) * size + year - 1);\n });\n }\n }, {\n key: \"getDates\",\n value: function getDates() {\n var _this4 = this;\n\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].make(this.lastDate()).map(function (date) {\n return _this4.clone().date(date);\n });\n }\n }, {\n key: \"getDatesRange\",\n value: function getDatesRange() {\n var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var range = [],\n targetNow = Now.make(target);\n\n if (this.afterDate(target)) {\n for (var day = targetNow; !day.equalDate(this); day = day.nextDate()) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].push(range, day);\n }\n\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].push(range, this);\n }\n\n if (this.beforeDate(target)) {\n for (var _day2 = this; !_day2.equalDate(targetNow); _day2 = _day2.nextDate()) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].push(range, _day2);\n }\n\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].push(range, targetNow);\n }\n\n if (range.length === 0) {\n range = [this];\n }\n\n return range;\n }\n }, {\n key: \"getDatesGrid\",\n value: function getDatesGrid() {\n var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n var end = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var dates = this.getDates(),\n before = [],\n after = [];\n var prev = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].first(dates);\n\n for (var day = prev.day(); prev.day() !== start; day = prev.day()) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].prepend(before, prev = prev.prevDate());\n }\n\n var next = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].last(dates);\n\n for (var _day3 = next.day(); next.day() !== end; _day3 = next.day()) {\n _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].append(after, next = next.nextDate());\n }\n\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].merge(before, dates, after);\n }\n }, {\n key: \"getHours\",\n value: function getHours() {\n var _this5 = this;\n\n var interval = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].make(24 / interval).map(function (val, hour) {\n return _this5.clone().hour(hour * interval);\n });\n }\n }, {\n key: \"getMinutes\",\n value: function getMinutes() {\n var _this6 = this;\n\n var interval = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].make(60 / interval).map(function (val, minute) {\n return _this6.clone().minute(minute * interval);\n });\n }\n }, {\n key: \"getSeconds\",\n value: function getSeconds() {\n var _this7 = this;\n\n var interval = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].make(60 / interval).map(function (val, second) {\n return _this7.clone().second(second * interval);\n });\n }\n }, {\n key: \"resetTime\",\n value: function resetTime() {\n this.hour(0);\n this.minute(0);\n this.second(0);\n return this;\n }\n }, {\n key: \"applyDate\",\n value: function applyDate(now) {\n var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'YYYY-MM-DD HH:mm:ss';\n now = Now.make(now, format);\n this.year(now.year());\n this.month(now.month());\n this.date(now.date());\n }\n }, {\n key: \"applyTime\",\n value: function applyTime(now) {\n var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'YYYY-MM-DD HH:mm:ss';\n now = Now.make(now, format);\n this.hour(now.hour());\n this.minute(now.minute());\n this.second(now.second());\n }\n }], [{\n key: \"make\",\n value: function make() {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'YYYY-MM-DD HH:mm:ss';\n return new Now(date, format);\n }\n }]);\n\n return Now;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (Now);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vc3JjL3V0aWxpdHkvbm93LmpzPzc4NzAiXSwibmFtZXMiOlsiTm93IiwiZGF0ZSIsImZvcm1hdCIsImdsb2JhbCIsIm1vbWVudCIsIkVycm9yIiwiZ2V0IiwidG9EYXRlIiwiaW5pdGlhbERhdGUiLCJBbnkiLCJpc1N0cmluZyIsIkRhdGUiLCJtYXRjaCIsInNlY29uZCIsImlzRW1wdHkiLCJhZGQiLCJtaW51dGUiLCJob3VyIiwiZGF5Iiwic3VidHJhY3QiLCJtb250aCIsInllYXIiLCJpc1ZhbGlkIiwiTnVtIiwiZm9yY2UiLCJ2YWxpZCIsImJlZm9yZSIsImNvZGUiLCJtYWtlIiwiYWZ0ZXIiLCJlcXVhbCIsImZyb21EYXRlIiwiTWF0aCIsImZsb29yIiwiY2xvbmUiLCJzdWJEZWNhZGVzIiwiYWRkRGVjYWRlcyIsImNvdW50IiwicHJldk1vbnRoIiwiQXJyIiwibWFwIiwiZGVjYWRlIiwic2l6ZSIsImxhc3REYXRlIiwidGFyZ2V0IiwicmFuZ2UiLCJ0YXJnZXROb3ciLCJhZnRlckRhdGUiLCJlcXVhbERhdGUiLCJuZXh0RGF0ZSIsInB1c2giLCJiZWZvcmVEYXRlIiwibGVuZ3RoIiwic3RhcnQiLCJlbmQiLCJkYXRlcyIsImdldERhdGVzIiwicHJldiIsImZpcnN0IiwicHJlc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NvbmRbMl0sICdzZWNvbmQnKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBtaW51dGUgPSB0aGlzLmluaXRpYWxEYXRlLm1hdGNoKC8oXFwrfC0pKFswLTldKyltaW51dGVzPy8pO1xuXG4gICAgICAgIGlmICggQW55LmlzRW1wdHkobWludXRlKSA9PT0gZmFsc2UgJiYgbWludXRlWzFdID09PSAnKycgKSB7XG4gICAgICAgICAgICB0aGlzLm1vbWVudC5hZGQobWludXRlWzJdLCAnbWludXRlJyk7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgaG91ciA9IHRoaXMuaW5pdGlhbERhdGUubWF0Y2goLyhcXCt8LSkoWzAtOV0rKWhvdXJzPy8pO1xuXG4gICAgICAgIGlmICggQW55LmlzRW1wdHkoaG91cikgPT09IGZhbHNlICYmIGhvdXJbMV0gPT09ICcrJyApIHtcbiAgICAgICAgICAgIHRoaXMubW9tZW50LmFkZChob3VyWzJdLCAnaG91cicpO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGRheSA9IHRoaXMuaW5pdGlhbERhdGUubWF0Y2goLyhcXCt8LSkoWzAtOV0rKWRheXM/Lyk7XG5cbiAgICAgICAgaWYgKCBBbnkuaXNFbXB0eShkYXkpID09PSBmYWxzZSAmJiBkYXlbMV0gPT09ICcrJyApIHtcbiAgICAgICAgICAgIHRoaXMubW9tZW50LmFkZChkYXlbMl0sICdkYXknKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggQW55LmlzRW1wdHkoZGF5KSA9PT0gZmFsc2UgJiYgZGF5WzFdID09PSAnLScgKSB7XG4gICAgICAgICAgICB0aGlzLm1vbWVudC5zdWJ0cmFjdChkYXlbMl0sICdkYXknKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBtb250aCA9IHRoaXMuaW5pdGlhbERhdGUubWF0Y2goLyhcXCt8LSkoWzAtOV0rKW1vbnRocz8vKTtcblxuICAgICAgICBpZiAoIEFueS5pc0VtcHR5KG1vbnRoK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51bGwgKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5tb21lbnQueWVhcigpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5tb21lbnQueWVhcih5ZWFyKTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBwcmV2WWVhcigpXG4gICAge1xuICAgICAgICByZXR1cm4gdGhpcy5jbG9uZSgpLnllYXIodGhpcy55ZWFyKCkgLSAxKTtcbiAgICB9XG5cbiAgICBuZXh0WWVhcigpXG4gICAge1xuICAgICAgICByZXR1cm4gdGhpcy5jbG9uZSgpLnllYXIodGhpcy55ZWFyKCkgKyAxKTtcbiAgICB9XG5cbiAgICBhZGRZZWFycyhjb3VudCA9IDEpXG4gICAge1xuICAgICAgICByZXR1cm4gdGhpcy55ZWFyKHRoaXMueWVhcigpICsgY291bnQpO1xuICAgIH1cblxuICAgIHN1YlllYXJzKGNvdW50ID0gMSlcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLnllYXIodGhpcy55ZWFyKCkgLSBjb3VudCk7XG4gICAgfVxuXG4gICAgbW9udGgobW9udGggPSBudWxsKVxuICAgIHtcbiAgICAgICAgaWYgKCBtb250aCA9PT0gbnVsbCApIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLm1vbWVudC5tb250aCgpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5tb21lbnQubW9udGgobW9udGgpO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGFkZE1vbnRocyhjb3VudCA9IDEpXG4gICAge1xuICAgICAgICByZXR1cm4gdGhpcy5tb250aCh0aGlzLm1vbnRoKCkgKyBjb3VudCk7XG4gICAgfVxuXG4gICAgc3ViTW9udGhzKGNvdW50ID0gMSlcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLm1vbnRoKHRoaXMubW9udGgoKSAtIGNvdW50KTtcbiAgICB9XG5cbiAgICBwcmV2TW9udGgoKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmUoKS5tb250aCh0aGlzLm1vbnRoKCkgLSAxKTtcbiAgICB9XG5cbiAgICBuZXh0TW9udGgoKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmUoKS5tb250aCh0aGlzLm1vbnRoKCkgKyAxKTtcbiAgICB9XG5cbiAgICBkYXRlKGRhdGUgPSBudWxsKVxuICAgIHtcbiAgICAgICAgaWYgKCBkYXRlID09PSBudWxsICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMubW9tZW50LmRhdGUoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMubW9tZW50LmRhdGUoZGF0ZSk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYWRkRGF0ZXMoY291bnQgPSAxKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuZGF0ZSh0aGlzLmRhdGUoKSArIGNvdW50KTtcbiAgICB9XG5cbiAgICBzdWJEYXRlcyhjb3VudCA9IDEpXG4gICAge1xuICAgICAgICByZXR1cm4gdGhpcy5kYXRlKHRoaXMuZGF0ZSgpIC0gY291bnQpO1xuICAgIH1cblxuICAgIHByZXZEYXRlKClcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLmNsb25lKCkuZGF0ZSh0aGlzLmRhdGUoKSAtIDEpO1xuICAgIH1cblxuICAgIG5leHREYXRlKClcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLmNsb25lKCkuZGF0ZSh0aGlzLmRhdGUoKSArIDEpO1xuICAgIH1cblxuICAgIGxhc3REYXRlKClcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLnByZXZNb250aCgpLmRhdGUoMCkuZGF0ZSgpO1xuICAgIH1cblxuICAgIGRheShkYXkgPSBudWxsKVxuICAgIHtcbiAgICAgICAgaWYgKCBkYXkgPT09IG51bGwgKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5tb21lbnQuZGF5KCk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLm1vbWVudC5kYXkoZGF5KTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBob3VyKGhvdXIgPSBudWxsKVxuICAgIHtcbiAgICAgICAgaWYgKCBob3VyID09PSBudWxsICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMubW9tZW50LmhvdXIoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMubW9tZW50LmhvdXIoaG91cik7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYWRkSG91cihjb3VudCA9IDEpXG4gICAge1xuICAgICAgICByZXR1cm4gdGhpcy5ob3VyKHRoaXMuaG91cigpICsgY291bnQpO1xuICAgIH1cblxuICAgIHN1YkhvdXIoY291bnQgPSAxKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuaG91cih0aGlzLmhvdXIoKSAtIGNvdW50KTtcbiAgICB9XG5cbiAgICBwcmV2SG91cigpXG4gICAge1xuICAgICAgICByZXR1cm4gdGhpcy5jbG9uZSgpLmhvdXIodGhpcy5ob3VyKCkgLSAxKTtcbiAgICB9XG5cbiAgICBuZXh0SG91cigpXG4gICAge1xuICAgICAgICByZXR1cm4gdGhpcy5jbG9uZSgpLmhvdXIodGhpcy5ob3VyKCkgKyAxKTtcbiAgICB9XG5cbiAgICBtaW51dGUobWludXRlID0gbnVsbClcbiAgICB7XG4gICAgICAgIGlmICggbWludXRlID09PSBudWxsICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMubW9tZW50Lm1pbnV0ZSgpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5tb21lbnQubWludXRlKG1pbnV0ZSk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYWRkTWludXRlKGNvdW50ID0gMSlcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLm1pbnV0ZSh0aGlzLm1pbnV0ZSgpICsgY291bnQpO1xuICAgIH1cblxuICAgIHN1Yk1pbnV0ZShjb3VudCA9IDEpXG4gICAge1xuICAgICAgICByZXR1cm4gdGhpcy5taW51dGUodGhpcy5taW51dGUoKSAtIGNvdW50KTtcbiAgICB9XG5cbiAgICBwcmV2TWludXRlKClcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLmNsb25lKCkubWludXRlKHRoaXMubWludXRlKCkgLSAxKTtcbiAgICB9XG5cbiAgICBuZXh0TWludXRlKClcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLmNsb25lKCkubWludXRlKHRoaXMubWludXRlKCkgKyAxKTtcbiAgICB9XG5cbiAgICBzZWNvbmQoc2Vjb25kID0gbnVsbClcbiAgICB7XG4gICAgICAgIGlmICggc2Vjb25kID09PSBudWxsICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMubW9tZW50LnNlY29uZCgpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5tb21lbnQuc2Vjb25kKHNlY29uZCk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYWRkU2Vjb25kKGNvdW50ID0gMSlcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLnNlY29uZCh0aGlzLnNlY29uZCgpICsgY291bnQpO1xuICAgIH1cblxuICAgIHN1YlNlY29uZChjb3VudCA9IDEpXG4gICAge1xuICAgICAgICByZXR1cm4gdGhpcy5zZWNvbmQodGhpcy5zZWNvbmQoKSAtIGNvdW50KTtcbiAgICB9XG5cbiAgICBwcmV2U2Vjb25kKClcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLmNsb25lKCkuc2Vjb25kKHRoaXMuc2Vjb25kKCkgLSAxKTtcbiAgICB9XG5cbiAgICBuZXh0U2Vjb25kKClcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLmNsb25lKCkuc2Vjb25kKHRoaXMuc2Vjb25kKCkgKyAxKTtcbiAgICB9XG5cbiAgICBodW1hbkRheSgpXG4gICAge1xuICAgICAgICByZXR1cm4gdGhpcy5kYXkoKTtcbiAgICB9XG5cbiAgICBodW1hbk1vbnRoKClcbiAgICB7XG4gICAgICAgIHJldHVybiB0aGlzLm1vbnRoKCk7XG4gICAgfVxuXG4gICAgZ2V0TW9udGhzKClcbiAgICB7XG4gICAgICAgIHJldHVybiBBcnIubWFrZSgxMikubWFwKChtb250aCkgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmUoKS5tb250aChtb250aCAtIDEpO1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBnZXRZZWFycygpXG4gICAge1xuICAgICAgICByZXR1cm4gQXJyLm1ha2UoMTApLm1hcCgoeWVhcikgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmUoKS55ZWFyKHRoaXMuZGVjYWRlKCkgKyB5ZWFyIC0gMSk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGdldFllYXJzR3JpZChzaXplID0gMTIpXG4gICAge1xuICAgICAgICByZXR1cm4gQXJyLm1ha2Uoc2l6ZSkubWFwKCh5ZWFyKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5jbG9uZSgpLnllYXIoKE1hdGguZmxvb3IodGhpcy55ZWFyKCkgLyBzaXplKVxuICAgICAgICAgICAgICAgICogc2l6ZSkgKyB5ZWFyIC0gMSk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGdldERhdGVzKClcbiAgICB7XG4gICAgICAgIHJldHVybiBBcnIubWFrZSh0aGlzLmxhc3REYXRlKCkpLm1hcCgoZGF0ZSkgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmUoKS5kYXRlKGRhdGUpO1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBnZXREYXRlc1JhbmdlKHRhcmdldCA9IG51bGwpXG4gICAge1xuICAgICAgICBsZXQgcmFuZ2UgPSBbXSwgdGFyZ2V0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H0pO1xuICAgIH1cblxuICAgIHJlc2V0VGltZSgpXG4gICAge1xuICAgICAgICB0aGlzLmhvdXIoMCk7XG4gICAgICAgIHRoaXMubWludXRlKDApO1xuICAgICAgICB0aGlzLnNlY29uZCgwKTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBhcHBseURhdGUobm93LCBmb3JtYXQgPSAnWVlZWS1NTS1ERCBISDptbTpzcycpXG4gICAge1xuICAgICAgICBub3cgPSBOb3cubWFrZShub3csIGZvcm1hdCk7XG5cbiAgICAgICAgdGhpcy55ZWFyKG5vdy55ZWFyKCkpO1xuICAgICAgICB0aGlzLm1vbnRoKG5vdy5tb250aCgpKTtcbiAgICAgICAgdGhpcy5kYXRlKG5vdy5kYXRlKCkpO1xuICAgIH1cblxuICAgIGFwcGx5VGltZShub3csIGZvcm1hdCA9ICdZWVlZLU1NLUREIEhIOm1tOnNzJylcbiAgICB7XG4gICAgICAgIG5vdyA9IE5vdy5tYWtlKG5vdywgZm9ybWF0KTtcblxuICAgICAgICB0aGlzLmhvdXIobm93LmhvdXIoKSk7XG4gICAgICAgIHRoaXMubWludXRlKG5vdy5taW51dGUoKSk7XG4gICAgICAgIHRoaXMuc2Vjb25kKG5vdy5zZWNvbmQoKSk7XG4gICAgfVxuXG59XG5cbmV4cG9ydCBkZWZhdWx0IE5vdztcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utility/now.js\n");
|
318
|
+
|
319
|
+
/***/ }),
|
320
|
+
|
321
|
+
/***/ "./src/utility/number.js":
|
322
|
+
/*!*******************************!*\
|
323
|
+
!*** ./src/utility/number.js ***!
|
324
|
+
\*******************************/
|
325
|
+
/*! exports provided: Num, default */
|
326
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
327
|
+
|
328
|
+
"use strict";
|
329
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Num\", function() { return Num; });\n/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ \"./src/index.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\nvar Num = /*#__PURE__*/function () {\n function Num() {\n _classCallCheck(this, Num);\n }\n\n _createClass(Num, null, [{\n key: \"int\",\n value: function int(num) {\n return !_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isString(num) ? parseInt(num) : parseInt(num.replace('px', ''));\n }\n }, {\n key: \"float\",\n value: function float(num) {\n return !_index_js__WEBPACK_IMPORTED_MODULE_0__[\"Any\"].isString(num) ? parseFloat(num) : parseFloat(num.replace('px', ''));\n }\n }, {\n key: \"ceil\",\n value: function ceil(num) {\n return Math.ceil(num);\n }\n }, {\n key: \"round\",\n value: function round(num) {\n return Math.round(num);\n }\n }, {\n key: \"floor\",\n value: function floor(num) {\n return Math.floor(num);\n }\n }, {\n key: \"fixed\",\n value: function fixed(num) {\n var _fixed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;\n\n return this[\"float\"](num).toFixed(_fixed);\n }\n }, {\n key: \"random\",\n value: function random() {\n var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var end = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;\n return Math.floor(Math.random() * (end + 1) + start);\n }\n }, {\n key: \"matrix\",\n value: function matrix(num) {\n var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;\n var base = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n var value = 0;\n\n for (var i = 20; i >= 0; i--) {\n if (num >= (value = Math.pow(2, i))) {\n base.push(value);\n num -= value;\n }\n }\n\n return base;\n }\n }, {\n key: \"combine\",\n value: function combine(arr) {\n return _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].reduce(arr, function (acc, val) {\n return acc + val;\n }, 0);\n }\n }, {\n key: \"distance\",\n value: function distance(cord1, cord2) {\n var miles = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var defaultCord = {\n lat: 0,\n lng: 0\n };\n cord1 = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].assign({}, defaultCord, cord1);\n cord2 = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Obj\"].assign({}, defaultCord, cord2);\n var radlat1 = Math.PI * this[\"float\"](cord1.lat) / 180;\n var radlat2 = Math.PI * this[\"float\"](cord2.lat) / 180;\n var theta = this[\"float\"](cord1.lng) - this[\"float\"](cord2.lng);\n var radtheta = Math.PI * theta / 180;\n var dist = Math.sin(radlat1) * Math.sin(radlat2) + Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);\n\n if (dist > 1) {\n dist = 1;\n }\n\n dist = Math.acos(dist) * 180 / Math.PI * 60 * 1.1515;\n\n if (!miles) {\n dist = dist * 1.609344;\n }\n\n return dist;\n }\n }, {\n key: \"format\",\n value: function format(num) {\n var decimal = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '.';\n var thousand = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ',';\n var fixed = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n\n if (num === null) {\n return null;\n }\n\n var value = num.toString();\n\n if (fixed !== null && fixed !== -1) {\n value = num.toFixed(fixed);\n }\n\n var totals = value.replace(/\\.[0-9]+$/, ''),\n minals = value.replace(/^[0-9\\-]+\\./, '');\n var splits = _index_js__WEBPACK_IMPORTED_MODULE_0__[\"Arr\"].reduce(totals.split('').reverse(), function (result, val, key) {\n var index = Math.floor(key / 3);\n result[index] = index === key / 3 ? val : result[index] = val + result[index];\n return result;\n }, []);\n var result = splits.reverse().join(thousand);\n\n if (fixed !== -1 && fixed !== 0 && value.match(/\\./)) {\n result += decimal + minals;\n }\n\n return result;\n }\n }]);\n\n return Num;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (Num);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vc3JjL3V0aWxpdHkvbnVtYmVyLmpzP2M3NDciXSwibmFtZXMiOlsiTnVtIiwibnVtIiwiQW55IiwiaXNTdHJpbmciLCJwYXJzZUludCIsInJlcGxhY2UiLCJwYXJzZUZsb2F0IiwiTWF0aCIsImNlaWwiLCJyb3VuZCIsImZsb29yIiwiZml4ZWQiLCJ0b0ZpeGVkIiwic3RhcnQiLCJlbmQiLCJyYW5kb20iLCJsaW1pdCIsImJhc2UiLCJ2YWx1ZSIsImkiLCJwb3ciLCJwdXNoIiwiYXJyIiwiQXJyIiwicmVkdWNlIiwiYWNjIiwidmFsIiwiY29yZDEiLCJjb3JkMiIsIm1pbGVzIiwiZGVmYXVsdENvcmQiLCJsYXQiLCJsbmciLCJPYmoiLCJhc3NpZ24iLCJyYWRsYXQxIiwiUEkiLCJyYWRsYXQyIiwidGhldGEiLCJyYWR0aGV0YSIsImRpc3QiLCJzaW4iLCJjb3MiLCJhY29zIiwiZGVjaW1hbCIsInRob3VzYW5kIiwidG9TdHJpbmciLCJ0b3RhbHMiLCJtaW5hbHMiLCJzcGxpdHMiLCJzcGxpdCIsInJldmVyc2UiLCJyZXN1bHQiLCJrZXkiLCJpbmRleCIsImpvaW4iLCJtYXRjaCJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUE7QUFFTyxJQUFNQSxHQUFiO0FBQUE7QUFBQTtBQUFBOztBQUFBO0FBQUE7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yBmbG9hdChudW0pXG4gICAge1xuICAgICAgICByZXR1cm4gIUFueS5pc1N0cmluZyhudW0pID8gcGFyc2VGbG9hdChudW0pIDpcbiAgICAgICAgICAgIHBhcnNlRmxvYXQobnVtLnJlcGxhY2UoJ3B4JywgJycpKTtcbiAgICB9XG5cbiAgICBzdGF0aWMgY2VpbChudW0pXG4gICAge1xuICAgICAgICByZXR1cm4gTWF0aC5jZWlsKG51bSk7XG4gICAgfVxuXG4gICAgc3RhdGljIHJvdW5kKG51bSlcbiAgICB7XG4gICAgICAgIHJldHVybiBNYXRoLnJvdW5kKG51bSk7XG4gICAgfVxuXG4gICAgc3RhdGljIGZsb29yKG51bSlcbiAgICB7XG4gICAgICAgIHJldHVybiBNYXRoLmZsb29yKG51bSk7XG4gICAgfVxuXG4gICAgc3RhdGljIGZpeGVkKG51bSwgZml4ZWQgPSAyKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuZmxvYXQobnVtKS50b0ZpeGVkKGZpeGVkKTtcbiAgICB9XG5cbiAgICBzdGF0aWMgcmFuZG9tKHN0YXJ0ID0gMCwgZW5kID0gMTAwKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIE1hdGguZmxvb3IoKE1hdGgucmFuZG9tKCkgKiAoZW5kICsgMSkpICsgc3RhcnQpO1xuICAgIH1cblxuICAgIHN0YXRpYyBtYXRyaXgobnVtLCBsaW1pdCA9IDEwLCBiYXNlID0gW10pXG4gICAge1xuICAgICAgICBsZXQgdmFsdWUgPSAwO1xuXG4gICAgICAgIGZvciAoIGxldCBpID0gMjA7IGkgPj0gMDsgaSAtLSApIHtcbiAgICAgICAgICAgIGlmICggbnVtID49ICh2YWx1ZSA9IE1hdGgucG93KDIsIGkpKSApIHtcbiAgICAgICAgICAgICAgICBiYXNlLnB1c2godmFsdWUpO1xuICAgICAgICAgICAgICAgIG51bSAtPSB2YWx1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBiYXNlO1xuICAgIH1cblxuICAgIHN0YXRpYyBjb21iaW5lKGFycilcbiAgICB7XG4gICAgICAgIHJldHVybiBBcnIucmVkdWNlKGFyciwgKGFjYywgdmFsKSA9PiBhY2MgKyB2YWwsIDApO1xuICAgIH1cblxuICAgIHN0YXRpYyBkaXN0YW5jZShjb3JkMSwgY29yZDIsIG1pbGVzID0gZmFsc2UpXG4gICAge1xuICAgICAgICBsZXQgZGVmYXVsdENvcmQgPSB7XG4gICAgICAgICAgICBsYXQ6IDAsIGxuZzogMFxuICAgICAgICB9O1xuXG4gICAgICAgIGNvcmQxID0gT2JqLmFzc2lnbih7fSwgZGVmYXVsdENvcmQsIGNvcmQxKTtcbiAgICAgICAgY29yZDIgPSBPYmouYXNzaWduKHt9LCBkZWZhdWx0Q29yZCwgY29yZDIpO1xuXG4gICAgICAgIGxldCByYWRsYXQxID0gKE1hdGguUEkgKiB0aGlzLmZsb2F0KGNvcmQxLmxhdCkpIC8gMTgwO1xuICAgICAgICBsZXQgcmFkbGF0MiA9IChNYXRoLlBJICogdGhpcy5mbG9hdChjb3JkMi5sYXQpKSAvIDE4MDtcblxuICAgICAgICBsZXQgdGhldGEgPSB0aGlzLmZsb2F0KGNvcmQxLmxuZykgLSB0aGlzLmZsb2F0KGNvcmQyLmxuZyk7XG4gICAgICAgIGxldCByYWR0aGV0YSA9IChNYXRoLlBJICogdGhldGEpIC8gMTgwO1xuXG4gICAgICAgIGxldCBkaXN0ID0gTWF0aC5zaW4ocmFkbGF0MSkgKiBNYXRoLnNpbihyYWRsYXQyKSArXG4gICAgICAgICAgICBNYXRoLmNvcyhyYWRsYXQxKSAqIE1hdGguY29zKHJhZGxhdDIpICogTWF0aC5jb3MocmFkdGhldGEpO1xuXG4gICAgICAgIGlmICggZGlzdCA+IDEgKSB7XG4gICAgICAgICAgICBkaXN0ID0gMTtcbiAgICAgICAgfVxuXG4gICAgICAgIGRpc3QgPSAoTWF0aC5hY29zKGRpc3QpICogMTgwKSAvIE1hdGguUEkgKiA2MCAqIDEuMTUxNTtcblxuICAgICAgICBpZiAoICFtaWxlcyApIHtcbiAgICAgICAgICAgIGRpc3QgPSBkaXN0ICogMS42MDkzNDQ7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gZGlzdDtcbiAgICB9XG5cbiAgICBzdGF0aWMgZm9ybWF0KG51bSwgZGVjaW1hbCA9ICcuJywgdGhvdXNhbmQgPSAnLCcsIGZpeGVkID0gbnVsbClcbiAgICB7XG4gICAgICAgIGlmICggbnVtID09PSBudWxsICkge1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgdmFsdWUgPSBudW0udG9TdHJpbmcoKTtcblxuICAgICAgICBpZiAoIGZpeGVkICE9PSBudWxsICYmIGZpeGVkICE9PSAtIDEgKSB7XG4gICAgICAgICAgICB2YWx1ZSA9IG51bS50b0ZpeGVkKGZpeGVkKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCB0b3RhbHMgPSB2YWx1ZS5yZXBsYWNlKC9cXC5bMC05XSskLywgJycpLFxuICAgICAgICAgICAgbWluYWxzID0gdmFsdWUucmVwbGFjZSgvXlswLTlcXC1dK1xcLi8sICcnKTtcblxuICAgICAgICBsZXQgc3BsaXRzID0gQXJyLnJlZHVjZSh0b3RhbHMuc3BsaXQoJycpLnJldmVyc2UoKSwgKHJlc3VsdCwgdmFsLCBrZXkpID0+IHtcblxuICAgICAgICAgICAgbGV0IGluZGV4ID0gTWF0aC5mbG9vcihrZXkgLyAzKTtcblxuICAgICAgICAgICAgcmVzdWx0W2luZGV4XSA9IGluZGV4ID09PSBrZXkgLyAzID9cbiAgICAgICAgICAgICAgICB2YWwgOiByZXN1bHRbaW5kZXhdID0gdmFsICsgcmVzdWx0W2luZGV4XTtcblxuICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICAgICAgfSwgW10pO1xuXG4gICAgICAgIGxldCByZXN1bHQgPSBzcGxpdHMucmV2ZXJzZSgpLmpvaW4odGhvdXNhbmQpO1xuXG4gICAgICAgIGlmICggZml4ZWQgIT09IC0gMSAmJiBmaXhlZCAhPT0gMCAmJiB2YWx1ZS5tYXRjaCgvXFwuLykgKSB7XG4gICAgICAgICAgICByZXN1bHQgKz0gZGVjaW1hbCArIG1pbmFscztcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBOdW07XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/utility/number.js\n");
|
330
|
+
|
331
|
+
/***/ }),
|
332
|
+
|
333
|
+
/***/ "./src/utility/object.js":
|
334
|
+
/*!*******************************!*\
|
335
|
+
!*** ./src/utility/object.js ***!
|
336
|
+
\*******************************/
|
337
|
+
/*! exports provided: Obj, default */
|
338
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
339
|
+
|
340
|
+
"use strict";
|
341
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Obj\", function() { return Obj; });\n/* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array.js */ \"./src/utility/array.js\");\n/* harmony import */ var _any_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./any.js */ \"./src/utility/any.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _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.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\nvar Obj = /*#__PURE__*/function () {\n function Obj() {\n _classCallCheck(this, Obj);\n }\n\n _createClass(Obj, null, [{\n key: \"has\",\n value: function has(obj, keys) {\n if (obj === null || obj === undefined) {\n return false;\n }\n\n if (keys === null || keys === undefined) {\n return false;\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArray(keys)) {\n keys = keys.join('.');\n }\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(keys)) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n var lst = keys.pop(),\n index = 0,\n length = keys.length;\n\n while (obj !== undefined && obj !== null && index < length) {\n obj = obj[keys[index++]];\n }\n\n if (obj === undefined || obj === null) {\n return false;\n }\n\n return obj[lst] !== undefined;\n }\n }, {\n key: \"empty\",\n value: function empty(obj, key) {\n return _any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isEmpty(this.get(obj, key, null));\n }\n }, {\n key: \"get\",\n value: function get(obj, keys) {\n var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n if (obj === null || obj === undefined) {\n return fallback;\n }\n\n if (keys === null || keys === undefined) {\n return fallback;\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArray(keys)) {\n keys = keys.join('.');\n }\n\n var undef = true;\n\n if (_typeof(obj) === 'object') {\n undef = obj[keys] === null || obj[keys] === undefined;\n }\n\n if (!undef) {\n return obj[keys];\n }\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(keys)) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n var index = 0,\n length = keys.length;\n\n if (length === 0) {\n return fallback;\n }\n\n while (obj !== undefined && obj !== null && index < length) {\n obj = obj[keys[index++]];\n }\n\n if (obj === undefined || obj === null) {\n return fallback;\n }\n\n return obj;\n }\n }, {\n key: \"set\",\n value: function set(obj, keys, val) {\n if (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArray(keys)) {\n keys = keys.join('.');\n }\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(keys)) {\n keys = keys.toString();\n }\n\n var undef = true;\n\n if (_typeof(obj) === 'object') {\n undef = obj[keys] === null || obj[keys] === undefined;\n }\n\n if (!undef) {\n obj[keys] = val;\n return obj;\n }\n\n keys = keys.split('.');\n var index = 0,\n length = keys.length,\n nested = obj;\n\n if (length === 0) {\n return obj;\n }\n\n while (nested !== null && index < length) {\n if (nested[keys[index]] === undefined || nested[keys[index]] === null) {\n nested[keys[index]] = {};\n }\n\n if (index == length - 1) {\n nested[keys[index]] = val;\n }\n\n nested = nested[keys[index++]];\n }\n\n return obj;\n }\n }, {\n key: \"unset\",\n value: function unset(obj, keys) {\n if (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArray(keys)) {\n keys = keys.join('.');\n }\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(keys)) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n var key = keys.shift();\n\n if (typeof obj[key] === 'undefined') {\n return obj;\n }\n\n if (keys.length === 0) {\n delete obj[key];\n return obj;\n }\n\n return this.unset(obj[key], keys);\n }\n }, {\n key: \"pluck\",\n value: function pluck(obj, keys) {\n var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var value = this.get(obj, keys, fallback);\n this.unset(obj, keys);\n return value;\n }\n }, {\n key: \"only\",\n value: function only(obj, keys) {\n var assign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var result = {};\n this.each(obj, function (val, key) {\n if (_array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].has(keys, key) === true) {\n result[key] = val;\n }\n });\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isEmpty(assign)) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n }, {\n key: \"except\",\n value: function except(obj, keys) {\n var assign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var result = {};\n this.each(obj, function (val, key) {\n if (_array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].has(keys, key) === false) {\n result[key] = val;\n }\n });\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isEmpty(assign)) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n }, {\n key: \"includes\",\n value: function includes(obj, val) {\n var result = true;\n\n var _iterator = _createForOfIteratorHelper(_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].keys(obj)),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var key = _step.value;\n\n if (typeof val[key] !== 'undefined') {\n result = (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlain(obj[key]) || _any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArray(obj[key]) ? this.includes(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return result;\n }\n }, {\n key: \"matches\",\n value: function matches(obj, val) {\n var result = true;\n\n var _iterator2 = _createForOfIteratorHelper(_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].keys(obj)),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var key = _step2.value;\n\n if (typeof val[key] !== 'undefined') {\n result = (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isObject(obj[key]) ? this.matches(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n return result;\n }\n }, {\n key: \"sort\",\n value: function sort(obj, key) {\n var keys = _any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].keys(obj);\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isFunction(key)) {\n keys = keys.sort(function (a, b) {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isFunction(key)) {\n keys = keys.sort(function (a, b) {\n return _any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].integer(Obj.get(obj[a], key)) - _any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].integer(Obj.get(obj[b], key));\n });\n }\n\n var result = [];\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(keys, function (key, index) {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n return result;\n }\n }, {\n key: \"sortString\",\n value: function sortString(obj, key) {\n var keys = _any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].keys(obj);\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isFunction(key)) {\n keys = keys.sort(function (a, b) {\n var va = _any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].string(Obj.get(obj[a], key)).toLowerCase();\n var vb = _any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].string(Obj.get(obj[b], key)).toLowerCase();\n return va < vb ? -1 : va > vb ? 1 : 0;\n });\n }\n\n var result = [];\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(keys, function (key, index) {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n return result;\n }\n }, {\n key: \"filter\",\n value: function filter(obj, _filter) {\n return Obj.each(Obj.filterIndex(obj, _filter), function (key) {\n return obj[key];\n });\n }\n }, {\n key: \"filterIndex\",\n value: function filterIndex(obj, filter) {\n return _any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].keys(obj).filter(function (key) {\n if (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isFunction(filter)) {\n return filter.call({}, obj[key], key);\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlain(filter)) {\n return Obj.includes(filter, obj[key]);\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArray(filter)) {\n return _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].includes(filter, obj[key]);\n }\n\n return filter === obj[key];\n });\n }\n }, {\n key: \"find\",\n value: function find(arr, obj) {\n var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n return _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].first(Obj.filter(arr, obj)) || fallback;\n }\n }, {\n key: \"findIndex\",\n value: function findIndex(arr, obj) {\n var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;\n return _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].first(Obj.filterIndex(arr, obj)) || fallback;\n }\n }, {\n key: \"clone\",\n value: function clone(obj) {\n var clone;\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArray(obj) === true) {\n return _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].clone(obj);\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlain(obj) === true) {\n clone = {};\n\n var _iterator3 = _createForOfIteratorHelper(_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].keys(obj)),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var key = _step3.value;\n clone[key] = Obj.clone(obj[key]);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n\n return clone;\n }\n\n return clone || obj;\n }\n }, {\n key: \"assign\",\n value: function assign() {\n return Object.assign.apply(Object, arguments);\n }\n }, {\n key: \"remove\",\n value: function remove(obj, keys) {\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(keys, function (key) {\n return delete obj[key];\n });\n return obj;\n }\n }, {\n key: \"each\",\n value: function each(obj, callback) {\n var result = {};\n\n if (global.FormData && obj instanceof FormData) {\n var _iterator4 = _createForOfIteratorHelper(obj.entries()),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var _step4$value = _slicedToArray(_step4.value, 2),\n key = _step4$value[0],\n value = _step4$value[1];\n\n result[key] = callback(value, key);\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n\n return obj;\n }\n\n var _iterator5 = _createForOfIteratorHelper(_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].keys(obj)),\n _step5;\n\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var _key = _step5.value;\n result[_key] = callback(obj[_key], _key);\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n\n return result;\n }\n }, {\n key: \"map\",\n value: function map(obj, callback) {\n var _iterator6 = _createForOfIteratorHelper(_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].keys(obj)),\n _step6;\n\n try {\n for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n var key = _step6.value;\n obj[key] = callback(obj[key], key);\n }\n } catch (err) {\n _iterator6.e(err);\n } finally {\n _iterator6.f();\n }\n\n return obj;\n }\n }, {\n key: \"values\",\n value: function values(obj) {\n var result = [];\n this.each(obj, function (val) {\n return result.push(val);\n });\n return result;\n }\n }, {\n key: \"flatten\",\n value: function flatten(obj) {\n var result = {};\n\n var callback = function callback(val) {\n var sey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].keys(val), function (key) {\n var tey = key;\n\n if (!_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isEmpty(sey)) {\n tey = \"\".concat(sey, \".\").concat(key);\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlain(val[key])) {\n return callback(val[key], tey);\n }\n\n result[tey] = val[key];\n });\n };\n\n callback(obj);\n return result;\n }\n }]);\n\n return Obj;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (Obj);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9QaWNvLy4vc3JjL3V0aWxpdHkvb2JqZWN0LmpzPzc0MDAiXSwibmFtZXMiOlsiT2JqIiwib2JqIiwia2V5cyIsInVuZGVmaW5lZCIsIkFueSIsImlzQXJyYXkiLCJqb2luIiwiaXNTdHJpbmciLCJ0b1N0cmluZyIsInNwbGl0IiwibHN0IiwicG9wIiwiaW5kZXgiLCJsZW5ndGgiLCJrZXkiLCJpc0VtcHR5IiwiZ2V0IiwiZmFsbGJhY2siLCJ1bmRlZiIsInZhbCIsIm5lc3RlZCIsInNoaWZ0IiwidW5zZXQiLCJ2YWx1ZSIsImFzc2lnbiIsInJlc3VsdCIsImVhY2giLCJBcnIiLCJoYXMiLCJpc1BsYWluIiwiaW5jbHVkZXMiLCJpc09iamVjdCIsIm1hdGNoZXMiLCJpc0Z1bmN0aW9uIiwic29ydCIsImEiLCJiIiwiY2FsbCIsImludGVnZXIiLCJ2YSIsInN0cmluZyIsInRvTG93ZXJDYXNlIiwidmIiLCJmaWx0ZXIiLCJmaWx0ZXJJbmRleCIsImFyciIsImZpcnN0IiwiY2xvbmUiLCJPYmplY3QiLCJjYWxsYmFjayIsImdsb2Jh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zcyBPYmpcbntcbiAgICBzdGF0aWMgaGFzKG9iaiwga2V5cylcbiAgICB7XG4gICAgICAgIGlmICggb2JqID09PSBudWxsIHx8IG9iaiA9PT0gdW5kZWZpbmVkICkge1xuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBrZXlzID09PSBudWxsIHx8IGtleXMgPT09IHVuZGVmaW5lZCApIHtcbiAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggQW55LmlzQXJyYXkoa2V5cykgKSB7XG4gICAgICAgICAgICBrZXlzID0ga2V5cy5qb2luKCcuJyk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoICEgQW55LmlzU3RyaW5nKGtleXMpICkge1xuICAgICAgICAgICAga2V5cyA9IGtleXMudG9TdHJpbmcoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGtleXMgPSBrZXlzLnNwbGl0KCcuJyk7XG5cbiAgICAgICAgbGV0IGxzdCA9IGtleXMucG9wKCksIGluZGV4ID0gMCwgbGVuZ3RoID0ga2V5cy5sZW5ndGg7XG5cbiAgICAgICAgd2hpbGUgKG9iaiAhPT0gdW5kZWZpbmVkICYmIG9iaiAhPT0gbnVsbCAmJiBpbmRleCA8IGxlbmd0aCkge1xuICAgICAgICAgICAgb2JqID0gb2JqW2tleXNbaW5kZXgrK11dO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBvYmogPT09IHVuZGVmaW5lZCB8fCBvYmogPT09IG51bGwpIHtcbiAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBvYmpbbHN0XSAhPT0gdW5kZWZpbmVkO1xuICAgIH1cblxuICAgIHN0YXRpYyBlbXB0eShvYmosIGtleSlcbiAgICB7XG4gICAgICAgIHJldHVybiBBbnkuaXNFbXB0eSh0aGlzLmdldChvYmosIGtleSwgbnVsbCkpO1xuICAgIH1cblxuICAgIHN0YXRpYyBnZXQob2JqLCBrZXlzLCBmYWxsYmFjayA9IG51bGwpXG4gICAge1xuICAgICAgICBpZiAoIG9iaiA9PT0gbnVsbCB8fCBvYmogPT09IHVuZGVmaW5lZCApIHtcbiAgICAgICAgICAgIHJldHVybiBmYWxsYmFjaztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICgga2V5cyA9PT0gbnVsbCB8fCBrZXlzID09PSB1bmRlZmluZWQgKSB7XG4gICAgICAgICAgICByZXR1cm4gZmFsbGJhY2s7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIEFueS5pc0FycmF5KGtleXMpICkge1xuICAgICAgICAgICAga2V5cyA9IGtleXMuam9pbignLicpO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHVuZGVmID0gdHJ1ZTtcblxuICAgICAgICBpZiAoIHR5cGVvZiBvYmogPT09ICdvYmplY3QnICkge1xuICAgICAgICAgICAgdW5kZWYgPSBvYmpba2V5c10gPT09IG51bGwgfHwgb2JqW2tleXNdID09PSB1bmRlZmluZWRcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggISB1bmRlZiApIHtcbiAgICAgICAgICAgIHJldHVybiBvYmpba2V5c107XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoICEgQW55LmlzU3RyaW5nKGtleXMpICkge1xuICAgICAgICAgICAga2V5cyA9IGtleXMudG9TdHJpbmcoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGtleXMgPSBrZXlzLnNwbGl0KCcuJyk7XG5cbiAgICAgICAgbGV0IGluZGV4ID0gMCwgbGVuZ3RoID0ga2V5cy5sZW5ndGg7XG5cbiAgICAgICAgaWYgKCBsZW5ndGggPT09IDAgKSB7XG4gICAgICAgICAgICByZXR1cm4gZmFsbGJhY2s7XG4gICAgICAgIH1cblxuICAgICAgICB3aGlsZSAob2JqICE9PSB1bmRlZmluZWQgJiYgb2JqICE9PSBudWxsICYmIGluZGV4IDwgbGVuZ3RoKSB7XG4gICAgICAgICAgICBvYmogPSBvYmpba2V5c1tpbmRleCsrXV07XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIG9iaiA9PT0gdW5kZWZpbmVkIHx8IG9iaiA9PT0gbnVsbCkge1xuICAgICAgICAgICAgcmV0dXJuIGZhbGxiYWNrO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG9iajtcbiAgICB9XG5cbiAgICBzdGF0aWMgc2V0KG9iaiwga2V5cywgdmFsKVxuICAgIHtcbiAgICAgICAgaWYgKCBBbnkuaXNBcnJheShrZXlzKSApIHtcbiAgICAgICAgICAgIGtleXMgPSBrZXlzLmpvaW4oJy4nKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggISBBbnkuaXNTdHJpbmcoa2V5cykgKSB7XG4gICAgICAgICAgICBrZXlzID0ga2V5cy50b1N0cmluZygpO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHVuZGVmID0gdHJ1ZTtcblxuICAgICAgICBpZiAoIHR5cGVvZiBvYmogPT09ICdvYmplY3QnICkge1xuICAgICAgICAgICAgdW5kZWYgPSBvYmpba2V5c10gPT09IG51bGwgfHwgb2JqW2tleXNdID09PSB1bmRlZmluZWRcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggISB1bmRlZiApIHtcbiAgICAgICAgICAgIG9ialtrZXlzXSA9IHZhbDsgcmV0dXJuIG9iajtcbiAgICAgICAgfVxuXG4gICAgICAgIGtleXMgPSBrZXlzLnNwbGl0KCcuJyk7XG5cbiAgICAgICAgbGV0IGluZGV4ID0gMCwgbGVuZ3RoID0ga2V5cy5sZW5ndGgsIG5lc3RlZCA9IG9iajtcblxuICAgICAgICBpZiAoIGxlbmd0aCA9PT0gMCApIHtcbiAgICAgICAgICAgIHJldHVybiBvYmo7XG4gICAgICAgIH1cblxuICAgICAgICB3aGlsZSAobmVzdGVkICE9PSBudWxsICYmIGluZGV4IDwgbGVuZ3RoKSB7XG5cbiAgICAgICAgICAgIGlmICggbmVzdGVkW2tleXNbaW5kZXhdXSA9PT0gdW5kZWZpbmVkIHx8IG5lc3RlZFtrZXlzW2luZGV4XV0gPT09IG51bGwgKSB7XG4gICAgICAgICAgICAgICAgbmVzdGVkW2tleXNbaW5kZXhdXSA9IHt9O1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoIGluZGV4ID09IGxlbmd0aCAtIDEgKSB7XG4gICAgICAgICAgICAgICAgbmVzdGVkW2tleXNbaW5kZXhdXSA9IHZhbDtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgbmVzdGVkID0gbmVzdGVkW2tleXNbaW5kZXgrK11dO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG9iajtcbiAgICB9XG5cbiAgICBzdGF0aWMgdW5zZXQob2JqLCBrZXlzKVxuICAgIHtcbiAgICAgICAgaWYgKCBBbnkuaXNBcnJheShrZXlzKSApIHtcbiAgICAgICAgICAgIGtleXMgPSBrZXlzLmpvaW4oJy4nKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggISBBbnkuaXNTdHJpbmcoa2V5cykgKSB7XG4gICAgICAgICAgICBrZXlzID0ga2V5cy50b1N0cmluZygpO1xuICAgICAgICB9XG5cbiAgICAgICAga2V5cyA9IGtleXMuc3BsaXQoJy4nKTtcblxuICAgICAgICBsZXQga2V5ID0ga2V5cy5zaGlmdCgpO1xuXG4gICAgICAgIGlmICggdHlwZW9mIG9ialtrZXldID09PSAndW5kZWZpbmVkJyApIHtcbiAgICAgICAgICAgIHJldHVybiBvYmo7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIGtleXMubGVuZ3RoID09PSAwICkge1xuICAgICAgICAgICAgZGVsZXRlIG9ialtrZXldO1xuICAgICAgICAgICAgcmV0dXJuIG9iajtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0aGlzLnVuc2V0KG9ialtrZXldLCBrZXlzKTtcbiAgICB9XG5cbiAgICBzdGF0aWMgcGx1Y2sob2JqLCBrZXlzLCBmYWxsYmFjayA9IG51bGwpXG4gICAge1xuICAgICAgICBsZXQgdmFsdWUgPSB0aGlzLmdldChvYmosIGtleXMsIGZhbGxiYWNrKTtcblxuICAgICAgICB0aGlzLnVuc2V0KG9iaiwga2V5cyk7XG5cbiAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgIH1cblxuICAgIHN0YXRpYyBvbmx5KG9iaiwga2V5cywgYXNzaWduID0gbnVsbClcbiAgICB7XG4gICAgICAgIGxldCByZXN1bHQgPSB7fTtcblxuICAgICAgICB0aGlzLmVhY2gob2JqLCAodmFsLCBrZXkpID0+IHtcbiAgICAgICAgICAgIGlmICggQXJyLmhhcyhrZXlzLCBrZXkpID09PSB0cnVlICkge1xuICAgICAgICAgICAgICAgIHJlc3VsdFtrZXldID0gdmFsO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgICAgICBpZiAoICFBbnkuaXNFbXB0eShhc3NpZ24pICkge1xuICAgICAgICAgICAgcmVzdWx0ID0gdGhpcy5hc3NpZ24ocmVzdWx0LCBhc3NpZ24pO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9XG5cbiAgICBzdGF0aWMgZXhjZXB0KG9iaiwga2V5cywgYXNzaWduID0gbnVsbClcbiAgICB7XG4gICAgICAgIGxldCByZXN1bHQgPSB7fTtcblxuICAgICAgICB0aGlzLmVhY2gob2JqLCAodmFsLCBrZXkpID0+IHtcbiAgICAgICAgICAgIGlmICggQXJyLmhhcyhrZXlzLCBrZXkpID09PSBmYWxzZSApIHtcbiAgICAgICAgICAgICAgICByZXN1bHRba2V5XSA9IHZhbDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgaWYgKCAhQW55LmlzRW1wdHkoYXNzaWduKSApIHtcbiAgICAgICAgICAgIHJlc3VsdCA9IHRoaXMuYXNzaWduKHJlc3VsdCwgYXNzaWduKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgfVxuXG4gICAgc3RhdGljIGluY2x1ZGVzKG9iaiwgdmFsKVxuICAgIHtcbiAgICAgICAgbGV0IHJlc3VsdCA9IHRydWU7XG5cbiAgICAgICAgZm9yICggbGV0IGtleSBvZiBBbnkua2V5cyhvYmopICkge1xuICAgICAgICAgICAgaWYgKCB0eXBlb2YgdmFsW2tleV0gIT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgICAgIHJlc3VsdCA9IChBbnkuaXNQbGFpbihvYmpba2V5XSkgfHwgQW55LmlzQXJyYXkob2JqW2tleV0pID9cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5pbmNsdWRlcyhvYmpba2V5XSwgdmFsW2tleV0pIDogb2JqW2tleV0gPT09IHZhbFtrZXldKSAmJiByZXN1bHQ7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgIH1cblxuICAgIHN0YXRpYyBtYXRjaGVzKG9iaiwgdmFsKVxuICAgIHtcbiAgICAgICAgbGV0IHJlc3VsdCA9IHRydWU7XG5cbiAgICAgICAgZm9yICggbGV0IGtleSBvZiBBbnkua2V5cyhvYmopICkge1xuICAgICAgICAgICAgaWYgKCB0eXBlb2YgdmFsW2tleV0gIT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgICAgIHJlc3VsdCA9IChBbnkuaXNPYmplY3Qob2JqW2tleV0pID9cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5tYXRjaGVzKG9ialtrZXldLCB2YWxba2V5XSkgOiBvYmpba2V5XSA9PT0gdmFsW2tleV0pICYmIHJlc3VsdDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgfVxuXG4gICAgc3RhdGljIHNvcnQob2JqLCBrZXkpXG4gICAge1xuICAgICAgICBsZXQga2V5cyA9IEFueS5rZXlzKG9iaik7XG5cbiAgICAgICAgaWYgKCBBbnkuaXNGdW5jdGlvbihrZXkpICkge1xuICAgICAgICAgICAga2V5cyA9IGtleXMuc29ydCgoYSwgYikgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBrZXkuY2FsbCh7fSwgb2JqW2FdLCBvYmpbYl0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoICFBbnkuaXNGdW5jdGlvbihrZXkpICkge1xuICAgICAgICAgICAga2V5cyA9IGtleXMuc29ydCgoYSwgYikgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBBbnkuaW50ZWdlcihPYmouZ2V0KG9ialthXSwga2V5KSkgLSBBbnkuaW50ZWdlcihPYmouZ2V0KG9ialtiXSwga2V5KSk7XG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHJlc3VsdCA9IFtdO1xuXG4gICAgICAgIEFyci5lYWNoKGtleXMsIChrZXksIGluZGV4KSA9PiB7XG4gICAgICAgICAgICBvYmpba2V5XVsnX2tleSddID0ga2V5O1xuICAgICAgICAgICAgcmVzdWx0W2luZGV4XSA9IG9ialtrZXldO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgIH1cblxuICAgIHN0YXRpYyBzb3J0U3RyaW5nKG9iaiwga2V5KVxuICAgIHtcbiAgICAgICAgbGV0IGtleXMgPSBBbnkua2V5cyhvYmopO1xuXG4gICAgICAgIGlmICggIUFueS5pc0Z1bmN0aW9uKGtleSkgKSB7XG4gICAgICAgICAgICBrZXlzID0ga2V5cy5zb3J0KChhLCBiKSA9PiB7XG5cbiAgICAgICAgICAgICAgICBsZXQgdmEgPSBBbnkuc3RyaW5nKE9iai5nZXQob2JqW2FdLCBrZXkpKS50b0xvd2VyQ2FzZSgpO1xuICAgICAgICAgICAgICAgIGxldCB2YiA9IEFueS5zdHJpbmcoT2JqLmdldChvYmpbYl0sIGtleSkpLnRvTG93ZXJDYXNlKCk7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gKHZhIDwgdmIpID8gLSAxIDogKHZhID4gdmIpID8gMSA6IDA7XG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHJlc3VsdCA9IFtdO1xuXG4gICAgICAgIEFyci5lYWNoKGtleXMsIChrZXksIGluZGV4KSA9PiB7XG4gICAgICAgICAgICBvYmpba2V5XVsnX2tleSddID0ga2V5O1xuICAgICAgICAgICAgcmVzdWx0W2luZGV4XSA9IG9ialtrZXldO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgIH1cblxuICAgIHN0YXRpYyBmaWx0ZXIob2JqLCBmaWx0ZXIpXG4gICAge1xuICAgICAgICByZXR1cm4gT2JqLmVhY2goT2JqLmZpbHRlckluZGV4KG9iaiwgZmlsdGVyKSwgKGtleSkgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIG9ialtrZXldO1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBzdGF0aWMgZmlsdGVySW5kZXgob2JqLCBmaWx0ZXIpXG4gICAge1xuICAgICAgICByZXR1cm4gQW55LmtleXMob2JqKS5maWx0ZXIoKGtleSkgPT4ge1xuXG4gICAgICAgICAgICBpZiAoIEFueS5pc0Z1bmN0aW9uKGZpbHRlcikgKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGZpbHRlci5jYWxsKHt9LCBvYmpba2V5XSwga2V5KTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKCBBbnkuaXNQbGFpbihmaWx0ZXIpICkge1xuICAgICAgICAgICAgICAgIHJldHVybiBPYmouaW5jbHVkZXMoZmlsdGVyLCBvYmpba2V5XSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmICggQW55LmlzQXJyYXkoZmlsdGVyKSApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gQXJyLmluY2x1ZGVzKGZpbHRlciwgb2JqW2tleV0pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gZmlsdGVyID09PSBvYmpba2V5XTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgc3RhdGljIGZpbmQoYXJyLCBvYmosIGZhbGxiYWNrID0gbnVsbClcbiAgICB7XG4gICAgICAgIHJldHVybiBBcnIuZmlyc3QoT2JqLmZpbHRlcihhcnIsIG9iaikpIHx8IGZhbGxiYWNrO1xuICAgIH1cblxuICAgIHN0YXRpYyBmaW5kSW5kZXgoYXJyLCBvYmosIGZhbGxiYWNrID0gLSAxKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIEFyci5maXJzdChPYmouZmlsdGVySW5kZXgoYXJyLCBvYmopKSB8fCBmYWxsYmFjaztcbiAgICB9XG5cbiAgICBzdGF0aWMgY2xvbmUob2JqKVxuICAgIHtcbiAgICAgICAgbGV0IGNsb25lO1xuXG4gICAgICAgIGlmICggQW55LmlzQXJyYXkob2JqKSA9PT0gdHJ1ZSApIHtcbiAgICAgICAgICAgIHJldHVybiBBcnIuY2xvbmUob2JqKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggQW55LmlzUGxhaW4ob2JqKSA9PT0gdHJ1ZSApIHtcblxuICAgICAgICAgICAgY2xvbmUgPSB7fTtcblxuICAgICAgICAgICAgZm9yICggbGV0IGtleSBvZiBBbnkua2V5cyhvYmopICkge1xuICAgICAgICAgICAgICAgIGNsb25lW2tleV0gPSBPYmouY2xvbmUob2JqW2tleV0pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gY2xvbmU7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gY2xvbmUgfHwgb2JqO1xuICAgIH1cblxuICAgIHN0YXRpYyBhc3NpZ24oLi4uYXJncylcbiAgICB7XG4gICAgICAgIHJldHVybiBPYmplY3QuYXNzaWduKC4uLmFyZ3MpO1xuICAgIH1cblxuICAgIHN0YXRpYyByZW1vdmUob2JqLCBrZXlzKVxuICAgIHtcbiAgICAgICAgQXJyLmVhY2goa2V5cywgKGtleSkgPT4gZGVsZXRlIG9ialtrZXldKTtcblxuICAgICAgICByZXR1cm4gb2JqO1xuICAgIH1cblxuICAgIHN0YXRpYyBlYWNoKG9iaiwgY2FsbGJhY2spXG4gICAge1xuICAgICAgICBsZXQgcmVzdWx0ID0ge307XG5cbiAgICAgICAgaWYgKCBnbG9iYWwuRm9ybURhdGEgJiYgb2JqIGluc3RhbmNlb2YgRm9ybURhdGEgKSB7XG5cbiAgICAgICAgICAgIGZvciAoIGxldCBba2V5LCB2YWx1ZV0gb2Ygb2JqLmVudHJpZXMoKSApIHtcbiAgICAgICAgICAgICAgICByZXN1bHRba2V5XSA9IGNhbGxiYWNrKHZhbHVlLCBrZXkpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gb2JqO1xuICAgICAgICB9XG5cbiAgICAgICAgZm9yICggbGV0IGtleSBvZiBBbnkua2V5cyhvYmopICkge1xuICAgICAgICAgICAgcmVzdWx0W2tleV0gPSBjYWxsYmFjayhvYmpba2V5XSwga2V5KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgfVxuXG4gICAgc3RhdGljIG1hcChvYmosIGNhbGxiYWNrKVxuICAgIHtcbiAgICAgICAgZm9yICggbGV0IGtleSBvZiBBbnkua2V5cyhvYmopICkge1xuICAgICAgICAgICAgb2JqW2tleV0gPSBjYWxsYmFjayhvYmpba2V5XSwga2V5KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBvYmo7XG4gICAgfVxuXG4gICAgc3RhdGljIHZhbHVlcyhvYmopXG4gICAge1xuICAgICAgICBsZXQgcmVzdWx0ID0gW107XG5cbiAgICAgICAgdGhpcy5lYWNoKG9iaiwgdmFsID0+IHJlc3VsdC5wdXNoKHZhbCkpO1xuXG4gICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgfVxuXG4gICAgc3RhdGljIGZsYXR0ZW4ob2JqKVxuICAgIHtcbiAgICAgICAgbGV0IHJlc3VsdCA9IHt9O1xuXG4gICAgICAgIGxldCBjYWxsYmFjayA9ICh2YWwsIHNleSA9IG51bGwpID0+IHtcblxuICAgICAgICAgICAgQXJyLmVhY2goQW55LmtleXModmFsKSwgKGtleSkgPT4ge1xuXG4gICAgICAgICAgICAgICAgbGV0IHRleSA9IGtleTtcblxuICAgICAgICAgICAgICAgIGlmICggISBBbnkuaXNFbXB0eShzZXkpICkge1xuICAgICAgICAgICAgICAgICAgICB0ZXkgPSBgJHtzZXl9LiR7a2V5fWA7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKCBBbnkuaXNQbGFpbih2YWxba2V5XSkgKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBjYWxsYmFjayh2YWxba2V5XSwgdGV5KTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICByZXN1bHRbdGV5XSA9IHZhbFtrZXldO1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgfTtcblxuICAgICAgICBjYWxsYmFjayhvYmopO1xuXG4gICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgfVxuXG59XG5cbmV4cG9ydCBkZWZhdWx0IE9iajtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utility/object.js\n");
|
342
|
+
|
343
|
+
/***/ }),
|
344
|
+
|
345
|
+
/***/ "./src/utility/string.js":
|
346
|
+
/*!*******************************!*\
|
347
|
+
!*** ./src/utility/string.js ***!
|
348
|
+
\*******************************/
|
349
|
+
/*! exports provided: Str, default */
|
350
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
351
|
+
|
352
|
+
"use strict";
|
353
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Str\", function() { return Str; });\n/* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array.js */ \"./src/utility/array.js\");\n/* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./object.js */ \"./src/utility/object.js\");\n/* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./number.js */ \"./src/utility/number.js\");\n/* harmony import */ var _any_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./any.js */ \"./src/utility/any.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\n\n\nvar Str = /*#__PURE__*/function () {\n function Str() {\n _classCallCheck(this, Str);\n }\n\n _createClass(Str, null, [{\n key: \"regexEscape\",\n value: function regexEscape(val) {\n return String(val).replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n }, {\n key: \"upper\",\n value: function upper(val) {\n return String(val).toUpperCase();\n }\n }, {\n key: \"lower\",\n value: function lower(val) {\n return String(val).toLowerCase();\n }\n }, {\n key: \"camelcase\",\n value: function camelcase(val) {\n var slug = Str.slugify(val);\n var slugSplits = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(slug.split('-'), function (split, index) {\n if (index === 0) {\n return split;\n }\n\n return Str.ucfirst(split);\n });\n return slugSplits.join('');\n }\n }, {\n key: \"humancase\",\n value: function humancase(val) {\n var slug = Str.slugify(val);\n var slugSplits = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(slug.split('-'), function (split) {\n return Str.ucfirst(split);\n });\n return slugSplits.join(' ');\n }\n }, {\n key: \"slugify\",\n value: function slugify(val) {\n val = String(val).replace(/^\\s+|\\s+$/g, '').toLowerCase();\n var sources = ['à', 'á', 'â', 'è', 'é', 'ê', 'ì', 'í', 'ï', 'î', 'ò', 'ó', 'ô', 'ù', 'ú', 'û', 'ñ', 'ç', '·', '/', '_', ',', ':', ';', 'ä', 'ö', 'ü'];\n var targets = ['a', 'a', 'a', 'e', 'e', 'e', 'i', 'i', 'i', 'i', 'o', 'o', 'o', 'u', 'u', 'u', 'n', 'c', '-', '-', '-', '-', '-', '-', 'ae', 'oe', 'ue'];\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(sources, function (source, index) {\n val = val.replace(new RegExp(source.charAt(source), 'g'), targets[index]);\n });\n return val.replace(/[^a-z0-9 -]/g, '').replace(/\\s+/g, '-').replace(/-+/g, '-');\n }\n }, {\n key: \"ucfirst\",\n value: function ucfirst(val) {\n return val.charAt(0).toUpperCase() + val.slice(1);\n }\n }, {\n key: \"lcfirst\",\n value: function lcfirst(val) {\n return val.charAt(0).toLowerCase() + val.slice(1);\n }\n }, {\n key: \"has\",\n value: function has(val, search) {\n return this.lower(val).indexOf(this.lower(search)) !== -1;\n }\n }, {\n key: \"filesize\",\n value: function filesize(val) {\n var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n var size = null;\n var units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(units, function (unit, count) {\n var limit = Math.pow(1000, _any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].integer(count));\n\n if (val <= limit) {\n return;\n }\n\n size = _number_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].fixed(val / limit, decimals) + ' ' + unit;\n });\n return size;\n }\n }, {\n key: \"array\",\n value: function array(value) {\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n value = value.replace(/^@\\[(.*?)?\\]$/, '$1');\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isEmpty(value)) {\n return fallback;\n }\n\n return _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].each(value.split(','), function (val) {\n return Str.real(val.replace(/(^\"|^'|\"$|'$)/g, ''));\n });\n }\n }, {\n key: \"real\",\n value: function real(value) {\n if (typeof value === 'string' && value.match(/^@\\[.*?\\]$/)) {\n value = Str.array(value);\n }\n\n if (typeof value === 'string' && value.match(/^(null|undefined)$/i)) {\n value = null;\n }\n\n if (typeof value === 'string' && value.match(/^(true|false)$/i)) {\n value = _any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].bool(value);\n }\n\n if (typeof value === 'string' && value.match(/^[0-9]+$/)) {\n value = _number_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"][\"int\"](value);\n }\n\n if (typeof value === 'string' && value.match(/^[0-9]+\\\\.[0-9]+$/)) {\n value = _number_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"][\"float\"](value);\n }\n\n return value;\n }\n /**\n * Parse param string to object\n */\n\n }, {\n key: \"objectify\",\n value: function objectify(value) {\n var mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'options';\n var isArray = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isObject(value)) {\n return value;\n }\n\n if (mode === 'params') {\n return Str.fromParams(value, isArray);\n }\n\n if (mode === 'options') {\n return Str.fromOptions(value, isArray);\n }\n\n return JSON.parse(value);\n }\n /**\n * Parse param object to string\n */\n\n }, {\n key: \"stringify\",\n value: function stringify(value) {\n var mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'options';\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isString(value)) {\n return value;\n }\n\n if (mode === 'params') {\n return Str.params(value);\n }\n\n if (mode === 'options') {\n return Str.options(value);\n }\n\n return JSON.stringify(value);\n }\n /**\n * Parse object to string (e.g. foo:bar;test:lorem).\n */\n\n }, {\n key: \"options\",\n value: function options(params) {\n var quota = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isEmpty(params)) {\n return '';\n }\n\n var result = [];\n _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].each(params, function (value, key) {\n if (quota !== null) {\n key = quota + '.' + key;\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isObject(value)) {\n return result.push(Str.options(value, key).replace(/;$/, ''));\n }\n\n result.push(String(key) + ':' + String(value));\n });\n return result.join(';') + ';';\n }\n /**\n * Parse string to object (e.g. foo:bar;test:lorem).\n */\n\n }, {\n key: \"fromOptions\",\n value: function fromOptions(value) {\n var isArray = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isEmpty(value)) {\n return {};\n }\n\n var regex = '(^|;)(\\\\s*(.*?)\\\\s*:\\\\s*' + '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=;|$)';\n var matches = value.match(new RegExp(regex, 'g'));\n var result = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].reduce(matches || [], this.convertFromOptions, {});\n\n if (isArray) {\n return _any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].vals(result);\n }\n\n return result;\n }\n }, {\n key: \"convertFromOptions\",\n value: function convertFromOptions(result, match) {\n // Get key and value from match\n var attr = match.match(/^;?\\s*(.*?)\\s*:\\s*(\".*?\"|'.*?'|.*?)\\s*$/); // Skip if length does not match\n\n if (attr.length !== 3) {\n return result;\n }\n\n var val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].set(result, attr[1], val);\n return result;\n }\n /**\n * Parse object to string (e.g. foo=bar&test=lorem).\n */\n\n }, {\n key: \"params\",\n value: function params(_params) {\n var quota = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isEmpty(_params)) {\n return '';\n }\n\n var result = [];\n _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].each(_params, function (value, key) {\n if (quota !== null) {\n key = quota + '[' + key + ']';\n }\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isObject(value)) {\n return result.push(Str.params(value, key));\n }\n\n result.push(String(key) + '=' + String(value));\n });\n return result.join('&');\n }\n /**\n * Parse string to object (e.g. foo=bar&test=lorem).\n */\n\n }, {\n key: \"fromParams\",\n value: function fromParams(value) {\n var isArray = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n if (_any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isEmpty(value)) {\n return {};\n }\n\n var regex = '(^|&)(\\\\s*(.*?)\\\\s*=\\\\s*' + '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=&|$)';\n var matches = value.match(new RegExp(regex, 'g'));\n var result = _array_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].reduce(matches || [], this.convertFromParams, {});\n\n if (isArray) {\n return _any_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].vals(result);\n }\n\n return result;\n }\n }, {\n key: \"convertFromParams\",\n value: function convertFromParams(result, match) {\n // Get key and value from match\n var attr = match.match(/^&?\\s*(.*?)\\s*=\\s*(\".*?\"|'.*?'|.*?)\\s*$/); // Skip if length does not match\n\n if (attr.length !== 3) {\n return result;\n }\n\n var key = attr[1].replace(/(\\]\\[|\\[|\\])/g, '.').replace(/\\.$/, '');\n var val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n _object_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].set(result, key, val);\n return result;\n }\n }]);\n\n return Str;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (Str);//# sourceURL=[module]\n//# sourceMappingURL=data:application/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DpycsICfCtycsICcvJywgJ18nLCAnLCcsICc6JywgJzsnLCAnw6QnLCAnw7YnLCAnw7wnXG4gICAgICAgIF07XG5cbiAgICAgICAgbGV0IHRhcmdldHMgPSBbXG4gICAgICAgICAgICAnYScsICdhJywgJ2EnLCAnZScsICdlJywgJ2UnLCAnaScsICdpJywgJ2knLCAnaScsICdvJywgJ28nLCAnbycsXG4gICAgICAgICAgICAndScsICd1JywgJ3UnLCAnbicsICdjJywgJy0nLCAnLScsICctJywgJy0nLCAnLScsICctJywgJ2FlJywgJ29lJywgJ3VlJ1xuICAgICAgICBdO1xuXG4gICAgICAgIEFyci5lYWNoKHNvdXJjZXMsIChzb3VyY2UsIGluZGV4KSA9PiB7XG4gICAgICAgICAgICB2YWwgPSB2YWwucmVwbGFjZShuZXcgUmVnRXhwKHNvdXJjZS5jaGFyQXQoc291cmNlKSwgJ2cnKSwgdGFyZ2V0c1tpbmRleF0pO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gdmFsLnJlcGxhY2UoL1teYS16MC05IC1dL2csICcnKVxuICAgICAgICAgICAgLnJlcGxhY2UoL1xccysvZywgJy0nKS5yZXBsYWNlKC8tKy9nLCAnLScpO1xuICAgIH1cblxuICAgIHN0YXRpYyB1Y2ZpcnN0KHZhbClcbiAgICB7XG4gICAgICAgIHJldHVybiB2YWwuY2hhckF0KDApLnRvVXBwZXJDYXNlKCkgKyB2YWwuc2xpY2UoMSk7XG4gICAgfVxuXG4gICAgc3RhdGljIGxjZmlyc3QodmFsKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIHZhbC5jaGFyQXQoMCkudG9Mb3dlckNhc2UoKSArIHZhbC5zbGljZSgxKTtcbiAgICB9XG5cbiAgICBzdGF0aWMgaGFzKHZhbCwgc2VhcmNoKVxuICAgIHtcbiAgICAgICAgcmV0dXJuIHRoaXMubG93ZXIodmFsKS5pbmRleE9mKHRoaXMubG93ZXIoc2VhcmNoKSkgIT09IC0xO1xuICAgIH1cblxuICAgIHN0YXRpYyBmaWxlc2l6ZSh2YWwsIGRlY2ltYWxzID0gMSlcbiAgICB7XG4gICAgICAgIGxldCBzaXplID0gbnVsbDtcblxuICAgICAgICBsZXQgdW5pdHMgPSBbXG4gICAgICAgICAgICAnQicsICdLQicsICdNQicsICdHQicsICdUQicsICdQQicsICdFQicsICdaQicsICdZQidcbiAgICAgICAgXTtcblxuICAgICAgICBBcnIuZWFjaCh1bml0cywgKHVuaXQsIGNvdW50KSA9PiB7XG5cbiAgICAgICAgICAgIGxldCBsaW1pdCA9IE1hdGgucG93KDEwMDAsIEFueS5pbnRlZ2VyKGNvdW50KSk7XG5cbiAgICAgICAgICAgIGlmICggdmFsIDw9IGxpbWl0KSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBzaXplID0gTnVtLmZpeGVkKHZhbCAvIGxpbWl0LCBkZWNpbWFscykgKyAnICcgKyB1bml0O1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gc2l6ZTtcbiAgICB9XG5cbiAgICBzdGF0aWMgYXJyYXkodmFsdWUsIGZhbGxiYWNrID0gW10pXG4gICAge1xuICAgICAgICB2YWx1ZSA9IHZhbHVlLnJlcGxhY2UoL15AXFxbKC4qPyk/XFxdJC8sICckMScpO1xuXG4gICAgICAgIGlmICggQW55LmlzRW1wdHkodmFsdWUpICkgIHtcbiAgICAgICAgICAgIHJldHVybiBmYWxsYmFjaztcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBBcnIuZWFjaCh2YWx1ZS5zcGxpdCgnLCcpLCAodmFsKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gU3RyLnJlYWwodmFsLnJlcGxhY2UoLyheXCJ8Xid8XCIkfCckKS9nLCAnJykpO1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBzdGF0aWMgcmVhbCh2YWx1ZSlcbiAgICB7XG4gICAgICAgIGlmICggdHlwZW9mIHZhbHVlID09PSAnc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gICAgICAgaWYgKCBtb2RlID09PSAncGFyYW1zJyApIHtcbiAgICAgICAgICAgIHJldHVybiBTdHIuZnJvbVBhcmFtcyh2YWx1ZSwgaXNBcnJheSk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIG1vZGUgPT09ICdvcHRpb25zJyApIHtcbiAgICAgICAgICAgIHJldHVybiBTdHIuZnJvbU9wdGlvbnModmFsdWUsIGlzQXJyYXkpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIEpTT04ucGFyc2UodmFsdWUpO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFBhcnNlIHBhcmFtIG9iamVjdCB0byBzdHJpbmdcbiAgICAgKi9cbiAgICBzdGF0aWMgc3RyaW5naWZ5KHZhbHVlLCBtb2RlID0gJ29wdGlvbnMnKVxuICAgIHtcbiAgICAgICAgaWYgKCBBbnkuaXNTdHJpbmcodmFsdWUpICkge1xuICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgICB9XG4gICAgICAgIGlmICggbW9kZSA9PT0gJ3BhcmFtcycgKSB7XG4gICAgICAgICAgICByZXR1cm4gU3RyLnBhcmFtcyh2YWx1ZSk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIG1vZGUgPT09ICdvcHRpb25zJyApIHtcbiAgICAgICAgICAgIHJldHVybiBTdHIub3B0aW9ucyh2YWx1ZSk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkodmFsdWUpO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFBhcnNlIG9iamVjdCB0byBzdHJpbmcgKGUuZy4gZm9vOmJhcjt0ZXN0OmxvcmVtKS5cbiAgICAgKi9cbiAgICBzdGF0aWMgb3B0aW9ucyhwYXJhbXMsIHF1b3RhID0gbnVsbClcbiAgICB7XG4gICAgICAgIGlmICggQW55LmlzRW1wdHkocGFyYW1zKSApIHtcbiAgICAgICAgICAgIHJldHVybiAnJztcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCByZXN1bHQgPSBbXTtcblxuICAgICAgICBPYmouZWFjaChwYXJhbXMsICh2YWx1ZSwga2V5KSA9PiB7XG5cbiAgICAgICAgICAgIGlmICggcXVvdGEgIT09IG51bGwgKSB7XG4gICAgICAgICAgICAgICAga2V5ID0gcXVvdGEgKyAnLicgKyBrZXk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmICggQW55LmlzT2JqZWN0KHZhbHVlKSApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gcmVzdWx0LnB1c2goU3RyLm9wdGlvbnModmFsdWUsIGtleSkucmVwbGFjZSgvOyQvLCAnJykpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXN1bHQucHVzaChTdHJpbmcoa2V5KSArICc6JyArIFN0cmluZyh2YWx1ZSkpO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gcmVzdWx0LmpvaW4oJzsnKSArICc7JztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBQYXJzZSBzdHJpbmcgdG8gb2JqZWN0IChlLmcuIGZvbzpiYXI7dGVzdDpsb3JlbSkuXG4gICAgICovXG4gICAgc3RhdGljIGZyb21PcHRpb25zKHZhbHVlLCBpc0FycmF5ID0gZmFsc2UpXG4gICAge1xuICAgICAgICBpZiAoIEFueS5pc0VtcHR5KHZhbHVlKSApIHtcbiAgICAgICAgICAgIHJldHVybiB7fTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCByZWdleCA9ICcoXnw7KShcXFxccyooLio/KVxcXFxzKjpcXFxccyonICtcbiAgICAgICAgICAgICcoXCIuKj9cInxcXCcuKj9cXCd8Lio/KVxcXFxzKikoPz07fCQpJztcblxuICAgICAgICBsZXQgbWF0Y2hlcyA9IHZhbHVlLm1hdGNoKG5ldyBSZWdFeHAocmVnZXgsICdnJykpO1xuXG4gICAgICAgIGxldCByZXN1bHQgPSBBcnIucmVkdWNlKG1hdGNoZXMgfHwgW10sXG4gICAgICAgICAgICB0aGlzLmNvbnZlcnRGcm9tT3B0aW9ucywge30pO1xuXG4gICAgICAgIGlmICggaXNBcnJheSApIHtcbiAgICAgICAgICAgIHJldHVybiBBbnkudmFscyhyZXN1bHQpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9XG5cbiAgICBzdGF0aWMgY29udmVydEZyb21PcHRpb25zKHJlc3VsdCwgbWF0Y2gpXG4gICAge1xuICAgICAgICAvLyBHZXQga2V5IGFuZCB2YWx1ZSBmcm9tIG1hdGNoXG4gICAgICAgIGxldCBhdHRyID0gbWF0Y2gubWF0Y2goL147P1xccyooLio/KVxccyo6XFxzKihcIi4qP1wifCcuKj8nfC4qPylcXHMqJC8pO1xuXG4gICAgICAgIC8vIFNraXAgaWYgbGVuZ3RoIGRvZXMgbm90IG1hdGNoXG4gICAgICAgIGlmICggYXR0ci5sZW5ndGggIT09IDMgKSB7XG4gICAgICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHZhbCA9IFN0ci5yZWFsKGF0dHJbMl0ucmVwbGFjZSgvKF5bXCInXSp8W1wiJ10qJCkvZywgJycpKTtcblxuICAgICAgICBPYmouc2V0KHJlc3VsdCwgYXR0clsxXSwgdmFsKTtcblxuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFBhcnNlIG9iamVjdCB0byBzdHJpbmcgKGUuZy4gZm9vPWJhciZ0ZXN0PWxvcmVtKS5cbiAgICAgKi9cbiAgICBzdGF0aWMgcGFyYW1zKHBhcmFtcywgcXVvdGEgPSBudWxsKVxuICAgIHtcbiAgICAgICAgaWYgKCBBbnkuaXNFbXB0eShwYXJhbXMpICkge1xuICAgICAgICAgICAgcmV0dXJuICcnO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHJlc3VsdCA9IFtdO1xuXG4gICAgICAgIE9iai5lYWNoKHBhcmFtcywgKHZhbHVlLCBrZXkpID0+IHtcblxuICAgICAgICAgICAgaWYgKCBxdW90YSAhPT0gbnVsbCApIHtcbiAgICAgICAgICAgICAgICBrZXkgPSBxdW90YSArICdbJyArIGtleSArICddJztcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKCBBbnkuaXNPYmplY3QodmFsdWUpICkge1xuICAgICAgICAgICAgICAgIHJldHVybiByZXN1bHQucHVzaChTdHIucGFyYW1zKHZhbHVlLCBrZXkpKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgcmVzdWx0LnB1c2goU3RyaW5nKGtleSkgKyAnPScgKyBTdHJpbmcodmFsdWUpKTtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgcmV0dXJuIHJlc3VsdC5qb2luKCcmJyk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUGFyc2Ugc3RyaW5nIHRvIG9iamVjdCAoZS5nLiBmb289YmFyJnRlc3Q9bG9yZW0pLlxuICAgICAqL1xuICAgIHN0YXRpYyBmcm9tUGFyYW1zKHZhbHVlLCBpc0FycmF5ID0gZmFsc2UpXG4gICAge1xuICAgICAgICBpZiAoIEFueS5pc0VtcHR5KHZhbHVlKSApIHtcbiAgICAgICAgICAgIHJldHVybiB7fTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCByZWdleCA9ICcoXnwmKShcXFxccyooLio/KVxcXFxzKj1cXFxccyonICtcbiAgICAgICAgICAgICcoXCIuKj9cInxcXCcuKj9cXCd8Lio/KVxcXFxzKikoPz0mfCQpJztcblxuICAgICAgICBsZXQgbWF0Y2hlcyA9IHZhbHVlLm1hdGNoKG5ldyBSZWdFeHAocmVnZXgsICdnJykpO1xuXG4gICAgICAgIGxldCByZXN1bHQgPSBBcnIucmVkdWNlKG1hdGNoZXMgfHwgW10sXG4gICAgICAgICAgICB0aGlzLmNvbnZlcnRGcm9tUGFyYW1zLCB7fSk7XG5cbiAgICAgICAgaWYgKCBpc0FycmF5ICkge1xuICAgICAgICAgICAgcmV0dXJuIEFueS52YWxzKHJlc3VsdCk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gcmVzdWx0XG4gICAgfVxuXG4gICAgc3RhdGljIGNvbnZlcnRGcm9tUGFyYW1zKHJlc3VsdCwgbWF0Y2gpIHtcblxuICAgICAgICAvLyBHZXQga2V5IGFuZCB2YWx1ZSBmcm9tIG1hdGNoXG4gICAgICAgIGxldCBhdHRyID0gbWF0Y2gubWF0Y2goL14mP1xccyooLio/KVxccyo9XFxzKihcIi4qP1wifCcuKj8nfC4qPylcXHMqJC8pO1xuXG4gICAgICAgIC8vIFNraXAgaWYgbGVuZ3RoIGRvZXMgbm90IG1hdGNoXG4gICAgICAgIGlmICggYXR0ci5sZW5ndGggIT09IDMgKSB7XG4gICAgICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGtleSA9IGF0dHJbMV0ucmVwbGFjZSgvKFxcXVxcW3xcXFt8XFxdKS9nLCAnLicpXG4gICAgICAgICAgICAucmVwbGFjZSgvXFwuJC8sICcnKTtcblxuICAgICAgICBsZXQgdmFsID0gU3RyLnJlYWwoYXR0clsyXS5yZXBsYWNlKC8oXltcIiddKnxbXCInXSokKS9nLCAnJykpO1xuXG4gICAgICAgIE9iai5zZXQocmVzdWx0LCBrZXksIHZhbCk7XG5cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9XG5cbn1cblxuZXhwb3J0IGRlZmF1bHQgU3RyO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/utility/string.js\n");
|
354
|
+
|
355
|
+
/***/ }),
|
356
|
+
|
357
|
+
/***/ 0:
|
358
|
+
/*!****************************!*\
|
359
|
+
!*** multi ./src/index.js ***!
|
360
|
+
\****************************/
|
361
|
+
/*! no static exports found */
|
362
|
+
/***/ (function(module, exports, __webpack_require__) {
|
363
|
+
|
364
|
+
module.exports = __webpack_require__(/*! ./src/index.js */"./src/index.js");
|
365
|
+
|
366
|
+
|
367
|
+
/***/ })
|
368
|
+
|
369
|
+
/******/ });
|
370
|
+
});
|