@kizmann/pico-js 0.4.14 → 0.4.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -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/(webpack)/buildin/global.js","webpack://Pico/./src/utility/string.js","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","define","amd","window","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","document","ready","listen","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","timer","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","arr1","arr2","complete","rainbow","has","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","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","moment","Error","toDate","initialDate","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","readyState","find","on","globals","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","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","invi","item","inviewY","cb","instance","inis","prefix","getPrefix","console","error","runs","deamon","unbind","childList","subtree","attributes","attributeFilter","mounted","deamons","_plain","pluck","bindCb","bindInview","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","tl","tmh","ii"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAc,KAAID,IAElBD,EAAW,KAAIC,IARjB,CASGK,QAAQ,WACX,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUP,QAGnC,IAAIC,EAASI,EAAiBE,GAAY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EAAExH,KAAkB,IAAXyiB,EAGT,IAAK,IAAIhhB,EAAI,EAAGA,EAAI,IAAKA,EACvB+F,EAAExH,EAAIyB,GAAKuR,EAAKvR,GAGlB,OAAOwgB,GAAYK,EAAY9a,K,gBCzGjC,IAAI6a,EAAM,EAAQ,IACdC,EAAc,EAAQ,IA2B1B7iB,EAAOD,QAzBP,SAAYwO,EAASiU,EAAKzP,GACxB,IAAIxS,EAAIiiB,GAAOzP,GAAU,EAEF,iBAAb,IACRyP,EAAkB,WAAZjU,EAAuB,IAAItJ,MAAM,IAAM,KAC7CsJ,EAAU,MAIZ,IAAI8T,GAFJ9T,EAAUA,GAAW,IAEFjE,SAAWiE,EAAQqU,KAAOA,KAO7C,GAJAP,EAAK,GAAgB,GAAVA,EAAK,GAAa,GAC7BA,EAAK,GAAgB,GAAVA,EAAK,GAAa,IAGzBG,EACF,IAAK,IAAIe,EAAK,EAAGA,EAAK,KAAMA,EAC1Bf,EAAIjiB,EAAIgjB,GAAMlB,EAAKkB,GAIvB,OAAOf,GAAOK,EAAYR","file":"pico-js.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Pico\"] = factory();\n\telse\n\t\troot[\"Pico\"] = factory();\n})(window, function() {\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 = 20);\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\nif ( typeof global.pi !== 'undefined' && global.document ) {\n global.pi.Dom.ready(global.pi.Element.listen);\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 let timer = null;\n\n return (...args) => {\n\n clearTimeout(timer);\n\n timer = setTimeout(() => {\n throttle = null;\n }, delay);\n\n if ( throttle === true ) {\n return;\n }\n\n throttle = true;\n\n if ( ! Any.isEmpty(ref) ) {\n ref(throttle);\n }\n\n callback(...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 equal(arr1, arr2)\n {\n let complete = this.merge([], arr1, arr2);\n\n let rainbow = this.each(complete, (value) => {\n return this.has(arr1, value) && this.has(arr2, value);\n });\n\n return ! this.has(rainbow, false);\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 pluck(obj, keys, fallback = null)\n {\n let value = this.get(obj, keys, fallback);\n\n this.unset(obj, keys);\n\n return value;\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","import { Num, Arr, Any } from \"../index.js\";\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 ( ! global.moment ) {\n throw new Error('Moment.js is required for pi.Now');\n }\n\n if ( date instanceof Now ) {\n date = date.get().toDate();\n }\n\n this.initialDate = date;\n\n if ( ! Any.isString(date) ) {\n this.moment = global.moment(date || new Date, format);\n }\n\n if ( this.moment !== null ) {\n return this;\n }\n\n this.moment = global.moment(date.match(/^now/) ?\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 global.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 + 50), 50);\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 document.readyState === 'interactive';\n\n if ( delay === 0 && (ready === false || count < delay) ) {\n Dom.find(document).on('load', callback);\n return this;\n }\n\n if ( delay !== 0 && (ready === false || count < delay) ) {\n setTimeout(() => Dom.ready(callback, delay, count + 50), 50);\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 * Instance storage.\n */\n static invi = [];\n\n static listen()\n {\n // Apply dom scroll event\n document.addEventListener(\"scroll\", Element.scroll);\n\n // Apply initial scroll event\n Element.scroll();\n }\n\n static scroll()\n {\n Arr.each(this.invi, (item, index) => {\n\n if ( ! Dom.find(item.el).inviewY() ) {\n return;\n }\n\n Arr.removeIndex(this.invi, index);\n\n item.cb();\n });\n }\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\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 let inview = Obj.pluck(options, 'inview', false);\n\n if ( inview ) {\n Arr.remove(this.invi, { el });\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 let inview = Obj.pluck(options, 'inview', false);\n\n let bindCb = () => {\n this.bind(key, el, options);\n };\n\n inview ? this.bindInview(el, bindCb) : bindCb();\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 static bindInview(el, cb)\n {\n Arr.add(this.invi, { el, cb }, { el });\n }\n\n static unbindInview(el, cb)\n {\n Arr.remove(this.invi, { el, cb }, { el });\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, Event, 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 throw new Error('Google Maps is required for pi.Map');\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 throw new Error('Google Maps is required for pi.Map');\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 // Dom change event\n item.info.addListener('domready', () => Event.fire('MapsDomReady'));\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/./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","define","amd","window","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","document","ready","listen","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","timer","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","arr1","arr2","complete","rainbow","has","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","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","moment","Error","toDate","initialDate","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","readyState","find","on","globals","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","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","invi","item","inviewY","cb","instance","inis","prefix","getPrefix","console","error","runs","deamon","unbind","childList","subtree","attributes","attributeFilter","mounted","deamons","_plain","pluck","bindCb","bindInview","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","boundSpace","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","tl","tmh","ii"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAc,KAAID,IAElBD,EAAW,KAAIC,IARjB,CASGK,QAAQ,WACX,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUP,QAGnC,IAAIC,EAASI,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHT,QAAS,IAUV,OANAU,EAAQH,GAAUI,KAAKV,EAAOD,QAASC,EAAQA,EAA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B+F,EAAExH,EAAIyB,GAAKuR,EAAKvR,GAGlB,OAAOygB,GAAYK,EAAY/a,K,gBCzGjC,IAAI8a,EAAM,EAAQ,IACdC,EAAc,EAAQ,IA2B1B9iB,EAAOD,QAzBP,SAAYwO,EAASkU,EAAK1P,GACxB,IAAIxS,EAAIkiB,GAAO1P,GAAU,EAEF,iBAAb,IACR0P,EAAkB,WAAZlU,EAAuB,IAAItJ,MAAM,IAAM,KAC7CsJ,EAAU,MAIZ,IAAI+T,GAFJ/T,EAAUA,GAAW,IAEFjE,SAAWiE,EAAQsU,KAAOA,KAO7C,GAJAP,EAAK,GAAgB,GAAVA,EAAK,GAAa,GAC7BA,EAAK,GAAgB,GAAVA,EAAK,GAAa,IAGzBG,EACF,IAAK,IAAIe,EAAK,EAAGA,EAAK,KAAMA,EAC1Bf,EAAIliB,EAAIijB,GAAMlB,EAAKkB,GAIvB,OAAOf,GAAOK,EAAYR","file":"pico-js.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Pico\"] = factory();\n\telse\n\t\troot[\"Pico\"] = factory();\n})(window, function() {\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 = 20);\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\nif ( typeof global.pi !== 'undefined' && global.document ) {\n global.pi.Dom.ready(global.pi.Element.listen);\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 let timer = null;\n\n return (...args) => {\n\n clearTimeout(timer);\n\n timer = setTimeout(() => {\n throttle = null;\n }, delay);\n\n if ( throttle === true ) {\n return;\n }\n\n throttle = true;\n\n if ( ! Any.isEmpty(ref) ) {\n ref(throttle);\n }\n\n callback(...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 equal(arr1, arr2)\n {\n let complete = this.merge([], arr1, arr2);\n\n let rainbow = this.each(complete, (value) => {\n return this.has(arr1, value) && this.has(arr2, value);\n });\n\n return ! this.has(rainbow, false);\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 pluck(obj, keys, fallback = null)\n {\n let value = this.get(obj, keys, fallback);\n\n this.unset(obj, keys);\n\n return value;\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","import { Num, Arr, Any } from \"../index.js\";\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 ( ! global.moment ) {\n throw new Error('Moment.js is required for pi.Now');\n }\n\n if ( date instanceof Now ) {\n date = date.get().toDate();\n }\n\n this.initialDate = date;\n\n if ( ! Any.isString(date) ) {\n this.moment = global.moment(date || new Date, format);\n }\n\n if ( this.moment !== null ) {\n return this;\n }\n\n this.moment = global.moment(date.match(/^now/) ?\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 global.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 + 50), 50);\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 document.readyState === 'interactive';\n\n if ( delay === 0 && (ready === false || count < delay) ) {\n Dom.find(document).on('load', callback);\n return this;\n }\n\n if ( delay !== 0 && (ready === false || count < delay) ) {\n setTimeout(() => Dom.ready(callback, delay, count + 50), 50);\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 * Instance storage.\n */\n static invi = [];\n\n static listen()\n {\n // Apply dom scroll event\n document.addEventListener(\"scroll\", Element.scroll);\n\n // Apply initial scroll event\n Element.scroll();\n }\n\n static scroll()\n {\n Arr.each(this.invi, (item, index) => {\n\n if ( ! Dom.find(item.el).inviewY() ) {\n return;\n }\n\n Arr.removeIndex(this.invi, index);\n\n item.cb();\n });\n }\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\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 let inview = Obj.pluck(options, 'inview', false);\n\n if ( inview ) {\n Arr.remove(this.invi, { el });\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 let inview = Obj.pluck(options, 'inview', false);\n\n let bindCb = () => {\n this.bind(key, el, options);\n };\n\n inview ? this.bindInview(el, bindCb) : bindCb();\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 static bindInview(el, cb)\n {\n Arr.add(this.invi, { el, cb }, { el });\n }\n\n static unbindInview(el, cb)\n {\n Arr.remove(this.invi, { el, cb }, { el });\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, Event, 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 throw new Error('Google Maps is required for pi.Map');\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 throw new Error('Google Maps is required for pi.Map');\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 // Dom change event\n item.info.addListener('domready', () => Event.fire('MapsDomReady'));\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, boundSpace = 15)\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, boundSpace);\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":""}