diff --git a/CHANGELOG.md b/CHANGELOG.md index 18e22b3..59e8906 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,4 +25,13 @@ ### 0.3.1 (Sep 16, 2014) -- Fixing missing post body when using node.js ([#3](https://github.com/mzabriskie/axios/issues/3)) \ No newline at end of file +- Fixing missing post body when using node.js ([#3](https://github.com/mzabriskie/axios/issues/3)) + +### 0.4.0 (Oct 03, 2014) + +- Adding support for `ArrayBuffer` and `ArrayBufferView` +- Adding support for utf-8 for node.js +- Adding support for SSL for node.js ([#12](https://github.com/mzabriskie/axios/issues/12)) +- Fixing incorrect `Content-Type` header ([#9](https://github.com/mzabriskie/axios/issues/9)) +- Adding standalone build without bundled es6-promise ([#11](https://github.com/mzabriskie/axios/issues/11)) +- Deprecating `success`/`error` in favor of `then`/`catch` \ No newline at end of file diff --git a/bower.json b/bower.json index 9dbe97c..59c180f 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "axios", "main": "./dist/axios.js", - "version": "0.3.1", + "version": "0.4.0", "homepage": "https://github.com/mzabriskie/axios", "authors": [ "Matt Zabriskie" @@ -27,7 +27,7 @@ "node_modules", "sandbox", "test", - "CONTRIBUTING.md", + "CONTRIBUTING.md", "Gruntfile.js", "index.js", "karma.conf.js", diff --git a/dist/axios.amd.js b/dist/axios.amd.js index 0d60195..580fda4 100644 --- a/dist/axios.amd.js +++ b/dist/axios.amd.js @@ -53,11 +53,11 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return /* WEBPACK VAR INJECTION */(function(process) {var Promise = __webpack_require__(13).Promise; var defaults = __webpack_require__(3); var utils = __webpack_require__(4); - var spread = __webpack_require__(5); var axios = module.exports = function axios(config) { config = utils.merge({ method: 'get', + headers: {}, transformRequest: defaults.transformRequest, transformResponse: defaults.transformResponse }, config); @@ -69,7 +69,7 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return try { // For browsers use XHR adapter if (typeof window !== 'undefined') { - __webpack_require__(6)(resolve, reject, config); + __webpack_require__(5)(resolve, reject, config); } // For node use HTTP adapter else if (typeof process !== 'undefined') { @@ -80,8 +80,23 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return } }); + function deprecatedMethod(method, instead, docs) { + try { + console.warn( + 'DEPRECATED method `' + method + '`.' + + (instead ? ' Use `' + instead + '` instead.' : '') + + ' This method will be removed in a future release.'); + + if (docs) { + console.warn('For more information about usage see ' + docs); + } + } catch (e) {} + } + // Provide alias for success promise.success = function success(fn) { + deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api'); + promise.then(function(response) { fn(response.data, response.status, response.headers, response.config); }); @@ -90,6 +105,8 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return // Provide alias for error promise.error = function error(fn) { + deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api'); + promise.then(null, function(response) { fn(response.data, response.status, response.headers, response.config); }); @@ -106,7 +123,7 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return axios.all = function (promises) { return Promise.all(promises); }; - axios.spread = spread; + axios.spread = __webpack_require__(6); // Provide aliases for supported request methods createShortMethods('delete', 'get', 'head'); @@ -154,16 +171,26 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return var JSON_START = /^\s*(\[|\{[^\{])/; var JSON_END = /[\}\]]\s*$/; var PROTECTION_PREFIX = /^\)\]\}',?\n/; - var CONTENT_TYPE_APPLICATION_JSON = { - 'Content-Type': 'application/json;charset=utf-8' + var DEFAULT_CONTENT_TYPE = { + 'Content-Type': 'application/x-www-form-urlencoded' }; module.exports = { - transformRequest: [function (data) { - return utils.isObject(data) && - !utils.isFile(data) && - !utils.isBlob(data) ? - JSON.stringify(data) : data; + transformRequest: [function (data, headers) { + if (utils.isArrayBuffer(data)) { + return data; + } + if (utils.isArrayBufferView(data)) { + return data.buffer; + } + if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) { + // Set application/json if no Content-Type has been specified + if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { + headers['Content-Type'] = 'application/json;charset=utf-8'; + } + return JSON.stringify(data); + } + return data; }], transformResponse: [function (data) { @@ -180,9 +207,9 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return common: { 'Accept': 'application/json, text/plain, */*' }, - patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON), - post: utils.merge(CONTENT_TYPE_APPLICATION_JSON), - put: utils.merge(CONTENT_TYPE_APPLICATION_JSON) + patch: utils.merge(DEFAULT_CONTENT_TYPE), + post: utils.merge(DEFAULT_CONTENT_TYPE), + put: utils.merge(DEFAULT_CONTENT_TYPE) }, xsrfCookieName: 'XSRF-TOKEN', @@ -207,6 +234,30 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return return toString.call(val) === '[object Array]'; } + /** + * Determine if a value is an ArrayBuffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an ArrayBuffer, otherwise false + */ + function isArrayBuffer(val) { + return toString.call(val) === '[object ArrayBuffer]'; + } + + /** + * Determine if a value is a view on an ArrayBuffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false + */ + function isArrayBufferView(val) { + if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { + return ArrayBuffer.isView(val); + } else { + return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); + } + } + /** * Determine if a value is a String * @@ -227,6 +278,16 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return return typeof val === 'number'; } + /** + * Determine if a value is undefined + * + * @param {Object} val The value to test + * @returns {boolean} True if the value is undefined, otherwise false + */ + function isUndefined(val) { + return typeof val === 'undefined'; + } + /** * Determine if a value is an Object * @@ -348,9 +409,12 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return module.exports = { isArray: isArray, + isArrayBuffer: isArrayBuffer, + isArrayBufferView: isArrayBufferView, isString: isString, isNumber: isNumber, isObject: isObject, + isUndefined: isUndefined, isDate: isDate, isFile: isFile, isBlob: isBlob, @@ -363,43 +427,13 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return /* 5 */ /***/ function(module, exports, __webpack_require__) { - /** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * @returns {Function} - */ - module.exports = function spread(callback) { - return function (arr) { - callback.apply(null, arr); - }; - }; - -/***/ }, -/* 6 */ -/***/ function(module, exports, __webpack_require__) { - + var defaults = __webpack_require__(3); + var utils = __webpack_require__(4); var buildUrl = __webpack_require__(8); var cookies = __webpack_require__(9); - var defaults = __webpack_require__(3); var parseHeaders = __webpack_require__(10); var transformData = __webpack_require__(11); var urlIsSameOrigin = __webpack_require__(12); - var utils = __webpack_require__(4); module.exports = function xhrAdapter(resolve, reject, config) { // Transform request data @@ -482,10 +516,44 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return } } + if (utils.isArrayBuffer(data)) { + data = new DataView(data); + } + // Send the request request.send(data); }; +/***/ }, +/* 6 */ +/***/ function(module, exports, __webpack_require__) { + + /** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * @returns {Function} + */ + module.exports = function spread(callback) { + return function (arr) { + callback.apply(null, arr); + }; + }; + /***/ }, /* 7 */ /***/ function(module, exports, __webpack_require__) { diff --git a/dist/axios.amd.map b/dist/axios.amd.map index 2f02a3c..a9b80f1 100644 --- a/dist/axios.amd.map +++ b/dist/axios.amd.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap a5511a6f90e924faa903","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///external \"undefined\"","webpack:///./lib/defaults.js","webpack:///./lib/utils.js","webpack:///./lib/spread.js","webpack:///./lib/adapters/xhr.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./lib/buildUrl.js","webpack:///./lib/cookies.js","webpack:///./lib/parseHeaders.js","webpack:///./lib/transformData.js","webpack:///./lib/urlIsSameOrigin.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"],"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;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;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;AACA;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;;;;;;;ACnFA,uCAAsC,sDAAsD,6BAA6B;AACzH,4B;;;;;;ACDA;;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,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA,YAAW,SAAS;AACpB,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAAyC;AACzC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;AC3FA;;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;;;;;;;AC9DA;;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;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;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","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 a5511a6f90e924faa903\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 defaults = require('./defaults');\nvar utils = require('./utils');\nvar spread = require('./spread');\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 try {\n // For browsers use XHR adapter\n if (typeof window !== 'undefined') {\n require('./adapters/xhr')(resolve, reject, config);\n }\n // For node use HTTP adapter\n else if (typeof process !== 'undefined') {\n require('./adapters/http')(resolve, reject, config);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n // Provide alias for success\n promise.success = function success(fn) {\n promise.then(function(response) {\n fn(response.data, response.status, response.headers, response.config);\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.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Expose all/spread\naxios.all = function (promises) {\n return Promise.all(promises);\n};\naxios.spread = spread;\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 **/","if(typeof undefined === 'undefined') {var e = new Error(\"Cannot find module \\\"undefined\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e;}\nmodule.exports = undefined;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"undefined\"\n ** module id = 2\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) : data;\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 = 3\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= 200 && request.status < 300\n ? resolve\n : reject)(response);\n\n // Clean up request\n request = null;\n }\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 // Add headers to the request\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\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/adapters/xhr.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\n\nprocess.nextTick = (function () {\n var canSetImmediate = typeof window !== 'undefined'\n && window.setImmediate;\n var canPost = typeof window !== 'undefined'\n && window.postMessage && window.addEventListener\n ;\n\n if (canSetImmediate) {\n return function (f) { return window.setImmediate(f) };\n }\n\n if (canPost) {\n var queue = [];\n window.addEventListener('message', function (ev) {\n var source = ev.source;\n if ((source === window || source === null) && ev.data === 'process-tick') {\n ev.stopPropagation();\n if (queue.length > 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 = 7\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 = 8\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 = 9\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 = 10\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 = 11\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 = 12\n ** module chunks = 0\n **/","\"use strict\";\nvar Promise = require(\"./promise/promise\").Promise;\nvar polyfill = require(\"./promise/polyfill\").polyfill;\nexports.Promise = Promise;\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/main.js\n ** module id = 13\n ** module chunks = 0\n **/","\"use strict\";\nvar config = require(\"./config\").config;\nvar configure = require(\"./config\").configure;\nvar objectOrFunction = require(\"./utils\").objectOrFunction;\nvar isFunction = require(\"./utils\").isFunction;\nvar now = require(\"./utils\").now;\nvar all = require(\"./all\").all;\nvar race = require(\"./race\").race;\nvar staticResolve = require(\"./resolve\").resolve;\nvar staticReject = require(\"./reject\").reject;\nvar asap = require(\"./asap\").asap;\n\nvar counter = 0;\n\nconfig.async = asap; // default async is asap;\n\nfunction Promise(resolver) {\n if (!isFunction(resolver)) {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n\n if (!(this instanceof Promise)) {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n }\n\n this._subscribers = [];\n\n invokeResolver(resolver, this);\n}\n\nfunction invokeResolver(resolver, promise) {\n function resolvePromise(value) {\n resolve(promise, value);\n }\n\n function rejectPromise(reason) {\n reject(promise, reason);\n }\n\n try {\n resolver(resolvePromise, rejectPromise);\n } catch(e) {\n rejectPromise(e);\n }\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value, error, succeeded, failed;\n\n if (hasCallback) {\n try {\n value = callback(detail);\n succeeded = true;\n } catch(e) {\n failed = true;\n error = e;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (handleThenable(promise, value)) {\n return;\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (failed) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n resolve(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n}\n\nvar PENDING = void 0;\nvar SEALED = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var subscribers = parent._subscribers;\n var length = subscribers.length;\n\n subscribers[length] = child;\n subscribers[length + FULFILLED] = onFulfillment;\n subscribers[length + REJECTED] = onRejection;\n}\n\nfunction publish(promise, settled) {\n var child, callback, subscribers = promise._subscribers, detail = promise._detail;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n invokeCallback(settled, child, callback, detail);\n }\n\n promise._subscribers = null;\n}\n\nPromise.prototype = {\n constructor: Promise,\n\n _state: undefined,\n _detail: undefined,\n _subscribers: undefined,\n\n then: function(onFulfillment, onRejection) {\n var promise = this;\n\n var thenPromise = new this.constructor(function() {});\n\n if (this._state) {\n var callbacks = arguments;\n config.async(function invokePromiseCallback() {\n invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail);\n });\n } else {\n subscribe(this, thenPromise, onFulfillment, onRejection);\n }\n\n return thenPromise;\n },\n\n 'catch': function(onRejection) {\n return this.then(null, onRejection);\n }\n};\n\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = staticResolve;\nPromise.reject = staticReject;\n\nfunction handleThenable(promise, value) {\n var then = null,\n resolved;\n\n try {\n if (promise === value) {\n throw new TypeError(\"A promises callback cannot return that same promise.\");\n }\n\n if (objectOrFunction(value)) {\n then = value.then;\n\n if (isFunction(then)) {\n then.call(value, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n if (value !== val) {\n resolve(promise, val);\n } else {\n fulfill(promise, val);\n }\n }, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n reject(promise, val);\n });\n\n return true;\n }\n }\n } catch (error) {\n if (resolved) { return true; }\n reject(promise, error);\n return true;\n }\n\n return false;\n}\n\nfunction resolve(promise, value) {\n if (promise === value) {\n fulfill(promise, value);\n } else if (!handleThenable(promise, value)) {\n fulfill(promise, value);\n }\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = value;\n\n config.async(publishFulfillment, promise);\n}\n\nfunction reject(promise, reason) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = reason;\n\n config.async(publishRejection, promise);\n}\n\nfunction publishFulfillment(promise) {\n publish(promise, promise._state = FULFILLED);\n}\n\nfunction publishRejection(promise) {\n publish(promise, promise._state = REJECTED);\n}\n\nexports.Promise = Promise;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/promise.js\n ** module id = 14\n ** module chunks = 0\n **/","\"use strict\";\n/*global self*/\nvar RSVPPromise = require(\"./promise\").Promise;\nvar isFunction = require(\"./utils\").isFunction;\n\nfunction polyfill() {\n var local;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof window !== 'undefined' && window.document) {\n local = window;\n } else {\n local = self;\n }\n\n var es6PromiseSupport = \n \"Promise\" in local &&\n // Some of these methods are missing from\n // Firefox/Chrome experimental implementations\n \"resolve\" in local.Promise &&\n \"reject\" in local.Promise &&\n \"all\" in local.Promise &&\n \"race\" in local.Promise &&\n // Older version of the spec had a resolver object\n // as the arg rather than a function\n (function() {\n var resolve;\n new local.Promise(function(r) { resolve = r; });\n return isFunction(resolve);\n }());\n\n if (!es6PromiseSupport) {\n local.Promise = RSVPPromise;\n }\n}\n\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/polyfill.js\n ** module id = 15\n ** module chunks = 0\n **/","\"use strict\";\nvar config = {\n instrument: false\n};\n\nfunction configure(name, value) {\n if (arguments.length === 2) {\n config[name] = value;\n } else {\n return config[name];\n }\n}\n\nexports.config = config;\nexports.configure = configure;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/config.js\n ** module id = 16\n ** module chunks = 0\n **/","\"use strict\";\nfunction objectOrFunction(x) {\n return isFunction(x) || (typeof x === \"object\" && x !== null);\n}\n\nfunction isFunction(x) {\n return typeof x === \"function\";\n}\n\nfunction isArray(x) {\n return Object.prototype.toString.call(x) === \"[object Array]\";\n}\n\n// Date.now is not available in browsers < IE9\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\nvar now = Date.now || function() { return new Date().getTime(); };\n\n\nexports.objectOrFunction = objectOrFunction;\nexports.isFunction = isFunction;\nexports.isArray = isArray;\nexports.now = now;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/utils.js\n ** module id = 17\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\n\nvar isArray = require(\"./utils\").isArray;\nvar isFunction = require(\"./utils\").isFunction;\n\n/**\n Returns a promise that is fulfilled when all the given promises have been\n fulfilled, or rejected if any of them become rejected. The return promise\n is fulfilled with an array that gives all the values in the order they were\n passed in the `promises` array argument.\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.resolve(2);\n var promise3 = RSVP.resolve(3);\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `RSVP.all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.reject(new Error(\"2\"));\n var promise3 = RSVP.reject(new Error(\"3\"));\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @for RSVP\n @param {Array} promises\n @param {String} label\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n*/\nfunction all(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to all.');\n }\n\n return new Promise(function(resolve, reject) {\n var results = [], remaining = promises.length,\n promise;\n\n if (remaining === 0) {\n resolve([]);\n }\n\n function resolver(index) {\n return function(value) {\n resolveAll(index, value);\n };\n }\n\n function resolveAll(index, value) {\n results[index] = value;\n if (--remaining === 0) {\n resolve(results);\n }\n }\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && isFunction(promise.then)) {\n promise.then(resolver(i), reject);\n } else {\n resolveAll(i, promise);\n }\n }\n });\n}\n\nexports.all = all;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/all.js\n ** module id = 18\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\nvar isArray = require(\"./utils\").isArray;\n\n/**\n `RSVP.race` allows you to watch a series of promises and act as soon as the\n first promise given to the `promises` argument fulfills or rejects.\n\n Example:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 2\");\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // result === \"promise 2\" because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `RSVP.race` is deterministic in that only the state of the first completed\n promise matters. For example, even if other promises given to the `promises`\n array argument are resolved, but the first completed promise has become\n rejected before the other promises became fulfilled, the returned promise\n will become rejected:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error(\"promise 2\"));\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // Code here never runs because there are rejected promises!\n }, function(reason){\n // reason.message === \"promise2\" because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n @method race\n @for RSVP\n @param {Array} promises array of promises to observe\n @param {String} label optional string for describing the promise returned.\n Useful for tooling.\n @return {Promise} a promise that becomes fulfilled with the value the first\n completed promises is resolved with if the first completed promise was\n fulfilled, or rejected with the reason that the first completed promise\n was rejected with.\n*/\nfunction race(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to race.');\n }\n return new Promise(function(resolve, reject) {\n var results = [], promise;\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolve, reject);\n } else {\n resolve(promise);\n }\n }\n });\n}\n\nexports.race = race;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/race.js\n ** module id = 19\n ** module chunks = 0\n **/","\"use strict\";\nfunction resolve(value) {\n /*jshint validthis:true */\n if (value && typeof value === 'object' && value.constructor === this) {\n return value;\n }\n\n var Promise = this;\n\n return new Promise(function(resolve) {\n resolve(value);\n });\n}\n\nexports.resolve = resolve;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/resolve.js\n ** module id = 20\n ** module chunks = 0\n **/","\"use strict\";\n/**\n `RSVP.reject` returns a promise that will become rejected with the passed\n `reason`. `RSVP.reject` is essentially shorthand for the following:\n\n ```javascript\n var promise = new RSVP.Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n var promise = RSVP.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @for RSVP\n @param {Any} reason value that the returned promise will be rejected with.\n @param {String} label optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise that will become rejected with the given\n `reason`.\n*/\nfunction reject(reason) {\n /*jshint validthis:true */\n var Promise = this;\n\n return new Promise(function (resolve, reject) {\n reject(reason);\n });\n}\n\nexports.reject = reject;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/reject.js\n ** module id = 21\n ** module chunks = 0\n **/","\"use strict\";\nvar browserGlobal = (typeof window !== 'undefined') ? window : {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar local = (typeof global !== 'undefined') ? global : (this === undefined? window:this);\n\n// node\nfunction useNextTick() {\n return function() {\n process.nextTick(flush);\n };\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function() {\n node.data = (iterations = ++iterations % 2);\n };\n}\n\nfunction useSetTimeout() {\n return function() {\n local.setTimeout(flush, 1);\n };\n}\n\nvar queue = [];\nfunction flush() {\n for (var i = 0; i < queue.length; i++) {\n var tuple = queue[i];\n var callback = tuple[0], arg = tuple[1];\n callback(arg);\n }\n queue = [];\n}\n\nvar scheduleFlush;\n\n// Decide what async method to use to triggering processing of queued callbacks:\nif (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction asap(callback, arg) {\n var length = queue.push([callback, arg]);\n if (length === 1) {\n // If length is 1, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n scheduleFlush();\n }\n}\n\nexports.asap = asap;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/asap.js\n ** module id = 22\n ** module chunks = 0\n **/"],"sourceRoot":"","file":"axios.amd.js"} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap 02a9be011db5fb209a28","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///external \"undefined\"","webpack:///./lib/defaults.js","webpack:///./lib/utils.js","webpack:///./lib/adapters/xhr.js","webpack:///./lib/helpers/spread.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./lib/helpers/buildUrl.js","webpack:///./lib/helpers/cookies.js","webpack:///./lib/helpers/parseHeaders.js","webpack:///./lib/helpers/transformData.js","webpack:///./lib/helpers/urlIsSameOrigin.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"],"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;;AAEA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;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;;;;;;;ACpGA,uCAAsC,sDAAsD,6BAA6B;AACzH,4B;;;;;;ACDA;;AAEA;;AAEA,6BAA4B,IAAI;AAChC,oBAAmB;AACnB,iCAAgC;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD;AACpD;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;;;;;;AClDA;;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;AACA,IAAG;AACH;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,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;AACA;AACA;AACA,G;;;;;;ACzMA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAAyC;AACzC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA,YAAW,SAAS;AACpB,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACxBA;;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;;;;;;;AC9DA;;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;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;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","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 02a9be011db5fb209a28\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 defaults = require('./defaults');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n headers: {},\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 try {\n // For browsers use XHR adapter\n if (typeof window !== 'undefined') {\n require('./adapters/xhr')(resolve, reject, config);\n }\n // For node use HTTP adapter\n else if (typeof process !== 'undefined') {\n require('./adapters/http')(resolve, reject, config);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n function deprecatedMethod(method, instead, docs) {\n try {\n console.warn(\n 'DEPRECATED method `' + method + '`.' +\n (instead ? ' Use `' + instead + '` instead.' : '') +\n ' This method will be removed in a future release.');\n\n if (docs) {\n console.warn('For more information about usage see ' + docs);\n }\n } catch (e) {}\n }\n\n // Provide alias for success\n promise.success = function success(fn) {\n deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(null, function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Expose all/spread\naxios.all = function (promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\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 **/","if(typeof undefined === 'undefined') {var e = new Error(\"Cannot find module \\\"undefined\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e;}\nmodule.exports = undefined;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"undefined\"\n ** module id = 2\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 DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nmodule.exports = {\n transformRequest: [function (data, headers) {\n if (utils.isArrayBuffer(data)) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n // Set application/json if no Content-Type has been specified\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = 'application/json;charset=utf-8';\n }\n return JSON.stringify(data);\n }\n return data;\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(DEFAULT_CONTENT_TYPE),\n post: utils.merge(DEFAULT_CONTENT_TYPE),\n put: utils.merge(DEFAULT_CONTENT_TYPE)\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 = 3\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 an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n return ArrayBuffer.isView(val);\n } else {\n return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\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 undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\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= 200 && request.status < 300\n ? resolve\n : reject)(response);\n\n // Clean up request\n request = null;\n }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n data = new DataView(data);\n }\n\n // Send the request\n request.send(data);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/adapters/xhr.js\n ** module id = 5\n ** module chunks = 0\n **/","/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function (arr) {\n callback.apply(null, arr);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/helpers/spread.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\n\nprocess.nextTick = (function () {\n var canSetImmediate = typeof window !== 'undefined'\n && window.setImmediate;\n var canPost = typeof window !== 'undefined'\n && window.postMessage && window.addEventListener\n ;\n\n if (canSetImmediate) {\n return function (f) { return window.setImmediate(f) };\n }\n\n if (canPost) {\n var queue = [];\n window.addEventListener('message', function (ev) {\n var source = ev.source;\n if ((source === window || source === null) && ev.data === 'process-tick') {\n ev.stopPropagation();\n if (queue.length > 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 = 7\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/helpers/buildUrl.js\n ** module id = 8\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/helpers/cookies.js\n ** module id = 9\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/helpers/parseHeaders.js\n ** module id = 10\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/helpers/transformData.js\n ** module id = 11\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/helpers/urlIsSameOrigin.js\n ** module id = 12\n ** module chunks = 0\n **/","\"use strict\";\nvar Promise = require(\"./promise/promise\").Promise;\nvar polyfill = require(\"./promise/polyfill\").polyfill;\nexports.Promise = Promise;\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/main.js\n ** module id = 13\n ** module chunks = 0\n **/","\"use strict\";\nvar config = require(\"./config\").config;\nvar configure = require(\"./config\").configure;\nvar objectOrFunction = require(\"./utils\").objectOrFunction;\nvar isFunction = require(\"./utils\").isFunction;\nvar now = require(\"./utils\").now;\nvar all = require(\"./all\").all;\nvar race = require(\"./race\").race;\nvar staticResolve = require(\"./resolve\").resolve;\nvar staticReject = require(\"./reject\").reject;\nvar asap = require(\"./asap\").asap;\n\nvar counter = 0;\n\nconfig.async = asap; // default async is asap;\n\nfunction Promise(resolver) {\n if (!isFunction(resolver)) {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n\n if (!(this instanceof Promise)) {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n }\n\n this._subscribers = [];\n\n invokeResolver(resolver, this);\n}\n\nfunction invokeResolver(resolver, promise) {\n function resolvePromise(value) {\n resolve(promise, value);\n }\n\n function rejectPromise(reason) {\n reject(promise, reason);\n }\n\n try {\n resolver(resolvePromise, rejectPromise);\n } catch(e) {\n rejectPromise(e);\n }\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value, error, succeeded, failed;\n\n if (hasCallback) {\n try {\n value = callback(detail);\n succeeded = true;\n } catch(e) {\n failed = true;\n error = e;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (handleThenable(promise, value)) {\n return;\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (failed) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n resolve(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n}\n\nvar PENDING = void 0;\nvar SEALED = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var subscribers = parent._subscribers;\n var length = subscribers.length;\n\n subscribers[length] = child;\n subscribers[length + FULFILLED] = onFulfillment;\n subscribers[length + REJECTED] = onRejection;\n}\n\nfunction publish(promise, settled) {\n var child, callback, subscribers = promise._subscribers, detail = promise._detail;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n invokeCallback(settled, child, callback, detail);\n }\n\n promise._subscribers = null;\n}\n\nPromise.prototype = {\n constructor: Promise,\n\n _state: undefined,\n _detail: undefined,\n _subscribers: undefined,\n\n then: function(onFulfillment, onRejection) {\n var promise = this;\n\n var thenPromise = new this.constructor(function() {});\n\n if (this._state) {\n var callbacks = arguments;\n config.async(function invokePromiseCallback() {\n invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail);\n });\n } else {\n subscribe(this, thenPromise, onFulfillment, onRejection);\n }\n\n return thenPromise;\n },\n\n 'catch': function(onRejection) {\n return this.then(null, onRejection);\n }\n};\n\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = staticResolve;\nPromise.reject = staticReject;\n\nfunction handleThenable(promise, value) {\n var then = null,\n resolved;\n\n try {\n if (promise === value) {\n throw new TypeError(\"A promises callback cannot return that same promise.\");\n }\n\n if (objectOrFunction(value)) {\n then = value.then;\n\n if (isFunction(then)) {\n then.call(value, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n if (value !== val) {\n resolve(promise, val);\n } else {\n fulfill(promise, val);\n }\n }, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n reject(promise, val);\n });\n\n return true;\n }\n }\n } catch (error) {\n if (resolved) { return true; }\n reject(promise, error);\n return true;\n }\n\n return false;\n}\n\nfunction resolve(promise, value) {\n if (promise === value) {\n fulfill(promise, value);\n } else if (!handleThenable(promise, value)) {\n fulfill(promise, value);\n }\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = value;\n\n config.async(publishFulfillment, promise);\n}\n\nfunction reject(promise, reason) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = reason;\n\n config.async(publishRejection, promise);\n}\n\nfunction publishFulfillment(promise) {\n publish(promise, promise._state = FULFILLED);\n}\n\nfunction publishRejection(promise) {\n publish(promise, promise._state = REJECTED);\n}\n\nexports.Promise = Promise;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/promise.js\n ** module id = 14\n ** module chunks = 0\n **/","\"use strict\";\n/*global self*/\nvar RSVPPromise = require(\"./promise\").Promise;\nvar isFunction = require(\"./utils\").isFunction;\n\nfunction polyfill() {\n var local;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof window !== 'undefined' && window.document) {\n local = window;\n } else {\n local = self;\n }\n\n var es6PromiseSupport = \n \"Promise\" in local &&\n // Some of these methods are missing from\n // Firefox/Chrome experimental implementations\n \"resolve\" in local.Promise &&\n \"reject\" in local.Promise &&\n \"all\" in local.Promise &&\n \"race\" in local.Promise &&\n // Older version of the spec had a resolver object\n // as the arg rather than a function\n (function() {\n var resolve;\n new local.Promise(function(r) { resolve = r; });\n return isFunction(resolve);\n }());\n\n if (!es6PromiseSupport) {\n local.Promise = RSVPPromise;\n }\n}\n\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/polyfill.js\n ** module id = 15\n ** module chunks = 0\n **/","\"use strict\";\nvar config = {\n instrument: false\n};\n\nfunction configure(name, value) {\n if (arguments.length === 2) {\n config[name] = value;\n } else {\n return config[name];\n }\n}\n\nexports.config = config;\nexports.configure = configure;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/config.js\n ** module id = 16\n ** module chunks = 0\n **/","\"use strict\";\nfunction objectOrFunction(x) {\n return isFunction(x) || (typeof x === \"object\" && x !== null);\n}\n\nfunction isFunction(x) {\n return typeof x === \"function\";\n}\n\nfunction isArray(x) {\n return Object.prototype.toString.call(x) === \"[object Array]\";\n}\n\n// Date.now is not available in browsers < IE9\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\nvar now = Date.now || function() { return new Date().getTime(); };\n\n\nexports.objectOrFunction = objectOrFunction;\nexports.isFunction = isFunction;\nexports.isArray = isArray;\nexports.now = now;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/utils.js\n ** module id = 17\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\n\nvar isArray = require(\"./utils\").isArray;\nvar isFunction = require(\"./utils\").isFunction;\n\n/**\n Returns a promise that is fulfilled when all the given promises have been\n fulfilled, or rejected if any of them become rejected. The return promise\n is fulfilled with an array that gives all the values in the order they were\n passed in the `promises` array argument.\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.resolve(2);\n var promise3 = RSVP.resolve(3);\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `RSVP.all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.reject(new Error(\"2\"));\n var promise3 = RSVP.reject(new Error(\"3\"));\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @for RSVP\n @param {Array} promises\n @param {String} label\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n*/\nfunction all(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to all.');\n }\n\n return new Promise(function(resolve, reject) {\n var results = [], remaining = promises.length,\n promise;\n\n if (remaining === 0) {\n resolve([]);\n }\n\n function resolver(index) {\n return function(value) {\n resolveAll(index, value);\n };\n }\n\n function resolveAll(index, value) {\n results[index] = value;\n if (--remaining === 0) {\n resolve(results);\n }\n }\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && isFunction(promise.then)) {\n promise.then(resolver(i), reject);\n } else {\n resolveAll(i, promise);\n }\n }\n });\n}\n\nexports.all = all;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/all.js\n ** module id = 18\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\nvar isArray = require(\"./utils\").isArray;\n\n/**\n `RSVP.race` allows you to watch a series of promises and act as soon as the\n first promise given to the `promises` argument fulfills or rejects.\n\n Example:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 2\");\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // result === \"promise 2\" because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `RSVP.race` is deterministic in that only the state of the first completed\n promise matters. For example, even if other promises given to the `promises`\n array argument are resolved, but the first completed promise has become\n rejected before the other promises became fulfilled, the returned promise\n will become rejected:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error(\"promise 2\"));\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // Code here never runs because there are rejected promises!\n }, function(reason){\n // reason.message === \"promise2\" because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n @method race\n @for RSVP\n @param {Array} promises array of promises to observe\n @param {String} label optional string for describing the promise returned.\n Useful for tooling.\n @return {Promise} a promise that becomes fulfilled with the value the first\n completed promises is resolved with if the first completed promise was\n fulfilled, or rejected with the reason that the first completed promise\n was rejected with.\n*/\nfunction race(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to race.');\n }\n return new Promise(function(resolve, reject) {\n var results = [], promise;\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolve, reject);\n } else {\n resolve(promise);\n }\n }\n });\n}\n\nexports.race = race;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/race.js\n ** module id = 19\n ** module chunks = 0\n **/","\"use strict\";\nfunction resolve(value) {\n /*jshint validthis:true */\n if (value && typeof value === 'object' && value.constructor === this) {\n return value;\n }\n\n var Promise = this;\n\n return new Promise(function(resolve) {\n resolve(value);\n });\n}\n\nexports.resolve = resolve;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/resolve.js\n ** module id = 20\n ** module chunks = 0\n **/","\"use strict\";\n/**\n `RSVP.reject` returns a promise that will become rejected with the passed\n `reason`. `RSVP.reject` is essentially shorthand for the following:\n\n ```javascript\n var promise = new RSVP.Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n var promise = RSVP.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @for RSVP\n @param {Any} reason value that the returned promise will be rejected with.\n @param {String} label optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise that will become rejected with the given\n `reason`.\n*/\nfunction reject(reason) {\n /*jshint validthis:true */\n var Promise = this;\n\n return new Promise(function (resolve, reject) {\n reject(reason);\n });\n}\n\nexports.reject = reject;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/reject.js\n ** module id = 21\n ** module chunks = 0\n **/","\"use strict\";\nvar browserGlobal = (typeof window !== 'undefined') ? window : {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar local = (typeof global !== 'undefined') ? global : (this === undefined? window:this);\n\n// node\nfunction useNextTick() {\n return function() {\n process.nextTick(flush);\n };\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function() {\n node.data = (iterations = ++iterations % 2);\n };\n}\n\nfunction useSetTimeout() {\n return function() {\n local.setTimeout(flush, 1);\n };\n}\n\nvar queue = [];\nfunction flush() {\n for (var i = 0; i < queue.length; i++) {\n var tuple = queue[i];\n var callback = tuple[0], arg = tuple[1];\n callback(arg);\n }\n queue = [];\n}\n\nvar scheduleFlush;\n\n// Decide what async method to use to triggering processing of queued callbacks:\nif (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction asap(callback, arg) {\n var length = queue.push([callback, arg]);\n if (length === 1) {\n // If length is 1, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n scheduleFlush();\n }\n}\n\nexports.asap = asap;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/asap.js\n ** module id = 22\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 f3b2193..fb10229 100644 --- a/dist/axios.amd.min.js +++ b/dist/axios.amd.min.js @@ -1,3 +1,3 @@ -/* axios v0.3.1 | (c) 2014 by Matt Zabriskie */ -define("axios",["undefined"],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(e){function r(){c.forEach(arguments,function(t){a[t]=function(e,n){return a(c.merge(n||{},{method:t,url:e}))}})}function o(){c.forEach(arguments,function(t){a[t]=function(e,n,r){return a(c.merge(r||{},{method:t,url:e,data:n}))}})}var i=n(13).Promise,s=n(3),c=n(4),u=n(5),a=t.exports=function(t){t=c.merge({method:"get",transformRequest:s.transformRequest,transformResponse:s.transformResponse},t),t.withCredentials=t.withCredentials||s.withCredentials;var r=new i(function(r,o){try{"undefined"!=typeof window?n(6)(r,o,t):"undefined"!=typeof e&&n(2)(r,o,t)}catch(i){o(i)}});return r.success=function(t){return r.then(function(e){t(e.data,e.status,e.headers,e.config)}),r},r.error=function(t){return r.then(null,function(e){t(e.data,e.status,e.headers,e.config)}),r},r};a.defaults=s,a.all=function(t){return i.all(t)},a.spread=u,r("delete","get","head"),o("post","put","patch")}).call(e,n(7))},function(t){var e=new Error('Cannot find module "undefined"');throw e.code="MODULE_NOT_FOUND",e},function(t,e,n){"use strict";var r=n(4),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)?t: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){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){t.exports=function(t){return function(e){t.apply(null,e)}}},function(t,e,n){var r=n(8),o=n(9),i=n(3),s=n(10),c=n(11),u=n(12),a=n(4);t.exports=function(t,e,n){var f=c(n.data,n.headers,n.transformRequest),l=a.merge(i.headers.common,i.headers[n.method]||{},n.headers||{}),p=new(XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP");p.open(n.method,r(n.url,n.params),!0),p.onreadystatechange=function(){if(p&&4===p.readyState){var r=s(p.getAllResponseHeaders()),o={data:c(p.responseText,r,n.transformResponse),status:p.status,headers:r,config:n};(p.status>=200&&p.status<300?t:e)(o),p=null}};var d=u(n.url)?o.read(n.xsrfCookieName||i.xsrfCookieName):void 0;if(d&&(l[n.xsrfHeaderName||i.xsrfHeaderName]=d),a.forEach(l,function(t,e){f||"content-type"!==e.toLowerCase()?p.setRequestHeader(e,t):delete l[e]}),n.withCredentials&&(p.withCredentials=!0),n.responseType)try{p.responseType=n.responseType}catch(h){if("json"!==p.responseType)throw h}p.send(f)}},function(t){function e(){}var n=t.exports={};n.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){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")}},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(4);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(4);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(4);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(4);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(4),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,e,n){"use strict";var r=n(14).Promise,o=n(15).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===T?a(e,o):t===O&&l(e,o))}function s(t,e,n,r){var o=t._subscribers,i=o.length;o[i]=e,o[i+T]=n,o[i+O]=r}function c(t,e){for(var n,r,o=t._subscribers,s=t._detail,c=0;cr;r++)t.call(null,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(null,e[i],i,e)}}function d(){var e={};return p(arguments,function(t){p(t,function(t,n){e[n]=t})}),e}var h=Object.prototype.toString;e.exports={isArray:t,isArrayBuffer:n,isArrayBufferView:r,isString:o,isNumber:i,isObject:u,isUndefined:s,isDate:c,isFile:a,isBlob:f,forEach:p,merge:d,trim:l}},function(e,t,n){var r=n(3),o=n(4),i=n(8),s=n(9),u=n(10),c=n(11),a=n(12);e.exports=function(e,t,n){var f=c(n.data,n.headers,n.transformRequest),l=o.merge(r.headers.common,r.headers[n.method]||{},n.headers||{}),p=new(XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP");p.open(n.method,i(n.url,n.params),!0),p.onreadystatechange=function(){if(p&&4===p.readyState){var r=u(p.getAllResponseHeaders()),o={data:c(p.responseText,r,n.transformResponse),status:p.status,headers:r,config:n};(p.status>=200&&p.status<300?e:t)(o),p=null}};var d=a(n.url)?s.read(n.xsrfCookieName||r.xsrfCookieName):void 0;if(d&&(l[n.xsrfHeaderName||r.xsrfHeaderName]=d),o.forEach(l,function(e,t){f||"content-type"!==t.toLowerCase()?p.setRequestHeader(t,e):delete l[t]}),n.withCredentials&&(p.withCredentials=!0),n.responseType)try{p.responseType=n.responseType}catch(h){if("json"!==p.responseType)throw h}o.isArrayBuffer(f)&&(f=new DataView(f)),p.send(f)}},function(e){e.exports=function(e){return function(t){e.apply(null,t)}}},function(e){function t(){}var n=e.exports={};n.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;if((t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=t,n.addListener=t,n.once=t,n.off=t,n.removeListener=t,n.removeAllListeners=t,n.emit=t,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")}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}var o=n(4);e.exports=function(e,t){if(!t)return e;var n=[];return o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),n.push(r(t)+"="+r(e))}))}),n.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+n.join("&")),e}},function(e,t,n){"use strict";var r=n(4);e.exports={write:function(e,t,n,o,i,s){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";function r(e){var t=e;return o&&(s.setAttribute("href",t),t=s.href),s.setAttribute("href",t),{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(4),s=document.createElement("a"),u=r(window.location.href);e.exports=function(e){var t=i.isString(e)?r(e):e;return t.protocol===u.protocol&&t.host===u.host}},function(e,t,n){"use strict";var r=n(14).Promise,o=n(15).polyfill;t.Promise=r,t.polyfill=o},function(e,t,n){"use strict";function r(e){if(!w(e))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(e,this)}function o(e,t){function n(e){a(t,e)}function r(e){l(t,e)}try{e(n,r)}catch(o){r(o)}}function i(e,t,n,r){var o,i,s,u,f=w(n);if(f)try{o=n(r),s=!0}catch(p){u=!0,i=p}else o=r,s=!0;c(t,o)||(f&&s?a(t,o):u?l(t,i):e===j?a(t,o):e===T&&l(t,o))}function s(e,t,n,r){var o=e._subscribers,i=o.length;o[i]=t,o[i+j]=n,o[i+T]=r}function u(e,t){for(var n,r,o=e._subscribers,s=e._detail,u=0;u= 200 && request.status < 300\n\t ? resolve\n\t : reject)(response);\n\t\n\t // Clean up request\n\t request = null;\n\t }\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 // Add headers to the request\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\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// shim for using process in browser\n\t\n\tvar process = module.exports = {};\n\t\n\tprocess.nextTick = (function () {\n\t var canSetImmediate = typeof window !== 'undefined'\n\t && window.setImmediate;\n\t var canPost = typeof window !== 'undefined'\n\t && window.postMessage && window.addEventListener\n\t ;\n\t\n\t if (canSetImmediate) {\n\t return function (f) { return window.setImmediate(f) };\n\t }\n\t\n\t if (canPost) {\n\t var queue = [];\n\t window.addEventListener('message', function (ev) {\n\t var source = ev.source;\n\t if ((source === window || source === null) && ev.data === 'process-tick') {\n\t ev.stopPropagation();\n\t if (queue.length > 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/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 12 */\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__(4);\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/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar Promise = __webpack_require__(14).Promise;\n\tvar polyfill = __webpack_require__(15).polyfill;\n\texports.Promise = Promise;\n\texports.polyfill = polyfill;\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar config = __webpack_require__(16).config;\n\tvar configure = __webpack_require__(16).configure;\n\tvar objectOrFunction = __webpack_require__(17).objectOrFunction;\n\tvar isFunction = __webpack_require__(17).isFunction;\n\tvar now = __webpack_require__(17).now;\n\tvar all = __webpack_require__(18).all;\n\tvar race = __webpack_require__(19).race;\n\tvar staticResolve = __webpack_require__(20).resolve;\n\tvar staticReject = __webpack_require__(21).reject;\n\tvar asap = __webpack_require__(22).asap;\n\t\n\tvar counter = 0;\n\t\n\tconfig.async = asap; // default async is asap;\n\t\n\tfunction Promise(resolver) {\n\t if (!isFunction(resolver)) {\n\t throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n\t }\n\t\n\t if (!(this instanceof Promise)) {\n\t throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n\t }\n\t\n\t this._subscribers = [];\n\t\n\t invokeResolver(resolver, this);\n\t}\n\t\n\tfunction invokeResolver(resolver, promise) {\n\t function resolvePromise(value) {\n\t resolve(promise, value);\n\t }\n\t\n\t function rejectPromise(reason) {\n\t reject(promise, reason);\n\t }\n\t\n\t try {\n\t resolver(resolvePromise, rejectPromise);\n\t } catch(e) {\n\t rejectPromise(e);\n\t }\n\t}\n\t\n\tfunction invokeCallback(settled, promise, callback, detail) {\n\t var hasCallback = isFunction(callback),\n\t value, error, succeeded, failed;\n\t\n\t if (hasCallback) {\n\t try {\n\t value = callback(detail);\n\t succeeded = true;\n\t } catch(e) {\n\t failed = true;\n\t error = e;\n\t }\n\t } else {\n\t value = detail;\n\t succeeded = true;\n\t }\n\t\n\t if (handleThenable(promise, value)) {\n\t return;\n\t } else if (hasCallback && succeeded) {\n\t resolve(promise, value);\n\t } else if (failed) {\n\t reject(promise, error);\n\t } else if (settled === FULFILLED) {\n\t resolve(promise, value);\n\t } else if (settled === REJECTED) {\n\t reject(promise, value);\n\t }\n\t}\n\t\n\tvar PENDING = void 0;\n\tvar SEALED = 0;\n\tvar FULFILLED = 1;\n\tvar REJECTED = 2;\n\t\n\tfunction subscribe(parent, child, onFulfillment, onRejection) {\n\t var subscribers = parent._subscribers;\n\t var length = subscribers.length;\n\t\n\t subscribers[length] = child;\n\t subscribers[length + FULFILLED] = onFulfillment;\n\t subscribers[length + REJECTED] = onRejection;\n\t}\n\t\n\tfunction publish(promise, settled) {\n\t var child, callback, subscribers = promise._subscribers, detail = promise._detail;\n\t\n\t for (var i = 0; i < subscribers.length; i += 3) {\n\t child = subscribers[i];\n\t callback = subscribers[i + settled];\n\t\n\t invokeCallback(settled, child, callback, detail);\n\t }\n\t\n\t promise._subscribers = null;\n\t}\n\t\n\tPromise.prototype = {\n\t constructor: Promise,\n\t\n\t _state: undefined,\n\t _detail: undefined,\n\t _subscribers: undefined,\n\t\n\t then: function(onFulfillment, onRejection) {\n\t var promise = this;\n\t\n\t var thenPromise = new this.constructor(function() {});\n\t\n\t if (this._state) {\n\t var callbacks = arguments;\n\t config.async(function invokePromiseCallback() {\n\t invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail);\n\t });\n\t } else {\n\t subscribe(this, thenPromise, onFulfillment, onRejection);\n\t }\n\t\n\t return thenPromise;\n\t },\n\t\n\t 'catch': function(onRejection) {\n\t return this.then(null, onRejection);\n\t }\n\t};\n\t\n\tPromise.all = all;\n\tPromise.race = race;\n\tPromise.resolve = staticResolve;\n\tPromise.reject = staticReject;\n\t\n\tfunction handleThenable(promise, value) {\n\t var then = null,\n\t resolved;\n\t\n\t try {\n\t if (promise === value) {\n\t throw new TypeError(\"A promises callback cannot return that same promise.\");\n\t }\n\t\n\t if (objectOrFunction(value)) {\n\t then = value.then;\n\t\n\t if (isFunction(then)) {\n\t then.call(value, function(val) {\n\t if (resolved) { return true; }\n\t resolved = true;\n\t\n\t if (value !== val) {\n\t resolve(promise, val);\n\t } else {\n\t fulfill(promise, val);\n\t }\n\t }, function(val) {\n\t if (resolved) { return true; }\n\t resolved = true;\n\t\n\t reject(promise, val);\n\t });\n\t\n\t return true;\n\t }\n\t }\n\t } catch (error) {\n\t if (resolved) { return true; }\n\t reject(promise, error);\n\t return true;\n\t }\n\t\n\t return false;\n\t}\n\t\n\tfunction resolve(promise, value) {\n\t if (promise === value) {\n\t fulfill(promise, value);\n\t } else if (!handleThenable(promise, value)) {\n\t fulfill(promise, value);\n\t }\n\t}\n\t\n\tfunction fulfill(promise, value) {\n\t if (promise._state !== PENDING) { return; }\n\t promise._state = SEALED;\n\t promise._detail = value;\n\t\n\t config.async(publishFulfillment, promise);\n\t}\n\t\n\tfunction reject(promise, reason) {\n\t if (promise._state !== PENDING) { return; }\n\t promise._state = SEALED;\n\t promise._detail = reason;\n\t\n\t config.async(publishRejection, promise);\n\t}\n\t\n\tfunction publishFulfillment(promise) {\n\t publish(promise, promise._state = FULFILLED);\n\t}\n\t\n\tfunction publishRejection(promise) {\n\t publish(promise, promise._state = REJECTED);\n\t}\n\t\n\texports.Promise = Promise;\n\n/***/ },\n/* 15 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {\"use strict\";\n\t/*global self*/\n\tvar RSVPPromise = __webpack_require__(14).Promise;\n\tvar isFunction = __webpack_require__(17).isFunction;\n\t\n\tfunction polyfill() {\n\t var local;\n\t\n\t if (typeof global !== 'undefined') {\n\t local = global;\n\t } else if (typeof window !== 'undefined' && window.document) {\n\t local = window;\n\t } else {\n\t local = self;\n\t }\n\t\n\t var es6PromiseSupport = \n\t \"Promise\" in local &&\n\t // Some of these methods are missing from\n\t // Firefox/Chrome experimental implementations\n\t \"resolve\" in local.Promise &&\n\t \"reject\" in local.Promise &&\n\t \"all\" in local.Promise &&\n\t \"race\" in local.Promise &&\n\t // Older version of the spec had a resolver object\n\t // as the arg rather than a function\n\t (function() {\n\t var resolve;\n\t new local.Promise(function(r) { resolve = r; });\n\t return isFunction(resolve);\n\t }());\n\t\n\t if (!es6PromiseSupport) {\n\t local.Promise = RSVPPromise;\n\t }\n\t}\n\t\n\texports.polyfill = polyfill;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar config = {\n\t instrument: false\n\t};\n\t\n\tfunction configure(name, value) {\n\t if (arguments.length === 2) {\n\t config[name] = value;\n\t } else {\n\t return config[name];\n\t }\n\t}\n\t\n\texports.config = config;\n\texports.configure = configure;\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tfunction objectOrFunction(x) {\n\t return isFunction(x) || (typeof x === \"object\" && x !== null);\n\t}\n\t\n\tfunction isFunction(x) {\n\t return typeof x === \"function\";\n\t}\n\t\n\tfunction isArray(x) {\n\t return Object.prototype.toString.call(x) === \"[object Array]\";\n\t}\n\t\n\t// Date.now is not available in browsers < IE9\n\t// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\n\tvar now = Date.now || function() { return new Date().getTime(); };\n\t\n\t\n\texports.objectOrFunction = objectOrFunction;\n\texports.isFunction = isFunction;\n\texports.isArray = isArray;\n\texports.now = now;\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t/* global toString */\n\t\n\tvar isArray = __webpack_require__(17).isArray;\n\tvar isFunction = __webpack_require__(17).isFunction;\n\t\n\t/**\n\t Returns a promise that is fulfilled when all the given promises have been\n\t fulfilled, or rejected if any of them become rejected. The return promise\n\t is fulfilled with an array that gives all the values in the order they were\n\t passed in the `promises` array argument.\n\t\n\t Example:\n\t\n\t ```javascript\n\t var promise1 = RSVP.resolve(1);\n\t var promise2 = RSVP.resolve(2);\n\t var promise3 = RSVP.resolve(3);\n\t var promises = [ promise1, promise2, promise3 ];\n\t\n\t RSVP.all(promises).then(function(array){\n\t // The array here would be [ 1, 2, 3 ];\n\t });\n\t ```\n\t\n\t If any of the `promises` given to `RSVP.all` are rejected, the first promise\n\t that is rejected will be given as an argument to the returned promises's\n\t rejection handler. For example:\n\t\n\t Example:\n\t\n\t ```javascript\n\t var promise1 = RSVP.resolve(1);\n\t var promise2 = RSVP.reject(new Error(\"2\"));\n\t var promise3 = RSVP.reject(new Error(\"3\"));\n\t var promises = [ promise1, promise2, promise3 ];\n\t\n\t RSVP.all(promises).then(function(array){\n\t // Code here never runs because there are rejected promises!\n\t }, function(error) {\n\t // error.message === \"2\"\n\t });\n\t ```\n\t\n\t @method all\n\t @for RSVP\n\t @param {Array} promises\n\t @param {String} label\n\t @return {Promise} promise that is fulfilled when all `promises` have been\n\t fulfilled, or rejected if any of them become rejected.\n\t*/\n\tfunction all(promises) {\n\t /*jshint validthis:true */\n\t var Promise = this;\n\t\n\t if (!isArray(promises)) {\n\t throw new TypeError('You must pass an array to all.');\n\t }\n\t\n\t return new Promise(function(resolve, reject) {\n\t var results = [], remaining = promises.length,\n\t promise;\n\t\n\t if (remaining === 0) {\n\t resolve([]);\n\t }\n\t\n\t function resolver(index) {\n\t return function(value) {\n\t resolveAll(index, value);\n\t };\n\t }\n\t\n\t function resolveAll(index, value) {\n\t results[index] = value;\n\t if (--remaining === 0) {\n\t resolve(results);\n\t }\n\t }\n\t\n\t for (var i = 0; i < promises.length; i++) {\n\t promise = promises[i];\n\t\n\t if (promise && isFunction(promise.then)) {\n\t promise.then(resolver(i), reject);\n\t } else {\n\t resolveAll(i, promise);\n\t }\n\t }\n\t });\n\t}\n\t\n\texports.all = all;\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t/* global toString */\n\tvar isArray = __webpack_require__(17).isArray;\n\t\n\t/**\n\t `RSVP.race` allows you to watch a series of promises and act as soon as the\n\t first promise given to the `promises` argument fulfills or rejects.\n\t\n\t Example:\n\t\n\t ```javascript\n\t var promise1 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t resolve(\"promise 1\");\n\t }, 200);\n\t });\n\t\n\t var promise2 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t resolve(\"promise 2\");\n\t }, 100);\n\t });\n\t\n\t RSVP.race([promise1, promise2]).then(function(result){\n\t // result === \"promise 2\" because it was resolved before promise1\n\t // was resolved.\n\t });\n\t ```\n\t\n\t `RSVP.race` is deterministic in that only the state of the first completed\n\t promise matters. For example, even if other promises given to the `promises`\n\t array argument are resolved, but the first completed promise has become\n\t rejected before the other promises became fulfilled, the returned promise\n\t will become rejected:\n\t\n\t ```javascript\n\t var promise1 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t resolve(\"promise 1\");\n\t }, 200);\n\t });\n\t\n\t var promise2 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t reject(new Error(\"promise 2\"));\n\t }, 100);\n\t });\n\t\n\t RSVP.race([promise1, promise2]).then(function(result){\n\t // Code here never runs because there are rejected promises!\n\t }, function(reason){\n\t // reason.message === \"promise2\" because promise 2 became rejected before\n\t // promise 1 became fulfilled\n\t });\n\t ```\n\t\n\t @method race\n\t @for RSVP\n\t @param {Array} promises array of promises to observe\n\t @param {String} label optional string for describing the promise returned.\n\t Useful for tooling.\n\t @return {Promise} a promise that becomes fulfilled with the value the first\n\t completed promises is resolved with if the first completed promise was\n\t fulfilled, or rejected with the reason that the first completed promise\n\t was rejected with.\n\t*/\n\tfunction race(promises) {\n\t /*jshint validthis:true */\n\t var Promise = this;\n\t\n\t if (!isArray(promises)) {\n\t throw new TypeError('You must pass an array to race.');\n\t }\n\t return new Promise(function(resolve, reject) {\n\t var results = [], promise;\n\t\n\t for (var i = 0; i < promises.length; i++) {\n\t promise = promises[i];\n\t\n\t if (promise && typeof promise.then === 'function') {\n\t promise.then(resolve, reject);\n\t } else {\n\t resolve(promise);\n\t }\n\t }\n\t });\n\t}\n\t\n\texports.race = race;\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tfunction resolve(value) {\n\t /*jshint validthis:true */\n\t if (value && typeof value === 'object' && value.constructor === this) {\n\t return value;\n\t }\n\t\n\t var Promise = this;\n\t\n\t return new Promise(function(resolve) {\n\t resolve(value);\n\t });\n\t}\n\t\n\texports.resolve = resolve;\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t/**\n\t `RSVP.reject` returns a promise that will become rejected with the passed\n\t `reason`. `RSVP.reject` is essentially shorthand for the following:\n\t\n\t ```javascript\n\t var promise = new RSVP.Promise(function(resolve, reject){\n\t reject(new Error('WHOOPS'));\n\t });\n\t\n\t promise.then(function(value){\n\t // Code here doesn't run because the promise is rejected!\n\t }, function(reason){\n\t // reason.message === 'WHOOPS'\n\t });\n\t ```\n\t\n\t Instead of writing the above, your code now simply becomes the following:\n\t\n\t ```javascript\n\t var promise = RSVP.reject(new Error('WHOOPS'));\n\t\n\t promise.then(function(value){\n\t // Code here doesn't run because the promise is rejected!\n\t }, function(reason){\n\t // reason.message === 'WHOOPS'\n\t });\n\t ```\n\t\n\t @method reject\n\t @for RSVP\n\t @param {Any} reason value that the returned promise will be rejected with.\n\t @param {String} label optional string for identifying the returned promise.\n\t Useful for tooling.\n\t @return {Promise} a promise that will become rejected with the given\n\t `reason`.\n\t*/\n\tfunction reject(reason) {\n\t /*jshint validthis:true */\n\t var Promise = this;\n\t\n\t return new Promise(function (resolve, reject) {\n\t reject(reason);\n\t });\n\t}\n\t\n\texports.reject = reject;\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global, process) {\"use strict\";\n\tvar browserGlobal = (typeof window !== 'undefined') ? window : {};\n\tvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\n\tvar local = (typeof global !== 'undefined') ? global : (this === undefined? window:this);\n\t\n\t// node\n\tfunction useNextTick() {\n\t return function() {\n\t process.nextTick(flush);\n\t };\n\t}\n\t\n\tfunction useMutationObserver() {\n\t var iterations = 0;\n\t var observer = new BrowserMutationObserver(flush);\n\t var node = document.createTextNode('');\n\t observer.observe(node, { characterData: true });\n\t\n\t return function() {\n\t node.data = (iterations = ++iterations % 2);\n\t };\n\t}\n\t\n\tfunction useSetTimeout() {\n\t return function() {\n\t local.setTimeout(flush, 1);\n\t };\n\t}\n\t\n\tvar queue = [];\n\tfunction flush() {\n\t for (var i = 0; i < queue.length; i++) {\n\t var tuple = queue[i];\n\t var callback = tuple[0], arg = tuple[1];\n\t callback(arg);\n\t }\n\t queue = [];\n\t}\n\t\n\tvar scheduleFlush;\n\t\n\t// Decide what async method to use to triggering processing of queued callbacks:\n\tif (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n\t scheduleFlush = useNextTick();\n\t} else if (BrowserMutationObserver) {\n\t scheduleFlush = useMutationObserver();\n\t} else {\n\t scheduleFlush = useSetTimeout();\n\t}\n\t\n\tfunction asap(callback, arg) {\n\t var length = queue.push([callback, arg]);\n\t if (length === 1) {\n\t // If length is 1, that means that we need to schedule an async flush.\n\t // If additional callbacks are queued before the queue is flushed, they\n\t // will be processed by this flush that we are scheduling.\n\t scheduleFlush();\n\t }\n\t}\n\t\n\texports.asap = asap;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(7)))\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 700adba7b0a8552c5642\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 defaults = require('./defaults');\nvar utils = require('./utils');\nvar spread = require('./spread');\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 try {\n // For browsers use XHR adapter\n if (typeof window !== 'undefined') {\n require('./adapters/xhr')(resolve, reject, config);\n }\n // For node use HTTP adapter\n else if (typeof process !== 'undefined') {\n require('./adapters/http')(resolve, reject, config);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n // Provide alias for success\n promise.success = function success(fn) {\n promise.then(function(response) {\n fn(response.data, response.status, response.headers, response.config);\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.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Expose all/spread\naxios.all = function (promises) {\n return Promise.all(promises);\n};\naxios.spread = spread;\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 **/","if(typeof undefined === 'undefined') {var e = new Error(\"Cannot find module \\\"undefined\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e;}\nmodule.exports = undefined;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"undefined\"\n ** module id = 2\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) : data;\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 = 3\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= 200 && request.status < 300\n ? resolve\n : reject)(response);\n\n // Clean up request\n request = null;\n }\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 // Add headers to the request\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\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/adapters/xhr.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\n\nprocess.nextTick = (function () {\n var canSetImmediate = typeof window !== 'undefined'\n && window.setImmediate;\n var canPost = typeof window !== 'undefined'\n && window.postMessage && window.addEventListener\n ;\n\n if (canSetImmediate) {\n return function (f) { return window.setImmediate(f) };\n }\n\n if (canPost) {\n var queue = [];\n window.addEventListener('message', function (ev) {\n var source = ev.source;\n if ((source === window || source === null) && ev.data === 'process-tick') {\n ev.stopPropagation();\n if (queue.length > 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 = 7\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 = 8\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 = 9\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 = 10\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 = 11\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 = 12\n ** module chunks = 0\n **/","\"use strict\";\nvar Promise = require(\"./promise/promise\").Promise;\nvar polyfill = require(\"./promise/polyfill\").polyfill;\nexports.Promise = Promise;\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/main.js\n ** module id = 13\n ** module chunks = 0\n **/","\"use strict\";\nvar config = require(\"./config\").config;\nvar configure = require(\"./config\").configure;\nvar objectOrFunction = require(\"./utils\").objectOrFunction;\nvar isFunction = require(\"./utils\").isFunction;\nvar now = require(\"./utils\").now;\nvar all = require(\"./all\").all;\nvar race = require(\"./race\").race;\nvar staticResolve = require(\"./resolve\").resolve;\nvar staticReject = require(\"./reject\").reject;\nvar asap = require(\"./asap\").asap;\n\nvar counter = 0;\n\nconfig.async = asap; // default async is asap;\n\nfunction Promise(resolver) {\n if (!isFunction(resolver)) {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n\n if (!(this instanceof Promise)) {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n }\n\n this._subscribers = [];\n\n invokeResolver(resolver, this);\n}\n\nfunction invokeResolver(resolver, promise) {\n function resolvePromise(value) {\n resolve(promise, value);\n }\n\n function rejectPromise(reason) {\n reject(promise, reason);\n }\n\n try {\n resolver(resolvePromise, rejectPromise);\n } catch(e) {\n rejectPromise(e);\n }\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value, error, succeeded, failed;\n\n if (hasCallback) {\n try {\n value = callback(detail);\n succeeded = true;\n } catch(e) {\n failed = true;\n error = e;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (handleThenable(promise, value)) {\n return;\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (failed) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n resolve(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n}\n\nvar PENDING = void 0;\nvar SEALED = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var subscribers = parent._subscribers;\n var length = subscribers.length;\n\n subscribers[length] = child;\n subscribers[length + FULFILLED] = onFulfillment;\n subscribers[length + REJECTED] = onRejection;\n}\n\nfunction publish(promise, settled) {\n var child, callback, subscribers = promise._subscribers, detail = promise._detail;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n invokeCallback(settled, child, callback, detail);\n }\n\n promise._subscribers = null;\n}\n\nPromise.prototype = {\n constructor: Promise,\n\n _state: undefined,\n _detail: undefined,\n _subscribers: undefined,\n\n then: function(onFulfillment, onRejection) {\n var promise = this;\n\n var thenPromise = new this.constructor(function() {});\n\n if (this._state) {\n var callbacks = arguments;\n config.async(function invokePromiseCallback() {\n invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail);\n });\n } else {\n subscribe(this, thenPromise, onFulfillment, onRejection);\n }\n\n return thenPromise;\n },\n\n 'catch': function(onRejection) {\n return this.then(null, onRejection);\n }\n};\n\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = staticResolve;\nPromise.reject = staticReject;\n\nfunction handleThenable(promise, value) {\n var then = null,\n resolved;\n\n try {\n if (promise === value) {\n throw new TypeError(\"A promises callback cannot return that same promise.\");\n }\n\n if (objectOrFunction(value)) {\n then = value.then;\n\n if (isFunction(then)) {\n then.call(value, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n if (value !== val) {\n resolve(promise, val);\n } else {\n fulfill(promise, val);\n }\n }, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n reject(promise, val);\n });\n\n return true;\n }\n }\n } catch (error) {\n if (resolved) { return true; }\n reject(promise, error);\n return true;\n }\n\n return false;\n}\n\nfunction resolve(promise, value) {\n if (promise === value) {\n fulfill(promise, value);\n } else if (!handleThenable(promise, value)) {\n fulfill(promise, value);\n }\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = value;\n\n config.async(publishFulfillment, promise);\n}\n\nfunction reject(promise, reason) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = reason;\n\n config.async(publishRejection, promise);\n}\n\nfunction publishFulfillment(promise) {\n publish(promise, promise._state = FULFILLED);\n}\n\nfunction publishRejection(promise) {\n publish(promise, promise._state = REJECTED);\n}\n\nexports.Promise = Promise;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/promise.js\n ** module id = 14\n ** module chunks = 0\n **/","\"use strict\";\n/*global self*/\nvar RSVPPromise = require(\"./promise\").Promise;\nvar isFunction = require(\"./utils\").isFunction;\n\nfunction polyfill() {\n var local;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof window !== 'undefined' && window.document) {\n local = window;\n } else {\n local = self;\n }\n\n var es6PromiseSupport = \n \"Promise\" in local &&\n // Some of these methods are missing from\n // Firefox/Chrome experimental implementations\n \"resolve\" in local.Promise &&\n \"reject\" in local.Promise &&\n \"all\" in local.Promise &&\n \"race\" in local.Promise &&\n // Older version of the spec had a resolver object\n // as the arg rather than a function\n (function() {\n var resolve;\n new local.Promise(function(r) { resolve = r; });\n return isFunction(resolve);\n }());\n\n if (!es6PromiseSupport) {\n local.Promise = RSVPPromise;\n }\n}\n\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/polyfill.js\n ** module id = 15\n ** module chunks = 0\n **/","\"use strict\";\nvar config = {\n instrument: false\n};\n\nfunction configure(name, value) {\n if (arguments.length === 2) {\n config[name] = value;\n } else {\n return config[name];\n }\n}\n\nexports.config = config;\nexports.configure = configure;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/config.js\n ** module id = 16\n ** module chunks = 0\n **/","\"use strict\";\nfunction objectOrFunction(x) {\n return isFunction(x) || (typeof x === \"object\" && x !== null);\n}\n\nfunction isFunction(x) {\n return typeof x === \"function\";\n}\n\nfunction isArray(x) {\n return Object.prototype.toString.call(x) === \"[object Array]\";\n}\n\n// Date.now is not available in browsers < IE9\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\nvar now = Date.now || function() { return new Date().getTime(); };\n\n\nexports.objectOrFunction = objectOrFunction;\nexports.isFunction = isFunction;\nexports.isArray = isArray;\nexports.now = now;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/utils.js\n ** module id = 17\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\n\nvar isArray = require(\"./utils\").isArray;\nvar isFunction = require(\"./utils\").isFunction;\n\n/**\n Returns a promise that is fulfilled when all the given promises have been\n fulfilled, or rejected if any of them become rejected. The return promise\n is fulfilled with an array that gives all the values in the order they were\n passed in the `promises` array argument.\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.resolve(2);\n var promise3 = RSVP.resolve(3);\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `RSVP.all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.reject(new Error(\"2\"));\n var promise3 = RSVP.reject(new Error(\"3\"));\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @for RSVP\n @param {Array} promises\n @param {String} label\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n*/\nfunction all(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to all.');\n }\n\n return new Promise(function(resolve, reject) {\n var results = [], remaining = promises.length,\n promise;\n\n if (remaining === 0) {\n resolve([]);\n }\n\n function resolver(index) {\n return function(value) {\n resolveAll(index, value);\n };\n }\n\n function resolveAll(index, value) {\n results[index] = value;\n if (--remaining === 0) {\n resolve(results);\n }\n }\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && isFunction(promise.then)) {\n promise.then(resolver(i), reject);\n } else {\n resolveAll(i, promise);\n }\n }\n });\n}\n\nexports.all = all;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/all.js\n ** module id = 18\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\nvar isArray = require(\"./utils\").isArray;\n\n/**\n `RSVP.race` allows you to watch a series of promises and act as soon as the\n first promise given to the `promises` argument fulfills or rejects.\n\n Example:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 2\");\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // result === \"promise 2\" because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `RSVP.race` is deterministic in that only the state of the first completed\n promise matters. For example, even if other promises given to the `promises`\n array argument are resolved, but the first completed promise has become\n rejected before the other promises became fulfilled, the returned promise\n will become rejected:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error(\"promise 2\"));\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // Code here never runs because there are rejected promises!\n }, function(reason){\n // reason.message === \"promise2\" because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n @method race\n @for RSVP\n @param {Array} promises array of promises to observe\n @param {String} label optional string for describing the promise returned.\n Useful for tooling.\n @return {Promise} a promise that becomes fulfilled with the value the first\n completed promises is resolved with if the first completed promise was\n fulfilled, or rejected with the reason that the first completed promise\n was rejected with.\n*/\nfunction race(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to race.');\n }\n return new Promise(function(resolve, reject) {\n var results = [], promise;\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolve, reject);\n } else {\n resolve(promise);\n }\n }\n });\n}\n\nexports.race = race;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/race.js\n ** module id = 19\n ** module chunks = 0\n **/","\"use strict\";\nfunction resolve(value) {\n /*jshint validthis:true */\n if (value && typeof value === 'object' && value.constructor === this) {\n return value;\n }\n\n var Promise = this;\n\n return new Promise(function(resolve) {\n resolve(value);\n });\n}\n\nexports.resolve = resolve;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/resolve.js\n ** module id = 20\n ** module chunks = 0\n **/","\"use strict\";\n/**\n `RSVP.reject` returns a promise that will become rejected with the passed\n `reason`. `RSVP.reject` is essentially shorthand for the following:\n\n ```javascript\n var promise = new RSVP.Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n var promise = RSVP.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @for RSVP\n @param {Any} reason value that the returned promise will be rejected with.\n @param {String} label optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise that will become rejected with the given\n `reason`.\n*/\nfunction reject(reason) {\n /*jshint validthis:true */\n var Promise = this;\n\n return new Promise(function (resolve, reject) {\n reject(reason);\n });\n}\n\nexports.reject = reject;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/reject.js\n ** module id = 21\n ** module chunks = 0\n **/","\"use strict\";\nvar browserGlobal = (typeof window !== 'undefined') ? window : {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar local = (typeof global !== 'undefined') ? global : (this === undefined? window:this);\n\n// node\nfunction useNextTick() {\n return function() {\n process.nextTick(flush);\n };\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function() {\n node.data = (iterations = ++iterations % 2);\n };\n}\n\nfunction useSetTimeout() {\n return function() {\n local.setTimeout(flush, 1);\n };\n}\n\nvar queue = [];\nfunction flush() {\n for (var i = 0; i < queue.length; i++) {\n var tuple = queue[i];\n var callback = tuple[0], arg = tuple[1];\n callback(arg);\n }\n queue = [];\n}\n\nvar scheduleFlush;\n\n// Decide what async method to use to triggering processing of queued callbacks:\nif (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction asap(callback, arg) {\n var length = queue.push([callback, arg]);\n if (length === 1) {\n // If length is 1, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n scheduleFlush();\n }\n}\n\nexports.asap = asap;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/asap.js\n ** module id = 22\n ** module chunks = 0\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///axios.amd.min.js","webpack:///webpack/bootstrap bee9487b400c7168df29","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///external \"undefined\"","webpack:///./lib/defaults.js","webpack:///./lib/utils.js","webpack:///./lib/adapters/xhr.js","webpack:///./lib/helpers/spread.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./lib/helpers/buildUrl.js","webpack:///./lib/helpers/cookies.js","webpack:///./lib/helpers/parseHeaders.js","webpack:///./lib/helpers/transformData.js","webpack:///./lib/helpers/urlIsSameOrigin.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"],"names":["define","modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","process","createShortMethods","utils","forEach","arguments","method","axios","url","config","merge","createShortMethodsWithData","data","Promise","defaults","deprecatedMethod","instead","docs","console","warn","e","headers","transformRequest","transformResponse","withCredentials","promise","resolve","reject","window","success","fn","then","response","status","error","all","promises","spread","Error","code","JSON_START","JSON_END","PROTECTION_PREFIX","DEFAULT_CONTENT_TYPE","Content-Type","isArrayBuffer","isArrayBufferView","buffer","isObject","isFile","isBlob","isUndefined","JSON","stringify","replace","test","parse","common","Accept","patch","post","put","xsrfCookieName","xsrfHeaderName","isArray","val","toString","ArrayBuffer","isView","isString","isNumber","isDate","trim","str","obj","constructor","Array","callee","i","l","length","key","hasOwnProperty","result","Object","prototype","buildUrl","cookies","parseHeaders","transformData","urlIsSameOrigin","request","XMLHttpRequest","ActiveXObject","open","params","onreadystatechange","readyState","getAllResponseHeaders","responseText","xsrfValue","read","undefined","toLowerCase","setRequestHeader","responseType","DataView","send","callback","arr","apply","noop","nextTick","canSetImmediate","setImmediate","canPost","postMessage","addEventListener","f","queue","ev","source","stopPropagation","shift","push","setTimeout","title","browser","env","argv","on","addListener","once","off","removeListener","removeAllListeners","emit","binding","cwd","chdir","encode","encodeURIComponent","parts","v","toISOString","indexOf","join","write","name","value","expires","path","domain","secure","cookie","Date","toGMTString","document","match","RegExp","decodeURIComponent","remove","this","now","parsed","split","line","substr","fns","urlResolve","href","msie","urlParsingNode","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","navigator","userAgent","createElement","originUrl","location","requestUrl","polyfill","resolver","isFunction","TypeError","_subscribers","invokeResolver","resolvePromise","rejectPromise","reason","invokeCallback","settled","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","race","staticResolve","staticReject","asap","thenPromise","callbacks","catch","global","local","self","es6PromiseSupport","r","RSVPPromise","instrument","x","getTime","index","resolveAll","results","remaining","useNextTick","flush","useMutationObserver","iterations","observer","BrowserMutationObserver","node","createTextNode","observe","characterData","useSetTimeout","tuple","arg","scheduleFlush","browserGlobal","MutationObserver","WebKitMutationObserver"],"mappings":"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","file":"axios.amd.min.js","sourcesContent":["define(\"axios\", [\"undefined\"], function(__WEBPACK_EXTERNAL_MODULE_2__) { 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\t/* WEBPACK VAR INJECTION */(function(process) {var Promise = __webpack_require__(13).Promise;\n\tvar defaults = __webpack_require__(3);\n\tvar utils = __webpack_require__(4);\n\t\n\tvar axios = module.exports = function axios(config) {\n\t config = utils.merge({\n\t method: 'get',\n\t headers: {},\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 try {\n\t // For browsers use XHR adapter\n\t if (typeof window !== 'undefined') {\n\t __webpack_require__(5)(resolve, reject, config);\n\t }\n\t // For node use HTTP adapter\n\t else if (typeof process !== 'undefined') {\n\t __webpack_require__(2)(resolve, reject, config);\n\t }\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t\n\t function deprecatedMethod(method, instead, docs) {\n\t try {\n\t console.warn(\n\t 'DEPRECATED method `' + method + '`.' +\n\t (instead ? ' Use `' + instead + '` instead.' : '') +\n\t ' This method will be removed in a future release.');\n\t\n\t if (docs) {\n\t console.warn('For more information about usage see ' + docs);\n\t }\n\t } catch (e) {}\n\t }\n\t\n\t // Provide alias for success\n\t promise.success = function success(fn) {\n\t deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\t\n\t promise.then(function(response) {\n\t fn(response.data, response.status, response.headers, response.config);\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 deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\t\n\t promise.then(null, function(response) {\n\t fn(response.data, response.status, response.headers, response.config);\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// Expose all/spread\n\taxios.all = function (promises) {\n\t return Promise.all(promises);\n\t};\n\taxios.spread = __webpack_require__(6);\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\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tif(typeof undefined === 'undefined') {var e = new Error(\"Cannot find module \\\"undefined\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e;}\n\tmodule.exports = undefined;\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\n\t\n\tvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\n\tvar JSON_END = /[\\}\\]]\\s*$/;\n\tvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\n\tvar DEFAULT_CONTENT_TYPE = {\n\t 'Content-Type': 'application/x-www-form-urlencoded'\n\t};\n\t\n\tmodule.exports = {\n\t transformRequest: [function (data, headers) {\n\t if (utils.isArrayBuffer(data)) {\n\t return data;\n\t }\n\t if (utils.isArrayBufferView(data)) {\n\t return data.buffer;\n\t }\n\t if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n\t // Set application/json if no Content-Type has been specified\n\t if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n\t headers['Content-Type'] = 'application/json;charset=utf-8';\n\t }\n\t return JSON.stringify(data);\n\t }\n\t return data;\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(DEFAULT_CONTENT_TYPE),\n\t post: utils.merge(DEFAULT_CONTENT_TYPE),\n\t put: utils.merge(DEFAULT_CONTENT_TYPE)\n\t },\n\t\n\t xsrfCookieName: 'XSRF-TOKEN',\n\t xsrfHeaderName: 'X-XSRF-TOKEN'\n\t};\n\n/***/ },\n/* 4 */\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 an ArrayBuffer\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n\t */\n\tfunction isArrayBuffer(val) {\n\t return toString.call(val) === '[object ArrayBuffer]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a view on an ArrayBuffer\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n\t */\n\tfunction isArrayBufferView(val) {\n\t if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n\t return ArrayBuffer.isView(val);\n\t } else {\n\t return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n\t }\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 undefined\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if the value is undefined, otherwise false\n\t */\n\tfunction isUndefined(val) {\n\t return typeof val === 'undefined';\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= 200 && request.status < 300\n\t ? resolve\n\t : reject)(response);\n\t\n\t // Clean up request\n\t request = null;\n\t }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n\t data = new DataView(data);\n\t }\n\t\n\t // Send the request\n\t request.send(data);\n\t};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * Syntactic sugar for invoking a function and expanding an array for arguments.\n\t *\n\t * Common use case would be to use `Function.prototype.apply`.\n\t *\n\t * ```js\n\t * function f(x, y, z) {}\n\t * var args = [1, 2, 3];\n\t * f.apply(null, args);\n\t * ```\n\t *\n\t * With `spread` this example can be re-written.\n\t *\n\t * ```js\n\t * spread(function(x, y, z) {})([1, 2, 3]);\n\t * ```\n\t *\n\t * @param {Function} callback\n\t * @returns {Function}\n\t */\n\tmodule.exports = function spread(callback) {\n\t return function (arr) {\n\t callback.apply(null, arr);\n\t };\n\t};\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// shim for using process in browser\n\t\n\tvar process = module.exports = {};\n\t\n\tprocess.nextTick = (function () {\n\t var canSetImmediate = typeof window !== 'undefined'\n\t && window.setImmediate;\n\t var canPost = typeof window !== 'undefined'\n\t && window.postMessage && window.addEventListener\n\t ;\n\t\n\t if (canSetImmediate) {\n\t return function (f) { return window.setImmediate(f) };\n\t }\n\t\n\t if (canPost) {\n\t var queue = [];\n\t window.addEventListener('message', function (ev) {\n\t var source = ev.source;\n\t if ((source === window || source === null) && ev.data === 'process-tick') {\n\t ev.stopPropagation();\n\t if (queue.length > 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/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 12 */\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__(4);\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/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar Promise = __webpack_require__(14).Promise;\n\tvar polyfill = __webpack_require__(15).polyfill;\n\texports.Promise = Promise;\n\texports.polyfill = polyfill;\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar config = __webpack_require__(16).config;\n\tvar configure = __webpack_require__(16).configure;\n\tvar objectOrFunction = __webpack_require__(17).objectOrFunction;\n\tvar isFunction = __webpack_require__(17).isFunction;\n\tvar now = __webpack_require__(17).now;\n\tvar all = __webpack_require__(18).all;\n\tvar race = __webpack_require__(19).race;\n\tvar staticResolve = __webpack_require__(20).resolve;\n\tvar staticReject = __webpack_require__(21).reject;\n\tvar asap = __webpack_require__(22).asap;\n\t\n\tvar counter = 0;\n\t\n\tconfig.async = asap; // default async is asap;\n\t\n\tfunction Promise(resolver) {\n\t if (!isFunction(resolver)) {\n\t throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n\t }\n\t\n\t if (!(this instanceof Promise)) {\n\t throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n\t }\n\t\n\t this._subscribers = [];\n\t\n\t invokeResolver(resolver, this);\n\t}\n\t\n\tfunction invokeResolver(resolver, promise) {\n\t function resolvePromise(value) {\n\t resolve(promise, value);\n\t }\n\t\n\t function rejectPromise(reason) {\n\t reject(promise, reason);\n\t }\n\t\n\t try {\n\t resolver(resolvePromise, rejectPromise);\n\t } catch(e) {\n\t rejectPromise(e);\n\t }\n\t}\n\t\n\tfunction invokeCallback(settled, promise, callback, detail) {\n\t var hasCallback = isFunction(callback),\n\t value, error, succeeded, failed;\n\t\n\t if (hasCallback) {\n\t try {\n\t value = callback(detail);\n\t succeeded = true;\n\t } catch(e) {\n\t failed = true;\n\t error = e;\n\t }\n\t } else {\n\t value = detail;\n\t succeeded = true;\n\t }\n\t\n\t if (handleThenable(promise, value)) {\n\t return;\n\t } else if (hasCallback && succeeded) {\n\t resolve(promise, value);\n\t } else if (failed) {\n\t reject(promise, error);\n\t } else if (settled === FULFILLED) {\n\t resolve(promise, value);\n\t } else if (settled === REJECTED) {\n\t reject(promise, value);\n\t }\n\t}\n\t\n\tvar PENDING = void 0;\n\tvar SEALED = 0;\n\tvar FULFILLED = 1;\n\tvar REJECTED = 2;\n\t\n\tfunction subscribe(parent, child, onFulfillment, onRejection) {\n\t var subscribers = parent._subscribers;\n\t var length = subscribers.length;\n\t\n\t subscribers[length] = child;\n\t subscribers[length + FULFILLED] = onFulfillment;\n\t subscribers[length + REJECTED] = onRejection;\n\t}\n\t\n\tfunction publish(promise, settled) {\n\t var child, callback, subscribers = promise._subscribers, detail = promise._detail;\n\t\n\t for (var i = 0; i < subscribers.length; i += 3) {\n\t child = subscribers[i];\n\t callback = subscribers[i + settled];\n\t\n\t invokeCallback(settled, child, callback, detail);\n\t }\n\t\n\t promise._subscribers = null;\n\t}\n\t\n\tPromise.prototype = {\n\t constructor: Promise,\n\t\n\t _state: undefined,\n\t _detail: undefined,\n\t _subscribers: undefined,\n\t\n\t then: function(onFulfillment, onRejection) {\n\t var promise = this;\n\t\n\t var thenPromise = new this.constructor(function() {});\n\t\n\t if (this._state) {\n\t var callbacks = arguments;\n\t config.async(function invokePromiseCallback() {\n\t invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail);\n\t });\n\t } else {\n\t subscribe(this, thenPromise, onFulfillment, onRejection);\n\t }\n\t\n\t return thenPromise;\n\t },\n\t\n\t 'catch': function(onRejection) {\n\t return this.then(null, onRejection);\n\t }\n\t};\n\t\n\tPromise.all = all;\n\tPromise.race = race;\n\tPromise.resolve = staticResolve;\n\tPromise.reject = staticReject;\n\t\n\tfunction handleThenable(promise, value) {\n\t var then = null,\n\t resolved;\n\t\n\t try {\n\t if (promise === value) {\n\t throw new TypeError(\"A promises callback cannot return that same promise.\");\n\t }\n\t\n\t if (objectOrFunction(value)) {\n\t then = value.then;\n\t\n\t if (isFunction(then)) {\n\t then.call(value, function(val) {\n\t if (resolved) { return true; }\n\t resolved = true;\n\t\n\t if (value !== val) {\n\t resolve(promise, val);\n\t } else {\n\t fulfill(promise, val);\n\t }\n\t }, function(val) {\n\t if (resolved) { return true; }\n\t resolved = true;\n\t\n\t reject(promise, val);\n\t });\n\t\n\t return true;\n\t }\n\t }\n\t } catch (error) {\n\t if (resolved) { return true; }\n\t reject(promise, error);\n\t return true;\n\t }\n\t\n\t return false;\n\t}\n\t\n\tfunction resolve(promise, value) {\n\t if (promise === value) {\n\t fulfill(promise, value);\n\t } else if (!handleThenable(promise, value)) {\n\t fulfill(promise, value);\n\t }\n\t}\n\t\n\tfunction fulfill(promise, value) {\n\t if (promise._state !== PENDING) { return; }\n\t promise._state = SEALED;\n\t promise._detail = value;\n\t\n\t config.async(publishFulfillment, promise);\n\t}\n\t\n\tfunction reject(promise, reason) {\n\t if (promise._state !== PENDING) { return; }\n\t promise._state = SEALED;\n\t promise._detail = reason;\n\t\n\t config.async(publishRejection, promise);\n\t}\n\t\n\tfunction publishFulfillment(promise) {\n\t publish(promise, promise._state = FULFILLED);\n\t}\n\t\n\tfunction publishRejection(promise) {\n\t publish(promise, promise._state = REJECTED);\n\t}\n\t\n\texports.Promise = Promise;\n\n/***/ },\n/* 15 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {\"use strict\";\n\t/*global self*/\n\tvar RSVPPromise = __webpack_require__(14).Promise;\n\tvar isFunction = __webpack_require__(17).isFunction;\n\t\n\tfunction polyfill() {\n\t var local;\n\t\n\t if (typeof global !== 'undefined') {\n\t local = global;\n\t } else if (typeof window !== 'undefined' && window.document) {\n\t local = window;\n\t } else {\n\t local = self;\n\t }\n\t\n\t var es6PromiseSupport = \n\t \"Promise\" in local &&\n\t // Some of these methods are missing from\n\t // Firefox/Chrome experimental implementations\n\t \"resolve\" in local.Promise &&\n\t \"reject\" in local.Promise &&\n\t \"all\" in local.Promise &&\n\t \"race\" in local.Promise &&\n\t // Older version of the spec had a resolver object\n\t // as the arg rather than a function\n\t (function() {\n\t var resolve;\n\t new local.Promise(function(r) { resolve = r; });\n\t return isFunction(resolve);\n\t }());\n\t\n\t if (!es6PromiseSupport) {\n\t local.Promise = RSVPPromise;\n\t }\n\t}\n\t\n\texports.polyfill = polyfill;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar config = {\n\t instrument: false\n\t};\n\t\n\tfunction configure(name, value) {\n\t if (arguments.length === 2) {\n\t config[name] = value;\n\t } else {\n\t return config[name];\n\t }\n\t}\n\t\n\texports.config = config;\n\texports.configure = configure;\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tfunction objectOrFunction(x) {\n\t return isFunction(x) || (typeof x === \"object\" && x !== null);\n\t}\n\t\n\tfunction isFunction(x) {\n\t return typeof x === \"function\";\n\t}\n\t\n\tfunction isArray(x) {\n\t return Object.prototype.toString.call(x) === \"[object Array]\";\n\t}\n\t\n\t// Date.now is not available in browsers < IE9\n\t// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\n\tvar now = Date.now || function() { return new Date().getTime(); };\n\t\n\t\n\texports.objectOrFunction = objectOrFunction;\n\texports.isFunction = isFunction;\n\texports.isArray = isArray;\n\texports.now = now;\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t/* global toString */\n\t\n\tvar isArray = __webpack_require__(17).isArray;\n\tvar isFunction = __webpack_require__(17).isFunction;\n\t\n\t/**\n\t Returns a promise that is fulfilled when all the given promises have been\n\t fulfilled, or rejected if any of them become rejected. The return promise\n\t is fulfilled with an array that gives all the values in the order they were\n\t passed in the `promises` array argument.\n\t\n\t Example:\n\t\n\t ```javascript\n\t var promise1 = RSVP.resolve(1);\n\t var promise2 = RSVP.resolve(2);\n\t var promise3 = RSVP.resolve(3);\n\t var promises = [ promise1, promise2, promise3 ];\n\t\n\t RSVP.all(promises).then(function(array){\n\t // The array here would be [ 1, 2, 3 ];\n\t });\n\t ```\n\t\n\t If any of the `promises` given to `RSVP.all` are rejected, the first promise\n\t that is rejected will be given as an argument to the returned promises's\n\t rejection handler. For example:\n\t\n\t Example:\n\t\n\t ```javascript\n\t var promise1 = RSVP.resolve(1);\n\t var promise2 = RSVP.reject(new Error(\"2\"));\n\t var promise3 = RSVP.reject(new Error(\"3\"));\n\t var promises = [ promise1, promise2, promise3 ];\n\t\n\t RSVP.all(promises).then(function(array){\n\t // Code here never runs because there are rejected promises!\n\t }, function(error) {\n\t // error.message === \"2\"\n\t });\n\t ```\n\t\n\t @method all\n\t @for RSVP\n\t @param {Array} promises\n\t @param {String} label\n\t @return {Promise} promise that is fulfilled when all `promises` have been\n\t fulfilled, or rejected if any of them become rejected.\n\t*/\n\tfunction all(promises) {\n\t /*jshint validthis:true */\n\t var Promise = this;\n\t\n\t if (!isArray(promises)) {\n\t throw new TypeError('You must pass an array to all.');\n\t }\n\t\n\t return new Promise(function(resolve, reject) {\n\t var results = [], remaining = promises.length,\n\t promise;\n\t\n\t if (remaining === 0) {\n\t resolve([]);\n\t }\n\t\n\t function resolver(index) {\n\t return function(value) {\n\t resolveAll(index, value);\n\t };\n\t }\n\t\n\t function resolveAll(index, value) {\n\t results[index] = value;\n\t if (--remaining === 0) {\n\t resolve(results);\n\t }\n\t }\n\t\n\t for (var i = 0; i < promises.length; i++) {\n\t promise = promises[i];\n\t\n\t if (promise && isFunction(promise.then)) {\n\t promise.then(resolver(i), reject);\n\t } else {\n\t resolveAll(i, promise);\n\t }\n\t }\n\t });\n\t}\n\t\n\texports.all = all;\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t/* global toString */\n\tvar isArray = __webpack_require__(17).isArray;\n\t\n\t/**\n\t `RSVP.race` allows you to watch a series of promises and act as soon as the\n\t first promise given to the `promises` argument fulfills or rejects.\n\t\n\t Example:\n\t\n\t ```javascript\n\t var promise1 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t resolve(\"promise 1\");\n\t }, 200);\n\t });\n\t\n\t var promise2 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t resolve(\"promise 2\");\n\t }, 100);\n\t });\n\t\n\t RSVP.race([promise1, promise2]).then(function(result){\n\t // result === \"promise 2\" because it was resolved before promise1\n\t // was resolved.\n\t });\n\t ```\n\t\n\t `RSVP.race` is deterministic in that only the state of the first completed\n\t promise matters. For example, even if other promises given to the `promises`\n\t array argument are resolved, but the first completed promise has become\n\t rejected before the other promises became fulfilled, the returned promise\n\t will become rejected:\n\t\n\t ```javascript\n\t var promise1 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t resolve(\"promise 1\");\n\t }, 200);\n\t });\n\t\n\t var promise2 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t reject(new Error(\"promise 2\"));\n\t }, 100);\n\t });\n\t\n\t RSVP.race([promise1, promise2]).then(function(result){\n\t // Code here never runs because there are rejected promises!\n\t }, function(reason){\n\t // reason.message === \"promise2\" because promise 2 became rejected before\n\t // promise 1 became fulfilled\n\t });\n\t ```\n\t\n\t @method race\n\t @for RSVP\n\t @param {Array} promises array of promises to observe\n\t @param {String} label optional string for describing the promise returned.\n\t Useful for tooling.\n\t @return {Promise} a promise that becomes fulfilled with the value the first\n\t completed promises is resolved with if the first completed promise was\n\t fulfilled, or rejected with the reason that the first completed promise\n\t was rejected with.\n\t*/\n\tfunction race(promises) {\n\t /*jshint validthis:true */\n\t var Promise = this;\n\t\n\t if (!isArray(promises)) {\n\t throw new TypeError('You must pass an array to race.');\n\t }\n\t return new Promise(function(resolve, reject) {\n\t var results = [], promise;\n\t\n\t for (var i = 0; i < promises.length; i++) {\n\t promise = promises[i];\n\t\n\t if (promise && typeof promise.then === 'function') {\n\t promise.then(resolve, reject);\n\t } else {\n\t resolve(promise);\n\t }\n\t }\n\t });\n\t}\n\t\n\texports.race = race;\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tfunction resolve(value) {\n\t /*jshint validthis:true */\n\t if (value && typeof value === 'object' && value.constructor === this) {\n\t return value;\n\t }\n\t\n\t var Promise = this;\n\t\n\t return new Promise(function(resolve) {\n\t resolve(value);\n\t });\n\t}\n\t\n\texports.resolve = resolve;\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t/**\n\t `RSVP.reject` returns a promise that will become rejected with the passed\n\t `reason`. `RSVP.reject` is essentially shorthand for the following:\n\t\n\t ```javascript\n\t var promise = new RSVP.Promise(function(resolve, reject){\n\t reject(new Error('WHOOPS'));\n\t });\n\t\n\t promise.then(function(value){\n\t // Code here doesn't run because the promise is rejected!\n\t }, function(reason){\n\t // reason.message === 'WHOOPS'\n\t });\n\t ```\n\t\n\t Instead of writing the above, your code now simply becomes the following:\n\t\n\t ```javascript\n\t var promise = RSVP.reject(new Error('WHOOPS'));\n\t\n\t promise.then(function(value){\n\t // Code here doesn't run because the promise is rejected!\n\t }, function(reason){\n\t // reason.message === 'WHOOPS'\n\t });\n\t ```\n\t\n\t @method reject\n\t @for RSVP\n\t @param {Any} reason value that the returned promise will be rejected with.\n\t @param {String} label optional string for identifying the returned promise.\n\t Useful for tooling.\n\t @return {Promise} a promise that will become rejected with the given\n\t `reason`.\n\t*/\n\tfunction reject(reason) {\n\t /*jshint validthis:true */\n\t var Promise = this;\n\t\n\t return new Promise(function (resolve, reject) {\n\t reject(reason);\n\t });\n\t}\n\t\n\texports.reject = reject;\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global, process) {\"use strict\";\n\tvar browserGlobal = (typeof window !== 'undefined') ? window : {};\n\tvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\n\tvar local = (typeof global !== 'undefined') ? global : (this === undefined? window:this);\n\t\n\t// node\n\tfunction useNextTick() {\n\t return function() {\n\t process.nextTick(flush);\n\t };\n\t}\n\t\n\tfunction useMutationObserver() {\n\t var iterations = 0;\n\t var observer = new BrowserMutationObserver(flush);\n\t var node = document.createTextNode('');\n\t observer.observe(node, { characterData: true });\n\t\n\t return function() {\n\t node.data = (iterations = ++iterations % 2);\n\t };\n\t}\n\t\n\tfunction useSetTimeout() {\n\t return function() {\n\t local.setTimeout(flush, 1);\n\t };\n\t}\n\t\n\tvar queue = [];\n\tfunction flush() {\n\t for (var i = 0; i < queue.length; i++) {\n\t var tuple = queue[i];\n\t var callback = tuple[0], arg = tuple[1];\n\t callback(arg);\n\t }\n\t queue = [];\n\t}\n\t\n\tvar scheduleFlush;\n\t\n\t// Decide what async method to use to triggering processing of queued callbacks:\n\tif (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n\t scheduleFlush = useNextTick();\n\t} else if (BrowserMutationObserver) {\n\t scheduleFlush = useMutationObserver();\n\t} else {\n\t scheduleFlush = useSetTimeout();\n\t}\n\t\n\tfunction asap(callback, arg) {\n\t var length = queue.push([callback, arg]);\n\t if (length === 1) {\n\t // If length is 1, that means that we need to schedule an async flush.\n\t // If additional callbacks are queued before the queue is flushed, they\n\t // will be processed by this flush that we are scheduling.\n\t scheduleFlush();\n\t }\n\t}\n\t\n\texports.asap = asap;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(7)))\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 bee9487b400c7168df29\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 defaults = require('./defaults');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n headers: {},\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 try {\n // For browsers use XHR adapter\n if (typeof window !== 'undefined') {\n require('./adapters/xhr')(resolve, reject, config);\n }\n // For node use HTTP adapter\n else if (typeof process !== 'undefined') {\n require('./adapters/http')(resolve, reject, config);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n function deprecatedMethod(method, instead, docs) {\n try {\n console.warn(\n 'DEPRECATED method `' + method + '`.' +\n (instead ? ' Use `' + instead + '` instead.' : '') +\n ' This method will be removed in a future release.');\n\n if (docs) {\n console.warn('For more information about usage see ' + docs);\n }\n } catch (e) {}\n }\n\n // Provide alias for success\n promise.success = function success(fn) {\n deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(null, function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Expose all/spread\naxios.all = function (promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\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 **/","if(typeof undefined === 'undefined') {var e = new Error(\"Cannot find module \\\"undefined\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e;}\nmodule.exports = undefined;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"undefined\"\n ** module id = 2\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 DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nmodule.exports = {\n transformRequest: [function (data, headers) {\n if (utils.isArrayBuffer(data)) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n // Set application/json if no Content-Type has been specified\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = 'application/json;charset=utf-8';\n }\n return JSON.stringify(data);\n }\n return data;\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(DEFAULT_CONTENT_TYPE),\n post: utils.merge(DEFAULT_CONTENT_TYPE),\n put: utils.merge(DEFAULT_CONTENT_TYPE)\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 = 3\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 an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n return ArrayBuffer.isView(val);\n } else {\n return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\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 undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\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= 200 && request.status < 300\n ? resolve\n : reject)(response);\n\n // Clean up request\n request = null;\n }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n data = new DataView(data);\n }\n\n // Send the request\n request.send(data);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/adapters/xhr.js\n ** module id = 5\n ** module chunks = 0\n **/","/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function (arr) {\n callback.apply(null, arr);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/helpers/spread.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\n\nprocess.nextTick = (function () {\n var canSetImmediate = typeof window !== 'undefined'\n && window.setImmediate;\n var canPost = typeof window !== 'undefined'\n && window.postMessage && window.addEventListener\n ;\n\n if (canSetImmediate) {\n return function (f) { return window.setImmediate(f) };\n }\n\n if (canPost) {\n var queue = [];\n window.addEventListener('message', function (ev) {\n var source = ev.source;\n if ((source === window || source === null) && ev.data === 'process-tick') {\n ev.stopPropagation();\n if (queue.length > 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 = 7\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/helpers/buildUrl.js\n ** module id = 8\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/helpers/cookies.js\n ** module id = 9\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/helpers/parseHeaders.js\n ** module id = 10\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/helpers/transformData.js\n ** module id = 11\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/helpers/urlIsSameOrigin.js\n ** module id = 12\n ** module chunks = 0\n **/","\"use strict\";\nvar Promise = require(\"./promise/promise\").Promise;\nvar polyfill = require(\"./promise/polyfill\").polyfill;\nexports.Promise = Promise;\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/main.js\n ** module id = 13\n ** module chunks = 0\n **/","\"use strict\";\nvar config = require(\"./config\").config;\nvar configure = require(\"./config\").configure;\nvar objectOrFunction = require(\"./utils\").objectOrFunction;\nvar isFunction = require(\"./utils\").isFunction;\nvar now = require(\"./utils\").now;\nvar all = require(\"./all\").all;\nvar race = require(\"./race\").race;\nvar staticResolve = require(\"./resolve\").resolve;\nvar staticReject = require(\"./reject\").reject;\nvar asap = require(\"./asap\").asap;\n\nvar counter = 0;\n\nconfig.async = asap; // default async is asap;\n\nfunction Promise(resolver) {\n if (!isFunction(resolver)) {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n\n if (!(this instanceof Promise)) {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n }\n\n this._subscribers = [];\n\n invokeResolver(resolver, this);\n}\n\nfunction invokeResolver(resolver, promise) {\n function resolvePromise(value) {\n resolve(promise, value);\n }\n\n function rejectPromise(reason) {\n reject(promise, reason);\n }\n\n try {\n resolver(resolvePromise, rejectPromise);\n } catch(e) {\n rejectPromise(e);\n }\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value, error, succeeded, failed;\n\n if (hasCallback) {\n try {\n value = callback(detail);\n succeeded = true;\n } catch(e) {\n failed = true;\n error = e;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (handleThenable(promise, value)) {\n return;\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (failed) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n resolve(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n}\n\nvar PENDING = void 0;\nvar SEALED = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var subscribers = parent._subscribers;\n var length = subscribers.length;\n\n subscribers[length] = child;\n subscribers[length + FULFILLED] = onFulfillment;\n subscribers[length + REJECTED] = onRejection;\n}\n\nfunction publish(promise, settled) {\n var child, callback, subscribers = promise._subscribers, detail = promise._detail;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n invokeCallback(settled, child, callback, detail);\n }\n\n promise._subscribers = null;\n}\n\nPromise.prototype = {\n constructor: Promise,\n\n _state: undefined,\n _detail: undefined,\n _subscribers: undefined,\n\n then: function(onFulfillment, onRejection) {\n var promise = this;\n\n var thenPromise = new this.constructor(function() {});\n\n if (this._state) {\n var callbacks = arguments;\n config.async(function invokePromiseCallback() {\n invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail);\n });\n } else {\n subscribe(this, thenPromise, onFulfillment, onRejection);\n }\n\n return thenPromise;\n },\n\n 'catch': function(onRejection) {\n return this.then(null, onRejection);\n }\n};\n\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = staticResolve;\nPromise.reject = staticReject;\n\nfunction handleThenable(promise, value) {\n var then = null,\n resolved;\n\n try {\n if (promise === value) {\n throw new TypeError(\"A promises callback cannot return that same promise.\");\n }\n\n if (objectOrFunction(value)) {\n then = value.then;\n\n if (isFunction(then)) {\n then.call(value, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n if (value !== val) {\n resolve(promise, val);\n } else {\n fulfill(promise, val);\n }\n }, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n reject(promise, val);\n });\n\n return true;\n }\n }\n } catch (error) {\n if (resolved) { return true; }\n reject(promise, error);\n return true;\n }\n\n return false;\n}\n\nfunction resolve(promise, value) {\n if (promise === value) {\n fulfill(promise, value);\n } else if (!handleThenable(promise, value)) {\n fulfill(promise, value);\n }\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = value;\n\n config.async(publishFulfillment, promise);\n}\n\nfunction reject(promise, reason) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = reason;\n\n config.async(publishRejection, promise);\n}\n\nfunction publishFulfillment(promise) {\n publish(promise, promise._state = FULFILLED);\n}\n\nfunction publishRejection(promise) {\n publish(promise, promise._state = REJECTED);\n}\n\nexports.Promise = Promise;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/promise.js\n ** module id = 14\n ** module chunks = 0\n **/","\"use strict\";\n/*global self*/\nvar RSVPPromise = require(\"./promise\").Promise;\nvar isFunction = require(\"./utils\").isFunction;\n\nfunction polyfill() {\n var local;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof window !== 'undefined' && window.document) {\n local = window;\n } else {\n local = self;\n }\n\n var es6PromiseSupport = \n \"Promise\" in local &&\n // Some of these methods are missing from\n // Firefox/Chrome experimental implementations\n \"resolve\" in local.Promise &&\n \"reject\" in local.Promise &&\n \"all\" in local.Promise &&\n \"race\" in local.Promise &&\n // Older version of the spec had a resolver object\n // as the arg rather than a function\n (function() {\n var resolve;\n new local.Promise(function(r) { resolve = r; });\n return isFunction(resolve);\n }());\n\n if (!es6PromiseSupport) {\n local.Promise = RSVPPromise;\n }\n}\n\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/polyfill.js\n ** module id = 15\n ** module chunks = 0\n **/","\"use strict\";\nvar config = {\n instrument: false\n};\n\nfunction configure(name, value) {\n if (arguments.length === 2) {\n config[name] = value;\n } else {\n return config[name];\n }\n}\n\nexports.config = config;\nexports.configure = configure;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/config.js\n ** module id = 16\n ** module chunks = 0\n **/","\"use strict\";\nfunction objectOrFunction(x) {\n return isFunction(x) || (typeof x === \"object\" && x !== null);\n}\n\nfunction isFunction(x) {\n return typeof x === \"function\";\n}\n\nfunction isArray(x) {\n return Object.prototype.toString.call(x) === \"[object Array]\";\n}\n\n// Date.now is not available in browsers < IE9\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\nvar now = Date.now || function() { return new Date().getTime(); };\n\n\nexports.objectOrFunction = objectOrFunction;\nexports.isFunction = isFunction;\nexports.isArray = isArray;\nexports.now = now;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/utils.js\n ** module id = 17\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\n\nvar isArray = require(\"./utils\").isArray;\nvar isFunction = require(\"./utils\").isFunction;\n\n/**\n Returns a promise that is fulfilled when all the given promises have been\n fulfilled, or rejected if any of them become rejected. The return promise\n is fulfilled with an array that gives all the values in the order they were\n passed in the `promises` array argument.\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.resolve(2);\n var promise3 = RSVP.resolve(3);\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `RSVP.all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.reject(new Error(\"2\"));\n var promise3 = RSVP.reject(new Error(\"3\"));\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @for RSVP\n @param {Array} promises\n @param {String} label\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n*/\nfunction all(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to all.');\n }\n\n return new Promise(function(resolve, reject) {\n var results = [], remaining = promises.length,\n promise;\n\n if (remaining === 0) {\n resolve([]);\n }\n\n function resolver(index) {\n return function(value) {\n resolveAll(index, value);\n };\n }\n\n function resolveAll(index, value) {\n results[index] = value;\n if (--remaining === 0) {\n resolve(results);\n }\n }\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && isFunction(promise.then)) {\n promise.then(resolver(i), reject);\n } else {\n resolveAll(i, promise);\n }\n }\n });\n}\n\nexports.all = all;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/all.js\n ** module id = 18\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\nvar isArray = require(\"./utils\").isArray;\n\n/**\n `RSVP.race` allows you to watch a series of promises and act as soon as the\n first promise given to the `promises` argument fulfills or rejects.\n\n Example:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 2\");\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // result === \"promise 2\" because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `RSVP.race` is deterministic in that only the state of the first completed\n promise matters. For example, even if other promises given to the `promises`\n array argument are resolved, but the first completed promise has become\n rejected before the other promises became fulfilled, the returned promise\n will become rejected:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error(\"promise 2\"));\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // Code here never runs because there are rejected promises!\n }, function(reason){\n // reason.message === \"promise2\" because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n @method race\n @for RSVP\n @param {Array} promises array of promises to observe\n @param {String} label optional string for describing the promise returned.\n Useful for tooling.\n @return {Promise} a promise that becomes fulfilled with the value the first\n completed promises is resolved with if the first completed promise was\n fulfilled, or rejected with the reason that the first completed promise\n was rejected with.\n*/\nfunction race(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to race.');\n }\n return new Promise(function(resolve, reject) {\n var results = [], promise;\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolve, reject);\n } else {\n resolve(promise);\n }\n }\n });\n}\n\nexports.race = race;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/race.js\n ** module id = 19\n ** module chunks = 0\n **/","\"use strict\";\nfunction resolve(value) {\n /*jshint validthis:true */\n if (value && typeof value === 'object' && value.constructor === this) {\n return value;\n }\n\n var Promise = this;\n\n return new Promise(function(resolve) {\n resolve(value);\n });\n}\n\nexports.resolve = resolve;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/resolve.js\n ** module id = 20\n ** module chunks = 0\n **/","\"use strict\";\n/**\n `RSVP.reject` returns a promise that will become rejected with the passed\n `reason`. `RSVP.reject` is essentially shorthand for the following:\n\n ```javascript\n var promise = new RSVP.Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n var promise = RSVP.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @for RSVP\n @param {Any} reason value that the returned promise will be rejected with.\n @param {String} label optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise that will become rejected with the given\n `reason`.\n*/\nfunction reject(reason) {\n /*jshint validthis:true */\n var Promise = this;\n\n return new Promise(function (resolve, reject) {\n reject(reason);\n });\n}\n\nexports.reject = reject;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/reject.js\n ** module id = 21\n ** module chunks = 0\n **/","\"use strict\";\nvar browserGlobal = (typeof window !== 'undefined') ? window : {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar local = (typeof global !== 'undefined') ? global : (this === undefined? window:this);\n\n// node\nfunction useNextTick() {\n return function() {\n process.nextTick(flush);\n };\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function() {\n node.data = (iterations = ++iterations % 2);\n };\n}\n\nfunction useSetTimeout() {\n return function() {\n local.setTimeout(flush, 1);\n };\n}\n\nvar queue = [];\nfunction flush() {\n for (var i = 0; i < queue.length; i++) {\n var tuple = queue[i];\n var callback = tuple[0], arg = tuple[1];\n callback(arg);\n }\n queue = [];\n}\n\nvar scheduleFlush;\n\n// Decide what async method to use to triggering processing of queued callbacks:\nif (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction asap(callback, arg) {\n var length = queue.push([callback, arg]);\n if (length === 1) {\n // If length is 1, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n scheduleFlush();\n }\n}\n\nexports.asap = asap;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/asap.js\n ** module id = 22\n ** module chunks = 0\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/axios.amd.standalone.js b/dist/axios.amd.standalone.js new file mode 100644 index 0000000..4834618 --- /dev/null +++ b/dist/axios.amd.standalone.js @@ -0,0 +1,837 @@ +define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return /******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; +/******/ +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ exports: {}, +/******/ id: moduleId, +/******/ loaded: false +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.loaded = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ function(module, exports, __webpack_require__) { + + module.exports = __webpack_require__(1); + +/***/ }, +/* 1 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {var Promise = __webpack_require__(2).Promise; + var defaults = __webpack_require__(3); + var utils = __webpack_require__(4); + + var axios = module.exports = function axios(config) { + config = utils.merge({ + method: 'get', + headers: {}, + transformRequest: defaults.transformRequest, + transformResponse: defaults.transformResponse + }, config); + + // Don't allow overriding defaults.withCredentials + config.withCredentials = config.withCredentials || defaults.withCredentials; + + var promise = new Promise(function (resolve, reject) { + try { + // For browsers use XHR adapter + if (typeof window !== 'undefined') { + __webpack_require__(5)(resolve, reject, config); + } + // For node use HTTP adapter + else if (typeof process !== 'undefined') { + __webpack_require__(2)(resolve, reject, config); + } + } catch (e) { + reject(e); + } + }); + + function deprecatedMethod(method, instead, docs) { + try { + console.warn( + 'DEPRECATED method `' + method + '`.' + + (instead ? ' Use `' + instead + '` instead.' : '') + + ' This method will be removed in a future release.'); + + if (docs) { + console.warn('For more information about usage see ' + docs); + } + } catch (e) {} + } + + // Provide alias for success + promise.success = function success(fn) { + deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api'); + + promise.then(function(response) { + fn(response.data, response.status, response.headers, response.config); + }); + return promise; + }; + + // Provide alias for error + promise.error = function error(fn) { + deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api'); + + promise.then(null, function(response) { + fn(response.data, response.status, response.headers, response.config); + }); + return promise; + }; + + return promise; + }; + + // Expose defaults + axios.defaults = defaults; + + // Expose all/spread + axios.all = function (promises) { + return Promise.all(promises); + }; + axios.spread = __webpack_require__(6); + + // Provide aliases for supported request methods + createShortMethods('delete', 'get', 'head'); + createShortMethodsWithData('post', 'put', 'patch'); + + function createShortMethods() { + utils.forEach(arguments, function (method) { + axios[method] = function (url, config) { + return axios(utils.merge(config || {}, { + method: method, + url: url + })); + }; + }); + } + + function createShortMethodsWithData() { + utils.forEach(arguments, function (method) { + axios[method] = function (url, data, config) { + return axios(utils.merge(config || {}, { + method: method, + url: url, + data: data + })); + }; + }); + } + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7))) + +/***/ }, +/* 2 */ +/***/ function(module, exports, __webpack_require__) { + + module.exports = undefined; + +/***/ }, +/* 3 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + var utils = __webpack_require__(4); + + var JSON_START = /^\s*(\[|\{[^\{])/; + var JSON_END = /[\}\]]\s*$/; + var PROTECTION_PREFIX = /^\)\]\}',?\n/; + var DEFAULT_CONTENT_TYPE = { + 'Content-Type': 'application/x-www-form-urlencoded' + }; + + module.exports = { + transformRequest: [function (data, headers) { + if (utils.isArrayBuffer(data)) { + return data; + } + if (utils.isArrayBufferView(data)) { + return data.buffer; + } + if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) { + // Set application/json if no Content-Type has been specified + if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { + headers['Content-Type'] = 'application/json;charset=utf-8'; + } + return JSON.stringify(data); + } + return data; + }], + + transformResponse: [function (data) { + if (typeof data === 'string') { + data = data.replace(PROTECTION_PREFIX, ''); + if (JSON_START.test(data) && JSON_END.test(data)) { + data = JSON.parse(data); + } + } + return data; + }], + + headers: { + common: { + 'Accept': 'application/json, text/plain, */*' + }, + patch: utils.merge(DEFAULT_CONTENT_TYPE), + post: utils.merge(DEFAULT_CONTENT_TYPE), + put: utils.merge(DEFAULT_CONTENT_TYPE) + }, + + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN' + }; + +/***/ }, +/* 4 */ +/***/ function(module, exports, __webpack_require__) { + + // utils is a library of generic helper functions non-specific to axios + + var toString = Object.prototype.toString; + + /** + * Determine if a value is an Array + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an Array, otherwise false + */ + function isArray(val) { + return toString.call(val) === '[object Array]'; + } + + /** + * Determine if a value is an ArrayBuffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an ArrayBuffer, otherwise false + */ + function isArrayBuffer(val) { + return toString.call(val) === '[object ArrayBuffer]'; + } + + /** + * Determine if a value is a view on an ArrayBuffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false + */ + function isArrayBufferView(val) { + if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { + return ArrayBuffer.isView(val); + } else { + return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); + } + } + + /** + * Determine if a value is a String + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a String, otherwise false + */ + function isString(val) { + return typeof val === 'string'; + } + + /** + * Determine if a value is a Number + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Number, otherwise false + */ + function isNumber(val) { + return typeof val === 'number'; + } + + /** + * Determine if a value is undefined + * + * @param {Object} val The value to test + * @returns {boolean} True if the value is undefined, otherwise false + */ + function isUndefined(val) { + return typeof val === 'undefined'; + } + + /** + * Determine if a value is an Object + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an Object, otherwise false + */ + function isObject(val) { + return val !== null && typeof val === 'object'; + } + + /** + * Determine if a value is a Date + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Date, otherwise false + */ + function isDate(val) { + return toString.call(val) === '[object Date]'; + } + + /** + * Determine if a value is a File + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a File, otherwise false + */ + function isFile(val) { + return toString.call(val) === '[object File]'; + } + + /** + * Determine if a value is a Blob + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Blob, otherwise false + */ + function isBlob(val) { + return toString.call(val) === '[object Blob]'; + } + + /** + * Trim excess whitespace off the beginning and end of a string + * + * @param {String} str The String to trim + * @returns {String} The String freed of excess whitespace + */ + function trim(str) { + return str.replace(/^\s*/, '').replace(/\s*$/, ''); + } + + /** + * Iterate over an Array or an Object invoking a function for each item. + * + * If `obj` is an Array or arguments callback will be called passing + * the value, index, and complete array for each item. + * + * If 'obj' is an Object callback will be called passing + * the value, key, and complete object for each property. + * + * @param {Object|Array} obj The object to iterate + * @param {Function} fn The callback to invoke for each item + */ + function forEach(obj, fn) { + // Don't bother if no value provided + if (obj === null || typeof obj === 'undefined') { + return; + } + + // Check if obj is array-like + var isArray = obj.constructor === Array || typeof obj.callee === 'function'; + + // Force an array if not already something iterable + if (typeof obj !== 'object' && !isArray) { + obj = [obj]; + } + + // Iterate over array values + if (isArray) { + for (var i=0, l=obj.length; i= 200 && request.status < 300 + ? resolve + : reject)(response); + + // Clean up request + request = null; + } + }; + + // Add xsrf header + var xsrfValue = urlIsSameOrigin(config.url) + ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName) + : undefined; + if (xsrfValue) { + headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue; + } + + // Add headers to the request + utils.forEach(headers, function (val, key) { + // Remove Content-Type if data is undefined + if (!data && key.toLowerCase() === 'content-type') { + delete headers[key]; + } + // Otherwise add header to the request + else { + request.setRequestHeader(key, val); + } + }); + + // Add withCredentials to request if needed + if (config.withCredentials) { + request.withCredentials = true; + } + + // Add responseType to request if needed + if (config.responseType) { + try { + request.responseType = config.responseType; + } catch (e) { + if (request.responseType !== 'json') { + throw e; + } + } + } + + if (utils.isArrayBuffer(data)) { + data = new DataView(data); + } + + // Send the request + request.send(data); + }; + +/***/ }, +/* 6 */ +/***/ function(module, exports, __webpack_require__) { + + /** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * @returns {Function} + */ + module.exports = function spread(callback) { + return function (arr) { + callback.apply(null, arr); + }; + }; + +/***/ }, +/* 7 */ +/***/ function(module, exports, __webpack_require__) { + + // shim for using process in browser + + var process = module.exports = {}; + + process.nextTick = (function () { + var canSetImmediate = typeof window !== 'undefined' + && window.setImmediate; + var canPost = typeof window !== 'undefined' + && window.postMessage && window.addEventListener + ; + + if (canSetImmediate) { + return function (f) { return window.setImmediate(f) }; + } + + if (canPost) { + var queue = []; + window.addEventListener('message', function (ev) { + var source = ev.source; + if ((source === window || source === null) && ev.data === 'process-tick') { + ev.stopPropagation(); + if (queue.length > 0) { + var fn = queue.shift(); + fn(); + } + } + }, true); + + return function nextTick(fn) { + queue.push(fn); + window.postMessage('process-tick', '*'); + }; + } + + return function nextTick(fn) { + setTimeout(fn, 0); + }; + })(); + + process.title = 'browser'; + process.browser = true; + process.env = {}; + process.argv = []; + + function noop() {} + + process.on = noop; + process.addListener = noop; + process.once = noop; + process.off = noop; + process.removeListener = noop; + process.removeAllListeners = noop; + process.emit = noop; + + process.binding = function (name) { + throw new Error('process.binding is not supported'); + } + + // TODO(shtylman) + process.cwd = function () { return '/' }; + process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); + }; + + +/***/ }, +/* 8 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + var utils = __webpack_require__(4); + + function encode(val) { + return encodeURIComponent(val). + replace(/%40/gi, '@'). + replace(/%3A/gi, ':'). + replace(/%24/g, '$'). + replace(/%2C/gi, ','). + replace(/%20/g, '+'); + } + + module.exports = function buildUrl(url, params) { + if (!params) { + return url; + } + + var parts = []; + + utils.forEach(params, function (val, key) { + if (val === null || typeof val === 'undefined') { + return; + } + if (!utils.isArray(val)) { + val = [val]; + } + + utils.forEach(val, function (v) { + if (utils.isDate(v)) { + v = v.toISOString(); + } + else if (utils.isObject(v)) { + v = JSON.stringify(v); + } + parts.push(encode(key) + '=' + encode(v)); + }); + }); + + if (parts.length > 0) { + url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&'); + } + + return url; + }; + +/***/ }, +/* 9 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + var utils = __webpack_require__(4); + + module.exports = { + write: function write(name, value, expires, path, domain, secure) { + var cookie = []; + cookie.push(name + '=' + encodeURIComponent(value)); + + if (utils.isNumber(expires)) { + cookie.push('expires=' + new Date(expires).toGMTString()); + } + + if (utils.isString(path)) { + cookie.push('path=' + path); + } + + if (utils.isString(domain)) { + cookie.push('domain=' + domain); + } + + if (secure === true) { + cookie.push('secure'); + } + + document.cookie = cookie.join('; '); + }, + + read: function read(name) { + var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); + return (match ? decodeURIComponent(match[3]) : null); + }, + + remove: function remove(name) { + this.write(name, '', Date.now() - 86400000); + } + }; + +/***/ }, +/* 10 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + var utils = __webpack_require__(4); + + /** + * Parse headers into an object + * + * ``` + * Date: Wed, 27 Aug 2014 08:58:49 GMT + * Content-Type: application/json + * Connection: keep-alive + * Transfer-Encoding: chunked + * ``` + * + * @param {String} headers Headers needing to be parsed + * @returns {Object} Headers parsed into an object + */ + module.exports = function parseHeaders(headers) { + var parsed = {}, key, val, i; + + if (!headers) return parsed; + + utils.forEach(headers.split('\n'), function(line) { + i = line.indexOf(':'); + key = utils.trim(line.substr(0, i)).toLowerCase(); + val = utils.trim(line.substr(i + 1)); + + if (key) { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + } + }); + + return parsed; + }; + +/***/ }, +/* 11 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + var utils = __webpack_require__(4); + + /** + * Transform the data for a request or a response + * + * @param {Object|String} data The data to be transformed + * @param {Array} headers The headers for the request or response + * @param {Array|Function} fns A single function or Array of functions + * @returns {*} The resulting transformed data + */ + module.exports = function transformData(data, headers, fns) { + utils.forEach(fns, function (fn) { + data = fn(data, headers); + }); + + return data; + }; + +/***/ }, +/* 12 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + var msie = /(msie|trident)/i.test(navigator.userAgent); + var utils = __webpack_require__(4); + var urlParsingNode = document.createElement('a'); + var originUrl = urlResolve(window.location.href); + + /** + * Parse a URL to discover it's components + * + * @param {String} url The URL to be parsed + * @returns {Object} + */ + function urlResolve(url) { + var href = url; + + if (msie) { + // IE needs attribute set twice to normalize properties + urlParsingNode.setAttribute('href', href); + href = urlParsingNode.href; + } + + urlParsingNode.setAttribute('href', href); + + // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: (urlParsingNode.pathname.charAt(0) === '/') + ? urlParsingNode.pathname + : '/' + urlParsingNode.pathname + }; + } + + /** + * Determine if a URL shares the same origin as the current location + * + * @param {String} requestUrl The URL to test + * @returns {boolean} True if URL shares the same origin, otherwise false + */ + module.exports = function urlIsSameOrigin(requestUrl) { + var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl; + return (parsed.protocol === originUrl.protocol && + parsed.host === originUrl.host); + }; + +/***/ } +/******/ ])}); +//# sourceMappingURL=axios.amd.standalone.map \ No newline at end of file diff --git a/dist/axios.amd.standalone.map b/dist/axios.amd.standalone.map new file mode 100644 index 0000000..1c452e0 --- /dev/null +++ b/dist/axios.amd.standalone.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap 5ef4cee9f20541856495","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///external \"undefined\"","webpack:///./lib/defaults.js","webpack:///./lib/utils.js","webpack:///./lib/adapters/xhr.js","webpack:///./lib/helpers/spread.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./lib/helpers/buildUrl.js","webpack:///./lib/helpers/cookies.js","webpack:///./lib/helpers/parseHeaders.js","webpack:///./lib/helpers/transformData.js","webpack:///./lib/helpers/urlIsSameOrigin.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;;AAEA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;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;;;;;;;ACpGA,4B;;;;;;ACAA;;AAEA;;AAEA,6BAA4B,IAAI;AAChC,oBAAmB;AACnB,iCAAgC;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD;AACpD;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;;;;;;AClDA;;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;AACA,IAAG;AACH;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,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;AACA;AACA;AACA,G;;;;;;ACzMA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAAyC;AACzC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA,YAAW,SAAS;AACpB,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACxBA;;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;;;;;;;AC9DA;;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;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","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 5ef4cee9f20541856495\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 defaults = require('./defaults');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n headers: {},\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 try {\n // For browsers use XHR adapter\n if (typeof window !== 'undefined') {\n require('./adapters/xhr')(resolve, reject, config);\n }\n // For node use HTTP adapter\n else if (typeof process !== 'undefined') {\n require('./adapters/http')(resolve, reject, config);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n function deprecatedMethod(method, instead, docs) {\n try {\n console.warn(\n 'DEPRECATED method `' + method + '`.' +\n (instead ? ' Use `' + instead + '` instead.' : '') +\n ' This method will be removed in a future release.');\n\n if (docs) {\n console.warn('For more information about usage see ' + docs);\n }\n } catch (e) {}\n }\n\n // Provide alias for success\n promise.success = function success(fn) {\n deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(null, function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Expose all/spread\naxios.all = function (promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\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 **/","module.exports = undefined;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"undefined\"\n ** module id = 2\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 DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nmodule.exports = {\n transformRequest: [function (data, headers) {\n if (utils.isArrayBuffer(data)) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n // Set application/json if no Content-Type has been specified\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = 'application/json;charset=utf-8';\n }\n return JSON.stringify(data);\n }\n return data;\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(DEFAULT_CONTENT_TYPE),\n post: utils.merge(DEFAULT_CONTENT_TYPE),\n put: utils.merge(DEFAULT_CONTENT_TYPE)\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 = 3\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 an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n return ArrayBuffer.isView(val);\n } else {\n return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\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 undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\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= 200 && request.status < 300\n ? resolve\n : reject)(response);\n\n // Clean up request\n request = null;\n }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n data = new DataView(data);\n }\n\n // Send the request\n request.send(data);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/adapters/xhr.js\n ** module id = 5\n ** module chunks = 0\n **/","/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function (arr) {\n callback.apply(null, arr);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/helpers/spread.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\n\nprocess.nextTick = (function () {\n var canSetImmediate = typeof window !== 'undefined'\n && window.setImmediate;\n var canPost = typeof window !== 'undefined'\n && window.postMessage && window.addEventListener\n ;\n\n if (canSetImmediate) {\n return function (f) { return window.setImmediate(f) };\n }\n\n if (canPost) {\n var queue = [];\n window.addEventListener('message', function (ev) {\n var source = ev.source;\n if ((source === window || source === null) && ev.data === 'process-tick') {\n ev.stopPropagation();\n if (queue.length > 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 = 7\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/helpers/buildUrl.js\n ** module id = 8\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/helpers/cookies.js\n ** module id = 9\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/helpers/parseHeaders.js\n ** module id = 10\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/helpers/transformData.js\n ** module id = 11\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/helpers/urlIsSameOrigin.js\n ** module id = 12\n ** module chunks = 0\n **/"],"sourceRoot":"","file":"axios.amd.standalone.js"} \ No newline at end of file diff --git a/dist/axios.amd.standalone.min.js b/dist/axios.amd.standalone.min.js new file mode 100644 index 0000000..8adf87b --- /dev/null +++ b/dist/axios.amd.standalone.min.js @@ -0,0 +1,3 @@ +/* axios v0.4.0 | (c) 2014 by Matt Zabriskie */ +define("axios",["undefined"],function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){(function(t){function r(){u.forEach(arguments,function(e){a[e]=function(t,n){return a(u.merge(n||{},{method:e,url:t}))}})}function o(){u.forEach(arguments,function(e){a[e]=function(t,n,r){return a(u.merge(r||{},{method:e,url:t,data:n}))}})}var i=n(2).Promise,s=n(3),u=n(4),a=e.exports=function(e){function r(e,t,n){try{console.warn("DEPRECATED method `"+e+"`."+(t?" Use `"+t+"` instead.":"")+" This method will be removed in a future release."),n&&console.warn("For more information about usage see "+n)}catch(r){}}e=u.merge({method:"get",headers:{},transformRequest:s.transformRequest,transformResponse:s.transformResponse},e),e.withCredentials=e.withCredentials||s.withCredentials;var o=new i(function(r,o){try{"undefined"!=typeof window?n(5)(r,o,e):"undefined"!=typeof t&&n(2)(r,o,e)}catch(i){o(i)}});return o.success=function(e){return r("success","then","https://github.com/mzabriskie/axios/blob/master/README.md#response-api"),o.then(function(t){e(t.data,t.status,t.headers,t.config)}),o},o.error=function(e){return r("error","catch","https://github.com/mzabriskie/axios/blob/master/README.md#response-api"),o.then(null,function(t){e(t.data,t.status,t.headers,t.config)}),o},o};a.defaults=s,a.all=function(e){return i.all(e)},a.spread=n(6),r("delete","get","head"),o("post","put","patch")}).call(t,n(7))},function(e){e.exports=void 0},function(e,t,n){"use strict";var r=n(4),o=/^\s*(\[|\{[^\{])/,i=/[\}\]]\s*$/,s=/^\)\]\}',?\n/,u={"Content-Type":"application/x-www-form-urlencoded"};e.exports={transformRequest:[function(e,t){return r.isArrayBuffer(e)?e:r.isArrayBufferView(e)?e.buffer:!r.isObject(e)||r.isFile(e)||r.isBlob(e)?e:(!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]="application/json;charset=utf-8"),JSON.stringify(e))}],transformResponse:[function(e){return"string"==typeof e&&(e=e.replace(s,""),o.test(e)&&i.test(e)&&(e=JSON.parse(e))),e}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(u),post:r.merge(u),put:r.merge(u)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"}},function(e){function t(e){return"[object Array]"===h.call(e)}function n(e){return"[object ArrayBuffer]"===h.call(e)}function r(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function o(e){return"string"==typeof e}function i(e){return"number"==typeof e}function s(e){return"undefined"==typeof e}function u(e){return null!==e&&"object"==typeof e}function a(e){return"[object Date]"===h.call(e)}function c(e){return"[object File]"===h.call(e)}function f(e){return"[object Blob]"===h.call(e)}function p(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function l(e,t){if(null!==e&&"undefined"!=typeof e){var n=e.constructor===Array||"function"==typeof e.callee;if("object"==typeof e||n||(e=[e]),n)for(var r=0,o=e.length;o>r;r++)t.call(null,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(null,e[i],i,e)}}function d(){var e={};return l(arguments,function(t){l(t,function(t,n){e[n]=t})}),e}var h=Object.prototype.toString;e.exports={isArray:t,isArrayBuffer:n,isArrayBufferView:r,isString:o,isNumber:i,isObject:u,isUndefined:s,isDate:a,isFile:c,isBlob:f,forEach:l,merge:d,trim:p}},function(e,t,n){var r=n(3),o=n(4),i=n(8),s=n(9),u=n(10),a=n(11),c=n(12);e.exports=function(e,t,n){var f=a(n.data,n.headers,n.transformRequest),p=o.merge(r.headers.common,r.headers[n.method]||{},n.headers||{}),l=new(XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP");l.open(n.method,i(n.url,n.params),!0),l.onreadystatechange=function(){if(l&&4===l.readyState){var r=u(l.getAllResponseHeaders()),o={data:a(l.responseText,r,n.transformResponse),status:l.status,headers:r,config:n};(l.status>=200&&l.status<300?e:t)(o),l=null}};var d=c(n.url)?s.read(n.xsrfCookieName||r.xsrfCookieName):void 0;if(d&&(p[n.xsrfHeaderName||r.xsrfHeaderName]=d),o.forEach(p,function(e,t){f||"content-type"!==t.toLowerCase()?l.setRequestHeader(t,e):delete p[t]}),n.withCredentials&&(l.withCredentials=!0),n.responseType)try{l.responseType=n.responseType}catch(h){if("json"!==l.responseType)throw h}o.isArrayBuffer(f)&&(f=new DataView(f)),l.send(f)}},function(e){e.exports=function(e){return function(t){e.apply(null,t)}}},function(e){function t(){}var n=e.exports={};n.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;if((t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=t,n.addListener=t,n.once=t,n.off=t,n.removeListener=t,n.removeAllListeners=t,n.emit=t,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")}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}var o=n(4);e.exports=function(e,t){if(!t)return e;var n=[];return o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),n.push(r(t)+"="+r(e))}))}),n.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+n.join("&")),e}},function(e,t,n){"use strict";var r=n(4);e.exports={write:function(e,t,n,o,i,s){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";function r(e){var t=e;return o&&(s.setAttribute("href",t),t=s.href),s.setAttribute("href",t),{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(4),s=document.createElement("a"),u=r(window.location.href);e.exports=function(e){var t=i.isString(e)?r(e):e;return t.protocol===u.protocol&&t.host===u.host}}])}); +//# sourceMappingURL=axios.amd.standalone.min.map \ No newline at end of file diff --git a/dist/axios.amd.standalone.min.map b/dist/axios.amd.standalone.min.map new file mode 100644 index 0000000..fca14c8 --- /dev/null +++ b/dist/axios.amd.standalone.min.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///axios.amd.standalone.min.js","webpack:///webpack/bootstrap 12f697b9e9afc5309d82","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///external \"undefined\"","webpack:///./lib/defaults.js","webpack:///./lib/utils.js","webpack:///./lib/adapters/xhr.js","webpack:///./lib/helpers/spread.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./lib/helpers/buildUrl.js","webpack:///./lib/helpers/cookies.js","webpack:///./lib/helpers/parseHeaders.js","webpack:///./lib/helpers/transformData.js","webpack:///./lib/helpers/urlIsSameOrigin.js"],"names":["define","modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","process","createShortMethods","utils","forEach","arguments","method","axios","url","config","merge","createShortMethodsWithData","data","Promise","defaults","deprecatedMethod","instead","docs","console","warn","e","headers","transformRequest","transformResponse","withCredentials","promise","resolve","reject","window","success","fn","then","response","status","error","all","promises","spread","undefined","JSON_START","JSON_END","PROTECTION_PREFIX","DEFAULT_CONTENT_TYPE","Content-Type","isArrayBuffer","isArrayBufferView","buffer","isObject","isFile","isBlob","isUndefined","JSON","stringify","replace","test","parse","common","Accept","patch","post","put","xsrfCookieName","xsrfHeaderName","isArray","val","toString","ArrayBuffer","isView","isString","isNumber","isDate","trim","str","obj","constructor","Array","callee","i","l","length","key","hasOwnProperty","result","Object","prototype","buildUrl","cookies","parseHeaders","transformData","urlIsSameOrigin","request","XMLHttpRequest","ActiveXObject","open","params","onreadystatechange","readyState","getAllResponseHeaders","responseText","xsrfValue","read","toLowerCase","setRequestHeader","responseType","DataView","send","callback","arr","apply","noop","nextTick","canSetImmediate","setImmediate","canPost","postMessage","addEventListener","f","queue","ev","source","stopPropagation","shift","push","setTimeout","title","browser","env","argv","on","addListener","once","off","removeListener","removeAllListeners","emit","binding","Error","cwd","chdir","encode","encodeURIComponent","parts","v","toISOString","indexOf","join","write","name","value","expires","path","domain","secure","cookie","Date","toGMTString","document","match","RegExp","decodeURIComponent","remove","this","now","parsed","split","line","substr","fns","urlResolve","href","msie","urlParsingNode","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","navigator","userAgent","createElement","originUrl","location","requestUrl"],"mappings":"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","file":"axios.amd.standalone.min.js","sourcesContent":["define(\"axios\", [\"undefined\"], function(__WEBPACK_EXTERNAL_MODULE_2__) { 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\t/* WEBPACK VAR INJECTION */(function(process) {var Promise = __webpack_require__(2).Promise;\n\tvar defaults = __webpack_require__(3);\n\tvar utils = __webpack_require__(4);\n\t\n\tvar axios = module.exports = function axios(config) {\n\t config = utils.merge({\n\t method: 'get',\n\t headers: {},\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 try {\n\t // For browsers use XHR adapter\n\t if (typeof window !== 'undefined') {\n\t __webpack_require__(5)(resolve, reject, config);\n\t }\n\t // For node use HTTP adapter\n\t else if (typeof process !== 'undefined') {\n\t __webpack_require__(2)(resolve, reject, config);\n\t }\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t\n\t function deprecatedMethod(method, instead, docs) {\n\t try {\n\t console.warn(\n\t 'DEPRECATED method `' + method + '`.' +\n\t (instead ? ' Use `' + instead + '` instead.' : '') +\n\t ' This method will be removed in a future release.');\n\t\n\t if (docs) {\n\t console.warn('For more information about usage see ' + docs);\n\t }\n\t } catch (e) {}\n\t }\n\t\n\t // Provide alias for success\n\t promise.success = function success(fn) {\n\t deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\t\n\t promise.then(function(response) {\n\t fn(response.data, response.status, response.headers, response.config);\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 deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\t\n\t promise.then(null, function(response) {\n\t fn(response.data, response.status, response.headers, response.config);\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// Expose all/spread\n\taxios.all = function (promises) {\n\t return Promise.all(promises);\n\t};\n\taxios.spread = __webpack_require__(6);\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\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = undefined;\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\n\t\n\tvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\n\tvar JSON_END = /[\\}\\]]\\s*$/;\n\tvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\n\tvar DEFAULT_CONTENT_TYPE = {\n\t 'Content-Type': 'application/x-www-form-urlencoded'\n\t};\n\t\n\tmodule.exports = {\n\t transformRequest: [function (data, headers) {\n\t if (utils.isArrayBuffer(data)) {\n\t return data;\n\t }\n\t if (utils.isArrayBufferView(data)) {\n\t return data.buffer;\n\t }\n\t if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n\t // Set application/json if no Content-Type has been specified\n\t if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n\t headers['Content-Type'] = 'application/json;charset=utf-8';\n\t }\n\t return JSON.stringify(data);\n\t }\n\t return data;\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(DEFAULT_CONTENT_TYPE),\n\t post: utils.merge(DEFAULT_CONTENT_TYPE),\n\t put: utils.merge(DEFAULT_CONTENT_TYPE)\n\t },\n\t\n\t xsrfCookieName: 'XSRF-TOKEN',\n\t xsrfHeaderName: 'X-XSRF-TOKEN'\n\t};\n\n/***/ },\n/* 4 */\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 an ArrayBuffer\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n\t */\n\tfunction isArrayBuffer(val) {\n\t return toString.call(val) === '[object ArrayBuffer]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a view on an ArrayBuffer\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n\t */\n\tfunction isArrayBufferView(val) {\n\t if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n\t return ArrayBuffer.isView(val);\n\t } else {\n\t return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n\t }\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 undefined\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if the value is undefined, otherwise false\n\t */\n\tfunction isUndefined(val) {\n\t return typeof val === 'undefined';\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= 200 && request.status < 300\n\t ? resolve\n\t : reject)(response);\n\t\n\t // Clean up request\n\t request = null;\n\t }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n\t data = new DataView(data);\n\t }\n\t\n\t // Send the request\n\t request.send(data);\n\t};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * Syntactic sugar for invoking a function and expanding an array for arguments.\n\t *\n\t * Common use case would be to use `Function.prototype.apply`.\n\t *\n\t * ```js\n\t * function f(x, y, z) {}\n\t * var args = [1, 2, 3];\n\t * f.apply(null, args);\n\t * ```\n\t *\n\t * With `spread` this example can be re-written.\n\t *\n\t * ```js\n\t * spread(function(x, y, z) {})([1, 2, 3]);\n\t * ```\n\t *\n\t * @param {Function} callback\n\t * @returns {Function}\n\t */\n\tmodule.exports = function spread(callback) {\n\t return function (arr) {\n\t callback.apply(null, arr);\n\t };\n\t};\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// shim for using process in browser\n\t\n\tvar process = module.exports = {};\n\t\n\tprocess.nextTick = (function () {\n\t var canSetImmediate = typeof window !== 'undefined'\n\t && window.setImmediate;\n\t var canPost = typeof window !== 'undefined'\n\t && window.postMessage && window.addEventListener\n\t ;\n\t\n\t if (canSetImmediate) {\n\t return function (f) { return window.setImmediate(f) };\n\t }\n\t\n\t if (canPost) {\n\t var queue = [];\n\t window.addEventListener('message', function (ev) {\n\t var source = ev.source;\n\t if ((source === window || source === null) && ev.data === 'process-tick') {\n\t ev.stopPropagation();\n\t if (queue.length > 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/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 12 */\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__(4);\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/******/ ])});\n\n\n/** WEBPACK FOOTER **\n ** axios.amd.standalone.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 12f697b9e9afc5309d82\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 defaults = require('./defaults');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n headers: {},\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 try {\n // For browsers use XHR adapter\n if (typeof window !== 'undefined') {\n require('./adapters/xhr')(resolve, reject, config);\n }\n // For node use HTTP adapter\n else if (typeof process !== 'undefined') {\n require('./adapters/http')(resolve, reject, config);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n function deprecatedMethod(method, instead, docs) {\n try {\n console.warn(\n 'DEPRECATED method `' + method + '`.' +\n (instead ? ' Use `' + instead + '` instead.' : '') +\n ' This method will be removed in a future release.');\n\n if (docs) {\n console.warn('For more information about usage see ' + docs);\n }\n } catch (e) {}\n }\n\n // Provide alias for success\n promise.success = function success(fn) {\n deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(null, function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Expose all/spread\naxios.all = function (promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\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 **/","module.exports = undefined;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"undefined\"\n ** module id = 2\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 DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nmodule.exports = {\n transformRequest: [function (data, headers) {\n if (utils.isArrayBuffer(data)) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n // Set application/json if no Content-Type has been specified\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = 'application/json;charset=utf-8';\n }\n return JSON.stringify(data);\n }\n return data;\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(DEFAULT_CONTENT_TYPE),\n post: utils.merge(DEFAULT_CONTENT_TYPE),\n put: utils.merge(DEFAULT_CONTENT_TYPE)\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 = 3\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 an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n return ArrayBuffer.isView(val);\n } else {\n return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\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 undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\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= 200 && request.status < 300\n ? resolve\n : reject)(response);\n\n // Clean up request\n request = null;\n }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n data = new DataView(data);\n }\n\n // Send the request\n request.send(data);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/adapters/xhr.js\n ** module id = 5\n ** module chunks = 0\n **/","/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function (arr) {\n callback.apply(null, arr);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/helpers/spread.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\n\nprocess.nextTick = (function () {\n var canSetImmediate = typeof window !== 'undefined'\n && window.setImmediate;\n var canPost = typeof window !== 'undefined'\n && window.postMessage && window.addEventListener\n ;\n\n if (canSetImmediate) {\n return function (f) { return window.setImmediate(f) };\n }\n\n if (canPost) {\n var queue = [];\n window.addEventListener('message', function (ev) {\n var source = ev.source;\n if ((source === window || source === null) && ev.data === 'process-tick') {\n ev.stopPropagation();\n if (queue.length > 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 = 7\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/helpers/buildUrl.js\n ** module id = 8\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/helpers/cookies.js\n ** module id = 9\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/helpers/parseHeaders.js\n ** module id = 10\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/helpers/transformData.js\n ** module id = 11\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/helpers/urlIsSameOrigin.js\n ** module id = 12\n ** module chunks = 0\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/axios.js b/dist/axios.js index fc24335..7c321cc 100644 --- a/dist/axios.js +++ b/dist/axios.js @@ -54,11 +54,11 @@ var axios = /* WEBPACK VAR INJECTION */(function(process) {var Promise = __webpack_require__(13).Promise; var defaults = __webpack_require__(3); var utils = __webpack_require__(4); - var spread = __webpack_require__(5); var axios = module.exports = function axios(config) { config = utils.merge({ method: 'get', + headers: {}, transformRequest: defaults.transformRequest, transformResponse: defaults.transformResponse }, config); @@ -70,7 +70,7 @@ var axios = try { // For browsers use XHR adapter if (typeof window !== 'undefined') { - __webpack_require__(6)(resolve, reject, config); + __webpack_require__(5)(resolve, reject, config); } // For node use HTTP adapter else if (typeof process !== 'undefined') { @@ -81,8 +81,23 @@ var axios = } }); + function deprecatedMethod(method, instead, docs) { + try { + console.warn( + 'DEPRECATED method `' + method + '`.' + + (instead ? ' Use `' + instead + '` instead.' : '') + + ' This method will be removed in a future release.'); + + if (docs) { + console.warn('For more information about usage see ' + docs); + } + } catch (e) {} + } + // Provide alias for success promise.success = function success(fn) { + deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api'); + promise.then(function(response) { fn(response.data, response.status, response.headers, response.config); }); @@ -91,6 +106,8 @@ var axios = // Provide alias for error promise.error = function error(fn) { + deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api'); + promise.then(null, function(response) { fn(response.data, response.status, response.headers, response.config); }); @@ -107,7 +124,7 @@ var axios = axios.all = function (promises) { return Promise.all(promises); }; - axios.spread = spread; + axios.spread = __webpack_require__(6); // Provide aliases for supported request methods createShortMethods('delete', 'get', 'head'); @@ -155,12 +172,12 @@ var axios = var JSON_START = /^\s*(\[|\{[^\{])/; var JSON_END = /[\}\]]\s*$/; var PROTECTION_PREFIX = /^\)\]\}',?\n/; - var CONTENT_TYPE_APPLICATION_JSON = { - 'Content-Type': 'application/json;charset=utf-8' + var DEFAULT_CONTENT_TYPE = { + 'Content-Type': 'application/x-www-form-urlencoded' }; module.exports = { - transformRequest: [function (data) { + transformRequest: [function (data, headers) { if (utils.isArrayBuffer(data)) { return data; } @@ -168,6 +185,10 @@ var axios = return data.buffer; } if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) { + // Set application/json if no Content-Type has been specified + if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { + headers['Content-Type'] = 'application/json;charset=utf-8'; + } return JSON.stringify(data); } return data; @@ -187,9 +208,9 @@ var axios = common: { 'Accept': 'application/json, text/plain, */*' }, - patch: utils.merge(CONTENT_TYPE_APPLICATION_JSON), - post: utils.merge(CONTENT_TYPE_APPLICATION_JSON), - put: utils.merge(CONTENT_TYPE_APPLICATION_JSON) + patch: utils.merge(DEFAULT_CONTENT_TYPE), + post: utils.merge(DEFAULT_CONTENT_TYPE), + put: utils.merge(DEFAULT_CONTENT_TYPE) }, xsrfCookieName: 'XSRF-TOKEN', @@ -258,6 +279,16 @@ var axios = return typeof val === 'number'; } + /** + * Determine if a value is undefined + * + * @param {Object} val The value to test + * @returns {boolean} True if the value is undefined, otherwise false + */ + function isUndefined(val) { + return typeof val === 'undefined'; + } + /** * Determine if a value is an Object * @@ -384,6 +415,7 @@ var axios = isString: isString, isNumber: isNumber, isObject: isObject, + isUndefined: isUndefined, isDate: isDate, isFile: isFile, isBlob: isBlob, @@ -396,43 +428,13 @@ var axios = /* 5 */ /***/ function(module, exports, __webpack_require__) { - /** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * @returns {Function} - */ - module.exports = function spread(callback) { - return function (arr) { - callback.apply(null, arr); - }; - }; - -/***/ }, -/* 6 */ -/***/ function(module, exports, __webpack_require__) { - + var defaults = __webpack_require__(3); + var utils = __webpack_require__(4); var buildUrl = __webpack_require__(8); var cookies = __webpack_require__(9); - var defaults = __webpack_require__(3); var parseHeaders = __webpack_require__(10); var transformData = __webpack_require__(11); var urlIsSameOrigin = __webpack_require__(12); - var utils = __webpack_require__(4); module.exports = function xhrAdapter(resolve, reject, config) { // Transform request data @@ -523,6 +525,36 @@ var axios = request.send(data); }; +/***/ }, +/* 6 */ +/***/ function(module, exports, __webpack_require__) { + + /** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * @returns {Function} + */ + module.exports = function spread(callback) { + return function (arr) { + callback.apply(null, arr); + }; + }; + /***/ }, /* 7 */ /***/ function(module, exports, __webpack_require__) { diff --git a/dist/axios.map b/dist/axios.map index 1fa3913..9bebb4c 100644 --- a/dist/axios.map +++ b/dist/axios.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap 8ae76ca5bf07b5a9a383","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///external \"undefined\"","webpack:///./lib/defaults.js","webpack:///./lib/utils.js","webpack:///./lib/spread.js","webpack:///./lib/adapters/xhr.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./lib/buildUrl.js","webpack:///./lib/cookies.js","webpack:///./lib/parseHeaders.js","webpack:///./lib/transformData.js","webpack:///./lib/urlIsSameOrigin.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"],"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;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;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;AACA;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;;;;;;;ACnFA,uCAAsC,sDAAsD,6BAA6B;AACzH,4B;;;;;;ACDA;;AAEA;;AAEA,6BAA4B,IAAI;AAChC,oBAAmB;AACnB,iCAAgC;AAChC;AACA,qCAAoC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;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;;;;;;AC9CA;;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;AACA,IAAG;AACH;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;AACA;AACA,G;;;;;;AC9LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA,YAAW,SAAS;AACpB,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAAyC;AACzC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;AC/FA;;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;;;;;;;AC9DA;;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;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;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","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 8ae76ca5bf07b5a9a383\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 defaults = require('./defaults');\nvar utils = require('./utils');\nvar spread = require('./spread');\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 try {\n // For browsers use XHR adapter\n if (typeof window !== 'undefined') {\n require('./adapters/xhr')(resolve, reject, config);\n }\n // For node use HTTP adapter\n else if (typeof process !== 'undefined') {\n require('./adapters/http')(resolve, reject, config);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n // Provide alias for success\n promise.success = function success(fn) {\n promise.then(function(response) {\n fn(response.data, response.status, response.headers, response.config);\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.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Expose all/spread\naxios.all = function (promises) {\n return Promise.all(promises);\n};\naxios.spread = spread;\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 **/","if(typeof undefined === 'undefined') {var e = new Error(\"Cannot find module \\\"undefined\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e;}\nmodule.exports = undefined;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"undefined\"\n ** module id = 2\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 if (utils.isArrayBuffer(data)) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n return JSON.stringify(data);\n }\n return data;\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 = 3\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 an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n return ArrayBuffer.isView(val);\n } else {\n return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\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= 200 && request.status < 300\n ? resolve\n : reject)(response);\n\n // Clean up request\n request = null;\n }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n data = new DataView(data);\n }\n\n // Send the request\n request.send(data);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/adapters/xhr.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\n\nprocess.nextTick = (function () {\n var canSetImmediate = typeof window !== 'undefined'\n && window.setImmediate;\n var canPost = typeof window !== 'undefined'\n && window.postMessage && window.addEventListener\n ;\n\n if (canSetImmediate) {\n return function (f) { return window.setImmediate(f) };\n }\n\n if (canPost) {\n var queue = [];\n window.addEventListener('message', function (ev) {\n var source = ev.source;\n if ((source === window || source === null) && ev.data === 'process-tick') {\n ev.stopPropagation();\n if (queue.length > 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 = 7\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 = 8\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 = 9\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 = 10\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 = 11\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 = 12\n ** module chunks = 0\n **/","\"use strict\";\nvar Promise = require(\"./promise/promise\").Promise;\nvar polyfill = require(\"./promise/polyfill\").polyfill;\nexports.Promise = Promise;\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/main.js\n ** module id = 13\n ** module chunks = 0\n **/","\"use strict\";\nvar config = require(\"./config\").config;\nvar configure = require(\"./config\").configure;\nvar objectOrFunction = require(\"./utils\").objectOrFunction;\nvar isFunction = require(\"./utils\").isFunction;\nvar now = require(\"./utils\").now;\nvar all = require(\"./all\").all;\nvar race = require(\"./race\").race;\nvar staticResolve = require(\"./resolve\").resolve;\nvar staticReject = require(\"./reject\").reject;\nvar asap = require(\"./asap\").asap;\n\nvar counter = 0;\n\nconfig.async = asap; // default async is asap;\n\nfunction Promise(resolver) {\n if (!isFunction(resolver)) {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n\n if (!(this instanceof Promise)) {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n }\n\n this._subscribers = [];\n\n invokeResolver(resolver, this);\n}\n\nfunction invokeResolver(resolver, promise) {\n function resolvePromise(value) {\n resolve(promise, value);\n }\n\n function rejectPromise(reason) {\n reject(promise, reason);\n }\n\n try {\n resolver(resolvePromise, rejectPromise);\n } catch(e) {\n rejectPromise(e);\n }\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value, error, succeeded, failed;\n\n if (hasCallback) {\n try {\n value = callback(detail);\n succeeded = true;\n } catch(e) {\n failed = true;\n error = e;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (handleThenable(promise, value)) {\n return;\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (failed) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n resolve(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n}\n\nvar PENDING = void 0;\nvar SEALED = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var subscribers = parent._subscribers;\n var length = subscribers.length;\n\n subscribers[length] = child;\n subscribers[length + FULFILLED] = onFulfillment;\n subscribers[length + REJECTED] = onRejection;\n}\n\nfunction publish(promise, settled) {\n var child, callback, subscribers = promise._subscribers, detail = promise._detail;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n invokeCallback(settled, child, callback, detail);\n }\n\n promise._subscribers = null;\n}\n\nPromise.prototype = {\n constructor: Promise,\n\n _state: undefined,\n _detail: undefined,\n _subscribers: undefined,\n\n then: function(onFulfillment, onRejection) {\n var promise = this;\n\n var thenPromise = new this.constructor(function() {});\n\n if (this._state) {\n var callbacks = arguments;\n config.async(function invokePromiseCallback() {\n invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail);\n });\n } else {\n subscribe(this, thenPromise, onFulfillment, onRejection);\n }\n\n return thenPromise;\n },\n\n 'catch': function(onRejection) {\n return this.then(null, onRejection);\n }\n};\n\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = staticResolve;\nPromise.reject = staticReject;\n\nfunction handleThenable(promise, value) {\n var then = null,\n resolved;\n\n try {\n if (promise === value) {\n throw new TypeError(\"A promises callback cannot return that same promise.\");\n }\n\n if (objectOrFunction(value)) {\n then = value.then;\n\n if (isFunction(then)) {\n then.call(value, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n if (value !== val) {\n resolve(promise, val);\n } else {\n fulfill(promise, val);\n }\n }, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n reject(promise, val);\n });\n\n return true;\n }\n }\n } catch (error) {\n if (resolved) { return true; }\n reject(promise, error);\n return true;\n }\n\n return false;\n}\n\nfunction resolve(promise, value) {\n if (promise === value) {\n fulfill(promise, value);\n } else if (!handleThenable(promise, value)) {\n fulfill(promise, value);\n }\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = value;\n\n config.async(publishFulfillment, promise);\n}\n\nfunction reject(promise, reason) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = reason;\n\n config.async(publishRejection, promise);\n}\n\nfunction publishFulfillment(promise) {\n publish(promise, promise._state = FULFILLED);\n}\n\nfunction publishRejection(promise) {\n publish(promise, promise._state = REJECTED);\n}\n\nexports.Promise = Promise;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/promise.js\n ** module id = 14\n ** module chunks = 0\n **/","\"use strict\";\n/*global self*/\nvar RSVPPromise = require(\"./promise\").Promise;\nvar isFunction = require(\"./utils\").isFunction;\n\nfunction polyfill() {\n var local;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof window !== 'undefined' && window.document) {\n local = window;\n } else {\n local = self;\n }\n\n var es6PromiseSupport = \n \"Promise\" in local &&\n // Some of these methods are missing from\n // Firefox/Chrome experimental implementations\n \"resolve\" in local.Promise &&\n \"reject\" in local.Promise &&\n \"all\" in local.Promise &&\n \"race\" in local.Promise &&\n // Older version of the spec had a resolver object\n // as the arg rather than a function\n (function() {\n var resolve;\n new local.Promise(function(r) { resolve = r; });\n return isFunction(resolve);\n }());\n\n if (!es6PromiseSupport) {\n local.Promise = RSVPPromise;\n }\n}\n\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/polyfill.js\n ** module id = 15\n ** module chunks = 0\n **/","\"use strict\";\nvar config = {\n instrument: false\n};\n\nfunction configure(name, value) {\n if (arguments.length === 2) {\n config[name] = value;\n } else {\n return config[name];\n }\n}\n\nexports.config = config;\nexports.configure = configure;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/config.js\n ** module id = 16\n ** module chunks = 0\n **/","\"use strict\";\nfunction objectOrFunction(x) {\n return isFunction(x) || (typeof x === \"object\" && x !== null);\n}\n\nfunction isFunction(x) {\n return typeof x === \"function\";\n}\n\nfunction isArray(x) {\n return Object.prototype.toString.call(x) === \"[object Array]\";\n}\n\n// Date.now is not available in browsers < IE9\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\nvar now = Date.now || function() { return new Date().getTime(); };\n\n\nexports.objectOrFunction = objectOrFunction;\nexports.isFunction = isFunction;\nexports.isArray = isArray;\nexports.now = now;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/utils.js\n ** module id = 17\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\n\nvar isArray = require(\"./utils\").isArray;\nvar isFunction = require(\"./utils\").isFunction;\n\n/**\n Returns a promise that is fulfilled when all the given promises have been\n fulfilled, or rejected if any of them become rejected. The return promise\n is fulfilled with an array that gives all the values in the order they were\n passed in the `promises` array argument.\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.resolve(2);\n var promise3 = RSVP.resolve(3);\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `RSVP.all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.reject(new Error(\"2\"));\n var promise3 = RSVP.reject(new Error(\"3\"));\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @for RSVP\n @param {Array} promises\n @param {String} label\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n*/\nfunction all(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to all.');\n }\n\n return new Promise(function(resolve, reject) {\n var results = [], remaining = promises.length,\n promise;\n\n if (remaining === 0) {\n resolve([]);\n }\n\n function resolver(index) {\n return function(value) {\n resolveAll(index, value);\n };\n }\n\n function resolveAll(index, value) {\n results[index] = value;\n if (--remaining === 0) {\n resolve(results);\n }\n }\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && isFunction(promise.then)) {\n promise.then(resolver(i), reject);\n } else {\n resolveAll(i, promise);\n }\n }\n });\n}\n\nexports.all = all;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/all.js\n ** module id = 18\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\nvar isArray = require(\"./utils\").isArray;\n\n/**\n `RSVP.race` allows you to watch a series of promises and act as soon as the\n first promise given to the `promises` argument fulfills or rejects.\n\n Example:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 2\");\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // result === \"promise 2\" because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `RSVP.race` is deterministic in that only the state of the first completed\n promise matters. For example, even if other promises given to the `promises`\n array argument are resolved, but the first completed promise has become\n rejected before the other promises became fulfilled, the returned promise\n will become rejected:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error(\"promise 2\"));\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // Code here never runs because there are rejected promises!\n }, function(reason){\n // reason.message === \"promise2\" because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n @method race\n @for RSVP\n @param {Array} promises array of promises to observe\n @param {String} label optional string for describing the promise returned.\n Useful for tooling.\n @return {Promise} a promise that becomes fulfilled with the value the first\n completed promises is resolved with if the first completed promise was\n fulfilled, or rejected with the reason that the first completed promise\n was rejected with.\n*/\nfunction race(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to race.');\n }\n return new Promise(function(resolve, reject) {\n var results = [], promise;\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolve, reject);\n } else {\n resolve(promise);\n }\n }\n });\n}\n\nexports.race = race;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/race.js\n ** module id = 19\n ** module chunks = 0\n **/","\"use strict\";\nfunction resolve(value) {\n /*jshint validthis:true */\n if (value && typeof value === 'object' && value.constructor === this) {\n return value;\n }\n\n var Promise = this;\n\n return new Promise(function(resolve) {\n resolve(value);\n });\n}\n\nexports.resolve = resolve;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/resolve.js\n ** module id = 20\n ** module chunks = 0\n **/","\"use strict\";\n/**\n `RSVP.reject` returns a promise that will become rejected with the passed\n `reason`. `RSVP.reject` is essentially shorthand for the following:\n\n ```javascript\n var promise = new RSVP.Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n var promise = RSVP.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @for RSVP\n @param {Any} reason value that the returned promise will be rejected with.\n @param {String} label optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise that will become rejected with the given\n `reason`.\n*/\nfunction reject(reason) {\n /*jshint validthis:true */\n var Promise = this;\n\n return new Promise(function (resolve, reject) {\n reject(reason);\n });\n}\n\nexports.reject = reject;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/reject.js\n ** module id = 21\n ** module chunks = 0\n **/","\"use strict\";\nvar browserGlobal = (typeof window !== 'undefined') ? window : {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar local = (typeof global !== 'undefined') ? global : (this === undefined? window:this);\n\n// node\nfunction useNextTick() {\n return function() {\n process.nextTick(flush);\n };\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function() {\n node.data = (iterations = ++iterations % 2);\n };\n}\n\nfunction useSetTimeout() {\n return function() {\n local.setTimeout(flush, 1);\n };\n}\n\nvar queue = [];\nfunction flush() {\n for (var i = 0; i < queue.length; i++) {\n var tuple = queue[i];\n var callback = tuple[0], arg = tuple[1];\n callback(arg);\n }\n queue = [];\n}\n\nvar scheduleFlush;\n\n// Decide what async method to use to triggering processing of queued callbacks:\nif (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction asap(callback, arg) {\n var length = queue.push([callback, arg]);\n if (length === 1) {\n // If length is 1, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n scheduleFlush();\n }\n}\n\nexports.asap = asap;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/asap.js\n ** module id = 22\n ** module chunks = 0\n **/"],"sourceRoot":"","file":"axios.js"} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap 39d2424555be79a801a0","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///external \"undefined\"","webpack:///./lib/defaults.js","webpack:///./lib/utils.js","webpack:///./lib/adapters/xhr.js","webpack:///./lib/helpers/spread.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./lib/helpers/buildUrl.js","webpack:///./lib/helpers/cookies.js","webpack:///./lib/helpers/parseHeaders.js","webpack:///./lib/helpers/transformData.js","webpack:///./lib/helpers/urlIsSameOrigin.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"],"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;;AAEA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;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;;;;;;;ACpGA,uCAAsC,sDAAsD,6BAA6B;AACzH,4B;;;;;;ACDA;;AAEA;;AAEA,6BAA4B,IAAI;AAChC,oBAAmB;AACnB,iCAAgC;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD;AACpD;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;;;;;;AClDA;;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;AACA,IAAG;AACH;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,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;AACA;AACA;AACA,G;;;;;;ACzMA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAAyC;AACzC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA,YAAW,SAAS;AACpB,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACxBA;;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;;;;;;;AC9DA;;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;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;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","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 39d2424555be79a801a0\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 defaults = require('./defaults');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n headers: {},\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 try {\n // For browsers use XHR adapter\n if (typeof window !== 'undefined') {\n require('./adapters/xhr')(resolve, reject, config);\n }\n // For node use HTTP adapter\n else if (typeof process !== 'undefined') {\n require('./adapters/http')(resolve, reject, config);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n function deprecatedMethod(method, instead, docs) {\n try {\n console.warn(\n 'DEPRECATED method `' + method + '`.' +\n (instead ? ' Use `' + instead + '` instead.' : '') +\n ' This method will be removed in a future release.');\n\n if (docs) {\n console.warn('For more information about usage see ' + docs);\n }\n } catch (e) {}\n }\n\n // Provide alias for success\n promise.success = function success(fn) {\n deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(null, function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Expose all/spread\naxios.all = function (promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\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 **/","if(typeof undefined === 'undefined') {var e = new Error(\"Cannot find module \\\"undefined\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e;}\nmodule.exports = undefined;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"undefined\"\n ** module id = 2\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 DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nmodule.exports = {\n transformRequest: [function (data, headers) {\n if (utils.isArrayBuffer(data)) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n // Set application/json if no Content-Type has been specified\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = 'application/json;charset=utf-8';\n }\n return JSON.stringify(data);\n }\n return data;\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(DEFAULT_CONTENT_TYPE),\n post: utils.merge(DEFAULT_CONTENT_TYPE),\n put: utils.merge(DEFAULT_CONTENT_TYPE)\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 = 3\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 an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n return ArrayBuffer.isView(val);\n } else {\n return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\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 undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\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= 200 && request.status < 300\n ? resolve\n : reject)(response);\n\n // Clean up request\n request = null;\n }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n data = new DataView(data);\n }\n\n // Send the request\n request.send(data);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/adapters/xhr.js\n ** module id = 5\n ** module chunks = 0\n **/","/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function (arr) {\n callback.apply(null, arr);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/helpers/spread.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\n\nprocess.nextTick = (function () {\n var canSetImmediate = typeof window !== 'undefined'\n && window.setImmediate;\n var canPost = typeof window !== 'undefined'\n && window.postMessage && window.addEventListener\n ;\n\n if (canSetImmediate) {\n return function (f) { return window.setImmediate(f) };\n }\n\n if (canPost) {\n var queue = [];\n window.addEventListener('message', function (ev) {\n var source = ev.source;\n if ((source === window || source === null) && ev.data === 'process-tick') {\n ev.stopPropagation();\n if (queue.length > 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 = 7\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/helpers/buildUrl.js\n ** module id = 8\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/helpers/cookies.js\n ** module id = 9\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/helpers/parseHeaders.js\n ** module id = 10\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/helpers/transformData.js\n ** module id = 11\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/helpers/urlIsSameOrigin.js\n ** module id = 12\n ** module chunks = 0\n **/","\"use strict\";\nvar Promise = require(\"./promise/promise\").Promise;\nvar polyfill = require(\"./promise/polyfill\").polyfill;\nexports.Promise = Promise;\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/main.js\n ** module id = 13\n ** module chunks = 0\n **/","\"use strict\";\nvar config = require(\"./config\").config;\nvar configure = require(\"./config\").configure;\nvar objectOrFunction = require(\"./utils\").objectOrFunction;\nvar isFunction = require(\"./utils\").isFunction;\nvar now = require(\"./utils\").now;\nvar all = require(\"./all\").all;\nvar race = require(\"./race\").race;\nvar staticResolve = require(\"./resolve\").resolve;\nvar staticReject = require(\"./reject\").reject;\nvar asap = require(\"./asap\").asap;\n\nvar counter = 0;\n\nconfig.async = asap; // default async is asap;\n\nfunction Promise(resolver) {\n if (!isFunction(resolver)) {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n\n if (!(this instanceof Promise)) {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n }\n\n this._subscribers = [];\n\n invokeResolver(resolver, this);\n}\n\nfunction invokeResolver(resolver, promise) {\n function resolvePromise(value) {\n resolve(promise, value);\n }\n\n function rejectPromise(reason) {\n reject(promise, reason);\n }\n\n try {\n resolver(resolvePromise, rejectPromise);\n } catch(e) {\n rejectPromise(e);\n }\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value, error, succeeded, failed;\n\n if (hasCallback) {\n try {\n value = callback(detail);\n succeeded = true;\n } catch(e) {\n failed = true;\n error = e;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (handleThenable(promise, value)) {\n return;\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (failed) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n resolve(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n}\n\nvar PENDING = void 0;\nvar SEALED = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var subscribers = parent._subscribers;\n var length = subscribers.length;\n\n subscribers[length] = child;\n subscribers[length + FULFILLED] = onFulfillment;\n subscribers[length + REJECTED] = onRejection;\n}\n\nfunction publish(promise, settled) {\n var child, callback, subscribers = promise._subscribers, detail = promise._detail;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n invokeCallback(settled, child, callback, detail);\n }\n\n promise._subscribers = null;\n}\n\nPromise.prototype = {\n constructor: Promise,\n\n _state: undefined,\n _detail: undefined,\n _subscribers: undefined,\n\n then: function(onFulfillment, onRejection) {\n var promise = this;\n\n var thenPromise = new this.constructor(function() {});\n\n if (this._state) {\n var callbacks = arguments;\n config.async(function invokePromiseCallback() {\n invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail);\n });\n } else {\n subscribe(this, thenPromise, onFulfillment, onRejection);\n }\n\n return thenPromise;\n },\n\n 'catch': function(onRejection) {\n return this.then(null, onRejection);\n }\n};\n\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = staticResolve;\nPromise.reject = staticReject;\n\nfunction handleThenable(promise, value) {\n var then = null,\n resolved;\n\n try {\n if (promise === value) {\n throw new TypeError(\"A promises callback cannot return that same promise.\");\n }\n\n if (objectOrFunction(value)) {\n then = value.then;\n\n if (isFunction(then)) {\n then.call(value, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n if (value !== val) {\n resolve(promise, val);\n } else {\n fulfill(promise, val);\n }\n }, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n reject(promise, val);\n });\n\n return true;\n }\n }\n } catch (error) {\n if (resolved) { return true; }\n reject(promise, error);\n return true;\n }\n\n return false;\n}\n\nfunction resolve(promise, value) {\n if (promise === value) {\n fulfill(promise, value);\n } else if (!handleThenable(promise, value)) {\n fulfill(promise, value);\n }\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = value;\n\n config.async(publishFulfillment, promise);\n}\n\nfunction reject(promise, reason) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = reason;\n\n config.async(publishRejection, promise);\n}\n\nfunction publishFulfillment(promise) {\n publish(promise, promise._state = FULFILLED);\n}\n\nfunction publishRejection(promise) {\n publish(promise, promise._state = REJECTED);\n}\n\nexports.Promise = Promise;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/promise.js\n ** module id = 14\n ** module chunks = 0\n **/","\"use strict\";\n/*global self*/\nvar RSVPPromise = require(\"./promise\").Promise;\nvar isFunction = require(\"./utils\").isFunction;\n\nfunction polyfill() {\n var local;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof window !== 'undefined' && window.document) {\n local = window;\n } else {\n local = self;\n }\n\n var es6PromiseSupport = \n \"Promise\" in local &&\n // Some of these methods are missing from\n // Firefox/Chrome experimental implementations\n \"resolve\" in local.Promise &&\n \"reject\" in local.Promise &&\n \"all\" in local.Promise &&\n \"race\" in local.Promise &&\n // Older version of the spec had a resolver object\n // as the arg rather than a function\n (function() {\n var resolve;\n new local.Promise(function(r) { resolve = r; });\n return isFunction(resolve);\n }());\n\n if (!es6PromiseSupport) {\n local.Promise = RSVPPromise;\n }\n}\n\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/polyfill.js\n ** module id = 15\n ** module chunks = 0\n **/","\"use strict\";\nvar config = {\n instrument: false\n};\n\nfunction configure(name, value) {\n if (arguments.length === 2) {\n config[name] = value;\n } else {\n return config[name];\n }\n}\n\nexports.config = config;\nexports.configure = configure;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/config.js\n ** module id = 16\n ** module chunks = 0\n **/","\"use strict\";\nfunction objectOrFunction(x) {\n return isFunction(x) || (typeof x === \"object\" && x !== null);\n}\n\nfunction isFunction(x) {\n return typeof x === \"function\";\n}\n\nfunction isArray(x) {\n return Object.prototype.toString.call(x) === \"[object Array]\";\n}\n\n// Date.now is not available in browsers < IE9\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\nvar now = Date.now || function() { return new Date().getTime(); };\n\n\nexports.objectOrFunction = objectOrFunction;\nexports.isFunction = isFunction;\nexports.isArray = isArray;\nexports.now = now;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/utils.js\n ** module id = 17\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\n\nvar isArray = require(\"./utils\").isArray;\nvar isFunction = require(\"./utils\").isFunction;\n\n/**\n Returns a promise that is fulfilled when all the given promises have been\n fulfilled, or rejected if any of them become rejected. The return promise\n is fulfilled with an array that gives all the values in the order they were\n passed in the `promises` array argument.\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.resolve(2);\n var promise3 = RSVP.resolve(3);\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `RSVP.all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.reject(new Error(\"2\"));\n var promise3 = RSVP.reject(new Error(\"3\"));\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @for RSVP\n @param {Array} promises\n @param {String} label\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n*/\nfunction all(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to all.');\n }\n\n return new Promise(function(resolve, reject) {\n var results = [], remaining = promises.length,\n promise;\n\n if (remaining === 0) {\n resolve([]);\n }\n\n function resolver(index) {\n return function(value) {\n resolveAll(index, value);\n };\n }\n\n function resolveAll(index, value) {\n results[index] = value;\n if (--remaining === 0) {\n resolve(results);\n }\n }\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && isFunction(promise.then)) {\n promise.then(resolver(i), reject);\n } else {\n resolveAll(i, promise);\n }\n }\n });\n}\n\nexports.all = all;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/all.js\n ** module id = 18\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\nvar isArray = require(\"./utils\").isArray;\n\n/**\n `RSVP.race` allows you to watch a series of promises and act as soon as the\n first promise given to the `promises` argument fulfills or rejects.\n\n Example:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 2\");\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // result === \"promise 2\" because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `RSVP.race` is deterministic in that only the state of the first completed\n promise matters. For example, even if other promises given to the `promises`\n array argument are resolved, but the first completed promise has become\n rejected before the other promises became fulfilled, the returned promise\n will become rejected:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error(\"promise 2\"));\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // Code here never runs because there are rejected promises!\n }, function(reason){\n // reason.message === \"promise2\" because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n @method race\n @for RSVP\n @param {Array} promises array of promises to observe\n @param {String} label optional string for describing the promise returned.\n Useful for tooling.\n @return {Promise} a promise that becomes fulfilled with the value the first\n completed promises is resolved with if the first completed promise was\n fulfilled, or rejected with the reason that the first completed promise\n was rejected with.\n*/\nfunction race(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to race.');\n }\n return new Promise(function(resolve, reject) {\n var results = [], promise;\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolve, reject);\n } else {\n resolve(promise);\n }\n }\n });\n}\n\nexports.race = race;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/race.js\n ** module id = 19\n ** module chunks = 0\n **/","\"use strict\";\nfunction resolve(value) {\n /*jshint validthis:true */\n if (value && typeof value === 'object' && value.constructor === this) {\n return value;\n }\n\n var Promise = this;\n\n return new Promise(function(resolve) {\n resolve(value);\n });\n}\n\nexports.resolve = resolve;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/resolve.js\n ** module id = 20\n ** module chunks = 0\n **/","\"use strict\";\n/**\n `RSVP.reject` returns a promise that will become rejected with the passed\n `reason`. `RSVP.reject` is essentially shorthand for the following:\n\n ```javascript\n var promise = new RSVP.Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n var promise = RSVP.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @for RSVP\n @param {Any} reason value that the returned promise will be rejected with.\n @param {String} label optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise that will become rejected with the given\n `reason`.\n*/\nfunction reject(reason) {\n /*jshint validthis:true */\n var Promise = this;\n\n return new Promise(function (resolve, reject) {\n reject(reason);\n });\n}\n\nexports.reject = reject;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/reject.js\n ** module id = 21\n ** module chunks = 0\n **/","\"use strict\";\nvar browserGlobal = (typeof window !== 'undefined') ? window : {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar local = (typeof global !== 'undefined') ? global : (this === undefined? window:this);\n\n// node\nfunction useNextTick() {\n return function() {\n process.nextTick(flush);\n };\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function() {\n node.data = (iterations = ++iterations % 2);\n };\n}\n\nfunction useSetTimeout() {\n return function() {\n local.setTimeout(flush, 1);\n };\n}\n\nvar queue = [];\nfunction flush() {\n for (var i = 0; i < queue.length; i++) {\n var tuple = queue[i];\n var callback = tuple[0], arg = tuple[1];\n callback(arg);\n }\n queue = [];\n}\n\nvar scheduleFlush;\n\n// Decide what async method to use to triggering processing of queued callbacks:\nif (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction asap(callback, arg) {\n var length = queue.push([callback, arg]);\n if (length === 1) {\n // If length is 1, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n scheduleFlush();\n }\n}\n\nexports.asap = asap;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/asap.js\n ** module id = 22\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 a0b0d81..d982944 100644 --- a/dist/axios.min.js +++ b/dist/axios.min.js @@ -1,3 +1,3 @@ -/* axios v0.3.1 | (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(e){function r(){c.forEach(arguments,function(t){a[t]=function(e,n){return a(c.merge(n||{},{method:t,url:e}))}})}function o(){c.forEach(arguments,function(t){a[t]=function(e,n,r){return a(c.merge(r||{},{method:t,url:e,data:n}))}})}var i=n(13).Promise,s=n(3),c=n(4),u=n(5),a=t.exports=function(t){t=c.merge({method:"get",transformRequest:s.transformRequest,transformResponse:s.transformResponse},t),t.withCredentials=t.withCredentials||s.withCredentials;var r=new i(function(r,o){try{"undefined"!=typeof window?n(6)(r,o,t):"undefined"!=typeof e&&n(2)(r,o,t)}catch(i){o(i)}});return r.success=function(t){return r.then(function(e){t(e.data,e.status,e.headers,e.config)}),r},r.error=function(t){return r.then(null,function(e){t(e.data,e.status,e.headers,e.config)}),r},r};a.defaults=s,a.all=function(t){return i.all(t)},a.spread=u,r("delete","get","head"),o("post","put","patch")}).call(e,n(7))},function(t){var e=new Error('Cannot find module "undefined"');throw e.code="MODULE_NOT_FOUND",e},function(t,e,n){"use strict";var r=n(4),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)?t: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){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){t.exports=function(t){return function(e){t.apply(null,e)}}},function(t,e,n){var r=n(8),o=n(9),i=n(3),s=n(10),c=n(11),u=n(12),a=n(4);t.exports=function(t,e,n){var f=c(n.data,n.headers,n.transformRequest),l=a.merge(i.headers.common,i.headers[n.method]||{},n.headers||{}),p=new(XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP");p.open(n.method,r(n.url,n.params),!0),p.onreadystatechange=function(){if(p&&4===p.readyState){var r=s(p.getAllResponseHeaders()),o={data:c(p.responseText,r,n.transformResponse),status:p.status,headers:r,config:n};(p.status>=200&&p.status<300?t:e)(o),p=null}};var d=u(n.url)?o.read(n.xsrfCookieName||i.xsrfCookieName):void 0;if(d&&(l[n.xsrfHeaderName||i.xsrfHeaderName]=d),a.forEach(l,function(t,e){f||"content-type"!==e.toLowerCase()?p.setRequestHeader(e,t):delete l[e]}),n.withCredentials&&(p.withCredentials=!0),n.responseType)try{p.responseType=n.responseType}catch(h){if("json"!==p.responseType)throw h}p.send(f)}},function(t){function e(){}var n=t.exports={};n.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){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")}},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(4);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(4);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(4);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(4);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(4),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,e,n){"use strict";var r=n(14).Promise,o=n(15).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===T?a(e,o):t===O&&l(e,o))}function s(t,e,n,r){var o=t._subscribers,i=o.length;o[i]=e,o[i+T]=n,o[i+O]=r}function c(t,e){for(var n,r,o=t._subscribers,s=t._detail,c=0;cr;r++)t.call(null,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(null,e[i],i,e)}}function d(){var e={};return p(arguments,function(t){p(t,function(t,n){e[n]=t})}),e}var h=Object.prototype.toString;e.exports={isArray:t,isArrayBuffer:n,isArrayBufferView:r,isString:o,isNumber:i,isObject:u,isUndefined:s,isDate:c,isFile:a,isBlob:f,forEach:p,merge:d,trim:l}},function(e,t,n){var r=n(3),o=n(4),i=n(8),s=n(9),u=n(10),c=n(11),a=n(12);e.exports=function(e,t,n){var f=c(n.data,n.headers,n.transformRequest),l=o.merge(r.headers.common,r.headers[n.method]||{},n.headers||{}),p=new(XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP");p.open(n.method,i(n.url,n.params),!0),p.onreadystatechange=function(){if(p&&4===p.readyState){var r=u(p.getAllResponseHeaders()),o={data:c(p.responseText,r,n.transformResponse),status:p.status,headers:r,config:n};(p.status>=200&&p.status<300?e:t)(o),p=null}};var d=a(n.url)?s.read(n.xsrfCookieName||r.xsrfCookieName):void 0;if(d&&(l[n.xsrfHeaderName||r.xsrfHeaderName]=d),o.forEach(l,function(e,t){f||"content-type"!==t.toLowerCase()?p.setRequestHeader(t,e):delete l[t]}),n.withCredentials&&(p.withCredentials=!0),n.responseType)try{p.responseType=n.responseType}catch(h){if("json"!==p.responseType)throw h}o.isArrayBuffer(f)&&(f=new DataView(f)),p.send(f)}},function(e){e.exports=function(e){return function(t){e.apply(null,t)}}},function(e){function t(){}var n=e.exports={};n.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;if((t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=t,n.addListener=t,n.once=t,n.off=t,n.removeListener=t,n.removeAllListeners=t,n.emit=t,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")}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}var o=n(4);e.exports=function(e,t){if(!t)return e;var n=[];return o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),n.push(r(t)+"="+r(e))}))}),n.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+n.join("&")),e}},function(e,t,n){"use strict";var r=n(4);e.exports={write:function(e,t,n,o,i,s){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";function r(e){var t=e;return o&&(s.setAttribute("href",t),t=s.href),s.setAttribute("href",t),{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(4),s=document.createElement("a"),u=r(window.location.href);e.exports=function(e){var t=i.isString(e)?r(e):e;return t.protocol===u.protocol&&t.host===u.host}},function(e,t,n){"use strict";var r=n(14).Promise,o=n(15).polyfill;t.Promise=r,t.polyfill=o},function(e,t,n){"use strict";function r(e){if(!w(e))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(e,this)}function o(e,t){function n(e){a(t,e)}function r(e){l(t,e)}try{e(n,r)}catch(o){r(o)}}function i(e,t,n,r){var o,i,s,u,f=w(n);if(f)try{o=n(r),s=!0}catch(p){u=!0,i=p}else o=r,s=!0;c(t,o)||(f&&s?a(t,o):u?l(t,i):e===j?a(t,o):e===T&&l(t,o))}function s(e,t,n,r){var o=e._subscribers,i=o.length;o[i]=t,o[i+j]=n,o[i+T]=r}function u(e,t){for(var n,r,o=e._subscribers,s=e._detail,u=0;u= 200 && request.status < 300\n\t ? resolve\n\t : reject)(response);\n\t\n\t // Clean up request\n\t request = null;\n\t }\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 // Add headers to the request\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\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// shim for using process in browser\n\t\n\tvar process = module.exports = {};\n\t\n\tprocess.nextTick = (function () {\n\t var canSetImmediate = typeof window !== 'undefined'\n\t && window.setImmediate;\n\t var canPost = typeof window !== 'undefined'\n\t && window.postMessage && window.addEventListener\n\t ;\n\t\n\t if (canSetImmediate) {\n\t return function (f) { return window.setImmediate(f) };\n\t }\n\t\n\t if (canPost) {\n\t var queue = [];\n\t window.addEventListener('message', function (ev) {\n\t var source = ev.source;\n\t if ((source === window || source === null) && ev.data === 'process-tick') {\n\t ev.stopPropagation();\n\t if (queue.length > 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/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 12 */\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__(4);\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/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar Promise = __webpack_require__(14).Promise;\n\tvar polyfill = __webpack_require__(15).polyfill;\n\texports.Promise = Promise;\n\texports.polyfill = polyfill;\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar config = __webpack_require__(16).config;\n\tvar configure = __webpack_require__(16).configure;\n\tvar objectOrFunction = __webpack_require__(17).objectOrFunction;\n\tvar isFunction = __webpack_require__(17).isFunction;\n\tvar now = __webpack_require__(17).now;\n\tvar all = __webpack_require__(18).all;\n\tvar race = __webpack_require__(19).race;\n\tvar staticResolve = __webpack_require__(20).resolve;\n\tvar staticReject = __webpack_require__(21).reject;\n\tvar asap = __webpack_require__(22).asap;\n\t\n\tvar counter = 0;\n\t\n\tconfig.async = asap; // default async is asap;\n\t\n\tfunction Promise(resolver) {\n\t if (!isFunction(resolver)) {\n\t throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n\t }\n\t\n\t if (!(this instanceof Promise)) {\n\t throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n\t }\n\t\n\t this._subscribers = [];\n\t\n\t invokeResolver(resolver, this);\n\t}\n\t\n\tfunction invokeResolver(resolver, promise) {\n\t function resolvePromise(value) {\n\t resolve(promise, value);\n\t }\n\t\n\t function rejectPromise(reason) {\n\t reject(promise, reason);\n\t }\n\t\n\t try {\n\t resolver(resolvePromise, rejectPromise);\n\t } catch(e) {\n\t rejectPromise(e);\n\t }\n\t}\n\t\n\tfunction invokeCallback(settled, promise, callback, detail) {\n\t var hasCallback = isFunction(callback),\n\t value, error, succeeded, failed;\n\t\n\t if (hasCallback) {\n\t try {\n\t value = callback(detail);\n\t succeeded = true;\n\t } catch(e) {\n\t failed = true;\n\t error = e;\n\t }\n\t } else {\n\t value = detail;\n\t succeeded = true;\n\t }\n\t\n\t if (handleThenable(promise, value)) {\n\t return;\n\t } else if (hasCallback && succeeded) {\n\t resolve(promise, value);\n\t } else if (failed) {\n\t reject(promise, error);\n\t } else if (settled === FULFILLED) {\n\t resolve(promise, value);\n\t } else if (settled === REJECTED) {\n\t reject(promise, value);\n\t }\n\t}\n\t\n\tvar PENDING = void 0;\n\tvar SEALED = 0;\n\tvar FULFILLED = 1;\n\tvar REJECTED = 2;\n\t\n\tfunction subscribe(parent, child, onFulfillment, onRejection) {\n\t var subscribers = parent._subscribers;\n\t var length = subscribers.length;\n\t\n\t subscribers[length] = child;\n\t subscribers[length + FULFILLED] = onFulfillment;\n\t subscribers[length + REJECTED] = onRejection;\n\t}\n\t\n\tfunction publish(promise, settled) {\n\t var child, callback, subscribers = promise._subscribers, detail = promise._detail;\n\t\n\t for (var i = 0; i < subscribers.length; i += 3) {\n\t child = subscribers[i];\n\t callback = subscribers[i + settled];\n\t\n\t invokeCallback(settled, child, callback, detail);\n\t }\n\t\n\t promise._subscribers = null;\n\t}\n\t\n\tPromise.prototype = {\n\t constructor: Promise,\n\t\n\t _state: undefined,\n\t _detail: undefined,\n\t _subscribers: undefined,\n\t\n\t then: function(onFulfillment, onRejection) {\n\t var promise = this;\n\t\n\t var thenPromise = new this.constructor(function() {});\n\t\n\t if (this._state) {\n\t var callbacks = arguments;\n\t config.async(function invokePromiseCallback() {\n\t invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail);\n\t });\n\t } else {\n\t subscribe(this, thenPromise, onFulfillment, onRejection);\n\t }\n\t\n\t return thenPromise;\n\t },\n\t\n\t 'catch': function(onRejection) {\n\t return this.then(null, onRejection);\n\t }\n\t};\n\t\n\tPromise.all = all;\n\tPromise.race = race;\n\tPromise.resolve = staticResolve;\n\tPromise.reject = staticReject;\n\t\n\tfunction handleThenable(promise, value) {\n\t var then = null,\n\t resolved;\n\t\n\t try {\n\t if (promise === value) {\n\t throw new TypeError(\"A promises callback cannot return that same promise.\");\n\t }\n\t\n\t if (objectOrFunction(value)) {\n\t then = value.then;\n\t\n\t if (isFunction(then)) {\n\t then.call(value, function(val) {\n\t if (resolved) { return true; }\n\t resolved = true;\n\t\n\t if (value !== val) {\n\t resolve(promise, val);\n\t } else {\n\t fulfill(promise, val);\n\t }\n\t }, function(val) {\n\t if (resolved) { return true; }\n\t resolved = true;\n\t\n\t reject(promise, val);\n\t });\n\t\n\t return true;\n\t }\n\t }\n\t } catch (error) {\n\t if (resolved) { return true; }\n\t reject(promise, error);\n\t return true;\n\t }\n\t\n\t return false;\n\t}\n\t\n\tfunction resolve(promise, value) {\n\t if (promise === value) {\n\t fulfill(promise, value);\n\t } else if (!handleThenable(promise, value)) {\n\t fulfill(promise, value);\n\t }\n\t}\n\t\n\tfunction fulfill(promise, value) {\n\t if (promise._state !== PENDING) { return; }\n\t promise._state = SEALED;\n\t promise._detail = value;\n\t\n\t config.async(publishFulfillment, promise);\n\t}\n\t\n\tfunction reject(promise, reason) {\n\t if (promise._state !== PENDING) { return; }\n\t promise._state = SEALED;\n\t promise._detail = reason;\n\t\n\t config.async(publishRejection, promise);\n\t}\n\t\n\tfunction publishFulfillment(promise) {\n\t publish(promise, promise._state = FULFILLED);\n\t}\n\t\n\tfunction publishRejection(promise) {\n\t publish(promise, promise._state = REJECTED);\n\t}\n\t\n\texports.Promise = Promise;\n\n/***/ },\n/* 15 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {\"use strict\";\n\t/*global self*/\n\tvar RSVPPromise = __webpack_require__(14).Promise;\n\tvar isFunction = __webpack_require__(17).isFunction;\n\t\n\tfunction polyfill() {\n\t var local;\n\t\n\t if (typeof global !== 'undefined') {\n\t local = global;\n\t } else if (typeof window !== 'undefined' && window.document) {\n\t local = window;\n\t } else {\n\t local = self;\n\t }\n\t\n\t var es6PromiseSupport = \n\t \"Promise\" in local &&\n\t // Some of these methods are missing from\n\t // Firefox/Chrome experimental implementations\n\t \"resolve\" in local.Promise &&\n\t \"reject\" in local.Promise &&\n\t \"all\" in local.Promise &&\n\t \"race\" in local.Promise &&\n\t // Older version of the spec had a resolver object\n\t // as the arg rather than a function\n\t (function() {\n\t var resolve;\n\t new local.Promise(function(r) { resolve = r; });\n\t return isFunction(resolve);\n\t }());\n\t\n\t if (!es6PromiseSupport) {\n\t local.Promise = RSVPPromise;\n\t }\n\t}\n\t\n\texports.polyfill = polyfill;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar config = {\n\t instrument: false\n\t};\n\t\n\tfunction configure(name, value) {\n\t if (arguments.length === 2) {\n\t config[name] = value;\n\t } else {\n\t return config[name];\n\t }\n\t}\n\t\n\texports.config = config;\n\texports.configure = configure;\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tfunction objectOrFunction(x) {\n\t return isFunction(x) || (typeof x === \"object\" && x !== null);\n\t}\n\t\n\tfunction isFunction(x) {\n\t return typeof x === \"function\";\n\t}\n\t\n\tfunction isArray(x) {\n\t return Object.prototype.toString.call(x) === \"[object Array]\";\n\t}\n\t\n\t// Date.now is not available in browsers < IE9\n\t// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\n\tvar now = Date.now || function() { return new Date().getTime(); };\n\t\n\t\n\texports.objectOrFunction = objectOrFunction;\n\texports.isFunction = isFunction;\n\texports.isArray = isArray;\n\texports.now = now;\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t/* global toString */\n\t\n\tvar isArray = __webpack_require__(17).isArray;\n\tvar isFunction = __webpack_require__(17).isFunction;\n\t\n\t/**\n\t Returns a promise that is fulfilled when all the given promises have been\n\t fulfilled, or rejected if any of them become rejected. The return promise\n\t is fulfilled with an array that gives all the values in the order they were\n\t passed in the `promises` array argument.\n\t\n\t Example:\n\t\n\t ```javascript\n\t var promise1 = RSVP.resolve(1);\n\t var promise2 = RSVP.resolve(2);\n\t var promise3 = RSVP.resolve(3);\n\t var promises = [ promise1, promise2, promise3 ];\n\t\n\t RSVP.all(promises).then(function(array){\n\t // The array here would be [ 1, 2, 3 ];\n\t });\n\t ```\n\t\n\t If any of the `promises` given to `RSVP.all` are rejected, the first promise\n\t that is rejected will be given as an argument to the returned promises's\n\t rejection handler. For example:\n\t\n\t Example:\n\t\n\t ```javascript\n\t var promise1 = RSVP.resolve(1);\n\t var promise2 = RSVP.reject(new Error(\"2\"));\n\t var promise3 = RSVP.reject(new Error(\"3\"));\n\t var promises = [ promise1, promise2, promise3 ];\n\t\n\t RSVP.all(promises).then(function(array){\n\t // Code here never runs because there are rejected promises!\n\t }, function(error) {\n\t // error.message === \"2\"\n\t });\n\t ```\n\t\n\t @method all\n\t @for RSVP\n\t @param {Array} promises\n\t @param {String} label\n\t @return {Promise} promise that is fulfilled when all `promises` have been\n\t fulfilled, or rejected if any of them become rejected.\n\t*/\n\tfunction all(promises) {\n\t /*jshint validthis:true */\n\t var Promise = this;\n\t\n\t if (!isArray(promises)) {\n\t throw new TypeError('You must pass an array to all.');\n\t }\n\t\n\t return new Promise(function(resolve, reject) {\n\t var results = [], remaining = promises.length,\n\t promise;\n\t\n\t if (remaining === 0) {\n\t resolve([]);\n\t }\n\t\n\t function resolver(index) {\n\t return function(value) {\n\t resolveAll(index, value);\n\t };\n\t }\n\t\n\t function resolveAll(index, value) {\n\t results[index] = value;\n\t if (--remaining === 0) {\n\t resolve(results);\n\t }\n\t }\n\t\n\t for (var i = 0; i < promises.length; i++) {\n\t promise = promises[i];\n\t\n\t if (promise && isFunction(promise.then)) {\n\t promise.then(resolver(i), reject);\n\t } else {\n\t resolveAll(i, promise);\n\t }\n\t }\n\t });\n\t}\n\t\n\texports.all = all;\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t/* global toString */\n\tvar isArray = __webpack_require__(17).isArray;\n\t\n\t/**\n\t `RSVP.race` allows you to watch a series of promises and act as soon as the\n\t first promise given to the `promises` argument fulfills or rejects.\n\t\n\t Example:\n\t\n\t ```javascript\n\t var promise1 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t resolve(\"promise 1\");\n\t }, 200);\n\t });\n\t\n\t var promise2 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t resolve(\"promise 2\");\n\t }, 100);\n\t });\n\t\n\t RSVP.race([promise1, promise2]).then(function(result){\n\t // result === \"promise 2\" because it was resolved before promise1\n\t // was resolved.\n\t });\n\t ```\n\t\n\t `RSVP.race` is deterministic in that only the state of the first completed\n\t promise matters. For example, even if other promises given to the `promises`\n\t array argument are resolved, but the first completed promise has become\n\t rejected before the other promises became fulfilled, the returned promise\n\t will become rejected:\n\t\n\t ```javascript\n\t var promise1 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t resolve(\"promise 1\");\n\t }, 200);\n\t });\n\t\n\t var promise2 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t reject(new Error(\"promise 2\"));\n\t }, 100);\n\t });\n\t\n\t RSVP.race([promise1, promise2]).then(function(result){\n\t // Code here never runs because there are rejected promises!\n\t }, function(reason){\n\t // reason.message === \"promise2\" because promise 2 became rejected before\n\t // promise 1 became fulfilled\n\t });\n\t ```\n\t\n\t @method race\n\t @for RSVP\n\t @param {Array} promises array of promises to observe\n\t @param {String} label optional string for describing the promise returned.\n\t Useful for tooling.\n\t @return {Promise} a promise that becomes fulfilled with the value the first\n\t completed promises is resolved with if the first completed promise was\n\t fulfilled, or rejected with the reason that the first completed promise\n\t was rejected with.\n\t*/\n\tfunction race(promises) {\n\t /*jshint validthis:true */\n\t var Promise = this;\n\t\n\t if (!isArray(promises)) {\n\t throw new TypeError('You must pass an array to race.');\n\t }\n\t return new Promise(function(resolve, reject) {\n\t var results = [], promise;\n\t\n\t for (var i = 0; i < promises.length; i++) {\n\t promise = promises[i];\n\t\n\t if (promise && typeof promise.then === 'function') {\n\t promise.then(resolve, reject);\n\t } else {\n\t resolve(promise);\n\t }\n\t }\n\t });\n\t}\n\t\n\texports.race = race;\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tfunction resolve(value) {\n\t /*jshint validthis:true */\n\t if (value && typeof value === 'object' && value.constructor === this) {\n\t return value;\n\t }\n\t\n\t var Promise = this;\n\t\n\t return new Promise(function(resolve) {\n\t resolve(value);\n\t });\n\t}\n\t\n\texports.resolve = resolve;\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t/**\n\t `RSVP.reject` returns a promise that will become rejected with the passed\n\t `reason`. `RSVP.reject` is essentially shorthand for the following:\n\t\n\t ```javascript\n\t var promise = new RSVP.Promise(function(resolve, reject){\n\t reject(new Error('WHOOPS'));\n\t });\n\t\n\t promise.then(function(value){\n\t // Code here doesn't run because the promise is rejected!\n\t }, function(reason){\n\t // reason.message === 'WHOOPS'\n\t });\n\t ```\n\t\n\t Instead of writing the above, your code now simply becomes the following:\n\t\n\t ```javascript\n\t var promise = RSVP.reject(new Error('WHOOPS'));\n\t\n\t promise.then(function(value){\n\t // Code here doesn't run because the promise is rejected!\n\t }, function(reason){\n\t // reason.message === 'WHOOPS'\n\t });\n\t ```\n\t\n\t @method reject\n\t @for RSVP\n\t @param {Any} reason value that the returned promise will be rejected with.\n\t @param {String} label optional string for identifying the returned promise.\n\t Useful for tooling.\n\t @return {Promise} a promise that will become rejected with the given\n\t `reason`.\n\t*/\n\tfunction reject(reason) {\n\t /*jshint validthis:true */\n\t var Promise = this;\n\t\n\t return new Promise(function (resolve, reject) {\n\t reject(reason);\n\t });\n\t}\n\t\n\texports.reject = reject;\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global, process) {\"use strict\";\n\tvar browserGlobal = (typeof window !== 'undefined') ? window : {};\n\tvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\n\tvar local = (typeof global !== 'undefined') ? global : (this === undefined? window:this);\n\t\n\t// node\n\tfunction useNextTick() {\n\t return function() {\n\t process.nextTick(flush);\n\t };\n\t}\n\t\n\tfunction useMutationObserver() {\n\t var iterations = 0;\n\t var observer = new BrowserMutationObserver(flush);\n\t var node = document.createTextNode('');\n\t observer.observe(node, { characterData: true });\n\t\n\t return function() {\n\t node.data = (iterations = ++iterations % 2);\n\t };\n\t}\n\t\n\tfunction useSetTimeout() {\n\t return function() {\n\t local.setTimeout(flush, 1);\n\t };\n\t}\n\t\n\tvar queue = [];\n\tfunction flush() {\n\t for (var i = 0; i < queue.length; i++) {\n\t var tuple = queue[i];\n\t var callback = tuple[0], arg = tuple[1];\n\t callback(arg);\n\t }\n\t queue = [];\n\t}\n\t\n\tvar scheduleFlush;\n\t\n\t// Decide what async method to use to triggering processing of queued callbacks:\n\tif (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n\t scheduleFlush = useNextTick();\n\t} else if (BrowserMutationObserver) {\n\t scheduleFlush = useMutationObserver();\n\t} else {\n\t scheduleFlush = useSetTimeout();\n\t}\n\t\n\tfunction asap(callback, arg) {\n\t var length = queue.push([callback, arg]);\n\t if (length === 1) {\n\t // If length is 1, that means that we need to schedule an async flush.\n\t // If additional callbacks are queued before the queue is flushed, they\n\t // will be processed by this flush that we are scheduling.\n\t scheduleFlush();\n\t }\n\t}\n\t\n\texports.asap = asap;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(7)))\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 aac575528c468ecbea55\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 defaults = require('./defaults');\nvar utils = require('./utils');\nvar spread = require('./spread');\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 try {\n // For browsers use XHR adapter\n if (typeof window !== 'undefined') {\n require('./adapters/xhr')(resolve, reject, config);\n }\n // For node use HTTP adapter\n else if (typeof process !== 'undefined') {\n require('./adapters/http')(resolve, reject, config);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n // Provide alias for success\n promise.success = function success(fn) {\n promise.then(function(response) {\n fn(response.data, response.status, response.headers, response.config);\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.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Expose all/spread\naxios.all = function (promises) {\n return Promise.all(promises);\n};\naxios.spread = spread;\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 **/","if(typeof undefined === 'undefined') {var e = new Error(\"Cannot find module \\\"undefined\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e;}\nmodule.exports = undefined;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"undefined\"\n ** module id = 2\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) : data;\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 = 3\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= 200 && request.status < 300\n ? resolve\n : reject)(response);\n\n // Clean up request\n request = null;\n }\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 // Add headers to the request\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\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/adapters/xhr.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\n\nprocess.nextTick = (function () {\n var canSetImmediate = typeof window !== 'undefined'\n && window.setImmediate;\n var canPost = typeof window !== 'undefined'\n && window.postMessage && window.addEventListener\n ;\n\n if (canSetImmediate) {\n return function (f) { return window.setImmediate(f) };\n }\n\n if (canPost) {\n var queue = [];\n window.addEventListener('message', function (ev) {\n var source = ev.source;\n if ((source === window || source === null) && ev.data === 'process-tick') {\n ev.stopPropagation();\n if (queue.length > 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 = 7\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 = 8\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 = 9\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 = 10\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 = 11\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 = 12\n ** module chunks = 0\n **/","\"use strict\";\nvar Promise = require(\"./promise/promise\").Promise;\nvar polyfill = require(\"./promise/polyfill\").polyfill;\nexports.Promise = Promise;\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/main.js\n ** module id = 13\n ** module chunks = 0\n **/","\"use strict\";\nvar config = require(\"./config\").config;\nvar configure = require(\"./config\").configure;\nvar objectOrFunction = require(\"./utils\").objectOrFunction;\nvar isFunction = require(\"./utils\").isFunction;\nvar now = require(\"./utils\").now;\nvar all = require(\"./all\").all;\nvar race = require(\"./race\").race;\nvar staticResolve = require(\"./resolve\").resolve;\nvar staticReject = require(\"./reject\").reject;\nvar asap = require(\"./asap\").asap;\n\nvar counter = 0;\n\nconfig.async = asap; // default async is asap;\n\nfunction Promise(resolver) {\n if (!isFunction(resolver)) {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n\n if (!(this instanceof Promise)) {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n }\n\n this._subscribers = [];\n\n invokeResolver(resolver, this);\n}\n\nfunction invokeResolver(resolver, promise) {\n function resolvePromise(value) {\n resolve(promise, value);\n }\n\n function rejectPromise(reason) {\n reject(promise, reason);\n }\n\n try {\n resolver(resolvePromise, rejectPromise);\n } catch(e) {\n rejectPromise(e);\n }\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value, error, succeeded, failed;\n\n if (hasCallback) {\n try {\n value = callback(detail);\n succeeded = true;\n } catch(e) {\n failed = true;\n error = e;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (handleThenable(promise, value)) {\n return;\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (failed) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n resolve(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n}\n\nvar PENDING = void 0;\nvar SEALED = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var subscribers = parent._subscribers;\n var length = subscribers.length;\n\n subscribers[length] = child;\n subscribers[length + FULFILLED] = onFulfillment;\n subscribers[length + REJECTED] = onRejection;\n}\n\nfunction publish(promise, settled) {\n var child, callback, subscribers = promise._subscribers, detail = promise._detail;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n invokeCallback(settled, child, callback, detail);\n }\n\n promise._subscribers = null;\n}\n\nPromise.prototype = {\n constructor: Promise,\n\n _state: undefined,\n _detail: undefined,\n _subscribers: undefined,\n\n then: function(onFulfillment, onRejection) {\n var promise = this;\n\n var thenPromise = new this.constructor(function() {});\n\n if (this._state) {\n var callbacks = arguments;\n config.async(function invokePromiseCallback() {\n invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail);\n });\n } else {\n subscribe(this, thenPromise, onFulfillment, onRejection);\n }\n\n return thenPromise;\n },\n\n 'catch': function(onRejection) {\n return this.then(null, onRejection);\n }\n};\n\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = staticResolve;\nPromise.reject = staticReject;\n\nfunction handleThenable(promise, value) {\n var then = null,\n resolved;\n\n try {\n if (promise === value) {\n throw new TypeError(\"A promises callback cannot return that same promise.\");\n }\n\n if (objectOrFunction(value)) {\n then = value.then;\n\n if (isFunction(then)) {\n then.call(value, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n if (value !== val) {\n resolve(promise, val);\n } else {\n fulfill(promise, val);\n }\n }, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n reject(promise, val);\n });\n\n return true;\n }\n }\n } catch (error) {\n if (resolved) { return true; }\n reject(promise, error);\n return true;\n }\n\n return false;\n}\n\nfunction resolve(promise, value) {\n if (promise === value) {\n fulfill(promise, value);\n } else if (!handleThenable(promise, value)) {\n fulfill(promise, value);\n }\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = value;\n\n config.async(publishFulfillment, promise);\n}\n\nfunction reject(promise, reason) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = reason;\n\n config.async(publishRejection, promise);\n}\n\nfunction publishFulfillment(promise) {\n publish(promise, promise._state = FULFILLED);\n}\n\nfunction publishRejection(promise) {\n publish(promise, promise._state = REJECTED);\n}\n\nexports.Promise = Promise;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/promise.js\n ** module id = 14\n ** module chunks = 0\n **/","\"use strict\";\n/*global self*/\nvar RSVPPromise = require(\"./promise\").Promise;\nvar isFunction = require(\"./utils\").isFunction;\n\nfunction polyfill() {\n var local;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof window !== 'undefined' && window.document) {\n local = window;\n } else {\n local = self;\n }\n\n var es6PromiseSupport = \n \"Promise\" in local &&\n // Some of these methods are missing from\n // Firefox/Chrome experimental implementations\n \"resolve\" in local.Promise &&\n \"reject\" in local.Promise &&\n \"all\" in local.Promise &&\n \"race\" in local.Promise &&\n // Older version of the spec had a resolver object\n // as the arg rather than a function\n (function() {\n var resolve;\n new local.Promise(function(r) { resolve = r; });\n return isFunction(resolve);\n }());\n\n if (!es6PromiseSupport) {\n local.Promise = RSVPPromise;\n }\n}\n\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/polyfill.js\n ** module id = 15\n ** module chunks = 0\n **/","\"use strict\";\nvar config = {\n instrument: false\n};\n\nfunction configure(name, value) {\n if (arguments.length === 2) {\n config[name] = value;\n } else {\n return config[name];\n }\n}\n\nexports.config = config;\nexports.configure = configure;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/config.js\n ** module id = 16\n ** module chunks = 0\n **/","\"use strict\";\nfunction objectOrFunction(x) {\n return isFunction(x) || (typeof x === \"object\" && x !== null);\n}\n\nfunction isFunction(x) {\n return typeof x === \"function\";\n}\n\nfunction isArray(x) {\n return Object.prototype.toString.call(x) === \"[object Array]\";\n}\n\n// Date.now is not available in browsers < IE9\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\nvar now = Date.now || function() { return new Date().getTime(); };\n\n\nexports.objectOrFunction = objectOrFunction;\nexports.isFunction = isFunction;\nexports.isArray = isArray;\nexports.now = now;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/utils.js\n ** module id = 17\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\n\nvar isArray = require(\"./utils\").isArray;\nvar isFunction = require(\"./utils\").isFunction;\n\n/**\n Returns a promise that is fulfilled when all the given promises have been\n fulfilled, or rejected if any of them become rejected. The return promise\n is fulfilled with an array that gives all the values in the order they were\n passed in the `promises` array argument.\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.resolve(2);\n var promise3 = RSVP.resolve(3);\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `RSVP.all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.reject(new Error(\"2\"));\n var promise3 = RSVP.reject(new Error(\"3\"));\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @for RSVP\n @param {Array} promises\n @param {String} label\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n*/\nfunction all(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to all.');\n }\n\n return new Promise(function(resolve, reject) {\n var results = [], remaining = promises.length,\n promise;\n\n if (remaining === 0) {\n resolve([]);\n }\n\n function resolver(index) {\n return function(value) {\n resolveAll(index, value);\n };\n }\n\n function resolveAll(index, value) {\n results[index] = value;\n if (--remaining === 0) {\n resolve(results);\n }\n }\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && isFunction(promise.then)) {\n promise.then(resolver(i), reject);\n } else {\n resolveAll(i, promise);\n }\n }\n });\n}\n\nexports.all = all;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/all.js\n ** module id = 18\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\nvar isArray = require(\"./utils\").isArray;\n\n/**\n `RSVP.race` allows you to watch a series of promises and act as soon as the\n first promise given to the `promises` argument fulfills or rejects.\n\n Example:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 2\");\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // result === \"promise 2\" because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `RSVP.race` is deterministic in that only the state of the first completed\n promise matters. For example, even if other promises given to the `promises`\n array argument are resolved, but the first completed promise has become\n rejected before the other promises became fulfilled, the returned promise\n will become rejected:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error(\"promise 2\"));\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // Code here never runs because there are rejected promises!\n }, function(reason){\n // reason.message === \"promise2\" because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n @method race\n @for RSVP\n @param {Array} promises array of promises to observe\n @param {String} label optional string for describing the promise returned.\n Useful for tooling.\n @return {Promise} a promise that becomes fulfilled with the value the first\n completed promises is resolved with if the first completed promise was\n fulfilled, or rejected with the reason that the first completed promise\n was rejected with.\n*/\nfunction race(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to race.');\n }\n return new Promise(function(resolve, reject) {\n var results = [], promise;\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolve, reject);\n } else {\n resolve(promise);\n }\n }\n });\n}\n\nexports.race = race;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/race.js\n ** module id = 19\n ** module chunks = 0\n **/","\"use strict\";\nfunction resolve(value) {\n /*jshint validthis:true */\n if (value && typeof value === 'object' && value.constructor === this) {\n return value;\n }\n\n var Promise = this;\n\n return new Promise(function(resolve) {\n resolve(value);\n });\n}\n\nexports.resolve = resolve;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/resolve.js\n ** module id = 20\n ** module chunks = 0\n **/","\"use strict\";\n/**\n `RSVP.reject` returns a promise that will become rejected with the passed\n `reason`. `RSVP.reject` is essentially shorthand for the following:\n\n ```javascript\n var promise = new RSVP.Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n var promise = RSVP.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @for RSVP\n @param {Any} reason value that the returned promise will be rejected with.\n @param {String} label optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise that will become rejected with the given\n `reason`.\n*/\nfunction reject(reason) {\n /*jshint validthis:true */\n var Promise = this;\n\n return new Promise(function (resolve, reject) {\n reject(reason);\n });\n}\n\nexports.reject = reject;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/reject.js\n ** module id = 21\n ** module chunks = 0\n **/","\"use strict\";\nvar browserGlobal = (typeof window !== 'undefined') ? window : {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar local = (typeof global !== 'undefined') ? global : (this === undefined? window:this);\n\n// node\nfunction useNextTick() {\n return function() {\n process.nextTick(flush);\n };\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function() {\n node.data = (iterations = ++iterations % 2);\n };\n}\n\nfunction useSetTimeout() {\n return function() {\n local.setTimeout(flush, 1);\n };\n}\n\nvar queue = [];\nfunction flush() {\n for (var i = 0; i < queue.length; i++) {\n var tuple = queue[i];\n var callback = tuple[0], arg = tuple[1];\n callback(arg);\n }\n queue = [];\n}\n\nvar scheduleFlush;\n\n// Decide what async method to use to triggering processing of queued callbacks:\nif (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction asap(callback, arg) {\n var length = queue.push([callback, arg]);\n if (length === 1) {\n // If length is 1, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n scheduleFlush();\n }\n}\n\nexports.asap = asap;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/asap.js\n ** module id = 22\n ** module chunks = 0\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///axios.min.js","webpack:///webpack/bootstrap 61b08486c2a9d28097fa","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///external \"undefined\"","webpack:///./lib/defaults.js","webpack:///./lib/utils.js","webpack:///./lib/adapters/xhr.js","webpack:///./lib/helpers/spread.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./lib/helpers/buildUrl.js","webpack:///./lib/helpers/cookies.js","webpack:///./lib/helpers/parseHeaders.js","webpack:///./lib/helpers/transformData.js","webpack:///./lib/helpers/urlIsSameOrigin.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"],"names":["axios","modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","process","createShortMethods","utils","forEach","arguments","method","url","config","merge","createShortMethodsWithData","data","Promise","defaults","deprecatedMethod","instead","docs","console","warn","e","headers","transformRequest","transformResponse","withCredentials","promise","resolve","reject","window","success","fn","then","response","status","error","all","promises","spread","Error","code","JSON_START","JSON_END","PROTECTION_PREFIX","DEFAULT_CONTENT_TYPE","Content-Type","isArrayBuffer","isArrayBufferView","buffer","isObject","isFile","isBlob","isUndefined","JSON","stringify","replace","test","parse","common","Accept","patch","post","put","xsrfCookieName","xsrfHeaderName","isArray","val","toString","ArrayBuffer","isView","isString","isNumber","isDate","trim","str","obj","constructor","Array","callee","i","l","length","key","hasOwnProperty","result","Object","prototype","buildUrl","cookies","parseHeaders","transformData","urlIsSameOrigin","request","XMLHttpRequest","ActiveXObject","open","params","onreadystatechange","readyState","getAllResponseHeaders","responseText","xsrfValue","read","undefined","toLowerCase","setRequestHeader","responseType","DataView","send","callback","arr","apply","noop","nextTick","canSetImmediate","setImmediate","canPost","postMessage","addEventListener","f","queue","ev","source","stopPropagation","shift","push","setTimeout","title","browser","env","argv","on","addListener","once","off","removeListener","removeAllListeners","emit","binding","cwd","chdir","encode","encodeURIComponent","parts","v","toISOString","indexOf","join","write","name","value","expires","path","domain","secure","cookie","Date","toGMTString","document","match","RegExp","decodeURIComponent","remove","this","now","parsed","split","line","substr","fns","urlResolve","href","msie","urlParsingNode","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","navigator","userAgent","createElement","originUrl","location","requestUrl","polyfill","resolver","isFunction","TypeError","_subscribers","invokeResolver","resolvePromise","rejectPromise","reason","invokeCallback","settled","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","race","staticResolve","staticReject","asap","thenPromise","callbacks","catch","global","local","self","es6PromiseSupport","r","RSVPPromise","instrument","x","getTime","index","resolveAll","results","remaining","useNextTick","flush","useMutationObserver","iterations","observer","BrowserMutationObserver","node","createTextNode","observe","characterData","useSetTimeout","tuple","arg","scheduleFlush","browserGlobal","MutationObserver","WebKitMutationObserver"],"mappings":"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","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\t/* WEBPACK VAR INJECTION */(function(process) {var Promise = __webpack_require__(13).Promise;\n\tvar defaults = __webpack_require__(3);\n\tvar utils = __webpack_require__(4);\n\t\n\tvar axios = module.exports = function axios(config) {\n\t config = utils.merge({\n\t method: 'get',\n\t headers: {},\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 try {\n\t // For browsers use XHR adapter\n\t if (typeof window !== 'undefined') {\n\t __webpack_require__(5)(resolve, reject, config);\n\t }\n\t // For node use HTTP adapter\n\t else if (typeof process !== 'undefined') {\n\t __webpack_require__(2)(resolve, reject, config);\n\t }\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t\n\t function deprecatedMethod(method, instead, docs) {\n\t try {\n\t console.warn(\n\t 'DEPRECATED method `' + method + '`.' +\n\t (instead ? ' Use `' + instead + '` instead.' : '') +\n\t ' This method will be removed in a future release.');\n\t\n\t if (docs) {\n\t console.warn('For more information about usage see ' + docs);\n\t }\n\t } catch (e) {}\n\t }\n\t\n\t // Provide alias for success\n\t promise.success = function success(fn) {\n\t deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\t\n\t promise.then(function(response) {\n\t fn(response.data, response.status, response.headers, response.config);\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 deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\t\n\t promise.then(null, function(response) {\n\t fn(response.data, response.status, response.headers, response.config);\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// Expose all/spread\n\taxios.all = function (promises) {\n\t return Promise.all(promises);\n\t};\n\taxios.spread = __webpack_require__(6);\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\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tif(typeof undefined === 'undefined') {var e = new Error(\"Cannot find module \\\"undefined\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e;}\n\tmodule.exports = undefined;\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\n\t\n\tvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\n\tvar JSON_END = /[\\}\\]]\\s*$/;\n\tvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\n\tvar DEFAULT_CONTENT_TYPE = {\n\t 'Content-Type': 'application/x-www-form-urlencoded'\n\t};\n\t\n\tmodule.exports = {\n\t transformRequest: [function (data, headers) {\n\t if (utils.isArrayBuffer(data)) {\n\t return data;\n\t }\n\t if (utils.isArrayBufferView(data)) {\n\t return data.buffer;\n\t }\n\t if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n\t // Set application/json if no Content-Type has been specified\n\t if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n\t headers['Content-Type'] = 'application/json;charset=utf-8';\n\t }\n\t return JSON.stringify(data);\n\t }\n\t return data;\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(DEFAULT_CONTENT_TYPE),\n\t post: utils.merge(DEFAULT_CONTENT_TYPE),\n\t put: utils.merge(DEFAULT_CONTENT_TYPE)\n\t },\n\t\n\t xsrfCookieName: 'XSRF-TOKEN',\n\t xsrfHeaderName: 'X-XSRF-TOKEN'\n\t};\n\n/***/ },\n/* 4 */\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 an ArrayBuffer\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n\t */\n\tfunction isArrayBuffer(val) {\n\t return toString.call(val) === '[object ArrayBuffer]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a view on an ArrayBuffer\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n\t */\n\tfunction isArrayBufferView(val) {\n\t if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n\t return ArrayBuffer.isView(val);\n\t } else {\n\t return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n\t }\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 undefined\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if the value is undefined, otherwise false\n\t */\n\tfunction isUndefined(val) {\n\t return typeof val === 'undefined';\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= 200 && request.status < 300\n\t ? resolve\n\t : reject)(response);\n\t\n\t // Clean up request\n\t request = null;\n\t }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n\t data = new DataView(data);\n\t }\n\t\n\t // Send the request\n\t request.send(data);\n\t};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * Syntactic sugar for invoking a function and expanding an array for arguments.\n\t *\n\t * Common use case would be to use `Function.prototype.apply`.\n\t *\n\t * ```js\n\t * function f(x, y, z) {}\n\t * var args = [1, 2, 3];\n\t * f.apply(null, args);\n\t * ```\n\t *\n\t * With `spread` this example can be re-written.\n\t *\n\t * ```js\n\t * spread(function(x, y, z) {})([1, 2, 3]);\n\t * ```\n\t *\n\t * @param {Function} callback\n\t * @returns {Function}\n\t */\n\tmodule.exports = function spread(callback) {\n\t return function (arr) {\n\t callback.apply(null, arr);\n\t };\n\t};\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// shim for using process in browser\n\t\n\tvar process = module.exports = {};\n\t\n\tprocess.nextTick = (function () {\n\t var canSetImmediate = typeof window !== 'undefined'\n\t && window.setImmediate;\n\t var canPost = typeof window !== 'undefined'\n\t && window.postMessage && window.addEventListener\n\t ;\n\t\n\t if (canSetImmediate) {\n\t return function (f) { return window.setImmediate(f) };\n\t }\n\t\n\t if (canPost) {\n\t var queue = [];\n\t window.addEventListener('message', function (ev) {\n\t var source = ev.source;\n\t if ((source === window || source === null) && ev.data === 'process-tick') {\n\t ev.stopPropagation();\n\t if (queue.length > 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/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 12 */\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__(4);\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/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar Promise = __webpack_require__(14).Promise;\n\tvar polyfill = __webpack_require__(15).polyfill;\n\texports.Promise = Promise;\n\texports.polyfill = polyfill;\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar config = __webpack_require__(16).config;\n\tvar configure = __webpack_require__(16).configure;\n\tvar objectOrFunction = __webpack_require__(17).objectOrFunction;\n\tvar isFunction = __webpack_require__(17).isFunction;\n\tvar now = __webpack_require__(17).now;\n\tvar all = __webpack_require__(18).all;\n\tvar race = __webpack_require__(19).race;\n\tvar staticResolve = __webpack_require__(20).resolve;\n\tvar staticReject = __webpack_require__(21).reject;\n\tvar asap = __webpack_require__(22).asap;\n\t\n\tvar counter = 0;\n\t\n\tconfig.async = asap; // default async is asap;\n\t\n\tfunction Promise(resolver) {\n\t if (!isFunction(resolver)) {\n\t throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n\t }\n\t\n\t if (!(this instanceof Promise)) {\n\t throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n\t }\n\t\n\t this._subscribers = [];\n\t\n\t invokeResolver(resolver, this);\n\t}\n\t\n\tfunction invokeResolver(resolver, promise) {\n\t function resolvePromise(value) {\n\t resolve(promise, value);\n\t }\n\t\n\t function rejectPromise(reason) {\n\t reject(promise, reason);\n\t }\n\t\n\t try {\n\t resolver(resolvePromise, rejectPromise);\n\t } catch(e) {\n\t rejectPromise(e);\n\t }\n\t}\n\t\n\tfunction invokeCallback(settled, promise, callback, detail) {\n\t var hasCallback = isFunction(callback),\n\t value, error, succeeded, failed;\n\t\n\t if (hasCallback) {\n\t try {\n\t value = callback(detail);\n\t succeeded = true;\n\t } catch(e) {\n\t failed = true;\n\t error = e;\n\t }\n\t } else {\n\t value = detail;\n\t succeeded = true;\n\t }\n\t\n\t if (handleThenable(promise, value)) {\n\t return;\n\t } else if (hasCallback && succeeded) {\n\t resolve(promise, value);\n\t } else if (failed) {\n\t reject(promise, error);\n\t } else if (settled === FULFILLED) {\n\t resolve(promise, value);\n\t } else if (settled === REJECTED) {\n\t reject(promise, value);\n\t }\n\t}\n\t\n\tvar PENDING = void 0;\n\tvar SEALED = 0;\n\tvar FULFILLED = 1;\n\tvar REJECTED = 2;\n\t\n\tfunction subscribe(parent, child, onFulfillment, onRejection) {\n\t var subscribers = parent._subscribers;\n\t var length = subscribers.length;\n\t\n\t subscribers[length] = child;\n\t subscribers[length + FULFILLED] = onFulfillment;\n\t subscribers[length + REJECTED] = onRejection;\n\t}\n\t\n\tfunction publish(promise, settled) {\n\t var child, callback, subscribers = promise._subscribers, detail = promise._detail;\n\t\n\t for (var i = 0; i < subscribers.length; i += 3) {\n\t child = subscribers[i];\n\t callback = subscribers[i + settled];\n\t\n\t invokeCallback(settled, child, callback, detail);\n\t }\n\t\n\t promise._subscribers = null;\n\t}\n\t\n\tPromise.prototype = {\n\t constructor: Promise,\n\t\n\t _state: undefined,\n\t _detail: undefined,\n\t _subscribers: undefined,\n\t\n\t then: function(onFulfillment, onRejection) {\n\t var promise = this;\n\t\n\t var thenPromise = new this.constructor(function() {});\n\t\n\t if (this._state) {\n\t var callbacks = arguments;\n\t config.async(function invokePromiseCallback() {\n\t invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail);\n\t });\n\t } else {\n\t subscribe(this, thenPromise, onFulfillment, onRejection);\n\t }\n\t\n\t return thenPromise;\n\t },\n\t\n\t 'catch': function(onRejection) {\n\t return this.then(null, onRejection);\n\t }\n\t};\n\t\n\tPromise.all = all;\n\tPromise.race = race;\n\tPromise.resolve = staticResolve;\n\tPromise.reject = staticReject;\n\t\n\tfunction handleThenable(promise, value) {\n\t var then = null,\n\t resolved;\n\t\n\t try {\n\t if (promise === value) {\n\t throw new TypeError(\"A promises callback cannot return that same promise.\");\n\t }\n\t\n\t if (objectOrFunction(value)) {\n\t then = value.then;\n\t\n\t if (isFunction(then)) {\n\t then.call(value, function(val) {\n\t if (resolved) { return true; }\n\t resolved = true;\n\t\n\t if (value !== val) {\n\t resolve(promise, val);\n\t } else {\n\t fulfill(promise, val);\n\t }\n\t }, function(val) {\n\t if (resolved) { return true; }\n\t resolved = true;\n\t\n\t reject(promise, val);\n\t });\n\t\n\t return true;\n\t }\n\t }\n\t } catch (error) {\n\t if (resolved) { return true; }\n\t reject(promise, error);\n\t return true;\n\t }\n\t\n\t return false;\n\t}\n\t\n\tfunction resolve(promise, value) {\n\t if (promise === value) {\n\t fulfill(promise, value);\n\t } else if (!handleThenable(promise, value)) {\n\t fulfill(promise, value);\n\t }\n\t}\n\t\n\tfunction fulfill(promise, value) {\n\t if (promise._state !== PENDING) { return; }\n\t promise._state = SEALED;\n\t promise._detail = value;\n\t\n\t config.async(publishFulfillment, promise);\n\t}\n\t\n\tfunction reject(promise, reason) {\n\t if (promise._state !== PENDING) { return; }\n\t promise._state = SEALED;\n\t promise._detail = reason;\n\t\n\t config.async(publishRejection, promise);\n\t}\n\t\n\tfunction publishFulfillment(promise) {\n\t publish(promise, promise._state = FULFILLED);\n\t}\n\t\n\tfunction publishRejection(promise) {\n\t publish(promise, promise._state = REJECTED);\n\t}\n\t\n\texports.Promise = Promise;\n\n/***/ },\n/* 15 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {\"use strict\";\n\t/*global self*/\n\tvar RSVPPromise = __webpack_require__(14).Promise;\n\tvar isFunction = __webpack_require__(17).isFunction;\n\t\n\tfunction polyfill() {\n\t var local;\n\t\n\t if (typeof global !== 'undefined') {\n\t local = global;\n\t } else if (typeof window !== 'undefined' && window.document) {\n\t local = window;\n\t } else {\n\t local = self;\n\t }\n\t\n\t var es6PromiseSupport = \n\t \"Promise\" in local &&\n\t // Some of these methods are missing from\n\t // Firefox/Chrome experimental implementations\n\t \"resolve\" in local.Promise &&\n\t \"reject\" in local.Promise &&\n\t \"all\" in local.Promise &&\n\t \"race\" in local.Promise &&\n\t // Older version of the spec had a resolver object\n\t // as the arg rather than a function\n\t (function() {\n\t var resolve;\n\t new local.Promise(function(r) { resolve = r; });\n\t return isFunction(resolve);\n\t }());\n\t\n\t if (!es6PromiseSupport) {\n\t local.Promise = RSVPPromise;\n\t }\n\t}\n\t\n\texports.polyfill = polyfill;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar config = {\n\t instrument: false\n\t};\n\t\n\tfunction configure(name, value) {\n\t if (arguments.length === 2) {\n\t config[name] = value;\n\t } else {\n\t return config[name];\n\t }\n\t}\n\t\n\texports.config = config;\n\texports.configure = configure;\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tfunction objectOrFunction(x) {\n\t return isFunction(x) || (typeof x === \"object\" && x !== null);\n\t}\n\t\n\tfunction isFunction(x) {\n\t return typeof x === \"function\";\n\t}\n\t\n\tfunction isArray(x) {\n\t return Object.prototype.toString.call(x) === \"[object Array]\";\n\t}\n\t\n\t// Date.now is not available in browsers < IE9\n\t// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\n\tvar now = Date.now || function() { return new Date().getTime(); };\n\t\n\t\n\texports.objectOrFunction = objectOrFunction;\n\texports.isFunction = isFunction;\n\texports.isArray = isArray;\n\texports.now = now;\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t/* global toString */\n\t\n\tvar isArray = __webpack_require__(17).isArray;\n\tvar isFunction = __webpack_require__(17).isFunction;\n\t\n\t/**\n\t Returns a promise that is fulfilled when all the given promises have been\n\t fulfilled, or rejected if any of them become rejected. The return promise\n\t is fulfilled with an array that gives all the values in the order they were\n\t passed in the `promises` array argument.\n\t\n\t Example:\n\t\n\t ```javascript\n\t var promise1 = RSVP.resolve(1);\n\t var promise2 = RSVP.resolve(2);\n\t var promise3 = RSVP.resolve(3);\n\t var promises = [ promise1, promise2, promise3 ];\n\t\n\t RSVP.all(promises).then(function(array){\n\t // The array here would be [ 1, 2, 3 ];\n\t });\n\t ```\n\t\n\t If any of the `promises` given to `RSVP.all` are rejected, the first promise\n\t that is rejected will be given as an argument to the returned promises's\n\t rejection handler. For example:\n\t\n\t Example:\n\t\n\t ```javascript\n\t var promise1 = RSVP.resolve(1);\n\t var promise2 = RSVP.reject(new Error(\"2\"));\n\t var promise3 = RSVP.reject(new Error(\"3\"));\n\t var promises = [ promise1, promise2, promise3 ];\n\t\n\t RSVP.all(promises).then(function(array){\n\t // Code here never runs because there are rejected promises!\n\t }, function(error) {\n\t // error.message === \"2\"\n\t });\n\t ```\n\t\n\t @method all\n\t @for RSVP\n\t @param {Array} promises\n\t @param {String} label\n\t @return {Promise} promise that is fulfilled when all `promises` have been\n\t fulfilled, or rejected if any of them become rejected.\n\t*/\n\tfunction all(promises) {\n\t /*jshint validthis:true */\n\t var Promise = this;\n\t\n\t if (!isArray(promises)) {\n\t throw new TypeError('You must pass an array to all.');\n\t }\n\t\n\t return new Promise(function(resolve, reject) {\n\t var results = [], remaining = promises.length,\n\t promise;\n\t\n\t if (remaining === 0) {\n\t resolve([]);\n\t }\n\t\n\t function resolver(index) {\n\t return function(value) {\n\t resolveAll(index, value);\n\t };\n\t }\n\t\n\t function resolveAll(index, value) {\n\t results[index] = value;\n\t if (--remaining === 0) {\n\t resolve(results);\n\t }\n\t }\n\t\n\t for (var i = 0; i < promises.length; i++) {\n\t promise = promises[i];\n\t\n\t if (promise && isFunction(promise.then)) {\n\t promise.then(resolver(i), reject);\n\t } else {\n\t resolveAll(i, promise);\n\t }\n\t }\n\t });\n\t}\n\t\n\texports.all = all;\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t/* global toString */\n\tvar isArray = __webpack_require__(17).isArray;\n\t\n\t/**\n\t `RSVP.race` allows you to watch a series of promises and act as soon as the\n\t first promise given to the `promises` argument fulfills or rejects.\n\t\n\t Example:\n\t\n\t ```javascript\n\t var promise1 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t resolve(\"promise 1\");\n\t }, 200);\n\t });\n\t\n\t var promise2 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t resolve(\"promise 2\");\n\t }, 100);\n\t });\n\t\n\t RSVP.race([promise1, promise2]).then(function(result){\n\t // result === \"promise 2\" because it was resolved before promise1\n\t // was resolved.\n\t });\n\t ```\n\t\n\t `RSVP.race` is deterministic in that only the state of the first completed\n\t promise matters. For example, even if other promises given to the `promises`\n\t array argument are resolved, but the first completed promise has become\n\t rejected before the other promises became fulfilled, the returned promise\n\t will become rejected:\n\t\n\t ```javascript\n\t var promise1 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t resolve(\"promise 1\");\n\t }, 200);\n\t });\n\t\n\t var promise2 = new RSVP.Promise(function(resolve, reject){\n\t setTimeout(function(){\n\t reject(new Error(\"promise 2\"));\n\t }, 100);\n\t });\n\t\n\t RSVP.race([promise1, promise2]).then(function(result){\n\t // Code here never runs because there are rejected promises!\n\t }, function(reason){\n\t // reason.message === \"promise2\" because promise 2 became rejected before\n\t // promise 1 became fulfilled\n\t });\n\t ```\n\t\n\t @method race\n\t @for RSVP\n\t @param {Array} promises array of promises to observe\n\t @param {String} label optional string for describing the promise returned.\n\t Useful for tooling.\n\t @return {Promise} a promise that becomes fulfilled with the value the first\n\t completed promises is resolved with if the first completed promise was\n\t fulfilled, or rejected with the reason that the first completed promise\n\t was rejected with.\n\t*/\n\tfunction race(promises) {\n\t /*jshint validthis:true */\n\t var Promise = this;\n\t\n\t if (!isArray(promises)) {\n\t throw new TypeError('You must pass an array to race.');\n\t }\n\t return new Promise(function(resolve, reject) {\n\t var results = [], promise;\n\t\n\t for (var i = 0; i < promises.length; i++) {\n\t promise = promises[i];\n\t\n\t if (promise && typeof promise.then === 'function') {\n\t promise.then(resolve, reject);\n\t } else {\n\t resolve(promise);\n\t }\n\t }\n\t });\n\t}\n\t\n\texports.race = race;\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tfunction resolve(value) {\n\t /*jshint validthis:true */\n\t if (value && typeof value === 'object' && value.constructor === this) {\n\t return value;\n\t }\n\t\n\t var Promise = this;\n\t\n\t return new Promise(function(resolve) {\n\t resolve(value);\n\t });\n\t}\n\t\n\texports.resolve = resolve;\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t/**\n\t `RSVP.reject` returns a promise that will become rejected with the passed\n\t `reason`. `RSVP.reject` is essentially shorthand for the following:\n\t\n\t ```javascript\n\t var promise = new RSVP.Promise(function(resolve, reject){\n\t reject(new Error('WHOOPS'));\n\t });\n\t\n\t promise.then(function(value){\n\t // Code here doesn't run because the promise is rejected!\n\t }, function(reason){\n\t // reason.message === 'WHOOPS'\n\t });\n\t ```\n\t\n\t Instead of writing the above, your code now simply becomes the following:\n\t\n\t ```javascript\n\t var promise = RSVP.reject(new Error('WHOOPS'));\n\t\n\t promise.then(function(value){\n\t // Code here doesn't run because the promise is rejected!\n\t }, function(reason){\n\t // reason.message === 'WHOOPS'\n\t });\n\t ```\n\t\n\t @method reject\n\t @for RSVP\n\t @param {Any} reason value that the returned promise will be rejected with.\n\t @param {String} label optional string for identifying the returned promise.\n\t Useful for tooling.\n\t @return {Promise} a promise that will become rejected with the given\n\t `reason`.\n\t*/\n\tfunction reject(reason) {\n\t /*jshint validthis:true */\n\t var Promise = this;\n\t\n\t return new Promise(function (resolve, reject) {\n\t reject(reason);\n\t });\n\t}\n\t\n\texports.reject = reject;\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global, process) {\"use strict\";\n\tvar browserGlobal = (typeof window !== 'undefined') ? window : {};\n\tvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\n\tvar local = (typeof global !== 'undefined') ? global : (this === undefined? window:this);\n\t\n\t// node\n\tfunction useNextTick() {\n\t return function() {\n\t process.nextTick(flush);\n\t };\n\t}\n\t\n\tfunction useMutationObserver() {\n\t var iterations = 0;\n\t var observer = new BrowserMutationObserver(flush);\n\t var node = document.createTextNode('');\n\t observer.observe(node, { characterData: true });\n\t\n\t return function() {\n\t node.data = (iterations = ++iterations % 2);\n\t };\n\t}\n\t\n\tfunction useSetTimeout() {\n\t return function() {\n\t local.setTimeout(flush, 1);\n\t };\n\t}\n\t\n\tvar queue = [];\n\tfunction flush() {\n\t for (var i = 0; i < queue.length; i++) {\n\t var tuple = queue[i];\n\t var callback = tuple[0], arg = tuple[1];\n\t callback(arg);\n\t }\n\t queue = [];\n\t}\n\t\n\tvar scheduleFlush;\n\t\n\t// Decide what async method to use to triggering processing of queued callbacks:\n\tif (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n\t scheduleFlush = useNextTick();\n\t} else if (BrowserMutationObserver) {\n\t scheduleFlush = useMutationObserver();\n\t} else {\n\t scheduleFlush = useSetTimeout();\n\t}\n\t\n\tfunction asap(callback, arg) {\n\t var length = queue.push([callback, arg]);\n\t if (length === 1) {\n\t // If length is 1, that means that we need to schedule an async flush.\n\t // If additional callbacks are queued before the queue is flushed, they\n\t // will be processed by this flush that we are scheduling.\n\t scheduleFlush();\n\t }\n\t}\n\t\n\texports.asap = asap;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(7)))\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 61b08486c2a9d28097fa\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 defaults = require('./defaults');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n headers: {},\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 try {\n // For browsers use XHR adapter\n if (typeof window !== 'undefined') {\n require('./adapters/xhr')(resolve, reject, config);\n }\n // For node use HTTP adapter\n else if (typeof process !== 'undefined') {\n require('./adapters/http')(resolve, reject, config);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n function deprecatedMethod(method, instead, docs) {\n try {\n console.warn(\n 'DEPRECATED method `' + method + '`.' +\n (instead ? ' Use `' + instead + '` instead.' : '') +\n ' This method will be removed in a future release.');\n\n if (docs) {\n console.warn('For more information about usage see ' + docs);\n }\n } catch (e) {}\n }\n\n // Provide alias for success\n promise.success = function success(fn) {\n deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(null, function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Expose all/spread\naxios.all = function (promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\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 **/","if(typeof undefined === 'undefined') {var e = new Error(\"Cannot find module \\\"undefined\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e;}\nmodule.exports = undefined;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"undefined\"\n ** module id = 2\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 DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nmodule.exports = {\n transformRequest: [function (data, headers) {\n if (utils.isArrayBuffer(data)) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n // Set application/json if no Content-Type has been specified\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = 'application/json;charset=utf-8';\n }\n return JSON.stringify(data);\n }\n return data;\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(DEFAULT_CONTENT_TYPE),\n post: utils.merge(DEFAULT_CONTENT_TYPE),\n put: utils.merge(DEFAULT_CONTENT_TYPE)\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 = 3\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 an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n return ArrayBuffer.isView(val);\n } else {\n return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\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 undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\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= 200 && request.status < 300\n ? resolve\n : reject)(response);\n\n // Clean up request\n request = null;\n }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n data = new DataView(data);\n }\n\n // Send the request\n request.send(data);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/adapters/xhr.js\n ** module id = 5\n ** module chunks = 0\n **/","/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function (arr) {\n callback.apply(null, arr);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/helpers/spread.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\n\nprocess.nextTick = (function () {\n var canSetImmediate = typeof window !== 'undefined'\n && window.setImmediate;\n var canPost = typeof window !== 'undefined'\n && window.postMessage && window.addEventListener\n ;\n\n if (canSetImmediate) {\n return function (f) { return window.setImmediate(f) };\n }\n\n if (canPost) {\n var queue = [];\n window.addEventListener('message', function (ev) {\n var source = ev.source;\n if ((source === window || source === null) && ev.data === 'process-tick') {\n ev.stopPropagation();\n if (queue.length > 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 = 7\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/helpers/buildUrl.js\n ** module id = 8\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/helpers/cookies.js\n ** module id = 9\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/helpers/parseHeaders.js\n ** module id = 10\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/helpers/transformData.js\n ** module id = 11\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/helpers/urlIsSameOrigin.js\n ** module id = 12\n ** module chunks = 0\n **/","\"use strict\";\nvar Promise = require(\"./promise/promise\").Promise;\nvar polyfill = require(\"./promise/polyfill\").polyfill;\nexports.Promise = Promise;\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/main.js\n ** module id = 13\n ** module chunks = 0\n **/","\"use strict\";\nvar config = require(\"./config\").config;\nvar configure = require(\"./config\").configure;\nvar objectOrFunction = require(\"./utils\").objectOrFunction;\nvar isFunction = require(\"./utils\").isFunction;\nvar now = require(\"./utils\").now;\nvar all = require(\"./all\").all;\nvar race = require(\"./race\").race;\nvar staticResolve = require(\"./resolve\").resolve;\nvar staticReject = require(\"./reject\").reject;\nvar asap = require(\"./asap\").asap;\n\nvar counter = 0;\n\nconfig.async = asap; // default async is asap;\n\nfunction Promise(resolver) {\n if (!isFunction(resolver)) {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n\n if (!(this instanceof Promise)) {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n }\n\n this._subscribers = [];\n\n invokeResolver(resolver, this);\n}\n\nfunction invokeResolver(resolver, promise) {\n function resolvePromise(value) {\n resolve(promise, value);\n }\n\n function rejectPromise(reason) {\n reject(promise, reason);\n }\n\n try {\n resolver(resolvePromise, rejectPromise);\n } catch(e) {\n rejectPromise(e);\n }\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value, error, succeeded, failed;\n\n if (hasCallback) {\n try {\n value = callback(detail);\n succeeded = true;\n } catch(e) {\n failed = true;\n error = e;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (handleThenable(promise, value)) {\n return;\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (failed) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n resolve(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n}\n\nvar PENDING = void 0;\nvar SEALED = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var subscribers = parent._subscribers;\n var length = subscribers.length;\n\n subscribers[length] = child;\n subscribers[length + FULFILLED] = onFulfillment;\n subscribers[length + REJECTED] = onRejection;\n}\n\nfunction publish(promise, settled) {\n var child, callback, subscribers = promise._subscribers, detail = promise._detail;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n invokeCallback(settled, child, callback, detail);\n }\n\n promise._subscribers = null;\n}\n\nPromise.prototype = {\n constructor: Promise,\n\n _state: undefined,\n _detail: undefined,\n _subscribers: undefined,\n\n then: function(onFulfillment, onRejection) {\n var promise = this;\n\n var thenPromise = new this.constructor(function() {});\n\n if (this._state) {\n var callbacks = arguments;\n config.async(function invokePromiseCallback() {\n invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail);\n });\n } else {\n subscribe(this, thenPromise, onFulfillment, onRejection);\n }\n\n return thenPromise;\n },\n\n 'catch': function(onRejection) {\n return this.then(null, onRejection);\n }\n};\n\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = staticResolve;\nPromise.reject = staticReject;\n\nfunction handleThenable(promise, value) {\n var then = null,\n resolved;\n\n try {\n if (promise === value) {\n throw new TypeError(\"A promises callback cannot return that same promise.\");\n }\n\n if (objectOrFunction(value)) {\n then = value.then;\n\n if (isFunction(then)) {\n then.call(value, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n if (value !== val) {\n resolve(promise, val);\n } else {\n fulfill(promise, val);\n }\n }, function(val) {\n if (resolved) { return true; }\n resolved = true;\n\n reject(promise, val);\n });\n\n return true;\n }\n }\n } catch (error) {\n if (resolved) { return true; }\n reject(promise, error);\n return true;\n }\n\n return false;\n}\n\nfunction resolve(promise, value) {\n if (promise === value) {\n fulfill(promise, value);\n } else if (!handleThenable(promise, value)) {\n fulfill(promise, value);\n }\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = value;\n\n config.async(publishFulfillment, promise);\n}\n\nfunction reject(promise, reason) {\n if (promise._state !== PENDING) { return; }\n promise._state = SEALED;\n promise._detail = reason;\n\n config.async(publishRejection, promise);\n}\n\nfunction publishFulfillment(promise) {\n publish(promise, promise._state = FULFILLED);\n}\n\nfunction publishRejection(promise) {\n publish(promise, promise._state = REJECTED);\n}\n\nexports.Promise = Promise;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/promise.js\n ** module id = 14\n ** module chunks = 0\n **/","\"use strict\";\n/*global self*/\nvar RSVPPromise = require(\"./promise\").Promise;\nvar isFunction = require(\"./utils\").isFunction;\n\nfunction polyfill() {\n var local;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof window !== 'undefined' && window.document) {\n local = window;\n } else {\n local = self;\n }\n\n var es6PromiseSupport = \n \"Promise\" in local &&\n // Some of these methods are missing from\n // Firefox/Chrome experimental implementations\n \"resolve\" in local.Promise &&\n \"reject\" in local.Promise &&\n \"all\" in local.Promise &&\n \"race\" in local.Promise &&\n // Older version of the spec had a resolver object\n // as the arg rather than a function\n (function() {\n var resolve;\n new local.Promise(function(r) { resolve = r; });\n return isFunction(resolve);\n }());\n\n if (!es6PromiseSupport) {\n local.Promise = RSVPPromise;\n }\n}\n\nexports.polyfill = polyfill;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/polyfill.js\n ** module id = 15\n ** module chunks = 0\n **/","\"use strict\";\nvar config = {\n instrument: false\n};\n\nfunction configure(name, value) {\n if (arguments.length === 2) {\n config[name] = value;\n } else {\n return config[name];\n }\n}\n\nexports.config = config;\nexports.configure = configure;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/config.js\n ** module id = 16\n ** module chunks = 0\n **/","\"use strict\";\nfunction objectOrFunction(x) {\n return isFunction(x) || (typeof x === \"object\" && x !== null);\n}\n\nfunction isFunction(x) {\n return typeof x === \"function\";\n}\n\nfunction isArray(x) {\n return Object.prototype.toString.call(x) === \"[object Array]\";\n}\n\n// Date.now is not available in browsers < IE9\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\nvar now = Date.now || function() { return new Date().getTime(); };\n\n\nexports.objectOrFunction = objectOrFunction;\nexports.isFunction = isFunction;\nexports.isArray = isArray;\nexports.now = now;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/utils.js\n ** module id = 17\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\n\nvar isArray = require(\"./utils\").isArray;\nvar isFunction = require(\"./utils\").isFunction;\n\n/**\n Returns a promise that is fulfilled when all the given promises have been\n fulfilled, or rejected if any of them become rejected. The return promise\n is fulfilled with an array that gives all the values in the order they were\n passed in the `promises` array argument.\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.resolve(2);\n var promise3 = RSVP.resolve(3);\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `RSVP.all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n var promise1 = RSVP.resolve(1);\n var promise2 = RSVP.reject(new Error(\"2\"));\n var promise3 = RSVP.reject(new Error(\"3\"));\n var promises = [ promise1, promise2, promise3 ];\n\n RSVP.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @for RSVP\n @param {Array} promises\n @param {String} label\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n*/\nfunction all(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to all.');\n }\n\n return new Promise(function(resolve, reject) {\n var results = [], remaining = promises.length,\n promise;\n\n if (remaining === 0) {\n resolve([]);\n }\n\n function resolver(index) {\n return function(value) {\n resolveAll(index, value);\n };\n }\n\n function resolveAll(index, value) {\n results[index] = value;\n if (--remaining === 0) {\n resolve(results);\n }\n }\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && isFunction(promise.then)) {\n promise.then(resolver(i), reject);\n } else {\n resolveAll(i, promise);\n }\n }\n });\n}\n\nexports.all = all;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/all.js\n ** module id = 18\n ** module chunks = 0\n **/","\"use strict\";\n/* global toString */\nvar isArray = require(\"./utils\").isArray;\n\n/**\n `RSVP.race` allows you to watch a series of promises and act as soon as the\n first promise given to the `promises` argument fulfills or rejects.\n\n Example:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 2\");\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // result === \"promise 2\" because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `RSVP.race` is deterministic in that only the state of the first completed\n promise matters. For example, even if other promises given to the `promises`\n array argument are resolved, but the first completed promise has become\n rejected before the other promises became fulfilled, the returned promise\n will become rejected:\n\n ```javascript\n var promise1 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n resolve(\"promise 1\");\n }, 200);\n });\n\n var promise2 = new RSVP.Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error(\"promise 2\"));\n }, 100);\n });\n\n RSVP.race([promise1, promise2]).then(function(result){\n // Code here never runs because there are rejected promises!\n }, function(reason){\n // reason.message === \"promise2\" because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n @method race\n @for RSVP\n @param {Array} promises array of promises to observe\n @param {String} label optional string for describing the promise returned.\n Useful for tooling.\n @return {Promise} a promise that becomes fulfilled with the value the first\n completed promises is resolved with if the first completed promise was\n fulfilled, or rejected with the reason that the first completed promise\n was rejected with.\n*/\nfunction race(promises) {\n /*jshint validthis:true */\n var Promise = this;\n\n if (!isArray(promises)) {\n throw new TypeError('You must pass an array to race.');\n }\n return new Promise(function(resolve, reject) {\n var results = [], promise;\n\n for (var i = 0; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolve, reject);\n } else {\n resolve(promise);\n }\n }\n });\n}\n\nexports.race = race;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/race.js\n ** module id = 19\n ** module chunks = 0\n **/","\"use strict\";\nfunction resolve(value) {\n /*jshint validthis:true */\n if (value && typeof value === 'object' && value.constructor === this) {\n return value;\n }\n\n var Promise = this;\n\n return new Promise(function(resolve) {\n resolve(value);\n });\n}\n\nexports.resolve = resolve;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/resolve.js\n ** module id = 20\n ** module chunks = 0\n **/","\"use strict\";\n/**\n `RSVP.reject` returns a promise that will become rejected with the passed\n `reason`. `RSVP.reject` is essentially shorthand for the following:\n\n ```javascript\n var promise = new RSVP.Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n var promise = RSVP.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @for RSVP\n @param {Any} reason value that the returned promise will be rejected with.\n @param {String} label optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise that will become rejected with the given\n `reason`.\n*/\nfunction reject(reason) {\n /*jshint validthis:true */\n var Promise = this;\n\n return new Promise(function (resolve, reject) {\n reject(reason);\n });\n}\n\nexports.reject = reject;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/reject.js\n ** module id = 21\n ** module chunks = 0\n **/","\"use strict\";\nvar browserGlobal = (typeof window !== 'undefined') ? window : {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar local = (typeof global !== 'undefined') ? global : (this === undefined? window:this);\n\n// node\nfunction useNextTick() {\n return function() {\n process.nextTick(flush);\n };\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function() {\n node.data = (iterations = ++iterations % 2);\n };\n}\n\nfunction useSetTimeout() {\n return function() {\n local.setTimeout(flush, 1);\n };\n}\n\nvar queue = [];\nfunction flush() {\n for (var i = 0; i < queue.length; i++) {\n var tuple = queue[i];\n var callback = tuple[0], arg = tuple[1];\n callback(arg);\n }\n queue = [];\n}\n\nvar scheduleFlush;\n\n// Decide what async method to use to triggering processing of queued callbacks:\nif (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction asap(callback, arg) {\n var length = queue.push([callback, arg]);\n if (length === 1) {\n // If length is 1, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n scheduleFlush();\n }\n}\n\nexports.asap = asap;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/es6-promise/dist/commonjs/promise/asap.js\n ** module id = 22\n ** module chunks = 0\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/axios.standalone.js b/dist/axios.standalone.js new file mode 100644 index 0000000..ed7f5c3 --- /dev/null +++ b/dist/axios.standalone.js @@ -0,0 +1,838 @@ +var axios = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; +/******/ +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ exports: {}, +/******/ id: moduleId, +/******/ loaded: false +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.loaded = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ function(module, exports, __webpack_require__) { + + module.exports = __webpack_require__(1); + +/***/ }, +/* 1 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {var Promise = __webpack_require__(2).Promise; + var defaults = __webpack_require__(3); + var utils = __webpack_require__(4); + + var axios = module.exports = function axios(config) { + config = utils.merge({ + method: 'get', + headers: {}, + transformRequest: defaults.transformRequest, + transformResponse: defaults.transformResponse + }, config); + + // Don't allow overriding defaults.withCredentials + config.withCredentials = config.withCredentials || defaults.withCredentials; + + var promise = new Promise(function (resolve, reject) { + try { + // For browsers use XHR adapter + if (typeof window !== 'undefined') { + __webpack_require__(5)(resolve, reject, config); + } + // For node use HTTP adapter + else if (typeof process !== 'undefined') { + __webpack_require__(2)(resolve, reject, config); + } + } catch (e) { + reject(e); + } + }); + + function deprecatedMethod(method, instead, docs) { + try { + console.warn( + 'DEPRECATED method `' + method + '`.' + + (instead ? ' Use `' + instead + '` instead.' : '') + + ' This method will be removed in a future release.'); + + if (docs) { + console.warn('For more information about usage see ' + docs); + } + } catch (e) {} + } + + // Provide alias for success + promise.success = function success(fn) { + deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api'); + + promise.then(function(response) { + fn(response.data, response.status, response.headers, response.config); + }); + return promise; + }; + + // Provide alias for error + promise.error = function error(fn) { + deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api'); + + promise.then(null, function(response) { + fn(response.data, response.status, response.headers, response.config); + }); + return promise; + }; + + return promise; + }; + + // Expose defaults + axios.defaults = defaults; + + // Expose all/spread + axios.all = function (promises) { + return Promise.all(promises); + }; + axios.spread = __webpack_require__(6); + + // Provide aliases for supported request methods + createShortMethods('delete', 'get', 'head'); + createShortMethodsWithData('post', 'put', 'patch'); + + function createShortMethods() { + utils.forEach(arguments, function (method) { + axios[method] = function (url, config) { + return axios(utils.merge(config || {}, { + method: method, + url: url + })); + }; + }); + } + + function createShortMethodsWithData() { + utils.forEach(arguments, function (method) { + axios[method] = function (url, data, config) { + return axios(utils.merge(config || {}, { + method: method, + url: url, + data: data + })); + }; + }); + } + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7))) + +/***/ }, +/* 2 */ +/***/ function(module, exports, __webpack_require__) { + + module.exports = undefined; + +/***/ }, +/* 3 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + var utils = __webpack_require__(4); + + var JSON_START = /^\s*(\[|\{[^\{])/; + var JSON_END = /[\}\]]\s*$/; + var PROTECTION_PREFIX = /^\)\]\}',?\n/; + var DEFAULT_CONTENT_TYPE = { + 'Content-Type': 'application/x-www-form-urlencoded' + }; + + module.exports = { + transformRequest: [function (data, headers) { + if (utils.isArrayBuffer(data)) { + return data; + } + if (utils.isArrayBufferView(data)) { + return data.buffer; + } + if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) { + // Set application/json if no Content-Type has been specified + if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { + headers['Content-Type'] = 'application/json;charset=utf-8'; + } + return JSON.stringify(data); + } + return data; + }], + + transformResponse: [function (data) { + if (typeof data === 'string') { + data = data.replace(PROTECTION_PREFIX, ''); + if (JSON_START.test(data) && JSON_END.test(data)) { + data = JSON.parse(data); + } + } + return data; + }], + + headers: { + common: { + 'Accept': 'application/json, text/plain, */*' + }, + patch: utils.merge(DEFAULT_CONTENT_TYPE), + post: utils.merge(DEFAULT_CONTENT_TYPE), + put: utils.merge(DEFAULT_CONTENT_TYPE) + }, + + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN' + }; + +/***/ }, +/* 4 */ +/***/ function(module, exports, __webpack_require__) { + + // utils is a library of generic helper functions non-specific to axios + + var toString = Object.prototype.toString; + + /** + * Determine if a value is an Array + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an Array, otherwise false + */ + function isArray(val) { + return toString.call(val) === '[object Array]'; + } + + /** + * Determine if a value is an ArrayBuffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an ArrayBuffer, otherwise false + */ + function isArrayBuffer(val) { + return toString.call(val) === '[object ArrayBuffer]'; + } + + /** + * Determine if a value is a view on an ArrayBuffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false + */ + function isArrayBufferView(val) { + if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { + return ArrayBuffer.isView(val); + } else { + return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); + } + } + + /** + * Determine if a value is a String + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a String, otherwise false + */ + function isString(val) { + return typeof val === 'string'; + } + + /** + * Determine if a value is a Number + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Number, otherwise false + */ + function isNumber(val) { + return typeof val === 'number'; + } + + /** + * Determine if a value is undefined + * + * @param {Object} val The value to test + * @returns {boolean} True if the value is undefined, otherwise false + */ + function isUndefined(val) { + return typeof val === 'undefined'; + } + + /** + * Determine if a value is an Object + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an Object, otherwise false + */ + function isObject(val) { + return val !== null && typeof val === 'object'; + } + + /** + * Determine if a value is a Date + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Date, otherwise false + */ + function isDate(val) { + return toString.call(val) === '[object Date]'; + } + + /** + * Determine if a value is a File + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a File, otherwise false + */ + function isFile(val) { + return toString.call(val) === '[object File]'; + } + + /** + * Determine if a value is a Blob + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Blob, otherwise false + */ + function isBlob(val) { + return toString.call(val) === '[object Blob]'; + } + + /** + * Trim excess whitespace off the beginning and end of a string + * + * @param {String} str The String to trim + * @returns {String} The String freed of excess whitespace + */ + function trim(str) { + return str.replace(/^\s*/, '').replace(/\s*$/, ''); + } + + /** + * Iterate over an Array or an Object invoking a function for each item. + * + * If `obj` is an Array or arguments callback will be called passing + * the value, index, and complete array for each item. + * + * If 'obj' is an Object callback will be called passing + * the value, key, and complete object for each property. + * + * @param {Object|Array} obj The object to iterate + * @param {Function} fn The callback to invoke for each item + */ + function forEach(obj, fn) { + // Don't bother if no value provided + if (obj === null || typeof obj === 'undefined') { + return; + } + + // Check if obj is array-like + var isArray = obj.constructor === Array || typeof obj.callee === 'function'; + + // Force an array if not already something iterable + if (typeof obj !== 'object' && !isArray) { + obj = [obj]; + } + + // Iterate over array values + if (isArray) { + for (var i=0, l=obj.length; i= 200 && request.status < 300 + ? resolve + : reject)(response); + + // Clean up request + request = null; + } + }; + + // Add xsrf header + var xsrfValue = urlIsSameOrigin(config.url) + ? cookies.read(config.xsrfCookieName || defaults.xsrfCookieName) + : undefined; + if (xsrfValue) { + headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue; + } + + // Add headers to the request + utils.forEach(headers, function (val, key) { + // Remove Content-Type if data is undefined + if (!data && key.toLowerCase() === 'content-type') { + delete headers[key]; + } + // Otherwise add header to the request + else { + request.setRequestHeader(key, val); + } + }); + + // Add withCredentials to request if needed + if (config.withCredentials) { + request.withCredentials = true; + } + + // Add responseType to request if needed + if (config.responseType) { + try { + request.responseType = config.responseType; + } catch (e) { + if (request.responseType !== 'json') { + throw e; + } + } + } + + if (utils.isArrayBuffer(data)) { + data = new DataView(data); + } + + // Send the request + request.send(data); + }; + +/***/ }, +/* 6 */ +/***/ function(module, exports, __webpack_require__) { + + /** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * @returns {Function} + */ + module.exports = function spread(callback) { + return function (arr) { + callback.apply(null, arr); + }; + }; + +/***/ }, +/* 7 */ +/***/ function(module, exports, __webpack_require__) { + + // shim for using process in browser + + var process = module.exports = {}; + + process.nextTick = (function () { + var canSetImmediate = typeof window !== 'undefined' + && window.setImmediate; + var canPost = typeof window !== 'undefined' + && window.postMessage && window.addEventListener + ; + + if (canSetImmediate) { + return function (f) { return window.setImmediate(f) }; + } + + if (canPost) { + var queue = []; + window.addEventListener('message', function (ev) { + var source = ev.source; + if ((source === window || source === null) && ev.data === 'process-tick') { + ev.stopPropagation(); + if (queue.length > 0) { + var fn = queue.shift(); + fn(); + } + } + }, true); + + return function nextTick(fn) { + queue.push(fn); + window.postMessage('process-tick', '*'); + }; + } + + return function nextTick(fn) { + setTimeout(fn, 0); + }; + })(); + + process.title = 'browser'; + process.browser = true; + process.env = {}; + process.argv = []; + + function noop() {} + + process.on = noop; + process.addListener = noop; + process.once = noop; + process.off = noop; + process.removeListener = noop; + process.removeAllListeners = noop; + process.emit = noop; + + process.binding = function (name) { + throw new Error('process.binding is not supported'); + } + + // TODO(shtylman) + process.cwd = function () { return '/' }; + process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); + }; + + +/***/ }, +/* 8 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + var utils = __webpack_require__(4); + + function encode(val) { + return encodeURIComponent(val). + replace(/%40/gi, '@'). + replace(/%3A/gi, ':'). + replace(/%24/g, '$'). + replace(/%2C/gi, ','). + replace(/%20/g, '+'); + } + + module.exports = function buildUrl(url, params) { + if (!params) { + return url; + } + + var parts = []; + + utils.forEach(params, function (val, key) { + if (val === null || typeof val === 'undefined') { + return; + } + if (!utils.isArray(val)) { + val = [val]; + } + + utils.forEach(val, function (v) { + if (utils.isDate(v)) { + v = v.toISOString(); + } + else if (utils.isObject(v)) { + v = JSON.stringify(v); + } + parts.push(encode(key) + '=' + encode(v)); + }); + }); + + if (parts.length > 0) { + url += (url.indexOf('?') === -1 ? '?' : '&') + parts.join('&'); + } + + return url; + }; + +/***/ }, +/* 9 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + var utils = __webpack_require__(4); + + module.exports = { + write: function write(name, value, expires, path, domain, secure) { + var cookie = []; + cookie.push(name + '=' + encodeURIComponent(value)); + + if (utils.isNumber(expires)) { + cookie.push('expires=' + new Date(expires).toGMTString()); + } + + if (utils.isString(path)) { + cookie.push('path=' + path); + } + + if (utils.isString(domain)) { + cookie.push('domain=' + domain); + } + + if (secure === true) { + cookie.push('secure'); + } + + document.cookie = cookie.join('; '); + }, + + read: function read(name) { + var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); + return (match ? decodeURIComponent(match[3]) : null); + }, + + remove: function remove(name) { + this.write(name, '', Date.now() - 86400000); + } + }; + +/***/ }, +/* 10 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + var utils = __webpack_require__(4); + + /** + * Parse headers into an object + * + * ``` + * Date: Wed, 27 Aug 2014 08:58:49 GMT + * Content-Type: application/json + * Connection: keep-alive + * Transfer-Encoding: chunked + * ``` + * + * @param {String} headers Headers needing to be parsed + * @returns {Object} Headers parsed into an object + */ + module.exports = function parseHeaders(headers) { + var parsed = {}, key, val, i; + + if (!headers) return parsed; + + utils.forEach(headers.split('\n'), function(line) { + i = line.indexOf(':'); + key = utils.trim(line.substr(0, i)).toLowerCase(); + val = utils.trim(line.substr(i + 1)); + + if (key) { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + } + }); + + return parsed; + }; + +/***/ }, +/* 11 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + var utils = __webpack_require__(4); + + /** + * Transform the data for a request or a response + * + * @param {Object|String} data The data to be transformed + * @param {Array} headers The headers for the request or response + * @param {Array|Function} fns A single function or Array of functions + * @returns {*} The resulting transformed data + */ + module.exports = function transformData(data, headers, fns) { + utils.forEach(fns, function (fn) { + data = fn(data, headers); + }); + + return data; + }; + +/***/ }, +/* 12 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + var msie = /(msie|trident)/i.test(navigator.userAgent); + var utils = __webpack_require__(4); + var urlParsingNode = document.createElement('a'); + var originUrl = urlResolve(window.location.href); + + /** + * Parse a URL to discover it's components + * + * @param {String} url The URL to be parsed + * @returns {Object} + */ + function urlResolve(url) { + var href = url; + + if (msie) { + // IE needs attribute set twice to normalize properties + urlParsingNode.setAttribute('href', href); + href = urlParsingNode.href; + } + + urlParsingNode.setAttribute('href', href); + + // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: (urlParsingNode.pathname.charAt(0) === '/') + ? urlParsingNode.pathname + : '/' + urlParsingNode.pathname + }; + } + + /** + * Determine if a URL shares the same origin as the current location + * + * @param {String} requestUrl The URL to test + * @returns {boolean} True if URL shares the same origin, otherwise false + */ + module.exports = function urlIsSameOrigin(requestUrl) { + var parsed = (utils.isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl; + return (parsed.protocol === originUrl.protocol && + parsed.host === originUrl.host); + }; + +/***/ } +/******/ ]) +//# sourceMappingURL=axios.standalone.map \ No newline at end of file diff --git a/dist/axios.standalone.map b/dist/axios.standalone.map new file mode 100644 index 0000000..067d741 --- /dev/null +++ b/dist/axios.standalone.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap d8251fb22df10945fb2e","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///external \"undefined\"","webpack:///./lib/defaults.js","webpack:///./lib/utils.js","webpack:///./lib/adapters/xhr.js","webpack:///./lib/helpers/spread.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./lib/helpers/buildUrl.js","webpack:///./lib/helpers/cookies.js","webpack:///./lib/helpers/parseHeaders.js","webpack:///./lib/helpers/transformData.js","webpack:///./lib/helpers/urlIsSameOrigin.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;;AAEA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;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;;;;;;;ACpGA,4B;;;;;;ACAA;;AAEA;;AAEA,6BAA4B,IAAI;AAChC,oBAAmB;AACnB,iCAAgC;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD;AACpD;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;;;;;;AClDA;;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;AACA,IAAG;AACH;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,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;AACA;AACA;AACA,G;;;;;;ACzMA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAAyC;AACzC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA,YAAW,SAAS;AACpB,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACxBA;;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;;;;;;;AC9DA;;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;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","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 d8251fb22df10945fb2e\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 defaults = require('./defaults');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n headers: {},\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 try {\n // For browsers use XHR adapter\n if (typeof window !== 'undefined') {\n require('./adapters/xhr')(resolve, reject, config);\n }\n // For node use HTTP adapter\n else if (typeof process !== 'undefined') {\n require('./adapters/http')(resolve, reject, config);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n function deprecatedMethod(method, instead, docs) {\n try {\n console.warn(\n 'DEPRECATED method `' + method + '`.' +\n (instead ? ' Use `' + instead + '` instead.' : '') +\n ' This method will be removed in a future release.');\n\n if (docs) {\n console.warn('For more information about usage see ' + docs);\n }\n } catch (e) {}\n }\n\n // Provide alias for success\n promise.success = function success(fn) {\n deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(null, function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Expose all/spread\naxios.all = function (promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\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 **/","module.exports = undefined;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"undefined\"\n ** module id = 2\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 DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nmodule.exports = {\n transformRequest: [function (data, headers) {\n if (utils.isArrayBuffer(data)) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n // Set application/json if no Content-Type has been specified\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = 'application/json;charset=utf-8';\n }\n return JSON.stringify(data);\n }\n return data;\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(DEFAULT_CONTENT_TYPE),\n post: utils.merge(DEFAULT_CONTENT_TYPE),\n put: utils.merge(DEFAULT_CONTENT_TYPE)\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 = 3\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 an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n return ArrayBuffer.isView(val);\n } else {\n return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\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 undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\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= 200 && request.status < 300\n ? resolve\n : reject)(response);\n\n // Clean up request\n request = null;\n }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n data = new DataView(data);\n }\n\n // Send the request\n request.send(data);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/adapters/xhr.js\n ** module id = 5\n ** module chunks = 0\n **/","/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function (arr) {\n callback.apply(null, arr);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/helpers/spread.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\n\nprocess.nextTick = (function () {\n var canSetImmediate = typeof window !== 'undefined'\n && window.setImmediate;\n var canPost = typeof window !== 'undefined'\n && window.postMessage && window.addEventListener\n ;\n\n if (canSetImmediate) {\n return function (f) { return window.setImmediate(f) };\n }\n\n if (canPost) {\n var queue = [];\n window.addEventListener('message', function (ev) {\n var source = ev.source;\n if ((source === window || source === null) && ev.data === 'process-tick') {\n ev.stopPropagation();\n if (queue.length > 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 = 7\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/helpers/buildUrl.js\n ** module id = 8\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/helpers/cookies.js\n ** module id = 9\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/helpers/parseHeaders.js\n ** module id = 10\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/helpers/transformData.js\n ** module id = 11\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/helpers/urlIsSameOrigin.js\n ** module id = 12\n ** module chunks = 0\n **/"],"sourceRoot":"","file":"axios.standalone.js"} \ No newline at end of file diff --git a/dist/axios.standalone.min.js b/dist/axios.standalone.min.js new file mode 100644 index 0000000..6c468d4 --- /dev/null +++ b/dist/axios.standalone.min.js @@ -0,0 +1,3 @@ +/* axios v0.4.0 | (c) 2014 by Matt Zabriskie */ +var axios=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){(function(t){function r(){a.forEach(arguments,function(e){u[e]=function(t,n){return u(a.merge(n||{},{method:e,url:t}))}})}function o(){a.forEach(arguments,function(e){u[e]=function(t,n,r){return u(a.merge(r||{},{method:e,url:t,data:n}))}})}var i=n(2).Promise,s=n(3),a=n(4),u=e.exports=function(e){function r(e,t,n){try{console.warn("DEPRECATED method `"+e+"`."+(t?" Use `"+t+"` instead.":"")+" This method will be removed in a future release."),n&&console.warn("For more information about usage see "+n)}catch(r){}}e=a.merge({method:"get",headers:{},transformRequest:s.transformRequest,transformResponse:s.transformResponse},e),e.withCredentials=e.withCredentials||s.withCredentials;var o=new i(function(r,o){try{"undefined"!=typeof window?n(5)(r,o,e):"undefined"!=typeof t&&n(2)(r,o,e)}catch(i){o(i)}});return o.success=function(e){return r("success","then","https://github.com/mzabriskie/axios/blob/master/README.md#response-api"),o.then(function(t){e(t.data,t.status,t.headers,t.config)}),o},o.error=function(e){return r("error","catch","https://github.com/mzabriskie/axios/blob/master/README.md#response-api"),o.then(null,function(t){e(t.data,t.status,t.headers,t.config)}),o},o};u.defaults=s,u.all=function(e){return i.all(e)},u.spread=n(6),r("delete","get","head"),o("post","put","patch")}).call(t,n(7))},function(e){e.exports=void 0},function(e,t,n){"use strict";var r=n(4),o=/^\s*(\[|\{[^\{])/,i=/[\}\]]\s*$/,s=/^\)\]\}',?\n/,a={"Content-Type":"application/x-www-form-urlencoded"};e.exports={transformRequest:[function(e,t){return r.isArrayBuffer(e)?e:r.isArrayBufferView(e)?e.buffer:!r.isObject(e)||r.isFile(e)||r.isBlob(e)?e:(!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]="application/json;charset=utf-8"),JSON.stringify(e))}],transformResponse:[function(e){return"string"==typeof e&&(e=e.replace(s,""),o.test(e)&&i.test(e)&&(e=JSON.parse(e))),e}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(a),post:r.merge(a),put:r.merge(a)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"}},function(e){function t(e){return"[object Array]"===h.call(e)}function n(e){return"[object ArrayBuffer]"===h.call(e)}function r(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function o(e){return"string"==typeof e}function i(e){return"number"==typeof e}function s(e){return"undefined"==typeof e}function a(e){return null!==e&&"object"==typeof e}function u(e){return"[object Date]"===h.call(e)}function c(e){return"[object File]"===h.call(e)}function f(e){return"[object Blob]"===h.call(e)}function p(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function l(e,t){if(null!==e&&"undefined"!=typeof e){var n=e.constructor===Array||"function"==typeof e.callee;if("object"==typeof e||n||(e=[e]),n)for(var r=0,o=e.length;o>r;r++)t.call(null,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(null,e[i],i,e)}}function d(){var e={};return l(arguments,function(t){l(t,function(t,n){e[n]=t})}),e}var h=Object.prototype.toString;e.exports={isArray:t,isArrayBuffer:n,isArrayBufferView:r,isString:o,isNumber:i,isObject:a,isUndefined:s,isDate:u,isFile:c,isBlob:f,forEach:l,merge:d,trim:p}},function(e,t,n){var r=n(3),o=n(4),i=n(8),s=n(9),a=n(10),u=n(11),c=n(12);e.exports=function(e,t,n){var f=u(n.data,n.headers,n.transformRequest),p=o.merge(r.headers.common,r.headers[n.method]||{},n.headers||{}),l=new(XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP");l.open(n.method,i(n.url,n.params),!0),l.onreadystatechange=function(){if(l&&4===l.readyState){var r=a(l.getAllResponseHeaders()),o={data:u(l.responseText,r,n.transformResponse),status:l.status,headers:r,config:n};(l.status>=200&&l.status<300?e:t)(o),l=null}};var d=c(n.url)?s.read(n.xsrfCookieName||r.xsrfCookieName):void 0;if(d&&(p[n.xsrfHeaderName||r.xsrfHeaderName]=d),o.forEach(p,function(e,t){f||"content-type"!==t.toLowerCase()?l.setRequestHeader(t,e):delete p[t]}),n.withCredentials&&(l.withCredentials=!0),n.responseType)try{l.responseType=n.responseType}catch(h){if("json"!==l.responseType)throw h}o.isArrayBuffer(f)&&(f=new DataView(f)),l.send(f)}},function(e){e.exports=function(e){return function(t){e.apply(null,t)}}},function(e){function t(){}var n=e.exports={};n.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;if((t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=t,n.addListener=t,n.once=t,n.off=t,n.removeListener=t,n.removeAllListeners=t,n.emit=t,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")}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}var o=n(4);e.exports=function(e,t){if(!t)return e;var n=[];return o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),n.push(r(t)+"="+r(e))}))}),n.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+n.join("&")),e}},function(e,t,n){"use strict";var r=n(4);e.exports={write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";function r(e){var t=e;return o&&(s.setAttribute("href",t),t=s.href),s.setAttribute("href",t),{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(4),s=document.createElement("a"),a=r(window.location.href);e.exports=function(e){var t=i.isString(e)?r(e):e;return t.protocol===a.protocol&&t.host===a.host}}]); +//# sourceMappingURL=axios.standalone.min.map \ No newline at end of file diff --git a/dist/axios.standalone.min.map b/dist/axios.standalone.min.map new file mode 100644 index 0000000..9a5d8f3 --- /dev/null +++ b/dist/axios.standalone.min.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///axios.standalone.min.js","webpack:///webpack/bootstrap a74cd3a4253eefc0a6c3","webpack:///./index.js","webpack:///./lib/axios.js","webpack:///external \"undefined\"","webpack:///./lib/defaults.js","webpack:///./lib/utils.js","webpack:///./lib/adapters/xhr.js","webpack:///./lib/helpers/spread.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./lib/helpers/buildUrl.js","webpack:///./lib/helpers/cookies.js","webpack:///./lib/helpers/parseHeaders.js","webpack:///./lib/helpers/transformData.js","webpack:///./lib/helpers/urlIsSameOrigin.js"],"names":["axios","modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","process","createShortMethods","utils","forEach","arguments","method","url","config","merge","createShortMethodsWithData","data","Promise","defaults","deprecatedMethod","instead","docs","console","warn","e","headers","transformRequest","transformResponse","withCredentials","promise","resolve","reject","window","success","fn","then","response","status","error","all","promises","spread","undefined","JSON_START","JSON_END","PROTECTION_PREFIX","DEFAULT_CONTENT_TYPE","Content-Type","isArrayBuffer","isArrayBufferView","buffer","isObject","isFile","isBlob","isUndefined","JSON","stringify","replace","test","parse","common","Accept","patch","post","put","xsrfCookieName","xsrfHeaderName","isArray","val","toString","ArrayBuffer","isView","isString","isNumber","isDate","trim","str","obj","constructor","Array","callee","i","l","length","key","hasOwnProperty","result","Object","prototype","buildUrl","cookies","parseHeaders","transformData","urlIsSameOrigin","request","XMLHttpRequest","ActiveXObject","open","params","onreadystatechange","readyState","getAllResponseHeaders","responseText","xsrfValue","read","toLowerCase","setRequestHeader","responseType","DataView","send","callback","arr","apply","noop","nextTick","canSetImmediate","setImmediate","canPost","postMessage","addEventListener","f","queue","ev","source","stopPropagation","shift","push","setTimeout","title","browser","env","argv","on","addListener","once","off","removeListener","removeAllListeners","emit","binding","Error","cwd","chdir","encode","encodeURIComponent","parts","v","toISOString","indexOf","join","write","name","value","expires","path","domain","secure","cookie","Date","toGMTString","document","match","RegExp","decodeURIComponent","remove","this","now","parsed","split","line","substr","fns","urlResolve","href","msie","urlParsingNode","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","navigator","userAgent","createElement","originUrl","location","requestUrl"],"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,IGnDhC,SAAAW,GA+EA,QAAAC,KACAC,EAAAC,QAAAC,UAAA,SAAAC,GACAlB,EAAAkB,GAAA,SAAAC,EAAAC,GACA,MAAApB,GAAAe,EAAAM,MAAAD,OACAF,SACAC,YAMA,QAAAG,KACAP,EAAAC,QAAAC,UAAA,SAAAC,GACAlB,EAAAkB,GAAA,SAAAC,EAAAI,EAAAH,GACA,MAAApB,GAAAe,EAAAM,MAAAD,OACAF,SACAC,MACAI,aAhGA,GAAAC,GAAAtB,EAAA,GAAAsB,QACAC,EAAAvB,EAAA,GACAa,EAAAb,EAAA,GAEAF,EAAAM,EAAAD,QAAA,SAAAe,GA0BA,QAAAM,GAAAR,EAAAS,EAAAC,GACA,IACAC,QAAAC,KACA,sBAAAZ,EAAA,MACAS,EAAA,SAAAA,EAAA,iBACA,qDAEAC,GACAC,QAAAC,KAAA,wCAAAF,GAEK,MAAAG,KAnCLX,EAAAL,EAAAM,OACAH,OAAA,MACAc,WACAC,iBAAAR,EAAAQ,iBACAC,kBAAAT,EAAAS,mBACGd,GAGHA,EAAAe,gBAAAf,EAAAe,iBAAAV,EAAAU,eAEA,IAAAC,GAAA,GAAAZ,GAAA,SAAAa,EAAAC,GACA,IAEA,mBAAAC,QACArC,EAAA,GAAAmC,EAAAC,EAAAlB,GAGA,mBAAAP,IACAX,EAAA,GAAAmC,EAAAC,EAAAlB,GAEK,MAAAW,GACLO,EAAAP,KAqCA,OAnBAK,GAAAI,QAAA,SAAAC,GAMA,MALAf,GAAA,2FAEAU,EAAAM,KAAA,SAAAC,GACAF,EAAAE,EAAApB,KAAAoB,EAAAC,OAAAD,EAAAX,QAAAW,EAAAvB,UAEAgB,GAIAA,EAAAS,MAAA,SAAAJ,GAMA,MALAf,GAAA,0FAEAU,EAAAM,KAAA,cAAAC,GACAF,EAAAE,EAAApB,KAAAoB,EAAAC,OAAAD,EAAAX,QAAAW,EAAAvB,UAEAgB,GAGAA,EAIApC,GAAAyB,WAGAzB,EAAA8C,IAAA,SAAAC,GACA,MAAAvB,GAAAsB,IAAAC,IAEA/C,EAAAgD,OAAA9C,EAAA,GAGAY,EAAA,uBACAQ,EAAA,wBH6E8Bb,KAAKJ,EAASH,EAAoB,KAI1D,SAASI,GI9JfA,EAAAD,QAAA4C,QJoKM,SAAS3C,EAAQD,EAASH,GKpKhC,YAEA,IAAAa,GAAAb,EAAA,GAEAgD,EAAA,mBACAC,EAAA,aACAC,EAAA,eACAC,GACAC,eAAA,oCAGAhD,GAAAD,SACA4B,kBAAA,SAAAV,EAAAS,GACA,MAAAjB,GAAAwC,cAAAhC,GACAA,EAEAR,EAAAyC,kBAAAjC,GACAA,EAAAkC,QAEA1C,EAAA2C,SAAAnC,IAAAR,EAAA4C,OAAApC,IAAAR,EAAA6C,OAAArC,GAOAA,IALAR,EAAA8C,YAAA7B,IAAAjB,EAAA8C,YAAA7B,EAAA,mBACAA,EAAA,kDAEA8B,KAAAC,UAAAxC,MAKAW,mBAAA,SAAAX,GAOA,MANA,gBAAAA,KACAA,IAAAyC,QAAAZ,EAAA,IACAF,EAAAe,KAAA1C,IAAA4B,EAAAc,KAAA1C,KACAA,EAAAuC,KAAAI,MAAA3C,KAGAA,IAGAS,SACAmC,QACAC,OAAA,qCAEAC,MAAAtD,EAAAM,MAAAgC,GACAiB,KAAAvD,EAAAM,MAAAgC,GACAkB,IAAAxD,EAAAM,MAAAgC,IAGAmB,eAAA,aACAC,eAAA,iBL2KM,SAASnE,GMlNf,QAAAoE,GAAAC,GACA,yBAAAC,EAAAnE,KAAAkE,GASA,QAAApB,GAAAoB,GACA,+BAAAC,EAAAnE,KAAAkE,GASA,QAAAnB,GAAAmB,GACA,yBAAAE,0BAAA,OACAA,YAAAC,OAAAH,GAEA,GAAAA,EAAA,QAAAA,EAAAlB,iBAAAoB,aAUA,QAAAE,GAAAJ,GACA,sBAAAA,GASA,QAAAK,GAAAL,GACA,sBAAAA,GASA,QAAAd,GAAAc,GACA,yBAAAA,GASA,QAAAjB,GAAAiB,GACA,cAAAA,GAAA,gBAAAA,GASA,QAAAM,GAAAN,GACA,wBAAAC,EAAAnE,KAAAkE,GASA,QAAAhB,GAAAgB,GACA,wBAAAC,EAAAnE,KAAAkE,GASA,QAAAf,GAAAe,GACA,wBAAAC,EAAAnE,KAAAkE,GASA,QAAAO,GAAAC,GACA,MAAAA,GAAAnB,QAAA,WAAAA,QAAA,WAeA,QAAAhD,GAAAoE,EAAA3C,GAEA,UAAA2C,GAAA,mBAAAA,GAAA,CAKA,GAAAV,GAAAU,EAAAC,cAAAC,OAAA,kBAAAF,GAAAG,MAQA,IALA,gBAAAH,IAAAV,IACAU,OAIAV,EACA,OAAAc,GAAA,EAAAC,EAAAL,EAAAM,OAA+BD,EAAAD,EAAKA,IACpC/C,EAAAhC,KAAA,KAAA2E,EAAAI,KAAAJ,OAKA,QAAAO,KAAAP,GACAA,EAAAQ,eAAAD,IACAlD,EAAAhC,KAAA,KAAA2E,EAAAO,KAAAP,IAuBA,QAAA/D,KACA,GAAAwE,KAMA,OALA7E,GAAAC,UAAA,SAAAmE,GACApE,EAAAoE,EAAA,SAAAT,EAAAgB,GACAE,EAAAF,GAAAhB,MAGAkB,EAtLA,GAAAjB,GAAAkB,OAAAC,UAAAnB,QAyLAtE,GAAAD,SACAqE,UACAnB,gBACAC,oBACAuB,WACAC,WACAtB,WACAG,cACAoB,SACAtB,SACAC,SACA5C,UACAK,QACA6D,SNmOM,SAAS5E,EAAQD,EAASH,GO3ahC,GAAAuB,GAAAvB,EAAA,GACAa,EAAAb,EAAA,GACA8F,EAAA9F,EAAA,GACA+F,EAAA/F,EAAA,GACAgG,EAAAhG,EAAA,IACAiG,EAAAjG,EAAA,IACAkG,EAAAlG,EAAA,GAEAI,GAAAD,QAAA,SAAAgC,EAAAC,EAAAlB,GAEA,GAAAG,GAAA4E,EACA/E,EAAAG,KACAH,EAAAY,QACAZ,EAAAa,kBAIAD,EAAAjB,EAAAM,MACAI,EAAAO,QAAAmC,OACA1C,EAAAO,QAAAZ,EAAAF,YACAE,EAAAY,aAIAqE,EAAA,IAAAC,gBAAAC,eAAA,oBACAF,GAAAG,KAAApF,EAAAF,OAAA8E,EAAA5E,EAAAD,IAAAC,EAAAqF,SAAA,GAGAJ,EAAAK,mBAAA,WACA,GAAAL,GAAA,IAAAA,EAAAM,WAAA,CAEA,GAAA3E,GAAAkE,EAAAG,EAAAO,yBACAjE,GACApB,KAAA4E,EACAE,EAAAQ,aACA7E,EACAZ,EAAAc,mBAEAU,OAAAyD,EAAAzD,OACAZ,UACAZ,WAIAiF,EAAAzD,QAAA,KAAAyD,EAAAzD,OAAA,IACAP,EACAC,GAAAK,GAGA0D,EAAA,MAKA,IAAAS,GAAAV,EAAAhF,EAAAD,KACA8E,EAAAc,KAAA3F,EAAAoD,gBAAA/C,EAAA+C,gBACAvB,MAuBA,IAtBA6D,IACA9E,EAAAZ,EAAAqD,gBAAAhD,EAAAgD,gBAAAqC,GAIA/F,EAAAC,QAAAgB,EAAA,SAAA2C,EAAAgB,GAEApE,GAAA,iBAAAoE,EAAAqB,cAKAX,EAAAY,iBAAAtB,EAAAhB,SAJA3C,GAAA2D,KASAvE,EAAAe,kBACAkE,EAAAlE,iBAAA,GAIAf,EAAA8F,aACA,IACAb,EAAAa,aAAA9F,EAAA8F,aACK,MAAAnF,GACL,YAAAsE,EAAAa,aACA,KAAAnF,GAKAhB,EAAAwC,cAAAhC,KACAA,EAAA,GAAA4F,UAAA5F,IAIA8E,EAAAe,KAAA7F,KPkbM,SAASjB,GQ5ffA,EAAAD,QAAA,SAAAgH,GACA,gBAAAC,GACAD,EAAAE,MAAA,KAAAD,MRwhBM,SAAShH,GSlgBf,QAAAkH,MA1CA,GAAA3G,GAAAP,EAAAD,UAEAQ,GAAA4G,SAAA,WACA,GAAAC,GAAA,mBAAAnF,SACAA,OAAAoF,aACAC,EAAA,mBAAArF,SACAA,OAAAsF,aAAAtF,OAAAuF,gBAGA,IAAAJ,EACA,gBAAAK,GAA6B,MAAAxF,QAAAoF,aAAAI,GAG7B,IAAAH,EAAA,CACA,GAAAI,KAYA,OAXAzF,QAAAuF,iBAAA,mBAAAG,GACA,GAAAC,GAAAD,EAAAC,MACA,KAAAA,IAAA3F,QAAA,OAAA2F,IAAA,iBAAAD,EAAA1G,OACA0G,EAAAE,kBACAH,EAAAtC,OAAA,IACA,GAAAjD,GAAAuF,EAAAI,OACA3F,QAGS,GAET,SAAAA,GACAuF,EAAAK,KAAA5F,GACAF,OAAAsF,YAAA,qBAIA,gBAAApF,GACA6F,WAAA7F,EAAA,OAIA5B,EAAA0H,MAAA,UACA1H,EAAA2H,SAAA,EACA3H,EAAA4H,OACA5H,EAAA6H,QAIA7H,EAAA8H,GAAAnB,EACA3G,EAAA+H,YAAApB,EACA3G,EAAAgI,KAAArB,EACA3G,EAAAiI,IAAAtB,EACA3G,EAAAkI,eAAAvB,EACA3G,EAAAmI,mBAAAxB,EACA3G,EAAAoI,KAAAzB,EAEA3G,EAAAqI,QAAA,WACA,SAAAC,OAAA,qCAIAtI,EAAAuI,IAAA,WAA2B,WAC3BvI,EAAAwI,MAAA,WACA,SAAAF,OAAA,oCTsjBM,SAAS7I,EAAQD,EAASH,GUnnBhC,YAIA,SAAAoJ,GAAA3E,GACA,MAAA4E,oBAAA5E,GACAX,QAAA,aACAA,QAAA,aACAA,QAAA,YACAA,QAAA,aACAA,QAAA,YARA,GAAAjD,GAAAb,EAAA,EAWAI,GAAAD,QAAA,SAAAc,EAAAsF,GACA,IAAAA,EACA,MAAAtF,EAGA,IAAAqI,KAyBA,OAvBAzI,GAAAC,QAAAyF,EAAA,SAAA9B,EAAAgB,GACA,OAAAhB,GAAA,mBAAAA,KAGA5D,EAAA2D,QAAAC,KACAA,OAGA5D,EAAAC,QAAA2D,EAAA,SAAA8E,GACA1I,EAAAkE,OAAAwE,GACAA,IAAAC,cAEA3I,EAAA2C,SAAA+F,KACAA,EAAA3F,KAAAC,UAAA0F,IAEAD,EAAAnB,KAAAiB,EAAA3D,GAAA,IAAA2D,EAAAG,SAIAD,EAAA9D,OAAA,IACAvE,IAAA,KAAAA,EAAAwI,QAAA,cAAAH,EAAAI,KAAA,MAGAzI,IV0nBM,SAASb,EAAQD,EAASH,GWrqBhC,YAEA,IAAAa,GAAAb,EAAA,EAEAI,GAAAD,SACAwJ,MAAA,SAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GACA,GAAAC,KACAA,GAAA/B,KAAAyB,EAAA,IAAAP,mBAAAQ,IAEAhJ,EAAAiE,SAAAgF,IACAI,EAAA/B,KAAA,cAAAgC,MAAAL,GAAAM,eAGAvJ,EAAAgE,SAAAkF,IACAG,EAAA/B,KAAA,QAAA4B,GAGAlJ,EAAAgE,SAAAmF,IACAE,EAAA/B,KAAA,UAAA6B,GAGAC,KAAA,GACAC,EAAA/B,KAAA,UAGAkC,SAAAH,SAAAR,KAAA,OAGA7C,KAAA,SAAA+C,GACA,GAAAU,GAAAD,SAAAH,OAAAI,MAAA,GAAAC,QAAA,aAAsDX,EAAA,aACtD,OAAAU,GAAAE,mBAAAF,EAAA,UAGAG,OAAA,SAAAb,GACAc,KAAAf,MAAAC,EAAA,GAAAO,KAAAQ,MAAA,UX6qBM,SAASvK,EAAQD,EAASH,GY/sBhC,YAEA,IAAAa,GAAAb,EAAA,EAeAI,GAAAD,QAAA,SAAA2B,GACA,GAAiB2D,GAAAhB,EAAAa,EAAjBsF,IAEA,OAAA9I,IAEAjB,EAAAC,QAAAgB,EAAA+I,MAAA,eAAAC,GACAxF,EAAAwF,EAAArB,QAAA,KACAhE,EAAA5E,EAAAmE,KAAA8F,EAAAC,OAAA,EAAAzF,IAAAwB,cACArC,EAAA5D,EAAAmE,KAAA8F,EAAAC,OAAAzF,EAAA,IAEAG,IACAmF,EAAAnF,GAAAmF,EAAAnF,GAAAmF,EAAAnF,GAAA,KAAAhB,OAIAmG,GAZAA,IZkuBM,SAASxK,EAAQD,EAASH,GatvBhC,YAEA,IAAAa,GAAAb,EAAA,EAUAI,GAAAD,QAAA,SAAAkB,EAAAS,EAAAkJ,GAKA,MAJAnK,GAAAC,QAAAkK,EAAA,SAAAzI,GACAlB,EAAAkB,EAAAlB,EAAAS,KAGAT,Ib6vBM,SAASjB,EAAQD,EAASH,Gc9wBhC,YAaA,SAAAiL,GAAAhK,GACA,GAAAiK,GAAAjK,CAWA,OATAkK,KAEAC,EAAAC,aAAA,OAAAH,GACAA,EAAAE,EAAAF,MAGAE,EAAAC,aAAA,OAAAH,IAIAA,KAAAE,EAAAF,KACAI,SAAAF,EAAAE,SAAAF,EAAAE,SAAAxH,QAAA,YACAyH,KAAAH,EAAAG,KACAC,OAAAJ,EAAAI,OAAAJ,EAAAI,OAAA1H,QAAA,aACA2H,KAAAL,EAAAK,KAAAL,EAAAK,KAAA3H,QAAA,YACA4H,SAAAN,EAAAM,SACAC,KAAAP,EAAAO,KACAC,SAAA,MAAAR,EAAAQ,SAAAC,OAAA,GACAT,EAAAQ,SACA,IAAAR,EAAAQ,UAjCA,GAAAT,GAAA,kBAAApH,KAAA+H,UAAAC,WACAlL,EAAAb,EAAA,GACAoL,EAAAf,SAAA2B,cAAA,KACAC,EAAAhB,EAAA5I,OAAA6J,SAAAhB,KAwCA9K,GAAAD,QAAA,SAAAgM,GACA,GAAAvB,GAAA/J,EAAAgE,SAAAsH,GAAAlB,EAAAkB,IACA,OAAAvB,GAAAU,WAAAW,EAAAX,UACAV,EAAAW,OAAAU,EAAAV","file":"axios.standalone.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\t/* WEBPACK VAR INJECTION */(function(process) {var Promise = __webpack_require__(2).Promise;\n\tvar defaults = __webpack_require__(3);\n\tvar utils = __webpack_require__(4);\n\t\n\tvar axios = module.exports = function axios(config) {\n\t config = utils.merge({\n\t method: 'get',\n\t headers: {},\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 try {\n\t // For browsers use XHR adapter\n\t if (typeof window !== 'undefined') {\n\t __webpack_require__(5)(resolve, reject, config);\n\t }\n\t // For node use HTTP adapter\n\t else if (typeof process !== 'undefined') {\n\t __webpack_require__(2)(resolve, reject, config);\n\t }\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t\n\t function deprecatedMethod(method, instead, docs) {\n\t try {\n\t console.warn(\n\t 'DEPRECATED method `' + method + '`.' +\n\t (instead ? ' Use `' + instead + '` instead.' : '') +\n\t ' This method will be removed in a future release.');\n\t\n\t if (docs) {\n\t console.warn('For more information about usage see ' + docs);\n\t }\n\t } catch (e) {}\n\t }\n\t\n\t // Provide alias for success\n\t promise.success = function success(fn) {\n\t deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\t\n\t promise.then(function(response) {\n\t fn(response.data, response.status, response.headers, response.config);\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 deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\t\n\t promise.then(null, function(response) {\n\t fn(response.data, response.status, response.headers, response.config);\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// Expose all/spread\n\taxios.all = function (promises) {\n\t return Promise.all(promises);\n\t};\n\taxios.spread = __webpack_require__(6);\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\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = undefined;\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\n\t\n\tvar JSON_START = /^\\s*(\\[|\\{[^\\{])/;\n\tvar JSON_END = /[\\}\\]]\\s*$/;\n\tvar PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\n\tvar DEFAULT_CONTENT_TYPE = {\n\t 'Content-Type': 'application/x-www-form-urlencoded'\n\t};\n\t\n\tmodule.exports = {\n\t transformRequest: [function (data, headers) {\n\t if (utils.isArrayBuffer(data)) {\n\t return data;\n\t }\n\t if (utils.isArrayBufferView(data)) {\n\t return data.buffer;\n\t }\n\t if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n\t // Set application/json if no Content-Type has been specified\n\t if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n\t headers['Content-Type'] = 'application/json;charset=utf-8';\n\t }\n\t return JSON.stringify(data);\n\t }\n\t return data;\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(DEFAULT_CONTENT_TYPE),\n\t post: utils.merge(DEFAULT_CONTENT_TYPE),\n\t put: utils.merge(DEFAULT_CONTENT_TYPE)\n\t },\n\t\n\t xsrfCookieName: 'XSRF-TOKEN',\n\t xsrfHeaderName: 'X-XSRF-TOKEN'\n\t};\n\n/***/ },\n/* 4 */\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 an ArrayBuffer\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n\t */\n\tfunction isArrayBuffer(val) {\n\t return toString.call(val) === '[object ArrayBuffer]';\n\t}\n\t\n\t/**\n\t * Determine if a value is a view on an ArrayBuffer\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n\t */\n\tfunction isArrayBufferView(val) {\n\t if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n\t return ArrayBuffer.isView(val);\n\t } else {\n\t return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n\t }\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 undefined\n\t *\n\t * @param {Object} val The value to test\n\t * @returns {boolean} True if the value is undefined, otherwise false\n\t */\n\tfunction isUndefined(val) {\n\t return typeof val === 'undefined';\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= 200 && request.status < 300\n\t ? resolve\n\t : reject)(response);\n\t\n\t // Clean up request\n\t request = null;\n\t }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n\t data = new DataView(data);\n\t }\n\t\n\t // Send the request\n\t request.send(data);\n\t};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * Syntactic sugar for invoking a function and expanding an array for arguments.\n\t *\n\t * Common use case would be to use `Function.prototype.apply`.\n\t *\n\t * ```js\n\t * function f(x, y, z) {}\n\t * var args = [1, 2, 3];\n\t * f.apply(null, args);\n\t * ```\n\t *\n\t * With `spread` this example can be re-written.\n\t *\n\t * ```js\n\t * spread(function(x, y, z) {})([1, 2, 3]);\n\t * ```\n\t *\n\t * @param {Function} callback\n\t * @returns {Function}\n\t */\n\tmodule.exports = function spread(callback) {\n\t return function (arr) {\n\t callback.apply(null, arr);\n\t };\n\t};\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// shim for using process in browser\n\t\n\tvar process = module.exports = {};\n\t\n\tprocess.nextTick = (function () {\n\t var canSetImmediate = typeof window !== 'undefined'\n\t && window.setImmediate;\n\t var canPost = typeof window !== 'undefined'\n\t && window.postMessage && window.addEventListener\n\t ;\n\t\n\t if (canSetImmediate) {\n\t return function (f) { return window.setImmediate(f) };\n\t }\n\t\n\t if (canPost) {\n\t var queue = [];\n\t window.addEventListener('message', function (ev) {\n\t var source = ev.source;\n\t if ((source === window || source === null) && ev.data === 'process-tick') {\n\t ev.stopPropagation();\n\t if (queue.length > 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/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(4);\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/* 12 */\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__(4);\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/******/ ])\n\n\n/** WEBPACK FOOTER **\n ** axios.standalone.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 a74cd3a4253eefc0a6c3\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 defaults = require('./defaults');\nvar utils = require('./utils');\n\nvar axios = module.exports = function axios(config) {\n config = utils.merge({\n method: 'get',\n headers: {},\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 try {\n // For browsers use XHR adapter\n if (typeof window !== 'undefined') {\n require('./adapters/xhr')(resolve, reject, config);\n }\n // For node use HTTP adapter\n else if (typeof process !== 'undefined') {\n require('./adapters/http')(resolve, reject, config);\n }\n } catch (e) {\n reject(e);\n }\n });\n\n function deprecatedMethod(method, instead, docs) {\n try {\n console.warn(\n 'DEPRECATED method `' + method + '`.' +\n (instead ? ' Use `' + instead + '` instead.' : '') +\n ' This method will be removed in a future release.');\n\n if (docs) {\n console.warn('For more information about usage see ' + docs);\n }\n } catch (e) {}\n }\n\n // Provide alias for success\n promise.success = function success(fn) {\n deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n // Provide alias for error\n promise.error = function error(fn) {\n deprecatedMethod('error', 'catch', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');\n\n promise.then(null, function(response) {\n fn(response.data, response.status, response.headers, response.config);\n });\n return promise;\n };\n\n return promise;\n};\n\n// Expose defaults\naxios.defaults = defaults;\n\n// Expose all/spread\naxios.all = function (promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\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 **/","module.exports = undefined;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"undefined\"\n ** module id = 2\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 DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nmodule.exports = {\n transformRequest: [function (data, headers) {\n if (utils.isArrayBuffer(data)) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isObject(data) && !utils.isFile(data) && !utils.isBlob(data)) {\n // Set application/json if no Content-Type has been specified\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = 'application/json;charset=utf-8';\n }\n return JSON.stringify(data);\n }\n return data;\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(DEFAULT_CONTENT_TYPE),\n post: utils.merge(DEFAULT_CONTENT_TYPE),\n put: utils.merge(DEFAULT_CONTENT_TYPE)\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 = 3\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 an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n return ArrayBuffer.isView(val);\n } else {\n return (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\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 undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\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= 200 && request.status < 300\n ? resolve\n : reject)(response);\n\n // Clean up request\n request = null;\n }\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 // Add headers to the request\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 if (utils.isArrayBuffer(data)) {\n data = new DataView(data);\n }\n\n // Send the request\n request.send(data);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/adapters/xhr.js\n ** module id = 5\n ** module chunks = 0\n **/","/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function (arr) {\n callback.apply(null, arr);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./lib/helpers/spread.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\n\nvar process = module.exports = {};\n\nprocess.nextTick = (function () {\n var canSetImmediate = typeof window !== 'undefined'\n && window.setImmediate;\n var canPost = typeof window !== 'undefined'\n && window.postMessage && window.addEventListener\n ;\n\n if (canSetImmediate) {\n return function (f) { return window.setImmediate(f) };\n }\n\n if (canPost) {\n var queue = [];\n window.addEventListener('message', function (ev) {\n var source = ev.source;\n if ((source === window || source === null) && ev.data === 'process-tick') {\n ev.stopPropagation();\n if (queue.length > 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 = 7\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/helpers/buildUrl.js\n ** module id = 8\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/helpers/cookies.js\n ** module id = 9\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/helpers/parseHeaders.js\n ** module id = 10\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/helpers/transformData.js\n ** module id = 11\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/helpers/urlIsSameOrigin.js\n ** module id = 12\n ** module chunks = 0\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/package.json b/package.json index e72c633..2fdbcf9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "axios", - "version": "0.3.1", + "version": "0.4.0", "description": "Promise based HTTP client for the browser and node.js", "main": "index.js", "scripts": {