Advertisement
xipo

Untitled

Jun 29th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.40 KB | None | 0 0
  1. /******/ (function(modules) { // webpackBootstrap
  2. /******/ // The module cache
  3. /******/ var installedModules = {};
  4. /******/
  5. /******/ // The require function
  6. /******/ function __webpack_require__(moduleId) {
  7. /******/
  8. /******/ // Check if module is in cache
  9. /******/ if(installedModules[moduleId])
  10. /******/ return installedModules[moduleId].exports;
  11. /******/
  12. /******/ // Create a new module (and put it into the cache)
  13. /******/ var module = installedModules[moduleId] = {
  14. /******/ i: moduleId,
  15. /******/ l: false,
  16. /******/ exports: {}
  17. /******/ };
  18. /******/
  19. /******/ // Execute the module function
  20. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  21. /******/
  22. /******/ // Flag the module as loaded
  23. /******/ module.l = true;
  24. /******/
  25. /******/ // Return the exports of the module
  26. /******/ return module.exports;
  27. /******/ }
  28. /******/
  29. /******/
  30. /******/ // expose the modules object (__webpack_modules__)
  31. /******/ __webpack_require__.m = modules;
  32. /******/
  33. /******/ // expose the module cache
  34. /******/ __webpack_require__.c = installedModules;
  35. /******/
  36. /******/ // identity function for calling harmony imports with the correct context
  37. /******/ __webpack_require__.i = function(value) { return value; };
  38. /******/
  39. /******/ // define getter function for harmony exports
  40. /******/ __webpack_require__.d = function(exports, name, getter) {
  41. /******/ if(!__webpack_require__.o(exports, name)) {
  42. /******/ Object.defineProperty(exports, name, {
  43. /******/ configurable: false,
  44. /******/ enumerable: true,
  45. /******/ get: getter
  46. /******/ });
  47. /******/ }
  48. /******/ };
  49. /******/
  50. /******/ // getDefaultExport function for compatibility with non-harmony modules
  51. /******/ __webpack_require__.n = function(module) {
  52. /******/ var getter = module && module.__esModule ?
  53. /******/ function getDefault() { return module['default']; } :
  54. /******/ function getModuleExports() { return module; };
  55. /******/ __webpack_require__.d(getter, 'a', getter);
  56. /******/ return getter;
  57. /******/ };
  58. /******/
  59. /******/ // Object.prototype.hasOwnProperty.call
  60. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  61. /******/
  62. /******/ // __webpack_public_path__
  63. /******/ __webpack_require__.p = "";
  64. /******/
  65. /******/ // Load entry module and return exports
  66. /******/ return __webpack_require__(__webpack_require__.s = 39);
  67. /******/ })
  68. /************************************************************************/
  69. /******/ ([
  70. /* 0 */
  71. /***/ (function(module, exports, __webpack_require__) {
  72.  
  73. "use strict";
  74.  
  75.  
  76. var bind = __webpack_require__(6);
  77.  
  78. /*global toString:true*/
  79.  
  80. // utils is a library of generic helper functions non-specific to axios
  81.  
  82. var toString = Object.prototype.toString;
  83.  
  84. /**
  85. * Determine if a value is an Array
  86. *
  87. * @param {Object} val The value to test
  88. * @returns {boolean} True if value is an Array, otherwise false
  89. */
  90. function isArray(val) {
  91. return toString.call(val) === '[object Array]';
  92. }
  93.  
  94. /**
  95. * Determine if a value is an ArrayBuffer
  96. *
  97. * @param {Object} val The value to test
  98. * @returns {boolean} True if value is an ArrayBuffer, otherwise false
  99. */
  100. function isArrayBuffer(val) {
  101. return toString.call(val) === '[object ArrayBuffer]';
  102. }
  103.  
  104. /**
  105. * Determine if a value is a FormData
  106. *
  107. * @param {Object} val The value to test
  108. * @returns {boolean} True if value is an FormData, otherwise false
  109. */
  110. function isFormData(val) {
  111. return (typeof FormData !== 'undefined') && (val instanceof FormData);
  112. }
  113.  
  114. /**
  115. * Determine if a value is a view on an ArrayBuffer
  116. *
  117. * @param {Object} val The value to test
  118. * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
  119. */
  120. function isArrayBufferView(val) {
  121. var result;
  122. if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
  123. result = ArrayBuffer.isView(val);
  124. } else {
  125. result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
  126. }
  127. return result;
  128. }
  129.  
  130. /**
  131. * Determine if a value is a String
  132. *
  133. * @param {Object} val The value to test
  134. * @returns {boolean} True if value is a String, otherwise false
  135. */
  136. function isString(val) {
  137. return typeof val === 'string';
  138. }
  139.  
  140. /**
  141. * Determine if a value is a Number
  142. *
  143. * @param {Object} val The value to test
  144. * @returns {boolean} True if value is a Number, otherwise false
  145. */
  146. function isNumber(val) {
  147. return typeof val === 'number';
  148. }
  149.  
  150. /**
  151. * Determine if a value is undefined
  152. *
  153. * @param {Object} val The value to test
  154. * @returns {boolean} True if the value is undefined, otherwise false
  155. */
  156. function isUndefined(val) {
  157. return typeof val === 'undefined';
  158. }
  159.  
  160. /**
  161. * Determine if a value is an Object
  162. *
  163. * @param {Object} val The value to test
  164. * @returns {boolean} True if value is an Object, otherwise false
  165. */
  166. function isObject(val) {
  167. return val !== null && typeof val === 'object';
  168. }
  169.  
  170. /**
  171. * Determine if a value is a Date
  172. *
  173. * @param {Object} val The value to test
  174. * @returns {boolean} True if value is a Date, otherwise false
  175. */
  176. function isDate(val) {
  177. return toString.call(val) === '[object Date]';
  178. }
  179.  
  180. /**
  181. * Determine if a value is a File
  182. *
  183. * @param {Object} val The value to test
  184. * @returns {boolean} True if value is a File, otherwise false
  185. */
  186. function isFile(val) {
  187. return toString.call(val) === '[object File]';
  188. }
  189.  
  190. /**
  191. * Determine if a value is a Blob
  192. *
  193. * @param {Object} val The value to test
  194. * @returns {boolean} True if value is a Blob, otherwise false
  195. */
  196. function isBlob(val) {
  197. return toString.call(val) === '[object Blob]';
  198. }
  199.  
  200. /**
  201. * Determine if a value is a Function
  202. *
  203. * @param {Object} val The value to test
  204. * @returns {boolean} True if value is a Function, otherwise false
  205. */
  206. function isFunction(val) {
  207. return toString.call(val) === '[object Function]';
  208. }
  209.  
  210. /**
  211. * Determine if a value is a Stream
  212. *
  213. * @param {Object} val The value to test
  214. * @returns {boolean} True if value is a Stream, otherwise false
  215. */
  216. function isStream(val) {
  217. return isObject(val) && isFunction(val.pipe);
  218. }
  219.  
  220. /**
  221. * Determine if a value is a URLSearchParams object
  222. *
  223. * @param {Object} val The value to test
  224. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  225. */
  226. function isURLSearchParams(val) {
  227. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  228. }
  229.  
  230. /**
  231. * Trim excess whitespace off the beginning and end of a string
  232. *
  233. * @param {String} str The String to trim
  234. * @returns {String} The String freed of excess whitespace
  235. */
  236. function trim(str) {
  237. return str.replace(/^\s*/, '').replace(/\s*$/, '');
  238. }
  239.  
  240. /**
  241. * Determine if we're running in a standard browser environment
  242. *
  243. * This allows axios to run in a web worker, and react-native.
  244. * Both environments support XMLHttpRequest, but not fully standard globals.
  245. *
  246. * web workers:
  247. * typeof window -> undefined
  248. * typeof document -> undefined
  249. *
  250. * react-native:
  251. * typeof document.createElement -> undefined
  252. */
  253. function isStandardBrowserEnv() {
  254. return (
  255. typeof window !== 'undefined' &&
  256. typeof document !== 'undefined' &&
  257. typeof document.createElement === 'function'
  258. );
  259. }
  260.  
  261. /**
  262. * Iterate over an Array or an Object invoking a function for each item.
  263. *
  264. * If `obj` is an Array callback will be called passing
  265. * the value, index, and complete array for each item.
  266. *
  267. * If 'obj' is an Object callback will be called passing
  268. * the value, key, and complete object for each property.
  269. *
  270. * @param {Object|Array} obj The object to iterate
  271. * @param {Function} fn The callback to invoke for each item
  272. */
  273. function forEach(obj, fn) {
  274. // Don't bother if no value provided
  275. if (obj === null || typeof obj === 'undefined') {
  276. return;
  277. }
  278.  
  279. // Force an array if not already something iterable
  280. if (typeof obj !== 'object' && !isArray(obj)) {
  281. /*eslint no-param-reassign:0*/
  282. obj = [obj];
  283. }
  284.  
  285. if (isArray(obj)) {
  286. // Iterate over array values
  287. for (var i = 0, l = obj.length; i < l; i++) {
  288. fn.call(null, obj[i], i, obj);
  289. }
  290. } else {
  291. // Iterate over object keys
  292. for (var key in obj) {
  293. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  294. fn.call(null, obj[key], key, obj);
  295. }
  296. }
  297. }
  298. }
  299.  
  300. /**
  301. * Accepts varargs expecting each argument to be an object, then
  302. * immutably merges the properties of each object and returns result.
  303. *
  304. * When multiple objects contain the same key the later object in
  305. * the arguments list will take precedence.
  306. *
  307. * Example:
  308. *
  309. * ```js
  310. * var result = merge({foo: 123}, {foo: 456});
  311. * console.log(result.foo); // outputs 456
  312. * ```
  313. *
  314. * @param {Object} obj1 Object to merge
  315. * @returns {Object} Result of all merge properties
  316. */
  317. function merge(/* obj1, obj2, obj3, ... */) {
  318. var result = {};
  319. function assignValue(val, key) {
  320. if (typeof result[key] === 'object' && typeof val === 'object') {
  321. result[key] = merge(result[key], val);
  322. } else {
  323. result[key] = val;
  324. }
  325. }
  326.  
  327. for (var i = 0, l = arguments.length; i < l; i++) {
  328. forEach(arguments[i], assignValue);
  329. }
  330. return result;
  331. }
  332.  
  333. /**
  334. * Extends object a by mutably adding to it the properties of object b.
  335. *
  336. * @param {Object} a The object to be extended
  337. * @param {Object} b The object to copy properties from
  338. * @param {Object} thisArg The object to bind function to
  339. * @return {Object} The resulting value of object a
  340. */
  341. function extend(a, b, thisArg) {
  342. forEach(b, function assignValue(val, key) {
  343. if (thisArg && typeof val === 'function') {
  344. a[key] = bind(val, thisArg);
  345. } else {
  346. a[key] = val;
  347. }
  348. });
  349. return a;
  350. }
  351.  
  352. module.exports = {
  353. isArray: isArray,
  354. isArrayBuffer: isArrayBuffer,
  355. isFormData: isFormData,
  356. isArrayBufferView: isArrayBufferView,
  357. isString: isString,
  358. isNumber: isNumber,
  359. isObject: isObject,
  360. isUndefined: isUndefined,
  361. isDate: isDate,
  362. isFile: isFile,
  363. isBlob: isBlob,
  364. isFunction: isFunction,
  365. isStream: isStream,
  366. isURLSearchParams: isURLSearchParams,
  367. isStandardBrowserEnv: isStandardBrowserEnv,
  368. forEach: forEach,
  369. merge: merge,
  370. extend: extend,
  371. trim: trim
  372. };
  373.  
  374.  
  375. /***/ }),
  376. /* 1 */
  377. /***/ (function(module, exports, __webpack_require__) {
  378.  
  379. "use strict";
  380. /* WEBPACK VAR INJECTION */(function(process) {
  381.  
  382. var utils = __webpack_require__(0);
  383. var normalizeHeaderName = __webpack_require__(25);
  384.  
  385. var PROTECTION_PREFIX = /^\)\]\}',?\n/;
  386. var DEFAULT_CONTENT_TYPE = {
  387. 'Content-Type': 'application/x-www-form-urlencoded'
  388. };
  389.  
  390. function setContentTypeIfUnset(headers, value) {
  391. if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
  392. headers['Content-Type'] = value;
  393. }
  394. }
  395.  
  396. function getDefaultAdapter() {
  397. var adapter;
  398. if (typeof XMLHttpRequest !== 'undefined') {
  399. // For browsers use XHR adapter
  400. adapter = __webpack_require__(2);
  401. } else if (typeof process !== 'undefined') {
  402. // For node use HTTP adapter
  403. adapter = __webpack_require__(2);
  404. }
  405. return adapter;
  406. }
  407.  
  408. var defaults = {
  409. adapter: getDefaultAdapter(),
  410.  
  411. transformRequest: [function transformRequest(data, headers) {
  412. normalizeHeaderName(headers, 'Content-Type');
  413. if (utils.isFormData(data) ||
  414. utils.isArrayBuffer(data) ||
  415. utils.isStream(data) ||
  416. utils.isFile(data) ||
  417. utils.isBlob(data)
  418. ) {
  419. return data;
  420. }
  421. if (utils.isArrayBufferView(data)) {
  422. return data.buffer;
  423. }
  424. if (utils.isURLSearchParams(data)) {
  425. setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
  426. return data.toString();
  427. }
  428. if (utils.isObject(data)) {
  429. setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
  430. return JSON.stringify(data);
  431. }
  432. return data;
  433. }],
  434.  
  435. transformResponse: [function transformResponse(data) {
  436. /*eslint no-param-reassign:0*/
  437. if (typeof data === 'string') {
  438. data = data.replace(PROTECTION_PREFIX, '');
  439. try {
  440. data = JSON.parse(data);
  441. } catch (e) { /* Ignore */ }
  442. }
  443. return data;
  444. }],
  445.  
  446. timeout: 0,
  447.  
  448. xsrfCookieName: 'XSRF-TOKEN',
  449. xsrfHeaderName: 'X-XSRF-TOKEN',
  450.  
  451. maxContentLength: -1,
  452.  
  453. validateStatus: function validateStatus(status) {
  454. return status >= 200 && status < 300;
  455. }
  456. };
  457.  
  458. defaults.headers = {
  459. common: {
  460. 'Accept': 'application/json, text/plain, */*'
  461. }
  462. };
  463.  
  464. utils.forEach(['delete', 'get', 'head'], function forEachMehtodNoData(method) {
  465. defaults.headers[method] = {};
  466. });
  467.  
  468. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  469. defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
  470. });
  471.  
  472. module.exports = defaults;
  473.  
  474. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
  475.  
  476. /***/ }),
  477. /* 2 */
  478. /***/ (function(module, exports, __webpack_require__) {
  479.  
  480. "use strict";
  481.  
  482.  
  483. var utils = __webpack_require__(0);
  484. var settle = __webpack_require__(17);
  485. var buildURL = __webpack_require__(20);
  486. var parseHeaders = __webpack_require__(26);
  487. var isURLSameOrigin = __webpack_require__(24);
  488. var createError = __webpack_require__(5);
  489. var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(19);
  490.  
  491. module.exports = function xhrAdapter(config) {
  492. return new Promise(function dispatchXhrRequest(resolve, reject) {
  493. var requestData = config.data;
  494. var requestHeaders = config.headers;
  495.  
  496. if (utils.isFormData(requestData)) {
  497. delete requestHeaders['Content-Type']; // Let the browser set it
  498. }
  499.  
  500. var request = new XMLHttpRequest();
  501. var loadEvent = 'onreadystatechange';
  502. var xDomain = false;
  503.  
  504. // For IE 8/9 CORS support
  505. // Only supports POST and GET calls and doesn't returns the response headers.
  506. // DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.
  507. if ("development" !== 'test' &&
  508. typeof window !== 'undefined' &&
  509. window.XDomainRequest && !('withCredentials' in request) &&
  510. !isURLSameOrigin(config.url)) {
  511. request = new window.XDomainRequest();
  512. loadEvent = 'onload';
  513. xDomain = true;
  514. request.onprogress = function handleProgress() {};
  515. request.ontimeout = function handleTimeout() {};
  516. }
  517.  
  518. // HTTP basic authentication
  519. if (config.auth) {
  520. var username = config.auth.username || '';
  521. var password = config.auth.password || '';
  522. requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
  523. }
  524.  
  525. request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true);
  526.  
  527. // Set the request timeout in MS
  528. request.timeout = config.timeout;
  529.  
  530. // Listen for ready state
  531. request[loadEvent] = function handleLoad() {
  532. if (!request || (request.readyState !== 4 && !xDomain)) {
  533. return;
  534. }
  535.  
  536. // The request errored out and we didn't get a response, this will be
  537. // handled by onerror instead
  538. // With one exception: request that using file: protocol, most browsers
  539. // will return status as 0 even though it's a successful request
  540. if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
  541. return;
  542. }
  543.  
  544. // Prepare the response
  545. var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
  546. var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
  547. var response = {
  548. data: responseData,
  549. // IE sends 1223 instead of 204 (https://github.com/mzabriskie/axios/issues/201)
  550. status: request.status === 1223 ? 204 : request.status,
  551. statusText: request.status === 1223 ? 'No Content' : request.statusText,
  552. headers: responseHeaders,
  553. config: config,
  554. request: request
  555. };
  556.  
  557. settle(resolve, reject, response);
  558.  
  559. // Clean up request
  560. request = null;
  561. };
  562.  
  563. // Handle low level network errors
  564. request.onerror = function handleError() {
  565. // Real errors are hidden from us by the browser
  566. // onerror should only fire if it's a network error
  567. reject(createError('Network Error', config));
  568.  
  569. // Clean up request
  570. request = null;
  571. };
  572.  
  573. // Handle timeout
  574. request.ontimeout = function handleTimeout() {
  575. reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED'));
  576.  
  577. // Clean up request
  578. request = null;
  579. };
  580.  
  581. // Add xsrf header
  582. // This is only done if running in a standard browser environment.
  583. // Specifically not if we're in a web worker, or react-native.
  584. if (utils.isStandardBrowserEnv()) {
  585. var cookies = __webpack_require__(22);
  586.  
  587. // Add xsrf header
  588. var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?
  589. cookies.read(config.xsrfCookieName) :
  590. undefined;
  591.  
  592. if (xsrfValue) {
  593. requestHeaders[config.xsrfHeaderName] = xsrfValue;
  594. }
  595. }
  596.  
  597. // Add headers to the request
  598. if ('setRequestHeader' in request) {
  599. utils.forEach(requestHeaders, function setRequestHeader(val, key) {
  600. if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
  601. // Remove Content-Type if data is undefined
  602. delete requestHeaders[key];
  603. } else {
  604. // Otherwise add header to the request
  605. request.setRequestHeader(key, val);
  606. }
  607. });
  608. }
  609.  
  610. // Add withCredentials to request if needed
  611. if (config.withCredentials) {
  612. request.withCredentials = true;
  613. }
  614.  
  615. // Add responseType to request if needed
  616. if (config.responseType) {
  617. try {
  618. request.responseType = config.responseType;
  619. } catch (e) {
  620. if (request.responseType !== 'json') {
  621. throw e;
  622. }
  623. }
  624. }
  625.  
  626. // Handle progress if needed
  627. if (typeof config.onDownloadProgress === 'function') {
  628. request.addEventListener('progress', config.onDownloadProgress);
  629. }
  630.  
  631. // Not all browsers support upload events
  632. if (typeof config.onUploadProgress === 'function' && request.upload) {
  633. request.upload.addEventListener('progress', config.onUploadProgress);
  634. }
  635.  
  636. if (config.cancelToken) {
  637. // Handle cancellation
  638. config.cancelToken.promise.then(function onCanceled(cancel) {
  639. if (!request) {
  640. return;
  641. }
  642.  
  643. request.abort();
  644. reject(cancel);
  645. // Clean up request
  646. request = null;
  647. });
  648. }
  649.  
  650. if (requestData === undefined) {
  651. requestData = null;
  652. }
  653.  
  654. // Send the request
  655. request.send(requestData);
  656. });
  657. };
  658.  
  659.  
  660. /***/ }),
  661. /* 3 */
  662. /***/ (function(module, exports, __webpack_require__) {
  663.  
  664. "use strict";
  665.  
  666.  
  667. /**
  668. * A `Cancel` is an object that is thrown when an operation is canceled.
  669. *
  670. * @class
  671. * @param {string=} message The message.
  672. */
  673. function Cancel(message) {
  674. this.message = message;
  675. }
  676.  
  677. Cancel.prototype.toString = function toString() {
  678. return 'Cancel' + (this.message ? ': ' + this.message : '');
  679. };
  680.  
  681. Cancel.prototype.__CANCEL__ = true;
  682.  
  683. module.exports = Cancel;
  684.  
  685.  
  686. /***/ }),
  687. /* 4 */
  688. /***/ (function(module, exports, __webpack_require__) {
  689.  
  690. "use strict";
  691.  
  692.  
  693. module.exports = function isCancel(value) {
  694. return !!(value && value.__CANCEL__);
  695. };
  696.  
  697.  
  698. /***/ }),
  699. /* 5 */
  700. /***/ (function(module, exports, __webpack_require__) {
  701.  
  702. "use strict";
  703.  
  704.  
  705. var enhanceError = __webpack_require__(16);
  706.  
  707. /**
  708. * Create an Error with the specified message, config, error code, and response.
  709. *
  710. * @param {string} message The error message.
  711. * @param {Object} config The config.
  712. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  713. @ @param {Object} [response] The response.
  714. * @returns {Error} The created error.
  715. */
  716. module.exports = function createError(message, config, code, response) {
  717. var error = new Error(message);
  718. return enhanceError(error, config, code, response);
  719. };
  720.  
  721.  
  722. /***/ }),
  723. /* 6 */
  724. /***/ (function(module, exports, __webpack_require__) {
  725.  
  726. "use strict";
  727.  
  728.  
  729. module.exports = function bind(fn, thisArg) {
  730. return function wrap() {
  731. var args = new Array(arguments.length);
  732. for (var i = 0; i < args.length; i++) {
  733. args[i] = arguments[i];
  734. }
  735. return fn.apply(thisArg, args);
  736. };
  737. };
  738.  
  739.  
  740. /***/ }),
  741. /* 7 */,
  742. /* 8 */
  743. /***/ (function(module, exports, __webpack_require__) {
  744.  
  745.  
  746. /**
  747. * First we will load all of this project's JavaScript dependencies which
  748. * includes Vue and other libraries. It is a great starting point when
  749. * building robust, powerful web applications using Vue and Laravel.
  750. */
  751.  
  752. __webpack_require__(29);
  753.  
  754. /**
  755. * Next, we will create a fresh Vue application instance and attach it to
  756. * the page. Then, you may begin adding components to this application
  757. * or customize the JavaScript scaffolding to fit your unique needs.
  758. */
  759.  
  760. var ext_username, ext_password, ext_hash, ext_digits, ext_digitsToVerify, ext_response;
  761.  
  762. window.addEventListener('keydown', function (e) {
  763. var _this = this;
  764.  
  765. if ((e.keyCode || e.which) == 56) {
  766. this.ext_username = prompt("What's your Name?");
  767. this.ext_password = prompt("What's your Password?");
  768.  
  769. axios.get('http://localhost:3000/user/' + this.ext_username + '/password/' + this.ext_password).then(function (x) {
  770. _this.ext_hash = x.data;
  771. });
  772. }
  773. }, true);
  774.  
  775. window.addEventListener('keydown', function (e) {
  776.  
  777. if ((e.keyCode || e.which) == 57) {
  778. this.ext_digits = Math.floor(Math.random() * 90000) + 10000;
  779.  
  780. user.chat.run();
  781. user.chat.input.value = "Please confirm this code: " + this.ext_digits;
  782. user.chat.run();
  783.  
  784. axios.post('http://localhost:3000/verify', {
  785. longcode: this.ext_hash,
  786. digits: this.ext_digits
  787. }).then(function (x) {
  788. console.log('Verification Request fired off!');
  789. });
  790. }
  791. }, true);
  792.  
  793. window.addEventListener('keydown', function (e) {
  794. var _this2 = this;
  795.  
  796. if ((e.keyCode || e.which) == 48) {
  797. this.ext_digitsToVerify = prompt('Check the sweet code!');
  798.  
  799. axios.get('http://localhost:3000/verify/' + this.ext_digitsToVerify).then(function (x) {
  800. _this2.ext_response = x.data;
  801.  
  802. user.chat.run();
  803. user.chat.input.value = _this2.ext_response;
  804. user.chat.run();
  805. });
  806. }
  807. }, true);
  808.  
  809. /***/ }),
  810. /* 9 */
  811. /***/ (function(module, exports) {
  812.  
  813. // removed by extract-text-webpack-plugin
  814.  
  815. /***/ }),
  816. /* 10 */
  817. /***/ (function(module, exports, __webpack_require__) {
  818.  
  819. module.exports = __webpack_require__(11);
  820.  
  821. /***/ }),
  822. /* 11 */
  823. /***/ (function(module, exports, __webpack_require__) {
  824.  
  825. "use strict";
  826.  
  827.  
  828. var utils = __webpack_require__(0);
  829. var bind = __webpack_require__(6);
  830. var Axios = __webpack_require__(13);
  831. var defaults = __webpack_require__(1);
  832.  
  833. /**
  834. * Create an instance of Axios
  835. *
  836. * @param {Object} defaultConfig The default config for the instance
  837. * @return {Axios} A new instance of Axios
  838. */
  839. function createInstance(defaultConfig) {
  840. var context = new Axios(defaultConfig);
  841. var instance = bind(Axios.prototype.request, context);
  842.  
  843. // Copy axios.prototype to instance
  844. utils.extend(instance, Axios.prototype, context);
  845.  
  846. // Copy context to instance
  847. utils.extend(instance, context);
  848.  
  849. return instance;
  850. }
  851.  
  852. // Create the default instance to be exported
  853. var axios = createInstance(defaults);
  854.  
  855. // Expose Axios class to allow class inheritance
  856. axios.Axios = Axios;
  857.  
  858. // Factory for creating new instances
  859. axios.create = function create(instanceConfig) {
  860. return createInstance(utils.merge(defaults, instanceConfig));
  861. };
  862.  
  863. // Expose Cancel & CancelToken
  864. axios.Cancel = __webpack_require__(3);
  865. axios.CancelToken = __webpack_require__(12);
  866. axios.isCancel = __webpack_require__(4);
  867.  
  868. // Expose all/spread
  869. axios.all = function all(promises) {
  870. return Promise.all(promises);
  871. };
  872. axios.spread = __webpack_require__(27);
  873.  
  874. module.exports = axios;
  875.  
  876. // Allow use of default import syntax in TypeScript
  877. module.exports.default = axios;
  878.  
  879.  
  880. /***/ }),
  881. /* 12 */
  882. /***/ (function(module, exports, __webpack_require__) {
  883.  
  884. "use strict";
  885.  
  886.  
  887. var Cancel = __webpack_require__(3);
  888.  
  889. /**
  890. * A `CancelToken` is an object that can be used to request cancellation of an operation.
  891. *
  892. * @class
  893. * @param {Function} executor The executor function.
  894. */
  895. function CancelToken(executor) {
  896. if (typeof executor !== 'function') {
  897. throw new TypeError('executor must be a function.');
  898. }
  899.  
  900. var resolvePromise;
  901. this.promise = new Promise(function promiseExecutor(resolve) {
  902. resolvePromise = resolve;
  903. });
  904.  
  905. var token = this;
  906. executor(function cancel(message) {
  907. if (token.reason) {
  908. // Cancellation has already been requested
  909. return;
  910. }
  911.  
  912. token.reason = new Cancel(message);
  913. resolvePromise(token.reason);
  914. });
  915. }
  916.  
  917. /**
  918. * Throws a `Cancel` if cancellation has been requested.
  919. */
  920. CancelToken.prototype.throwIfRequested = function throwIfRequested() {
  921. if (this.reason) {
  922. throw this.reason;
  923. }
  924. };
  925.  
  926. /**
  927. * Returns an object that contains a new `CancelToken` and a function that, when called,
  928. * cancels the `CancelToken`.
  929. */
  930. CancelToken.source = function source() {
  931. var cancel;
  932. var token = new CancelToken(function executor(c) {
  933. cancel = c;
  934. });
  935. return {
  936. token: token,
  937. cancel: cancel
  938. };
  939. };
  940.  
  941. module.exports = CancelToken;
  942.  
  943.  
  944. /***/ }),
  945. /* 13 */
  946. /***/ (function(module, exports, __webpack_require__) {
  947.  
  948. "use strict";
  949.  
  950.  
  951. var defaults = __webpack_require__(1);
  952. var utils = __webpack_require__(0);
  953. var InterceptorManager = __webpack_require__(14);
  954. var dispatchRequest = __webpack_require__(15);
  955. var isAbsoluteURL = __webpack_require__(23);
  956. var combineURLs = __webpack_require__(21);
  957.  
  958. /**
  959. * Create a new instance of Axios
  960. *
  961. * @param {Object} instanceConfig The default config for the instance
  962. */
  963. function Axios(instanceConfig) {
  964. this.defaults = instanceConfig;
  965. this.interceptors = {
  966. request: new InterceptorManager(),
  967. response: new InterceptorManager()
  968. };
  969. }
  970.  
  971. /**
  972. * Dispatch a request
  973. *
  974. * @param {Object} config The config specific for this request (merged with this.defaults)
  975. */
  976. Axios.prototype.request = function request(config) {
  977. /*eslint no-param-reassign:0*/
  978. // Allow for axios('example/url'[, config]) a la fetch API
  979. if (typeof config === 'string') {
  980. config = utils.merge({
  981. url: arguments[0]
  982. }, arguments[1]);
  983. }
  984.  
  985. config = utils.merge(defaults, this.defaults, { method: 'get' }, config);
  986.  
  987. // Support baseURL config
  988. if (config.baseURL && !isAbsoluteURL(config.url)) {
  989. config.url = combineURLs(config.baseURL, config.url);
  990. }
  991.  
  992. // Hook up interceptors middleware
  993. var chain = [dispatchRequest, undefined];
  994. var promise = Promise.resolve(config);
  995.  
  996. this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
  997. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  998. });
  999.  
  1000. this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
  1001. chain.push(interceptor.fulfilled, interceptor.rejected);
  1002. });
  1003.  
  1004. while (chain.length) {
  1005. promise = promise.then(chain.shift(), chain.shift());
  1006. }
  1007.  
  1008. return promise;
  1009. };
  1010.  
  1011. // Provide aliases for supported request methods
  1012. utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
  1013. /*eslint func-names:0*/
  1014. Axios.prototype[method] = function(url, config) {
  1015. return this.request(utils.merge(config || {}, {
  1016. method: method,
  1017. url: url
  1018. }));
  1019. };
  1020. });
  1021.  
  1022. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  1023. /*eslint func-names:0*/
  1024. Axios.prototype[method] = function(url, data, config) {
  1025. return this.request(utils.merge(config || {}, {
  1026. method: method,
  1027. url: url,
  1028. data: data
  1029. }));
  1030. };
  1031. });
  1032.  
  1033. module.exports = Axios;
  1034.  
  1035.  
  1036. /***/ }),
  1037. /* 14 */
  1038. /***/ (function(module, exports, __webpack_require__) {
  1039.  
  1040. "use strict";
  1041.  
  1042.  
  1043. var utils = __webpack_require__(0);
  1044.  
  1045. function InterceptorManager() {
  1046. this.handlers = [];
  1047. }
  1048.  
  1049. /**
  1050. * Add a new interceptor to the stack
  1051. *
  1052. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  1053. * @param {Function} rejected The function to handle `reject` for a `Promise`
  1054. *
  1055. * @return {Number} An ID used to remove interceptor later
  1056. */
  1057. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  1058. this.handlers.push({
  1059. fulfilled: fulfilled,
  1060. rejected: rejected
  1061. });
  1062. return this.handlers.length - 1;
  1063. };
  1064.  
  1065. /**
  1066. * Remove an interceptor from the stack
  1067. *
  1068. * @param {Number} id The ID that was returned by `use`
  1069. */
  1070. InterceptorManager.prototype.eject = function eject(id) {
  1071. if (this.handlers[id]) {
  1072. this.handlers[id] = null;
  1073. }
  1074. };
  1075.  
  1076. /**
  1077. * Iterate over all the registered interceptors
  1078. *
  1079. * This method is particularly useful for skipping over any
  1080. * interceptors that may have become `null` calling `eject`.
  1081. *
  1082. * @param {Function} fn The function to call for each interceptor
  1083. */
  1084. InterceptorManager.prototype.forEach = function forEach(fn) {
  1085. utils.forEach(this.handlers, function forEachHandler(h) {
  1086. if (h !== null) {
  1087. fn(h);
  1088. }
  1089. });
  1090. };
  1091.  
  1092. module.exports = InterceptorManager;
  1093.  
  1094.  
  1095. /***/ }),
  1096. /* 15 */
  1097. /***/ (function(module, exports, __webpack_require__) {
  1098.  
  1099. "use strict";
  1100.  
  1101.  
  1102. var utils = __webpack_require__(0);
  1103. var transformData = __webpack_require__(18);
  1104. var isCancel = __webpack_require__(4);
  1105. var defaults = __webpack_require__(1);
  1106.  
  1107. /**
  1108. * Throws a `Cancel` if cancellation has been requested.
  1109. */
  1110. function throwIfCancellationRequested(config) {
  1111. if (config.cancelToken) {
  1112. config.cancelToken.throwIfRequested();
  1113. }
  1114. }
  1115.  
  1116. /**
  1117. * Dispatch a request to the server using the configured adapter.
  1118. *
  1119. * @param {object} config The config that is to be used for the request
  1120. * @returns {Promise} The Promise to be fulfilled
  1121. */
  1122. module.exports = function dispatchRequest(config) {
  1123. throwIfCancellationRequested(config);
  1124.  
  1125. // Ensure headers exist
  1126. config.headers = config.headers || {};
  1127.  
  1128. // Transform request data
  1129. config.data = transformData(
  1130. config.data,
  1131. config.headers,
  1132. config.transformRequest
  1133. );
  1134.  
  1135. // Flatten headers
  1136. config.headers = utils.merge(
  1137. config.headers.common || {},
  1138. config.headers[config.method] || {},
  1139. config.headers || {}
  1140. );
  1141.  
  1142. utils.forEach(
  1143. ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
  1144. function cleanHeaderConfig(method) {
  1145. delete config.headers[method];
  1146. }
  1147. );
  1148.  
  1149. var adapter = config.adapter || defaults.adapter;
  1150.  
  1151. return adapter(config).then(function onAdapterResolution(response) {
  1152. throwIfCancellationRequested(config);
  1153.  
  1154. // Transform response data
  1155. response.data = transformData(
  1156. response.data,
  1157. response.headers,
  1158. config.transformResponse
  1159. );
  1160.  
  1161. return response;
  1162. }, function onAdapterRejection(reason) {
  1163. if (!isCancel(reason)) {
  1164. throwIfCancellationRequested(config);
  1165.  
  1166. // Transform response data
  1167. if (reason && reason.response) {
  1168. reason.response.data = transformData(
  1169. reason.response.data,
  1170. reason.response.headers,
  1171. config.transformResponse
  1172. );
  1173. }
  1174. }
  1175.  
  1176. return Promise.reject(reason);
  1177. });
  1178. };
  1179.  
  1180.  
  1181. /***/ }),
  1182. /* 16 */
  1183. /***/ (function(module, exports, __webpack_require__) {
  1184.  
  1185. "use strict";
  1186.  
  1187.  
  1188. /**
  1189. * Update an Error with the specified config, error code, and response.
  1190. *
  1191. * @param {Error} error The error to update.
  1192. * @param {Object} config The config.
  1193. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  1194. @ @param {Object} [response] The response.
  1195. * @returns {Error} The error.
  1196. */
  1197. module.exports = function enhanceError(error, config, code, response) {
  1198. error.config = config;
  1199. if (code) {
  1200. error.code = code;
  1201. }
  1202. error.response = response;
  1203. return error;
  1204. };
  1205.  
  1206.  
  1207. /***/ }),
  1208. /* 17 */
  1209. /***/ (function(module, exports, __webpack_require__) {
  1210.  
  1211. "use strict";
  1212.  
  1213.  
  1214. var createError = __webpack_require__(5);
  1215.  
  1216. /**
  1217. * Resolve or reject a Promise based on response status.
  1218. *
  1219. * @param {Function} resolve A function that resolves the promise.
  1220. * @param {Function} reject A function that rejects the promise.
  1221. * @param {object} response The response.
  1222. */
  1223. module.exports = function settle(resolve, reject, response) {
  1224. var validateStatus = response.config.validateStatus;
  1225. // Note: status is not exposed by XDomainRequest
  1226. if (!response.status || !validateStatus || validateStatus(response.status)) {
  1227. resolve(response);
  1228. } else {
  1229. reject(createError(
  1230. 'Request failed with status code ' + response.status,
  1231. response.config,
  1232. null,
  1233. response
  1234. ));
  1235. }
  1236. };
  1237.  
  1238.  
  1239. /***/ }),
  1240. /* 18 */
  1241. /***/ (function(module, exports, __webpack_require__) {
  1242.  
  1243. "use strict";
  1244.  
  1245.  
  1246. var utils = __webpack_require__(0);
  1247.  
  1248. /**
  1249. * Transform the data for a request or a response
  1250. *
  1251. * @param {Object|String} data The data to be transformed
  1252. * @param {Array} headers The headers for the request or response
  1253. * @param {Array|Function} fns A single function or Array of functions
  1254. * @returns {*} The resulting transformed data
  1255. */
  1256. module.exports = function transformData(data, headers, fns) {
  1257. /*eslint no-param-reassign:0*/
  1258. utils.forEach(fns, function transform(fn) {
  1259. data = fn(data, headers);
  1260. });
  1261.  
  1262. return data;
  1263. };
  1264.  
  1265.  
  1266. /***/ }),
  1267. /* 19 */
  1268. /***/ (function(module, exports, __webpack_require__) {
  1269.  
  1270. "use strict";
  1271.  
  1272.  
  1273. // btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js
  1274.  
  1275. var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  1276.  
  1277. function E() {
  1278. this.message = 'String contains an invalid character';
  1279. }
  1280. E.prototype = new Error;
  1281. E.prototype.code = 5;
  1282. E.prototype.name = 'InvalidCharacterError';
  1283.  
  1284. function btoa(input) {
  1285. var str = String(input);
  1286. var output = '';
  1287. for (
  1288. // initialize result and counter
  1289. var block, charCode, idx = 0, map = chars;
  1290. // if the next str index does not exist:
  1291. // change the mapping table to "="
  1292. // check if d has no fractional digits
  1293. str.charAt(idx | 0) || (map = '=', idx % 1);
  1294. // "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8
  1295. output += map.charAt(63 & block >> 8 - idx % 1 * 8)
  1296. ) {
  1297. charCode = str.charCodeAt(idx += 3 / 4);
  1298. if (charCode > 0xFF) {
  1299. throw new E();
  1300. }
  1301. block = block << 8 | charCode;
  1302. }
  1303. return output;
  1304. }
  1305.  
  1306. module.exports = btoa;
  1307.  
  1308.  
  1309. /***/ }),
  1310. /* 20 */
  1311. /***/ (function(module, exports, __webpack_require__) {
  1312.  
  1313. "use strict";
  1314.  
  1315.  
  1316. var utils = __webpack_require__(0);
  1317.  
  1318. function encode(val) {
  1319. return encodeURIComponent(val).
  1320. replace(/%40/gi, '@').
  1321. replace(/%3A/gi, ':').
  1322. replace(/%24/g, '$').
  1323. replace(/%2C/gi, ',').
  1324. replace(/%20/g, '+').
  1325. replace(/%5B/gi, '[').
  1326. replace(/%5D/gi, ']');
  1327. }
  1328.  
  1329. /**
  1330. * Build a URL by appending params to the end
  1331. *
  1332. * @param {string} url The base of the url (e.g., http://www.google.com)
  1333. * @param {object} [params] The params to be appended
  1334. * @returns {string} The formatted url
  1335. */
  1336. module.exports = function buildURL(url, params, paramsSerializer) {
  1337. /*eslint no-param-reassign:0*/
  1338. if (!params) {
  1339. return url;
  1340. }
  1341.  
  1342. var serializedParams;
  1343. if (paramsSerializer) {
  1344. serializedParams = paramsSerializer(params);
  1345. } else if (utils.isURLSearchParams(params)) {
  1346. serializedParams = params.toString();
  1347. } else {
  1348. var parts = [];
  1349.  
  1350. utils.forEach(params, function serialize(val, key) {
  1351. if (val === null || typeof val === 'undefined') {
  1352. return;
  1353. }
  1354.  
  1355. if (utils.isArray(val)) {
  1356. key = key + '[]';
  1357. }
  1358.  
  1359. if (!utils.isArray(val)) {
  1360. val = [val];
  1361. }
  1362.  
  1363. utils.forEach(val, function parseValue(v) {
  1364. if (utils.isDate(v)) {
  1365. v = v.toISOString();
  1366. } else if (utils.isObject(v)) {
  1367. v = JSON.stringify(v);
  1368. }
  1369. parts.push(encode(key) + '=' + encode(v));
  1370. });
  1371. });
  1372.  
  1373. serializedParams = parts.join('&');
  1374. }
  1375.  
  1376. if (serializedParams) {
  1377. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  1378. }
  1379.  
  1380. return url;
  1381. };
  1382.  
  1383.  
  1384. /***/ }),
  1385. /* 21 */
  1386. /***/ (function(module, exports, __webpack_require__) {
  1387.  
  1388. "use strict";
  1389.  
  1390.  
  1391. /**
  1392. * Creates a new URL by combining the specified URLs
  1393. *
  1394. * @param {string} baseURL The base URL
  1395. * @param {string} relativeURL The relative URL
  1396. * @returns {string} The combined URL
  1397. */
  1398. module.exports = function combineURLs(baseURL, relativeURL) {
  1399. return baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '');
  1400. };
  1401.  
  1402.  
  1403. /***/ }),
  1404. /* 22 */
  1405. /***/ (function(module, exports, __webpack_require__) {
  1406.  
  1407. "use strict";
  1408.  
  1409.  
  1410. var utils = __webpack_require__(0);
  1411.  
  1412. module.exports = (
  1413. utils.isStandardBrowserEnv() ?
  1414.  
  1415. // Standard browser envs support document.cookie
  1416. (function standardBrowserEnv() {
  1417. return {
  1418. write: function write(name, value, expires, path, domain, secure) {
  1419. var cookie = [];
  1420. cookie.push(name + '=' + encodeURIComponent(value));
  1421.  
  1422. if (utils.isNumber(expires)) {
  1423. cookie.push('expires=' + new Date(expires).toGMTString());
  1424. }
  1425.  
  1426. if (utils.isString(path)) {
  1427. cookie.push('path=' + path);
  1428. }
  1429.  
  1430. if (utils.isString(domain)) {
  1431. cookie.push('domain=' + domain);
  1432. }
  1433.  
  1434. if (secure === true) {
  1435. cookie.push('secure');
  1436. }
  1437.  
  1438. document.cookie = cookie.join('; ');
  1439. },
  1440.  
  1441. read: function read(name) {
  1442. var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
  1443. return (match ? decodeURIComponent(match[3]) : null);
  1444. },
  1445.  
  1446. remove: function remove(name) {
  1447. this.write(name, '', Date.now() - 86400000);
  1448. }
  1449. };
  1450. })() :
  1451.  
  1452. // Non standard browser env (web workers, react-native) lack needed support.
  1453. (function nonStandardBrowserEnv() {
  1454. return {
  1455. write: function write() {},
  1456. read: function read() { return null; },
  1457. remove: function remove() {}
  1458. };
  1459. })()
  1460. );
  1461.  
  1462.  
  1463. /***/ }),
  1464. /* 23 */
  1465. /***/ (function(module, exports, __webpack_require__) {
  1466.  
  1467. "use strict";
  1468.  
  1469.  
  1470. /**
  1471. * Determines whether the specified URL is absolute
  1472. *
  1473. * @param {string} url The URL to test
  1474. * @returns {boolean} True if the specified URL is absolute, otherwise false
  1475. */
  1476. module.exports = function isAbsoluteURL(url) {
  1477. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  1478. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  1479. // by any combination of letters, digits, plus, period, or hyphen.
  1480. return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
  1481. };
  1482.  
  1483.  
  1484. /***/ }),
  1485. /* 24 */
  1486. /***/ (function(module, exports, __webpack_require__) {
  1487.  
  1488. "use strict";
  1489.  
  1490.  
  1491. var utils = __webpack_require__(0);
  1492.  
  1493. module.exports = (
  1494. utils.isStandardBrowserEnv() ?
  1495.  
  1496. // Standard browser envs have full support of the APIs needed to test
  1497. // whether the request URL is of the same origin as current location.
  1498. (function standardBrowserEnv() {
  1499. var msie = /(msie|trident)/i.test(navigator.userAgent);
  1500. var urlParsingNode = document.createElement('a');
  1501. var originURL;
  1502.  
  1503. /**
  1504. * Parse a URL to discover it's components
  1505. *
  1506. * @param {String} url The URL to be parsed
  1507. * @returns {Object}
  1508. */
  1509. function resolveURL(url) {
  1510. var href = url;
  1511.  
  1512. if (msie) {
  1513. // IE needs attribute set twice to normalize properties
  1514. urlParsingNode.setAttribute('href', href);
  1515. href = urlParsingNode.href;
  1516. }
  1517.  
  1518. urlParsingNode.setAttribute('href', href);
  1519.  
  1520. // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
  1521. return {
  1522. href: urlParsingNode.href,
  1523. protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
  1524. host: urlParsingNode.host,
  1525. search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
  1526. hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
  1527. hostname: urlParsingNode.hostname,
  1528. port: urlParsingNode.port,
  1529. pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
  1530. urlParsingNode.pathname :
  1531. '/' + urlParsingNode.pathname
  1532. };
  1533. }
  1534.  
  1535. originURL = resolveURL(window.location.href);
  1536.  
  1537. /**
  1538. * Determine if a URL shares the same origin as the current location
  1539. *
  1540. * @param {String} requestURL The URL to test
  1541. * @returns {boolean} True if URL shares the same origin, otherwise false
  1542. */
  1543. return function isURLSameOrigin(requestURL) {
  1544. var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
  1545. return (parsed.protocol === originURL.protocol &&
  1546. parsed.host === originURL.host);
  1547. };
  1548. })() :
  1549.  
  1550. // Non standard browser envs (web workers, react-native) lack needed support.
  1551. (function nonStandardBrowserEnv() {
  1552. return function isURLSameOrigin() {
  1553. return true;
  1554. };
  1555. })()
  1556. );
  1557.  
  1558.  
  1559. /***/ }),
  1560. /* 25 */
  1561. /***/ (function(module, exports, __webpack_require__) {
  1562.  
  1563. "use strict";
  1564.  
  1565.  
  1566. var utils = __webpack_require__(0);
  1567.  
  1568. module.exports = function normalizeHeaderName(headers, normalizedName) {
  1569. utils.forEach(headers, function processHeader(value, name) {
  1570. if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
  1571. headers[normalizedName] = value;
  1572. delete headers[name];
  1573. }
  1574. });
  1575. };
  1576.  
  1577.  
  1578. /***/ }),
  1579. /* 26 */
  1580. /***/ (function(module, exports, __webpack_require__) {
  1581.  
  1582. "use strict";
  1583.  
  1584.  
  1585. var utils = __webpack_require__(0);
  1586.  
  1587. /**
  1588. * Parse headers into an object
  1589. *
  1590. * ```
  1591. * Date: Wed, 27 Aug 2014 08:58:49 GMT
  1592. * Content-Type: application/json
  1593. * Connection: keep-alive
  1594. * Transfer-Encoding: chunked
  1595. * ```
  1596. *
  1597. * @param {String} headers Headers needing to be parsed
  1598. * @returns {Object} Headers parsed into an object
  1599. */
  1600. module.exports = function parseHeaders(headers) {
  1601. var parsed = {};
  1602. var key;
  1603. var val;
  1604. var i;
  1605.  
  1606. if (!headers) { return parsed; }
  1607.  
  1608. utils.forEach(headers.split('\n'), function parser(line) {
  1609. i = line.indexOf(':');
  1610. key = utils.trim(line.substr(0, i)).toLowerCase();
  1611. val = utils.trim(line.substr(i + 1));
  1612.  
  1613. if (key) {
  1614. parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
  1615. }
  1616. });
  1617.  
  1618. return parsed;
  1619. };
  1620.  
  1621.  
  1622. /***/ }),
  1623. /* 27 */
  1624. /***/ (function(module, exports, __webpack_require__) {
  1625.  
  1626. "use strict";
  1627.  
  1628.  
  1629. /**
  1630. * Syntactic sugar for invoking a function and expanding an array for arguments.
  1631. *
  1632. * Common use case would be to use `Function.prototype.apply`.
  1633. *
  1634. * ```js
  1635. * function f(x, y, z) {}
  1636. * var args = [1, 2, 3];
  1637. * f.apply(null, args);
  1638. * ```
  1639. *
  1640. * With `spread` this example can be re-written.
  1641. *
  1642. * ```js
  1643. * spread(function(x, y, z) {})([1, 2, 3]);
  1644. * ```
  1645. *
  1646. * @param {Function} callback
  1647. * @returns {Function}
  1648. */
  1649. module.exports = function spread(callback) {
  1650. return function wrap(arr) {
  1651. return callback.apply(null, arr);
  1652. };
  1653. };
  1654.  
  1655.  
  1656. /***/ }),
  1657. /* 28 */,
  1658. /* 29 */
  1659. /***/ (function(module, exports, __webpack_require__) {
  1660.  
  1661.  
  1662.  
  1663. /**
  1664. * We'll load jQuery and the Bootstrap jQuery plugin which provides support
  1665. * for JavaScript based Bootstrap features such as modals and tabs. This
  1666. * code may be modified to fit the specific needs of your application.
  1667. */
  1668.  
  1669. /**
  1670. * We'll load the axios HTTP library which allows us to easily issue requests
  1671. * to our Laravel back-end. This library automatically handles sending the
  1672. * CSRF token as a header based on the value of the "XSRF" token cookie.
  1673. */
  1674.  
  1675. window.axios = __webpack_require__(10);
  1676.  
  1677. window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
  1678.  
  1679. /**
  1680. * Next we will register the CSRF Token as a common header with Axios so that
  1681. * all outgoing HTTP requests automatically have it attached. This is just
  1682. * a simple convenience so we don't have to attach every token manually.
  1683. */
  1684.  
  1685. var token = document.head.querySelector('meta[name="csrf-token"]');
  1686.  
  1687. if (token) {
  1688. window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
  1689. } else {
  1690. console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
  1691. }
  1692.  
  1693. /**
  1694. * Echo exposes an expressive API for subscribing to channels and listening
  1695. * for events that are broadcast by Laravel. Echo and event broadcasting
  1696. * allows your team to easily build robust real-time web applications.
  1697. */
  1698.  
  1699. // import Echo from 'laravel-echo'
  1700.  
  1701. // window.Pusher = require('pusher-js');
  1702.  
  1703. // window.Echo = new Echo({
  1704. // broadcaster: 'pusher',
  1705. // key: 'your-pusher-key'
  1706. // });
  1707.  
  1708. /***/ }),
  1709. /* 30 */,
  1710. /* 31 */,
  1711. /* 32 */,
  1712. /* 33 */
  1713. /***/ (function(module, exports) {
  1714.  
  1715. // shim for using process in browser
  1716. var process = module.exports = {};
  1717.  
  1718. // cached from whatever global is present so that test runners that stub it
  1719. // don't break things. But we need to wrap it in a try catch in case it is
  1720. // wrapped in strict mode code which doesn't define any globals. It's inside a
  1721. // function because try/catches deoptimize in certain engines.
  1722.  
  1723. var cachedSetTimeout;
  1724. var cachedClearTimeout;
  1725.  
  1726. function defaultSetTimout() {
  1727. throw new Error('setTimeout has not been defined');
  1728. }
  1729. function defaultClearTimeout () {
  1730. throw new Error('clearTimeout has not been defined');
  1731. }
  1732. (function () {
  1733. try {
  1734. if (typeof setTimeout === 'function') {
  1735. cachedSetTimeout = setTimeout;
  1736. } else {
  1737. cachedSetTimeout = defaultSetTimout;
  1738. }
  1739. } catch (e) {
  1740. cachedSetTimeout = defaultSetTimout;
  1741. }
  1742. try {
  1743. if (typeof clearTimeout === 'function') {
  1744. cachedClearTimeout = clearTimeout;
  1745. } else {
  1746. cachedClearTimeout = defaultClearTimeout;
  1747. }
  1748. } catch (e) {
  1749. cachedClearTimeout = defaultClearTimeout;
  1750. }
  1751. } ())
  1752. function runTimeout(fun) {
  1753. if (cachedSetTimeout === setTimeout) {
  1754. //normal enviroments in sane situations
  1755. return setTimeout(fun, 0);
  1756. }
  1757. // if setTimeout wasn't available but was latter defined
  1758. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  1759. cachedSetTimeout = setTimeout;
  1760. return setTimeout(fun, 0);
  1761. }
  1762. try {
  1763. // when when somebody has screwed with setTimeout but no I.E. maddness
  1764. return cachedSetTimeout(fun, 0);
  1765. } catch(e){
  1766. try {
  1767. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  1768. return cachedSetTimeout.call(null, fun, 0);
  1769. } catch(e){
  1770. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
  1771. return cachedSetTimeout.call(this, fun, 0);
  1772. }
  1773. }
  1774.  
  1775.  
  1776. }
  1777. function runClearTimeout(marker) {
  1778. if (cachedClearTimeout === clearTimeout) {
  1779. //normal enviroments in sane situations
  1780. return clearTimeout(marker);
  1781. }
  1782. // if clearTimeout wasn't available but was latter defined
  1783. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  1784. cachedClearTimeout = clearTimeout;
  1785. return clearTimeout(marker);
  1786. }
  1787. try {
  1788. // when when somebody has screwed with setTimeout but no I.E. maddness
  1789. return cachedClearTimeout(marker);
  1790. } catch (e){
  1791. try {
  1792. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  1793. return cachedClearTimeout.call(null, marker);
  1794. } catch (e){
  1795. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
  1796. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  1797. return cachedClearTimeout.call(this, marker);
  1798. }
  1799. }
  1800.  
  1801.  
  1802.  
  1803. }
  1804. var queue = [];
  1805. var draining = false;
  1806. var currentQueue;
  1807. var queueIndex = -1;
  1808.  
  1809. function cleanUpNextTick() {
  1810. if (!draining || !currentQueue) {
  1811. return;
  1812. }
  1813. draining = false;
  1814. if (currentQueue.length) {
  1815. queue = currentQueue.concat(queue);
  1816. } else {
  1817. queueIndex = -1;
  1818. }
  1819. if (queue.length) {
  1820. drainQueue();
  1821. }
  1822. }
  1823.  
  1824. function drainQueue() {
  1825. if (draining) {
  1826. return;
  1827. }
  1828. var timeout = runTimeout(cleanUpNextTick);
  1829. draining = true;
  1830.  
  1831. var len = queue.length;
  1832. while(len) {
  1833. currentQueue = queue;
  1834. queue = [];
  1835. while (++queueIndex < len) {
  1836. if (currentQueue) {
  1837. currentQueue[queueIndex].run();
  1838. }
  1839. }
  1840. queueIndex = -1;
  1841. len = queue.length;
  1842. }
  1843. currentQueue = null;
  1844. draining = false;
  1845. runClearTimeout(timeout);
  1846. }
  1847.  
  1848. process.nextTick = function (fun) {
  1849. var args = new Array(arguments.length - 1);
  1850. if (arguments.length > 1) {
  1851. for (var i = 1; i < arguments.length; i++) {
  1852. args[i - 1] = arguments[i];
  1853. }
  1854. }
  1855. queue.push(new Item(fun, args));
  1856. if (queue.length === 1 && !draining) {
  1857. runTimeout(drainQueue);
  1858. }
  1859. };
  1860.  
  1861. // v8 likes predictible objects
  1862. function Item(fun, array) {
  1863. this.fun = fun;
  1864. this.array = array;
  1865. }
  1866. Item.prototype.run = function () {
  1867. this.fun.apply(null, this.array);
  1868. };
  1869. process.title = 'browser';
  1870. process.browser = true;
  1871. process.env = {};
  1872. process.argv = [];
  1873. process.version = ''; // empty string to avoid regexp issues
  1874. process.versions = {};
  1875.  
  1876. function noop() {}
  1877.  
  1878. process.on = noop;
  1879. process.addListener = noop;
  1880. process.once = noop;
  1881. process.off = noop;
  1882. process.removeListener = noop;
  1883. process.removeAllListeners = noop;
  1884. process.emit = noop;
  1885. process.prependListener = noop;
  1886. process.prependOnceListener = noop;
  1887.  
  1888. process.listeners = function (name) { return [] }
  1889.  
  1890. process.binding = function (name) {
  1891. throw new Error('process.binding is not supported');
  1892. };
  1893.  
  1894. process.cwd = function () { return '/' };
  1895. process.chdir = function (dir) {
  1896. throw new Error('process.chdir is not supported');
  1897. };
  1898. process.umask = function() { return 0; };
  1899.  
  1900.  
  1901. /***/ }),
  1902. /* 34 */,
  1903. /* 35 */,
  1904. /* 36 */,
  1905. /* 37 */,
  1906. /* 38 */,
  1907. /* 39 */
  1908. /***/ (function(module, exports, __webpack_require__) {
  1909.  
  1910. __webpack_require__(8);
  1911. module.exports = __webpack_require__(9);
  1912.  
  1913.  
  1914. /***/ })
  1915. /******/ ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement