@kizmann/pico-js 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/utility/now.js +10 -10
package/dist/pico-js.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["webpack://Pico/webpack/universalModuleDefinition","webpack://Pico/webpack/bootstrap","webpack://Pico/./src/index.js","webpack://Pico/./src/utility/any.js","webpack://Pico/./src/utility/array.js","webpack://Pico/./src/utility/number.js","webpack://Pico/./src/utility/object.js","webpack://Pico/(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","ready","document","addEventListener","scroll","val","this","isNumber","isString","isBool","isPlain","isArray","keys","length","obj","Node","isEqualNode","is","isObject","constructor","Array","Date","String","empty","isEmpty","string","parseInt","parseFloat","result","yes","no","format","make","push","callback","args","setTimeout","delay","ref","debounce","undefined","__debouce","clearTimeout","throttle","rate","latest","now","form","FormData","appendField","values","each","index","inner","merge","splice","append","count","map","fill","arr","fallback","isFunction","sort","a","b","integer","va","toLowerCase","vb","filter","filterIndex","includes","first","findIndex","finder","slice","vals","indexOf","concat","clone","diff","reduce","chunk","res","accumulator","path","cascade","recursive","num","replace","Math","ceil","round","floor","fixed","toFixed","start","end","random","base","pow","acc","cord1","cord2","miles","defaultCord","lat","lng","assign","radlat1","PI","radlat2","theta","radtheta","dist","sin","cos","acos","decimal","thousand","toString","totals","minals","splits","split","reverse","join","lst","pop","undef","nested","shift","unset","has","matches","entries","sey","tey","g","Function","e","toUpperCase","slug","slugify","ucfirst","targets","source","RegExp","charAt","search","lower","decimals","size","units","unit","limit","real","array","bool","fromParams","fromOptions","JSON","parse","params","options","stringify","quota","regex","convertFromOptions","attr","set","convertFromParams","date","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","timer","required","element","querySelectorAll","createElement","posx","posy","elementsFromPoint","msElementsFromPoint","text","glue","title","baseTitle","ratio","viewport","width","height","offset","left","right","top","bottom","selector","parent","els","node","parentNode","body","scrollHeight","clientHeight","contains","closest","nodes","childNodes","nodeType","insertBefore","removeChild","previousSibling","nextSibling","timeout","setInterval","complete","naturalWidth","clearInterval","event","paused","func","events","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,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kB,WAAZjU,EAAuB,IAAIjJ,MAAM,IAAM,KAC7CiJ,EAAU,MAIZ,IAAI8T,GAFJ9T,EAAUA,GAAW,IAEFlE,SAAWkE,EAAQqU,KAAOA,KAO7C,GAJAP,EAAK,GAAgB,GAAVA,EAAK,GAAa,GAC7BA,EAAK,GAAgB,GAAVA,EAAK,GAAa,IAGzBG,EACF,IAAK,IAAIe,EAAK,EAAGA,EAAK,KAAMA,EAC1Bf,EAAI7hB,EAAI4iB,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\nglobal.pi.Dom.ready(function () {\n\n // Apply dom scroll event\n document.addEventListener(\"scroll\",\n global.pi.Element.scroll);\n\n // Apply initial scroll event\n global.pi.Element.scroll();\n});\n\nexport default Pico;\n","import { Arr, Obj, Now } from \"../index.js\";\n\nexport class Any\n{\n static isEmpty(val)\n {\n if ( this.isNumber(val) ) {\n return false;\n }\n\n if ( this.isString(val) ) {\n return val === '';\n }\n\n if ( this.isBool(val) ) {\n return val === null;\n }\n\n if ( this.isPlain(val) ) {\n return Object.keys(val).length === 0;\n }\n\n if ( this.isArray(val) ) {\n return Object.keys(val).length === 0;\n }\n\n return val === null || val === undefined;\n }\n\n static isNull(val)\n {\n return val === null;\n }\n\n static isEqual(obj, val)\n {\n if ( obj instanceof Node ) {\n return obj.isEqualNode(val);\n }\n\n if ( this.isPlain(obj) ) {\n return Object.is(obj, val)\n }\n\n if ( this.isArray(obj) ) {\n return Object.is(obj, val)\n }\n\n return obj === val;\n }\n\n static isString(val)\n {\n return typeof val === 'string';\n }\n\n static isNumber(val)\n {\n return typeof val === 'number' ||\n (typeof val === 'string' && val.match(/^\\-?[0-9]+$/));\n }\n\n static isBool(val)\n {\n return typeof val === 'boolean' ||\n (typeof val === 'string' && val.match(/^(true|false)$/));\n }\n\n static isFunction(val)\n {\n return typeof val === 'function';\n }\n\n static isObject(val)\n {\n return val !== null && typeof val === 'object';\n }\n\n static isPlain(val)\n {\n return this.isObject(val) && val.constructor === Object;\n }\n\n static isArray(val)\n {\n return this.isObject(val) && val.constructor === Array;\n }\n\n static isDate(val)\n {\n return val instanceof Date;\n }\n\n static string(val)\n {\n return String(val);\n }\n\n static convertString(val, empty = '-')\n {\n return this.isEmpty(val) ? empty : this.string(val);\n }\n\n static integer(val)\n {\n return parseInt(val);\n }\n\n static float(val)\n {\n return parseFloat(val);\n }\n\n static bool(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static boolean(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static convertBool(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertBoolean(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertDatetime(val, format = 'YYYY-MM-DD hh:mm:ss', empty = '-')\n {\n if ( Any.isEmpty(val) === true ) {\n return empty;\n }\n\n return Now.make(val).format(format);\n }\n\n static vals(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(obj[key]);\n }\n }\n\n return keys;\n }\n\n static keys(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(key);\n }\n }\n\n return keys;\n }\n\n static async(callback, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, 0);\n\n return this;\n }\n\n static delay(callback, delay = 100, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, delay);\n\n return this;\n }\n\n static debounce(callback, delay = 100, ref = null)\n {\n let debounce = null;\n\n if ( ! Any.isEmpty(ref) ) {\n debounce = ref();\n }\n\n if ( ref !== null && ref.__debouce !== undefined ) {\n debounce = ref.__debouce;\n }\n\n return (...args) => {\n\n clearTimeout(debounce);\n\n debounce = setTimeout(() => {\n callback(...args);\n }, delay);\n\n if ( ! Any.isEmpty(ref) ) {\n ref(debounce);\n }\n };\n }\n\n static throttle(callback, delay = 100, ref = null)\n {\n let throttle = null;\n\n if ( ! Any.isEmpty(ref) ) {\n throttle = ref();\n }\n\n return (...args) => {\n\n if ( throttle === true ) {\n return;\n }\n\n throttle = true;\n\n if ( ! Any.isEmpty(ref) ) {\n ref(throttle);\n }\n\n callback(...args);\n };\n }\n\n static framerate(callback, rate = 30, ref = null)\n {\n let latest = 0;\n\n if ( ! Any.isEmpty(ref) ) {\n latest = ref();\n }\n\n return (...args) => {\n\n if ( Date.now() - latest <= (1000 / rate) ) {\n return;\n }\n\n callback(...args);\n\n latest = Date.now();\n\n if ( ! Any.isEmpty(ref) ) {\n ref(latest);\n }\n\n };\n }\n\n static form(obj)\n {\n let form = new FormData();\n\n let appendField = (values, keys = []) => {\n Obj.each(values, (value, index) => {\n\n let inner = Arr.merge([], keys, index);\n\n if ( Any.isPlain(value) ) {\n return appendField(value, inner);\n }\n\n if ( Any.isArray(value) ) {\n return appendField(value, inner);\n }\n\n let key = inner.splice(0, 1)[0];\n\n Arr.each(inner, (index) => {\n key += '[' + index + ']';\n });\n\n if ( value !== null ) {\n form.append(key, value);\n }\n });\n\n return form;\n };\n\n return appendField(obj);\n }\n\n}\n\nexport default Any;\n","import { Obj, Num, Any } from \"../index.js\"\n\nexport class Arr\n{\n static make(count)\n {\n return Arr.map(Array(count).fill(null), (val, key) => {\n return Num.int(key) + 1;\n });\n }\n\n static all(arr)\n {\n return Array.isArray(arr) ? arr : [arr];\n }\n\n static get(arr, index, fallback = null)\n {\n return arr[index] || fallback;\n }\n\n static set(arr, index, value)\n {\n return arr[index] = value;\n }\n\n static first(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[0] : \n arr) || fallback;\n }\n\n static second(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[1] || \n arr[0] : arr) || fallback;\n }\n\n static third(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[2] || \n arr[1] || arr[0] : arr) || fallback;\n }\n\n static last(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[arr.length - 1] : \n arr) || fallback;\n }\n\n static prepend(arr, val)\n {\n arr.splice(0, 0, val);\n return arr;\n }\n\n static append(arr, val)\n {\n arr.splice(arr.length, 0, val);\n return arr;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return(va < vb) ? -1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n\n static filter(arr, filter)\n {\n return Arr.each(Arr.filterIndex(arr, filter), (key) => {\n return arr[key];\n });\n }\n\n static filterIndex(arr, filter)\n {\n return Any.keys(arr).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, arr[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, arr[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, arr[key]);\n }\n\n return filter === arr[key];\n });\n }\n\n static find(arr, val, fallback = null)\n {\n return Arr.first(Arr.filter(arr, val)) || fallback;\n }\n\n static findIndex(arr, val, fallback = -1)\n {\n return Any.integer(Arr.first(Arr.filterIndex(arr, val)) || fallback);\n }\n\n static has(arr, val)\n {\n return this.findIndex(arr, val) !== - 1;\n }\n\n static add(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index === - 1 ) {\n arr.push(val);\n }\n\n return arr;\n }\n\n static replace(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n arr.push(val);\n\n return arr;\n }\n\n static remove(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n return arr;\n }\n\n static toggle(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n } else {\n arr.push(val);\n }\n\n return arr;\n }\n\n static removeIndex(arr, val)\n {\n if ( val < arr.length ) {\n arr.splice(Num.int(val), 1);\n }\n\n return arr;\n }\n\n static insert(arr, key, val)\n {\n arr.splice(Num.int(key), 0, val);\n\n return arr;\n }\n\n static slice(arr, key, count = 1)\n {\n return arr.slice(Num.int(key), count);\n }\n\n static splice(arr, key, count = 1)\n {\n return arr.splice(Num.int(key), count);\n }\n\n static includes(arr, val)\n {\n let result = false;\n\n for ( let key of Any.vals(arr) ) {\n result = val.indexOf(key) !== -1 || result;\n }\n\n return result;\n }\n\n static contains(arr, val)\n {\n let result = true;\n\n for ( let key of Any.vals(val) ) {\n result = Any.vals(arr).indexOf(key) !== -1 && result;\n }\n\n return result;\n }\n\n static concat(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static clone(arr)\n {\n let clone;\n\n if ( Any.isPlain(arr) ){\n return Obj.clone(arr);\n }\n\n if ( Any.isArray(arr) ){\n\n clone = [];\n\n for ( let key of Any.keys(arr) ) {\n clone[key] = Obj.clone(arr[key]);\n }\n\n return clone;\n }\n\n return clone || arr;\n }\n\n static merge(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static push(arr, ...args)\n {\n arr.push(...args);\n\n return arr;\n }\n\n static diff(arr, val)\n {\n return arr.filter((diff) => val.indexOf(diff) < 0);\n }\n\n static intersect(...args)\n {\n return args.reduce((a, c) => a.filter(i => c.includes(i)));\n }\n\n static chunk(arr, chunk = 10)\n {\n let res = [];\n\n for ( let i = 0; i < arr.length; i += chunk ) {\n res.push(arr.slice(i, i + chunk));\n }\n\n return res;\n }\n\n static reduce(arr, callback, accumulator)\n {\n return Object.values(arr).reduce(callback, accumulator);\n }\n\n static extract(arr, path)\n {\n return this.each(arr, (val) => Obj.get(val, path, null));\n }\n\n static each(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return Any.vals(result);\n }\n\n static map(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = arr[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return result;\n }\n\n static recursive(arr, key, callback, cascade = [])\n {\n if ( Any.isArray(arr) === true ) {\n return this.map(arr, (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n }\n\n if ( Any.isObject(arr) === true ) {\n\n let res = callback(arr, cascade);\n\n arr = res !== undefined ?\n res : arr;\n }\n\n if ( Any.isArray(arr[key]) === true ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.map(arr[key], (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n\n return arr;\n }\n\n if ( Any.isEmpty(arr[key]) === false ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.recursive(arr[key], key, callback, cascade);\n\n return arr;\n }\n\n return arr;\n }\n\n}\n\nexport default Arr;\n","import { Any, Arr, Obj } from \"../index.js\"\n\nexport class Num\n{\n static int(num)\n {\n return !Any.isString(num) ? parseInt(num) :\n parseInt(num.replace('px', ''));\n }\n\n static float(num)\n {\n return !Any.isString(num) ? parseFloat(num) :\n parseFloat(num.replace('px', ''));\n }\n\n static ceil(num)\n {\n return Math.ceil(num);\n }\n\n static round(num)\n {\n return Math.round(num);\n }\n\n static floor(num)\n {\n return Math.floor(num);\n }\n\n static fixed(num, fixed = 2)\n {\n return this.float(num).toFixed(fixed);\n }\n\n static random(start = 0, end = 100)\n {\n return Math.floor((Math.random() * (end + 1)) + start);\n }\n\n static matrix(num, limit = 10, base = [])\n {\n let value = 0;\n\n for ( let i = 20; i >= 0; i -- ) {\n if ( num >= (value = Math.pow(2, i)) ) {\n base.push(value);\n num -= value;\n }\n }\n\n return base;\n }\n\n static combine(arr)\n {\n return Arr.reduce(arr, (acc, val) => acc + val, 0);\n }\n\n static distance(cord1, cord2, miles = false)\n {\n let defaultCord = {\n lat: 0, lng: 0\n };\n\n cord1 = Obj.assign({}, defaultCord, cord1);\n cord2 = Obj.assign({}, defaultCord, cord2);\n\n let radlat1 = (Math.PI * this.float(cord1.lat)) / 180;\n let radlat2 = (Math.PI * this.float(cord2.lat)) / 180;\n\n let theta = this.float(cord1.lng) - this.float(cord2.lng);\n let radtheta = (Math.PI * theta) / 180;\n\n let dist = Math.sin(radlat1) * Math.sin(radlat2) +\n Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);\n\n if ( dist > 1 ) {\n dist = 1;\n }\n\n dist = (Math.acos(dist) * 180) / Math.PI * 60 * 1.1515;\n\n if ( !miles ) {\n dist = dist * 1.609344;\n }\n\n return dist;\n }\n\n static format(num, decimal = '.', thousand = ',', fixed = null)\n {\n if ( num === null ) {\n return null;\n }\n\n let value = num.toString();\n\n if ( fixed !== null && fixed !== - 1 ) {\n value = num.toFixed(fixed);\n }\n\n let totals = value.replace(/\\.[0-9]+$/, ''),\n minals = value.replace(/^[0-9\\-]+\\./, '');\n\n let splits = Arr.reduce(totals.split('').reverse(), (result, val, key) => {\n\n let index = Math.floor(key / 3);\n\n result[index] = index === key / 3 ?\n val : result[index] = val + result[index];\n\n return result;\n }, []);\n\n let result = splits.reverse().join(thousand);\n\n if ( fixed !== - 1 && fixed !== 0 && value.match(/\\./) ) {\n result += decimal + minals;\n }\n\n return result;\n }\n}\n\nexport default Num;\n","import Arr from \"./array.js\";\nimport Any from \"./any.js\";\n\nexport class Obj\n{\n static has(obj, keys)\n {\n if ( obj === null || obj === undefined ) {\n return false;\n }\n\n if ( keys === null || keys === undefined ) {\n return false;\n }\n\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let lst = keys.pop(), index = 0, length = keys.length;\n\n while (obj !== undefined && obj !== null && index < length) {\n obj = obj[keys[index++]];\n }\n\n if ( obj === undefined || obj === null) {\n return false;\n }\n\n return obj[lst] !== undefined;\n }\n\n static empty(obj, key)\n {\n return Any.isEmpty(this.get(obj, key, null));\n }\n\n static get(obj, keys, fallback = null)\n {\n if ( obj === null || obj === undefined ) {\n return fallback;\n }\n\n if ( keys === null || keys === undefined ) {\n return fallback;\n }\n\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n let undef = true;\n\n if ( typeof obj === 'object' ) {\n undef = obj[keys] === null || obj[keys] === undefined\n }\n\n if ( ! undef ) {\n return obj[keys];\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length;\n\n if ( length === 0 ) {\n return fallback;\n }\n\n while (obj !== undefined && obj !== null && index < length) {\n obj = obj[keys[index++]];\n }\n\n if ( obj === undefined || obj === null) {\n return fallback;\n }\n\n return obj;\n }\n\n static set(obj, keys, val)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n let undef = true;\n\n if ( typeof obj === 'object' ) {\n undef = obj[keys] === null || obj[keys] === undefined\n }\n\n if ( ! undef ) {\n obj[keys] = val; return obj;\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length, nested = obj;\n\n if ( length === 0 ) {\n return obj;\n }\n\n while (nested !== null && index < length) {\n\n if ( nested[keys[index]] === undefined || nested[keys[index]] === null ) {\n nested[keys[index]] = {};\n }\n\n if ( index == length - 1 ) {\n nested[keys[index]] = val;\n }\n\n nested = nested[keys[index++]];\n }\n\n return obj;\n }\n\n static unset(obj, keys)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let key = keys.shift();\n\n if ( typeof obj[key] === 'undefined' ) {\n return obj;\n }\n\n if ( keys.length === 0 ) {\n delete obj[key];\n return obj;\n }\n\n return this.unset(obj[key], keys);\n }\n\n static 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 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, 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 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","ready","document","addEventListener","scroll","val","this","isNumber","isString","isBool","isPlain","isArray","keys","length","obj","Node","isEqualNode","is","isObject","constructor","Array","Date","String","empty","isEmpty","string","parseInt","parseFloat","result","yes","no","format","make","push","callback","args","setTimeout","delay","ref","debounce","undefined","__debouce","clearTimeout","throttle","rate","latest","now","form","FormData","appendField","values","each","index","inner","merge","splice","append","count","map","fill","arr","fallback","isFunction","sort","a","b","integer","va","toLowerCase","vb","filter","filterIndex","includes","first","findIndex","finder","slice","vals","indexOf","concat","clone","diff","reduce","chunk","res","accumulator","path","cascade","recursive","num","replace","Math","ceil","round","floor","fixed","toFixed","start","end","random","base","pow","acc","cord1","cord2","miles","defaultCord","lat","lng","assign","radlat1","PI","radlat2","theta","radtheta","dist","sin","cos","acos","decimal","thousand","toString","totals","minals","splits","split","reverse","join","lst","pop","undef","nested","shift","unset","has","matches","entries","sey","tey","g","Function","e","toUpperCase","slug","slugify","ucfirst","targets","source","RegExp","charAt","search","lower","decimals","size","units","unit","limit","real","array","bool","fromParams","fromOptions","JSON","parse","params","options","stringify","quota","regex","convertFromOptions","attr","set","convertFromParams","date","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","ratio","viewport","width","find","height","element","offset","left","right","top","bottom","selector","parent","els","node","parentNode","body","scrollHeight","clientHeight","contains","closest","nodes","childNodes","nodeType","querySelectorAll","insertBefore","removeChild","previousSibling","nextSibling","timeout","setInterval","complete","naturalWidth","clearInterval","event","paused","on","func","events","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","readyState","globals","timer","required","createElement","posx","posy","elementsFromPoint","msElementsFromPoint","text","glue","title","baseTitle","decode","pattern","cookie","plain","expire","setTime","getTime","expires","toUTCString","input","data","isEqual","fire","forceSet","id","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","allowCreate","cluster","MarkerClusterer","imagePath","clearMarkers","clusterFilter","markers","visible","getMarkerVisibility","marker","clusterOptions","type","getInfoVisibility","markerStyles","setIcon","getVisible","getPosition","hideMarker","showMarker","hidden","setVisible","closeInfo","styleMarker","info","getMap","openInfo","closeInfoWindows","open","close","extras","position","Marker","clusterMarkers","addListener","enterMarker","leaveMarker","InfoWindow","content","toggleInfo","setPosition","address","getLocationByAddress","setMarkerPosition","geocoderService","Geocoder","geocoderPromise","resolve","reject","geocode","response","status","Promise","hideMarkers","LatLngBounds","extend","maxZoom","getMarkerBoundry","setCenter","getCenter","fitBounds","getZoom","setZoom","directionsService","DirectionsService","directionsRenderer","DirectionsRenderer","travelMode","setMap","panel","setPanel","route","setDirections","extra","final","Size","origin","Point","anchor","url","scaledSize","hover","active","prop","queue","stopQueue","handler","activeQueue","routes","href","v1","v4","uuid","getRandomValues","crypto","msCrypto","rnds8","Uint8Array","rnds","byteToHex","substr","buf","bth","_nodeId","_clockseq","rng","bytesToUuid","_lastMSecs","_lastNSecs","clockseq","seedBytes","msecs","nsecs","dt","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,EAAOD,QAASM,GAG/DL,EAAOQ,GAAI,EAGJR,EAAOD,QA0Df,OArDAM,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASd,EAASe,EAAMC,GAC3CV,EAAoBW,EAAEjB,EAASe,IAClCG,OAAOC,eAAenB,EAASe,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEV,EAAoBgB,EAAI,SAAStB,GACX,oBAAXuB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAenB,EAASuB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAenB,EAAS,aAAc,CAAEyB,OAAO,KAQvDnB,EAAoBoB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQnB,EAAoBmB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MA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AYR","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\nglobal.pi.Dom.ready(function () {\n\n // Apply dom scroll event\n document.addEventListener(\"scroll\",\n global.pi.Element.scroll);\n\n // Apply initial scroll event\n global.pi.Element.scroll();\n});\n\nexport default Pico;\n","import { Arr, Obj, Now } from \"../index.js\";\n\nexport class Any\n{\n static isEmpty(val)\n {\n if ( this.isNumber(val) ) {\n return false;\n }\n\n if ( this.isString(val) ) {\n return val === '';\n }\n\n if ( this.isBool(val) ) {\n return val === null;\n }\n\n if ( this.isPlain(val) ) {\n return Object.keys(val).length === 0;\n }\n\n if ( this.isArray(val) ) {\n return Object.keys(val).length === 0;\n }\n\n return val === null || val === undefined;\n }\n\n static isNull(val)\n {\n return val === null;\n }\n\n static isEqual(obj, val)\n {\n if ( obj instanceof Node ) {\n return obj.isEqualNode(val);\n }\n\n if ( this.isPlain(obj) ) {\n return Object.is(obj, val)\n }\n\n if ( this.isArray(obj) ) {\n return Object.is(obj, val)\n }\n\n return obj === val;\n }\n\n static isString(val)\n {\n return typeof val === 'string';\n }\n\n static isNumber(val)\n {\n return typeof val === 'number' ||\n (typeof val === 'string' && val.match(/^\\-?[0-9]+$/));\n }\n\n static isBool(val)\n {\n return typeof val === 'boolean' ||\n (typeof val === 'string' && val.match(/^(true|false)$/));\n }\n\n static isFunction(val)\n {\n return typeof val === 'function';\n }\n\n static isObject(val)\n {\n return val !== null && typeof val === 'object';\n }\n\n static isPlain(val)\n {\n return this.isObject(val) && val.constructor === Object;\n }\n\n static isArray(val)\n {\n return this.isObject(val) && val.constructor === Array;\n }\n\n static isDate(val)\n {\n return val instanceof Date;\n }\n\n static string(val)\n {\n return String(val);\n }\n\n static convertString(val, empty = '-')\n {\n return this.isEmpty(val) ? empty : this.string(val);\n }\n\n static integer(val)\n {\n return parseInt(val);\n }\n\n static float(val)\n {\n return parseFloat(val);\n }\n\n static bool(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static boolean(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static convertBool(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertBoolean(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertDatetime(val, format = 'YYYY-MM-DD hh:mm:ss', empty = '-')\n {\n if ( Any.isEmpty(val) === true ) {\n return empty;\n }\n\n return Now.make(val).format(format);\n }\n\n static vals(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(obj[key]);\n }\n }\n\n return keys;\n }\n\n static keys(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(key);\n }\n }\n\n return keys;\n }\n\n static async(callback, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, 0);\n\n return this;\n }\n\n static delay(callback, delay = 100, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, delay);\n\n return this;\n }\n\n static debounce(callback, delay = 100, ref = null)\n {\n let debounce = null;\n\n if ( ! Any.isEmpty(ref) ) {\n debounce = ref();\n }\n\n if ( ref !== null && ref.__debouce !== undefined ) {\n debounce = ref.__debouce;\n }\n\n return (...args) => {\n\n clearTimeout(debounce);\n\n debounce = setTimeout(() => {\n callback(...args);\n }, delay);\n\n if ( ! Any.isEmpty(ref) ) {\n ref(debounce);\n }\n };\n }\n\n static throttle(callback, delay = 100, ref = null)\n {\n let throttle = null;\n\n if ( ! Any.isEmpty(ref) ) {\n throttle = ref();\n }\n\n return (...args) => {\n\n if ( throttle === true ) {\n return;\n }\n\n throttle = true;\n\n if ( ! Any.isEmpty(ref) ) {\n ref(throttle);\n }\n\n callback(...args);\n };\n }\n\n static framerate(callback, rate = 30, ref = null)\n {\n let latest = 0;\n\n if ( ! Any.isEmpty(ref) ) {\n latest = ref();\n }\n\n return (...args) => {\n\n if ( Date.now() - latest <= (1000 / rate) ) {\n return;\n }\n\n callback(...args);\n\n latest = Date.now();\n\n if ( ! Any.isEmpty(ref) ) {\n ref(latest);\n }\n\n };\n }\n\n static form(obj)\n {\n let form = new FormData();\n\n let appendField = (values, keys = []) => {\n Obj.each(values, (value, index) => {\n\n let inner = Arr.merge([], keys, index);\n\n if ( Any.isPlain(value) ) {\n return appendField(value, inner);\n }\n\n if ( Any.isArray(value) ) {\n return appendField(value, inner);\n }\n\n let key = inner.splice(0, 1)[0];\n\n Arr.each(inner, (index) => {\n key += '[' + index + ']';\n });\n\n if ( value !== null ) {\n form.append(key, value);\n }\n });\n\n return form;\n };\n\n return appendField(obj);\n }\n\n}\n\nexport default Any;\n","import { Obj, Num, Any } from \"../index.js\"\n\nexport class Arr\n{\n static make(count)\n {\n return Arr.map(Array(count).fill(null), (val, key) => {\n return Num.int(key) + 1;\n });\n }\n\n static all(arr)\n {\n return Array.isArray(arr) ? arr : [arr];\n }\n\n static get(arr, index, fallback = null)\n {\n return arr[index] || fallback;\n }\n\n static set(arr, index, value)\n {\n return arr[index] = value;\n }\n\n static first(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[0] : \n arr) || fallback;\n }\n\n static second(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[1] || \n arr[0] : arr) || fallback;\n }\n\n static third(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[2] || \n arr[1] || arr[0] : arr) || fallback;\n }\n\n static last(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[arr.length - 1] : \n arr) || fallback;\n }\n\n static prepend(arr, val)\n {\n arr.splice(0, 0, val);\n return arr;\n }\n\n static append(arr, val)\n {\n arr.splice(arr.length, 0, val);\n return arr;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return(va < vb) ? -1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n\n static filter(arr, filter)\n {\n return Arr.each(Arr.filterIndex(arr, filter), (key) => {\n return arr[key];\n });\n }\n\n static filterIndex(arr, filter)\n {\n return Any.keys(arr).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, arr[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, arr[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, arr[key]);\n }\n\n return filter === arr[key];\n });\n }\n\n static find(arr, val, fallback = null)\n {\n return Arr.first(Arr.filter(arr, val)) || fallback;\n }\n\n static findIndex(arr, val, fallback = -1)\n {\n return Any.integer(Arr.first(Arr.filterIndex(arr, val)) || fallback);\n }\n\n static has(arr, val)\n {\n return this.findIndex(arr, val) !== - 1;\n }\n\n static add(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index === - 1 ) {\n arr.push(val);\n }\n\n return arr;\n }\n\n static replace(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n arr.push(val);\n\n return arr;\n }\n\n static remove(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n return arr;\n }\n\n static toggle(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n } else {\n arr.push(val);\n }\n\n return arr;\n }\n\n static removeIndex(arr, val)\n {\n if ( val < arr.length ) {\n arr.splice(Num.int(val), 1);\n }\n\n return arr;\n }\n\n static insert(arr, key, val)\n {\n arr.splice(Num.int(key), 0, val);\n\n return arr;\n }\n\n static slice(arr, key, count = 1)\n {\n return arr.slice(Num.int(key), count);\n }\n\n static splice(arr, key, count = 1)\n {\n return arr.splice(Num.int(key), count);\n }\n\n static includes(arr, val)\n {\n let result = false;\n\n for ( let key of Any.vals(arr) ) {\n result = val.indexOf(key) !== -1 || result;\n }\n\n return result;\n }\n\n static contains(arr, val)\n {\n let result = true;\n\n for ( let key of Any.vals(val) ) {\n result = Any.vals(arr).indexOf(key) !== -1 && result;\n }\n\n return result;\n }\n\n static concat(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static clone(arr)\n {\n let clone;\n\n if ( Any.isPlain(arr) ){\n return Obj.clone(arr);\n }\n\n if ( Any.isArray(arr) ){\n\n clone = [];\n\n for ( let key of Any.keys(arr) ) {\n clone[key] = Obj.clone(arr[key]);\n }\n\n return clone;\n }\n\n return clone || arr;\n }\n\n static merge(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static push(arr, ...args)\n {\n arr.push(...args);\n\n return arr;\n }\n\n static diff(arr, val)\n {\n return arr.filter((diff) => val.indexOf(diff) < 0);\n }\n\n static intersect(...args)\n {\n return args.reduce((a, c) => a.filter(i => c.includes(i)));\n }\n\n static chunk(arr, chunk = 10)\n {\n let res = [];\n\n for ( let i = 0; i < arr.length; i += chunk ) {\n res.push(arr.slice(i, i + chunk));\n }\n\n return res;\n }\n\n static reduce(arr, callback, accumulator)\n {\n return Object.values(arr).reduce(callback, accumulator);\n }\n\n static extract(arr, path)\n {\n return this.each(arr, (val) => Obj.get(val, path, null));\n }\n\n static each(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return Any.vals(result);\n }\n\n static map(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = arr[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return result;\n }\n\n static recursive(arr, key, callback, cascade = [])\n {\n if ( Any.isArray(arr) === true ) {\n return this.map(arr, (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n }\n\n if ( Any.isObject(arr) === true ) {\n\n let res = callback(arr, cascade);\n\n arr = res !== undefined ?\n res : arr;\n }\n\n if ( Any.isArray(arr[key]) === true ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.map(arr[key], (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n\n return arr;\n }\n\n if ( Any.isEmpty(arr[key]) === false ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.recursive(arr[key], key, callback, cascade);\n\n return arr;\n }\n\n return arr;\n }\n\n}\n\nexport default Arr;\n","import { Any, Arr, Obj } from \"../index.js\"\n\nexport class Num\n{\n static int(num)\n {\n return !Any.isString(num) ? parseInt(num) :\n parseInt(num.replace('px', ''));\n }\n\n static float(num)\n {\n return !Any.isString(num) ? parseFloat(num) :\n parseFloat(num.replace('px', ''));\n }\n\n static ceil(num)\n {\n return Math.ceil(num);\n }\n\n static round(num)\n {\n return Math.round(num);\n }\n\n static floor(num)\n {\n return Math.floor(num);\n }\n\n static fixed(num, fixed = 2)\n {\n return this.float(num).toFixed(fixed);\n }\n\n static random(start = 0, end = 100)\n {\n return Math.floor((Math.random() * (end + 1)) + start);\n }\n\n static matrix(num, limit = 10, base = [])\n {\n let value = 0;\n\n for ( let i = 20; i >= 0; i -- ) {\n if ( num >= (value = Math.pow(2, i)) ) {\n base.push(value);\n num -= value;\n }\n }\n\n return base;\n }\n\n static combine(arr)\n {\n return Arr.reduce(arr, (acc, val) => acc + val, 0);\n }\n\n static distance(cord1, cord2, miles = false)\n {\n let defaultCord = {\n lat: 0, lng: 0\n };\n\n cord1 = Obj.assign({}, defaultCord, cord1);\n cord2 = Obj.assign({}, defaultCord, cord2);\n\n let radlat1 = (Math.PI * this.float(cord1.lat)) / 180;\n let radlat2 = (Math.PI * this.float(cord2.lat)) / 180;\n\n let theta = this.float(cord1.lng) - this.float(cord2.lng);\n let radtheta = (Math.PI * theta) / 180;\n\n let dist = Math.sin(radlat1) * Math.sin(radlat2) +\n Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);\n\n if ( dist > 1 ) {\n dist = 1;\n }\n\n dist = (Math.acos(dist) * 180) / Math.PI * 60 * 1.1515;\n\n if ( !miles ) {\n dist = dist * 1.609344;\n }\n\n return dist;\n }\n\n static format(num, decimal = '.', thousand = ',', fixed = null)\n {\n if ( num === null ) {\n return null;\n }\n\n let value = num.toString();\n\n if ( fixed !== null && fixed !== - 1 ) {\n value = num.toFixed(fixed);\n }\n\n let totals = value.replace(/\\.[0-9]+$/, ''),\n minals = value.replace(/^[0-9\\-]+\\./, '');\n\n let splits = Arr.reduce(totals.split('').reverse(), (result, val, key) => {\n\n let index = Math.floor(key / 3);\n\n result[index] = index === key / 3 ?\n val : result[index] = val + result[index];\n\n return result;\n }, []);\n\n let result = splits.reverse().join(thousand);\n\n if ( fixed !== - 1 && fixed !== 0 && value.match(/\\./) ) {\n result += decimal + minals;\n }\n\n return result;\n }\n}\n\nexport default Num;\n","import Arr from \"./array.js\";\nimport Any from \"./any.js\";\n\nexport class Obj\n{\n static has(obj, keys)\n {\n if ( obj === null || obj === undefined ) {\n return false;\n }\n\n if ( keys === null || keys === undefined ) {\n return false;\n }\n\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let lst = keys.pop(), index = 0, length = keys.length;\n\n while (obj !== undefined && obj !== null && index < length) {\n obj = obj[keys[index++]];\n }\n\n if ( obj === undefined || obj === null) {\n return false;\n }\n\n return obj[lst] !== undefined;\n }\n\n static empty(obj, key)\n {\n return Any.isEmpty(this.get(obj, key, null));\n }\n\n static get(obj, keys, fallback = null)\n {\n if ( obj === null || obj === undefined ) {\n return fallback;\n }\n\n if ( keys === null || keys === undefined ) {\n return fallback;\n }\n\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n let undef = true;\n\n if ( typeof obj === 'object' ) {\n undef = obj[keys] === null || obj[keys] === undefined\n }\n\n if ( ! undef ) {\n return obj[keys];\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length;\n\n if ( length === 0 ) {\n return fallback;\n }\n\n while (obj !== undefined && obj !== null && index < length) {\n obj = obj[keys[index++]];\n }\n\n if ( obj === undefined || obj === null) {\n return fallback;\n }\n\n return obj;\n }\n\n static set(obj, keys, val)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n let undef = true;\n\n if ( typeof obj === 'object' ) {\n undef = obj[keys] === null || obj[keys] === undefined\n }\n\n if ( ! undef ) {\n obj[keys] = val; return obj;\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length, nested = obj;\n\n if ( length === 0 ) {\n return obj;\n }\n\n while (nested !== null && index < length) {\n\n if ( nested[keys[index]] === undefined || nested[keys[index]] === null ) {\n nested[keys[index]] = {};\n }\n\n if ( index == length - 1 ) {\n nested[keys[index]] = val;\n }\n\n nested = nested[keys[index++]];\n }\n\n return obj;\n }\n\n static unset(obj, keys)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let key = keys.shift();\n\n if ( typeof obj[key] === 'undefined' ) {\n return obj;\n }\n\n if ( keys.length === 0 ) {\n delete obj[key];\n return obj;\n }\n\n return this.unset(obj[key], keys);\n }\n\n static 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 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, 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 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":""}
|