{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/jquery.checkify.js","webpack:///../node_modules/path-browserify/index.js","webpack:///../node_modules/process/browser.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","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","_path","$","window","document","undefined","pluginName","_rules","split","_number","_email","_class2","el","config","_this","this","_classCallCheck","_methods","required","$el","is","val","attr","normalize","length","message","inactiveForRequired","appendMessage","minlen","len","normalized","hasClass","replace","maxlen","number","test","email","toLowerCase","regex","regexp","RegExp","console","log","func","funcName","eval","between","min","max","extend","fn","defaults","$container","container","init","_createClass","addClass","wireEvents","_this2","on","e","parseAllElements","find","preventDefault","onError","currentTarget","onValid","not","$this","removeClass","realTime","check","trigger","code","charCode","which","_this3","each","charCodeZero","charCodeAt","temp","w","_css","inactive","rect","getBoundingClientRect","class","position","text","css","top","height","_defineProperty","hGap","vGap","insertAfter","$next","next","data","remove","regexRule","match","funcRule","betweenRule","rules","filter","Boolean","push","methods","x","indexOf","requiredPos","splice","unshift","method","options","maxChecked","minChecked","notEqual","different","jQuery","process","normalizeArray","parts","allowAboveRoot","up","last","splitPathRe","splitPath","filename","exec","slice","xs","f","res","resolve","resolvedPath","resolvedAbsolute","arguments","path","cwd","TypeError","charAt","join","isAbsolute","trailingSlash","substr","paths","Array","index","relative","from","to","trim","arr","start","end","fromParts","toParts","Math","samePartsLength","outputParts","concat","sep","delimiter","dirname","result","root","dir","basename","ext","extname","str","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","Error","defaultClearTimeout","runTimeout","fun","setTimeout","clearTimeout","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","timeout","run","marker","runClearTimeout","Item","array","noop","nextTick","args","apply","title","browser","env","argv","version","versions","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","binding","chdir","umask"],"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GAsN,EAAA5E,KAAA,IAAAqF,EAAAb,EAAAiB,IACA,IAAAb,EAAA/J,QAAAgK,GACAN,EAAAS,IASAK,EAAAnM,UAAAgM,IAAA,WACA9K,KAAAoK,IAAAkB,MAAA,KAAAtL,KAAAkL,QAEAxE,EAAA6E,MAAA,UACA7E,EAAA8E,SAAA,EACA9E,EAAA+E,IAAA,GACA/E,EAAAgF,KAAA,GACAhF,EAAAiF,QAAA,GACAjF,EAAAkF,SAAA,GAIAlF,EAAA9D,GAAAuI,EACAzE,EAAAmF,YAAAV,EACAzE,EAAAoF,KAAAX,EACAzE,EAAAqF,IAAAZ,EACAzE,EAAAsF,eAAAb,EACAzE,EAAAuF,mBAAAd,EACAzE,EAAAwF,KAAAf,EACAzE,EAAAyF,gBAAAhB,EACAzE,EAAA0F,oBAAAjB,EAEAzE,EAAA2F,UAAA,SAAA5O,GAAqC,UAErCiJ,EAAA4F,QAAA,SAAA7O,GACA,UAAAwM,MAAA,qCAGAvD,EAAAmB,IAAA,WAA2B,WAC3BnB,EAAA6F,MAAA,SAAA9C,GACA,UAAAQ,MAAA,mCAEAvD,EAAA8F,MAAA,WAA4B","file":"jquery.checkify.min.js","sourcesContent":[" \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 = 0);\n","import '../scss/jquery.checkify.scss';\r\nimport { normalize } from 'path';\r\n\r\n/*!\r\n * Checkify - A light-weight, mobile-ready and customizable validation plugin for jQuery\r\n *\r\n * Copyright 2018, Mehdi Dehghani\r\n *\r\n * @author Mehdi Dehghani (http://www.github.com/dehghani-mehdi)\r\n * @license Licensed under MIT (https://github.com/dehghani-mehdi/checkify/blob/master/LICENSE)\r\n *\r\n * Version: 0.0.8\r\n */\r\n;\r\n(function ($, window, document, undefined) {\r\n const pluginName = 'checkify',\r\n _rules = 'minlen|maxlen|required|number|email|regex|func|between'.split('|'),\r\n _number = /^[\\-\\+]?(\\d+|\\d+\\.?\\d+)$/,\r\n // taken from https://stackoverflow.com/q/46155/3367974\r\n _email = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,\r\n p = {};\r\n\r\n p[pluginName] = class {\r\n constructor(el, config) {\r\n this.el = el;\r\n this.$el = $(el);\r\n\r\n this.config = $.extend(true, {}, $.fn.defaults, config);\r\n\r\n this.$container = this.config.container ?\r\n typeof this.config.container === 'string' ?\r\n $(this.config.container) :\r\n this.config.container :\r\n $(el);\r\n\r\n this.init();\r\n }\r\n\r\n init() {\r\n this.$container.addClass('checkify');\r\n\r\n this.wireEvents();\r\n }\r\n\r\n /**\r\n * wire up events\r\n */\r\n wireEvents() {\r\n if (this.$container.is('form')) {\r\n this.$container.on('submit', (e) => {\r\n this.parseAllElements();\r\n\r\n if (this.$container.find('.checkify__has-error').length > 0) {\r\n e.preventDefault();\r\n\r\n if (typeof this.config.onError === 'function') this.config.onError.call(e.currentTarget, e);\r\n\r\n } else {\r\n if (typeof this.config.onValid === 'function') this.config.onValid.call(e.currentTarget, e);\r\n }\r\n });\r\n }\r\n\r\n this.$container.find('[data-checkify]').not('[type=checkbox]').on('change', (e) => {\r\n let $this = $(e.currentTarget);\r\n\r\n $this.removeClass('checkify__has-error');\r\n\r\n if (this.config.realTime) this.check($this);\r\n });\r\n\r\n if (this.config.trigger) {\r\n this.$container.find(this.config.trigger).on('click', (e) => {\r\n this.parseAllElements();\r\n\r\n if (this.$container.find('.checkify__has-error').length > 0) {\r\n e.preventDefault();\r\n if (typeof this.config.onError === 'function') this.config.onError.call(e.currentTarget, e);\r\n\r\n } else {\r\n if (typeof this.config.onValid === 'function') this.config.onValid.call(e.currentTarget, e);\r\n }\r\n });\r\n }\r\n\r\n this.$container.find('[data-checkify*=number]').on('keypress', (e) => {\r\n let $this = $(e.currentTarget);\r\n\r\n let code = e.charCode || e.which;\r\n\t\t\t\t\r\n\t\t\t\tconsole.log(code);\r\n\t\t\t\t\r\n if ((47 < code && code < 58) || (1632 < code && code < 1642) || (1775 < code && code < 1786) || code === 0 || code === 8) {}\r\n\t\t\t\telse e.preventDefault(); \r\n });\r\n };\r\n\r\n /**\r\n * parse all elements and then parse its data checkify\r\n */\r\n parseAllElements() {\r\n this.$container.find('.checkify__has-error').removeClass('checkify__has-error');\r\n\r\n this.$container.find('[data-checkify]').each((i, el) => this.check($(el)));\r\n }\r\n\r\n /**\r\n * replaced multiple spaces with one and non-english numbers to english numbers\r\n * @param s\r\n */\r\n normalize(s) {\r\n let charCodeZero = '۰'.charCodeAt(0),\r\n temp = s.replace(/[۰-۹]/g, (w) => w.charCodeAt(0) - charCodeZero);\r\n\r\n charCodeZero = '٠'.charCodeAt(0);\r\n temp = temp.replace(/[٠-٩]/g, (w) => w.charCodeAt(0) - charCodeZero);\r\n\r\n return temp.replace(/ +/g, ' ');\r\n };\r\n\r\n /**\r\n * insert error message next to given element\r\n * @param $el\r\n * @param message\r\n */\r\n appendMessage($el, message) {\r\n if (this.config.message.inactive) return;\r\n\r\n let rect = $el[0].getBoundingClientRect();\r\n\r\n $('', {\r\n class: 'checkify__message checkify__message-' + this.config.message.position,\r\n text: message,\r\n css: {\r\n top: rect.height,\r\n ['margin-' + this.config.message.position]: this.config.message.hGap || 0,\r\n 'margin-top': this.config.message.vGap || 5\r\n }\r\n }).insertAfter($el);\r\n };\r\n\r\n /**\r\n * find and parse data-checkify of given element\r\n * @param $el\r\n */\r\n check($el) {\r\n let $next = $el.next(),\r\n data = $el.data('checkify');\r\n\r\n if ($next.hasClass('checkify__message')) $next.remove();\r\n\r\n if (typeof data !== 'undefined') {\r\n // find regex rule\r\n let regexRule = data.match(/regex=[^,]*/);\t\t\t\t\r\n // because match returns array and we need string\r\n regexRule = regexRule ? regexRule[0] : null;\r\n // remove regex from data-checkify\r\n if (regexRule) data = data.replace(regexRule, '');\t\t\t\t\r\n\r\n // find func rule\r\n let funcRule = data.match(/func=[^,]*/);\r\n // because match returns array and we need string\r\n funcRule = funcRule ? funcRule[0] : null;\r\n // remove func from data-checkify\r\n if (funcRule) data = data.replace(funcRule, '');\r\n\r\n // find between rule\r\n let betweenRule = data.match(/between=[^,]*/);\r\n // because match returns array and we need string\r\n betweenRule = betweenRule ? betweenRule[0] : null;\r\n // remove between from data-checkify\r\n if (betweenRule) data = data.replace(betweenRule, '');\r\n\r\n // remove empty entries\r\n let rules = data.split(',').filter(Boolean);\r\n\r\n // add regex to rules\r\n if (regexRule) rules.push(regexRule);\t\t\t\t\r\n\r\n // add func to rules\r\n if (funcRule) rules.push(funcRule);\r\n\r\n // add range to rules\r\n if (betweenRule) rules.push(betweenRule);\r\n\r\n let methods = rules.filter(x => _rules.indexOf(x.split('=')[0]) > -1),\r\n requiredPos = methods.indexOf('required');\r\n\r\n if (methods.length > 0) {\r\n // put required at first (if any)\r\n if (requiredPos > -1) {\r\n methods.splice(requiredPos, 1);\r\n methods.unshift('required');\r\n }\r\n\r\n for (let i = 0; i < methods.length; i++) {\r\n let split = methods[i].split('='),\r\n method = split[0];\r\n\r\n if (!eval(this._methods[method])($el, split[1])) {\r\n $el.addClass('checkify__has-error');\r\n }\r\n }\r\n }\r\n }\r\n };\r\n\r\n _methods = {\r\n 'required': ($el) => {\r\n if ($el.is('select')) {\r\n return +$el.val() > 0;\r\n } else if ($el.attr('type') === 'checkbox') {\r\n return $el.is(':checked');\r\n } else {\r\n let normalized = this.normalize($el.val());\r\n\r\n if (normalized.length < 1) {\r\n if (!this.config.message.inactiveForRequired) this.appendMessage($el, this.config.message.required);\r\n\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n },\r\n 'minlen': ($el, len) => {\r\n let normalized = this.normalize($el.val());\r\n\r\n if (normalized.length > 0 && normalized.length < len) {\r\n if (!$el.hasClass('checkify__has-error')) this.appendMessage($el, this.config.message.minlen.replace('{count}', len));\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n 'maxlen': ($el, len) => {\r\n let normalized = this.normalize($el.val());\r\n\r\n if (normalized.length > 0 && normalized.length > len) {\r\n if (!$el.hasClass('checkify__has-error')) this.appendMessage($el, this.config.message.maxlen.replace('{count}', len));\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n 'number': ($el) => {\r\n let normalized = this.normalize($el.val());\r\n\r\n if (normalized.length > 0 && !_number.test(normalized)) {\r\n if (!$el.hasClass('checkify__has-error')) this.appendMessage($el, this.config.message.number);\r\n\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n 'email': ($el) => {\r\n let normalized = this.normalize($el.val());\r\n\r\n if (normalized.length > 0 && !_email.test(normalized.toLowerCase())) {\r\n if (!$el.hasClass('checkify__has-error')) this.appendMessage($el, this.config.message.email);\r\n\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n 'regex': ($el, r) => {\r\n let normalized = this.normalize($el.val()),\r\n regexp = new RegExp(r);\r\n\t\t\t\tconsole.log(regexp);\t\t\t\t\t\r\n if (normalized.length > 0 && !regexp.test(normalized.toLowerCase())) {\r\n if (!$el.hasClass('checkify__has-error')) this.appendMessage($el, this.config.message.regex);\r\n\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n 'func': ($el, funcName) => {\r\n let r = eval(window[funcName]($el));\r\n\r\n if (r) return true;\r\n\r\n if (!$el.hasClass('checkify__has-error')) this.appendMessage($el, this.config.message.func);\r\n\r\n return false;\r\n },\r\n 'between': ($el, between) => {\r\n let normalized = this.normalize($el.val()),\r\n number = +normalized,\r\n split = between.split('-'),\r\n min = +split[0],\r\n max = +split[1];\r\n\r\n if (normalized.length > 0 && (number < min || number > max)) {\r\n if (!$el.hasClass('checkify__has-error')) this.appendMessage($el, this.config.message.between);\r\n\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n };\r\n }\r\n\r\n $.fn[pluginName] = function (options) {\r\n return this.each(function () {\r\n if (!$.data(this, 'plugin_' + pluginName)) {\r\n $.data(this, 'plugin_' + pluginName, new p[pluginName](this, options));\r\n }\r\n });\r\n };\r\n\r\n $.fn.defaults = {\r\n message: {\r\n inactive: false,\r\n\t\t\t// if true. error message won't be shown for required cases\r\n inactiveForRequired: true,\r\n\t\t\t// horizontal gap for error message box\r\n hGap: null,\r\n\t\t\t// vertical gap for error message box\r\n vGap: null,\r\n\t\t\t// can be right or left\r\n position: 'left',\r\n required: 'This field is required.',\r\n email: 'Please enter a valid email address.',\r\n regex: 'Invalid data.',\r\n func: 'Invalid data',\r\n between: 'Invalid data',\r\n number: 'Please enter a valid number.',\r\n maxlen: 'Please enter no more than {count} characters.',\r\n minlen: 'Please enter at least {count} characters.',\r\n maxChecked: 'Maximum {count} options allowed.',\r\n minChecked: 'Please select at least {count} options.',\r\n notEqual: 'Please enter the same value again.',\r\n different: 'Fields cannot be the same as each other'\r\n },\r\n realTime: false,\r\n container: null,\r\n trigger: null,\r\n onValid: null,\r\n onError: null\r\n };\r\n})(jQuery, window, document);","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// Split a filename into [root, dir, basename, ext], unix version\n// 'root' is just a slash, or nothing.\nvar splitPathRe =\n /^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/;\nvar splitPath = function(filename) {\n return splitPathRe.exec(filename).slice(1);\n};\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function(path) {\n var result = splitPath(path),\n root = result[0],\n dir = result[1];\n\n if (!root && !dir) {\n // No dirname whatsoever\n return '.';\n }\n\n if (dir) {\n // It has a dirname, strip trailing slash\n dir = dir.substr(0, dir.length - 1);\n }\n\n return root + dir;\n};\n\n\nexports.basename = function(path, ext) {\n var f = splitPath(path)[2];\n // TODO: make this comparison case-insensitive on windows?\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\n\nexports.extname = function(path) {\n return splitPath(path)[3];\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n"],"sourceRoot":""}