@kizmann/pico-js 0.4.2 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/utility/now.js +27 -0
- package/src/utility/object.js +1 -1
package/dist/pico-js.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["webpack://Pico/webpack/universalModuleDefinition","webpack://Pico/webpack/bootstrap","webpack://Pico/./src/index.js","webpack://Pico/./src/utility/any.js","webpack://Pico/./src/utility/array.js","webpack://Pico/./src/utility/number.js","webpack://Pico/./src/utility/object.js","webpack://Pico/./src/utility/string.js","webpack://Pico/(webpack)/buildin/global.js","webpack://Pico/external {\"root\":\"moment\",\"commonjs2\":\"moment\",\"commonjs\":\"moment\",\"amd\":\"moment\"}","webpack://Pico/./src/utility/now.js","webpack://Pico/./src/utility/dom.js","webpack://Pico/./src/library/cookie.js","webpack://Pico/./src/library/data.js","webpack://Pico/./src/library/element.js","webpack://Pico/./src/library/event.js","webpack://Pico/./src/library/locale.js","webpack://Pico/./src/library/map.js","webpack://Pico/./src/library/queue.js","webpack://Pico/./src/library/route.js","webpack://Pico/./node_modules/uuid/index.js","webpack://Pico/./node_modules/uuid/lib/rng-browser.js","webpack://Pico/./node_modules/uuid/lib/bytesToUuid.js","webpack://Pico/./node_modules/uuid/v1.js","webpack://Pico/./node_modules/uuid/v4.js"],"names":["root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__7__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Pico","UUID","Arr","Obj","Num","Str","Now","Any","Dom","Cookie","Data","Element","Event","Locale","Map","Queue","Route","global","IE","navigator","userAgent","match","WIN","pi","val","this","isNumber","isString","isBool","isPlain","isArray","keys","length","obj","Node","isEqualNode","is","isObject","constructor","Array","Date","String","empty","isEmpty","string","parseInt","parseFloat","result","yes","no","format","make","push","callback","args","setTimeout","delay","ref","debounce","undefined","__debouce","clearTimeout","throttle","rate","latest","now","form","FormData","appendField","values","each","index","inner","merge","splice","append","count","map","fill","arr","fallback","isFunction","sort","a","b","integer","va","toLowerCase","vb","filter","filterIndex","includes","first","findIndex","finder","slice","vals","indexOf","concat","clone","diff","reduce","chunk","res","accumulator","path","cascade","recursive","num","replace","Math","ceil","round","floor","fixed","toFixed","start","end","random","base","pow","acc","cord1","cord2","miles","defaultCord","lat","lng","assign","radlat1","PI","radlat2","theta","radtheta","dist","sin","cos","acos","decimal","thousand","toString","totals","minals","splits","split","reverse","join","lst","pop","undef","nested","shift","unset","has","matches","entries","sey","tey","toUpperCase","slug","slugify","ucfirst","targets","source","RegExp","charAt","search","lower","decimals","size","units","unit","limit","real","array","bool","fromParams","fromOptions","JSON","parse","params","options","stringify","quota","regex","convertFromOptions","attr","set","convertFromParams","g","Function","e","date","toDate","initialDate","moment","second","add","minute","hour","day","subtract","month","year","isValid","force","valid","before","code","after","equal","fromDate","subDecades","addDecades","prevMonth","decade","lastDate","target","range","targetNow","afterDate","equalDate","nextDate","beforeDate","dates","getDates","prev","prepend","prevDate","next","last","interval","el","NodeList","ready","document","readyState","find","on","globals","timer","required","element","querySelectorAll","createElement","posx","posy","elementsFromPoint","msElementsFromPoint","text","glue","title","baseTitle","ratio","viewport","width","height","scroll","offset","left","right","top","bottom","selector","parent","els","node","parentNode","body","scrollHeight","clientHeight","contains","closest","nodes","childNodes","nodeType","insertBefore","removeChild","previousSibling","nextSibling","timeout","setInterval","complete","naturalWidth","clearInterval","event","paused","func","events","addEventListener","live","srcElement","location","clientX","clientY","inside","off","dispatchEvent","indexes","removeEventListener","removeIndex","unpause","pause","initial","observer","MutationObserver","mutation","observe","ResizeObserver","datas","html","innerHTML","computed","getComputedStyle","styles","objectify","cls","intersect","addClass","removeClass","remove","toggleClass","hasClass","getAttribute","removeAttribute","setAttribute","style","offsetParent","boundry","loopOffsetParent","offsetTop","offsetLeft","scrollWidth","loopParent","scrollTop","pageYOffset","scrollLeft","pageXOffset","computedStyle","margin","marginTop","marginLeft","marginBottom","marginRight","padding","paddingTop","paddingLeft","paddingBottom","paddingRight","innerHeight","offsetHeight","actual","auto","display","css","innerWidth","offsetWidth","decode","pattern","cookie","plain","expire","setTime","getTime","expires","toUTCString","input","data","isEqual","fire","forceSet","id","instance","inis","prefix","getPrefix","console","error","cb","runs","deamon","unbind","childList","subtree","attributes","attributeFilter","mounted","deamons","_plain","item","splitLength","locales","message","pickByCount","google","center","only","mapStyle","gestureHandling","scrollwheel","zoom","except","maps","extra","final","Size","origin","Point","anchor","url","scaledSize","hover","active","prop","markerStyles","allowCreate","cluster","MarkerClusterer","imagePath","clearMarkers","clusterFilter","markers","visible","getMarkerVisibility","marker","clusterOptions","type","getInfoVisibility","setIcon","getVisible","getPosition","hideMarker","showMarker","hidden","setVisible","closeInfo","styleMarker","info","getMap","openInfo","closeInfoWindows","open","close","extras","position","Marker","clusterMarkers","addListener","enterMarker","leaveMarker","InfoWindow","content","toggleInfo","setPosition","address","getLocationByAddress","setMarkerPosition","geocoderService","Geocoder","geocoderPromise","resolve","reject","geocode","response","status","Promise","hideMarkers","LatLngBounds","extend","maxZoom","getMarkerBoundry","setCenter","getCenter","fitBounds","getZoom","setZoom","directionsService","DirectionsService","directionsRenderer","DirectionsRenderer","travelMode","setMap","panel","setPanel","route","setDirections","queue","stopQueue","handler","activeQueue","routes","href","v1","v4","uuid","getRandomValues","crypto","msCrypto","rnds8","Uint8Array","rnds","byteToHex","substr","buf","bth","_nodeId","_clockseq","rng","bytesToUuid","_lastMSecs","_lastNSecs","clockseq","seedBytes","msecs","nsecs","dt","Error","tl","tmh","ii"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,WACR,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAA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IlS,EAAIuhB,GAAOrP,GAAU,EAEF,iBAAb,IACRqP,EAAkB,WAAZlU,EAAuB,IAAI9I,MAAM,IAAM,KAC7C8I,EAAU,MAIZ,IAAI+T,GAFJ/T,EAAUA,GAAW,IAEF/D,SAAW+D,EAAQsU,KAAOA,KAO7C,GAJAP,EAAK,GAAgB,GAAVA,EAAK,GAAa,GAC7BA,EAAK,GAAgB,GAAVA,EAAK,GAAa,IAGzBG,EACF,IAAK,IAAIgB,EAAK,EAAGA,EAAK,KAAMA,EAC1BhB,EAAIvhB,EAAIuiB,GAAMnB,EAAKmB,GAIvB,OAAOhB,GAAOK,EAAYR","file":"pico-js.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"moment\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"moment\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Pico\"] = factory(require(\"moment\"));\n\telse\n\t\troot[\"Pico\"] = factory(root[\"moment\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__7__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 21);\n","\nimport Arr from \"./utility/array.js\";\nexport { Arr };\n\nimport Obj from \"./utility/object.js\";\nexport { Obj };\n\nimport Num from \"./utility/number.js\";\nexport { Num };\n\nimport Str from \"./utility/string.js\";\nexport { Str };\n\nimport Now from \"./utility/now.js\";\nexport { Now };\n\nimport Any from \"./utility/any.js\";\nexport { Any };\n\nimport Dom from \"./utility/dom.js\";\nexport { Dom };\n\nimport Cookie from \"./library/cookie.js\";\nexport { Cookie };\n\nimport Data from \"./library/data.js\";\nexport { Data };\n\nimport Element from \"./library/element.js\";\nexport { Element };\n\nimport Event from \"./library/event.js\";\nexport { Event };\n\nimport Locale from \"./library/locale.js\";\nexport { Locale };\n\nimport Map from \"./library/map.js\";\nexport { Map };\n\nimport Queue from \"./library/queue.js\";\nexport { Queue };\n\nimport Route from \"./library/route.js\";\nexport { Route };\n\nimport { v4 as UUID } from \"uuid\"\nexport { UUID };\n\nexport const Pico = {\n\n UUID: UUID,\n\n Arr: Arr,\n Obj: Obj,\n Num: Num,\n Str: Str,\n Now: Now,\n Any: Any,\n Dom: Dom,\n\n Cookie: Cookie,\n Data: Data,\n Element: Element,\n Event: Event,\n Locale: Locale,\n Map: Map,\n Queue: Queue,\n Route: Route,\n}\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\nexport default Pico;\n","import { Arr, Obj, Now } from \"../index.js\";\n\nexport class Any\n{\n static isEmpty(val)\n {\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 static isNull(val)\n {\n return val === null;\n }\n\n static isEqual(obj, val)\n {\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 static isString(val)\n {\n return typeof val === 'string';\n }\n\n static isNumber(val)\n {\n return typeof val === 'number' ||\n (typeof val === 'string' && val.match(/^\\-?[0-9]+$/));\n }\n\n static isBool(val)\n {\n return typeof val === 'boolean' ||\n (typeof val === 'string' && val.match(/^(true|false)$/));\n }\n\n static isFunction(val)\n {\n return typeof val === 'function';\n }\n\n static isObject(val)\n {\n return val !== null && typeof val === 'object';\n }\n\n static isPlain(val)\n {\n return this.isObject(val) && val.constructor === Object;\n }\n\n static isArray(val)\n {\n return this.isObject(val) && val.constructor === Array;\n }\n\n static isDate(val)\n {\n return val instanceof Date;\n }\n\n static string(val)\n {\n return String(val);\n }\n\n static convertString(val, empty = '-')\n {\n return this.isEmpty(val) ? empty : this.string(val);\n }\n\n static integer(val)\n {\n return parseInt(val);\n }\n\n static float(val)\n {\n return parseFloat(val);\n }\n\n static bool(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static boolean(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static convertBool(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertBoolean(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertDatetime(val, format = 'YYYY-MM-DD hh:mm:ss', empty = '-')\n {\n if ( Any.isEmpty(val) === true ) {\n return empty;\n }\n\n return Now.make(val).format(format);\n }\n\n static vals(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(obj[key]);\n }\n }\n\n return keys;\n }\n\n static keys(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(key);\n }\n }\n\n return keys;\n }\n\n static async(callback, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, 0);\n\n return this;\n }\n\n static delay(callback, delay = 100, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, delay);\n\n return this;\n }\n\n static debounce(callback, delay = 100, ref = null)\n {\n let 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 (...args) => {\n\n clearTimeout(debounce);\n\n debounce = setTimeout(() => {\n callback(...args);\n }, delay);\n\n if ( ! Any.isEmpty(ref) ) {\n ref(debounce);\n }\n };\n }\n\n static throttle(callback, delay = 100, ref = null)\n {\n let throttle = null;\n\n if ( ! Any.isEmpty(ref) ) {\n throttle = ref();\n }\n\n return (...args) => {\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(...args);\n };\n }\n\n static framerate(callback, rate = 30, ref = null)\n {\n let latest = 0;\n\n if ( ! Any.isEmpty(ref) ) {\n latest = ref();\n }\n\n return (...args) => {\n\n if ( Date.now() - latest <= (1000 / rate) ) {\n return;\n }\n\n callback(...args);\n\n latest = Date.now();\n\n if ( ! Any.isEmpty(ref) ) {\n ref(latest);\n }\n\n };\n }\n\n static form(obj)\n {\n let form = new FormData();\n\n let appendField = (values, keys = []) => {\n Obj.each(values, (value, index) => {\n\n let inner = 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 let key = inner.splice(0, 1)[0];\n\n Arr.each(inner, (index) => {\n key += '[' + index + ']';\n });\n\n if ( value !== null ) {\n form.append(key, value);\n }\n });\n\n return form;\n };\n\n return appendField(obj);\n }\n\n}\n\nexport default Any;\n","import { Obj, Num, Any } from \"../index.js\"\n\nexport class Arr\n{\n static make(count)\n {\n return Arr.map(Array(count).fill(null), (val, key) => {\n return Num.int(key) + 1;\n });\n }\n\n static all(arr)\n {\n return Array.isArray(arr) ? arr : [arr];\n }\n\n static get(arr, index, fallback = null)\n {\n return arr[index] || fallback;\n }\n\n static set(arr, index, value)\n {\n return arr[index] = value;\n }\n\n static first(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[0] : \n arr) || fallback;\n }\n\n static second(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[1] || \n arr[0] : arr) || fallback;\n }\n\n static third(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[2] || \n arr[1] || arr[0] : arr) || fallback;\n }\n\n static last(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[arr.length - 1] : \n arr) || fallback;\n }\n\n static prepend(arr, val)\n {\n arr.splice(0, 0, val);\n return arr;\n }\n\n static append(arr, val)\n {\n arr.splice(arr.length, 0, val);\n return arr;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return(va < vb) ? -1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n\n static filter(arr, filter)\n {\n return Arr.each(Arr.filterIndex(arr, filter), (key) => {\n return arr[key];\n });\n }\n\n static filterIndex(arr, filter)\n {\n return Any.keys(arr).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, arr[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, arr[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, arr[key]);\n }\n\n return filter === arr[key];\n });\n }\n\n static find(arr, val, fallback = null)\n {\n return Arr.first(Arr.filter(arr, val)) || fallback;\n }\n\n static findIndex(arr, val, fallback = -1)\n {\n return Any.integer(Arr.first(Arr.filterIndex(arr, val)) || fallback);\n }\n\n static has(arr, val)\n {\n return this.findIndex(arr, val) !== - 1;\n }\n\n static add(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index === - 1 ) {\n arr.push(val);\n }\n\n return arr;\n }\n\n static replace(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n arr.push(val);\n\n return arr;\n }\n\n static remove(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n return arr;\n }\n\n static toggle(arr, val)\n {\n let 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 static removeIndex(arr, val)\n {\n if ( val < arr.length ) {\n arr.splice(Num.int(val), 1);\n }\n\n return arr;\n }\n\n static insert(arr, key, val)\n {\n arr.splice(Num.int(key), 0, val);\n\n return arr;\n }\n\n static slice(arr, key, count = 1)\n {\n return arr.slice(Num.int(key), count);\n }\n\n static splice(arr, key, count = 1)\n {\n return arr.splice(Num.int(key), count);\n }\n\n static includes(arr, val)\n {\n let result = false;\n\n for ( let key of Any.vals(arr) ) {\n result = val.indexOf(key) !== -1 || result;\n }\n\n return result;\n }\n\n static contains(arr, val)\n {\n let result = true;\n\n for ( let key of Any.vals(val) ) {\n result = Any.vals(arr).indexOf(key) !== -1 && result;\n }\n\n return result;\n }\n\n static concat(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static clone(arr)\n {\n let clone;\n\n if ( Any.isPlain(arr) ){\n return Obj.clone(arr);\n }\n\n if ( Any.isArray(arr) ){\n\n clone = [];\n\n for ( let key of Any.keys(arr) ) {\n clone[key] = Obj.clone(arr[key]);\n }\n\n return clone;\n }\n\n return clone || arr;\n }\n\n static merge(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static push(arr, ...args)\n {\n arr.push(...args);\n\n return arr;\n }\n\n static diff(arr, val)\n {\n return arr.filter((diff) => val.indexOf(diff) < 0);\n }\n\n static intersect(...args)\n {\n return args.reduce((a, c) => a.filter(i => c.includes(i)));\n }\n\n static chunk(arr, chunk = 10)\n {\n let res = [];\n\n for ( let i = 0; i < arr.length; i += chunk ) {\n res.push(arr.slice(i, i + chunk));\n }\n\n return res;\n }\n\n static reduce(arr, callback, accumulator)\n {\n return Object.values(arr).reduce(callback, accumulator);\n }\n\n static extract(arr, path)\n {\n return this.each(arr, (val) => Obj.get(val, path, null));\n }\n\n static each(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return Any.vals(result);\n }\n\n static map(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = arr[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return result;\n }\n\n static recursive(arr, key, callback, cascade = [])\n {\n if ( Any.isArray(arr) === true ) {\n return this.map(arr, (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n }\n\n if ( Any.isObject(arr) === true ) {\n\n let res = callback(arr, cascade);\n\n arr = res !== undefined ?\n res : arr;\n }\n\n if ( Any.isArray(arr[key]) === true ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.map(arr[key], (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n\n return arr;\n }\n\n if ( Any.isEmpty(arr[key]) === false ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.recursive(arr[key], key, callback, cascade);\n\n return arr;\n }\n\n return arr;\n }\n\n}\n\nexport default Arr;\n","import { Any, Arr, Obj } from \"../index.js\"\n\nexport class Num\n{\n static int(num)\n {\n return !Any.isString(num) ? parseInt(num) :\n parseInt(num.replace('px', ''));\n }\n\n static float(num)\n {\n return !Any.isString(num) ? parseFloat(num) :\n parseFloat(num.replace('px', ''));\n }\n\n static ceil(num)\n {\n return Math.ceil(num);\n }\n\n static round(num)\n {\n return Math.round(num);\n }\n\n static floor(num)\n {\n return Math.floor(num);\n }\n\n static fixed(num, fixed = 2)\n {\n return this.float(num).toFixed(fixed);\n }\n\n static random(start = 0, end = 100)\n {\n return Math.floor((Math.random() * (end + 1)) + start);\n }\n\n static matrix(num, limit = 10, base = [])\n {\n let value = 0;\n\n for ( let 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 static combine(arr)\n {\n return Arr.reduce(arr, (acc, val) => acc + val, 0);\n }\n\n static distance(cord1, cord2, miles = false)\n {\n let defaultCord = {\n lat: 0, lng: 0\n };\n\n cord1 = Obj.assign({}, defaultCord, cord1);\n cord2 = Obj.assign({}, defaultCord, cord2);\n\n let radlat1 = (Math.PI * this.float(cord1.lat)) / 180;\n let radlat2 = (Math.PI * this.float(cord2.lat)) / 180;\n\n let theta = this.float(cord1.lng) - this.float(cord2.lng);\n let radtheta = (Math.PI * theta) / 180;\n\n let dist = Math.sin(radlat1) * Math.sin(radlat2) +\n 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 static format(num, decimal = '.', thousand = ',', fixed = null)\n {\n if ( num === null ) {\n return null;\n }\n\n let value = num.toString();\n\n if ( fixed !== null && fixed !== - 1 ) {\n value = num.toFixed(fixed);\n }\n\n let totals = value.replace(/\\.[0-9]+$/, ''),\n minals = value.replace(/^[0-9\\-]+\\./, '');\n\n let splits = Arr.reduce(totals.split('').reverse(), (result, val, key) => {\n\n let index = Math.floor(key / 3);\n\n result[index] = index === key / 3 ?\n val : result[index] = val + result[index];\n\n return result;\n }, []);\n\n let 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\nexport default Num;\n","import Arr from \"./array.js\";\nimport Any from \"./any.js\";\n\nexport class Obj\n{\n static has(obj, keys)\n {\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.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let lst = keys.pop(), index = 0, 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 static empty(obj, key)\n {\n return Any.isEmpty(this.get(obj, key, null));\n }\n\n static get(obj, keys, fallback = 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.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n let 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.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let index = 0, 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 static set(obj, keys, val)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n let 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; return obj;\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length, nested = obj;\n\n if ( length === 0 ) {\n return obj;\n }\n\n while (nested !== null && index < length) {\n\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 static unset(obj, keys)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let 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 static only(obj, keys, assign = null)\n {\n let result = {};\n\n this.each(obj, (val, key) => {\n if ( Arr.has(keys, key) === true ) {\n result[key] = val;\n }\n });\n\n if ( !Any.isEmpty(assign) ) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n\n static except(obj, keys, assign = null)\n {\n let result = {};\n\n this.each(obj, (val, key) => {\n if ( Arr.has(keys, key) === false ) {\n result[key] = val;\n }\n });\n\n if ( !Any.isEmpty(assign) ) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n\n static includes(obj, val)\n {\n let result = true;\n\n for ( let key of Any.keys(obj) ) {\n if ( typeof val[key] !== 'undefined' ) {\n result = (Any.isPlain(obj[key]) || Any.isArray(obj[key]) ?\n this.includes(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n\n return result;\n }\n\n static matches(obj, val)\n {\n let result = true;\n\n for ( let key of Any.keys(obj) ) {\n if ( typeof val[key] !== 'undefined' ) {\n result = (Any.isObject(obj[key]) ?\n this.matches(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n\n return result;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( !Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( !Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return (va < vb) ? - 1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static filter(obj, filter)\n {\n return Obj.each(Obj.filterIndex(obj, filter), (key) => {\n return obj[key];\n });\n }\n\n static filterIndex(obj, filter)\n {\n return Any.keys(obj).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, obj[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, obj[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, obj[key]);\n }\n\n return filter === obj[key];\n });\n }\n\n static find(arr, obj, fallback = null)\n {\n return Arr.first(Obj.filter(arr, obj)) || fallback;\n }\n\n static findIndex(arr, obj, fallback = - 1)\n {\n return Arr.first(Obj.filterIndex(arr, obj)) || fallback;\n }\n\n static clone(obj)\n {\n let clone;\n\n if ( Any.isArray(obj) === true ) {\n return Arr.clone(obj);\n }\n\n if ( Any.isPlain(obj) === true ) {\n\n clone = {};\n\n for ( let key of Any.keys(obj) ) {\n clone[key] = Obj.clone(obj[key]);\n }\n\n return clone;\n }\n\n return clone || obj;\n }\n\n static assign(...args)\n {\n return Object.assign(...args);\n }\n\n static remove(obj, keys)\n {\n Arr.each(keys, (key) => delete obj[key]);\n\n return obj;\n }\n\n static each(obj, callback)\n {\n let result = {};\n\n if ( obj instanceof FormData ) {\n\n for ( let [key, value] of obj.entries() ) {\n result[key] = callback(value, key);\n }\n\n return obj;\n }\n\n for ( let key of Any.keys(obj) ) {\n result[key] = callback(obj[key], key);\n }\n\n return result;\n }\n\n static map(obj, callback)\n {\n for ( let key of Any.keys(obj) ) {\n obj[key] = callback(obj[key], key);\n }\n\n return obj;\n }\n\n static values(obj)\n {\n let result = [];\n\n this.each(obj, val => result.push(val));\n\n return result;\n }\n\n static flatten(obj)\n {\n let result = {};\n\n let callback = (val, sey = null) => {\n\n Arr.each(Any.keys(val), (key) => {\n\n let tey = key;\n\n if ( ! Any.isEmpty(sey) ) {\n tey = `${sey}.${key}`;\n }\n\n if ( Any.isPlain(val[key]) ) {\n return callback(val[key], tey);\n }\n\n result[tey] = val[key];\n });\n\n };\n\n callback(obj);\n\n return result;\n }\n\n}\n\nexport default Obj;\n","import Arr from \"./array.js\";\nimport Obj from \"./object.js\";\nimport Num from \"./number.js\";\nimport Any from \"./any.js\";\n\nexport class Str\n{\n static regexEscape(val)\n {\n return String(val).replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n\n static upper(val)\n {\n return String(val).toUpperCase();\n }\n\n static lower(val)\n {\n return String(val).toLowerCase();\n }\n\n static camelcase(val)\n {\n let slug = Str.slugify(val);\n\n let slugSplits = Arr.each(slug.split('-'), (split, index) => {\n\n if ( index === 0 ) {\n return split;\n }\n\n return Str.ucfirst(split);\n });\n\n return slugSplits.join('');\n }\n\n static humancase(val)\n {\n let slug = Str.slugify(val);\n\n let slugSplits = Arr.each(slug.split('-'), (split) => {\n return Str.ucfirst(split);\n });\n\n return slugSplits.join(' ');\n }\n\n static slugify(val)\n {\n val = String(val).replace(/^\\s+|\\s+$/g, '')\n .toLowerCase();\n\n let sources = [\n 'à', 'á', 'â', 'è', 'é', 'ê', 'ì', 'í', 'ï', 'î', 'ò', 'ó', 'ô',\n 'ù', 'ú', 'û', 'ñ', 'ç', '·', '/', '_', ',', ':', ';', 'ä', 'ö', 'ü'\n ];\n\n let targets = [\n 'a', 'a', 'a', 'e', 'e', 'e', 'i', 'i', 'i', 'i', 'o', 'o', 'o',\n 'u', 'u', 'u', 'n', 'c', '-', '-', '-', '-', '-', '-', 'ae', 'oe', 'ue'\n ];\n\n Arr.each(sources, (source, index) => {\n val = val.replace(new RegExp(source.charAt(source), 'g'), targets[index]);\n });\n\n return val.replace(/[^a-z0-9 -]/g, '')\n .replace(/\\s+/g, '-').replace(/-+/g, '-');\n }\n\n static ucfirst(val)\n {\n return val.charAt(0).toUpperCase() + val.slice(1);\n }\n\n static lcfirst(val)\n {\n return val.charAt(0).toLowerCase() + val.slice(1);\n }\n\n static has(val, search)\n {\n return this.lower(val).indexOf(this.lower(search)) !== -1;\n }\n\n static filesize(val, decimals = 1)\n {\n let size = null;\n\n let units = [\n 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'\n ];\n\n Arr.each(units, (unit, count) => {\n\n let limit = Math.pow(1000, Any.integer(count));\n\n if ( val <= limit) {\n return;\n }\n\n size = Num.fixed(val / limit, decimals) + ' ' + unit;\n });\n\n return size;\n }\n\n static array(value, fallback = [])\n {\n value = value.replace(/^@\\[(.*?)?\\]$/, '$1');\n\n if ( Any.isEmpty(value) ) {\n return fallback;\n }\n\n return Arr.each(value.split(','), (val) => {\n return Str.real(val.replace(/(^\"|^'|\"$|'$)/g, ''));\n });\n }\n\n static real(value)\n {\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.bool(value);\n }\n\n if ( typeof value === 'string' && value.match(/^[0-9]+$/) ) {\n value = Num.int(value);\n }\n\n if ( typeof value === 'string' && value.match(/^[0-9]+\\\\.[0-9]+$/) ) {\n value = Num.float(value);\n }\n\n return value;\n }\n\n /**\n * Parse param string to object\n */\n static objectify(value, mode = 'options', isArray = false)\n {\n if ( Any.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 /**\n * Parse param object to string\n */\n static stringify(value, mode = 'options')\n {\n if ( Any.isString(value) ) {\n return value;\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 /**\n * Parse object to string (e.g. foo:bar;test:lorem).\n */\n static options(params, quota = null)\n {\n if ( Any.isEmpty(params) ) {\n return '';\n }\n\n let result = [];\n\n Obj.each(params, (value, key) => {\n\n if ( quota !== null ) {\n key = quota + '.' + key;\n }\n\n if ( Any.isObject(value) ) {\n return result.push(Str.options(value, key).replace(/;$/, ''));\n }\n\n result.push(String(key) + ':' + String(value));\n });\n\n return result.join(';') + ';';\n }\n\n /**\n * Parse string to object (e.g. foo:bar;test:lorem).\n */\n static fromOptions(value, isArray = false)\n {\n if ( Any.isEmpty(value) ) {\n return {};\n }\n\n let regex = '(^|;)(\\\\s*(.*?)\\\\s*:\\\\s*' +\n '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=;|$)';\n\n let matches = value.match(new RegExp(regex, 'g'));\n\n let result = Arr.reduce(matches || [],\n this.convertFromOptions, {});\n\n if ( isArray ) {\n return Any.vals(result);\n }\n\n return result;\n }\n\n static convertFromOptions(result, match)\n {\n // Get key and value from match\n let attr = match.match(/^;?\\s*(.*?)\\s*:\\s*(\".*?\"|'.*?'|.*?)\\s*$/);\n\n // Skip if length does not match\n if ( attr.length !== 3 ) {\n return result;\n }\n\n let val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n\n Obj.set(result, attr[1], val);\n\n return result;\n }\n\n /**\n * Parse object to string (e.g. foo=bar&test=lorem).\n */\n static params(params, quota = null)\n {\n if ( Any.isEmpty(params) ) {\n return '';\n }\n\n let result = [];\n\n Obj.each(params, (value, key) => {\n\n if ( quota !== null ) {\n key = quota + '[' + key + ']';\n }\n\n if ( Any.isObject(value) ) {\n return result.push(Str.params(value, key));\n }\n\n result.push(String(key) + '=' + String(value));\n });\n\n return result.join('&');\n }\n\n /**\n * Parse string to object (e.g. foo=bar&test=lorem).\n */\n static fromParams(value, isArray = false)\n {\n if ( Any.isEmpty(value) ) {\n return {};\n }\n\n let regex = '(^|&)(\\\\s*(.*?)\\\\s*=\\\\s*' +\n '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=&|$)';\n\n let matches = value.match(new RegExp(regex, 'g'));\n\n let result = Arr.reduce(matches || [],\n this.convertFromParams, {});\n\n if ( isArray ) {\n return Any.vals(result);\n }\n\n return result\n }\n\n static convertFromParams(result, match) {\n\n // Get key and value from match\n let attr = match.match(/^&?\\s*(.*?)\\s*=\\s*(\".*?\"|'.*?'|.*?)\\s*$/);\n\n // Skip if length does not match\n if ( attr.length !== 3 ) {\n return result;\n }\n\n let key = attr[1].replace(/(\\]\\[|\\[|\\])/g, '.')\n .replace(/\\.$/, '');\n\n let val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n\n Obj.set(result, key, val);\n\n return result;\n }\n\n}\n\nexport default Str;\n","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","module.exports = __WEBPACK_EXTERNAL_MODULE__7__;","import { Num, Arr, Any } from \"../index.js\";\nimport moment from \"moment\";\n\nexport class Now\n{\n initialDate = null;\n moment = null;\n\n constructor(date = null, format = 'YYYY-MM-DD hh:mm:ss')\n {\n if ( date instanceof Now ) {\n date = date.get().toDate();\n }\n\n this.initialDate = date;\n\n if ( ! Any.isString(date) ) {\n this.moment = moment(date || new Date, format);\n }\n\n if ( this.moment !== null ) {\n return this;\n }\n\n this.moment = moment(date.match(/^now/) ?\n new Date : date, format);\n\n let second = this.initialDate.match(/(\\+|-)([0-9]+)seconds?/);\n\n if ( Any.isEmpty(second) === false && second[1] === '+' ) {\n this.moment.add(second[2], 'second');\n }\n\n let minute = this.initialDate.match(/(\\+|-)([0-9]+)minutes?/);\n\n if ( Any.isEmpty(minute) === false && minute[1] === '+' ) {\n this.moment.add(minute[2], 'minute');\n }\n\n let hour = this.initialDate.match(/(\\+|-)([0-9]+)hours?/);\n\n if ( Any.isEmpty(hour) === false && hour[1] === '+' ) {\n this.moment.add(hour[2], 'hour');\n }\n\n let day = this.initialDate.match(/(\\+|-)([0-9]+)days?/);\n\n if ( Any.isEmpty(day) === false && day[1] === '+' ) {\n this.moment.add(day[2], 'day');\n }\n\n if ( Any.isEmpty(day) === false && day[1] === '-' ) {\n this.moment.subtract(day[2], 'day');\n }\n\n let month = this.initialDate.match(/(\\+|-)([0-9]+)months?/);\n\n if ( Any.isEmpty(month) === false && month[1] === '+' ) {\n this.moment.add(month[2], 'month');\n }\n\n if ( Any.isEmpty(month) === false && month[1] === '-' ) {\n this.moment.subtract(month[2], 'month');\n }\n\n let year = this.initialDate.match(/(\\+|-)([0-9]+)years?/);\n\n if ( Any.isEmpty(year) === false && year[1] === '+' ) {\n this.moment.add(year[2], 'year');\n }\n\n if ( Any.isEmpty(year) === false && year[1] === '-' ) {\n this.moment.subtract(year[2], 'year');\n }\n\n return this;\n }\n\n static make(date = null, format = 'YYYY-MM-DD hh:mm:ss')\n {\n return new Now(date, format);\n }\n\n get()\n {\n return this.moment;\n }\n\n valid()\n {\n return ! Any.isEmpty(this.initialDate) &&\n moment(this.initialDate).isValid();\n }\n\n clone()\n {\n return new Now(this.moment.toDate());\n }\n\n code(format = 'X')\n {\n return Num.int(this.format(format, true));\n }\n\n format(format = 'YYYY-MM-DD hh:mm:ss', force = false)\n {\n if ( ! this.valid() && ! force ) {\n return '';\n }\n\n return this.moment.format(format);\n }\n\n before(before = null)\n {\n return this.code() < Now.make(before).code();\n }\n\n beforeDate(before = null)\n {\n return this.code('YYYYMMDD') <\n Now.make(before).code('YYYYMMDD');\n }\n\n beforeTime(before = null)\n {\n return this.code('hhmmss') <\n Now.make(before).code('hhmmss');\n }\n\n after(after = null)\n {\n return this.code() > Now.make(after).code();\n }\n\n afterDate(after = null)\n {\n return this.code('YYYYMMDD') >\n Now.make(after).code('YYYYMMDD');\n }\n\n afterTime(after = null)\n {\n return this.code('hhmmss') >\n Now.make(after).code('hhmmss');\n }\n\n equal(equal = null, format = 'X')\n {\n return this.code(format) ===\n Now.make(equal).code(format);\n }\n\n equalDate(equal = null, format = 'YYYYMMDD')\n {\n return this.equal(equal, format);\n }\n\n equalTime(equal = null, format = 'hhmmss')\n {\n return this.equal(equal, format);\n }\n\n between(fromDate = null, toDate = null, format = 'YYYYMMDD')\n {\n if ( Now.make(toDate).code(format) < Now.make(fromDate).code(format) ) {\n return this.after(toDate, format) && this.before(fromDate, format) &&\n ! this.equal(toDate, format) && ! this.equal(fromDate, format);\n }\n\n return this.after(fromDate, format) && this.before(toDate, format) &&\n ! this.equal(toDate, format) && ! this.equal(fromDate, format);\n }\n\n decade()\n {\n return Math.floor(this.year() / 10) * 10;\n }\n\n prevDecade()\n {\n return this.clone().subDecades(1);\n }\n\n nextDecade()\n {\n return this.clone().addDecades(1);\n }\n\n addDecades(count = 1)\n {\n return this.year(this.moment.year() + (count * 10));\n }\n\n subDecades(count = 1)\n {\n return this.year(this.moment.year() - (count * 10));\n }\n\n year(year = null)\n {\n if ( year === null ) {\n return this.moment.year();\n }\n\n this.moment.year(year);\n\n return this;\n }\n\n prevYear()\n {\n return this.clone().year(this.year() - 1);\n }\n\n nextYear()\n {\n return this.clone().year(this.year() + 1);\n }\n\n addYears(count = 1)\n {\n return this.year(this.year() + count);\n }\n\n subYears(count = 1)\n {\n return this.year(this.year() - count);\n }\n\n month(month = null)\n {\n if ( month === null ) {\n return this.moment.month();\n }\n\n this.moment.month(month);\n\n return this;\n }\n\n addMonths(count = 1)\n {\n return this.month(this.month() + count);\n }\n\n subMonths(count = 1)\n {\n return this.month(this.month() - count);\n }\n\n prevMonth()\n {\n return this.clone().month(this.month() - 1);\n }\n\n nextMonth()\n {\n return this.clone().month(this.month() + 1);\n }\n\n date(date = null)\n {\n if ( date === null ) {\n return this.moment.date();\n }\n\n this.moment.date(date);\n\n return this;\n }\n\n addDates(count = 1)\n {\n return this.date(this.date() + count);\n }\n\n subDates(count = 1)\n {\n return this.date(this.date() - count);\n }\n\n prevDate()\n {\n return this.clone().date(this.date() - 1);\n }\n\n nextDate()\n {\n return this.clone().date(this.date() + 1);\n }\n\n lastDate()\n {\n return this.prevMonth().date(0).date();\n }\n\n day(day = null)\n {\n if ( day === null ) {\n return this.moment.day();\n }\n\n this.moment.day(day);\n\n return this;\n }\n\n hour(hour = null)\n {\n if ( hour === null ) {\n return this.moment.hour();\n }\n\n this.moment.hour(hour);\n\n return this;\n }\n\n addHour(count = 1)\n {\n return this.hour(this.hour() + count);\n }\n\n subHour(count = 1)\n {\n return this.hour(this.hour() - count);\n }\n\n prevHour()\n {\n return this.clone().hour(this.hour() - 1);\n }\n\n nextHour()\n {\n return this.clone().hour(this.hour() + 1);\n }\n\n minute(minute = null)\n {\n if ( minute === null ) {\n return this.moment.minute();\n }\n\n this.moment.minute(minute);\n\n return this;\n }\n\n addMinute(count = 1)\n {\n return this.minute(this.minute() + count);\n }\n\n subMinute(count = 1)\n {\n return this.minute(this.minute() - count);\n }\n\n prevMinute()\n {\n return this.clone().minute(this.minute() - 1);\n }\n\n nextMinute()\n {\n return this.clone().minute(this.minute() + 1);\n }\n\n second(second = null)\n {\n if ( second === null ) {\n return this.moment.second();\n }\n\n this.moment.second(second);\n\n return this;\n }\n\n addSecond(count = 1)\n {\n return this.second(this.second() + count);\n }\n\n subSecond(count = 1)\n {\n return this.second(this.second() - count);\n }\n\n prevSecond()\n {\n return this.clone().second(this.second() - 1);\n }\n\n nextSecond()\n {\n return this.clone().second(this.second() + 1);\n }\n\n humanDay()\n {\n return this.day();\n }\n\n humanMonth()\n {\n return this.month();\n }\n\n getMonths()\n {\n return Arr.make(12).map((month) => {\n return this.clone().month(month - 1);\n });\n }\n\n getYears()\n {\n return Arr.make(10).map((year) => {\n return this.clone().year(this.decade() + year - 1);\n });\n }\n\n getYearsGrid(size = 12)\n {\n return Arr.make(size).map((year) => {\n return this.clone().year((Math.floor(this.year() / size)\n * size) + year - 1);\n });\n }\n\n getDates()\n {\n return Arr.make(this.lastDate()).map((date) => {\n return this.clone().date(date);\n });\n }\n\n getDatesRange(target = null)\n {\n let range = [], targetNow = Now.make(target);\n\n if ( this.afterDate(target) ) {\n\n for ( let day = targetNow; ! day.equalDate(this); day = day.nextDate() ) {\n Arr.push(range, day);\n }\n\n Arr.push(range, this);\n }\n\n if ( this.beforeDate(target) ) {\n\n for ( let day = this; ! day.equalDate(targetNow); day = day.nextDate() ) {\n Arr.push(range, day);\n }\n\n Arr.push(range, targetNow);\n }\n\n if ( range.length === 0 ) {\n range = [this];\n }\n\n return range;\n }\n\n getDatesGrid(start = 1, end = 0)\n {\n let dates = this.getDates(), before = [], after = [];\n\n let prev = Arr.first(dates);\n\n for (let day = prev.day(); prev.day() !== start; day = prev.day()) {\n Arr.prepend(before, prev = prev.prevDate());\n }\n\n let next = Arr.last(dates);\n\n for (let day = next.day(); next.day() !== end; day = next.day()) {\n Arr.append(after, next = next.nextDate());\n }\n\n return Arr.merge(before, dates, after);\n }\n\n getHours(interval = 1)\n {\n return Arr.make(24 / interval).map((val, hour) => {\n return this.clone().hour(hour * interval);\n });\n }\n\n getMinutes(interval = 1)\n {\n return Arr.make(60 / interval).map((val, minute) => {\n return this.clone().minute(minute * interval);\n });\n }\n\n getSeconds(interval = 1)\n {\n return Arr.make(60 / interval).map((val, second) => {\n return this.clone().second(second * interval);\n });\n }\n\n}\n\nexport default Now;\n","import Arr from './array.js';\nimport Obj from './object.js';\nimport Str from './string.js';\nimport Num from './number.js';\nimport Any from './any.js';\n\nexport class Dom\n{\n el = null;\n\n static events = [];\n\n static datas = [];\n\n constructor(el)\n {\n if ( el instanceof NodeList ) {\n el = Array.prototype.slice.call(el);\n }\n\n this.el = el;\n }\n\n static ready(callback, delay = 0, count = 0)\n {\n let 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(() => Dom.ready(callback, delay, count + 100), 100);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static complete(callback, delay = 0, count = 0)\n {\n let ready = document.readyState === 'complete';\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(() => Dom.ready(callback, delay, count + 100), 100);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static required(callback, globals = [], timer = 100) {\n\n let matches = Arr.each(globals, (key) => {\n return Obj.has(window, key);\n });\n\n if ( Arr.has(matches, false) ) {\n setTimeout(() => Dom.required(callback, globals, timer), timer);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static find(element)\n {\n let el = typeof element !== 'string' ?\n element : document.querySelectorAll(element);\n\n return new Dom(el);\n }\n\n static make(element, options = {})\n {\n let el = typeof element !== 'string' ?\n element : document.createElement(element);\n\n Obj.assign(el, options);\n\n return new Dom(el);\n }\n\n static location(posx, posy)\n {\n let 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 static title(text = null, glue = ' - ')\n {\n document.title = global.baseTitle !== undefined ?\n text + glue + global.baseTitle : text;\n\n return this;\n }\n\n length()\n {\n return Any.isArray(this.el) ?\n this.el.length : (Any.isEmpty(this.el) ? 0 : 1);\n }\n\n empty()\n {\n return this.length() === 0 || this.el === null;\n }\n\n visible()\n {\n return this.get(0) && this.get(0).is(':visible');\n }\n\n inviewX(ratio = 0)\n {\n let viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height(),\n };\n\n let element = {\n width: this.width(),\n height: this.height(),\n };\n\n let scroll = this.scroll(),\n offset = this.offset();\n\n let left = offset.left + (ratio * element.width) -\n viewport.width;\n\n let right = offset.left + element.width -\n (ratio * element.width);\n\n return left <= scroll.left && scroll.left <= right;\n }\n\n inviewY(ratio = 0)\n {\n let viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height(),\n };\n\n let element = {\n width: this.width(),\n height: this.height(),\n };\n\n let scroll = this.scroll(),\n offset = this.offset();\n\n let top = offset.top + (ratio * element.height) -\n viewport.height;\n\n let bottom = offset.top + element.height -\n (ratio * element.height);\n\n return top <= scroll.top && scroll.top <= bottom;\n }\n\n is(selector)\n {\n return this.matches(selector);\n }\n\n isParent(selector)\n {\n let el = this.parent();\n\n if ( Any.isEmpty(el) === true ) {\n return false;\n }\n\n return Any.isString(selector) ?\n Dom.find(el).matches(selector) : this.get(0) === selector;\n }\n\n first(offset = 0)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return els[offset];\n }\n\n last(offset = 1)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return els[els.length - offset];\n }\n\n get(index = -1)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return index !== -1 ? els[index] || null : els;\n }\n\n getNot(el)\n {\n for ( let node of this.el ) {\n if ( node !== el ) {\n return Dom.find(node);\n }\n }\n\n return null;\n }\n\n each(callback)\n {\n return Any.isArray(this.el) ? Arr.each(this.el, callback) :\n callback(this.el, 0);\n }\n\n matches(selector)\n {\n let source = this.get(0), target = null;\n\n Dom.find(selector).each((el) => {\n if ( el === source) target = el;\n });\n\n return target !== null;\n }\n\n closest(selector)\n {\n if ( this.get(0) === selector ) {\n return selector;\n }\n\n for (let 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 closestScrollable(fallback = document.body)\n {\n for (let 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 contains(selector)\n {\n if ( Any.isString(selector) === true ) {\n return this.find(selector).get(0) !== null;\n }\n\n\n if ( selector instanceof Element === false ) {\n return false;\n }\n\n return this.get(0).contains(selector);\n }\n\n inside(selector)\n {\n return this.closest(selector) !== null;\n }\n\n parent()\n {\n let 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 child(selector)\n {\n let nodes = this.get(0).childNodes;\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n if ( selector === null ) {\n return Dom.find(nodes[0] || null);\n }\n\n Arr.each(nodes, (node, index) => {\n if ( Any.isEmpty(node) || Dom.find(node).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes[0] || null);\n }\n\n childs(selector = null, filter = true)\n {\n let nodes = this.get(0).childNodes;\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 && filter === true ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n if ( selector === null ) {\n return Dom.find(nodes);\n }\n\n Arr.each(nodes, (node, index) => {\n if ( Any.isEmpty(node) || Dom.find(node).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n find(selector)\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) === true ) {\n return Dom.find(null);\n }\n\n let nodes = el.querySelectorAll(selector);\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n where(selector)\n {\n let nodes = this.get();\n\n Arr.each(nodes, (el, index) => {\n if ( Any.isEmpty(el) || Dom.find(el).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n not(selector)\n {\n let nodes = this.get();\n\n Arr.each(nodes, (el, index) => {\n if ( Any.isEmpty(el) || Dom.find(el).is(selector) === true ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n prepend(val)\n {\n this.each((el) => el.prepend(val));\n\n return this;\n }\n\n prependTo(el)\n {\n Dom.find(el).each((val) => val.prepend(this.el));\n\n return this;\n }\n\n append(val)\n {\n this.each((el) => {\n if ( el.append !== undefined ) {\n el.append(val);\n }\n });\n\n return this;\n }\n\n appendTo(el)\n {\n Dom.find(el).each((val) => {\n if ( val.append !== undefined ) {\n val.append(this.el);\n }\n });\n\n return this;\n }\n\n replace(el)\n {\n // Append node to element\n this.parent().get(0).insertBefore(el, this.get(0));\n\n // Remove existing element\n this.parent().get(0).removeChild(this.get(0));\n\n return this;\n }\n\n previous()\n {\n if ( this.empty() === true ) {\n return Dom.find(null);\n }\n\n for (let 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 next()\n {\n if ( this.empty() === true ) {\n return Dom.find(null);\n }\n\n for (let 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 loaded(callback)\n {\n let el = this.get(0), timeout = null;\n\n if ( ! el ) {\n return this;\n }\n\n timeout = setInterval(() => {\n\n if ( ! el.complete || el.naturalWidth === 0 ) {\n return;\n }\n\n callback(el);\n clearInterval(timeout);\n\n }, 100);\n\n return this;\n }\n\n bind(event, callback)\n {\n this.each((el) => el[event] = (e) => callback.call(el, e));\n\n return this;\n }\n\n unbind(event)\n {\n this.each((el) => delete el[event]);\n }\n\n on(event, callback, options = {}, paused = false)\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.on(e, callback, options);\n });\n\n return this;\n }\n\n let func = (e) => {\n callback.call(e.target, e, e.target);\n };\n\n let selector = null;\n\n this.each((el) => {\n\n Dom.events = Arr.push(Dom.events, {\n el, event, options, selector, paused, func\n });\n\n el.addEventListener(event, func, options);\n });\n\n return this;\n }\n\n live(event, selector, callback, options = {}, paused = false)\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.live(e, selector, callback, options);\n });\n\n return this;\n }\n\n let func = (e) => {\n\n let 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((el) => {\n\n Dom.events = Arr.push(Dom.events, {\n el, event, options, selector, paused, func\n });\n\n el.addEventListener(event, func, options);\n });\n\n return this;\n }\n\n one(event, callback, options = {})\n {\n this.on(event, (e) => {\n callback(e); this.off(event);\n }, options);\n\n return this;\n }\n\n fire(event)\n {\n let callback = new Event(event);\n\n this.each((el) => {\n el.dispatchEvent(callback);\n });\n\n return this;\n }\n\n delayed(event, callback, delay = 0, options = {})\n {\n this.on(event, Any.debounce(callback, delay), options);\n\n return this;\n }\n\n off(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.off(e, selector);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let indexes = Arr.filterIndex(Dom.events, {\n el, event, selector, options\n });\n\n if ( indexes.length === 0 ) {\n return;\n }\n\n Arr.each(indexes.reverse(), (index) => {\n\n el.removeEventListener(event, Dom.events[index].func,\n Dom.events[index].options);\n\n Arr.removeIndex(Dom.events, index);\n });\n });\n\n return this;\n }\n\n unpause(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.unpause(e, selector, options);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let val = Arr.find(Dom.events, {\n el, event, selector, options\n });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n el.addEventListener(event, val.func, val.options);\n });\n\n return this;\n }\n\n pause(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.pause(e, selector, options);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let val = Arr.find(Dom.events, {\n el, event, selector, options\n });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n el.removeEventListener(event, val.func, val.options);\n });\n\n return this;\n }\n\n observer(callback, initial = true)\n {\n if ( initial === true ) {\n this.each((el) => callback(el, {}));\n }\n\n let observer = new MutationObserver((mutation) => {\n this.each((el) => callback(el, mutation));\n });\n\n return (el, options) => {\n observer.observe(Dom.find(el).get(0), options);\n };\n }\n\n observerResize(callback, initial = true)\n {\n if ( initial === true ) {\n this.each((el) => callback(el));\n }\n\n let observer = new ResizeObserver(() => {\n this.each((el) => callback(el));\n });\n\n return (el) => {\n observer.observe(Dom.find(el).get(0));\n }\n }\n\n data(key = undefined, val = undefined, fallback = null)\n {\n let match = Arr.find(Dom.datas, { el: this.get(0) },\n { el: this.get(0) });\n\n if ( key === undefined ) {\n return match;\n }\n\n if ( val === undefined ) {\n return Obj.get(match, key, fallback);\n }\n\n Arr.replace(Dom.datas, Obj.set(match, key, val),\n { el: this.get(0) });\n\n return this;\n }\n\n value(val = undefined)\n {\n if ( val === undefined ) {\n return this.get(0).value;\n }\n\n this.each((el) => el.value = val);\n\n return this;\n }\n\n html(html)\n {\n this.each((el) => el.innerHTML = html);\n\n return this;\n }\n\n computed(key = null, fallback = null)\n {\n let el = this.get(0);\n\n if ( el === null || el === window || el === document) {\n return key !== null ? fallback : {};\n }\n\n let computed = getComputedStyle(el);\n\n return key !== null ? Obj.get(computed, key, fallback) : computed;\n }\n\n css(vals = undefined)\n {\n if ( vals === null ) {\n return this.attr('style', null);\n }\n\n let styles = Str.objectify(this.attr('style') || '');\n\n if ( vals === undefined ) {\n return styles;\n }\n\n this.attr('style', Obj.assign({}, styles, Str.objectify(vals)));\n }\n\n class(vals)\n {\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n this.attr('class', vals.join(' '));\n }\n\n hasClass(vals)\n {\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n return Arr.intersect(vals, cls).length !== 0;\n }\n\n addClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).addClass(vals));\n }\n\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n Arr.each(vals, (val) => {\n Arr.add(cls, val);\n });\n\n this.attr('class', cls.join(' '));\n }\n\n removeClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).removeClass(vals));\n }\n\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n Arr.each(vals, (val) => {\n Arr.remove(cls, val);\n });\n\n this.attr('class', cls.join(' '));\n }\n\n toggleClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).toggleClass(vals));\n }\n\n this.hasClass(vals) ? this.removeClass(vals) : this.addClass(vals);\n\n return this;\n }\n\n attr(attr, val = undefined)\n {\n if ( this.empty() ) {\n return null;\n }\n\n if ( Any.isPlain(attr) ) {\n return Obj.each(attr, (value, key) =>\n this.attr(key, value));\n }\n\n let 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.isPlain(val) ) {\n val = Str.options(val);\n }\n\n this.get(0).setAttribute(attr, val);\n return res;\n }\n\n actual(callback, val = null)\n {\n let style = this.attr('style');\n\n this.attr('style', val);\n\n let result = callback.call(this.get(0), this.get(0));\n\n this.attr('style', style);\n\n return result;\n }\n\n loopParent(callback, target = null)\n {\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n\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 loopOffsetParent(callback, target = document.body)\n {\n for (let el = this.get(0); el !== null && el.offsetParent !== undefined; el = el.offsetParent) {\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 offset(key = null, boundry = null)\n {\n let source = {\n top: 0, left: 0, bottom: 0, right: 0\n };\n\n this.loopOffsetParent((el) => {\n\n if ( el.offsetTop ) {\n source.top += Num.float(el.offsetTop);\n }\n\n if ( el.offsetLeft ) {\n source.left += Num.float(el.offsetLeft);\n }\n\n });\n\n source.bottom = Dom.find(document.body).scrollHeight() -\n source.top - this.height();\n\n source.right = Dom.find(document.body).scrollWidth() -\n source.left - this.width();\n\n let target = {\n top: 0, left: 0, bottom: 0, right: 0\n };\n\n Dom.find(boundry).loopOffsetParent((el) => {\n\n if ( el.offsetTop ) {\n target.top += Num.float(el.offsetTop);\n }\n\n if ( el.offsetLeft ) {\n target.left += Num.float(el.offsetLeft);\n }\n\n });\n\n target.bottom = Dom.find(document.body).scrollHeight() -\n target.top - Dom.find(boundry || document.body).scrollHeight();\n\n target.right = Dom.find(document.body).scrollWidth() -\n target.left - Dom.find(boundry || document.body).scrollWidth();\n\n let 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\n return key !== null ? Obj.get(offset, key, 0) : offset;\n }\n\n offsetTop(boundry = null)\n {\n return this.offset('top', boundry);\n }\n\n offsetBottom(boundry = null)\n {\n return this.offset('bottom', boundry);\n }\n\n offsetLeft(boundry = null)\n {\n return this.offset('left', boundry);\n }\n\n offsetRight(boundry = null)\n {\n return this.offset('right', boundry);\n }\n\n scroll(key = null, boundry = null)\n {\n let source = {\n top: 0, left: 0\n };\n\n this.loopParent((el) => {\n\n if ( el.scrollTop !== undefined ) {\n source.top += Num.float(el.scrollTop);\n }\n\n if ( el.scrollTop === undefined && el.pageYOffset !== undefined ) {\n source.top += Num.float(el.pageYOffset);\n }\n\n if ( el.scrollTop !== undefined ) {\n source.left += Num.float(el.scrollLeft);\n }\n\n if ( el.scrollTop === undefined && el.pageXOffset !== undefined ) {\n source.left += Num.float(el.pageXOffset);\n }\n\n });\n\n let target = {\n top: 0, left: 0\n };\n\n Dom.find(boundry).loopParent((el) => {\n\n if ( el.scrollTop !== undefined ) {\n target.top += Num.float(el.scrollTop);\n }\n\n if ( el.scrollTop === undefined && el.pageYOffset !== undefined ) {\n target.top += Num.float(el.pageYOffset);\n }\n\n if ( el.scrollTop !== undefined ) {\n target.left += Num.float(el.scrollLeft);\n }\n\n if ( el.scrollTop === undefined && el.pageXOffset !== undefined ) {\n target.left += Num.float(el.pageXOffset);\n }\n\n });\n\n let scroll = {\n top: source.top - target.top,\n left: source.left - target.left\n };\n\n return key !== null ? Obj.get(scroll, key, 0) : scroll;\n }\n\n scrollTop(val = null, boundry = null)\n {\n if ( val === null ) {\n return this.scroll('top', boundry);\n }\n\n this.each((el) => el.scrollTop = val);\n\n return this;\n }\n\n scrollTopGlobal()\n {\n return this.scroll('top', document.body);\n }\n\n scrollLeft(val = null, boundry = null)\n {\n if ( val === null ) {\n return this.scroll('left', boundry);\n }\n\n this.each((el) => el.scrollLeft = val);\n\n return this;\n }\n\n scrollLeftGlobal()\n {\n return this.scroll('left', document.body);\n }\n\n margin(key = null)\n {\n let computedStyle = this.computed();\n\n let margin = {\n top: Num.float(computedStyle.marginTop),\n left: Num.float(computedStyle.marginLeft),\n bottom: Num.float(computedStyle.marginBottom),\n right: Num.float(computedStyle.marginRight),\n } ;\n\n return key !== null ? Obj.get(margin, key, 0) : margin;\n }\n\n padding(key = null)\n {\n let computedStyle = this.computed();\n\n let padding = {\n top: Num.float(computedStyle.paddingTop),\n left: Num.float(computedStyle.paddingLeft),\n bottom: Num.float(computedStyle.paddingBottom),\n right: Num.float(computedStyle.paddingRight),\n };\n\n return key !== null ? Obj.get(padding, key, 0) : padding;\n }\n\n height()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n if ( el === window ) {\n return el.innerHeight;\n }\n\n return el.offsetHeight;\n }\n\n clientHeight()\n {\n return Any.integer(this.computed('height', '0px').replace(\"px\", \"\"));\n }\n\n scrollHeight()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return el.scrollHeight;\n }\n\n innerHeight()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return this.height() - this.padding('top') -\n this.padding('bottom');\n }\n\n realHeight(styles = {})\n {\n let height = 'auto';\n\n this.actual(() => height = this.height(), styles);\n\n return height;\n }\n\n evaluateHeight(target = null, auto = true)\n {\n if ( Any.isString(target) ) {\n target = Dom.find(target);\n }\n\n if ( target === null ) {\n target = this.parent();\n }\n\n let height = 'auto';\n\n this.actual(() => {\n height = target.innerHeight();\n }, { display: 'none' });\n\n if ( auto === true ) {\n this.css({ height: height + 'px' });\n }\n\n return height;\n }\n\n width()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n if ( el === window ) {\n return el.innerWidth;\n }\n\n return el.offsetWidth;\n }\n\n clientWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return Any.integer(this.computed('width', '0px').replace(\"px\", \"\"));\n }\n\n scrollWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return el.scrollWidth;\n }\n\n innerWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return this.width() - this.padding('left') -\n this.padding('right');\n }\n\n realWidth(styles = {})\n {\n let width = 0;\n\n this.actual(() => width = this.width(), styles);\n\n return width;\n }\n\n evaluateWidth(target = null, auto = true)\n {\n if ( target === null ) {\n target = this.parent();\n }\n\n let width = 'auto';\n\n this.actual(() => {\n width = target.innerWidth();\n }, { display: 'none' });\n\n if ( auto === true ) {\n this.css({ width: width + 'px' });\n }\n\n return width;\n }\n\n}\n\nexport default Dom;\n","import { Str, Arr, Obj, Num, Any, Event } from \"../index.js\";\n\nexport class Cookie\n{\n /**\n * Pattern to get the cookie desired\n *\n * @type {string}\n */\n static pattern = '(^|;)\\\\s*{key}\\\\s*=\\\\s*([^;]+)';\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 static get(key, fallback = null, decode = 'string')\n {\n let pattern = this.pattern\n .replace('{key}', key);\n\n let result = document.cookie\n .match(pattern);\n\n if ( ! result ) {\n return fallback;\n }\n\n let plain = result[2].replace(/\\{:\\}/g, ';');\n\n if ( decode === 'boolean' ) {\n return Any.boolean(plain);\n }\n\n if ( decode === 'float' ) {\n return Any.float(plain);\n }\n\n if ( decode === 'integer' ) {\n return Any.integer(plain);\n }\n\n if ( decode === 'object' ) {\n return Str.objectify(plain, 'params', false);\n }\n\n if ( decode === 'array' ) {\n return Str.objectify(plain, 'params', true);\n }\n\n return plain;\n }\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 static set(key, value, expire = null, options = {})\n {\n let 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 ( Any.isObject(value) ) {\n value = Str.stringify(value, 'params');\n }\n\n if ( Any.isString(value) ) {\n value = value.replace(/;/g, '{:}');\n }\n\n let plain = `${key}=${value};`;\n\n Obj.each(options, (value, key) => {\n plain += `${key}=${value};`;\n });\n\n document.cookie = plain;\n }\n\n /**\n * Forget cookie from current session\n *\n * @param {string} key\n * @param {object} options\n */\n static forget(key, options = {})\n {\n if ( ! options.path ) {\n options.path = '/';\n }\n\n options.expires = 'Thu, 01 Jan 1970 00:00:01 GMT';\n\n let plain = `${key}=null;`;\n\n Obj.each(options, (value, key) => {\n plain += `${key}=${value};`;\n });\n\n document.cookie = plain;\n }\n\n}\n\nexport default Cookie;\n","import { Arr, Obj, Num, Any, Event } from \"../index.js\";\n\nexport class Data\n{\n static data = Obj.get(global, '_data', {});\n\n static has(input)\n {\n return Obj.has(this.data, Arr.first(input));\n }\n\n static set(input, value)\n {\n let clone = value, key = Arr.first(input);\n\n if ( Any.isEqual(Obj.get(this.data, key), clone) ) {\n return;\n }\n\n Obj.set(this.data, key, clone);\n\n Event.fire('store:' + key, clone, key);\n }\n\n static unset(input)\n {\n let key = Arr.first(input);\n\n Obj.unset(this.data, key);\n }\n\n static get (input, fallback = null, forceSet = false)\n {\n let key = Arr.first(input);\n\n if ( ! Obj.has(this.data, key) && ! forceSet ) {\n return fallback;\n }\n\n if ( Obj.has(this.data, key) && forceSet ) {\n Obj.set(this.data, key, fallback);\n }\n\n let value = Obj.get(this.data, key, fallback);\n\n if ( ! Any.isPlain(value) ) {\n return value;\n }\n\n return Obj.clone(value);\n }\n\n static find (input, value, fallback = null)\n {\n let key = Arr.first(input);\n\n if ( Obj.has(this.data, key) === false ) {\n return fallback;\n }\n\n if ( Obj.has(value, 'id') === false ) {\n return fallback;\n }\n\n let index = 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 static replace (input, value)\n {\n let key = Arr.first(input);\n\n if ( Obj.has(this.data, key) === false ) {\n return;\n }\n\n if ( Obj.has(value, 'id') === false ) {\n return;\n }\n\n let index = Arr.findIndex(this.get(key), {\n id: Num.int(value.id)\n });\n\n if ( index === -1 ) {\n return;\n }\n\n this.set(key + '.' + index, value);\n }\n\n static add (input, ...args)\n {\n this.set(input, Arr.concat(this.get(input, []), args));\n }\n\n static remove (input, ...args)\n {\n this.set(input, Arr.diff(this.get(input, []), args));\n }\n\n}\n\nexport default Data;\n","import { Str, Obj, Dom, Any, Arr } from \"../index.js\";\n\nexport class Element\n{\n /**\n * Prefix for attribute selector.\n */\n static prefix = 'js';\n\n /**\n * Mounted identifier.\n */\n static mount = 'mount';\n\n /**\n * Instance storage.\n */\n static inis = {};\n\n /**\n * Runtime storage.\n */\n static runs = [];\n\n /**\n * Bind a class on selector.\n */\n static alias(key, instance)\n {\n Obj.set(this.inis, key, instance);\n\n return this;\n }\n\n static bind(key, selector, options = {})\n {\n let el = Dom.find(selector), prefix = this.getPrefix(key);\n\n // Add mounted class\n el.addClass(prefix);\n\n let instance = Obj.get(this.inis,\n key, null);\n\n if ( Any.isEmpty(instance) ) {\n return console.error(`Element \"${key}\" is not defined.`);\n }\n\n let callback = (el, options) => {\n\n let cb = new instance(\n el.get(0), options\n );\n\n Element.runs.push({\n el: el.get(0), prefix: prefix, deamon: cb\n });\n\n el.data(prefix, cb);\n\n return cb.bind !== undefined ?\n cb.bind(el.get(0), options) : cb;\n };\n\n // Bind option\n Dom.ready(() => callback.call({}, el, options));\n\n return this;\n }\n\n static unbind(key, selector, options = {})\n {\n let el = Dom.find(selector), prefix = this.getPrefix(key);\n\n let instance = Obj.get(this.inis,\n key, null);\n\n if ( Any.isEmpty(instance) ) {\n return console.error(`Element \"${key}\" is not defined.`);\n }\n\n let callback = (el, options) => {\n\n let cb = el.data(prefix);\n\n if ( cb.unbind === undefined ) {\n return;\n }\n\n return cb.unbind(el.get(0), options);\n };\n\n // Unbind option\n callback.call({}, el, options);\n\n Arr.remove(Element.runs, { el: el.get(0) });\n\n return this;\n }\n\n\n /**\n * Bind callback on selector.\n */\n static observe(key, plain = false)\n {\n let selector = this.getPrefix(key);\n\n let options = {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: [selector]\n };\n\n let callback = () => {\n\n let mounted = Element.getPrefix(key);\n\n let deamons = Arr.filter(this.runs,\n { prefix: selector });\n\n Arr.each(deamons, ({ el }) => {\n\n let options = Str.objectify(\n Dom.find(el).attr(selector)\n );\n\n if ( plain && Any.isEmpty(options) ) {\n options = { _plain: Dom.find(el).attr(selector) };\n }\n\n if ( document.body.contains(el) ) {\n return;\n }\n\n return this.unbind(key, el, options)\n });\n\n Dom.find(`[${selector}]:not(.${mounted})`).each((el) => {\n\n let options = Str.objectify(\n Dom.find(el).attr(selector)\n );\n\n if ( plain && Any.isEmpty(options) ) {\n options = { _plain: Dom.find(el).attr(selector) };\n }\n\n this.bind(key, el, options);\n });\n\n };\n\n Dom.find(document.body).observer(callback)\n (document.body, options);\n\n Dom.find(document.body).on('dom.change', callback);\n\n return this;\n }\n\n\n\n /**\n * Return prefix with key.\n */\n static getPrefix(key)\n {\n return key ? this.prefix + '-' + key : this.prefix;\n }\n\n /**\n * Set prefix to given value.\n */\n static setPrefix(prefix)\n {\n this.prefix = prefix;\n }\n\n}\n\nexport default Element;\n","import { Arr, Any } from \"../index.js\";\n\nexport class Event\n{\n static events = [];\n\n static bind(name, callback, options = {}, paused = false)\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) =>\n this.bind(val, callback, options, paused));\n }\n\n if ( ! Any.isPlain(options) ) {\n options = { value: options }\n }\n\n this.events = Arr.push(this.events, {\n name, callback, options, paused\n });\n\n return this;\n }\n\n static unbind(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.unbind(val, options));\n }\n\n if ( ! Any.isPlain(options) ) {\n options = { value: options }\n }\n\n Arr.remove(this.events, { name, options });\n\n return this;\n }\n\n static fire(name, ...args)\n {\n let events = this.events.filter((item) => {\n return item.name === name;\n });\n\n Arr.each(events, (event) => {\n if ( event.paused === false ) {\n event.callback.call({}, ...args);\n }\n });\n\n return this;\n }\n\n static pause(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.pause(val, options));\n }\n\n let val = Arr.find(this.events, { name, options });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n return this;\n }\n\n static unpause(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.unpause(val, options));\n }\n\n let val = Arr.find(this.events, { name, options });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = false;\n\n return this;\n }\n\n}\n\nexport default Event;\n","import { Obj } from \"../index.js\";\n\nexport class Locale\n{\n /**\n * Get locales from window if present.\n */\n static locales = Obj.get(global, '_locales', {});\n\n static pickByCount(splits, count)\n {\n let 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 static has(key)\n {\n return Obj.has(Locale.locales, key);\n }\n\n static get(key, fallback = null)\n {\n return Obj.get(Locale.locales, key, fallback || key);\n }\n\n static set(key, value)\n {\n Obj.set(Locale.locales, key, value);\n\n return this;\n }\n\n static trans(key, values = {})\n {\n let message = Obj.get(Locale.locales, key, key);\n\n Obj.each(values, (value, key) => {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n\n return message;\n }\n\n static choice(key, count = 0, values = {})\n {\n let splits = Obj.get(Locale.locales, key, key).split('|');\n\n if ( typeof values.count === 'undefined' ) {\n values = Obj.assign({ count: count }, values);\n }\n\n let message = Locale.pickByCount(splits, count);\n\n Obj.each(values, (value, key) => {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n\n return message;\n }\n\n}\n\nexport default Locale;\n","import { Obj, Arr, Any, Dom, UUID } from \"../index.js\";\n\n/**\n * @const {object} google\n */\n\nexport default class Map\n{\n map = null;\n\n static mapStyle = [];\n\n markers = {};\n\n static markerStyles = {};\n\n cluster = null;\n\n clusterFilter = null;\n\n clusterOptions = {};\n\n static hideMarkers = true;\n\n static closeInfoWindows = true;\n\n constructor(el, options = {})\n {\n if ( ! global.google ) {\n return console.error('Google Maps is not loaded.');\n }\n\n let center = Obj.only(options, ['lat', 'lng']);\n\n if ( ! Obj.has(options, 'styles') ) {\n options.styles = Map.mapStyle;\n }\n\n options = Obj.assign({ gestureHandling: 'cooperative', scrollwheel: null, zoom: 12, center },\n Obj.except(options, ['lat', 'lng']));\n\n this.map = new global.google.maps.Map(Dom.find(el).get(0), options)\n }\n\n static setMapStyle(style = [])\n {\n Map.mapStyle = style;\n\n return this;\n }\n\n static setMarkerStyle(key, style = {}, extra = {})\n {\n if ( ! global.google ) {\n return console.error('Google Maps is not loaded.');\n }\n\n if ( ! Obj.has(style, 'default') ) {\n return console.error('Marker style requires default property')\n }\n\n if ( ! Obj.has(style, 'width') ) {\n style.width = 45;\n }\n\n if ( ! Obj.has(style, 'height') ) {\n style.height = 45;\n }\n\n let final = {};\n\n // Marker size\n let size = new global.google.maps.Size(style.width, style.height);\n\n // Point position\n let origin = new global.google.maps.Point(0, 0);\n\n // Point position\n let anchor = new global.google.maps.Point(style.width / 2, style.height);\n\n final.default = {\n url: style.default, size: size, origin: origin, anchor: anchor, scaledSize: size\n };\n\n if ( Obj.has(style, 'hover') ) {\n final.hover = Obj.assign({}, final.default, { url: style.hover });\n }\n\n if ( ! Obj.has(final, 'hover') ) {\n final.hover = final.default;\n }\n\n if ( Obj.has(style, 'active') ) {\n final.active = Obj.assign({}, final.default, { url: style.active });\n }\n\n if ( ! Obj.has(final, 'active') ) {\n final.active = final.default;\n }\n\n Obj.each(extra, (value, prop) => {\n final[prop] = Obj.assign({}, final.default, { url: value });\n });\n\n Obj.set(Map.markerStyles, key, final);\n\n return this;\n }\n\n clusterMarkers(options = {}, filter = null, allowCreate = 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 ( ! Obj.has(options, 'imagePath') && ! 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 ( Any.isFunction(filter) ) {\n this.clusterFilter = filter;\n }\n\n let markers = Arr.filter(this.markers, (item) => {\n\n let visible = this.getMarkerVisibility(item.key);\n\n if ( ! Any.isFunction(this.clusterFilter) ) {\n return visible;\n }\n\n return visible && this.clusterFilter.call(this, item);\n });\n\n this.cluster = new global.MarkerClusterer(this.map, Arr.each(markers, (item) => item.marker),\n this.clusterOptions = options);\n }\n\n styleMarker(key, type = null)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( Any.isEmpty(type) ) {\n type = this.getInfoVisibility(key) ? 'active' : 'default';\n }\n\n if ( ! Obj.has(Map.markerStyles, [item.style, type]) ) {\n return;\n }\n\n item.marker.setIcon(Obj.get(Map.markerStyles, [item.style, type]));\n }\n\n getMarker(key)\n {\n return Obj.get(this.markers, key);\n }\n\n getMarkerVisibility(key, fallback = false)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return fallback;\n }\n\n return item.marker.getVisible();\n }\n\n getMarkerPositon(key, fallback = null)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return fallback;\n }\n\n return item.marker.getPosition();\n }\n\n toggleMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${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 showMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let hidden = ! item.marker.getVisible();\n\n if ( hidden ) {\n item.marker.setVisible(true);\n }\n\n return hidden;\n }\n\n hideMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let visible = !! item.marker.getVisible();\n\n if ( visible ) {\n item.marker.setVisible(false);\n }\n\n this.closeInfo(key);\n\n return visible;\n }\n\n enterMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let type = 'hover';\n\n if ( this.getInfoVisibility(key) ) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n\n return this;\n }\n\n leaveMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let type = 'default';\n\n if ( this.getInfoVisibility(key) ) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n\n return this;\n }\n\n getInfoVisibility(key, fallback = false)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) || ! Obj.has(item, 'info') ) {\n return fallback;\n }\n\n return !! item.info.getMap();\n }\n\n toggleInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${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 openInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`InfoWindow \"${key}\" not found`);\n }\n\n if ( ! Obj.has(item, 'info') ) {\n return true;\n }\n\n let hidden = ! item.info.getMap();\n\n if ( Map.closeInfoWindows ) {\n Obj.each(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\n return hidden;\n }\n\n closeInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`InfoWindow \"${key}\" not found`);\n }\n\n if ( ! Obj.has(item, 'info') ) {\n return false;\n }\n\n let visible = !! item.info.getMap();\n\n if ( visible ) {\n item.info.close();\n }\n\n this.styleMarker(key, 'default');\n\n return visible;\n }\n\n createMarker(key = null, options = {})\n {\n if ( Any.isEmpty(key) ) {\n key = UUID();\n }\n\n let item = { key };\n\n if ( ! Obj.has(options, 'visible') ) {\n options.visible = true;\n }\n\n item.extras = Obj.except(options, [\n 'map', 'position', 'lat', 'lng', 'html', 'style', 'visible'\n ]);\n\n if ( ! Obj.has(options, 'map') ) {\n options.map = this.map;\n }\n\n if ( ! Obj.has(options, 'positon') ) {\n options.position = Obj.only(options, ['lat', 'lng']);\n }\n\n if ( 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 Obj.set(this.markers, key, item);\n\n this.clusterMarkers(this.clusterOptions, null, false);\n\n if ( ! Obj.has(options, 'html') ) {\n return Obj.get(this.markers, key);\n }\n\n if ( ! Obj.has(item, 'style') ) {\n item.style = 'default';\n }\n\n // Style marker\n this.styleMarker(key);\n\n // Add marker hover style\n item.marker.addListener('mouseover', () => this.enterMarker(key));\n\n // Add marker default style\n item.marker.addListener('mouseout', () => this.leaveMarker(key));\n\n item.info = new global.google.maps.InfoWindow({\n content: '<div class=\"gw-i-html\">' + Obj.get(options, 'html') + '</div>'\n });\n\n item.marker.addListener('click', () => this.toggleInfo(key));\n item.info.addListener('closeclick', () => this.closeInfo(key));\n\n Obj.set(this.markers, key, item);\n\n return Obj.get(this.markers, key);\n }\n\n setMarkerPosition(key, options = {})\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n item.marker.setPosition(options);\n }\n\n setMarkerByAddress(key, address)\n {\n return this.getLocationByAddress(address, (res) => {\n this.setMarkerPosition(key, Obj.get(res, '0.geometry.location', {}));\n });\n }\n\n getLocationByAddress(address, callback = null)\n {\n let geocoderService = new global.google.maps.Geocoder();\n\n let geocoderPromise = (resolve, reject) => {\n\n let geocoderResult = (response, status) => {\n\n if ( status === 'OK' ) {\n callback(response);\n resolve(response);\n }\n\n if ( status !== 'OK' ) {\n reject(response);\n }\n\n };\n\n geocoderService.geocode({ address }, geocoderResult);\n };\n\n return new Promise(geocoderPromise);\n }\n\n showMarkers(filter = null)\n {\n let markers = this.markers;\n\n if ( ! Any.isEmpty(filter) ) {\n markers = Obj.filter(this.markers, filter);\n }\n\n if ( Map.hideMarkers ) {\n Obj.each(Any.keys(this.markers), this.hideMarker.bind(this));\n }\n\n Obj.each(markers, (item) => this.showMarker(item.key));\n\n this.clusterMarkers(this.clusterOptions, null, false);\n\n return this;\n }\n\n getMarkerBoundry(filter = null)\n {\n let markers = this.markers;\n\n if ( ! Any.isEmpty(filter) ) {\n markers = Obj.filter(this.markers, filter);\n }\n\n let boundry = new global.google.maps.LatLngBounds();\n\n Obj.each(markers, (item) => {\n if ( item.marker.getVisible() ) {\n boundry.extend(item.marker.getPosition());\n }\n });\n\n return boundry;\n }\n\n focusMarkers(filter = null, maxZoom = 14)\n {\n let boundry = this.getMarkerBoundry(filter);\n\n // Center map to boundry\n this.map.setCenter(boundry.getCenter());\n\n // Adapt viewport to boundry\n this.map.fitBounds(boundry, 15);\n\n if ( this.map.getZoom() > maxZoom ) {\n this.map.setZoom(maxZoom);\n }\n\n return this;\n }\n\n renderDirections(options)\n {\n // Get directions service\n let directionsService = new global.google.maps.DirectionsService();\n\n // Get directions renderer\n let directionsRenderer = new global.google.maps.DirectionsRenderer();\n\n if ( ! Obj.has(options, 'map') ) {\n options.map = this.map;\n }\n\n if ( ! Obj.has(options, 'travelMode') ) {\n options.travelMode = 'DRIVING';\n }\n\n // Set directions map\n directionsRenderer.setMap(options.map);\n\n if ( Obj.has(options, 'panel') && ! Dom.find(options.panel).empty() ) {\n directionsRenderer.setPanel(Dom.find(options.panel).get(0));\n }\n\n options = Obj.only(options, ['origin', 'destination', 'travelMode']);\n\n let directionsPromise = (resolve, reject) => {\n\n let directionsResult = (response, status) => {\n\n if ( status === 'OK' ) {\n directionsRenderer.setDirections(response);\n resolve(response);\n }\n\n if ( status !== 'OK' ) {\n reject(response);\n }\n\n };\n\n directionsService.route(options, directionsResult);\n };\n\n return new Promise(directionsPromise);\n }\n\n}\n","import { Arr } from \"../index.js\";\n\nexport default class Queue\n{\n queue = [];\n stopQueue = false;\n activeQueue = false;\n\n constructor(queue = [])\n {\n this.queue = queue;\n }\n\n handler(queue, index)\n {\n return () => queue.length - 1 > index ++ && this.stopQueue === false ?\n queue[index](this.handler(queue, index)) : () => {};\n }\n\n stop()\n {\n this.stopQueue = true;\n this.activeQueue = false;\n\n this.queue = [];\n\n return this;\n }\n\n clear()\n {\n this.queue = [];\n\n return this;\n }\n\n add(cb)\n {\n this.queue.push(cb);\n\n return this;\n }\n\n run()\n {\n let instance = new Queue(this.queue);\n\n instance.add(() => {\n instance.activeQueue = false;\n });\n\n if ( instance.queue.length !== 0 ) {\n Arr.first(instance.queue)(instance.handler(instance.queue.slice(0), 0));\n }\n\n return instance;\n }\n\n active()\n {\n return this.activeQueue;\n }\n\n}\n","import { Obj, Str, Any } from \"../index.js\";\n\nexport default class Route\n{\n static routes = Obj.get(global, '_routes', {});\n\n static set (key, value)\n {\n this.routes[key] = value;\n }\n\n static get (key, values = null, params = null)\n {\n let route = key.match(/^https?:\\/\\//) ? key : this.routes[key] || key;\n\n Obj.each(values || {}, (value, key) => {\n route = route.replace(new RegExp('{' + key + '\\\\?*}', 'g'), value);\n });\n\n return route + (! Any.isEmpty(params) ? ('?' + Str.params(params)) : '');\n }\n\n static goto (key, values = null, params = null)\n {\n global.location.href = this.get(key, values, params);\n }\n\n}\n","var v1 = require('./v1');\nvar v4 = require('./v4');\n\nvar uuid = v4;\nuuid.v1 = v1;\nuuid.v4 = v4;\n\nmodule.exports = uuid;\n","// 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","/**\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","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\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","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\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"],"sourceRoot":""}
|
1
|
+
{"version":3,"sources":["webpack://Pico/webpack/universalModuleDefinition","webpack://Pico/webpack/bootstrap","webpack://Pico/./src/index.js","webpack://Pico/./src/utility/any.js","webpack://Pico/./src/utility/array.js","webpack://Pico/./src/utility/number.js","webpack://Pico/./src/utility/object.js","webpack://Pico/(webpack)/buildin/global.js","webpack://Pico/./src/utility/string.js","webpack://Pico/external {\"root\":\"moment\",\"commonjs2\":\"moment\",\"commonjs\":\"moment\",\"amd\":\"moment\"}","webpack://Pico/./src/utility/now.js","webpack://Pico/./src/utility/dom.js","webpack://Pico/./src/library/cookie.js","webpack://Pico/./src/library/data.js","webpack://Pico/./src/library/element.js","webpack://Pico/./src/library/event.js","webpack://Pico/./src/library/locale.js","webpack://Pico/./src/library/map.js","webpack://Pico/./src/library/queue.js","webpack://Pico/./src/library/route.js","webpack://Pico/./node_modules/uuid/index.js","webpack://Pico/./node_modules/uuid/lib/rng-browser.js","webpack://Pico/./node_modules/uuid/lib/bytesToUuid.js","webpack://Pico/./node_modules/uuid/v1.js","webpack://Pico/./node_modules/uuid/v4.js"],"names":["root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__7__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Pico","UUID","Arr","Obj","Num","Str","Now","Any","Dom","Cookie","Data","Element","Event","Locale","Map","Queue","Route","global","IE","navigator","userAgent","match","WIN","pi","val","this","isNumber","isString","isBool","isPlain","isArray","keys","length","obj","Node","isEqualNode","is","isObject","constructor","Array","Date","String","empty","isEmpty","string","parseInt","parseFloat","result","yes","no","format","make","push","callback","args","setTimeout","delay","ref","debounce","undefined","__debouce","clearTimeout","throttle","rate","latest","now","form","FormData","appendField","values","each","index","inner","merge","splice","append","count","map","fill","arr","fallback","isFunction","sort","a","b","integer","va","toLowerCase","vb","filter","filterIndex","includes","first","findIndex","finder","slice","vals","indexOf","concat","clone","diff","reduce","chunk","res","accumulator","path","cascade","recursive","num","replace","Math","ceil","round","floor","fixed","toFixed","start","end","random","base","pow","acc","cord1","cord2","miles","defaultCord","lat","lng","assign","radlat1","PI","radlat2","theta","radtheta","dist","sin","cos","acos","decimal","thousand","toString","totals","minals","splits","split","reverse","join","lst","pop","undef","nested","shift","unset","has","matches","entries","sey","tey","g","Function","e","toUpperCase","slug","slugify","ucfirst","targets","source","RegExp","charAt","search","lower","decimals","size","units","unit","limit","real","array","bool","fromParams","fromOptions","JSON","parse","params","options","stringify","quota","regex","convertFromOptions","attr","set","convertFromParams","date","toDate","initialDate","moment","second","add","minute","hour","day","subtract","month","year","isValid","force","valid","before","code","after","equal","fromDate","subDecades","addDecades","prevMonth","decade","lastDate","target","range","targetNow","afterDate","equalDate","nextDate","beforeDate","dates","getDates","prev","prepend","prevDate","next","last","interval","el","NodeList","ratio","viewport","width","find","height","element","scroll","offset","left","right","top","bottom","selector","parent","els","node","parentNode","document","body","scrollHeight","clientHeight","contains","closest","nodes","childNodes","nodeType","querySelectorAll","insertBefore","removeChild","previousSibling","nextSibling","timeout","setInterval","complete","naturalWidth","clearInterval","event","paused","on","func","events","addEventListener","live","srcElement","location","clientX","clientY","inside","off","dispatchEvent","indexes","removeEventListener","removeIndex","unpause","pause","initial","observer","MutationObserver","mutation","observe","ResizeObserver","datas","html","innerHTML","computed","getComputedStyle","styles","objectify","cls","intersect","addClass","removeClass","remove","toggleClass","hasClass","getAttribute","removeAttribute","setAttribute","style","offsetParent","boundry","loopOffsetParent","offsetTop","offsetLeft","scrollWidth","loopParent","scrollTop","pageYOffset","scrollLeft","pageXOffset","computedStyle","margin","marginTop","marginLeft","marginBottom","marginRight","padding","paddingTop","paddingLeft","paddingBottom","paddingRight","innerHeight","offsetHeight","actual","auto","display","css","innerWidth","offsetWidth","ready","readyState","globals","timer","required","createElement","posx","posy","elementsFromPoint","msElementsFromPoint","text","glue","title","baseTitle","decode","pattern","cookie","plain","expire","setTime","getTime","expires","toUTCString","input","data","isEqual","fire","forceSet","id","instance","inis","prefix","getPrefix","console","error","cb","runs","deamon","unbind","childList","subtree","attributes","attributeFilter","mounted","deamons","_plain","item","splitLength","locales","message","pickByCount","google","center","only","mapStyle","gestureHandling","scrollwheel","zoom","except","maps","allowCreate","cluster","MarkerClusterer","imagePath","clearMarkers","clusterFilter","markers","visible","getMarkerVisibility","marker","clusterOptions","type","getInfoVisibility","markerStyles","setIcon","getVisible","getPosition","hideMarker","showMarker","hidden","setVisible","closeInfo","styleMarker","info","getMap","openInfo","closeInfoWindows","open","close","extras","position","Marker","clusterMarkers","addListener","enterMarker","leaveMarker","InfoWindow","content","toggleInfo","setPosition","address","getLocationByAddress","setMarkerPosition","geocoderService","Geocoder","geocoderPromise","resolve","reject","geocode","response","status","Promise","hideMarkers","LatLngBounds","extend","maxZoom","getMarkerBoundry","setCenter","getCenter","fitBounds","getZoom","setZoom","directionsService","DirectionsService","directionsRenderer","DirectionsRenderer","travelMode","setMap","panel","setPanel","route","setDirections","extra","final","Size","origin","Point","anchor","url","scaledSize","hover","active","prop","queue","stopQueue","handler","activeQueue","routes","href","v1","v4","uuid","getRandomValues","crypto","msCrypto","rnds8","Uint8Array","rnds","byteToHex","substr","buf","bth","_nodeId","_clockseq","rng","bytesToUuid","_lastMSecs","_lastNSecs","clockseq","seedBytes","msecs","nsecs","dt","Error","tl","tmh","ii"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,WACR,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,UAAWJ,GACO,iBAAZC,QACdA,QAAc,KAAID,EAAQG,QAAQ,WAElCJ,EAAW,KAAIC,EAAQD,EAAa,QARtC,CASGO,QAAQ,SAASC,GACpB,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUT,QAGnC,IAAIC,EAASM,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHX,QAAS,IAUV,OANAY,EAAQH,GAAUI,KAAKZ,EAAOD,QAASC,EAAQA,EAAOD,QAASQ,GAG/DP,EAAOU,GAAI,EA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AAOL,EAAQ,WAAc,IAAS,UAC1C7a,EAAEpH,KAAOsiB,IAAQ,EAAI,IACrBlb,EAAEpH,KAAa,IAANsiB,EAGTlb,EAAEpH,KAAOsiB,IAAQ,GAAK,GAAM,GAC5Blb,EAAEpH,KAAOsiB,IAAQ,GAAK,IAGtBlb,EAAEpH,KAAO+hB,IAAa,EAAI,IAG1B3a,EAAEpH,KAAkB,IAAX+hB,EAGT,IAAK,IAAItgB,EAAI,EAAGA,EAAI,IAAKA,EACvB2F,EAAEpH,EAAIyB,GAAKgQ,EAAKhQ,GAGlB,OAAO8f,GAAYK,EAAYxa,K,gBCzGjC,IAAIua,EAAM,EAAQ,IACdC,EAAc,EAAQ,IA2B1BriB,EAAOD,QAzBP,SAAYkO,EAAS+T,EAAKtQ,GACxB,IAAIjR,EAAIuhB,GAAOtQ,GAAU,EAEF,iBAAb,IACRsQ,EAAkB,WAAZ/T,EAAuB,IAAIjJ,MAAM,IAAM,KAC7CiJ,EAAU,MAIZ,IAAI4T,GAFJ5T,EAAUA,GAAW,IAEFlE,SAAWkE,EAAQmU,KAAOA,KAO7C,GAJAP,EAAK,GAAgB,GAAVA,EAAK,GAAa,GAC7BA,EAAK,GAAgB,GAAVA,EAAK,GAAa,IAGzBG,EACF,IAAK,IAAIgB,EAAK,EAAGA,EAAK,KAAMA,EAC1BhB,EAAIvhB,EAAIuiB,GAAMnB,EAAKmB,GAIvB,OAAOhB,GAAOK,EAAYR","file":"pico-js.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"moment\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"moment\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Pico\"] = factory(require(\"moment\"));\n\telse\n\t\troot[\"Pico\"] = factory(root[\"moment\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__7__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 21);\n","\nimport Arr from \"./utility/array.js\";\nexport { Arr };\n\nimport Obj from \"./utility/object.js\";\nexport { Obj };\n\nimport Num from \"./utility/number.js\";\nexport { Num };\n\nimport Str from \"./utility/string.js\";\nexport { Str };\n\nimport Now from \"./utility/now.js\";\nexport { Now };\n\nimport Any from \"./utility/any.js\";\nexport { Any };\n\nimport Dom from \"./utility/dom.js\";\nexport { Dom };\n\nimport Cookie from \"./library/cookie.js\";\nexport { Cookie };\n\nimport Data from \"./library/data.js\";\nexport { Data };\n\nimport Element from \"./library/element.js\";\nexport { Element };\n\nimport Event from \"./library/event.js\";\nexport { Event };\n\nimport Locale from \"./library/locale.js\";\nexport { Locale };\n\nimport Map from \"./library/map.js\";\nexport { Map };\n\nimport Queue from \"./library/queue.js\";\nexport { Queue };\n\nimport Route from \"./library/route.js\";\nexport { Route };\n\nimport { v4 as UUID } from \"uuid\"\nexport { UUID };\n\nexport const Pico = {\n\n UUID: UUID,\n\n Arr: Arr,\n Obj: Obj,\n Num: Num,\n Str: Str,\n Now: Now,\n Any: Any,\n Dom: Dom,\n\n Cookie: Cookie,\n Data: Data,\n Element: Element,\n Event: Event,\n Locale: Locale,\n Map: Map,\n Queue: Queue,\n Route: Route,\n}\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\nexport default Pico;\n","import { Arr, Obj, Now } from \"../index.js\";\n\nexport class Any\n{\n static isEmpty(val)\n {\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 static isNull(val)\n {\n return val === null;\n }\n\n static isEqual(obj, val)\n {\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 static isString(val)\n {\n return typeof val === 'string';\n }\n\n static isNumber(val)\n {\n return typeof val === 'number' ||\n (typeof val === 'string' && val.match(/^\\-?[0-9]+$/));\n }\n\n static isBool(val)\n {\n return typeof val === 'boolean' ||\n (typeof val === 'string' && val.match(/^(true|false)$/));\n }\n\n static isFunction(val)\n {\n return typeof val === 'function';\n }\n\n static isObject(val)\n {\n return val !== null && typeof val === 'object';\n }\n\n static isPlain(val)\n {\n return this.isObject(val) && val.constructor === Object;\n }\n\n static isArray(val)\n {\n return this.isObject(val) && val.constructor === Array;\n }\n\n static isDate(val)\n {\n return val instanceof Date;\n }\n\n static string(val)\n {\n return String(val);\n }\n\n static convertString(val, empty = '-')\n {\n return this.isEmpty(val) ? empty : this.string(val);\n }\n\n static integer(val)\n {\n return parseInt(val);\n }\n\n static float(val)\n {\n return parseFloat(val);\n }\n\n static bool(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static boolean(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static convertBool(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertBoolean(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertDatetime(val, format = 'YYYY-MM-DD hh:mm:ss', empty = '-')\n {\n if ( Any.isEmpty(val) === true ) {\n return empty;\n }\n\n return Now.make(val).format(format);\n }\n\n static vals(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(obj[key]);\n }\n }\n\n return keys;\n }\n\n static keys(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(key);\n }\n }\n\n return keys;\n }\n\n static async(callback, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, 0);\n\n return this;\n }\n\n static delay(callback, delay = 100, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, delay);\n\n return this;\n }\n\n static debounce(callback, delay = 100, ref = null)\n {\n let 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 (...args) => {\n\n clearTimeout(debounce);\n\n debounce = setTimeout(() => {\n callback(...args);\n }, delay);\n\n if ( ! Any.isEmpty(ref) ) {\n ref(debounce);\n }\n };\n }\n\n static throttle(callback, delay = 100, ref = null)\n {\n let throttle = null;\n\n if ( ! Any.isEmpty(ref) ) {\n throttle = ref();\n }\n\n return (...args) => {\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(...args);\n };\n }\n\n static framerate(callback, rate = 30, ref = null)\n {\n let latest = 0;\n\n if ( ! Any.isEmpty(ref) ) {\n latest = ref();\n }\n\n return (...args) => {\n\n if ( Date.now() - latest <= (1000 / rate) ) {\n return;\n }\n\n callback(...args);\n\n latest = Date.now();\n\n if ( ! Any.isEmpty(ref) ) {\n ref(latest);\n }\n\n };\n }\n\n static form(obj)\n {\n let form = new FormData();\n\n let appendField = (values, keys = []) => {\n Obj.each(values, (value, index) => {\n\n let inner = 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 let key = inner.splice(0, 1)[0];\n\n Arr.each(inner, (index) => {\n key += '[' + index + ']';\n });\n\n if ( value !== null ) {\n form.append(key, value);\n }\n });\n\n return form;\n };\n\n return appendField(obj);\n }\n\n}\n\nexport default Any;\n","import { Obj, Num, Any } from \"../index.js\"\n\nexport class Arr\n{\n static make(count)\n {\n return Arr.map(Array(count).fill(null), (val, key) => {\n return Num.int(key) + 1;\n });\n }\n\n static all(arr)\n {\n return Array.isArray(arr) ? arr : [arr];\n }\n\n static get(arr, index, fallback = null)\n {\n return arr[index] || fallback;\n }\n\n static set(arr, index, value)\n {\n return arr[index] = value;\n }\n\n static first(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[0] : \n arr) || fallback;\n }\n\n static second(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[1] || \n arr[0] : arr) || fallback;\n }\n\n static third(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[2] || \n arr[1] || arr[0] : arr) || fallback;\n }\n\n static last(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[arr.length - 1] : \n arr) || fallback;\n }\n\n static prepend(arr, val)\n {\n arr.splice(0, 0, val);\n return arr;\n }\n\n static append(arr, val)\n {\n arr.splice(arr.length, 0, val);\n return arr;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return(va < vb) ? -1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n\n static filter(arr, filter)\n {\n return Arr.each(Arr.filterIndex(arr, filter), (key) => {\n return arr[key];\n });\n }\n\n static filterIndex(arr, filter)\n {\n return Any.keys(arr).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, arr[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, arr[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, arr[key]);\n }\n\n return filter === arr[key];\n });\n }\n\n static find(arr, val, fallback = null)\n {\n return Arr.first(Arr.filter(arr, val)) || fallback;\n }\n\n static findIndex(arr, val, fallback = -1)\n {\n return Any.integer(Arr.first(Arr.filterIndex(arr, val)) || fallback);\n }\n\n static has(arr, val)\n {\n return this.findIndex(arr, val) !== - 1;\n }\n\n static add(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index === - 1 ) {\n arr.push(val);\n }\n\n return arr;\n }\n\n static replace(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n arr.push(val);\n\n return arr;\n }\n\n static remove(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n return arr;\n }\n\n static toggle(arr, val)\n {\n let 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 static removeIndex(arr, val)\n {\n if ( val < arr.length ) {\n arr.splice(Num.int(val), 1);\n }\n\n return arr;\n }\n\n static insert(arr, key, val)\n {\n arr.splice(Num.int(key), 0, val);\n\n return arr;\n }\n\n static slice(arr, key, count = 1)\n {\n return arr.slice(Num.int(key), count);\n }\n\n static splice(arr, key, count = 1)\n {\n return arr.splice(Num.int(key), count);\n }\n\n static includes(arr, val)\n {\n let result = false;\n\n for ( let key of Any.vals(arr) ) {\n result = val.indexOf(key) !== -1 || result;\n }\n\n return result;\n }\n\n static contains(arr, val)\n {\n let result = true;\n\n for ( let key of Any.vals(val) ) {\n result = Any.vals(arr).indexOf(key) !== -1 && result;\n }\n\n return result;\n }\n\n static concat(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static clone(arr)\n {\n let clone;\n\n if ( Any.isPlain(arr) ){\n return Obj.clone(arr);\n }\n\n if ( Any.isArray(arr) ){\n\n clone = [];\n\n for ( let key of Any.keys(arr) ) {\n clone[key] = Obj.clone(arr[key]);\n }\n\n return clone;\n }\n\n return clone || arr;\n }\n\n static merge(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static push(arr, ...args)\n {\n arr.push(...args);\n\n return arr;\n }\n\n static diff(arr, val)\n {\n return arr.filter((diff) => val.indexOf(diff) < 0);\n }\n\n static intersect(...args)\n {\n return args.reduce((a, c) => a.filter(i => c.includes(i)));\n }\n\n static chunk(arr, chunk = 10)\n {\n let res = [];\n\n for ( let i = 0; i < arr.length; i += chunk ) {\n res.push(arr.slice(i, i + chunk));\n }\n\n return res;\n }\n\n static reduce(arr, callback, accumulator)\n {\n return Object.values(arr).reduce(callback, accumulator);\n }\n\n static extract(arr, path)\n {\n return this.each(arr, (val) => Obj.get(val, path, null));\n }\n\n static each(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return Any.vals(result);\n }\n\n static map(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = arr[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return result;\n }\n\n static recursive(arr, key, callback, cascade = [])\n {\n if ( Any.isArray(arr) === true ) {\n return this.map(arr, (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n }\n\n if ( Any.isObject(arr) === true ) {\n\n let res = callback(arr, cascade);\n\n arr = res !== undefined ?\n res : arr;\n }\n\n if ( Any.isArray(arr[key]) === true ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.map(arr[key], (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n\n return arr;\n }\n\n if ( Any.isEmpty(arr[key]) === false ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.recursive(arr[key], key, callback, cascade);\n\n return arr;\n }\n\n return arr;\n }\n\n}\n\nexport default Arr;\n","import { Any, Arr, Obj } from \"../index.js\"\n\nexport class Num\n{\n static int(num)\n {\n return !Any.isString(num) ? parseInt(num) :\n parseInt(num.replace('px', ''));\n }\n\n static float(num)\n {\n return !Any.isString(num) ? parseFloat(num) :\n parseFloat(num.replace('px', ''));\n }\n\n static ceil(num)\n {\n return Math.ceil(num);\n }\n\n static round(num)\n {\n return Math.round(num);\n }\n\n static floor(num)\n {\n return Math.floor(num);\n }\n\n static fixed(num, fixed = 2)\n {\n return this.float(num).toFixed(fixed);\n }\n\n static random(start = 0, end = 100)\n {\n return Math.floor((Math.random() * (end + 1)) + start);\n }\n\n static matrix(num, limit = 10, base = [])\n {\n let value = 0;\n\n for ( let 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 static combine(arr)\n {\n return Arr.reduce(arr, (acc, val) => acc + val, 0);\n }\n\n static distance(cord1, cord2, miles = false)\n {\n let defaultCord = {\n lat: 0, lng: 0\n };\n\n cord1 = Obj.assign({}, defaultCord, cord1);\n cord2 = Obj.assign({}, defaultCord, cord2);\n\n let radlat1 = (Math.PI * this.float(cord1.lat)) / 180;\n let radlat2 = (Math.PI * this.float(cord2.lat)) / 180;\n\n let theta = this.float(cord1.lng) - this.float(cord2.lng);\n let radtheta = (Math.PI * theta) / 180;\n\n let dist = Math.sin(radlat1) * Math.sin(radlat2) +\n 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 static format(num, decimal = '.', thousand = ',', fixed = null)\n {\n if ( num === null ) {\n return null;\n }\n\n let value = num.toString();\n\n if ( fixed !== null && fixed !== - 1 ) {\n value = num.toFixed(fixed);\n }\n\n let totals = value.replace(/\\.[0-9]+$/, ''),\n minals = value.replace(/^[0-9\\-]+\\./, '');\n\n let splits = Arr.reduce(totals.split('').reverse(), (result, val, key) => {\n\n let index = Math.floor(key / 3);\n\n result[index] = index === key / 3 ?\n val : result[index] = val + result[index];\n\n return result;\n }, []);\n\n let 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\nexport default Num;\n","import Arr from \"./array.js\";\nimport Any from \"./any.js\";\n\nexport class Obj\n{\n static has(obj, keys)\n {\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.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let lst = keys.pop(), index = 0, 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 static empty(obj, key)\n {\n return Any.isEmpty(this.get(obj, key, null));\n }\n\n static get(obj, keys, fallback = 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.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n let 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.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let index = 0, 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 static set(obj, keys, val)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n let 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; return obj;\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length, nested = obj;\n\n if ( length === 0 ) {\n return obj;\n }\n\n while (nested !== null && index < length) {\n\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 static unset(obj, keys)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let 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 static only(obj, keys, assign = null)\n {\n let result = {};\n\n this.each(obj, (val, key) => {\n if ( Arr.has(keys, key) === true ) {\n result[key] = val;\n }\n });\n\n if ( !Any.isEmpty(assign) ) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n\n static except(obj, keys, assign = null)\n {\n let result = {};\n\n this.each(obj, (val, key) => {\n if ( Arr.has(keys, key) === false ) {\n result[key] = val;\n }\n });\n\n if ( !Any.isEmpty(assign) ) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n\n static includes(obj, val)\n {\n let result = true;\n\n for ( let key of Any.keys(obj) ) {\n if ( typeof val[key] !== 'undefined' ) {\n result = (Any.isPlain(obj[key]) || Any.isArray(obj[key]) ?\n this.includes(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n\n return result;\n }\n\n static matches(obj, val)\n {\n let result = true;\n\n for ( let key of Any.keys(obj) ) {\n if ( typeof val[key] !== 'undefined' ) {\n result = (Any.isObject(obj[key]) ?\n this.matches(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n\n return result;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( !Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( !Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return (va < vb) ? - 1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static filter(obj, filter)\n {\n return Obj.each(Obj.filterIndex(obj, filter), (key) => {\n return obj[key];\n });\n }\n\n static filterIndex(obj, filter)\n {\n return Any.keys(obj).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, obj[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, obj[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, obj[key]);\n }\n\n return filter === obj[key];\n });\n }\n\n static find(arr, obj, fallback = null)\n {\n return Arr.first(Obj.filter(arr, obj)) || fallback;\n }\n\n static findIndex(arr, obj, fallback = - 1)\n {\n return Arr.first(Obj.filterIndex(arr, obj)) || fallback;\n }\n\n static clone(obj)\n {\n let clone;\n\n if ( Any.isArray(obj) === true ) {\n return Arr.clone(obj);\n }\n\n if ( Any.isPlain(obj) === true ) {\n\n clone = {};\n\n for ( let key of Any.keys(obj) ) {\n clone[key] = Obj.clone(obj[key]);\n }\n\n return clone;\n }\n\n return clone || obj;\n }\n\n static assign(...args)\n {\n return Object.assign(...args);\n }\n\n static remove(obj, keys)\n {\n Arr.each(keys, (key) => delete obj[key]);\n\n return obj;\n }\n\n static each(obj, callback)\n {\n let result = {};\n\n if ( global.FormData && obj instanceof FormData ) {\n\n for ( let [key, value] of obj.entries() ) {\n result[key] = callback(value, key);\n }\n\n return obj;\n }\n\n for ( let key of Any.keys(obj) ) {\n result[key] = callback(obj[key], key);\n }\n\n return result;\n }\n\n static map(obj, callback)\n {\n for ( let key of Any.keys(obj) ) {\n obj[key] = callback(obj[key], key);\n }\n\n return obj;\n }\n\n static values(obj)\n {\n let result = [];\n\n this.each(obj, val => result.push(val));\n\n return result;\n }\n\n static flatten(obj)\n {\n let result = {};\n\n let callback = (val, sey = null) => {\n\n Arr.each(Any.keys(val), (key) => {\n\n let tey = key;\n\n if ( ! Any.isEmpty(sey) ) {\n tey = `${sey}.${key}`;\n }\n\n if ( Any.isPlain(val[key]) ) {\n return callback(val[key], tey);\n }\n\n result[tey] = val[key];\n });\n\n };\n\n callback(obj);\n\n return result;\n }\n\n}\n\nexport default Obj;\n","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","import Arr from \"./array.js\";\nimport Obj from \"./object.js\";\nimport Num from \"./number.js\";\nimport Any from \"./any.js\";\n\nexport class Str\n{\n static regexEscape(val)\n {\n return String(val).replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n\n static upper(val)\n {\n return String(val).toUpperCase();\n }\n\n static lower(val)\n {\n return String(val).toLowerCase();\n }\n\n static camelcase(val)\n {\n let slug = Str.slugify(val);\n\n let slugSplits = Arr.each(slug.split('-'), (split, index) => {\n\n if ( index === 0 ) {\n return split;\n }\n\n return Str.ucfirst(split);\n });\n\n return slugSplits.join('');\n }\n\n static humancase(val)\n {\n let slug = Str.slugify(val);\n\n let slugSplits = Arr.each(slug.split('-'), (split) => {\n return Str.ucfirst(split);\n });\n\n return slugSplits.join(' ');\n }\n\n static slugify(val)\n {\n val = String(val).replace(/^\\s+|\\s+$/g, '')\n .toLowerCase();\n\n let sources = [\n 'à', 'á', 'â', 'è', 'é', 'ê', 'ì', 'í', 'ï', 'î', 'ò', 'ó', 'ô',\n 'ù', 'ú', 'û', 'ñ', 'ç', '·', '/', '_', ',', ':', ';', 'ä', 'ö', 'ü'\n ];\n\n let targets = [\n 'a', 'a', 'a', 'e', 'e', 'e', 'i', 'i', 'i', 'i', 'o', 'o', 'o',\n 'u', 'u', 'u', 'n', 'c', '-', '-', '-', '-', '-', '-', 'ae', 'oe', 'ue'\n ];\n\n Arr.each(sources, (source, index) => {\n val = val.replace(new RegExp(source.charAt(source), 'g'), targets[index]);\n });\n\n return val.replace(/[^a-z0-9 -]/g, '')\n .replace(/\\s+/g, '-').replace(/-+/g, '-');\n }\n\n static ucfirst(val)\n {\n return val.charAt(0).toUpperCase() + val.slice(1);\n }\n\n static lcfirst(val)\n {\n return val.charAt(0).toLowerCase() + val.slice(1);\n }\n\n static has(val, search)\n {\n return this.lower(val).indexOf(this.lower(search)) !== -1;\n }\n\n static filesize(val, decimals = 1)\n {\n let size = null;\n\n let units = [\n 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'\n ];\n\n Arr.each(units, (unit, count) => {\n\n let limit = Math.pow(1000, Any.integer(count));\n\n if ( val <= limit) {\n return;\n }\n\n size = Num.fixed(val / limit, decimals) + ' ' + unit;\n });\n\n return size;\n }\n\n static array(value, fallback = [])\n {\n value = value.replace(/^@\\[(.*?)?\\]$/, '$1');\n\n if ( Any.isEmpty(value) ) {\n return fallback;\n }\n\n return Arr.each(value.split(','), (val) => {\n return Str.real(val.replace(/(^\"|^'|\"$|'$)/g, ''));\n });\n }\n\n static real(value)\n {\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.bool(value);\n }\n\n if ( typeof value === 'string' && value.match(/^[0-9]+$/) ) {\n value = Num.int(value);\n }\n\n if ( typeof value === 'string' && value.match(/^[0-9]+\\\\.[0-9]+$/) ) {\n value = Num.float(value);\n }\n\n return value;\n }\n\n /**\n * Parse param string to object\n */\n static objectify(value, mode = 'options', isArray = false)\n {\n if ( Any.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 /**\n * Parse param object to string\n */\n static stringify(value, mode = 'options')\n {\n if ( Any.isString(value) ) {\n return value;\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 /**\n * Parse object to string (e.g. foo:bar;test:lorem).\n */\n static options(params, quota = null)\n {\n if ( Any.isEmpty(params) ) {\n return '';\n }\n\n let result = [];\n\n Obj.each(params, (value, key) => {\n\n if ( quota !== null ) {\n key = quota + '.' + key;\n }\n\n if ( Any.isObject(value) ) {\n return result.push(Str.options(value, key).replace(/;$/, ''));\n }\n\n result.push(String(key) + ':' + String(value));\n });\n\n return result.join(';') + ';';\n }\n\n /**\n * Parse string to object (e.g. foo:bar;test:lorem).\n */\n static fromOptions(value, isArray = false)\n {\n if ( Any.isEmpty(value) ) {\n return {};\n }\n\n let regex = '(^|;)(\\\\s*(.*?)\\\\s*:\\\\s*' +\n '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=;|$)';\n\n let matches = value.match(new RegExp(regex, 'g'));\n\n let result = Arr.reduce(matches || [],\n this.convertFromOptions, {});\n\n if ( isArray ) {\n return Any.vals(result);\n }\n\n return result;\n }\n\n static convertFromOptions(result, match)\n {\n // Get key and value from match\n let attr = match.match(/^;?\\s*(.*?)\\s*:\\s*(\".*?\"|'.*?'|.*?)\\s*$/);\n\n // Skip if length does not match\n if ( attr.length !== 3 ) {\n return result;\n }\n\n let val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n\n Obj.set(result, attr[1], val);\n\n return result;\n }\n\n /**\n * Parse object to string (e.g. foo=bar&test=lorem).\n */\n static params(params, quota = null)\n {\n if ( Any.isEmpty(params) ) {\n return '';\n }\n\n let result = [];\n\n Obj.each(params, (value, key) => {\n\n if ( quota !== null ) {\n key = quota + '[' + key + ']';\n }\n\n if ( Any.isObject(value) ) {\n return result.push(Str.params(value, key));\n }\n\n result.push(String(key) + '=' + String(value));\n });\n\n return result.join('&');\n }\n\n /**\n * Parse string to object (e.g. foo=bar&test=lorem).\n */\n static fromParams(value, isArray = false)\n {\n if ( Any.isEmpty(value) ) {\n return {};\n }\n\n let regex = '(^|&)(\\\\s*(.*?)\\\\s*=\\\\s*' +\n '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=&|$)';\n\n let matches = value.match(new RegExp(regex, 'g'));\n\n let result = Arr.reduce(matches || [],\n this.convertFromParams, {});\n\n if ( isArray ) {\n return Any.vals(result);\n }\n\n return result\n }\n\n static convertFromParams(result, match) {\n\n // Get key and value from match\n let attr = match.match(/^&?\\s*(.*?)\\s*=\\s*(\".*?\"|'.*?'|.*?)\\s*$/);\n\n // Skip if length does not match\n if ( attr.length !== 3 ) {\n return result;\n }\n\n let key = attr[1].replace(/(\\]\\[|\\[|\\])/g, '.')\n .replace(/\\.$/, '');\n\n let val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n\n Obj.set(result, key, val);\n\n return result;\n }\n\n}\n\nexport default Str;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__7__;","import { Num, Arr, Any } from \"../index.js\";\nimport moment from \"moment\";\n\nexport class Now\n{\n initialDate = null;\n moment = null;\n\n constructor(date = null, format = 'YYYY-MM-DD hh:mm:ss')\n {\n if ( date instanceof Now ) {\n date = date.get().toDate();\n }\n\n this.initialDate = date;\n\n if ( ! Any.isString(date) ) {\n this.moment = moment(date || new Date, format);\n }\n\n if ( this.moment !== null ) {\n return this;\n }\n\n this.moment = moment(date.match(/^now/) ?\n new Date : date, format);\n\n let second = this.initialDate.match(/(\\+|-)([0-9]+)seconds?/);\n\n if ( Any.isEmpty(second) === false && second[1] === '+' ) {\n this.moment.add(second[2], 'second');\n }\n\n let minute = this.initialDate.match(/(\\+|-)([0-9]+)minutes?/);\n\n if ( Any.isEmpty(minute) === false && minute[1] === '+' ) {\n this.moment.add(minute[2], 'minute');\n }\n\n let hour = this.initialDate.match(/(\\+|-)([0-9]+)hours?/);\n\n if ( Any.isEmpty(hour) === false && hour[1] === '+' ) {\n this.moment.add(hour[2], 'hour');\n }\n\n let day = this.initialDate.match(/(\\+|-)([0-9]+)days?/);\n\n if ( Any.isEmpty(day) === false && day[1] === '+' ) {\n this.moment.add(day[2], 'day');\n }\n\n if ( Any.isEmpty(day) === false && day[1] === '-' ) {\n this.moment.subtract(day[2], 'day');\n }\n\n let month = this.initialDate.match(/(\\+|-)([0-9]+)months?/);\n\n if ( Any.isEmpty(month) === false && month[1] === '+' ) {\n this.moment.add(month[2], 'month');\n }\n\n if ( Any.isEmpty(month) === false && month[1] === '-' ) {\n this.moment.subtract(month[2], 'month');\n }\n\n let year = this.initialDate.match(/(\\+|-)([0-9]+)years?/);\n\n if ( Any.isEmpty(year) === false && year[1] === '+' ) {\n this.moment.add(year[2], 'year');\n }\n\n if ( Any.isEmpty(year) === false && year[1] === '-' ) {\n this.moment.subtract(year[2], 'year');\n }\n\n return this;\n }\n\n static make(date = null, format = 'YYYY-MM-DD hh:mm:ss')\n {\n return new Now(date, format);\n }\n\n get()\n {\n return this.moment;\n }\n\n valid()\n {\n return ! Any.isEmpty(this.initialDate) &&\n moment(this.initialDate).isValid();\n }\n\n clone()\n {\n return new Now(this.moment.toDate());\n }\n\n code(format = 'X')\n {\n return Num.int(this.format(format, true));\n }\n\n format(format = 'YYYY-MM-DD hh:mm:ss', force = false)\n {\n if ( ! this.valid() && ! force ) {\n return '';\n }\n\n return this.moment.format(format);\n }\n\n before(before = null)\n {\n return this.code() < Now.make(before).code();\n }\n\n beforeDate(before = null)\n {\n return this.code('YYYYMMDD') <\n Now.make(before).code('YYYYMMDD');\n }\n\n beforeTime(before = null)\n {\n return this.code('hhmmss') <\n Now.make(before).code('hhmmss');\n }\n\n after(after = null)\n {\n return this.code() > Now.make(after).code();\n }\n\n afterDate(after = null)\n {\n return this.code('YYYYMMDD') >\n Now.make(after).code('YYYYMMDD');\n }\n\n afterTime(after = null)\n {\n return this.code('hhmmss') >\n Now.make(after).code('hhmmss');\n }\n\n equal(equal = null, format = 'X')\n {\n return this.code(format) ===\n Now.make(equal).code(format);\n }\n\n equalDate(equal = null, format = 'YYYYMMDD')\n {\n return this.equal(equal, format);\n }\n\n equalTime(equal = null, format = 'hhmmss')\n {\n return this.equal(equal, format);\n }\n\n between(fromDate = null, toDate = null, format = 'YYYYMMDD')\n {\n if ( Now.make(toDate).code(format) < Now.make(fromDate).code(format) ) {\n return this.after(toDate, format) && this.before(fromDate, format) &&\n ! this.equal(toDate, format) && ! this.equal(fromDate, format);\n }\n\n return this.after(fromDate, format) && this.before(toDate, format) &&\n ! this.equal(toDate, format) && ! this.equal(fromDate, format);\n }\n\n decade()\n {\n return Math.floor(this.year() / 10) * 10;\n }\n\n prevDecade()\n {\n return this.clone().subDecades(1);\n }\n\n nextDecade()\n {\n return this.clone().addDecades(1);\n }\n\n addDecades(count = 1)\n {\n return this.year(this.moment.year() + (count * 10));\n }\n\n subDecades(count = 1)\n {\n return this.year(this.moment.year() - (count * 10));\n }\n\n year(year = null)\n {\n if ( year === null ) {\n return this.moment.year();\n }\n\n this.moment.year(year);\n\n return this;\n }\n\n prevYear()\n {\n return this.clone().year(this.year() - 1);\n }\n\n nextYear()\n {\n return this.clone().year(this.year() + 1);\n }\n\n addYears(count = 1)\n {\n return this.year(this.year() + count);\n }\n\n subYears(count = 1)\n {\n return this.year(this.year() - count);\n }\n\n month(month = null)\n {\n if ( month === null ) {\n return this.moment.month();\n }\n\n this.moment.month(month);\n\n return this;\n }\n\n addMonths(count = 1)\n {\n return this.month(this.month() + count);\n }\n\n subMonths(count = 1)\n {\n return this.month(this.month() - count);\n }\n\n prevMonth()\n {\n return this.clone().month(this.month() - 1);\n }\n\n nextMonth()\n {\n return this.clone().month(this.month() + 1);\n }\n\n date(date = null)\n {\n if ( date === null ) {\n return this.moment.date();\n }\n\n this.moment.date(date);\n\n return this;\n }\n\n addDates(count = 1)\n {\n return this.date(this.date() + count);\n }\n\n subDates(count = 1)\n {\n return this.date(this.date() - count);\n }\n\n prevDate()\n {\n return this.clone().date(this.date() - 1);\n }\n\n nextDate()\n {\n return this.clone().date(this.date() + 1);\n }\n\n lastDate()\n {\n return this.prevMonth().date(0).date();\n }\n\n day(day = null)\n {\n if ( day === null ) {\n return this.moment.day();\n }\n\n this.moment.day(day);\n\n return this;\n }\n\n hour(hour = null)\n {\n if ( hour === null ) {\n return this.moment.hour();\n }\n\n this.moment.hour(hour);\n\n return this;\n }\n\n addHour(count = 1)\n {\n return this.hour(this.hour() + count);\n }\n\n subHour(count = 1)\n {\n return this.hour(this.hour() - count);\n }\n\n prevHour()\n {\n return this.clone().hour(this.hour() - 1);\n }\n\n nextHour()\n {\n return this.clone().hour(this.hour() + 1);\n }\n\n minute(minute = null)\n {\n if ( minute === null ) {\n return this.moment.minute();\n }\n\n this.moment.minute(minute);\n\n return this;\n }\n\n addMinute(count = 1)\n {\n return this.minute(this.minute() + count);\n }\n\n subMinute(count = 1)\n {\n return this.minute(this.minute() - count);\n }\n\n prevMinute()\n {\n return this.clone().minute(this.minute() - 1);\n }\n\n nextMinute()\n {\n return this.clone().minute(this.minute() + 1);\n }\n\n second(second = null)\n {\n if ( second === null ) {\n return this.moment.second();\n }\n\n this.moment.second(second);\n\n return this;\n }\n\n addSecond(count = 1)\n {\n return this.second(this.second() + count);\n }\n\n subSecond(count = 1)\n {\n return this.second(this.second() - count);\n }\n\n prevSecond()\n {\n return this.clone().second(this.second() - 1);\n }\n\n nextSecond()\n {\n return this.clone().second(this.second() + 1);\n }\n\n humanDay()\n {\n return this.day();\n }\n\n humanMonth()\n {\n return this.month();\n }\n\n getMonths()\n {\n return Arr.make(12).map((month) => {\n return this.clone().month(month - 1);\n });\n }\n\n getYears()\n {\n return Arr.make(10).map((year) => {\n return this.clone().year(this.decade() + year - 1);\n });\n }\n\n getYearsGrid(size = 12)\n {\n return Arr.make(size).map((year) => {\n return this.clone().year((Math.floor(this.year() / size)\n * size) + year - 1);\n });\n }\n\n getDates()\n {\n return Arr.make(this.lastDate()).map((date) => {\n return this.clone().date(date);\n });\n }\n\n getDatesRange(target = null)\n {\n let range = [], targetNow = Now.make(target);\n\n if ( this.afterDate(target) ) {\n\n for ( let day = targetNow; ! day.equalDate(this); day = day.nextDate() ) {\n Arr.push(range, day);\n }\n\n Arr.push(range, this);\n }\n\n if ( this.beforeDate(target) ) {\n\n for ( let day = this; ! day.equalDate(targetNow); day = day.nextDate() ) {\n Arr.push(range, day);\n }\n\n Arr.push(range, targetNow);\n }\n\n if ( range.length === 0 ) {\n range = [this];\n }\n\n return range;\n }\n\n getDatesGrid(start = 1, end = 0)\n {\n let dates = this.getDates(), before = [], after = [];\n\n let prev = Arr.first(dates);\n\n for (let day = prev.day(); prev.day() !== start; day = prev.day()) {\n Arr.prepend(before, prev = prev.prevDate());\n }\n\n let next = Arr.last(dates);\n\n for (let day = next.day(); next.day() !== end; day = next.day()) {\n Arr.append(after, next = next.nextDate());\n }\n\n return Arr.merge(before, dates, after);\n }\n\n getHours(interval = 1)\n {\n return Arr.make(24 / interval).map((val, hour) => {\n return this.clone().hour(hour * interval);\n });\n }\n\n getMinutes(interval = 1)\n {\n return Arr.make(60 / interval).map((val, minute) => {\n return this.clone().minute(minute * interval);\n });\n }\n\n getSeconds(interval = 1)\n {\n return Arr.make(60 / interval).map((val, second) => {\n return this.clone().second(second * interval);\n });\n }\n\n resetTime()\n {\n this.hour(0);\n this.minute(0);\n this.second(0);\n\n return this;\n }\n\n applyDate(now, format = 'YYYY-MM-DD hh:mm:ss')\n {\n now = Now.make(now, format);\n\n this.year(now.year());\n this.month(now.month());\n this.date(now.date());\n }\n\n applyTime(now, format = 'YYYY-MM-DD hh:mm:ss')\n {\n now = Now.make(now, format);\n\n this.hour(now.hour());\n this.minute(now.minute());\n this.second(now.second());\n }\n\n}\n\nexport default Now;\n","import Arr from './array.js';\nimport Obj from './object.js';\nimport Str from './string.js';\nimport Num from './number.js';\nimport Any from './any.js';\n\nexport class Dom\n{\n el = null;\n\n static events = [];\n\n static datas = [];\n\n constructor(el)\n {\n if ( el instanceof NodeList ) {\n el = Array.prototype.slice.call(el);\n }\n\n this.el = el;\n }\n\n static ready(callback, delay = 0, count = 0)\n {\n let 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(() => Dom.ready(callback, delay, count + 100), 100);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static complete(callback, delay = 0, count = 0)\n {\n let ready = document.readyState === 'complete';\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(() => Dom.ready(callback, delay, count + 100), 100);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static required(callback, globals = [], timer = 100) {\n\n let matches = Arr.each(globals, (key) => {\n return Obj.has(window, key);\n });\n\n if ( Arr.has(matches, false) ) {\n setTimeout(() => Dom.required(callback, globals, timer), timer);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static find(element)\n {\n let el = typeof element !== 'string' ?\n element : document.querySelectorAll(element);\n\n return new Dom(el);\n }\n\n static make(element, options = {})\n {\n let el = typeof element !== 'string' ?\n element : document.createElement(element);\n\n Obj.assign(el, options);\n\n return new Dom(el);\n }\n\n static location(posx, posy)\n {\n let 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 static title(text = null, glue = ' - ')\n {\n document.title = global.baseTitle !== undefined ?\n text + glue + global.baseTitle : text;\n\n return this;\n }\n\n length()\n {\n return Any.isArray(this.el) ?\n this.el.length : (Any.isEmpty(this.el) ? 0 : 1);\n }\n\n empty()\n {\n return this.length() === 0 || this.el === null;\n }\n\n visible()\n {\n return this.get(0) && this.get(0).is(':visible');\n }\n\n inviewX(ratio = 0)\n {\n let viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height(),\n };\n\n let element = {\n width: this.width(),\n height: this.height(),\n };\n\n let scroll = this.scroll(),\n offset = this.offset();\n\n let left = offset.left + (ratio * element.width) -\n viewport.width;\n\n let right = offset.left + element.width -\n (ratio * element.width);\n\n return left <= scroll.left && scroll.left <= right;\n }\n\n inviewY(ratio = 0)\n {\n let viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height(),\n };\n\n let element = {\n width: this.width(),\n height: this.height(),\n };\n\n let scroll = this.scroll(),\n offset = this.offset();\n\n let top = offset.top + (ratio * element.height) -\n viewport.height;\n\n let bottom = offset.top + element.height -\n (ratio * element.height);\n\n return top <= scroll.top && scroll.top <= bottom;\n }\n\n is(selector)\n {\n return this.matches(selector);\n }\n\n isParent(selector)\n {\n let el = this.parent();\n\n if ( Any.isEmpty(el) === true ) {\n return false;\n }\n\n return Any.isString(selector) ?\n Dom.find(el).matches(selector) : this.get(0) === selector;\n }\n\n first(offset = 0)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return els[offset];\n }\n\n last(offset = 1)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return els[els.length - offset];\n }\n\n get(index = -1)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return index !== -1 ? els[index] || null : els;\n }\n\n getNot(el)\n {\n for ( let node of this.el ) {\n if ( node !== el ) {\n return Dom.find(node);\n }\n }\n\n return null;\n }\n\n each(callback)\n {\n return Any.isArray(this.el) ? Arr.each(this.el, callback) :\n callback(this.el, 0);\n }\n\n matches(selector)\n {\n let source = this.get(0), target = null;\n\n Dom.find(selector).each((el) => {\n if ( el === source) target = el;\n });\n\n return target !== null;\n }\n\n closest(selector)\n {\n if ( this.get(0) === selector ) {\n return selector;\n }\n\n for (let 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 closestScrollable(fallback = document.body)\n {\n for (let 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 contains(selector)\n {\n if ( Any.isString(selector) === true ) {\n return this.find(selector).get(0) !== null;\n }\n\n\n if ( selector instanceof Element === false ) {\n return false;\n }\n\n return this.get(0).contains(selector);\n }\n\n inside(selector)\n {\n return this.closest(selector) !== null;\n }\n\n parent()\n {\n let 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 child(selector)\n {\n let nodes = this.get(0).childNodes;\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n if ( selector === null ) {\n return Dom.find(nodes[0] || null);\n }\n\n Arr.each(nodes, (node, index) => {\n if ( Any.isEmpty(node) || Dom.find(node).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes[0] || null);\n }\n\n childs(selector = null, filter = true)\n {\n let nodes = this.get(0).childNodes;\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 && filter === true ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n if ( selector === null ) {\n return Dom.find(nodes);\n }\n\n Arr.each(nodes, (node, index) => {\n if ( Any.isEmpty(node) || Dom.find(node).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n find(selector)\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) === true ) {\n return Dom.find(null);\n }\n\n let nodes = el.querySelectorAll(selector);\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n where(selector)\n {\n let nodes = this.get();\n\n Arr.each(nodes, (el, index) => {\n if ( Any.isEmpty(el) || Dom.find(el).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n not(selector)\n {\n let nodes = this.get();\n\n Arr.each(nodes, (el, index) => {\n if ( Any.isEmpty(el) || Dom.find(el).is(selector) === true ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n prepend(val)\n {\n this.each((el) => el.prepend(val));\n\n return this;\n }\n\n prependTo(el)\n {\n Dom.find(el).each((val) => val.prepend(this.el));\n\n return this;\n }\n\n append(val)\n {\n this.each((el) => {\n if ( el.append !== undefined ) {\n el.append(val);\n }\n });\n\n return this;\n }\n\n appendTo(el)\n {\n Dom.find(el).each((val) => {\n if ( val.append !== undefined ) {\n val.append(this.el);\n }\n });\n\n return this;\n }\n\n replace(el)\n {\n // Append node to element\n this.parent().get(0).insertBefore(el, this.get(0));\n\n // Remove existing element\n this.parent().get(0).removeChild(this.get(0));\n\n return this;\n }\n\n previous()\n {\n if ( this.empty() === true ) {\n return Dom.find(null);\n }\n\n for (let 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 next()\n {\n if ( this.empty() === true ) {\n return Dom.find(null);\n }\n\n for (let 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 loaded(callback)\n {\n let el = this.get(0), timeout = null;\n\n if ( ! el ) {\n return this;\n }\n\n timeout = setInterval(() => {\n\n if ( ! el.complete || el.naturalWidth === 0 ) {\n return;\n }\n\n callback(el);\n clearInterval(timeout);\n\n }, 100);\n\n return this;\n }\n\n bind(event, callback)\n {\n this.each((el) => el[event] = (e) => callback.call(el, e));\n\n return this;\n }\n\n unbind(event)\n {\n this.each((el) => delete el[event]);\n }\n\n on(event, callback, options = {}, paused = false)\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.on(e, callback, options);\n });\n\n return this;\n }\n\n let func = (e) => {\n callback.call(e.target, e, e.target);\n };\n\n let selector = null;\n\n this.each((el) => {\n\n Dom.events = Arr.push(Dom.events, {\n el, event, options, selector, paused, func\n });\n\n el.addEventListener(event, func, options);\n });\n\n return this;\n }\n\n live(event, selector, callback, options = {}, paused = false)\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.live(e, selector, callback, options);\n });\n\n return this;\n }\n\n let func = (e) => {\n\n let 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((el) => {\n\n Dom.events = Arr.push(Dom.events, {\n el, event, options, selector, paused, func\n });\n\n el.addEventListener(event, func, options);\n });\n\n return this;\n }\n\n one(event, callback, options = {})\n {\n this.on(event, (e) => {\n callback(e); this.off(event);\n }, options);\n\n return this;\n }\n\n fire(event)\n {\n let callback = new Event(event);\n\n this.each((el) => {\n el.dispatchEvent(callback);\n });\n\n return this;\n }\n\n delayed(event, callback, delay = 0, options = {})\n {\n this.on(event, Any.debounce(callback, delay), options);\n\n return this;\n }\n\n off(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.off(e, selector);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let indexes = Arr.filterIndex(Dom.events, {\n el, event, selector, options\n });\n\n if ( indexes.length === 0 ) {\n return;\n }\n\n Arr.each(indexes.reverse(), (index) => {\n\n el.removeEventListener(event, Dom.events[index].func,\n Dom.events[index].options);\n\n Arr.removeIndex(Dom.events, index);\n });\n });\n\n return this;\n }\n\n unpause(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.unpause(e, selector, options);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let val = Arr.find(Dom.events, {\n el, event, selector, options\n });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n el.addEventListener(event, val.func, val.options);\n });\n\n return this;\n }\n\n pause(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.pause(e, selector, options);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let val = Arr.find(Dom.events, {\n el, event, selector, options\n });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n el.removeEventListener(event, val.func, val.options);\n });\n\n return this;\n }\n\n observer(callback, initial = true)\n {\n if ( initial === true ) {\n this.each((el) => callback(el, {}));\n }\n\n let observer = new MutationObserver((mutation) => {\n this.each((el) => callback(el, mutation));\n });\n\n return (el, options) => {\n observer.observe(Dom.find(el).get(0), options);\n };\n }\n\n observerResize(callback, initial = true)\n {\n if ( initial === true ) {\n this.each((el) => callback(el));\n }\n\n let observer = new ResizeObserver(() => {\n this.each((el) => callback(el));\n });\n\n return (el) => {\n observer.observe(Dom.find(el).get(0));\n }\n }\n\n data(key = undefined, val = undefined, fallback = null)\n {\n let match = Arr.find(Dom.datas, { el: this.get(0) },\n { el: this.get(0) });\n\n if ( key === undefined ) {\n return match;\n }\n\n if ( val === undefined ) {\n return Obj.get(match, key, fallback);\n }\n\n Arr.replace(Dom.datas, Obj.set(match, key, val),\n { el: this.get(0) });\n\n return this;\n }\n\n value(val = undefined)\n {\n if ( val === undefined ) {\n return this.get(0).value;\n }\n\n this.each((el) => el.value = val);\n\n return this;\n }\n\n html(html)\n {\n this.each((el) => el.innerHTML = html);\n\n return this;\n }\n\n computed(key = null, fallback = null)\n {\n let el = this.get(0);\n\n if ( el === null || el === window || el === document) {\n return key !== null ? fallback : {};\n }\n\n let computed = getComputedStyle(el);\n\n return key !== null ? Obj.get(computed, key, fallback) : computed;\n }\n\n css(vals = undefined)\n {\n if ( vals === null ) {\n return this.attr('style', null);\n }\n\n let styles = Str.objectify(this.attr('style') || '');\n\n if ( vals === undefined ) {\n return styles;\n }\n\n this.attr('style', Obj.assign({}, styles, Str.objectify(vals)));\n }\n\n class(vals)\n {\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n this.attr('class', vals.join(' '));\n }\n\n hasClass(vals)\n {\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n return Arr.intersect(vals, cls).length !== 0;\n }\n\n addClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).addClass(vals));\n }\n\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n Arr.each(vals, (val) => {\n Arr.add(cls, val);\n });\n\n this.attr('class', cls.join(' '));\n }\n\n removeClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).removeClass(vals));\n }\n\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n Arr.each(vals, (val) => {\n Arr.remove(cls, val);\n });\n\n this.attr('class', cls.join(' '));\n }\n\n toggleClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).toggleClass(vals));\n }\n\n this.hasClass(vals) ? this.removeClass(vals) : this.addClass(vals);\n\n return this;\n }\n\n attr(attr, val = undefined)\n {\n if ( this.empty() ) {\n return null;\n }\n\n if ( Any.isPlain(attr) ) {\n return Obj.each(attr, (value, key) =>\n this.attr(key, value));\n }\n\n let 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.isPlain(val) ) {\n val = Str.options(val);\n }\n\n this.get(0).setAttribute(attr, val);\n return res;\n }\n\n actual(callback, val = null)\n {\n let style = this.attr('style');\n\n this.attr('style', val);\n\n let result = callback.call(this.get(0), this.get(0));\n\n this.attr('style', style);\n\n return result;\n }\n\n loopParent(callback, target = null)\n {\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n\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 loopOffsetParent(callback, target = document.body)\n {\n for (let el = this.get(0); el !== null && el.offsetParent !== undefined; el = el.offsetParent) {\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 offset(key = null, boundry = null)\n {\n let source = {\n top: 0, left: 0, bottom: 0, right: 0\n };\n\n this.loopOffsetParent((el) => {\n\n if ( el.offsetTop ) {\n source.top += Num.float(el.offsetTop);\n }\n\n if ( el.offsetLeft ) {\n source.left += Num.float(el.offsetLeft);\n }\n\n });\n\n source.bottom = Dom.find(document.body).scrollHeight() -\n source.top - this.height();\n\n source.right = Dom.find(document.body).scrollWidth() -\n source.left - this.width();\n\n let target = {\n top: 0, left: 0, bottom: 0, right: 0\n };\n\n Dom.find(boundry).loopOffsetParent((el) => {\n\n if ( el.offsetTop ) {\n target.top += Num.float(el.offsetTop);\n }\n\n if ( el.offsetLeft ) {\n target.left += Num.float(el.offsetLeft);\n }\n\n });\n\n target.bottom = Dom.find(document.body).scrollHeight() -\n target.top - Dom.find(boundry || document.body).scrollHeight();\n\n target.right = Dom.find(document.body).scrollWidth() -\n target.left - Dom.find(boundry || document.body).scrollWidth();\n\n let 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\n return key !== null ? Obj.get(offset, key, 0) : offset;\n }\n\n offsetTop(boundry = null)\n {\n return this.offset('top', boundry);\n }\n\n offsetBottom(boundry = null)\n {\n return this.offset('bottom', boundry);\n }\n\n offsetLeft(boundry = null)\n {\n return this.offset('left', boundry);\n }\n\n offsetRight(boundry = null)\n {\n return this.offset('right', boundry);\n }\n\n scroll(key = null, boundry = null)\n {\n let source = {\n top: 0, left: 0\n };\n\n this.loopParent((el) => {\n\n if ( el.scrollTop !== undefined ) {\n source.top += Num.float(el.scrollTop);\n }\n\n if ( el.scrollTop === undefined && el.pageYOffset !== undefined ) {\n source.top += Num.float(el.pageYOffset);\n }\n\n if ( el.scrollTop !== undefined ) {\n source.left += Num.float(el.scrollLeft);\n }\n\n if ( el.scrollTop === undefined && el.pageXOffset !== undefined ) {\n source.left += Num.float(el.pageXOffset);\n }\n\n });\n\n let target = {\n top: 0, left: 0\n };\n\n Dom.find(boundry).loopParent((el) => {\n\n if ( el.scrollTop !== undefined ) {\n target.top += Num.float(el.scrollTop);\n }\n\n if ( el.scrollTop === undefined && el.pageYOffset !== undefined ) {\n target.top += Num.float(el.pageYOffset);\n }\n\n if ( el.scrollTop !== undefined ) {\n target.left += Num.float(el.scrollLeft);\n }\n\n if ( el.scrollTop === undefined && el.pageXOffset !== undefined ) {\n target.left += Num.float(el.pageXOffset);\n }\n\n });\n\n let scroll = {\n top: source.top - target.top,\n left: source.left - target.left\n };\n\n return key !== null ? Obj.get(scroll, key, 0) : scroll;\n }\n\n scrollTop(val = null, boundry = null)\n {\n if ( val === null ) {\n return this.scroll('top', boundry);\n }\n\n this.each((el) => el.scrollTop = val);\n\n return this;\n }\n\n scrollTopGlobal()\n {\n return this.scroll('top', document.body);\n }\n\n scrollLeft(val = null, boundry = null)\n {\n if ( val === null ) {\n return this.scroll('left', boundry);\n }\n\n this.each((el) => el.scrollLeft = val);\n\n return this;\n }\n\n scrollLeftGlobal()\n {\n return this.scroll('left', document.body);\n }\n\n margin(key = null)\n {\n let computedStyle = this.computed();\n\n let margin = {\n top: Num.float(computedStyle.marginTop),\n left: Num.float(computedStyle.marginLeft),\n bottom: Num.float(computedStyle.marginBottom),\n right: Num.float(computedStyle.marginRight),\n } ;\n\n return key !== null ? Obj.get(margin, key, 0) : margin;\n }\n\n padding(key = null)\n {\n let computedStyle = this.computed();\n\n let padding = {\n top: Num.float(computedStyle.paddingTop),\n left: Num.float(computedStyle.paddingLeft),\n bottom: Num.float(computedStyle.paddingBottom),\n right: Num.float(computedStyle.paddingRight),\n };\n\n return key !== null ? Obj.get(padding, key, 0) : padding;\n }\n\n height()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n if ( el === window ) {\n return el.innerHeight;\n }\n\n return el.offsetHeight;\n }\n\n clientHeight()\n {\n return Any.integer(this.computed('height', '0px').replace(\"px\", \"\"));\n }\n\n scrollHeight()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return el.scrollHeight;\n }\n\n innerHeight()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return this.height() - this.padding('top') -\n this.padding('bottom');\n }\n\n realHeight(styles = {})\n {\n let height = 'auto';\n\n this.actual(() => height = this.height(), styles);\n\n return height;\n }\n\n evaluateHeight(target = null, auto = true)\n {\n if ( Any.isString(target) ) {\n target = Dom.find(target);\n }\n\n if ( target === null ) {\n target = this.parent();\n }\n\n let height = 'auto';\n\n this.actual(() => {\n height = target.innerHeight();\n }, { display: 'none' });\n\n if ( auto === true ) {\n this.css({ height: height + 'px' });\n }\n\n return height;\n }\n\n width()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n if ( el === window ) {\n return el.innerWidth;\n }\n\n return el.offsetWidth;\n }\n\n clientWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return Any.integer(this.computed('width', '0px').replace(\"px\", \"\"));\n }\n\n scrollWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return el.scrollWidth;\n }\n\n innerWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return this.width() - this.padding('left') -\n this.padding('right');\n }\n\n realWidth(styles = {})\n {\n let width = 0;\n\n this.actual(() => width = this.width(), styles);\n\n return width;\n }\n\n evaluateWidth(target = null, auto = true)\n {\n if ( target === null ) {\n target = this.parent();\n }\n\n let width = 'auto';\n\n this.actual(() => {\n width = target.innerWidth();\n }, { display: 'none' });\n\n if ( auto === true ) {\n this.css({ width: width + 'px' });\n }\n\n return width;\n }\n\n}\n\nexport default Dom;\n","import { Str, Arr, Obj, Num, Any, Event } from \"../index.js\";\n\nexport class Cookie\n{\n /**\n * Pattern to get the cookie desired\n *\n * @type {string}\n */\n static pattern = '(^|;)\\\\s*{key}\\\\s*=\\\\s*([^;]+)';\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 static get(key, fallback = null, decode = 'string')\n {\n let pattern = this.pattern\n .replace('{key}', key);\n\n let result = document.cookie\n .match(pattern);\n\n if ( ! result ) {\n return fallback;\n }\n\n let plain = result[2].replace(/\\{:\\}/g, ';');\n\n if ( decode === 'boolean' ) {\n return Any.boolean(plain);\n }\n\n if ( decode === 'float' ) {\n return Any.float(plain);\n }\n\n if ( decode === 'integer' ) {\n return Any.integer(plain);\n }\n\n if ( decode === 'object' ) {\n return Str.objectify(plain, 'params', false);\n }\n\n if ( decode === 'array' ) {\n return Str.objectify(plain, 'params', true);\n }\n\n return plain;\n }\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 static set(key, value, expire = null, options = {})\n {\n let 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 ( Any.isObject(value) ) {\n value = Str.stringify(value, 'params');\n }\n\n if ( Any.isString(value) ) {\n value = value.replace(/;/g, '{:}');\n }\n\n let plain = `${key}=${value};`;\n\n Obj.each(options, (value, key) => {\n plain += `${key}=${value};`;\n });\n\n document.cookie = plain;\n }\n\n /**\n * Forget cookie from current session\n *\n * @param {string} key\n * @param {object} options\n */\n static forget(key, options = {})\n {\n if ( ! options.path ) {\n options.path = '/';\n }\n\n options.expires = 'Thu, 01 Jan 1970 00:00:01 GMT';\n\n let plain = `${key}=null;`;\n\n Obj.each(options, (value, key) => {\n plain += `${key}=${value};`;\n });\n\n document.cookie = plain;\n }\n\n}\n\nexport default Cookie;\n","import { Arr, Obj, Num, Any, Event } from \"../index.js\";\n\nexport class Data\n{\n static data = Obj.get(global, '_data', {});\n\n static has(input)\n {\n return Obj.has(this.data, Arr.first(input));\n }\n\n static set(input, value)\n {\n let clone = value, key = Arr.first(input);\n\n if ( Any.isEqual(Obj.get(this.data, key), clone) ) {\n return;\n }\n\n Obj.set(this.data, key, clone);\n\n Event.fire('store:' + key, clone, key);\n }\n\n static unset(input)\n {\n let key = Arr.first(input);\n\n Obj.unset(this.data, key);\n }\n\n static get (input, fallback = null, forceSet = false)\n {\n let key = Arr.first(input);\n\n if ( ! Obj.has(this.data, key) && ! forceSet ) {\n return fallback;\n }\n\n if ( Obj.has(this.data, key) && forceSet ) {\n Obj.set(this.data, key, fallback);\n }\n\n let value = Obj.get(this.data, key, fallback);\n\n if ( ! Any.isPlain(value) ) {\n return value;\n }\n\n return Obj.clone(value);\n }\n\n static find (input, value, fallback = null)\n {\n let key = Arr.first(input);\n\n if ( Obj.has(this.data, key) === false ) {\n return fallback;\n }\n\n if ( Obj.has(value, 'id') === false ) {\n return fallback;\n }\n\n let index = 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 static replace (input, value)\n {\n let key = Arr.first(input);\n\n if ( Obj.has(this.data, key) === false ) {\n return;\n }\n\n if ( Obj.has(value, 'id') === false ) {\n return;\n }\n\n let index = Arr.findIndex(this.get(key), {\n id: Num.int(value.id)\n });\n\n if ( index === -1 ) {\n return;\n }\n\n this.set(key + '.' + index, value);\n }\n\n static add (input, ...args)\n {\n this.set(input, Arr.concat(this.get(input, []), args));\n }\n\n static remove (input, ...args)\n {\n this.set(input, Arr.diff(this.get(input, []), args));\n }\n\n}\n\nexport default Data;\n","import { Str, Obj, Dom, Any, Arr } from \"../index.js\";\n\nexport class Element\n{\n /**\n * Prefix for attribute selector.\n */\n static prefix = 'js';\n\n /**\n * Mounted identifier.\n */\n static mount = 'mount';\n\n /**\n * Instance storage.\n */\n static inis = {};\n\n /**\n * Runtime storage.\n */\n static runs = [];\n\n /**\n * Bind a class on selector.\n */\n static alias(key, instance)\n {\n Obj.set(this.inis, key, instance);\n\n return this;\n }\n\n static bind(key, selector, options = {})\n {\n let el = Dom.find(selector), prefix = this.getPrefix(key);\n\n // Add mounted class\n el.addClass(prefix);\n\n let instance = Obj.get(this.inis,\n key, null);\n\n if ( Any.isEmpty(instance) ) {\n return console.error(`Element \"${key}\" is not defined.`);\n }\n\n let callback = (el, options) => {\n\n let cb = new instance(\n el.get(0), options\n );\n\n Element.runs.push({\n el: el.get(0), prefix: prefix, deamon: cb\n });\n\n el.data(prefix, cb);\n\n return cb.bind !== undefined ?\n cb.bind(el.get(0), options) : cb;\n };\n\n // Bind option\n Dom.ready(() => callback.call({}, el, options));\n\n return this;\n }\n\n static unbind(key, selector, options = {})\n {\n let el = Dom.find(selector), prefix = this.getPrefix(key);\n\n let instance = Obj.get(this.inis,\n key, null);\n\n if ( Any.isEmpty(instance) ) {\n return console.error(`Element \"${key}\" is not defined.`);\n }\n\n let callback = (el, options) => {\n\n let cb = el.data(prefix);\n\n if ( cb.unbind === undefined ) {\n return;\n }\n\n return cb.unbind(el.get(0), options);\n };\n\n // Unbind option\n callback.call({}, el, options);\n\n Arr.remove(Element.runs, { el: el.get(0) });\n\n return this;\n }\n\n\n /**\n * Bind callback on selector.\n */\n static observe(key, plain = false)\n {\n let selector = this.getPrefix(key);\n\n let options = {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: [selector]\n };\n\n let callback = () => {\n\n let mounted = Element.getPrefix(key);\n\n let deamons = Arr.filter(this.runs,\n { prefix: selector });\n\n Arr.each(deamons, ({ el }) => {\n\n let options = Str.objectify(\n Dom.find(el).attr(selector)\n );\n\n if ( plain && Any.isEmpty(options) ) {\n options = { _plain: Dom.find(el).attr(selector) };\n }\n\n if ( document.body.contains(el) ) {\n return;\n }\n\n return this.unbind(key, el, options)\n });\n\n Dom.find(`[${selector}]:not(.${mounted})`).each((el) => {\n\n let options = Str.objectify(\n Dom.find(el).attr(selector)\n );\n\n if ( plain && Any.isEmpty(options) ) {\n options = { _plain: Dom.find(el).attr(selector) };\n }\n\n this.bind(key, el, options);\n });\n\n };\n\n Dom.find(document.body).observer(callback)\n (document.body, options);\n\n Dom.find(document.body).on('dom.change', callback);\n\n return this;\n }\n\n\n\n /**\n * Return prefix with key.\n */\n static getPrefix(key)\n {\n return key ? this.prefix + '-' + key : this.prefix;\n }\n\n /**\n * Set prefix to given value.\n */\n static setPrefix(prefix)\n {\n this.prefix = prefix;\n }\n\n}\n\nexport default Element;\n","import { Arr, Any } from \"../index.js\";\n\nexport class Event\n{\n static events = [];\n\n static bind(name, callback, options = {}, paused = false)\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) =>\n this.bind(val, callback, options, paused));\n }\n\n if ( ! Any.isPlain(options) ) {\n options = { value: options }\n }\n\n this.events = Arr.push(this.events, {\n name, callback, options, paused\n });\n\n return this;\n }\n\n static unbind(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.unbind(val, options));\n }\n\n if ( ! Any.isPlain(options) ) {\n options = { value: options }\n }\n\n Arr.remove(this.events, { name, options });\n\n return this;\n }\n\n static fire(name, ...args)\n {\n let events = this.events.filter((item) => {\n return item.name === name;\n });\n\n Arr.each(events, (event) => {\n if ( event.paused === false ) {\n event.callback.call({}, ...args);\n }\n });\n\n return this;\n }\n\n static pause(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.pause(val, options));\n }\n\n let val = Arr.find(this.events, { name, options });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n return this;\n }\n\n static unpause(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.unpause(val, options));\n }\n\n let val = Arr.find(this.events, { name, options });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = false;\n\n return this;\n }\n\n}\n\nexport default Event;\n","import { Obj } from \"../index.js\";\n\nexport class Locale\n{\n /**\n * Get locales from window if present.\n */\n static locales = Obj.get(global, '_locales', {});\n\n static pickByCount(splits, count)\n {\n let 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 static has(key)\n {\n return Obj.has(Locale.locales, key);\n }\n\n static get(key, fallback = null)\n {\n return Obj.get(Locale.locales, key, fallback || key);\n }\n\n static set(key, value)\n {\n Obj.set(Locale.locales, key, value);\n\n return this;\n }\n\n static trans(key, values = {})\n {\n let message = Obj.get(Locale.locales, key, key);\n\n Obj.each(values, (value, key) => {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n\n return message;\n }\n\n static choice(key, count = 0, values = {})\n {\n let splits = Obj.get(Locale.locales, key, key).split('|');\n\n if ( typeof values.count === 'undefined' ) {\n values = Obj.assign({ count: count }, values);\n }\n\n let message = Locale.pickByCount(splits, count);\n\n Obj.each(values, (value, key) => {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n\n return message;\n }\n\n}\n\nexport default Locale;\n","import { Obj, Arr, Any, Dom, UUID } from \"../index.js\";\n\n/**\n * @const {object} google\n */\n\nexport default class Map\n{\n map = null;\n\n static mapStyle = [];\n\n markers = {};\n\n static markerStyles = {};\n\n cluster = null;\n\n clusterFilter = null;\n\n clusterOptions = {};\n\n static hideMarkers = true;\n\n static closeInfoWindows = true;\n\n constructor(el, options = {})\n {\n if ( ! global.google ) {\n return console.error('Google Maps is not loaded.');\n }\n\n let center = Obj.only(options, ['lat', 'lng']);\n\n if ( ! Obj.has(options, 'styles') ) {\n options.styles = Map.mapStyle;\n }\n\n options = Obj.assign({ gestureHandling: 'cooperative', scrollwheel: null, zoom: 12, center },\n Obj.except(options, ['lat', 'lng']));\n\n this.map = new global.google.maps.Map(Dom.find(el).get(0), options)\n }\n\n static setMapStyle(style = [])\n {\n Map.mapStyle = style;\n\n return this;\n }\n\n static setMarkerStyle(key, style = {}, extra = {})\n {\n if ( ! global.google ) {\n return console.error('Google Maps is not loaded.');\n }\n\n if ( ! Obj.has(style, 'default') ) {\n return console.error('Marker style requires default property')\n }\n\n if ( ! Obj.has(style, 'width') ) {\n style.width = 45;\n }\n\n if ( ! Obj.has(style, 'height') ) {\n style.height = 45;\n }\n\n let final = {};\n\n // Marker size\n let size = new global.google.maps.Size(style.width, style.height);\n\n // Point position\n let origin = new global.google.maps.Point(0, 0);\n\n // Point position\n let anchor = new global.google.maps.Point(style.width / 2, style.height);\n\n final.default = {\n url: style.default, size: size, origin: origin, anchor: anchor, scaledSize: size\n };\n\n if ( Obj.has(style, 'hover') ) {\n final.hover = Obj.assign({}, final.default, { url: style.hover });\n }\n\n if ( ! Obj.has(final, 'hover') ) {\n final.hover = final.default;\n }\n\n if ( Obj.has(style, 'active') ) {\n final.active = Obj.assign({}, final.default, { url: style.active });\n }\n\n if ( ! Obj.has(final, 'active') ) {\n final.active = final.default;\n }\n\n Obj.each(extra, (value, prop) => {\n final[prop] = Obj.assign({}, final.default, { url: value });\n });\n\n Obj.set(Map.markerStyles, key, final);\n\n return this;\n }\n\n clusterMarkers(options = {}, filter = null, allowCreate = 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 ( ! Obj.has(options, 'imagePath') && ! 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 ( Any.isFunction(filter) ) {\n this.clusterFilter = filter;\n }\n\n let markers = Arr.filter(this.markers, (item) => {\n\n let visible = this.getMarkerVisibility(item.key);\n\n if ( ! Any.isFunction(this.clusterFilter) ) {\n return visible;\n }\n\n return visible && this.clusterFilter.call(this, item);\n });\n\n this.cluster = new global.MarkerClusterer(this.map, Arr.each(markers, (item) => item.marker),\n this.clusterOptions = options);\n }\n\n styleMarker(key, type = null)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( Any.isEmpty(type) ) {\n type = this.getInfoVisibility(key) ? 'active' : 'default';\n }\n\n if ( ! Obj.has(Map.markerStyles, [item.style, type]) ) {\n return;\n }\n\n item.marker.setIcon(Obj.get(Map.markerStyles, [item.style, type]));\n }\n\n getMarker(key)\n {\n return Obj.get(this.markers, key);\n }\n\n getMarkerVisibility(key, fallback = false)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return fallback;\n }\n\n return item.marker.getVisible();\n }\n\n getMarkerPositon(key, fallback = null)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return fallback;\n }\n\n return item.marker.getPosition();\n }\n\n toggleMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${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 showMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let hidden = ! item.marker.getVisible();\n\n if ( hidden ) {\n item.marker.setVisible(true);\n }\n\n return hidden;\n }\n\n hideMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let visible = !! item.marker.getVisible();\n\n if ( visible ) {\n item.marker.setVisible(false);\n }\n\n this.closeInfo(key);\n\n return visible;\n }\n\n enterMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let type = 'hover';\n\n if ( this.getInfoVisibility(key) ) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n\n return this;\n }\n\n leaveMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let type = 'default';\n\n if ( this.getInfoVisibility(key) ) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n\n return this;\n }\n\n getInfoVisibility(key, fallback = false)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) || ! Obj.has(item, 'info') ) {\n return fallback;\n }\n\n return !! item.info.getMap();\n }\n\n toggleInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${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 openInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`InfoWindow \"${key}\" not found`);\n }\n\n if ( ! Obj.has(item, 'info') ) {\n return true;\n }\n\n let hidden = ! item.info.getMap();\n\n if ( Map.closeInfoWindows ) {\n Obj.each(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\n return hidden;\n }\n\n closeInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`InfoWindow \"${key}\" not found`);\n }\n\n if ( ! Obj.has(item, 'info') ) {\n return false;\n }\n\n let visible = !! item.info.getMap();\n\n if ( visible ) {\n item.info.close();\n }\n\n this.styleMarker(key, 'default');\n\n return visible;\n }\n\n createMarker(key = null, options = {})\n {\n if ( Any.isEmpty(key) ) {\n key = UUID();\n }\n\n let item = { key };\n\n if ( ! Obj.has(options, 'visible') ) {\n options.visible = true;\n }\n\n item.extras = Obj.except(options, [\n 'map', 'position', 'lat', 'lng', 'html', 'style', 'visible'\n ]);\n\n if ( ! Obj.has(options, 'map') ) {\n options.map = this.map;\n }\n\n if ( ! Obj.has(options, 'positon') ) {\n options.position = Obj.only(options, ['lat', 'lng']);\n }\n\n if ( 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 Obj.set(this.markers, key, item);\n\n this.clusterMarkers(this.clusterOptions, null, false);\n\n if ( ! Obj.has(options, 'html') ) {\n return Obj.get(this.markers, key);\n }\n\n if ( ! Obj.has(item, 'style') ) {\n item.style = 'default';\n }\n\n // Style marker\n this.styleMarker(key);\n\n // Add marker hover style\n item.marker.addListener('mouseover', () => this.enterMarker(key));\n\n // Add marker default style\n item.marker.addListener('mouseout', () => this.leaveMarker(key));\n\n item.info = new global.google.maps.InfoWindow({\n content: '<div class=\"gw-i-html\">' + Obj.get(options, 'html') + '</div>'\n });\n\n item.marker.addListener('click', () => this.toggleInfo(key));\n item.info.addListener('closeclick', () => this.closeInfo(key));\n\n Obj.set(this.markers, key, item);\n\n return Obj.get(this.markers, key);\n }\n\n setMarkerPosition(key, options = {})\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n item.marker.setPosition(options);\n }\n\n setMarkerByAddress(key, address)\n {\n return this.getLocationByAddress(address, (res) => {\n this.setMarkerPosition(key, Obj.get(res, '0.geometry.location', {}));\n });\n }\n\n getLocationByAddress(address, callback = null)\n {\n let geocoderService = new global.google.maps.Geocoder();\n\n let geocoderPromise = (resolve, reject) => {\n\n let geocoderResult = (response, status) => {\n\n if ( status === 'OK' ) {\n callback(response);\n resolve(response);\n }\n\n if ( status !== 'OK' ) {\n reject(response);\n }\n\n };\n\n geocoderService.geocode({ address }, geocoderResult);\n };\n\n return new Promise(geocoderPromise);\n }\n\n showMarkers(filter = null)\n {\n let markers = this.markers;\n\n if ( ! Any.isEmpty(filter) ) {\n markers = Obj.filter(this.markers, filter);\n }\n\n if ( Map.hideMarkers ) {\n Obj.each(Any.keys(this.markers), this.hideMarker.bind(this));\n }\n\n Obj.each(markers, (item) => this.showMarker(item.key));\n\n this.clusterMarkers(this.clusterOptions, null, false);\n\n return this;\n }\n\n getMarkerBoundry(filter = null)\n {\n let markers = this.markers;\n\n if ( ! Any.isEmpty(filter) ) {\n markers = Obj.filter(this.markers, filter);\n }\n\n let boundry = new global.google.maps.LatLngBounds();\n\n Obj.each(markers, (item) => {\n if ( item.marker.getVisible() ) {\n boundry.extend(item.marker.getPosition());\n }\n });\n\n return boundry;\n }\n\n focusMarkers(filter = null, maxZoom = 14)\n {\n let boundry = this.getMarkerBoundry(filter);\n\n // Center map to boundry\n this.map.setCenter(boundry.getCenter());\n\n // Adapt viewport to boundry\n this.map.fitBounds(boundry, 15);\n\n if ( this.map.getZoom() > maxZoom ) {\n this.map.setZoom(maxZoom);\n }\n\n return this;\n }\n\n renderDirections(options)\n {\n // Get directions service\n let directionsService = new global.google.maps.DirectionsService();\n\n // Get directions renderer\n let directionsRenderer = new global.google.maps.DirectionsRenderer();\n\n if ( ! Obj.has(options, 'map') ) {\n options.map = this.map;\n }\n\n if ( ! Obj.has(options, 'travelMode') ) {\n options.travelMode = 'DRIVING';\n }\n\n // Set directions map\n directionsRenderer.setMap(options.map);\n\n if ( Obj.has(options, 'panel') && ! Dom.find(options.panel).empty() ) {\n directionsRenderer.setPanel(Dom.find(options.panel).get(0));\n }\n\n options = Obj.only(options, ['origin', 'destination', 'travelMode']);\n\n let directionsPromise = (resolve, reject) => {\n\n let directionsResult = (response, status) => {\n\n if ( status === 'OK' ) {\n directionsRenderer.setDirections(response);\n resolve(response);\n }\n\n if ( status !== 'OK' ) {\n reject(response);\n }\n\n };\n\n directionsService.route(options, directionsResult);\n };\n\n return new Promise(directionsPromise);\n }\n\n}\n","import { Arr } from \"../index.js\";\n\nexport default class Queue\n{\n queue = [];\n stopQueue = false;\n activeQueue = false;\n\n constructor(queue = [])\n {\n this.queue = queue;\n }\n\n handler(queue, index)\n {\n return () => queue.length - 1 > index ++ && this.stopQueue === false ?\n queue[index](this.handler(queue, index)) : () => {};\n }\n\n stop()\n {\n this.stopQueue = true;\n this.activeQueue = false;\n\n this.queue = [];\n\n return this;\n }\n\n clear()\n {\n this.queue = [];\n\n return this;\n }\n\n add(cb)\n {\n this.queue.push(cb);\n\n return this;\n }\n\n run()\n {\n let instance = new Queue(this.queue);\n\n instance.add(() => {\n instance.activeQueue = false;\n });\n\n if ( instance.queue.length !== 0 ) {\n Arr.first(instance.queue)(instance.handler(instance.queue.slice(0), 0));\n }\n\n return instance;\n }\n\n active()\n {\n return this.activeQueue;\n }\n\n}\n","import { Obj, Str, Any } from \"../index.js\";\n\nexport default class Route\n{\n static routes = Obj.get(global, '_routes', {});\n\n static set (key, value)\n {\n this.routes[key] = value;\n }\n\n static get (key, values = null, params = null)\n {\n let route = key.match(/^https?:\\/\\//) ? key : this.routes[key] || key;\n\n Obj.each(values || {}, (value, key) => {\n route = route.replace(new RegExp('{' + key + '\\\\?*}', 'g'), value);\n });\n\n return route + (! Any.isEmpty(params) ? ('?' + Str.params(params)) : '');\n }\n\n static goto (key, values = null, params = null)\n {\n global.location.href = this.get(key, values, params);\n }\n\n}\n","var v1 = require('./v1');\nvar v4 = require('./v4');\n\nvar uuid = v4;\nuuid.v1 = v1;\nuuid.v4 = v4;\n\nmodule.exports = uuid;\n","// 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","/**\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","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\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","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\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"],"sourceRoot":""}
|