diff --git a/dist/axios.amd.js b/dist/axios.amd.js index 54fa34f..0f93dd8 100644 --- a/dist/axios.amd.js +++ b/dist/axios.amd.js @@ -98,11 +98,14 @@ define("axios", [], function() { return /******/ (function(modules) { // webpack }; // Resolve or reject the Promise based on the status - if (request.status >= 200 && request.status < 300) { - resolve(response); - } else { - reject(response); - } + (request.status >= 200 && request.status < 300 + ? resolve + : reject)( + response.data, + response.status, + response.headers, + response.config + ); // Clean up request request = null; diff --git a/dist/axios.amd.map b/dist/axios.amd.map index b2c8822..ae9d198 100644 --- a/dist/axios.amd.map +++ b/dist/axios.amd.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap 577c1b0e1bec84b46e40","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///./lib/buildUrl.js","webpack:///./lib/cookies.js","webpack:///./lib/defaults.js","webpack:///./lib/parseHeaders.js","webpack:///./lib/transformData.js","webpack:///./lib/urlIsSameOrigin.js","webpack:///./lib/utils.js","webpack:///./~/es6-promise/dist/commonjs/main.js","webpack:///./~/es6-promise/dist/commonjs/promise/promise.js","webpack:///./~/es6-promise/dist/commonjs/promise/polyfill.js","webpack:///./~/es6-promise/dist/commonjs/promise/config.js","webpack:///./~/es6-promise/dist/commonjs/promise/utils.js","webpack:///./~/es6-promise/dist/commonjs/promise/all.js","webpack:///./~/es6-promise/dist/commonjs/promise/race.js","webpack:///./~/es6-promise/dist/commonjs/promise/resolve.js","webpack:///./~/es6-promise/dist/commonjs/promise/reject.js","webpack:///./~/es6-promise/dist/commonjs/promise/asap.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,wC;;;;;;;ACtCA,yC;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH,E;;;;;;ACxJA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;;AAEA;AACA,G;;;;;;AC5CA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qCAAoC;AACpC,IAAG;;AAEH;AACA,uDAAsD,wBAAwB;AAC9E;AACA,IAAG;;AAEH;AACA;AACA;AACA,G;;;;;;ACpCA;;AAEA;;AAEA,6BAA4B,IAAI;AAChC,oBAAmB;AACnB,iCAAgC;AAChC;AACA,qCAAoC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,G;;;;;;ACxCA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA,kBAAiB;;AAEjB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA,G;;;;;;ACjCA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,cAAc;AACzB,YAAW,MAAM;AACjB,YAAW,eAAe;AAC1B,cAAa,EAAE;AACf;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA,G;;;;;;AClBA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACjDA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,aAAa;AACxB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAA+B,KAAK;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,SAAS,GAAG,SAAS;AAC5C,4BAA2B;AAC3B;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACpKA;AACA;AACA;AACA;AACA,6B;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,qBAAoB;;AAEpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAiB,wBAAwB;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,yDAAwD;;AAExD;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,0BAAyB,aAAa;AACtC;;AAEA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT,0BAAyB,aAAa;AACtC;;AAEA;AACA,UAAS;;AAET;AACA;AACA;AACA,IAAG;AACH,oBAAmB,aAAa;AAChC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA,oCAAmC,QAAQ;AAC3C;AACA;;AAEA;AACA;;AAEA;AACA,oCAAmC,QAAQ;AAC3C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,2B;;;;;;AClNA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,aAAa,EAAE;AACpD;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA,6B;;;;;;;ACrCA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA,+B;;;;;;ACdA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mCAAkC,6BAA6B;;;AAG/D;AACA;AACA;AACA,mB;;;;;;ACrBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;;AAEA;AACA;AACA,WAAU,MAAM;AAChB,WAAU,OAAO;AACjB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,IAAG;AACH;;AAEA,mB;;;;;;AC5FA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA,WAAU,MAAM;AAChB,WAAU,OAAO;AACjB;AACA,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,IAAG;AACH;;AAEA,qB;;;;;;ACxFA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAG;AACH;;AAEA,2B;;;;;;ACdA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;;AAEA;AACA;AACA,WAAU,IAAI;AACd,WAAU,OAAO;AACjB;AACA,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;;AAEA,yB;;;;;;AC9CA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2BAA0B,sBAAsB;;AAEhD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,yCAAwC;AACxC;AACA,EAAC;AACD;AACA,EAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qB;;;;;;;AC5DA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA6B;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4BAA2B;AAC3B;AACA;AACA","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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 577c1b0e1bec84b46e40\n **/","module.exports = require('./lib/axios');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./index.js\n ** module id = 0\n ** module chunks = 0\n **/","var Promise = require('es6-promise').Promise;\nvar buildUrl = require('./buildUrl');\nvar cookies = require('./cookies');\nvar defaults = require('./defaults');\nvar parseHeaders = require('./parseHeaders');\nvar transformData = require('./transformData');\nvar urlIsSameOrigin = require('./urlIsSameOrigin');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n transformRequest: defaults.transformRequest,\n transformResponse: defaults.transformResponse\n }, config);\n\n // Don't allow overriding defaults.withCredentials\n config.withCredentials = config.withCredentials || defaults.withCredentials;\n\n var promise = new Promise(function (resolve, reject) {\n // Create the request\n var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');\n var data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Open the request\n request.open(config.method, buildUrl(config.url, config.params), true);\n\n // Listen for ready state\n request.onreadystatechange = function () {\n if (request && request.readyState === 4) {\n // Prepare the response\n var headers = parseHeaders(request.getAllResponseHeaders());\n var response = {\n data: transformData(\n request.responseText,\n headers,\n config.transformResponse\n ),\n status: request.status,\n headers: headers,\n config: config\n };\n\n // Resolve or reject the Promise based on the status\n if (request.status >= 200 && request.status < 300) {\n resolve(response);\n } else {\n reject(response);\n }\n\n // Clean up request\n request = null;\n }\n };\n\n // Merge headers and add to request\n var headers = utils.merge(\n defaults.headers.common,\n defaults.headers[config.method] || {},\n config.headers || {}\n );\n\n // Add xsrf header\n var xsrfValue = urlIsSameOrigin(config.url)\n ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName)\n : undefined;\n if (xsrfValue) {\n headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;\n }\n\n utils.forEach(headers, function (val, key) {\n // Remove Content-Type if data is undefined\n if (!data && key.toLowerCase() === 'content-type') {\n delete headers[key];\n }\n // Otherwise add header to the request\n else {\n request.setRequestHeader(key, val);\n }\n });\n\n // Add withCredentials to request if needed\n if (config.withCredentials) {\n request.withCredentials = true;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n if (request.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Send the request\n request.send(data);\n });\n\n // Provide alias for success\n promise.success = function success(fn) {\n promise.then(function(response) {\n fn(response);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n promise.then(null, function(response) {\n fn(response);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Provide aliases for supported request methods\ncreateShortMethods('delete', 'get', 'head');\ncreateShortMethodsWithData('post', 'put', 'patch');\n\nfunction createShortMethods() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n });\n}\n\nfunction createShortMethodsWithData() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, data, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n });\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/axios.js\n ** module id = 1\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+');\n}\n\nmodule.exports = function buildUrl(url, params) {\n if (!params) {\n return url;\n }\n\n var parts = [];\n\n utils.forEach(params, function (val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n if (!utils.isArray(val)) {\n val = [val];\n }\n\n utils.forEach(val, function (v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n }\n else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n if (parts.length > 0) {\n url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&');\n }\n\n return url;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/buildUrl.js\n ** module id = 2\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nmodule.exports = {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/cookies.js\n ** module id = 3\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\nvar JSON_END = /[\\}\\]]\\s*$/;\nvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\nvar CONTENT_TYPE_APPLICATION_JSON = {\n 'Content-Type': 'application/json;charset=utf-8'\n};\n\nmodule.exports = {\n transformRequest: [function (data) {\n return utils.isObject(data) &&\n !utils.isFile(data) &&\n !utils.isBlob(data) ?\n JSON.stringify(data) : null;\n }],\n\n transformResponse: [function (data) {\n if (typeof data === 'string') {\n data = data.replace(PROTECTION_PREFIX, '');\n if (JSON_START.test(data) && JSON_END.test(data)) {\n data = JSON.parse(data);\n }\n }\n return data;\n }],\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n },\n patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n post: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n put: utils.merge(CONTENT_TYPE_APPLICATION_JSON)\n },\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN'\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/defaults.js\n ** module id = 4\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {}, key, val, i;\n\n if (!headers) return parsed;\n\n utils.forEach(headers.split('\\n'), function(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/parseHeaders.js\n ** module id = 5\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n utils.forEach(fns, function (fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/transformData.js\n ** module id = 6\n ** module chunks = 0\n **/","'use strict';\n\nvar msie = /(msie|trident)/i.test(navigator.userAgent);\nvar utils = require('./utils');\nvar urlParsingNode = document.createElement('a');\nvar originUrl = urlResolve(window.location.href);\n\n/**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\nfunction urlResolve(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/')\n ? urlParsingNode.pathname\n : '/' + urlParsingNode.pathname\n };\n}\n\n/**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestUrl The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\nmodule.exports = function urlIsSameOrigin(requestUrl) {\n var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n return (parsed.protocol === originUrl.protocol &&\n parsed.host === originUrl.host);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/urlIsSameOrigin.js\n ** module id = 7\n ** module chunks = 0\n **/","// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array or arguments callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Check if obj is array-like\n var isArray = obj.constructor === Array || typeof obj.callee === 'function';\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object' && !isArray) {\n obj = [obj];\n }\n\n // Iterate over array values\n if (isArray) {\n for (var i=0, l=obj.length; i 0) {\n var fn = queue.shift();\n fn();\n }\n }\n }, true);\n\n return function nextTick(fn) {\n queue.push(fn);\n window.postMessage('process-tick', '*');\n };\n }\n\n return function nextTick(fn) {\n setTimeout(fn, 0);\n };\n})();\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\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;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n}\n\n// TODO(shtylman)\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/process/browser.js\n ** module id = 19\n ** module chunks = 0\n **/"],"sourceRoot":"","file":"axios.amd.js"} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap d14887d1a8e2658f1420","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///./lib/buildUrl.js","webpack:///./lib/cookies.js","webpack:///./lib/defaults.js","webpack:///./lib/parseHeaders.js","webpack:///./lib/transformData.js","webpack:///./lib/urlIsSameOrigin.js","webpack:///./lib/utils.js","webpack:///./~/es6-promise/dist/commonjs/main.js","webpack:///./~/es6-promise/dist/commonjs/promise/promise.js","webpack:///./~/es6-promise/dist/commonjs/promise/polyfill.js","webpack:///./~/es6-promise/dist/commonjs/promise/config.js","webpack:///./~/es6-promise/dist/commonjs/promise/utils.js","webpack:///./~/es6-promise/dist/commonjs/promise/all.js","webpack:///./~/es6-promise/dist/commonjs/promise/race.js","webpack:///./~/es6-promise/dist/commonjs/promise/resolve.js","webpack:///./~/es6-promise/dist/commonjs/promise/reject.js","webpack:///./~/es6-promise/dist/commonjs/promise/asap.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,wC;;;;;;;ACtCA,yC;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH,E;;;;;;AC3JA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;;AAEA;AACA,G;;;;;;AC5CA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qCAAoC;AACpC,IAAG;;AAEH;AACA,uDAAsD,wBAAwB;AAC9E;AACA,IAAG;;AAEH;AACA;AACA;AACA,G;;;;;;ACpCA;;AAEA;;AAEA,6BAA4B,IAAI;AAChC,oBAAmB;AACnB,iCAAgC;AAChC;AACA,qCAAoC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,G;;;;;;ACxCA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA,kBAAiB;;AAEjB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA,G;;;;;;ACjCA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,cAAc;AACzB,YAAW,MAAM;AACjB,YAAW,eAAe;AAC1B,cAAa,EAAE;AACf;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA,G;;;;;;AClBA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACjDA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,aAAa;AACxB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAA+B,KAAK;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,SAAS,GAAG,SAAS;AAC5C,4BAA2B;AAC3B;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACpKA;AACA;AACA;AACA;AACA,6B;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,qBAAoB;;AAEpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAiB,wBAAwB;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,yDAAwD;;AAExD;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,0BAAyB,aAAa;AACtC;;AAEA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT,0BAAyB,aAAa;AACtC;;AAEA;AACA,UAAS;;AAET;AACA;AACA;AACA,IAAG;AACH,oBAAmB,aAAa;AAChC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA,oCAAmC,QAAQ;AAC3C;AACA;;AAEA;AACA;;AAEA;AACA,oCAAmC,QAAQ;AAC3C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,2B;;;;;;AClNA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,aAAa,EAAE;AACpD;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA,6B;;;;;;;ACrCA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA,+B;;;;;;ACdA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mCAAkC,6BAA6B;;;AAG/D;AACA;AACA;AACA,mB;;;;;;ACrBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;;AAEA;AACA;AACA,WAAU,MAAM;AAChB,WAAU,OAAO;AACjB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,IAAG;AACH;;AAEA,mB;;;;;;AC5FA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA,WAAU,MAAM;AAChB,WAAU,OAAO;AACjB;AACA,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,IAAG;AACH;;AAEA,qB;;;;;;ACxFA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAG;AACH;;AAEA,2B;;;;;;ACdA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;;AAEA;AACA;AACA,WAAU,IAAI;AACd,WAAU,OAAO;AACjB;AACA,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;;AAEA,yB;;;;;;AC9CA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2BAA0B,sBAAsB;;AAEhD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,yCAAwC;AACxC;AACA,EAAC;AACD;AACA,EAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qB;;;;;;;AC5DA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA6B;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4BAA2B;AAC3B;AACA;AACA","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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap d14887d1a8e2658f1420\n **/","module.exports = require('./lib/axios');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./index.js\n ** module id = 0\n ** module chunks = 0\n **/","var Promise = require('es6-promise').Promise;\nvar buildUrl = require('./buildUrl');\nvar cookies = require('./cookies');\nvar defaults = require('./defaults');\nvar parseHeaders = require('./parseHeaders');\nvar transformData = require('./transformData');\nvar urlIsSameOrigin = require('./urlIsSameOrigin');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n transformRequest: defaults.transformRequest,\n transformResponse: defaults.transformResponse\n }, config);\n\n // Don't allow overriding defaults.withCredentials\n config.withCredentials = config.withCredentials || defaults.withCredentials;\n\n var promise = new Promise(function (resolve, reject) {\n // Create the request\n var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');\n var data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Open the request\n request.open(config.method, buildUrl(config.url, config.params), true);\n\n // Listen for ready state\n request.onreadystatechange = function () {\n if (request && request.readyState === 4) {\n // Prepare the response\n var headers = parseHeaders(request.getAllResponseHeaders());\n var response = {\n data: transformData(\n request.responseText,\n headers,\n config.transformResponse\n ),\n status: request.status,\n headers: headers,\n config: config\n };\n\n // Resolve or reject the Promise based on the status\n (request.status >= 200 && request.status < 300\n ? resolve\n : reject)(\n response.data,\n response.status,\n response.headers,\n response.config\n );\n\n // Clean up request\n request = null;\n }\n };\n\n // Merge headers and add to request\n var headers = utils.merge(\n defaults.headers.common,\n defaults.headers[config.method] || {},\n config.headers || {}\n );\n\n // Add xsrf header\n var xsrfValue = urlIsSameOrigin(config.url)\n ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName)\n : undefined;\n if (xsrfValue) {\n headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;\n }\n\n utils.forEach(headers, function (val, key) {\n // Remove Content-Type if data is undefined\n if (!data && key.toLowerCase() === 'content-type') {\n delete headers[key];\n }\n // Otherwise add header to the request\n else {\n request.setRequestHeader(key, val);\n }\n });\n\n // Add withCredentials to request if needed\n if (config.withCredentials) {\n request.withCredentials = true;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n if (request.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Send the request\n request.send(data);\n });\n\n // Provide alias for success\n promise.success = function success(fn) {\n promise.then(function(response) {\n fn(response);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n promise.then(null, function(response) {\n fn(response);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Provide aliases for supported request methods\ncreateShortMethods('delete', 'get', 'head');\ncreateShortMethodsWithData('post', 'put', 'patch');\n\nfunction createShortMethods() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n });\n}\n\nfunction createShortMethodsWithData() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, data, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n });\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/axios.js\n ** module id = 1\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+');\n}\n\nmodule.exports = function buildUrl(url, params) {\n if (!params) {\n return url;\n }\n\n var parts = [];\n\n utils.forEach(params, function (val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n if (!utils.isArray(val)) {\n val = [val];\n }\n\n utils.forEach(val, function (v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n }\n else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n if (parts.length > 0) {\n url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&');\n }\n\n return url;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/buildUrl.js\n ** module id = 2\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nmodule.exports = {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/cookies.js\n ** module id = 3\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\nvar JSON_END = /[\\}\\]]\\s*$/;\nvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\nvar CONTENT_TYPE_APPLICATION_JSON = {\n 'Content-Type': 'application/json;charset=utf-8'\n};\n\nmodule.exports = {\n transformRequest: [function (data) {\n return utils.isObject(data) &&\n !utils.isFile(data) &&\n !utils.isBlob(data) ?\n JSON.stringify(data) : null;\n }],\n\n transformResponse: [function (data) {\n if (typeof data === 'string') {\n data = data.replace(PROTECTION_PREFIX, '');\n if (JSON_START.test(data) && JSON_END.test(data)) {\n data = JSON.parse(data);\n }\n }\n return data;\n }],\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n },\n patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n post: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n put: utils.merge(CONTENT_TYPE_APPLICATION_JSON)\n },\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN'\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/defaults.js\n ** module id = 4\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {}, key, val, i;\n\n if (!headers) return parsed;\n\n utils.forEach(headers.split('\\n'), function(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/parseHeaders.js\n ** module id = 5\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n utils.forEach(fns, function (fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/transformData.js\n ** module id = 6\n ** module chunks = 0\n **/","'use strict';\n\nvar msie = /(msie|trident)/i.test(navigator.userAgent);\nvar utils = require('./utils');\nvar urlParsingNode = document.createElement('a');\nvar originUrl = urlResolve(window.location.href);\n\n/**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\nfunction urlResolve(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/')\n ? urlParsingNode.pathname\n : '/' + urlParsingNode.pathname\n };\n}\n\n/**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestUrl The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\nmodule.exports = function urlIsSameOrigin(requestUrl) {\n var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n return (parsed.protocol === originUrl.protocol &&\n parsed.host === originUrl.host);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/urlIsSameOrigin.js\n ** module id = 7\n ** module chunks = 0\n **/","// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array or arguments callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Check if obj is array-like\n var isArray = obj.constructor === Array || typeof obj.callee === 'function';\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object' && !isArray) {\n obj = [obj];\n }\n\n // Iterate over array values\n if (isArray) {\n for (var i=0, l=obj.length; i 0) {\n var fn = queue.shift();\n fn();\n }\n }\n }, true);\n\n return function nextTick(fn) {\n queue.push(fn);\n window.postMessage('process-tick', '*');\n };\n }\n\n return function nextTick(fn) {\n setTimeout(fn, 0);\n };\n})();\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\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;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n}\n\n// TODO(shtylman)\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/process/browser.js\n ** module id = 19\n ** module chunks = 0\n **/"],"sourceRoot":"","file":"axios.amd.js"} \ No newline at end of file diff --git a/dist/axios.amd.min.js b/dist/axios.amd.min.js index 0ff2a12..05b4f1d 100644 --- a/dist/axios.amd.min.js +++ b/dist/axios.amd.min.js @@ -1,3 +1,3 @@ /* axios v0.0.0 | (c) 2014 by Matt Zabriskie */ -define("axios",[],function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){function r(){p.forEach(arguments,function(t){h[t]=function(e,n){return h(p.merge(n||{},{method:t,url:e}))}})}function o(){p.forEach(arguments,function(t){h[t]=function(e,n,r){return h(p.merge(r||{},{method:t,url:e,data:n}))}})}var i=n(9).Promise,s=n(2),c=n(3),u=n(4),a=n(5),f=n(6),l=n(7),p=n(8),h=t.exports=function(t){t=p.merge({method:"get",transformRequest:u.transformRequest,transformResponse:u.transformResponse},t),t.withCredentials=t.withCredentials||u.withCredentials;var e=new i(function(e,n){var r=new(XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP"),o=f(t.data,t.headers,t.transformRequest);r.open(t.method,s(t.url,t.params),!0),r.onreadystatechange=function(){if(r&&4===r.readyState){var o=a(r.getAllResponseHeaders()),i={data:f(r.responseText,o,t.transformResponse),status:r.status,headers:o,config:t};r.status>=200&&r.status<300?e(i):n(i),r=null}};var i=p.merge(u.headers.common,u.headers[t.method]||{},t.headers||{}),h=l(t.url)?c.read(t.xsrfCookieName||u.xsrfCookieName):void 0;if(h&&(i[t.xsrfHeaderName||u.xsrfHeaderName]=h),p.forEach(i,function(t,e){o||"content-type"!==e.toLowerCase()?r.setRequestHeader(e,t):delete i[e]}),t.withCredentials&&(r.withCredentials=!0),t.responseType)try{r.responseType=t.responseType}catch(d){if("json"!==r.responseType)throw d}r.send(o)});return e.success=function(t){return e.then(function(e){t(e)}),e},e.error=function(t){return e.then(null,function(e){t(e)}),e},e};h.defaults=u,r("delete","get","head"),o("post","put","patch")},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}var o=n(8);t.exports=function(t,e){if(!e)return t;var n=[];return o.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(o.isArray(t)||(t=[t]),o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),n.push(r(e)+"="+r(t))}))}),n.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+n.join("&")),t}},function(t,e,n){"use strict";var r=n(8);t.exports={write:function(t,e,n,o,i,s){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}},function(t,e,n){"use strict";var r=n(8),o=/^\s*(\[|\{[^\{])/,i=/[\}\]]\s*$/,s=/^\)\]\}',?\n/,c={"Content-Type":"application/json;charset=utf-8"};t.exports={transformRequest:[function(t){return!r.isObject(t)||r.isFile(t)||r.isBlob(t)?null:JSON.stringify(t)}],transformResponse:[function(t){return"string"==typeof t&&(t=t.replace(s,""),o.test(t)&&i.test(t)&&(t=JSON.parse(t))),t}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(c),post:r.merge(c),put:r.merge(c)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t){var e,n,o,i={};return t?(r.forEach(t.split("\n"),function(t){o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e&&(i[e]=i[e]?i[e]+", "+n:n)}),i):i}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";function r(t){var e=t;return o&&(s.setAttribute("href",e),e=s.href),s.setAttribute("href",e),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}var o=/(msie|trident)/i.test(navigator.userAgent),i=n(8),s=document.createElement("a"),c=r(window.location.href);t.exports=function(t){var e=i.isString(t)?r(t):t;return e.protocol===c.protocol&&e.host===c.host}},function(t){function e(t){return"[object Array]"===l.call(t)}function n(t){return"string"==typeof t}function r(t){return"number"==typeof t}function o(t){return null!==t&&"object"==typeof t}function i(t){return"[object Date]"===l.call(t)}function s(t){return"[object File]"===l.call(t)}function c(t){return"[object Blob]"===l.call(t)}function u(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function a(t,e){if(null!==t&&"undefined"!=typeof t){var n=t.constructor===Array||"function"==typeof t.callee;if("object"==typeof t||n||(t=[t]),n)for(var r=0,o=t.length;o>r;r++)e.call(null,t[r],r,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(null,t[i],i,t)}}function f(){var t={};return a(arguments,function(e){a(e,function(e,n){t[n]=e})}),t}var l=Object.prototype.toString;t.exports={isArray:e,isString:n,isNumber:r,isObject:o,isDate:i,isFile:s,isBlob:c,forEach:a,merge:f,trim:u}},function(t,e,n){"use strict";var r=n(10).Promise,o=n(11).polyfill;e.Promise=r,e.polyfill=o},function(t,e,n){"use strict";function r(t){if(!v(t))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof r))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._subscribers=[],o(t,this)}function o(t,e){function n(t){a(e,t)}function r(t){l(e,t)}try{t(n,r)}catch(o){r(o)}}function i(t,e,n,r){var o,i,s,c,f=v(n);if(f)try{o=n(r),s=!0}catch(p){c=!0,i=p}else o=r,s=!0;u(e,o)||(f&&s?a(e,o):c?l(e,i):t===E?a(e,o):t===_&&l(e,o))}function s(t,e,n,r){var o=t._subscribers,i=o.length;o[i]=e,o[i+E]=n,o[i+_]=r}function c(t,e){for(var n,r,o=t._subscribers,s=t._detail,c=0;c0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=e,n.addListener=e,n.once=e,n.off=e,n.removeListener=e,n.removeAllListeners=e,n.emit=e,n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}}])}); +define("axios",[],function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){function r(){p.forEach(arguments,function(t){h[t]=function(e,n){return h(p.merge(n||{},{method:t,url:e}))}})}function o(){p.forEach(arguments,function(t){h[t]=function(e,n,r){return h(p.merge(r||{},{method:t,url:e,data:n}))}})}var i=n(9).Promise,s=n(2),c=n(3),u=n(4),a=n(5),f=n(6),l=n(7),p=n(8),h=t.exports=function(t){t=p.merge({method:"get",transformRequest:u.transformRequest,transformResponse:u.transformResponse},t),t.withCredentials=t.withCredentials||u.withCredentials;var e=new i(function(e,n){var r=new(XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP"),o=f(t.data,t.headers,t.transformRequest);r.open(t.method,s(t.url,t.params),!0),r.onreadystatechange=function(){if(r&&4===r.readyState){var o=a(r.getAllResponseHeaders()),i={data:f(r.responseText,o,t.transformResponse),status:r.status,headers:o,config:t};(r.status>=200&&r.status<300?e:n)(i.data,i.status,i.headers,i.config),r=null}};var i=p.merge(u.headers.common,u.headers[t.method]||{},t.headers||{}),h=l(t.url)?c.read(t.xsrfCookieName||u.xsrfCookieName):void 0;if(h&&(i[t.xsrfHeaderName||u.xsrfHeaderName]=h),p.forEach(i,function(t,e){o||"content-type"!==e.toLowerCase()?r.setRequestHeader(e,t):delete i[e]}),t.withCredentials&&(r.withCredentials=!0),t.responseType)try{r.responseType=t.responseType}catch(d){if("json"!==r.responseType)throw d}r.send(o)});return e.success=function(t){return e.then(function(e){t(e)}),e},e.error=function(t){return e.then(null,function(e){t(e)}),e},e};h.defaults=u,r("delete","get","head"),o("post","put","patch")},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}var o=n(8);t.exports=function(t,e){if(!e)return t;var n=[];return o.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(o.isArray(t)||(t=[t]),o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),n.push(r(e)+"="+r(t))}))}),n.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+n.join("&")),t}},function(t,e,n){"use strict";var r=n(8);t.exports={write:function(t,e,n,o,i,s){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}},function(t,e,n){"use strict";var r=n(8),o=/^\s*(\[|\{[^\{])/,i=/[\}\]]\s*$/,s=/^\)\]\}',?\n/,c={"Content-Type":"application/json;charset=utf-8"};t.exports={transformRequest:[function(t){return!r.isObject(t)||r.isFile(t)||r.isBlob(t)?null:JSON.stringify(t)}],transformResponse:[function(t){return"string"==typeof t&&(t=t.replace(s,""),o.test(t)&&i.test(t)&&(t=JSON.parse(t))),t}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(c),post:r.merge(c),put:r.merge(c)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t){var e,n,o,i={};return t?(r.forEach(t.split("\n"),function(t){o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e&&(i[e]=i[e]?i[e]+", "+n:n)}),i):i}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";function r(t){var e=t;return o&&(s.setAttribute("href",e),e=s.href),s.setAttribute("href",e),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}var o=/(msie|trident)/i.test(navigator.userAgent),i=n(8),s=document.createElement("a"),c=r(window.location.href);t.exports=function(t){var e=i.isString(t)?r(t):t;return e.protocol===c.protocol&&e.host===c.host}},function(t){function e(t){return"[object Array]"===l.call(t)}function n(t){return"string"==typeof t}function r(t){return"number"==typeof t}function o(t){return null!==t&&"object"==typeof t}function i(t){return"[object Date]"===l.call(t)}function s(t){return"[object File]"===l.call(t)}function c(t){return"[object Blob]"===l.call(t)}function u(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function a(t,e){if(null!==t&&"undefined"!=typeof t){var n=t.constructor===Array||"function"==typeof t.callee;if("object"==typeof t||n||(t=[t]),n)for(var r=0,o=t.length;o>r;r++)e.call(null,t[r],r,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(null,t[i],i,t)}}function f(){var t={};return a(arguments,function(e){a(e,function(e,n){t[n]=e})}),t}var l=Object.prototype.toString;t.exports={isArray:e,isString:n,isNumber:r,isObject:o,isDate:i,isFile:s,isBlob:c,forEach:a,merge:f,trim:u}},function(t,e,n){"use strict";var r=n(10).Promise,o=n(11).polyfill;e.Promise=r,e.polyfill=o},function(t,e,n){"use strict";function r(t){if(!v(t))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof r))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._subscribers=[],o(t,this)}function o(t,e){function n(t){a(e,t)}function r(t){l(e,t)}try{t(n,r)}catch(o){r(o)}}function i(t,e,n,r){var o,i,s,c,f=v(n);if(f)try{o=n(r),s=!0}catch(p){c=!0,i=p}else o=r,s=!0;u(e,o)||(f&&s?a(e,o):c?l(e,i):t===E?a(e,o):t===_&&l(e,o))}function s(t,e,n,r){var o=t._subscribers,i=o.length;o[i]=e,o[i+E]=n,o[i+_]=r}function c(t,e){for(var n,r,o=t._subscribers,s=t._detail,c=0;c0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=e,n.addListener=e,n.once=e,n.off=e,n.removeListener=e,n.removeAllListeners=e,n.emit=e,n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}}])}); //# sourceMappingURL=axios.amd.min.map \ No newline at end of file diff --git a/dist/axios.amd.min.map b/dist/axios.amd.min.map index 2a8f584..bf3e432 100644 --- a/dist/axios.amd.min.map +++ b/dist/axios.amd.min.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///axios.amd.min.js","webpack:///webpack/bootstrap 6bb677e0c424d2fb1748","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///./lib/buildUrl.js","webpack:///./lib/cookies.js","webpack:///./lib/defaults.js","webpack:///./lib/parseHeaders.js","webpack:///./lib/transformData.js","webpack:///./lib/urlIsSameOrigin.js","webpack:///./lib/utils.js","webpack:///./~/es6-promise/dist/commonjs/main.js","webpack:///./~/es6-promise/dist/commonjs/promise/promise.js","webpack:///./~/es6-promise/dist/commonjs/promise/polyfill.js","webpack:///./~/es6-promise/dist/commonjs/promise/config.js","webpack:///./~/es6-promise/dist/commonjs/promise/utils.js","webpack:///./~/es6-promise/dist/commonjs/promise/all.js","webpack:///./~/es6-promise/dist/commonjs/promise/race.js","webpack:///./~/es6-promise/dist/commonjs/promise/resolve.js","webpack:///./~/es6-promise/dist/commonjs/promise/reject.js","webpack:///./~/es6-promise/dist/commonjs/promise/asap.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js"],"names":["define","modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","createShortMethods","utils","forEach","arguments","method","axios","url","config","merge","createShortMethodsWithData","data","Promise","buildUrl","cookies","defaults","parseHeaders","transformData","urlIsSameOrigin","transformRequest","transformResponse","withCredentials","promise","resolve","reject","request","XMLHttpRequest","ActiveXObject","headers","open","params","onreadystatechange","readyState","getAllResponseHeaders","response","responseText","status","common","xsrfValue","read","xsrfCookieName","undefined","xsrfHeaderName","val","key","toLowerCase","setRequestHeader","responseType","e","send","success","fn","then","error","encode","encodeURIComponent","replace","parts","isArray","v","isDate","toISOString","isObject","JSON","stringify","push","length","indexOf","join","write","name","value","expires","path","domain","secure","cookie","isNumber","Date","toGMTString","isString","document","match","RegExp","decodeURIComponent","remove","this","now","JSON_START","JSON_END","PROTECTION_PREFIX","CONTENT_TYPE_APPLICATION_JSON","Content-Type","isFile","isBlob","test","parse","Accept","patch","post","put","i","parsed","split","line","trim","substr","fns","urlResolve","href","msie","urlParsingNode","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","navigator","userAgent","createElement","originUrl","window","location","requestUrl","toString","str","obj","constructor","Array","callee","l","hasOwnProperty","result","Object","prototype","polyfill","resolver","isFunction","TypeError","_subscribers","invokeResolver","resolvePromise","rejectPromise","reason","invokeCallback","settled","callback","detail","succeeded","failed","hasCallback","handleThenable","FULFILLED","REJECTED","subscribe","parent","child","onFulfillment","onRejection","subscribers","publish","_detail","resolved","objectOrFunction","fulfill","_state","PENDING","SEALED","async","publishFulfillment","publishRejection","configure","all","race","staticResolve","staticReject","asap","thenPromise","callbacks","catch","global","local","self","es6PromiseSupport","r","RSVPPromise","instrument","x","getTime","promises","index","resolveAll","results","remaining","process","useNextTick","nextTick","flush","useMutationObserver","iterations","observer","BrowserMutationObserver","node","createTextNode","observe","characterData","useSetTimeout","setTimeout","queue","tuple","arg","scheduleFlush","browserGlobal","MutationObserver","WebKitMutationObserver","noop","canSetImmediate","setImmediate","canPost","postMessage","addEventListener","f","ev","source","stopPropagation","shift","title","browser","env","argv","on","addListener","once","off","removeListener","removeAllListeners","emit","binding","Error","cwd","chdir"],"mappings":"AAAAA,OAAO,WAAa,WAAa,MAAgB,UAAUC,GCI3D,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAE,WACAE,GAAAJ,EACAK,QAAA,EAUA,OANAP,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,QAAA,EAGAF,EAAAD,QAvBA,GAAAD,KAqCA,OATAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAAU,EAAA,GAGAV,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,MAAA,WACA,SAAAF,OAAA","file":"axios.amd.min.js","sourcesContent":["define(\"axios\", [], function() { return /******/ (function(modules) { // webpackBootstrap\n/******/ \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/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(1);\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Promise = __webpack_require__(9).Promise;\n\tvar buildUrl = __webpack_require__(2);\n\tvar cookies = __webpack_require__(3);\n\tvar defaults = __webpack_require__(4);\n\tvar parseHeaders = __webpack_require__(5);\n\tvar transformData = __webpack_require__(6);\n\tvar urlIsSameOrigin = __webpack_require__(7);\n\tvar utils = __webpack_require__(8);\n\t\n\tvar axios = module.exports = function axios(config) {\n\t config = utils.merge({\n\t method: 'get',\n\t transformRequest: defaults.transformRequest,\n\t transformResponse: defaults.transformResponse\n\t }, config);\n\t\n\t // Don't allow overriding defaults.withCredentials\n\t config.withCredentials = config.withCredentials || defaults.withCredentials;\n\t\n\t var promise = new Promise(function (resolve, reject) {\n\t // Create the request\n\t var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');\n\t var data = transformData(\n\t config.data,\n\t config.headers,\n\t config.transformRequest\n\t );\n\t\n\t // Open the request\n\t request.open(config.method, buildUrl(config.url, config.params), true);\n\t\n\t // Listen for ready state\n\t request.onreadystatechange = function () {\n\t if (request && request.readyState === 4) {\n\t // Prepare the response\n\t var headers = parseHeaders(request.getAllResponseHeaders());\n\t var response = {\n\t data: transformData(\n\t request.responseText,\n\t headers,\n\t config.transformResponse\n\t ),\n\t status: request.status,\n\t headers: headers,\n\t config: config\n\t };\n\t\n\t // Resolve or reject the Promise based on the status\n\t if (request.status >= 200 && request.status < 300) {\n\t resolve(response);\n\t } else {\n\t reject(response);\n\t }\n\t\n\t // Clean up request\n\t request = null;\n\t }\n\t };\n\t\n\t // Merge headers and add to request\n\t var headers = utils.merge(\n\t defaults.headers.common,\n\t defaults.headers[config.method] || {},\n\t config.headers || {}\n\t );\n\t\n\t // Add xsrf header\n\t var xsrfValue = urlIsSameOrigin(config.url)\n\t ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName)\n\t : undefined;\n\t if (xsrfValue) {\n\t headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;\n\t }\n\t\n\t utils.forEach(headers, function (val, key) {\n\t // Remove Content-Type if data is undefined\n\t if (!data && key.toLowerCase() === 'content-type') {\n\t delete headers[key];\n\t }\n\t // Otherwise add header to the request\n\t else {\n\t request.setRequestHeader(key, val);\n\t }\n\t });\n\t\n\t // Add withCredentials to request if needed\n\t if (config.withCredentials) {\n\t request.withCredentials = true;\n\t }\n\t\n\t // Add responseType to request if needed\n\t if (config.responseType) {\n\t try {\n\t request.responseType = config.responseType;\n\t } catch (e) {\n\t if (request.responseType !== 'json') {\n\t throw e;\n\t }\n\t }\n\t }\n\t\n\t // Send the request\n\t request.send(data);\n\t });\n\t\n\t // Provide alias for success\n\t promise.success = function success(fn) {\n\t promise.then(function(response) {\n\t fn(response);\n\t });\n\t return promise;\n\t };\n\t\n\t // Provide alias for error\n\t promise.error = function error(fn) {\n\t promise.then(null, function(response) {\n\t fn(response);\n\t });\n\t return promise;\n\t };\n\t\n\t return promise;\n\t};\n\t\n\t// Expose defaults\n\taxios.defaults = defaults;\n\t\n\t// Provide aliases for supported request methods\n\tcreateShortMethods('delete', 'get', 'head');\n\tcreateShortMethodsWithData('post', 'put', 'patch');\n\t\n\tfunction createShortMethods() {\n\t utils.forEach(arguments, function (method) {\n\t axios[method] = function (url, config) {\n\t return axios(utils.merge(config || {}, {\n\t method: method,\n\t url: url\n\t }));\n\t };\n\t });\n\t}\n\t\n\tfunction createShortMethodsWithData() {\n\t utils.forEach(arguments, function (method) {\n\t axios[method] = function (url, data, config) {\n\t return axios(utils.merge(config || {}, {\n\t method: method,\n\t url: url,\n\t data: data\n\t }));\n\t };\n\t });\n\t}\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tfunction encode(val) {\n\t return encodeURIComponent(val).\n\t replace(/%40/gi, '@').\n\t replace(/%3A/gi, ':').\n\t replace(/%24/g, '$').\n\t replace(/%2C/gi, ',').\n\t replace(/%20/g, '+');\n\t}\n\t\n\tmodule.exports = function buildUrl(url, params) {\n\t if (!params) {\n\t return url;\n\t }\n\t\n\t var parts = [];\n\t\n\t utils.forEach(params, function (val, key) {\n\t if (val === null || typeof val === 'undefined') {\n\t return;\n\t }\n\t if (!utils.isArray(val)) {\n\t val = [val];\n\t }\n\t\n\t utils.forEach(val, function (v) {\n\t if (utils.isDate(v)) {\n\t v = v.toISOString();\n\t }\n\t else if (utils.isObject(v)) {\n\t v = JSON.stringify(v);\n\t }\n\t parts.push(encode(key) + '=' + encode(v));\n\t });\n\t });\n\t\n\t if (parts.length > 0) {\n\t url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&');\n\t }\n\t\n\t return url;\n\t};\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tmodule.exports = {\n\t write: function write(name, value, expires, path, domain, secure) {\n\t var cookie = [];\n\t cookie.push(name + '=' + encodeURIComponent(value));\n\t\n\t if (utils.isNumber(expires)) {\n\t cookie.push('expires=' + new Date(expires).toGMTString());\n\t }\n\t\n\t if (utils.isString(path)) {\n\t cookie.push('path=' + path);\n\t }\n\t\n\t if (utils.isString(domain)) {\n\t cookie.push('domain=' + domain);\n\t }\n\t\n\t if (secure === true) {\n\t cookie.push('secure');\n\t }\n\t\n\t document.cookie = cookie.join('; ');\n\t },\n\t\n\t read: function read(name) {\n\t var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n\t return (match ? decodeURIComponent(match[3]) : null);\n\t },\n\t\n\t remove: function remove(name) {\n\t this.write(name, '', Date.now() - 86400000);\n\t }\n\t};\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\n\tvar JSON_END = /[\\}\\]]\\s*$/;\n\tvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\n\tvar CONTENT_TYPE_APPLICATION_JSON = {\n\t 'Content-Type': 'application/json;charset=utf-8'\n\t};\n\t\n\tmodule.exports = {\n\t transformRequest: [function (data) {\n\t return utils.isObject(data) &&\n\t !utils.isFile(data) &&\n\t !utils.isBlob(data) ?\n\t JSON.stringify(data) : null;\n\t }],\n\t\n\t transformResponse: [function (data) {\n\t if (typeof data === 'string') {\n\t data = data.replace(PROTECTION_PREFIX, '');\n\t if (JSON_START.test(data) && JSON_END.test(data)) {\n\t data = JSON.parse(data);\n\t }\n\t }\n\t return data;\n\t }],\n\t\n\t headers: {\n\t common: {\n\t 'Accept': 'application/json, text/plain, */*'\n\t },\n\t patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n\t post: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n\t put: utils.merge(CONTENT_TYPE_APPLICATION_JSON)\n\t },\n\t\n\t xsrfCookieName: 'XSRF-TOKEN',\n\t xsrfHeaderName: 'X-XSRF-TOKEN'\n\t};\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\t/**\n\t * Parse headers into an object\n\t *\n\t * ```\n\t * Date: Wed, 27 Aug 2014 08:58:49 GMT\n\t * Content-Type: application/json\n\t * Connection: keep-alive\n\t * Transfer-Encoding: chunked\n\t * ```\n\t *\n\t * @param {String} headers Headers needing to be parsed\n\t * @returns {Object} Headers parsed into an object\n\t */\n\tmodule.exports = function parseHeaders(headers) {\n\t var parsed = {}, key, val, i;\n\t\n\t if (!headers) return parsed;\n\t\n\t utils.forEach(headers.split('\\n'), function(line) {\n\t i = line.indexOf(':');\n\t key = utils.trim(line.substr(0, i)).toLowerCase();\n\t val = utils.trim(line.substr(i + 1));\n\t\n\t if (key) {\n\t parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n\t }\n\t });\n\t\n\t return parsed;\n\t};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\t/**\n\t * Transform the data for a request or a response\n\t *\n\t * @param {Object|String} data The data to be transformed\n\t * @param {Array} headers The headers for the request or response\n\t * @param {Array|Function} fns A single function or Array of functions\n\t * @returns {*} The resulting transformed data\n\t */\n\tmodule.exports = function transformData(data, headers, fns) {\n\t utils.forEach(fns, function (fn) {\n\t data = fn(data, headers);\n\t });\n\t\n\t return data;\n\t};\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar msie = /(msie|trident)/i.test(navigator.userAgent);\n\tvar utils = __webpack_require__(8);\n\tvar urlParsingNode = document.createElement('a');\n\tvar originUrl = urlResolve(window.location.href);\n\t\n\t/**\n\t * Parse a URL to discover it's components\n\t *\n\t * @param {String} url The URL to be parsed\n\t * @returns {Object}\n\t */\n\tfunction urlResolve(url) {\n\t var href = url;\n\t\n\t if (msie) {\n\t // IE needs attribute set twice to normalize properties\n\t urlParsingNode.setAttribute('href', href);\n\t href = urlParsingNode.href;\n\t }\n\t\n\t urlParsingNode.setAttribute('href', href);\n\t\n\t // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n\t return {\n\t href: urlParsingNode.href,\n\t protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n\t host: urlParsingNode.host,\n\t search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n\t hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n\t hostname: urlParsingNode.hostname,\n\t port: urlParsingNode.port,\n\t pathname: (urlParsingNode.pathname.charAt(0) === '/')\n\t ? urlParsingNode.pathname\n\t : '/' + urlParsingNode.pathname\n\t };\n\t}\n\t\n\t/**\n\t * Determine if a URL shares the same origin as the current location\n\t *\n\t * @param {String} requestUrl The URL to test\n\t * @returns {boolean} True if URL shares the same origin, otherwise false\n\t */\n\tmodule.exports = function urlIsSameOrigin(requestUrl) {\n\t var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n\t return (parsed.protocol === originUrl.protocol &&\n\t parsed.host === originUrl.host);\n\t};\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// utils is a library of generic helper functions non-specific to axios\n\t\n\tvar toString = Object.prototype.toString;\n\t\n\t/**\n\t * Determine if a value is an Array\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is an Array, otherwise false\n\t */\n\tfunction isArray(val) {\n\t return toString.call(val) === '[object Array]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a String\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a String, otherwise false\n\t */\n\tfunction isString(val) {\n\t return typeof val === 'string';\n\t}\n\t\n\t/**\n\t * Determine if a value is a Number\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a Number, otherwise false\n\t */\n\tfunction isNumber(val) {\n\t return typeof val === 'number';\n\t}\n\t\n\t/**\n\t * Determine if a value is an Object\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is an Object, otherwise false\n\t */\n\tfunction isObject(val) {\n\t return val !== null && typeof val === 'object';\n\t}\n\t\n\t/**\n\t * Determine if a value is a Date\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a Date, otherwise false\n\t */\n\tfunction isDate(val) {\n\t return toString.call(val) === '[object Date]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a File\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a File, otherwise false\n\t */\n\tfunction isFile(val) {\n\t return toString.call(val) === '[object File]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a Blob\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a Blob, otherwise false\n\t */\n\tfunction isBlob(val) {\n\t return toString.call(val) === '[object Blob]';\n\t}\n\t\n\t/**\n\t * Trim excess whitespace off the beginning and end of a string\n\t *\n\t * @param {String} str The String to trim\n\t * @returns {String} The String freed of excess whitespace\n\t */\n\tfunction trim(str) {\n\t return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n\t}\n\t\n\t/**\n\t * Iterate over an Array or an Object invoking a function for each item.\n\t *\n\t * If `obj` is an Array or arguments callback will be called passing\n\t * the value, index, and complete array for each item.\n\t *\n\t * If 'obj' is an Object callback will be called passing\n\t * the value, key, and complete object for each property.\n\t *\n\t * @param {Object|Array} obj The object to iterate\n\t * @param {Function} fn The callback to invoke for each item\n\t */\n\tfunction forEach(obj, fn) {\n\t // Don't bother if no value provided\n\t if (obj === null || typeof obj === 'undefined') {\n\t return;\n\t }\n\t\n\t // Check if obj is array-like\n\t var isArray = obj.constructor === Array || typeof obj.callee === 'function';\n\t\n\t // Force an array if not already something iterable\n\t if (typeof obj !== 'object' && !isArray) {\n\t obj = [obj];\n\t }\n\t\n\t // Iterate over array values\n\t if (isArray) {\n\t for (var i=0, l=obj.length; i 0) {\n\t var fn = queue.shift();\n\t fn();\n\t }\n\t }\n\t }, true);\n\t\n\t return function nextTick(fn) {\n\t queue.push(fn);\n\t window.postMessage('process-tick', '*');\n\t };\n\t }\n\t\n\t return function nextTick(fn) {\n\t setTimeout(fn, 0);\n\t };\n\t})();\n\t\n\tprocess.title = 'browser';\n\tprocess.browser = true;\n\tprocess.env = {};\n\tprocess.argv = [];\n\t\n\tfunction noop() {}\n\t\n\tprocess.on = noop;\n\tprocess.addListener = noop;\n\tprocess.once = noop;\n\tprocess.off = noop;\n\tprocess.removeListener = noop;\n\tprocess.removeAllListeners = noop;\n\tprocess.emit = noop;\n\t\n\tprocess.binding = function (name) {\n\t throw new Error('process.binding is not supported');\n\t}\n\t\n\t// TODO(shtylman)\n\tprocess.cwd = function () { return '/' };\n\tprocess.chdir = function (dir) {\n\t throw new Error('process.chdir is not supported');\n\t};\n\n\n/***/ }\n/******/ ])});\n\n\n/** WEBPACK FOOTER **\n ** axios.amd.min.js\n **/"," \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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 6bb677e0c424d2fb1748\n **/","module.exports = require('./lib/axios');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./index.js\n ** module id = 0\n ** module chunks = 0\n **/","var Promise = require('es6-promise').Promise;\nvar buildUrl = require('./buildUrl');\nvar cookies = require('./cookies');\nvar defaults = require('./defaults');\nvar parseHeaders = require('./parseHeaders');\nvar transformData = require('./transformData');\nvar urlIsSameOrigin = require('./urlIsSameOrigin');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n transformRequest: defaults.transformRequest,\n transformResponse: defaults.transformResponse\n }, config);\n\n // Don't allow overriding defaults.withCredentials\n config.withCredentials = config.withCredentials || defaults.withCredentials;\n\n var promise = new Promise(function (resolve, reject) {\n // Create the request\n var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');\n var data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Open the request\n request.open(config.method, buildUrl(config.url, config.params), true);\n\n // Listen for ready state\n request.onreadystatechange = function () {\n if (request && request.readyState === 4) {\n // Prepare the response\n var headers = parseHeaders(request.getAllResponseHeaders());\n var response = {\n data: transformData(\n request.responseText,\n headers,\n config.transformResponse\n ),\n status: request.status,\n headers: headers,\n config: config\n };\n\n // Resolve or reject the Promise based on the status\n if (request.status >= 200 && request.status < 300) {\n resolve(response);\n } else {\n reject(response);\n }\n\n // Clean up request\n request = null;\n }\n };\n\n // Merge headers and add to request\n var headers = utils.merge(\n defaults.headers.common,\n defaults.headers[config.method] || {},\n config.headers || {}\n );\n\n // Add xsrf header\n var xsrfValue = urlIsSameOrigin(config.url)\n ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName)\n : undefined;\n if (xsrfValue) {\n headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;\n }\n\n utils.forEach(headers, function (val, key) {\n // Remove Content-Type if data is undefined\n if (!data && key.toLowerCase() === 'content-type') {\n delete headers[key];\n }\n // Otherwise add header to the request\n else {\n request.setRequestHeader(key, val);\n }\n });\n\n // Add withCredentials to request if needed\n if (config.withCredentials) {\n request.withCredentials = true;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n if (request.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Send the request\n request.send(data);\n });\n\n // Provide alias for success\n promise.success = function success(fn) {\n promise.then(function(response) {\n fn(response);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n promise.then(null, function(response) {\n fn(response);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Provide aliases for supported request methods\ncreateShortMethods('delete', 'get', 'head');\ncreateShortMethodsWithData('post', 'put', 'patch');\n\nfunction createShortMethods() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n });\n}\n\nfunction createShortMethodsWithData() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, data, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n });\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/axios.js\n ** module id = 1\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+');\n}\n\nmodule.exports = function buildUrl(url, params) {\n if (!params) {\n return url;\n }\n\n var parts = [];\n\n utils.forEach(params, function (val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n if (!utils.isArray(val)) {\n val = [val];\n }\n\n utils.forEach(val, function (v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n }\n else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n if (parts.length > 0) {\n url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&');\n }\n\n return url;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/buildUrl.js\n ** module id = 2\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nmodule.exports = {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/cookies.js\n ** module id = 3\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\nvar JSON_END = /[\\}\\]]\\s*$/;\nvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\nvar CONTENT_TYPE_APPLICATION_JSON = {\n 'Content-Type': 'application/json;charset=utf-8'\n};\n\nmodule.exports = {\n transformRequest: [function (data) {\n return utils.isObject(data) &&\n !utils.isFile(data) &&\n !utils.isBlob(data) ?\n JSON.stringify(data) : null;\n }],\n\n transformResponse: [function (data) {\n if (typeof data === 'string') {\n data = data.replace(PROTECTION_PREFIX, '');\n if (JSON_START.test(data) && JSON_END.test(data)) {\n data = JSON.parse(data);\n }\n }\n return data;\n }],\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n },\n patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n post: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n put: utils.merge(CONTENT_TYPE_APPLICATION_JSON)\n },\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN'\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/defaults.js\n ** module id = 4\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {}, key, val, i;\n\n if (!headers) return parsed;\n\n utils.forEach(headers.split('\\n'), function(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/parseHeaders.js\n ** module id = 5\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n utils.forEach(fns, function (fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/transformData.js\n ** module id = 6\n ** module chunks = 0\n **/","'use strict';\n\nvar msie = /(msie|trident)/i.test(navigator.userAgent);\nvar utils = require('./utils');\nvar urlParsingNode = document.createElement('a');\nvar originUrl = urlResolve(window.location.href);\n\n/**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\nfunction urlResolve(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/')\n ? urlParsingNode.pathname\n : '/' + urlParsingNode.pathname\n };\n}\n\n/**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestUrl The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\nmodule.exports = function urlIsSameOrigin(requestUrl) {\n var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n return (parsed.protocol === originUrl.protocol &&\n parsed.host === originUrl.host);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/urlIsSameOrigin.js\n ** module id = 7\n ** module chunks = 0\n **/","// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array or arguments callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Check if obj is array-like\n var isArray = obj.constructor === Array || typeof obj.callee === 'function';\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object' && !isArray) {\n obj = [obj];\n }\n\n // Iterate over array values\n if (isArray) {\n for (var i=0, l=obj.length; i 0) {\n var fn = queue.shift();\n fn();\n }\n }\n }, true);\n\n return function nextTick(fn) {\n queue.push(fn);\n window.postMessage('process-tick', '*');\n };\n }\n\n return function nextTick(fn) {\n setTimeout(fn, 0);\n };\n})();\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\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;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n}\n\n// TODO(shtylman)\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/process/browser.js\n ** module id = 19\n ** module chunks = 0\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///axios.amd.min.js","webpack:///webpack/bootstrap ee89e55b35e02a787ccb","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///./lib/buildUrl.js","webpack:///./lib/cookies.js","webpack:///./lib/defaults.js","webpack:///./lib/parseHeaders.js","webpack:///./lib/transformData.js","webpack:///./lib/urlIsSameOrigin.js","webpack:///./lib/utils.js","webpack:///./~/es6-promise/dist/commonjs/main.js","webpack:///./~/es6-promise/dist/commonjs/promise/promise.js","webpack:///./~/es6-promise/dist/commonjs/promise/polyfill.js","webpack:///./~/es6-promise/dist/commonjs/promise/config.js","webpack:///./~/es6-promise/dist/commonjs/promise/utils.js","webpack:///./~/es6-promise/dist/commonjs/promise/all.js","webpack:///./~/es6-promise/dist/commonjs/promise/race.js","webpack:///./~/es6-promise/dist/commonjs/promise/resolve.js","webpack:///./~/es6-promise/dist/commonjs/promise/reject.js","webpack:///./~/es6-promise/dist/commonjs/promise/asap.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js"],"names":["define","modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","createShortMethods","utils","forEach","arguments","method","axios","url","config","merge","createShortMethodsWithData","data","Promise","buildUrl","cookies","defaults","parseHeaders","transformData","urlIsSameOrigin","transformRequest","transformResponse","withCredentials","promise","resolve","reject","request","XMLHttpRequest","ActiveXObject","headers","open","params","onreadystatechange","readyState","getAllResponseHeaders","response","responseText","status","common","xsrfValue","read","xsrfCookieName","undefined","xsrfHeaderName","val","key","toLowerCase","setRequestHeader","responseType","e","send","success","fn","then","error","encode","encodeURIComponent","replace","parts","isArray","v","isDate","toISOString","isObject","JSON","stringify","push","length","indexOf","join","write","name","value","expires","path","domain","secure","cookie","isNumber","Date","toGMTString","isString","document","match","RegExp","decodeURIComponent","remove","this","now","JSON_START","JSON_END","PROTECTION_PREFIX","CONTENT_TYPE_APPLICATION_JSON","Content-Type","isFile","isBlob","test","parse","Accept","patch","post","put","i","parsed","split","line","trim","substr","fns","urlResolve","href","msie","urlParsingNode","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","navigator","userAgent","createElement","originUrl","window","location","requestUrl","toString","str","obj","constructor","Array","callee","l","hasOwnProperty","result","Object","prototype","polyfill","resolver","isFunction","TypeError","_subscribers","invokeResolver","resolvePromise","rejectPromise","reason","invokeCallback","settled","callback","detail","succeeded","failed","hasCallback","handleThenable","FULFILLED","REJECTED","subscribe","parent","child","onFulfillment","onRejection","subscribers","publish","_detail","resolved","objectOrFunction","fulfill","_state","PENDING","SEALED","async","publishFulfillment","publishRejection","configure","all","race","staticResolve","staticReject","asap","thenPromise","callbacks","catch","global","local","self","es6PromiseSupport","r","RSVPPromise","instrument","x","getTime","promises","index","resolveAll","results","remaining","process","useNextTick","nextTick","flush","useMutationObserver","iterations","observer","BrowserMutationObserver","node","createTextNode","observe","characterData","useSetTimeout","setTimeout","queue","tuple","arg","scheduleFlush","browserGlobal","MutationObserver","WebKitMutationObserver","noop","canSetImmediate","setImmediate","canPost","postMessage","addEventListener","f","ev","source","stopPropagation","shift","title","browser","env","argv","on","addListener","once","off","removeList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iK,EAAAiB,OACAlL,QAGS,GAET,SAAAA,GACAiK,EAAAnJ,KAAAd,GACA0E,OAAAkG,YAAA,qBAIA,gBAAA5K,GACAgK,WAAAhK,EAAA,OAIAmJ,EAAAgC,MAAA,UACAhC,EAAAiC,SAAA,EACAjC,EAAAkC,OACAlC,EAAAmC,QAIAnC,EAAAoC,GAAAf,EACArB,EAAAqC,YAAAhB,EACArB,EAAAsC,KAAAjB,EACArB,EAAAuC,IAAAlB,EACArB,EAAAwC,eAAAnB,EACArB,EAAAyC,mBAAApB,EACArB,EAAA0C,KAAArB,EAEArB,EAAA2C,QAAA,WACA,SAAAC,OAAA,qCAIA5C,EAAA6C,IAAA,WAA2B,WAC3B7C,EAAA8C,MAAA,WACA,SAAAF,OAAA","file":"axios.amd.min.js","sourcesContent":["define(\"axios\", [], function() { return /******/ (function(modules) { // webpackBootstrap\n/******/ \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/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(1);\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Promise = __webpack_require__(9).Promise;\n\tvar buildUrl = __webpack_require__(2);\n\tvar cookies = __webpack_require__(3);\n\tvar defaults = __webpack_require__(4);\n\tvar parseHeaders = __webpack_require__(5);\n\tvar transformData = __webpack_require__(6);\n\tvar urlIsSameOrigin = __webpack_require__(7);\n\tvar utils = __webpack_require__(8);\n\t\n\tvar axios = module.exports = function axios(config) {\n\t config = utils.merge({\n\t method: 'get',\n\t transformRequest: defaults.transformRequest,\n\t transformResponse: defaults.transformResponse\n\t }, config);\n\t\n\t // Don't allow overriding defaults.withCredentials\n\t config.withCredentials = config.withCredentials || defaults.withCredentials;\n\t\n\t var promise = new Promise(function (resolve, reject) {\n\t // Create the request\n\t var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');\n\t var data = transformData(\n\t config.data,\n\t config.headers,\n\t config.transformRequest\n\t );\n\t\n\t // Open the request\n\t request.open(config.method, buildUrl(config.url, config.params), true);\n\t\n\t // Listen for ready state\n\t request.onreadystatechange = function () {\n\t if (request && request.readyState === 4) {\n\t // Prepare the response\n\t var headers = parseHeaders(request.getAllResponseHeaders());\n\t var response = {\n\t data: transformData(\n\t request.responseText,\n\t headers,\n\t config.transformResponse\n\t ),\n\t status: request.status,\n\t headers: headers,\n\t config: config\n\t };\n\t\n\t // Resolve or reject the Promise based on the status\n\t (request.status >= 200 && request.status < 300\n\t ? resolve\n\t : reject)(\n\t response.data,\n\t response.status,\n\t response.headers,\n\t response.config\n\t );\n\t\n\t // Clean up request\n\t request = null;\n\t }\n\t };\n\t\n\t // Merge headers and add to request\n\t var headers = utils.merge(\n\t defaults.headers.common,\n\t defaults.headers[config.method] || {},\n\t config.headers || {}\n\t );\n\t\n\t // Add xsrf header\n\t var xsrfValue = urlIsSameOrigin(config.url)\n\t ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName)\n\t : undefined;\n\t if (xsrfValue) {\n\t headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;\n\t }\n\t\n\t utils.forEach(headers, function (val, key) {\n\t // Remove Content-Type if data is undefined\n\t if (!data && key.toLowerCase() === 'content-type') {\n\t delete headers[key];\n\t }\n\t // Otherwise add header to the request\n\t else {\n\t request.setRequestHeader(key, val);\n\t }\n\t });\n\t\n\t // Add withCredentials to request if needed\n\t if (config.withCredentials) {\n\t request.withCredentials = true;\n\t }\n\t\n\t // Add responseType to request if needed\n\t if (config.responseType) {\n\t try {\n\t request.responseType = config.responseType;\n\t } catch (e) {\n\t if (request.responseType !== 'json') {\n\t throw e;\n\t }\n\t }\n\t }\n\t\n\t // Send the request\n\t request.send(data);\n\t });\n\t\n\t // Provide alias for success\n\t promise.success = function success(fn) {\n\t promise.then(function(response) {\n\t fn(response);\n\t });\n\t return promise;\n\t };\n\t\n\t // Provide alias for error\n\t promise.error = function error(fn) {\n\t promise.then(null, function(response) {\n\t fn(response);\n\t });\n\t return promise;\n\t };\n\t\n\t return promise;\n\t};\n\t\n\t// Expose defaults\n\taxios.defaults = defaults;\n\t\n\t// Provide aliases for supported request methods\n\tcreateShortMethods('delete', 'get', 'head');\n\tcreateShortMethodsWithData('post', 'put', 'patch');\n\t\n\tfunction createShortMethods() {\n\t utils.forEach(arguments, function (method) {\n\t axios[method] = function (url, config) {\n\t return axios(utils.merge(config || {}, {\n\t method: method,\n\t url: url\n\t }));\n\t };\n\t });\n\t}\n\t\n\tfunction createShortMethodsWithData() {\n\t utils.forEach(arguments, function (method) {\n\t axios[method] = function (url, data, config) {\n\t return axios(utils.merge(config || {}, {\n\t method: method,\n\t url: url,\n\t data: data\n\t }));\n\t };\n\t });\n\t}\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tfunction encode(val) {\n\t return encodeURIComponent(val).\n\t replace(/%40/gi, '@').\n\t replace(/%3A/gi, ':').\n\t replace(/%24/g, '$').\n\t replace(/%2C/gi, ',').\n\t replace(/%20/g, '+');\n\t}\n\t\n\tmodule.exports = function buildUrl(url, params) {\n\t if (!params) {\n\t return url;\n\t }\n\t\n\t var parts = [];\n\t\n\t utils.forEach(params, function (val, key) {\n\t if (val === null || typeof val === 'undefined') {\n\t return;\n\t }\n\t if (!utils.isArray(val)) {\n\t val = [val];\n\t }\n\t\n\t utils.forEach(val, function (v) {\n\t if (utils.isDate(v)) {\n\t v = v.toISOString();\n\t }\n\t else if (utils.isObject(v)) {\n\t v = JSON.stringify(v);\n\t }\n\t parts.push(encode(key) + '=' + encode(v));\n\t });\n\t });\n\t\n\t if (parts.length > 0) {\n\t url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&');\n\t }\n\t\n\t return url;\n\t};\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tmodule.exports = {\n\t write: function write(name, value, expires, path, domain, secure) {\n\t var cookie = [];\n\t cookie.push(name + '=' + encodeURIComponent(value));\n\t\n\t if (utils.isNumber(expires)) {\n\t cookie.push('expires=' + new Date(expires).toGMTString());\n\t }\n\t\n\t if (utils.isString(path)) {\n\t cookie.push('path=' + path);\n\t }\n\t\n\t if (utils.isString(domain)) {\n\t cookie.push('domain=' + domain);\n\t }\n\t\n\t if (secure === true) {\n\t cookie.push('secure');\n\t }\n\t\n\t document.cookie = cookie.join('; ');\n\t },\n\t\n\t read: function read(name) {\n\t var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n\t return (match ? decodeURIComponent(match[3]) : null);\n\t },\n\t\n\t remove: function remove(name) {\n\t this.write(name, '', Date.now() - 86400000);\n\t }\n\t};\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\n\tvar JSON_END = /[\\}\\]]\\s*$/;\n\tvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\n\tvar CONTENT_TYPE_APPLICATION_JSON = {\n\t 'Content-Type': 'application/json;charset=utf-8'\n\t};\n\t\n\tmodule.exports = {\n\t transformRequest: [function (data) {\n\t return utils.isObject(data) &&\n\t !utils.isFile(data) &&\n\t !utils.isBlob(data) ?\n\t JSON.stringify(data) : null;\n\t }],\n\t\n\t transformResponse: [function (data) {\n\t if (typeof data === 'string') {\n\t data = data.replace(PROTECTION_PREFIX, '');\n\t if (JSON_START.test(data) && JSON_END.test(data)) {\n\t data = JSON.parse(data);\n\t }\n\t }\n\t return data;\n\t }],\n\t\n\t headers: {\n\t common: {\n\t 'Accept': 'application/json, text/plain, */*'\n\t },\n\t patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n\t post: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n\t put: utils.merge(CONTENT_TYPE_APPLICATION_JSON)\n\t },\n\t\n\t xsrfCookieName: 'XSRF-TOKEN',\n\t xsrfHeaderName: 'X-XSRF-TOKEN'\n\t};\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\t/**\n\t * Parse headers into an object\n\t *\n\t * ```\n\t * Date: Wed, 27 Aug 2014 08:58:49 GMT\n\t * Content-Type: application/json\n\t * Connection: keep-alive\n\t * Transfer-Encoding: chunked\n\t * ```\n\t *\n\t * @param {String} headers Headers needing to be parsed\n\t * @returns {Object} Headers parsed into an object\n\t */\n\tmodule.exports = function parseHeaders(headers) {\n\t var parsed = {}, key, val, i;\n\t\n\t if (!headers) return parsed;\n\t\n\t utils.forEach(headers.split('\\n'), function(line) {\n\t i = line.indexOf(':');\n\t key = utils.trim(line.substr(0, i)).toLowerCase();\n\t val = utils.trim(line.substr(i + 1));\n\t\n\t if (key) {\n\t parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n\t }\n\t });\n\t\n\t return parsed;\n\t};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\t/**\n\t * Transform the data for a request or a response\n\t *\n\t * @param {Object|String} data The data to be transformed\n\t * @param {Array} headers The headers for the request or response\n\t * @param {Array|Function} fns A single function or Array of functions\n\t * @returns {*} The resulting transformed data\n\t */\n\tmodule.exports = function transformData(data, headers, fns) {\n\t utils.forEach(fns, function (fn) {\n\t data = fn(data, headers);\n\t });\n\t\n\t return data;\n\t};\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar msie = /(msie|trident)/i.test(navigator.userAgent);\n\tvar utils = __webpack_require__(8);\n\tvar urlParsingNode = document.createElement('a');\n\tvar originUrl = urlResolve(window.location.href);\n\t\n\t/**\n\t * Parse a URL to discover it's components\n\t *\n\t * @param {String} url The URL to be parsed\n\t * @returns {Object}\n\t */\n\tfunction urlResolve(url) {\n\t var href = url;\n\t\n\t if (msie) {\n\t // IE needs attribute set twice to normalize properties\n\t urlParsingNode.setAttribute('href', href);\n\t href = urlParsingNode.href;\n\t }\n\t\n\t urlParsingNode.setAttribute('href', href);\n\t\n\t // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n\t return {\n\t href: urlParsingNode.href,\n\t protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n\t host: urlParsingNode.host,\n\t search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n\t hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n\t hostname: urlParsingNode.hostname,\n\t port: urlParsingNode.port,\n\t pathname: (urlParsingNode.pathname.charAt(0) === '/')\n\t ? urlParsingNode.pathname\n\t : '/' + urlParsingNode.pathname\n\t };\n\t}\n\t\n\t/**\n\t * Determine if a URL shares the same origin as the current location\n\t *\n\t * @param {String} requestUrl The URL to test\n\t * @returns {boolean} True if URL shares the same origin, otherwise false\n\t */\n\tmodule.exports = function urlIsSameOrigin(requestUrl) {\n\t var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n\t return (parsed.protocol === originUrl.protocol &&\n\t parsed.host === originUrl.host);\n\t};\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// utils is a library of generic helper functions non-specific to axios\n\t\n\tvar toString = Object.prototype.toString;\n\t\n\t/**\n\t * Determine if a value is an Array\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is an Array, otherwise false\n\t */\n\tfunction isArray(val) {\n\t return toString.call(val) === '[object Array]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a String\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a String, otherwise false\n\t */\n\tfunction isString(val) {\n\t return typeof val === 'string';\n\t}\n\t\n\t/**\n\t * Determine if a value is a Number\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a Number, otherwise false\n\t */\n\tfunction isNumber(val) {\n\t return typeof val === 'number';\n\t}\n\t\n\t/**\n\t * Determine if a value is an Object\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is an Object, otherwise false\n\t */\n\tfunction isObject(val) {\n\t return val !== null && typeof val === 'object';\n\t}\n\t\n\t/**\n\t * Determine if a value is a Date\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a Date, otherwise false\n\t */\n\tfunction isDate(val) {\n\t return toString.call(val) === '[object Date]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a File\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a File, otherwise false\n\t */\n\tfunction isFile(val) {\n\t return toString.call(val) === '[object File]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a Blob\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a Blob, otherwise false\n\t */\n\tfunction isBlob(val) {\n\t return toString.call(val) === '[object Blob]';\n\t}\n\t\n\t/**\n\t * Trim excess whitespace off the beginning and end of a string\n\t *\n\t * @param {String} str The String to trim\n\t * @returns {String} The String freed of excess whitespace\n\t */\n\tfunction trim(str) {\n\t return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n\t}\n\t\n\t/**\n\t * Iterate over an Array or an Object invoking a function for each item.\n\t *\n\t * If `obj` is an Array or arguments callback will be called passing\n\t * the value, index, and complete array for each item.\n\t *\n\t * If 'obj' is an Object callback will be called passing\n\t * the value, key, and complete object for each property.\n\t *\n\t * @param {Object|Array} obj The object to iterate\n\t * @param {Function} fn The callback to invoke for each item\n\t */\n\tfunction forEach(obj, fn) {\n\t // Don't bother if no value provided\n\t if (obj === null || typeof obj === 'undefined') {\n\t return;\n\t }\n\t\n\t // Check if obj is array-like\n\t var isArray = obj.constructor === Array || typeof obj.callee === 'function';\n\t\n\t // Force an array if not already something iterable\n\t if (typeof obj !== 'object' && !isArray) {\n\t obj = [obj];\n\t }\n\t\n\t // Iterate over array values\n\t if (isArray) {\n\t for (var i=0, l=obj.length; i 0) {\n\t var fn = queue.shift();\n\t fn();\n\t }\n\t }\n\t }, true);\n\t\n\t return function nextTick(fn) {\n\t queue.push(fn);\n\t window.postMessage('process-tick', '*');\n\t };\n\t }\n\t\n\t return function nextTick(fn) {\n\t setTimeout(fn, 0);\n\t };\n\t})();\n\t\n\tprocess.title = 'browser';\n\tprocess.browser = true;\n\tprocess.env = {};\n\tprocess.argv = [];\n\t\n\tfunction noop() {}\n\t\n\tprocess.on = noop;\n\tprocess.addListener = noop;\n\tprocess.once = noop;\n\tprocess.off = noop;\n\tprocess.removeListener = noop;\n\tprocess.removeAllListeners = noop;\n\tprocess.emit = noop;\n\t\n\tprocess.binding = function (name) {\n\t throw new Error('process.binding is not supported');\n\t}\n\t\n\t// TODO(shtylman)\n\tprocess.cwd = function () { return '/' };\n\tprocess.chdir = function (dir) {\n\t throw new Error('process.chdir is not supported');\n\t};\n\n\n/***/ }\n/******/ ])});\n\n\n/** WEBPACK FOOTER **\n ** axios.amd.min.js\n **/"," \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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap ee89e55b35e02a787ccb\n **/","module.exports = require('./lib/axios');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./index.js\n ** module id = 0\n ** module chunks = 0\n **/","var Promise = require('es6-promise').Promise;\nvar buildUrl = require('./buildUrl');\nvar cookies = require('./cookies');\nvar defaults = require('./defaults');\nvar parseHeaders = require('./parseHeaders');\nvar transformData = require('./transformData');\nvar urlIsSameOrigin = require('./urlIsSameOrigin');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n transformRequest: defaults.transformRequest,\n transformResponse: defaults.transformResponse\n }, config);\n\n // Don't allow overriding defaults.withCredentials\n config.withCredentials = config.withCredentials || defaults.withCredentials;\n\n var promise = new Promise(function (resolve, reject) {\n // Create the request\n var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');\n var data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Open the request\n request.open(config.method, buildUrl(config.url, config.params), true);\n\n // Listen for ready state\n request.onreadystatechange = function () {\n if (request && request.readyState === 4) {\n // Prepare the response\n var headers = parseHeaders(request.getAllResponseHeaders());\n var response = {\n data: transformData(\n request.responseText,\n headers,\n config.transformResponse\n ),\n status: request.status,\n headers: headers,\n config: config\n };\n\n // Resolve or reject the Promise based on the status\n (request.status >= 200 && request.status < 300\n ? resolve\n : reject)(\n response.data,\n response.status,\n response.headers,\n response.config\n );\n\n // Clean up request\n request = null;\n }\n };\n\n // Merge headers and add to request\n var headers = utils.merge(\n defaults.headers.common,\n defaults.headers[config.method] || {},\n config.headers || {}\n );\n\n // Add xsrf header\n var xsrfValue = urlIsSameOrigin(config.url)\n ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName)\n : undefined;\n if (xsrfValue) {\n headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;\n }\n\n utils.forEach(headers, function (val, key) {\n // Remove Content-Type if data is undefined\n if (!data && key.toLowerCase() === 'content-type') {\n delete headers[key];\n }\n // Otherwise add header to the request\n else {\n request.setRequestHeader(key, val);\n }\n });\n\n // Add withCredentials to request if needed\n if (config.withCredentials) {\n request.withCredentials = true;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n if (request.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Send the request\n request.send(data);\n });\n\n // Provide alias for success\n promise.success = function success(fn) {\n promise.then(function(response) {\n fn(response);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n promise.then(null, function(response) {\n fn(response);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Provide aliases for supported request methods\ncreateShortMethods('delete', 'get', 'head');\ncreateShortMethodsWithData('post', 'put', 'patch');\n\nfunction createShortMethods() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n });\n}\n\nfunction createShortMethodsWithData() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, data, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n });\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/axios.js\n ** module id = 1\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+');\n}\n\nmodule.exports = function buildUrl(url, params) {\n if (!params) {\n return url;\n }\n\n var parts = [];\n\n utils.forEach(params, function (val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n if (!utils.isArray(val)) {\n val = [val];\n }\n\n utils.forEach(val, function (v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n }\n else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n if (parts.length > 0) {\n url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&');\n }\n\n return url;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/buildUrl.js\n ** module id = 2\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nmodule.exports = {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/cookies.js\n ** module id = 3\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\nvar JSON_END = /[\\}\\]]\\s*$/;\nvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\nvar CONTENT_TYPE_APPLICATION_JSON = {\n 'Content-Type': 'application/json;charset=utf-8'\n};\n\nmodule.exports = {\n transformRequest: [function (data) {\n return utils.isObject(data) &&\n !utils.isFile(data) &&\n !utils.isBlob(data) ?\n JSON.stringify(data) : null;\n }],\n\n transformResponse: [function (data) {\n if (typeof data === 'string') {\n data = data.replace(PROTECTION_PREFIX, '');\n if (JSON_START.test(data) && JSON_END.test(data)) {\n data = JSON.parse(data);\n }\n }\n return data;\n }],\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n },\n patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n post: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n put: utils.merge(CONTENT_TYPE_APPLICATION_JSON)\n },\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN'\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/defaults.js\n ** module id = 4\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {}, key, val, i;\n\n if (!headers) return parsed;\n\n utils.forEach(headers.split('\\n'), function(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/parseHeaders.js\n ** module id = 5\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n utils.forEach(fns, function (fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/transformData.js\n ** module id = 6\n ** module chunks = 0\n **/","'use strict';\n\nvar msie = /(msie|trident)/i.test(navigator.userAgent);\nvar utils = require('./utils');\nvar urlParsingNode = document.createElement('a');\nvar originUrl = urlResolve(window.location.href);\n\n/**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\nfunction urlResolve(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/')\n ? urlParsingNode.pathname\n : '/' + urlParsingNode.pathname\n };\n}\n\n/**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestUrl The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\nmodule.exports = function urlIsSameOrigin(requestUrl) {\n var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n return (parsed.protocol === originUrl.protocol &&\n parsed.host === originUrl.host);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/urlIsSameOrigin.js\n ** module id = 7\n ** module chunks = 0\n **/","// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array or arguments callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Check if obj is array-like\n var isArray = obj.constructor === Array || typeof obj.callee === 'function';\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object' && !isArray) {\n obj = [obj];\n }\n\n // Iterate over array values\n if (isArray) {\n for (var i=0, l=obj.length; i 0) {\n var fn = queue.shift();\n fn();\n }\n }\n }, true);\n\n return function nextTick(fn) {\n queue.push(fn);\n window.postMessage('process-tick', '*');\n };\n }\n\n return function nextTick(fn) {\n setTimeout(fn, 0);\n };\n})();\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\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;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n}\n\n// TODO(shtylman)\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/process/browser.js\n ** module id = 19\n ** module chunks = 0\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/axios.js b/dist/axios.js index 78577c7..107f850 100644 --- a/dist/axios.js +++ b/dist/axios.js @@ -99,11 +99,14 @@ var axios = }; // Resolve or reject the Promise based on the status - if (request.status >= 200 && request.status < 300) { - resolve(response); - } else { - reject(response); - } + (request.status >= 200 && request.status < 300 + ? resolve + : reject)( + response.data, + response.status, + response.headers, + response.config + ); // Clean up request request = null; diff --git a/dist/axios.map b/dist/axios.map index 4ea7a74..62b2bc9 100644 --- a/dist/axios.map +++ b/dist/axios.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap dee23c3f6ec73b9e3f5a","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///./lib/buildUrl.js","webpack:///./lib/cookies.js","webpack:///./lib/defaults.js","webpack:///./lib/parseHeaders.js","webpack:///./lib/transformData.js","webpack:///./lib/urlIsSameOrigin.js","webpack:///./lib/utils.js","webpack:///./~/es6-promise/dist/commonjs/main.js","webpack:///./~/es6-promise/dist/commonjs/promise/promise.js","webpack:///./~/es6-promise/dist/commonjs/promise/polyfill.js","webpack:///./~/es6-promise/dist/commonjs/promise/config.js","webpack:///./~/es6-promise/dist/commonjs/promise/utils.js","webpack:///./~/es6-promise/dist/commonjs/promise/all.js","webpack:///./~/es6-promise/dist/commonjs/promise/race.js","webpack:///./~/es6-promise/dist/commonjs/promise/resolve.js","webpack:///./~/es6-promise/dist/commonjs/promise/reject.js","webpack:///./~/es6-promise/dist/commonjs/promise/asap.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js"],"names":[],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,wC;;;;;;;ACtCA,yC;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH,E;;;;;;ACxJA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;;AAEA;AACA,G;;;;;;AC5CA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qCAAoC;AACpC,IAAG;;AAEH;AACA,uDAAsD,wBAAwB;AAC9E;AACA,IAAG;;AAEH;AACA;AACA;AACA,G;;;;;;ACpCA;;AAEA;;AAEA,6BAA4B,IAAI;AAChC,oBAAmB;AACnB,iCAAgC;AAChC;AACA,qCAAoC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,G;;;;;;ACxCA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA,kBAAiB;;AAEjB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA,G;;;;;;ACjCA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,cAAc;AACzB,YAAW,MAAM;AACjB,YAAW,eAAe;AAC1B,cAAa,EAAE;AACf;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA,G;;;;;;AClBA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACjDA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,aAAa;AACxB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAA+B,KAAK;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,SAAS,GAAG,SAAS;AAC5C,4BAA2B;AAC3B;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACpKA;AACA;AACA;AACA;AACA,6B;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,qBAAoB;;AAEpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAiB,wBAAwB;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,yDAAwD;;AAExD;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,0BAAyB,aAAa;AACtC;;AAEA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT,0BAAyB,aAAa;AACtC;;AAEA;AACA,UAAS;;AAET;AACA;AACA;AACA,IAAG;AACH,oBAAmB,aAAa;AAChC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA,oCAAmC,QAAQ;AAC3C;AACA;;AAEA;AACA;;AAEA;AACA,oCAAmC,QAAQ;AAC3C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,2B;;;;;;AClNA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,aAAa,EAAE;AACpD;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA,6B;;;;;;;ACrCA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA,+B;;;;;;ACdA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mCAAkC,6BAA6B;;;AAG/D;AACA;AACA;AACA,mB;;;;;;ACrBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;;AAEA;AACA;AACA,WAAU,MAAM;AAChB,WAAU,OAAO;AACjB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,IAAG;AACH;;AAEA,mB;;;;;;AC5FA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA,WAAU,MAAM;AAChB,WAAU,OAAO;AACjB;AACA,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,IAAG;AACH;;AAEA,qB;;;;;;ACxFA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAG;AACH;;AAEA,2B;;;;;;ACdA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;;AAEA;AACA;AACA,WAAU,IAAI;AACd,WAAU,OAAO;AACjB;AACA,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;;AAEA,yB;;;;;;AC9CA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2BAA0B,sBAAsB;;AAEhD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,yCAAwC;AACxC;AACA,EAAC;AACD;AACA,EAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qB;;;;;;;AC5DA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA6B;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4BAA2B;AAC3B;AACA;AACA","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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap dee23c3f6ec73b9e3f5a\n **/","module.exports = require('./lib/axios');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./index.js\n ** module id = 0\n ** module chunks = 0\n **/","var Promise = require('es6-promise').Promise;\nvar buildUrl = require('./buildUrl');\nvar cookies = require('./cookies');\nvar defaults = require('./defaults');\nvar parseHeaders = require('./parseHeaders');\nvar transformData = require('./transformData');\nvar urlIsSameOrigin = require('./urlIsSameOrigin');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n transformRequest: defaults.transformRequest,\n transformResponse: defaults.transformResponse\n }, config);\n\n // Don't allow overriding defaults.withCredentials\n config.withCredentials = config.withCredentials || defaults.withCredentials;\n\n var promise = new Promise(function (resolve, reject) {\n // Create the request\n var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');\n var data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Open the request\n request.open(config.method, buildUrl(config.url, config.params), true);\n\n // Listen for ready state\n request.onreadystatechange = function () {\n if (request && request.readyState === 4) {\n // Prepare the response\n var headers = parseHeaders(request.getAllResponseHeaders());\n var response = {\n data: transformData(\n request.responseText,\n headers,\n config.transformResponse\n ),\n status: request.status,\n headers: headers,\n config: config\n };\n\n // Resolve or reject the Promise based on the status\n if (request.status >= 200 && request.status < 300) {\n resolve(response);\n } else {\n reject(response);\n }\n\n // Clean up request\n request = null;\n }\n };\n\n // Merge headers and add to request\n var headers = utils.merge(\n defaults.headers.common,\n defaults.headers[config.method] || {},\n config.headers || {}\n );\n\n // Add xsrf header\n var xsrfValue = urlIsSameOrigin(config.url)\n ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName)\n : undefined;\n if (xsrfValue) {\n headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;\n }\n\n utils.forEach(headers, function (val, key) {\n // Remove Content-Type if data is undefined\n if (!data && key.toLowerCase() === 'content-type') {\n delete headers[key];\n }\n // Otherwise add header to the request\n else {\n request.setRequestHeader(key, val);\n }\n });\n\n // Add withCredentials to request if needed\n if (config.withCredentials) {\n request.withCredentials = true;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n if (request.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Send the request\n request.send(data);\n });\n\n // Provide alias for success\n promise.success = function success(fn) {\n promise.then(function(response) {\n fn(response);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n promise.then(null, function(response) {\n fn(response);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Provide aliases for supported request methods\ncreateShortMethods('delete', 'get', 'head');\ncreateShortMethodsWithData('post', 'put', 'patch');\n\nfunction createShortMethods() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n });\n}\n\nfunction createShortMethodsWithData() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, data, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n });\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/axios.js\n ** module id = 1\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+');\n}\n\nmodule.exports = function buildUrl(url, params) {\n if (!params) {\n return url;\n }\n\n var parts = [];\n\n utils.forEach(params, function (val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n if (!utils.isArray(val)) {\n val = [val];\n }\n\n utils.forEach(val, function (v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n }\n else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n if (parts.length > 0) {\n url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&');\n }\n\n return url;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/buildUrl.js\n ** module id = 2\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nmodule.exports = {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/cookies.js\n ** module id = 3\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\nvar JSON_END = /[\\}\\]]\\s*$/;\nvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\nvar CONTENT_TYPE_APPLICATION_JSON = {\n 'Content-Type': 'application/json;charset=utf-8'\n};\n\nmodule.exports = {\n transformRequest: [function (data) {\n return utils.isObject(data) &&\n !utils.isFile(data) &&\n !utils.isBlob(data) ?\n JSON.stringify(data) : null;\n }],\n\n transformResponse: [function (data) {\n if (typeof data === 'string') {\n data = data.replace(PROTECTION_PREFIX, '');\n if (JSON_START.test(data) && JSON_END.test(data)) {\n data = JSON.parse(data);\n }\n }\n return data;\n }],\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n },\n patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n post: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n put: utils.merge(CONTENT_TYPE_APPLICATION_JSON)\n },\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN'\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/defaults.js\n ** module id = 4\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {}, key, val, i;\n\n if (!headers) return parsed;\n\n utils.forEach(headers.split('\\n'), function(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/parseHeaders.js\n ** module id = 5\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n utils.forEach(fns, function (fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/transformData.js\n ** module id = 6\n ** module chunks = 0\n **/","'use strict';\n\nvar msie = /(msie|trident)/i.test(navigator.userAgent);\nvar utils = require('./utils');\nvar urlParsingNode = document.createElement('a');\nvar originUrl = urlResolve(window.location.href);\n\n/**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\nfunction urlResolve(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/')\n ? urlParsingNode.pathname\n : '/' + urlParsingNode.pathname\n };\n}\n\n/**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestUrl The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\nmodule.exports = function urlIsSameOrigin(requestUrl) {\n var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n return (parsed.protocol === originUrl.protocol &&\n parsed.host === originUrl.host);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/urlIsSameOrigin.js\n ** module id = 7\n ** module chunks = 0\n **/","// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array or arguments callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Check if obj is array-like\n var isArray = obj.constructor === Array || typeof obj.callee === 'function';\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object' && !isArray) {\n obj = [obj];\n }\n\n // Iterate over array values\n if (isArray) {\n for (var i=0, l=obj.length; i 0) {\n var fn = queue.shift();\n fn();\n }\n }\n }, true);\n\n return function nextTick(fn) {\n queue.push(fn);\n window.postMessage('process-tick', '*');\n };\n }\n\n return function nextTick(fn) {\n setTimeout(fn, 0);\n };\n})();\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\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;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n}\n\n// TODO(shtylman)\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/process/browser.js\n ** module id = 19\n ** module chunks = 0\n **/"],"sourceRoot":"","file":"axios.js"} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap b8c3404e3a0bec691ce0","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///./lib/buildUrl.js","webpack:///./lib/cookies.js","webpack:///./lib/defaults.js","webpack:///./lib/parseHeaders.js","webpack:///./lib/transformData.js","webpack:///./lib/urlIsSameOrigin.js","webpack:///./lib/utils.js","webpack:///./~/es6-promise/dist/commonjs/main.js","webpack:///./~/es6-promise/dist/commonjs/promise/promise.js","webpack:///./~/es6-promise/dist/commonjs/promise/polyfill.js","webpack:///./~/es6-promise/dist/commonjs/promise/config.js","webpack:///./~/es6-promise/dist/commonjs/promise/utils.js","webpack:///./~/es6-promise/dist/commonjs/promise/all.js","webpack:///./~/es6-promise/dist/commonjs/promise/race.js","webpack:///./~/es6-promise/dist/commonjs/promise/resolve.js","webpack:///./~/es6-promise/dist/commonjs/promise/reject.js","webpack:///./~/es6-promise/dist/commonjs/promise/asap.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js"],"names":[],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,wC;;;;;;;ACtCA,yC;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH,E;;;;;;AC3JA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;;AAEA;AACA,G;;;;;;AC5CA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qCAAoC;AACpC,IAAG;;AAEH;AACA,uDAAsD,wBAAwB;AAC9E;AACA,IAAG;;AAEH;AACA;AACA;AACA,G;;;;;;ACpCA;;AAEA;;AAEA,6BAA4B,IAAI;AAChC,oBAAmB;AACnB,iCAAgC;AAChC;AACA,qCAAoC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,G;;;;;;ACxCA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA,kBAAiB;;AAEjB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA,G;;;;;;ACjCA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,cAAc;AACzB,YAAW,MAAM;AACjB,YAAW,eAAe;AAC1B,cAAa,EAAE;AACf;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA,G;;;;;;AClBA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACjDA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,aAAa;AACxB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAA+B,KAAK;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,SAAS,GAAG,SAAS;AAC5C,4BAA2B;AAC3B;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACpKA;AACA;AACA;AACA;AACA,6B;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,qBAAoB;;AAEpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAiB,wBAAwB;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,yDAAwD;;AAExD;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,0BAAyB,aAAa;AACtC;;AAEA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT,0BAAyB,aAAa;AACtC;;AAEA;AACA,UAAS;;AAET;AACA;AACA;AACA,IAAG;AACH,oBAAmB,aAAa;AAChC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA,oCAAmC,QAAQ;AAC3C;AACA;;AAEA;AACA;;AAEA;AACA,oCAAmC,QAAQ;AAC3C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,2B;;;;;;AClNA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,aAAa,EAAE;AACpD;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA,6B;;;;;;;ACrCA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA,+B;;;;;;ACdA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mCAAkC,6BAA6B;;;AAG/D;AACA;AACA;AACA,mB;;;;;;ACrBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;;AAEA;AACA;AACA,WAAU,MAAM;AAChB,WAAU,OAAO;AACjB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,IAAG;AACH;;AAEA,mB;;;;;;AC5FA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA,WAAU,MAAM;AAChB,WAAU,OAAO;AACjB;AACA,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,IAAG;AACH;;AAEA,qB;;;;;;ACxFA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAG;AACH;;AAEA,2B;;;;;;ACdA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;;AAEA;AACA;AACA,WAAU,IAAI;AACd,WAAU,OAAO;AACjB;AACA,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;;AAEA,yB;;;;;;AC9CA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2BAA0B,sBAAsB;;AAEhD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,yCAAwC;AACxC;AACA,EAAC;AACD;AACA,EAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qB;;;;;;;AC5DA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA6B;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4BAA2B;AAC3B;AACA;AACA","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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap b8c3404e3a0bec691ce0\n **/","module.exports = require('./lib/axios');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./index.js\n ** module id = 0\n ** module chunks = 0\n **/","var Promise = require('es6-promise').Promise;\nvar buildUrl = require('./buildUrl');\nvar cookies = require('./cookies');\nvar defaults = require('./defaults');\nvar parseHeaders = require('./parseHeaders');\nvar transformData = require('./transformData');\nvar urlIsSameOrigin = require('./urlIsSameOrigin');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n transformRequest: defaults.transformRequest,\n transformResponse: defaults.transformResponse\n }, config);\n\n // Don't allow overriding defaults.withCredentials\n config.withCredentials = config.withCredentials || defaults.withCredentials;\n\n var promise = new Promise(function (resolve, reject) {\n // Create the request\n var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');\n var data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Open the request\n request.open(config.method, buildUrl(config.url, config.params), true);\n\n // Listen for ready state\n request.onreadystatechange = function () {\n if (request && request.readyState === 4) {\n // Prepare the response\n var headers = parseHeaders(request.getAllResponseHeaders());\n var response = {\n data: transformData(\n request.responseText,\n headers,\n config.transformResponse\n ),\n status: request.status,\n headers: headers,\n config: config\n };\n\n // Resolve or reject the Promise based on the status\n (request.status >= 200 && request.status < 300\n ? resolve\n : reject)(\n response.data,\n response.status,\n response.headers,\n response.config\n );\n\n // Clean up request\n request = null;\n }\n };\n\n // Merge headers and add to request\n var headers = utils.merge(\n defaults.headers.common,\n defaults.headers[config.method] || {},\n config.headers || {}\n );\n\n // Add xsrf header\n var xsrfValue = urlIsSameOrigin(config.url)\n ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName)\n : undefined;\n if (xsrfValue) {\n headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;\n }\n\n utils.forEach(headers, function (val, key) {\n // Remove Content-Type if data is undefined\n if (!data && key.toLowerCase() === 'content-type') {\n delete headers[key];\n }\n // Otherwise add header to the request\n else {\n request.setRequestHeader(key, val);\n }\n });\n\n // Add withCredentials to request if needed\n if (config.withCredentials) {\n request.withCredentials = true;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n if (request.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Send the request\n request.send(data);\n });\n\n // Provide alias for success\n promise.success = function success(fn) {\n promise.then(function(response) {\n fn(response);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n promise.then(null, function(response) {\n fn(response);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Provide aliases for supported request methods\ncreateShortMethods('delete', 'get', 'head');\ncreateShortMethodsWithData('post', 'put', 'patch');\n\nfunction createShortMethods() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n });\n}\n\nfunction createShortMethodsWithData() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, data, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n });\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/axios.js\n ** module id = 1\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+');\n}\n\nmodule.exports = function buildUrl(url, params) {\n if (!params) {\n return url;\n }\n\n var parts = [];\n\n utils.forEach(params, function (val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n if (!utils.isArray(val)) {\n val = [val];\n }\n\n utils.forEach(val, function (v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n }\n else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n if (parts.length > 0) {\n url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&');\n }\n\n return url;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/buildUrl.js\n ** module id = 2\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nmodule.exports = {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/cookies.js\n ** module id = 3\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\nvar JSON_END = /[\\}\\]]\\s*$/;\nvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\nvar CONTENT_TYPE_APPLICATION_JSON = {\n 'Content-Type': 'application/json;charset=utf-8'\n};\n\nmodule.exports = {\n transformRequest: [function (data) {\n return utils.isObject(data) &&\n !utils.isFile(data) &&\n !utils.isBlob(data) ?\n JSON.stringify(data) : null;\n }],\n\n transformResponse: [function (data) {\n if (typeof data === 'string') {\n data = data.replace(PROTECTION_PREFIX, '');\n if (JSON_START.test(data) && JSON_END.test(data)) {\n data = JSON.parse(data);\n }\n }\n return data;\n }],\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n },\n patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n post: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n put: utils.merge(CONTENT_TYPE_APPLICATION_JSON)\n },\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN'\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/defaults.js\n ** module id = 4\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {}, key, val, i;\n\n if (!headers) return parsed;\n\n utils.forEach(headers.split('\\n'), function(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/parseHeaders.js\n ** module id = 5\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n utils.forEach(fns, function (fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/transformData.js\n ** module id = 6\n ** module chunks = 0\n **/","'use strict';\n\nvar msie = /(msie|trident)/i.test(navigator.userAgent);\nvar utils = require('./utils');\nvar urlParsingNode = document.createElement('a');\nvar originUrl = urlResolve(window.location.href);\n\n/**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\nfunction urlResolve(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/')\n ? urlParsingNode.pathname\n : '/' + urlParsingNode.pathname\n };\n}\n\n/**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestUrl The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\nmodule.exports = function urlIsSameOrigin(requestUrl) {\n var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n return (parsed.protocol === originUrl.protocol &&\n parsed.host === originUrl.host);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/urlIsSameOrigin.js\n ** module id = 7\n ** module chunks = 0\n **/","// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array or arguments callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Check if obj is array-like\n var isArray = obj.constructor === Array || typeof obj.callee === 'function';\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object' && !isArray) {\n obj = [obj];\n }\n\n // Iterate over array values\n if (isArray) {\n for (var i=0, l=obj.length; i 0) {\n var fn = queue.shift();\n fn();\n }\n }\n }, true);\n\n return function nextTick(fn) {\n queue.push(fn);\n window.postMessage('process-tick', '*');\n };\n }\n\n return function nextTick(fn) {\n setTimeout(fn, 0);\n };\n})();\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\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;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n}\n\n// TODO(shtylman)\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/process/browser.js\n ** module id = 19\n ** module chunks = 0\n **/"],"sourceRoot":"","file":"axios.js"} \ No newline at end of file diff --git a/dist/axios.min.js b/dist/axios.min.js index 8fdd7a7..1ab1d2c 100644 --- a/dist/axios.min.js +++ b/dist/axios.min.js @@ -1,3 +1,3 @@ /* axios v0.0.0 | (c) 2014 by Matt Zabriskie */ -var axios=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){function r(){p.forEach(arguments,function(t){h[t]=function(e,n){return h(p.merge(n||{},{method:t,url:e}))}})}function o(){p.forEach(arguments,function(t){h[t]=function(e,n,r){return h(p.merge(r||{},{method:t,url:e,data:n}))}})}var i=n(9).Promise,s=n(2),c=n(3),u=n(4),a=n(5),f=n(6),l=n(7),p=n(8),h=t.exports=function(t){t=p.merge({method:"get",transformRequest:u.transformRequest,transformResponse:u.transformResponse},t),t.withCredentials=t.withCredentials||u.withCredentials;var e=new i(function(e,n){var r=new(XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP"),o=f(t.data,t.headers,t.transformRequest);r.open(t.method,s(t.url,t.params),!0),r.onreadystatechange=function(){if(r&&4===r.readyState){var o=a(r.getAllResponseHeaders()),i={data:f(r.responseText,o,t.transformResponse),status:r.status,headers:o,config:t};r.status>=200&&r.status<300?e(i):n(i),r=null}};var i=p.merge(u.headers.common,u.headers[t.method]||{},t.headers||{}),h=l(t.url)?c.read(t.xsrfCookieName||u.xsrfCookieName):void 0;if(h&&(i[t.xsrfHeaderName||u.xsrfHeaderName]=h),p.forEach(i,function(t,e){o||"content-type"!==e.toLowerCase()?r.setRequestHeader(e,t):delete i[e]}),t.withCredentials&&(r.withCredentials=!0),t.responseType)try{r.responseType=t.responseType}catch(d){if("json"!==r.responseType)throw d}r.send(o)});return e.success=function(t){return e.then(function(e){t(e)}),e},e.error=function(t){return e.then(null,function(e){t(e)}),e},e};h.defaults=u,r("delete","get","head"),o("post","put","patch")},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}var o=n(8);t.exports=function(t,e){if(!e)return t;var n=[];return o.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(o.isArray(t)||(t=[t]),o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),n.push(r(e)+"="+r(t))}))}),n.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+n.join("&")),t}},function(t,e,n){"use strict";var r=n(8);t.exports={write:function(t,e,n,o,i,s){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}},function(t,e,n){"use strict";var r=n(8),o=/^\s*(\[|\{[^\{])/,i=/[\}\]]\s*$/,s=/^\)\]\}',?\n/,c={"Content-Type":"application/json;charset=utf-8"};t.exports={transformRequest:[function(t){return!r.isObject(t)||r.isFile(t)||r.isBlob(t)?null:JSON.stringify(t)}],transformResponse:[function(t){return"string"==typeof t&&(t=t.replace(s,""),o.test(t)&&i.test(t)&&(t=JSON.parse(t))),t}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(c),post:r.merge(c),put:r.merge(c)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t){var e,n,o,i={};return t?(r.forEach(t.split("\n"),function(t){o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e&&(i[e]=i[e]?i[e]+", "+n:n)}),i):i}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";function r(t){var e=t;return o&&(s.setAttribute("href",e),e=s.href),s.setAttribute("href",e),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}var o=/(msie|trident)/i.test(navigator.userAgent),i=n(8),s=document.createElement("a"),c=r(window.location.href);t.exports=function(t){var e=i.isString(t)?r(t):t;return e.protocol===c.protocol&&e.host===c.host}},function(t){function e(t){return"[object Array]"===l.call(t)}function n(t){return"string"==typeof t}function r(t){return"number"==typeof t}function o(t){return null!==t&&"object"==typeof t}function i(t){return"[object Date]"===l.call(t)}function s(t){return"[object File]"===l.call(t)}function c(t){return"[object Blob]"===l.call(t)}function u(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function a(t,e){if(null!==t&&"undefined"!=typeof t){var n=t.constructor===Array||"function"==typeof t.callee;if("object"==typeof t||n||(t=[t]),n)for(var r=0,o=t.length;o>r;r++)e.call(null,t[r],r,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(null,t[i],i,t)}}function f(){var t={};return a(arguments,function(e){a(e,function(e,n){t[n]=e})}),t}var l=Object.prototype.toString;t.exports={isArray:e,isString:n,isNumber:r,isObject:o,isDate:i,isFile:s,isBlob:c,forEach:a,merge:f,trim:u}},function(t,e,n){"use strict";var r=n(10).Promise,o=n(11).polyfill;e.Promise=r,e.polyfill=o},function(t,e,n){"use strict";function r(t){if(!v(t))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof r))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._subscribers=[],o(t,this)}function o(t,e){function n(t){a(e,t)}function r(t){l(e,t)}try{t(n,r)}catch(o){r(o)}}function i(t,e,n,r){var o,i,s,c,f=v(n);if(f)try{o=n(r),s=!0}catch(p){c=!0,i=p}else o=r,s=!0;u(e,o)||(f&&s?a(e,o):c?l(e,i):t===E?a(e,o):t===_&&l(e,o))}function s(t,e,n,r){var o=t._subscribers,i=o.length;o[i]=e,o[i+E]=n,o[i+_]=r}function c(t,e){for(var n,r,o=t._subscribers,s=t._detail,c=0;c0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=e,n.addListener=e,n.once=e,n.off=e,n.removeListener=e,n.removeAllListeners=e,n.emit=e,n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}}]); +var axios=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){function r(){p.forEach(arguments,function(t){h[t]=function(e,n){return h(p.merge(n||{},{method:t,url:e}))}})}function o(){p.forEach(arguments,function(t){h[t]=function(e,n,r){return h(p.merge(r||{},{method:t,url:e,data:n}))}})}var i=n(9).Promise,s=n(2),c=n(3),u=n(4),a=n(5),f=n(6),l=n(7),p=n(8),h=t.exports=function(t){t=p.merge({method:"get",transformRequest:u.transformRequest,transformResponse:u.transformResponse},t),t.withCredentials=t.withCredentials||u.withCredentials;var e=new i(function(e,n){var r=new(XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP"),o=f(t.data,t.headers,t.transformRequest);r.open(t.method,s(t.url,t.params),!0),r.onreadystatechange=function(){if(r&&4===r.readyState){var o=a(r.getAllResponseHeaders()),i={data:f(r.responseText,o,t.transformResponse),status:r.status,headers:o,config:t};(r.status>=200&&r.status<300?e:n)(i.data,i.status,i.headers,i.config),r=null}};var i=p.merge(u.headers.common,u.headers[t.method]||{},t.headers||{}),h=l(t.url)?c.read(t.xsrfCookieName||u.xsrfCookieName):void 0;if(h&&(i[t.xsrfHeaderName||u.xsrfHeaderName]=h),p.forEach(i,function(t,e){o||"content-type"!==e.toLowerCase()?r.setRequestHeader(e,t):delete i[e]}),t.withCredentials&&(r.withCredentials=!0),t.responseType)try{r.responseType=t.responseType}catch(d){if("json"!==r.responseType)throw d}r.send(o)});return e.success=function(t){return e.then(function(e){t(e)}),e},e.error=function(t){return e.then(null,function(e){t(e)}),e},e};h.defaults=u,r("delete","get","head"),o("post","put","patch")},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}var o=n(8);t.exports=function(t,e){if(!e)return t;var n=[];return o.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(o.isArray(t)||(t=[t]),o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),n.push(r(e)+"="+r(t))}))}),n.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+n.join("&")),t}},function(t,e,n){"use strict";var r=n(8);t.exports={write:function(t,e,n,o,i,s){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}},function(t,e,n){"use strict";var r=n(8),o=/^\s*(\[|\{[^\{])/,i=/[\}\]]\s*$/,s=/^\)\]\}',?\n/,c={"Content-Type":"application/json;charset=utf-8"};t.exports={transformRequest:[function(t){return!r.isObject(t)||r.isFile(t)||r.isBlob(t)?null:JSON.stringify(t)}],transformResponse:[function(t){return"string"==typeof t&&(t=t.replace(s,""),o.test(t)&&i.test(t)&&(t=JSON.parse(t))),t}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(c),post:r.merge(c),put:r.merge(c)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t){var e,n,o,i={};return t?(r.forEach(t.split("\n"),function(t){o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e&&(i[e]=i[e]?i[e]+", "+n:n)}),i):i}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";function r(t){var e=t;return o&&(s.setAttribute("href",e),e=s.href),s.setAttribute("href",e),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}var o=/(msie|trident)/i.test(navigator.userAgent),i=n(8),s=document.createElement("a"),c=r(window.location.href);t.exports=function(t){var e=i.isString(t)?r(t):t;return e.protocol===c.protocol&&e.host===c.host}},function(t){function e(t){return"[object Array]"===l.call(t)}function n(t){return"string"==typeof t}function r(t){return"number"==typeof t}function o(t){return null!==t&&"object"==typeof t}function i(t){return"[object Date]"===l.call(t)}function s(t){return"[object File]"===l.call(t)}function c(t){return"[object Blob]"===l.call(t)}function u(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function a(t,e){if(null!==t&&"undefined"!=typeof t){var n=t.constructor===Array||"function"==typeof t.callee;if("object"==typeof t||n||(t=[t]),n)for(var r=0,o=t.length;o>r;r++)e.call(null,t[r],r,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(null,t[i],i,t)}}function f(){var t={};return a(arguments,function(e){a(e,function(e,n){t[n]=e})}),t}var l=Object.prototype.toString;t.exports={isArray:e,isString:n,isNumber:r,isObject:o,isDate:i,isFile:s,isBlob:c,forEach:a,merge:f,trim:u}},function(t,e,n){"use strict";var r=n(10).Promise,o=n(11).polyfill;e.Promise=r,e.polyfill=o},function(t,e,n){"use strict";function r(t){if(!v(t))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof r))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._subscribers=[],o(t,this)}function o(t,e){function n(t){a(e,t)}function r(t){l(e,t)}try{t(n,r)}catch(o){r(o)}}function i(t,e,n,r){var o,i,s,c,f=v(n);if(f)try{o=n(r),s=!0}catch(p){c=!0,i=p}else o=r,s=!0;u(e,o)||(f&&s?a(e,o):c?l(e,i):t===E?a(e,o):t===_&&l(e,o))}function s(t,e,n,r){var o=t._subscribers,i=o.length;o[i]=e,o[i+E]=n,o[i+_]=r}function c(t,e){for(var n,r,o=t._subscribers,s=t._detail,c=0;c0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=e,n.addListener=e,n.once=e,n.off=e,n.removeListener=e,n.removeAllListeners=e,n.emit=e,n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}}]); //# sourceMappingURL=axios.min.map \ No newline at end of file diff --git a/dist/axios.min.map b/dist/axios.min.map index e93a21b..e602c61 100644 --- a/dist/axios.min.map +++ b/dist/axios.min.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///axios.min.js","webpack:///webpack/bootstrap 9c5af844105ae4e391aa","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///./lib/buildUrl.js","webpack:///./lib/cookies.js","webpack:///./lib/defaults.js","webpack:///./lib/parseHeaders.js","webpack:///./lib/transformData.js","webpack:///./lib/urlIsSameOrigin.js","webpack:///./lib/utils.js","webpack:///./~/es6-promise/dist/commonjs/main.js","webpack:///./~/es6-promise/dist/commonjs/promise/promise.js","webpack:///./~/es6-promise/dist/commonjs/promise/polyfill.js","webpack:///./~/es6-promise/dist/commonjs/promise/config.js","webpack:///./~/es6-promise/dist/commonjs/promise/utils.js","webpack:///./~/es6-promise/dist/commonjs/promise/all.js","webpack:///./~/es6-promise/dist/commonjs/promise/race.js","webpack:///./~/es6-promise/dist/commonjs/promise/resolve.js","webpack:///./~/es6-promise/dist/commonjs/promise/reject.js","webpack:///./~/es6-promise/dist/commonjs/promise/asap.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js"],"names":["axios","modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","createShortMethods","utils","forEach","arguments","method","url","config","merge","createShortMethodsWithData","data","Promise","buildUrl","cookies","defaults","parseHeaders","transformData","urlIsSameOrigin","transformRequest","transformResponse","withCredentials","promise","resolve","reject","request","XMLHttpRequest","ActiveXObject","headers","open","params","onreadystatechange","readyState","getAllResponseHeaders","response","responseText","status","common","xsrfValue","read","xsrfCookieName","undefined","xsrfHeaderName","val","key","toLowerCase","setRequestHeader","responseType","e","send","success","fn","then","error","encode","encodeURIComponent","replace","parts","isArray","v","isDate","toISOString","isObject","JSON","stringify","push","length","indexOf","join","write","name","value","expires","path","domain","secure","cookie","isNumber","Date","toGMTString","isString","document","match","RegExp","decodeURIComponent","remove","this","now","JSON_START","JSON_END","PROTECTION_PREFIX","CONTENT_TYPE_APPLICATION_JSON","Content-Type","isFile","isBlob","test","parse","Accept","patch","post","put","i","parsed","split","line","trim","substr","fns","urlResolve","href","msie","urlParsingNode","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","navigator","userAgent","createElement","originUrl","window","location","requestUrl","toString","str","obj","constructor","Array","callee","l","hasOwnProperty","result","Object","prototype","polyfill","resolver","isFunction","TypeError","_subscribers","invokeResolver","resolvePromise","rejectPromise","reason","invokeCallback","settled","callback","detail","succeeded","failed","hasCallback","handleThenable","FULFILLED","REJECTED","subscribe","parent","child","onFulfillment","onRejection","subscribers","publish","_detail","resolved","objectOrFunction","fulfill","_state","PENDING","SEALED","async","publishFulfillment","publishRejection","configure","all","race","staticResolve","staticReject","asap","thenPromise","callbacks","catch","global","local","self","es6PromiseSupport","r","RSVPPromise","instrument","x","getTime","promises","index","resolveAll","results","remaining","process","useNextTick","nextTick","flush","useMutationObserver","iterations","observer","BrowserMutationObserver","node","createTextNode","observe","characterData","useSetTimeout","setTimeout","queue","tuple","arg","scheduleFlush","browserGlobal","MutationObserver","WebKitMutationObserver","noop","canSetImmediate","setImmediate","canPost","postMessage","addEventListener","f","ev","source","stopPropagation","shift","title","browser","env","argv","on","addListener","once","off","removeListener","removeAllListeners","emit","binding","Error","cwd","chdir"],"mappings":"AAAA,GAAIA,OACK,SAAUC,GCGnB,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAE,WACAE,GAAAJ,EACAK,QAAA,EAUA,OANAP,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,QAAA,EAGAF,EAAAD,QAvBA,GAAAD,KAqCA,OATAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAAU,EAAA,GAGAV,EAAA,KDOM,SAASI,EAAQD,EAASH,GE7ChCI,EAAAD,QAAAH,EAAA,IFmDM,SAASI,EAAQD,EAASH,GGgFhC,QAAAW,KACAC,EAAAC,QAAAC,UAAA,SAAAC,GACAjB,EAAAiB,GAAA,SAAAC,EAAAC,GACA,MAAAnB,GAAAc,EAAAM,MAAAD,OACAF,SACAC,YAMA,QAAAG,KACAP,EAAAC,QAAAC,UAAA,SAAAC,GACAjB,EAAAiB,GAAA,SAAAC,EAAAI,EAAAH,GACA,MAAA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a,MAAO4F,SAAY/F,EAAoB,MAI3F,SAASI,GqBvtCf,QAAAgO,MA1CA,GAAArB,GAAA3M,EAAAD,UAEA4M,GAAAE,SAAA,WACA,GAAAoB,GAAA,mBAAA/F,SACAA,OAAAgG,aACAC,EAAA,mBAAAjG,SACAA,OAAAkG,aAAAlG,OAAAmG,gBAGA,IAAAJ,EACA,gBAAAK,GAA6B,MAAApG,QAAAgG,aAAAI,GAG7B,IAAAH,EAAA,CACA,GAAAV,KAYA,OAXAvF,QAAAmG,iBAAA,mBAAAE,GACA,GAAAC,GAAAD,EAAAC,MACA,KAAAA,IAAAtG,QAAA,OAAAsG,IAAA,iBAAAD,EAAAvN,OACAuN,EAAAE,kBACAhB,EAAAlJ,OAAA,IACA,GAAAf,GAAAiK,EAAAiB,OACAlL,QAGS,GAET,SAAAA,GACAiK,EAAAnJ,KAAAd,GACA0E,OAAAkG,YAAA,qBAIA,gBAAA5K,GACAgK,WAAAhK,EAAA,OAIAmJ,EAAAgC,MAAA,UACAhC,EAAAiC,SAAA,EACAjC,EAAAkC,OACAlC,EAAAmC,QAIAnC,EAAAoC,GAAAf,EACArB,EAAAqC,YAAAhB,EACArB,EAAAsC,KAAAjB,EACArB,EAAAuC,IAAAlB,EACArB,EAAAwC,eAAAnB,EACArB,EAAAyC,mBAAApB,EACArB,EAAA0C,KAAArB,EAEArB,EAAA2C,QAAA,WACA,SAAAC,OAAA,qCAIA5C,EAAA6C,IAAA,WAA2B,WAC3B7C,EAAA8C,MAAA,WACA,SAAAF,OAAA","file":"axios.min.js","sourcesContent":["var axios =\n/******/ (function(modules) { // webpackBootstrap\n/******/ \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/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(1);\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Promise = __webpack_require__(9).Promise;\n\tvar buildUrl = __webpack_require__(2);\n\tvar cookies = __webpack_require__(3);\n\tvar defaults = __webpack_require__(4);\n\tvar parseHeaders = __webpack_require__(5);\n\tvar transformData = __webpack_require__(6);\n\tvar urlIsSameOrigin = __webpack_require__(7);\n\tvar utils = __webpack_require__(8);\n\t\n\tvar axios = module.exports = function axios(config) {\n\t config = utils.merge({\n\t method: 'get',\n\t transformRequest: defaults.transformRequest,\n\t transformResponse: defaults.transformResponse\n\t }, config);\n\t\n\t // Don't allow overriding defaults.withCredentials\n\t config.withCredentials = config.withCredentials || defaults.withCredentials;\n\t\n\t var promise = new Promise(function (resolve, reject) {\n\t // Create the request\n\t var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');\n\t var data = transformData(\n\t config.data,\n\t config.headers,\n\t config.transformRequest\n\t );\n\t\n\t // Open the request\n\t request.open(config.method, buildUrl(config.url, config.params), true);\n\t\n\t // Listen for ready state\n\t request.onreadystatechange = function () {\n\t if (request && request.readyState === 4) {\n\t // Prepare the response\n\t var headers = parseHeaders(request.getAllResponseHeaders());\n\t var response = {\n\t data: transformData(\n\t request.responseText,\n\t headers,\n\t config.transformResponse\n\t ),\n\t status: request.status,\n\t headers: headers,\n\t config: config\n\t };\n\t\n\t // Resolve or reject the Promise based on the status\n\t if (request.status >= 200 && request.status < 300) {\n\t resolve(response);\n\t } else {\n\t reject(response);\n\t }\n\t\n\t // Clean up request\n\t request = null;\n\t }\n\t };\n\t\n\t // Merge headers and add to request\n\t var headers = utils.merge(\n\t defaults.headers.common,\n\t defaults.headers[config.method] || {},\n\t config.headers || {}\n\t );\n\t\n\t // Add xsrf header\n\t var xsrfValue = urlIsSameOrigin(config.url)\n\t ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName)\n\t : undefined;\n\t if (xsrfValue) {\n\t headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;\n\t }\n\t\n\t utils.forEach(headers, function (val, key) {\n\t // Remove Content-Type if data is undefined\n\t if (!data && key.toLowerCase() === 'content-type') {\n\t delete headers[key];\n\t }\n\t // Otherwise add header to the request\n\t else {\n\t request.setRequestHeader(key, val);\n\t }\n\t });\n\t\n\t // Add withCredentials to request if needed\n\t if (config.withCredentials) {\n\t request.withCredentials = true;\n\t }\n\t\n\t // Add responseType to request if needed\n\t if (config.responseType) {\n\t try {\n\t request.responseType = config.responseType;\n\t } catch (e) {\n\t if (request.responseType !== 'json') {\n\t throw e;\n\t }\n\t }\n\t }\n\t\n\t // Send the request\n\t request.send(data);\n\t });\n\t\n\t // Provide alias for success\n\t promise.success = function success(fn) {\n\t promise.then(function(response) {\n\t fn(response);\n\t });\n\t return promise;\n\t };\n\t\n\t // Provide alias for error\n\t promise.error = function error(fn) {\n\t promise.then(null, function(response) {\n\t fn(response);\n\t });\n\t return promise;\n\t };\n\t\n\t return promise;\n\t};\n\t\n\t// Expose defaults\n\taxios.defaults = defaults;\n\t\n\t// Provide aliases for supported request methods\n\tcreateShortMethods('delete', 'get', 'head');\n\tcreateShortMethodsWithData('post', 'put', 'patch');\n\t\n\tfunction createShortMethods() {\n\t utils.forEach(arguments, function (method) {\n\t axios[method] = function (url, config) {\n\t return axios(utils.merge(config || {}, {\n\t method: method,\n\t url: url\n\t }));\n\t };\n\t });\n\t}\n\t\n\tfunction createShortMethodsWithData() {\n\t utils.forEach(arguments, function (method) {\n\t axios[method] = function (url, data, config) {\n\t return axios(utils.merge(config || {}, {\n\t method: method,\n\t url: url,\n\t data: data\n\t }));\n\t };\n\t });\n\t}\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tfunction encode(val) {\n\t return encodeURIComponent(val).\n\t replace(/%40/gi, '@').\n\t replace(/%3A/gi, ':').\n\t replace(/%24/g, '$').\n\t replace(/%2C/gi, ',').\n\t replace(/%20/g, '+');\n\t}\n\t\n\tmodule.exports = function buildUrl(url, params) {\n\t if (!params) {\n\t return url;\n\t }\n\t\n\t var parts = [];\n\t\n\t utils.forEach(params, function (val, key) {\n\t if (val === null || typeof val === 'undefined') {\n\t return;\n\t }\n\t if (!utils.isArray(val)) {\n\t val = [val];\n\t }\n\t\n\t utils.forEach(val, function (v) {\n\t if (utils.isDate(v)) {\n\t v = v.toISOString();\n\t }\n\t else if (utils.isObject(v)) {\n\t v = JSON.stringify(v);\n\t }\n\t parts.push(encode(key) + '=' + encode(v));\n\t });\n\t });\n\t\n\t if (parts.length > 0) {\n\t url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&');\n\t }\n\t\n\t return url;\n\t};\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tmodule.exports = {\n\t write: function write(name, value, expires, path, domain, secure) {\n\t var cookie = [];\n\t cookie.push(name + '=' + encodeURIComponent(value));\n\t\n\t if (utils.isNumber(expires)) {\n\t cookie.push('expires=' + new Date(expires).toGMTString());\n\t }\n\t\n\t if (utils.isString(path)) {\n\t cookie.push('path=' + path);\n\t }\n\t\n\t if (utils.isString(domain)) {\n\t cookie.push('domain=' + domain);\n\t }\n\t\n\t if (secure === true) {\n\t cookie.push('secure');\n\t }\n\t\n\t document.cookie = cookie.join('; ');\n\t },\n\t\n\t read: function read(name) {\n\t var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n\t return (match ? decodeURIComponent(match[3]) : null);\n\t },\n\t\n\t remove: function remove(name) {\n\t this.write(name, '', Date.now() - 86400000);\n\t }\n\t};\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\n\tvar JSON_END = /[\\}\\]]\\s*$/;\n\tvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\n\tvar CONTENT_TYPE_APPLICATION_JSON = {\n\t 'Content-Type': 'application/json;charset=utf-8'\n\t};\n\t\n\tmodule.exports = {\n\t transformRequest: [function (data) {\n\t return utils.isObject(data) &&\n\t !utils.isFile(data) &&\n\t !utils.isBlob(data) ?\n\t JSON.stringify(data) : null;\n\t }],\n\t\n\t transformResponse: [function (data) {\n\t if (typeof data === 'string') {\n\t data = data.replace(PROTECTION_PREFIX, '');\n\t if (JSON_START.test(data) && JSON_END.test(data)) {\n\t data = JSON.parse(data);\n\t }\n\t }\n\t return data;\n\t }],\n\t\n\t headers: {\n\t common: {\n\t 'Accept': 'application/json, text/plain, */*'\n\t },\n\t patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n\t post: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n\t put: utils.merge(CONTENT_TYPE_APPLICATION_JSON)\n\t },\n\t\n\t xsrfCookieName: 'XSRF-TOKEN',\n\t xsrfHeaderName: 'X-XSRF-TOKEN'\n\t};\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\t/**\n\t * Parse headers into an object\n\t *\n\t * ```\n\t * Date: Wed, 27 Aug 2014 08:58:49 GMT\n\t * Content-Type: application/json\n\t * Connection: keep-alive\n\t * Transfer-Encoding: chunked\n\t * ```\n\t *\n\t * @param {String} headers Headers needing to be parsed\n\t * @returns {Object} Headers parsed into an object\n\t */\n\tmodule.exports = function parseHeaders(headers) {\n\t var parsed = {}, key, val, i;\n\t\n\t if (!headers) return parsed;\n\t\n\t utils.forEach(headers.split('\\n'), function(line) {\n\t i = line.indexOf(':');\n\t key = utils.trim(line.substr(0, i)).toLowerCase();\n\t val = utils.trim(line.substr(i + 1));\n\t\n\t if (key) {\n\t parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n\t }\n\t });\n\t\n\t return parsed;\n\t};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\t/**\n\t * Transform the data for a request or a response\n\t *\n\t * @param {Object|String} data The data to be transformed\n\t * @param {Array} headers The headers for the request or response\n\t * @param {Array|Function} fns A single function or Array of functions\n\t * @returns {*} The resulting transformed data\n\t */\n\tmodule.exports = function transformData(data, headers, fns) {\n\t utils.forEach(fns, function (fn) {\n\t data = fn(data, headers);\n\t });\n\t\n\t return data;\n\t};\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar msie = /(msie|trident)/i.test(navigator.userAgent);\n\tvar utils = __webpack_require__(8);\n\tvar urlParsingNode = document.createElement('a');\n\tvar originUrl = urlResolve(window.location.href);\n\t\n\t/**\n\t * Parse a URL to discover it's components\n\t *\n\t * @param {String} url The URL to be parsed\n\t * @returns {Object}\n\t */\n\tfunction urlResolve(url) {\n\t var href = url;\n\t\n\t if (msie) {\n\t // IE needs attribute set twice to normalize properties\n\t urlParsingNode.setAttribute('href', href);\n\t href = urlParsingNode.href;\n\t }\n\t\n\t urlParsingNode.setAttribute('href', href);\n\t\n\t // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n\t return {\n\t href: urlParsingNode.href,\n\t protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n\t host: urlParsingNode.host,\n\t search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n\t hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n\t hostname: urlParsingNode.hostname,\n\t port: urlParsingNode.port,\n\t pathname: (urlParsingNode.pathname.charAt(0) === '/')\n\t ? urlParsingNode.pathname\n\t : '/' + urlParsingNode.pathname\n\t };\n\t}\n\t\n\t/**\n\t * Determine if a URL shares the same origin as the current location\n\t *\n\t * @param {String} requestUrl The URL to test\n\t * @returns {boolean} True if URL shares the same origin, otherwise false\n\t */\n\tmodule.exports = function urlIsSameOrigin(requestUrl) {\n\t var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n\t return (parsed.protocol === originUrl.protocol &&\n\t parsed.host === originUrl.host);\n\t};\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// utils is a library of generic helper functions non-specific to axios\n\t\n\tvar toString = Object.prototype.toString;\n\t\n\t/**\n\t * Determine if a value is an Array\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is an Array, otherwise false\n\t */\n\tfunction isArray(val) {\n\t return toString.call(val) === '[object Array]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a String\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a String, otherwise false\n\t */\n\tfunction isString(val) {\n\t return typeof val === 'string';\n\t}\n\t\n\t/**\n\t * Determine if a value is a Number\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a Number, otherwise false\n\t */\n\tfunction isNumber(val) {\n\t return typeof val === 'number';\n\t}\n\t\n\t/**\n\t * Determine if a value is an Object\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is an Object, otherwise false\n\t */\n\tfunction isObject(val) {\n\t return val !== null && typeof val === 'object';\n\t}\n\t\n\t/**\n\t * Determine if a value is a Date\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a Date, otherwise false\n\t */\n\tfunction isDate(val) {\n\t return toString.call(val) === '[object Date]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a File\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a File, otherwise false\n\t */\n\tfunction isFile(val) {\n\t return toString.call(val) === '[object File]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a Blob\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a Blob, otherwise false\n\t */\n\tfunction isBlob(val) {\n\t return toString.call(val) === '[object Blob]';\n\t}\n\t\n\t/**\n\t * Trim excess whitespace off the beginning and end of a string\n\t *\n\t * @param {String} str The String to trim\n\t * @returns {String} The String freed of excess whitespace\n\t */\n\tfunction trim(str) {\n\t return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n\t}\n\t\n\t/**\n\t * Iterate over an Array or an Object invoking a function for each item.\n\t *\n\t * If `obj` is an Array or arguments callback will be called passing\n\t * the value, index, and complete array for each item.\n\t *\n\t * If 'obj' is an Object callback will be called passing\n\t * the value, key, and complete object for each property.\n\t *\n\t * @param {Object|Array} obj The object to iterate\n\t * @param {Function} fn The callback to invoke for each item\n\t */\n\tfunction forEach(obj, fn) {\n\t // Don't bother if no value provided\n\t if (obj === null || typeof obj === 'undefined') {\n\t return;\n\t }\n\t\n\t // Check if obj is array-like\n\t var isArray = obj.constructor === Array || typeof obj.callee === 'function';\n\t\n\t // Force an array if not already something iterable\n\t if (typeof obj !== 'object' && !isArray) {\n\t obj = [obj];\n\t }\n\t\n\t // Iterate over array values\n\t if (isArray) {\n\t for (var i=0, l=obj.length; i 0) {\n\t var fn = queue.shift();\n\t fn();\n\t }\n\t }\n\t }, true);\n\t\n\t return function nextTick(fn) {\n\t queue.push(fn);\n\t window.postMessage('process-tick', '*');\n\t };\n\t }\n\t\n\t return function nextTick(fn) {\n\t setTimeout(fn, 0);\n\t };\n\t})();\n\t\n\tprocess.title = 'browser';\n\tprocess.browser = true;\n\tprocess.env = {};\n\tprocess.argv = [];\n\t\n\tfunction noop() {}\n\t\n\tprocess.on = noop;\n\tprocess.addListener = noop;\n\tprocess.once = noop;\n\tprocess.off = noop;\n\tprocess.removeListener = noop;\n\tprocess.removeAllListeners = noop;\n\tprocess.emit = noop;\n\t\n\tprocess.binding = function (name) {\n\t throw new Error('process.binding is not supported');\n\t}\n\t\n\t// TODO(shtylman)\n\tprocess.cwd = function () { return '/' };\n\tprocess.chdir = function (dir) {\n\t throw new Error('process.chdir is not supported');\n\t};\n\n\n/***/ }\n/******/ ])\n\n\n/** WEBPACK FOOTER **\n ** axios.min.js\n **/"," \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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 9c5af844105ae4e391aa\n **/","module.exports = require('./lib/axios');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./index.js\n ** module id = 0\n ** module chunks = 0\n **/","var Promise = require('es6-promise').Promise;\nvar buildUrl = require('./buildUrl');\nvar cookies = require('./cookies');\nvar defaults = require('./defaults');\nvar parseHeaders = require('./parseHeaders');\nvar transformData = require('./transformData');\nvar urlIsSameOrigin = require('./urlIsSameOrigin');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n transformRequest: defaults.transformRequest,\n transformResponse: defaults.transformResponse\n }, config);\n\n // Don't allow overriding defaults.withCredentials\n config.withCredentials = config.withCredentials || defaults.withCredentials;\n\n var promise = new Promise(function (resolve, reject) {\n // Create the request\n var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');\n var data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Open the request\n request.open(config.method, buildUrl(config.url, config.params), true);\n\n // Listen for ready state\n request.onreadystatechange = function () {\n if (request && request.readyState === 4) {\n // Prepare the response\n var headers = parseHeaders(request.getAllResponseHeaders());\n var response = {\n data: transformData(\n request.responseText,\n headers,\n config.transformResponse\n ),\n status: request.status,\n headers: headers,\n config: config\n };\n\n // Resolve or reject the Promise based on the status\n if (request.status >= 200 && request.status < 300) {\n resolve(response);\n } else {\n reject(response);\n }\n\n // Clean up request\n request = null;\n }\n };\n\n // Merge headers and add to request\n var headers = utils.merge(\n defaults.headers.common,\n defaults.headers[config.method] || {},\n config.headers || {}\n );\n\n // Add xsrf header\n var xsrfValue = urlIsSameOrigin(config.url)\n ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName)\n : undefined;\n if (xsrfValue) {\n headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;\n }\n\n utils.forEach(headers, function (val, key) {\n // Remove Content-Type if data is undefined\n if (!data && key.toLowerCase() === 'content-type') {\n delete headers[key];\n }\n // Otherwise add header to the request\n else {\n request.setRequestHeader(key, val);\n }\n });\n\n // Add withCredentials to request if needed\n if (config.withCredentials) {\n request.withCredentials = true;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n if (request.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Send the request\n request.send(data);\n });\n\n // Provide alias for success\n promise.success = function success(fn) {\n promise.then(function(response) {\n fn(response);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n promise.then(null, function(response) {\n fn(response);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Provide aliases for supported request methods\ncreateShortMethods('delete', 'get', 'head');\ncreateShortMethodsWithData('post', 'put', 'patch');\n\nfunction createShortMethods() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n });\n}\n\nfunction createShortMethodsWithData() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, data, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n });\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/axios.js\n ** module id = 1\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+');\n}\n\nmodule.exports = function buildUrl(url, params) {\n if (!params) {\n return url;\n }\n\n var parts = [];\n\n utils.forEach(params, function (val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n if (!utils.isArray(val)) {\n val = [val];\n }\n\n utils.forEach(val, function (v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n }\n else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n if (parts.length > 0) {\n url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&');\n }\n\n return url;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/buildUrl.js\n ** module id = 2\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nmodule.exports = {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/cookies.js\n ** module id = 3\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\nvar JSON_END = /[\\}\\]]\\s*$/;\nvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\nvar CONTENT_TYPE_APPLICATION_JSON = {\n 'Content-Type': 'application/json;charset=utf-8'\n};\n\nmodule.exports = {\n transformRequest: [function (data) {\n return utils.isObject(data) &&\n !utils.isFile(data) &&\n !utils.isBlob(data) ?\n JSON.stringify(data) : null;\n }],\n\n transformResponse: [function (data) {\n if (typeof data === 'string') {\n data = data.replace(PROTECTION_PREFIX, '');\n if (JSON_START.test(data) && JSON_END.test(data)) {\n data = JSON.parse(data);\n }\n }\n return data;\n }],\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n },\n patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n post: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n put: utils.merge(CONTENT_TYPE_APPLICATION_JSON)\n },\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN'\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/defaults.js\n ** module id = 4\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {}, key, val, i;\n\n if (!headers) return parsed;\n\n utils.forEach(headers.split('\\n'), function(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/parseHeaders.js\n ** module id = 5\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n utils.forEach(fns, function (fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/transformData.js\n ** module id = 6\n ** module chunks = 0\n **/","'use strict';\n\nvar msie = /(msie|trident)/i.test(navigator.userAgent);\nvar utils = require('./utils');\nvar urlParsingNode = document.createElement('a');\nvar originUrl = urlResolve(window.location.href);\n\n/**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\nfunction urlResolve(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/')\n ? urlParsingNode.pathname\n : '/' + urlParsingNode.pathname\n };\n}\n\n/**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestUrl The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\nmodule.exports = function urlIsSameOrigin(requestUrl) {\n var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n return (parsed.protocol === originUrl.protocol &&\n parsed.host === originUrl.host);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/urlIsSameOrigin.js\n ** module id = 7\n ** module chunks = 0\n **/","// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array or arguments callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Check if obj is array-like\n var isArray = obj.constructor === Array || typeof obj.callee === 'function';\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object' && !isArray) {\n obj = [obj];\n }\n\n // Iterate over array values\n if (isArray) {\n for (var i=0, l=obj.length; i 0) {\n var fn = queue.shift();\n fn();\n }\n }\n }, true);\n\n return function nextTick(fn) {\n queue.push(fn);\n window.postMessage('process-tick', '*');\n };\n }\n\n return function nextTick(fn) {\n setTimeout(fn, 0);\n };\n})();\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\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;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n}\n\n// TODO(shtylman)\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/process/browser.js\n ** module id = 19\n ** module chunks = 0\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///axios.min.js","webpack:///webpack/bootstrap e20477df39bd17b10a04","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///./lib/buildUrl.js","webpack:///./lib/cookies.js","webpack:///./lib/defaults.js","webpack:///./lib/parseHeaders.js","webpack:///./lib/transformData.js","webpack:///./lib/urlIsSameOrigin.js","webpack:///./lib/utils.js","webpack:///./~/es6-promise/dist/commonjs/main.js","webpack:///./~/es6-promise/dist/commonjs/promise/promise.js","webpack:///./~/es6-promise/dist/commonjs/promise/polyfill.js","webpack:///./~/es6-promise/dist/commonjs/promise/config.js","webpack:///./~/es6-promise/dist/commonjs/promise/utils.js","webpack:///./~/es6-promise/dist/commonjs/promise/all.js","webpack:///./~/es6-promise/dist/commonjs/promise/race.js","webpack:///./~/es6-promise/dist/commonjs/promise/resolve.js","webpack:///./~/es6-promise/dist/commonjs/promise/reject.js","webpack:///./~/es6-promise/dist/commonjs/promise/asap.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js"],"names":["axios","modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","createShortMethods","utils","forEach","arguments","method","url","config","merge","createShortMethodsWithData","data","Promise","buildUrl","cookies","defaults","parseHeaders","transformData","urlIsSameOrigin","transformRequest","transformResponse","withCredentials","promise","resolve","reject","request","XMLHttpRequest","ActiveXObject","headers","open","params","onreadystatechange","readyState","getAllResponseHeaders","response","responseText","status","common","xsrfValue","read","xsrfCookieName","undefined","xsrfHeaderName","val","key","toLowerCase","setRequestHeader","responseType","e","send","success","fn","then","error","encode","encodeURIComponent","replace","parts","isArray","v","isDate","toISOString","isObject","JSON","stringify","push","length","indexOf","join","write","name","value","expires","path","domain","secure","cookie","isNumber","Date","toGMTString","isString","document","match","RegExp","decodeURIComponent","remove","this","now","JSON_START","JSON_END","PROTECTION_PREFIX","CONTENT_TYPE_APPLICATION_JSON","Content-Type","isFile","isBlob","test","parse","Accept","patch","post","put","i","parsed","split","line","trim","substr","fns","urlResolve","href","msie","urlParsingNode","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","navigator","userAgent","createElement","originUrl","window","location","requestUrl","toString","str","obj","constructor","Array","callee","l","hasOwnProperty","result","Object","prototype","polyfill","resolver","isFunction","TypeError","_subscribers","invokeResolver","resolvePromise","rejectPromise","reason","invokeCallback","settled","callback","detail","succeeded","failed","hasCallback","handleThenable","FULFILLED","REJECTED","subscribe","parent","child","onFulfillment","onRejection","subscribers","publish","_detail","resolved","objectOrFunction","fulfill","_state","PENDING","SEALED","async","publishFulfillment","publishRejection","configure","all","race","staticResolve","staticReject","asap","thenPromise","callbacks","catch","global","local","self","es6PromiseSupport","r","RSVPPromise","instrument","x","getTime","promises","index","resolveAll","results","remaining","process","useNextTick","nextTick","flush","useMutationObserver","iterations","observer","BrowserMutationObserver","node","createTextNode","observe","characterData","useSetTimeout","setTimeout","queue","tuple","arg","scheduleFlush","browserGlobal","MutationObserver","WebKitMutationObserver","noop","canSetImmediate","setImmediate","canPost","postMessage","addEventListener","f","ev","source","stopPropagation","shift","title","browser","env","argv","on","addListener","once","off","removeListener","removeAllListeners","emit","binding","Error","cwd","chdir"],"mappings":"AAAA,GAAIA,OACK,SAAUC,GCGnB,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAE,WACAE,GAAAJ,EACAK,QAAA,EAUA,OANAP,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,QAAA,EAGAF,EAAAD,QAvBA,GAAAD,KAqCA,OATAF,GAAAQ,EAAAT,EA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KAAArB,EAEArB,EAAA2C,QAAA,WACA,SAAAC,OAAA,qCAIA5C,EAAA6C,IAAA,WAA2B,WAC3B7C,EAAA8C,MAAA,WACA,SAAAF,OAAA","file":"axios.min.js","sourcesContent":["var axios =\n/******/ (function(modules) { // webpackBootstrap\n/******/ \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/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(1);\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Promise = __webpack_require__(9).Promise;\n\tvar buildUrl = __webpack_require__(2);\n\tvar cookies = __webpack_require__(3);\n\tvar defaults = __webpack_require__(4);\n\tvar parseHeaders = __webpack_require__(5);\n\tvar transformData = __webpack_require__(6);\n\tvar urlIsSameOrigin = __webpack_require__(7);\n\tvar utils = __webpack_require__(8);\n\t\n\tvar axios = module.exports = function axios(config) {\n\t config = utils.merge({\n\t method: 'get',\n\t transformRequest: defaults.transformRequest,\n\t transformResponse: defaults.transformResponse\n\t }, config);\n\t\n\t // Don't allow overriding defaults.withCredentials\n\t config.withCredentials = config.withCredentials || defaults.withCredentials;\n\t\n\t var promise = new Promise(function (resolve, reject) {\n\t // Create the request\n\t var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');\n\t var data = transformData(\n\t config.data,\n\t config.headers,\n\t config.transformRequest\n\t );\n\t\n\t // Open the request\n\t request.open(config.method, buildUrl(config.url, config.params), true);\n\t\n\t // Listen for ready state\n\t request.onreadystatechange = function () {\n\t if (request && request.readyState === 4) {\n\t // Prepare the response\n\t var headers = parseHeaders(request.getAllResponseHeaders());\n\t var response = {\n\t data: transformData(\n\t request.responseText,\n\t headers,\n\t config.transformResponse\n\t ),\n\t status: request.status,\n\t headers: headers,\n\t config: config\n\t };\n\t\n\t // Resolve or reject the Promise based on the status\n\t (request.status >= 200 && request.status < 300\n\t ? resolve\n\t : reject)(\n\t response.data,\n\t response.status,\n\t response.headers,\n\t response.config\n\t );\n\t\n\t // Clean up request\n\t request = null;\n\t }\n\t };\n\t\n\t // Merge headers and add to request\n\t var headers = utils.merge(\n\t defaults.headers.common,\n\t defaults.headers[config.method] || {},\n\t config.headers || {}\n\t );\n\t\n\t // Add xsrf header\n\t var xsrfValue = urlIsSameOrigin(config.url)\n\t ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName)\n\t : undefined;\n\t if (xsrfValue) {\n\t headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;\n\t }\n\t\n\t utils.forEach(headers, function (val, key) {\n\t // Remove Content-Type if data is undefined\n\t if (!data && key.toLowerCase() === 'content-type') {\n\t delete headers[key];\n\t }\n\t // Otherwise add header to the request\n\t else {\n\t request.setRequestHeader(key, val);\n\t }\n\t });\n\t\n\t // Add withCredentials to request if needed\n\t if (config.withCredentials) {\n\t request.withCredentials = true;\n\t }\n\t\n\t // Add responseType to request if needed\n\t if (config.responseType) {\n\t try {\n\t request.responseType = config.responseType;\n\t } catch (e) {\n\t if (request.responseType !== 'json') {\n\t throw e;\n\t }\n\t }\n\t }\n\t\n\t // Send the request\n\t request.send(data);\n\t });\n\t\n\t // Provide alias for success\n\t promise.success = function success(fn) {\n\t promise.then(function(response) {\n\t fn(response);\n\t });\n\t return promise;\n\t };\n\t\n\t // Provide alias for error\n\t promise.error = function error(fn) {\n\t promise.then(null, function(response) {\n\t fn(response);\n\t });\n\t return promise;\n\t };\n\t\n\t return promise;\n\t};\n\t\n\t// Expose defaults\n\taxios.defaults = defaults;\n\t\n\t// Provide aliases for supported request methods\n\tcreateShortMethods('delete', 'get', 'head');\n\tcreateShortMethodsWithData('post', 'put', 'patch');\n\t\n\tfunction createShortMethods() {\n\t utils.forEach(arguments, function (method) {\n\t axios[method] = function (url, config) {\n\t return axios(utils.merge(config || {}, {\n\t method: method,\n\t url: url\n\t }));\n\t };\n\t });\n\t}\n\t\n\tfunction createShortMethodsWithData() {\n\t utils.forEach(arguments, function (method) {\n\t axios[method] = function (url, data, config) {\n\t return axios(utils.merge(config || {}, {\n\t method: method,\n\t url: url,\n\t data: data\n\t }));\n\t };\n\t });\n\t}\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tfunction encode(val) {\n\t return encodeURIComponent(val).\n\t replace(/%40/gi, '@').\n\t replace(/%3A/gi, ':').\n\t replace(/%24/g, '$').\n\t replace(/%2C/gi, ',').\n\t replace(/%20/g, '+');\n\t}\n\t\n\tmodule.exports = function buildUrl(url, params) {\n\t if (!params) {\n\t return url;\n\t }\n\t\n\t var parts = [];\n\t\n\t utils.forEach(params, function (val, key) {\n\t if (val === null || typeof val === 'undefined') {\n\t return;\n\t }\n\t if (!utils.isArray(val)) {\n\t val = [val];\n\t }\n\t\n\t utils.forEach(val, function (v) {\n\t if (utils.isDate(v)) {\n\t v = v.toISOString();\n\t }\n\t else if (utils.isObject(v)) {\n\t v = JSON.stringify(v);\n\t }\n\t parts.push(encode(key) + '=' + encode(v));\n\t });\n\t });\n\t\n\t if (parts.length > 0) {\n\t url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&');\n\t }\n\t\n\t return url;\n\t};\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tmodule.exports = {\n\t write: function write(name, value, expires, path, domain, secure) {\n\t var cookie = [];\n\t cookie.push(name + '=' + encodeURIComponent(value));\n\t\n\t if (utils.isNumber(expires)) {\n\t cookie.push('expires=' + new Date(expires).toGMTString());\n\t }\n\t\n\t if (utils.isString(path)) {\n\t cookie.push('path=' + path);\n\t }\n\t\n\t if (utils.isString(domain)) {\n\t cookie.push('domain=' + domain);\n\t }\n\t\n\t if (secure === true) {\n\t cookie.push('secure');\n\t }\n\t\n\t document.cookie = cookie.join('; ');\n\t },\n\t\n\t read: function read(name) {\n\t var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n\t return (match ? decodeURIComponent(match[3]) : null);\n\t },\n\t\n\t remove: function remove(name) {\n\t this.write(name, '', Date.now() - 86400000);\n\t }\n\t};\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\n\tvar JSON_END = /[\\}\\]]\\s*$/;\n\tvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\n\tvar CONTENT_TYPE_APPLICATION_JSON = {\n\t 'Content-Type': 'application/json;charset=utf-8'\n\t};\n\t\n\tmodule.exports = {\n\t transformRequest: [function (data) {\n\t return utils.isObject(data) &&\n\t !utils.isFile(data) &&\n\t !utils.isBlob(data) ?\n\t JSON.stringify(data) : null;\n\t }],\n\t\n\t transformResponse: [function (data) {\n\t if (typeof data === 'string') {\n\t data = data.replace(PROTECTION_PREFIX, '');\n\t if (JSON_START.test(data) && JSON_END.test(data)) {\n\t data = JSON.parse(data);\n\t }\n\t }\n\t return data;\n\t }],\n\t\n\t headers: {\n\t common: {\n\t 'Accept': 'application/json, text/plain, */*'\n\t },\n\t patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n\t post: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n\t put: utils.merge(CONTENT_TYPE_APPLICATION_JSON)\n\t },\n\t\n\t xsrfCookieName: 'XSRF-TOKEN',\n\t xsrfHeaderName: 'X-XSRF-TOKEN'\n\t};\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\t/**\n\t * Parse headers into an object\n\t *\n\t * ```\n\t * Date: Wed, 27 Aug 2014 08:58:49 GMT\n\t * Content-Type: application/json\n\t * Connection: keep-alive\n\t * Transfer-Encoding: chunked\n\t * ```\n\t *\n\t * @param {String} headers Headers needing to be parsed\n\t * @returns {Object} Headers parsed into an object\n\t */\n\tmodule.exports = function parseHeaders(headers) {\n\t var parsed = {}, key, val, i;\n\t\n\t if (!headers) return parsed;\n\t\n\t utils.forEach(headers.split('\\n'), function(line) {\n\t i = line.indexOf(':');\n\t key = utils.trim(line.substr(0, i)).toLowerCase();\n\t val = utils.trim(line.substr(i + 1));\n\t\n\t if (key) {\n\t parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n\t }\n\t });\n\t\n\t return parsed;\n\t};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\t/**\n\t * Transform the data for a request or a response\n\t *\n\t * @param {Object|String} data The data to be transformed\n\t * @param {Array} headers The headers for the request or response\n\t * @param {Array|Function} fns A single function or Array of functions\n\t * @returns {*} The resulting transformed data\n\t */\n\tmodule.exports = function transformData(data, headers, fns) {\n\t utils.forEach(fns, function (fn) {\n\t data = fn(data, headers);\n\t });\n\t\n\t return data;\n\t};\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar msie = /(msie|trident)/i.test(navigator.userAgent);\n\tvar utils = __webpack_require__(8);\n\tvar urlParsingNode = document.createElement('a');\n\tvar originUrl = urlResolve(window.location.href);\n\t\n\t/**\n\t * Parse a URL to discover it's components\n\t *\n\t * @param {String} url The URL to be parsed\n\t * @returns {Object}\n\t */\n\tfunction urlResolve(url) {\n\t var href = url;\n\t\n\t if (msie) {\n\t // IE needs attribute set twice to normalize properties\n\t urlParsingNode.setAttribute('href', href);\n\t href = urlParsingNode.href;\n\t }\n\t\n\t urlParsingNode.setAttribute('href', href);\n\t\n\t // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n\t return {\n\t href: urlParsingNode.href,\n\t protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n\t host: urlParsingNode.host,\n\t search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n\t hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n\t hostname: urlParsingNode.hostname,\n\t port: urlParsingNode.port,\n\t pathname: (urlParsingNode.pathname.charAt(0) === '/')\n\t ? urlParsingNode.pathname\n\t : '/' + urlParsingNode.pathname\n\t };\n\t}\n\t\n\t/**\n\t * Determine if a URL shares the same origin as the current location\n\t *\n\t * @param {String} requestUrl The URL to test\n\t * @returns {boolean} True if URL shares the same origin, otherwise false\n\t */\n\tmodule.exports = function urlIsSameOrigin(requestUrl) {\n\t var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n\t return (parsed.protocol === originUrl.protocol &&\n\t parsed.host === originUrl.host);\n\t};\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// utils is a library of generic helper functions non-specific to axios\n\t\n\tvar toString = Object.prototype.toString;\n\t\n\t/**\n\t * Determine if a value is an Array\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is an Array, otherwise false\n\t */\n\tfunction isArray(val) {\n\t return toString.call(val) === '[object Array]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a String\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a String, otherwise false\n\t */\n\tfunction isString(val) {\n\t return typeof val === 'string';\n\t}\n\t\n\t/**\n\t * Determine if a value is a Number\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a Number, otherwise false\n\t */\n\tfunction isNumber(val) {\n\t return typeof val === 'number';\n\t}\n\t\n\t/**\n\t * Determine if a value is an Object\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is an Object, otherwise false\n\t */\n\tfunction isObject(val) {\n\t return val !== null && typeof val === 'object';\n\t}\n\t\n\t/**\n\t * Determine if a value is a Date\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a Date, otherwise false\n\t */\n\tfunction isDate(val) {\n\t return toString.call(val) === '[object Date]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a File\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a File, otherwise false\n\t */\n\tfunction isFile(val) {\n\t return toString.call(val) === '[object File]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a Blob\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a Blob, otherwise false\n\t */\n\tfunction isBlob(val) {\n\t return toString.call(val) === '[object Blob]';\n\t}\n\t\n\t/**\n\t * Trim excess whitespace off the beginning and end of a string\n\t *\n\t * @param {String} str The String to trim\n\t * @returns {String} The String freed of excess whitespace\n\t */\n\tfunction trim(str) {\n\t return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n\t}\n\t\n\t/**\n\t * Iterate over an Array or an Object invoking a function for each item.\n\t *\n\t * If `obj` is an Array or arguments callback will be called passing\n\t * the value, index, and complete array for each item.\n\t *\n\t * If 'obj' is an Object callback will be called passing\n\t * the value, key, and complete object for each property.\n\t *\n\t * @param {Object|Array} obj The object to iterate\n\t * @param {Function} fn The callback to invoke for each item\n\t */\n\tfunction forEach(obj, fn) {\n\t // Don't bother if no value provided\n\t if (obj === null || typeof obj === 'undefined') {\n\t return;\n\t }\n\t\n\t // Check if obj is array-like\n\t var isArray = obj.constructor === Array || typeof obj.callee === 'function';\n\t\n\t // Force an array if not already something iterable\n\t if (typeof obj !== 'object' && !isArray) {\n\t obj = [obj];\n\t }\n\t\n\t // Iterate over array values\n\t if (isArray) {\n\t for (var i=0, l=obj.length; i 0) {\n\t var fn = queue.shift();\n\t fn();\n\t }\n\t }\n\t }, true);\n\t\n\t return function nextTick(fn) {\n\t queue.push(fn);\n\t window.postMessage('process-tick', '*');\n\t };\n\t }\n\t\n\t return function nextTick(fn) {\n\t setTimeout(fn, 0);\n\t };\n\t})();\n\t\n\tprocess.title = 'browser';\n\tprocess.browser = true;\n\tprocess.env = {};\n\tprocess.argv = [];\n\t\n\tfunction noop() {}\n\t\n\tprocess.on = noop;\n\tprocess.addListener = noop;\n\tprocess.once = noop;\n\tprocess.off = noop;\n\tprocess.removeListener = noop;\n\tprocess.removeAllListeners = noop;\n\tprocess.emit = noop;\n\t\n\tprocess.binding = function (name) {\n\t throw new Error('process.binding is not supported');\n\t}\n\t\n\t// TODO(shtylman)\n\tprocess.cwd = function () { return '/' };\n\tprocess.chdir = function (dir) {\n\t throw new Error('process.chdir is not supported');\n\t};\n\n\n/***/ }\n/******/ ])\n\n\n/** WEBPACK FOOTER **\n ** axios.min.js\n **/"," \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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap e20477df39bd17b10a04\n **/","module.exports = require('./lib/axios');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./index.js\n ** module id = 0\n ** module chunks = 0\n **/","var Promise = require('es6-promise').Promise;\nvar buildUrl = require('./buildUrl');\nvar cookies = require('./cookies');\nvar defaults = require('./defaults');\nvar parseHeaders = require('./parseHeaders');\nvar transformData = require('./transformData');\nvar urlIsSameOrigin = require('./urlIsSameOrigin');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n transformRequest: defaults.transformRequest,\n transformResponse: defaults.transformResponse\n }, config);\n\n // Don't allow overriding defaults.withCredentials\n config.withCredentials = config.withCredentials || defaults.withCredentials;\n\n var promise = new Promise(function (resolve, reject) {\n // Create the request\n var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');\n var data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Open the request\n request.open(config.method, buildUrl(config.url, config.params), true);\n\n // Listen for ready state\n request.onreadystatechange = function () {\n if (request && request.readyState === 4) {\n // Prepare the response\n var headers = parseHeaders(request.getAllResponseHeaders());\n var response = {\n data: transformData(\n request.responseText,\n headers,\n config.transformResponse\n ),\n status: request.status,\n headers: headers,\n config: config\n };\n\n // Resolve or reject the Promise based on the status\n (request.status >= 200 && request.status < 300\n ? resolve\n : reject)(\n response.data,\n response.status,\n response.headers,\n response.config\n );\n\n // Clean up request\n request = null;\n }\n };\n\n // Merge headers and add to request\n var headers = utils.merge(\n defaults.headers.common,\n defaults.headers[config.method] || {},\n config.headers || {}\n );\n\n // Add xsrf header\n var xsrfValue = urlIsSameOrigin(config.url)\n ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName)\n : undefined;\n if (xsrfValue) {\n headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;\n }\n\n utils.forEach(headers, function (val, key) {\n // Remove Content-Type if data is undefined\n if (!data && key.toLowerCase() === 'content-type') {\n delete headers[key];\n }\n // Otherwise add header to the request\n else {\n request.setRequestHeader(key, val);\n }\n });\n\n // Add withCredentials to request if needed\n if (config.withCredentials) {\n request.withCredentials = true;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n if (request.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Send the request\n request.send(data);\n });\n\n // Provide alias for success\n promise.success = function success(fn) {\n promise.then(function(response) {\n fn(response);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n promise.then(null, function(response) {\n fn(response);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Provide aliases for supported request methods\ncreateShortMethods('delete', 'get', 'head');\ncreateShortMethodsWithData('post', 'put', 'patch');\n\nfunction createShortMethods() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n });\n}\n\nfunction createShortMethodsWithData() {\n utils.forEach(arguments, function (method) {\n axios[method] = function (url, data, config) {\n return axios(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n });\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/axios.js\n ** module id = 1\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+');\n}\n\nmodule.exports = function buildUrl(url, params) {\n if (!params) {\n return url;\n }\n\n var parts = [];\n\n utils.forEach(params, function (val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n if (!utils.isArray(val)) {\n val = [val];\n }\n\n utils.forEach(val, function (v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n }\n else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n if (parts.length > 0) {\n url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&');\n }\n\n return url;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/buildUrl.js\n ** module id = 2\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nmodule.exports = {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/cookies.js\n ** module id = 3\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\nvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\nvar JSON_END = /[\\}\\]]\\s*$/;\nvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\nvar CONTENT_TYPE_APPLICATION_JSON = {\n 'Content-Type': 'application/json;charset=utf-8'\n};\n\nmodule.exports = {\n transformRequest: [function (data) {\n return utils.isObject(data) &&\n !utils.isFile(data) &&\n !utils.isBlob(data) ?\n JSON.stringify(data) : null;\n }],\n\n transformResponse: [function (data) {\n if (typeof data === 'string') {\n data = data.replace(PROTECTION_PREFIX, '');\n if (JSON_START.test(data) && JSON_END.test(data)) {\n data = JSON.parse(data);\n }\n }\n return data;\n }],\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n },\n patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n post: utils.merge(CONTENT_TYPE_APPLICATION_JSON),\n put: utils.merge(CONTENT_TYPE_APPLICATION_JSON)\n },\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN'\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/defaults.js\n ** module id = 4\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {}, key, val, i;\n\n if (!headers) return parsed;\n\n utils.forEach(headers.split('\\n'), function(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/parseHeaders.js\n ** module id = 5\n ** module chunks = 0\n **/","'use strict';\n\nvar utils = require('./utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n utils.forEach(fns, function (fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/transformData.js\n ** module id = 6\n ** module chunks = 0\n **/","'use strict';\n\nvar msie = /(msie|trident)/i.test(navigator.userAgent);\nvar utils = require('./utils');\nvar urlParsingNode = document.createElement('a');\nvar originUrl = urlResolve(window.location.href);\n\n/**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\nfunction urlResolve(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/')\n ? urlParsingNode.pathname\n : '/' + urlParsingNode.pathname\n };\n}\n\n/**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestUrl The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\nmodule.exports = function urlIsSameOrigin(requestUrl) {\n var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n return (parsed.protocol === originUrl.protocol &&\n parsed.host === originUrl.host);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/urlIsSameOrigin.js\n ** module id = 7\n ** module chunks = 0\n **/","// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array or arguments callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Check if obj is array-like\n var isArray = obj.constructor === Array || typeof obj.callee === 'function';\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object' && !isArray) {\n obj = [obj];\n }\n\n // Iterate over array values\n if (isArray) {\n for (var i=0, l=obj.length; i 0) {\n var fn = queue.shift();\n fn();\n }\n }\n }, true);\n\n return function nextTick(fn) {\n queue.push(fn);\n window.postMessage('process-tick', '*');\n };\n }\n\n return function nextTick(fn) {\n setTimeout(fn, 0);\n };\n})();\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\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;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n}\n\n// TODO(shtylman)\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/process/browser.js\n ** module id = 19\n ** module chunks = 0\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/example/index.html b/example/index.html index e1fd38d..cde7cec 100644 --- a/example/index.html +++ b/example/index.html @@ -58,10 +58,10 @@ diff --git a/lib/axios.js b/lib/axios.js index ce95f03..a6392cb 100644 --- a/lib/axios.js +++ b/lib/axios.js @@ -46,11 +46,14 @@ var axios = module.exports = function axios(config) { }; // Resolve or reject the Promise based on the status - if (request.status >= 200 && request.status < 300) { - resolve(response); - } else { - reject(response); - } + (request.status >= 200 && request.status < 300 + ? resolve + : reject)( + response.data, + response.status, + response.headers, + response.config + ); // Clean up request request = null; diff --git a/sandbox/index.html b/sandbox/index.html index c7d7688..9ec1c80 100644 --- a/sandbox/index.html +++ b/sandbox/index.html @@ -131,11 +131,11 @@ request.innerHTML = JSON.stringify(options, null, 2); axios(options) - .success(function (res) { - response.innerHTML = JSON.stringify(res.data, null, 2); + .success(function (data) { + response.innerHTML = JSON.stringify(data, null, 2); }) - .error(function (res) { - response.innerHTML = JSON.stringify(res.data, null, 2); + .error(function (data) { + response.innerHTML = JSON.stringify(data, null, 2); }); };