diff --git a/.babelrc b/.babelrc new file mode 100644 index 00000000..a814975f --- /dev/null +++ b/.babelrc @@ -0,0 +1,8 @@ +{ + "presets": [ + "env", "import-export" + ], + "plugins": [ + "transfrom-object-rest-spread" + ] +} \ No newline at end of file diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..7d91a22d --- /dev/null +++ b/.eslintrc @@ -0,0 +1,23 @@ +{ + "parser": "babel-eslint", + "extends": "airbnb", + "rules": { + "no-multi-spaces": ["error", { "ignoreEOLComments": true }], + "object-curly-newline": ["error", { + "ObjectExpression": { "minProperties": 5, "multiline": true, "consistent": true }, + "ObjectPattern": { "minProperties": 5, "multiline": true, "consistent": true } + }], + "comma-dangle": ["error", { + "arrays": "always-multiline", + "objects": "always-multiline", + "imports": "always-multiline", + "exports": "always-multiline", + "functions": "never" + }], + "import/extensions": ["error", "always", { + "js": "never", + "mjs": "never" + }], + "react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }] + } +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..ed94f44b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "git.ignoreLimitWarning": true +} \ No newline at end of file diff --git a/lerna.json b/lerna.json new file mode 100644 index 00000000..2b3450d0 --- /dev/null +++ b/lerna.json @@ -0,0 +1,6 @@ +{ + "packages": [ + "packages/*" + ], + "version": "1.0.0" +} diff --git a/package.json b/package.json index 8de1b8eb..1206bb74 100644 --- a/package.json +++ b/package.json @@ -2,5 +2,21 @@ "private": true, "workspaces": [ "packages/*" - ] -} \ No newline at end of file + ], + "devDependencies": { + "babel-cli": "^6.26.0", + "babel-eslint": "^10.0.1", + "babel-jest": "^23.6.0", + "babel-plugin-transform-object-rest-spread": "^6.26.0", + "babel-preset-env": "^1.7.0", + "babel-preset-import-export": "^1.0.2", + "babel-preset-stage-0": "^6.24.1", + "eslint": "^5.11.1", + "eslint-config-airbnb": "^17.1.0", + "eslint-plugin-import": "^2.14.0", + "eslint-plugin-jsx-a11y": "^6.1.2", + "eslint-plugin-react": "^7.12.0", + "lerna": "^3.8.0" + }, + "name": "probro" +} diff --git a/packages/server/index.js b/packages/server/index.js index 1327632f..e4fa646e 100644 --- a/packages/server/index.js +++ b/packages/server/index.js @@ -1,2 +1,3 @@ -const add = require('@probro/common') -console.log('accessing add function from common packages', add(1 ,2)); \ No newline at end of file +import add from '@probro/common'; + +console.log('accessing add function from common packages', add(1, 2)); diff --git a/packages/web/.env b/packages/web/.env new file mode 100644 index 00000000..58a7b59f --- /dev/null +++ b/packages/web/.env @@ -0,0 +1,2 @@ + + SKIP_PREFLIGHT_CHECK=true diff --git a/packages/web/.eslintrc b/packages/web/.eslintrc new file mode 100644 index 00000000..9f893535 --- /dev/null +++ b/packages/web/.eslintrc @@ -0,0 +1,9 @@ +{ + "rules": { + "jsx-a11y/anchor-is-valid": [ "error", { + "components": [ ], + "specialLink": [ "hrefLeft", "hrefRight" ], + "aspects": [ "noHref", "invalidHref", "preferButton" ] + }] + } +} \ No newline at end of file diff --git a/packages/web/.gitignore b/packages/web/.gitignore deleted file mode 100644 index 4d29575d..00000000 --- a/packages/web/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# production -/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* diff --git a/packages/web/config-overrides.js b/packages/web/config-overrides.js index 5e5d6a1e..a13a319f 100644 --- a/packages/web/config-overrides.js +++ b/packages/web/config-overrides.js @@ -2,4 +2,4 @@ const rewireYarnWorkspaces = require('react-app-rewire-yarn-workspaces'); module.exports = function override(config, env) { return rewireYarnWorkspaces(config, env); -} \ No newline at end of file +}; diff --git a/packages/web/db.json b/packages/web/db.json new file mode 100644 index 00000000..eff7aa3c --- /dev/null +++ b/packages/web/db.json @@ -0,0 +1,3 @@ +{ + "user":[{"name": "nabin", "id": "1"}] +} \ No newline at end of file diff --git a/packages/web/node_modules/.bin/json-server b/packages/web/node_modules/.bin/json-server new file mode 120000 index 00000000..1f484f4e --- /dev/null +++ b/packages/web/node_modules/.bin/json-server @@ -0,0 +1 @@ +../../../../node_modules/json-server/lib/cli/bin.js \ No newline at end of file diff --git a/packages/web/node_modules/.bin/react-app-rewired b/packages/web/node_modules/.bin/react-app-rewired new file mode 120000 index 00000000..137c444d --- /dev/null +++ b/packages/web/node_modules/.bin/react-app-rewired @@ -0,0 +1 @@ +../../../../node_modules/react-app-rewired/bin/index.js \ No newline at end of file diff --git a/packages/web/node_modules/.bin/react-scripts b/packages/web/node_modules/.bin/react-scripts new file mode 120000 index 00000000..34cbd3b6 --- /dev/null +++ b/packages/web/node_modules/.bin/react-scripts @@ -0,0 +1 @@ +../../../../node_modules/react-scripts/bin/react-scripts.js \ No newline at end of file diff --git a/packages/web/node_modules/.bin/upgrade-blueprint-2.0.0-rename b/packages/web/node_modules/.bin/upgrade-blueprint-2.0.0-rename new file mode 120000 index 00000000..d47af8f4 --- /dev/null +++ b/packages/web/node_modules/.bin/upgrade-blueprint-2.0.0-rename @@ -0,0 +1 @@ +../../../../node_modules/@blueprintjs/core/scripts/upgrade-blueprint-2.0.0-rename.sh \ No newline at end of file diff --git a/packages/web/node_modules/.bin/upgrade-blueprint-3.0.0-rename b/packages/web/node_modules/.bin/upgrade-blueprint-3.0.0-rename new file mode 120000 index 00000000..258049b0 --- /dev/null +++ b/packages/web/node_modules/.bin/upgrade-blueprint-3.0.0-rename @@ -0,0 +1 @@ +../../../../node_modules/@blueprintjs/core/scripts/upgrade-blueprint-3.0.0-rename.sh \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/02253c587da31247621655087698fbb8.json b/packages/web/node_modules/.cache/babel-loader/02253c587da31247621655087698fbb8.json new file mode 100644 index 00000000..60137b35 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/02253c587da31247621655087698fbb8.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar bind = require('./helpers/bind');\n\nvar isBuffer = require('is-buffer');\n/*global toString:true*/\n// utils is a library of generic helper functions non-specific to axios\n\n\nvar toString = Object.prototype.toString;\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 */\n\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\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 */\n\n\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\n\n\nfunction isFormData(val) {\n return typeof FormData !== 'undefined' && val instanceof FormData;\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 */\n\n\nfunction isArrayBufferView(val) {\n var result;\n\n if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {\n result = ArrayBuffer.isView(val);\n } else {\n result = val && val.buffer && val.buffer instanceof ArrayBuffer;\n }\n\n return result;\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 */\n\n\nfunction isString(val) {\n return typeof val === 'string';\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 */\n\n\nfunction isNumber(val) {\n return typeof val === 'number';\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 */\n\n\nfunction isUndefined(val) {\n return typeof val === 'undefined';\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 */\n\n\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\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 */\n\n\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\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 */\n\n\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\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 */\n\n\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\n\n\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\n\n\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\n\n\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\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 */\n\n\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n */\n\n\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array 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 */\n\n\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n } // Force an array if not already something iterable\n\n\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\n\n\nfunction merge()\n/* obj1, obj2, obj3, ... */\n{\n var result = {};\n\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = merge(result[key], val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n\n return result;\n}\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\n\n\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/02d69021e330d7c0e767c5e97f5ce32d.json b/packages/web/node_modules/.cache/babel-loader/02d69021e330d7c0e767c5e97f5ce32d.json new file mode 100644 index 00000000..53ae917b --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/02d69021e330d7c0e767c5e97f5ce32d.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2018 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport { BLOCKQUOTE, CODE, CODE_BLOCK, HEADING, LABEL, LIST } from \"../../common/classes\";\n\nfunction htmlElement(tagName, tagClassName) {\n return function (props) {\n var className = props.className,\n elementRef = props.elementRef,\n htmlProps = tslib_1.__rest(props, [\"className\", \"elementRef\"]);\n\n return React.createElement(tagName, tslib_1.__assign({}, htmlProps, {\n className: classNames(tagClassName, className),\n ref: elementRef\n }));\n };\n} // the following components are linted by blueprint-html-components because\n// they should rarely be used without the Blueprint classes/styles:\n\n\nexport var H1 = htmlElement(\"h1\", HEADING);\nexport var H2 = htmlElement(\"h2\", HEADING);\nexport var H3 = htmlElement(\"h3\", HEADING);\nexport var H4 = htmlElement(\"h4\", HEADING);\nexport var H5 = htmlElement(\"h5\", HEADING);\nexport var H6 = htmlElement(\"h6\", HEADING);\nexport var Blockquote = htmlElement(\"blockquote\", BLOCKQUOTE);\nexport var Code = htmlElement(\"code\", CODE);\nexport var Pre = htmlElement(\"pre\", CODE_BLOCK);\nexport var Label = htmlElement(\"label\", LABEL); // these two are not linted by blueprint-html-components because there are valid\n// uses of these elements without Blueprint styles:\n\nexport var OL = htmlElement(\"ol\", LIST);\nexport var UL = htmlElement(\"ul\", LIST);","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/03f22db2585335757ccd2660343e278c.json b/packages/web/node_modules/.cache/babel-loader/03f22db2585335757ccd2660343e278c.json new file mode 100644 index 00000000..ae84212a --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/03f22db2585335757ccd2660343e278c.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/0419ce82424307327667318314e7a963.json b/packages/web/node_modules/.cache/babel-loader/0419ce82424307327667318314e7a963.json new file mode 100644 index 00000000..2b24b1a8 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/0419ce82424307327667318314e7a963.json @@ -0,0 +1 @@ +{"ast":null,"code":"module.exports = function (a, b) {\n return a + b;\n};","map":{"version":3,"sources":["/Users/Nabin/workspace/probro/packages/common/index.js"],"names":["module","exports","a","b"],"mappings":"AAAAA,MAAM,CAACC,OAAP,GAAgB,UAACC,CAAD,EAAIC,CAAJ;AAAA,SAAUD,CAAC,GAAGC,CAAd;AAAA,CAAhB","sourcesContent":["module.exports= (a, b) => a + b;\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/04a1c3cc38bf5309d742515d9169046c.json b/packages/web/node_modules/.cache/babel-loader/04a1c3cc38bf5309d742515d9169046c.json new file mode 100644 index 00000000..041c2951 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/04a1c3cc38bf5309d742515d9169046c.json @@ -0,0 +1 @@ +{"ast":null,"code":"// Written in this round about way for babel-transform-imports\nimport matchPath from \"react-router/es/matchPath\";\nexport default matchPath;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/0648c1f16c3cb08af0a80907c5599ca5.json b/packages/web/node_modules/.cache/babel-loader/0648c1f16c3cb08af0a80907c5599ca5.json new file mode 100644 index 00000000..c7b17e67 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/0648c1f16c3cb08af0a80907c5599ca5.json @@ -0,0 +1 @@ +{"ast":null,"code":"/* MIT license */\nvar cssKeywords = require('color-name'); // NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\n\nvar reverseKeywords = {};\n\nfor (var key in cssKeywords) {\n if (cssKeywords.hasOwnProperty(key)) {\n reverseKeywords[cssKeywords[key]] = key;\n }\n}\n\nvar convert = module.exports = {\n rgb: {\n channels: 3,\n labels: 'rgb'\n },\n hsl: {\n channels: 3,\n labels: 'hsl'\n },\n hsv: {\n channels: 3,\n labels: 'hsv'\n },\n hwb: {\n channels: 3,\n labels: 'hwb'\n },\n cmyk: {\n channels: 4,\n labels: 'cmyk'\n },\n xyz: {\n channels: 3,\n labels: 'xyz'\n },\n lab: {\n channels: 3,\n labels: 'lab'\n },\n lch: {\n channels: 3,\n labels: 'lch'\n },\n hex: {\n channels: 1,\n labels: ['hex']\n },\n keyword: {\n channels: 1,\n labels: ['keyword']\n },\n ansi16: {\n channels: 1,\n labels: ['ansi16']\n },\n ansi256: {\n channels: 1,\n labels: ['ansi256']\n },\n hcg: {\n channels: 3,\n labels: ['h', 'c', 'g']\n },\n apple: {\n channels: 3,\n labels: ['r16', 'g16', 'b16']\n },\n gray: {\n channels: 1,\n labels: ['gray']\n }\n}; // hide .channels and .labels properties\n\nfor (var model in convert) {\n if (convert.hasOwnProperty(model)) {\n if (!('channels' in convert[model])) {\n throw new Error('missing channels property: ' + model);\n }\n\n if (!('labels' in convert[model])) {\n throw new Error('missing channel labels property: ' + model);\n }\n\n if (convert[model].labels.length !== convert[model].channels) {\n throw new Error('channel and label counts mismatch: ' + model);\n }\n\n var channels = convert[model].channels;\n var labels = convert[model].labels;\n delete convert[model].channels;\n delete convert[model].labels;\n Object.defineProperty(convert[model], 'channels', {\n value: channels\n });\n Object.defineProperty(convert[model], 'labels', {\n value: labels\n });\n }\n}\n\nconvert.rgb.hsl = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var min = Math.min(r, g, b);\n var max = Math.max(r, g, b);\n var delta = max - min;\n var h;\n var s;\n var l;\n\n if (max === min) {\n h = 0;\n } else if (r === max) {\n h = (g - b) / delta;\n } else if (g === max) {\n h = 2 + (b - r) / delta;\n } else if (b === max) {\n h = 4 + (r - g) / delta;\n }\n\n h = Math.min(h * 60, 360);\n\n if (h < 0) {\n h += 360;\n }\n\n l = (min + max) / 2;\n\n if (max === min) {\n s = 0;\n } else if (l <= 0.5) {\n s = delta / (max + min);\n } else {\n s = delta / (2 - max - min);\n }\n\n return [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n var rdif;\n var gdif;\n var bdif;\n var h;\n var s;\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var v = Math.max(r, g, b);\n var diff = v - Math.min(r, g, b);\n\n var diffc = function diffc(c) {\n return (v - c) / 6 / diff + 1 / 2;\n };\n\n if (diff === 0) {\n h = s = 0;\n } else {\n s = diff / v;\n rdif = diffc(r);\n gdif = diffc(g);\n bdif = diffc(b);\n\n if (r === v) {\n h = bdif - gdif;\n } else if (g === v) {\n h = 1 / 3 + rdif - bdif;\n } else if (b === v) {\n h = 2 / 3 + gdif - rdif;\n }\n\n if (h < 0) {\n h += 1;\n } else if (h > 1) {\n h -= 1;\n }\n }\n\n return [h * 360, s * 100, v * 100];\n};\n\nconvert.rgb.hwb = function (rgb) {\n var r = rgb[0];\n var g = rgb[1];\n var b = rgb[2];\n var h = convert.rgb.hsl(rgb)[0];\n var w = 1 / 255 * Math.min(r, Math.min(g, b));\n b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n return [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var c;\n var m;\n var y;\n var k;\n k = Math.min(1 - r, 1 - g, 1 - b);\n c = (1 - r - k) / (1 - k) || 0;\n m = (1 - g - k) / (1 - k) || 0;\n y = (1 - b - k) / (1 - k) || 0;\n return [c * 100, m * 100, y * 100, k * 100];\n};\n/**\n * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n * */\n\n\nfunction comparativeDistance(x, y) {\n return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2) + Math.pow(x[2] - y[2], 2);\n}\n\nconvert.rgb.keyword = function (rgb) {\n var reversed = reverseKeywords[rgb];\n\n if (reversed) {\n return reversed;\n }\n\n var currentClosestDistance = Infinity;\n var currentClosestKeyword;\n\n for (var keyword in cssKeywords) {\n if (cssKeywords.hasOwnProperty(keyword)) {\n var value = cssKeywords[keyword]; // Compute comparative distance\n\n var distance = comparativeDistance(rgb, value); // Check if its less, if so set as closest\n\n if (distance < currentClosestDistance) {\n currentClosestDistance = distance;\n currentClosestKeyword = keyword;\n }\n }\n }\n\n return currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n return cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255; // assume sRGB\n\n r = r > 0.04045 ? Math.pow((r + 0.055) / 1.055, 2.4) : r / 12.92;\n g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92;\n b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;\n var x = r * 0.4124 + g * 0.3576 + b * 0.1805;\n var y = r * 0.2126 + g * 0.7152 + b * 0.0722;\n var z = r * 0.0193 + g * 0.1192 + b * 0.9505;\n return [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n var xyz = convert.rgb.xyz(rgb);\n var x = xyz[0];\n var y = xyz[1];\n var z = xyz[2];\n var l;\n var a;\n var b;\n x /= 95.047;\n y /= 100;\n z /= 108.883;\n x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;\n y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;\n z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;\n l = 116 * y - 16;\n a = 500 * (x - y);\n b = 200 * (y - z);\n return [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n var h = hsl[0] / 360;\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var t1;\n var t2;\n var t3;\n var rgb;\n var val;\n\n if (s === 0) {\n val = l * 255;\n return [val, val, val];\n }\n\n if (l < 0.5) {\n t2 = l * (1 + s);\n } else {\n t2 = l + s - l * s;\n }\n\n t1 = 2 * l - t2;\n rgb = [0, 0, 0];\n\n for (var i = 0; i < 3; i++) {\n t3 = h + 1 / 3 * -(i - 1);\n\n if (t3 < 0) {\n t3++;\n }\n\n if (t3 > 1) {\n t3--;\n }\n\n if (6 * t3 < 1) {\n val = t1 + (t2 - t1) * 6 * t3;\n } else if (2 * t3 < 1) {\n val = t2;\n } else if (3 * t3 < 2) {\n val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n } else {\n val = t1;\n }\n\n rgb[i] = val * 255;\n }\n\n return rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n var h = hsl[0];\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var smin = s;\n var lmin = Math.max(l, 0.01);\n var sv;\n var v;\n l *= 2;\n s *= l <= 1 ? l : 2 - l;\n smin *= lmin <= 1 ? lmin : 2 - lmin;\n v = (l + s) / 2;\n sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);\n return [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n var h = hsv[0] / 60;\n var s = hsv[1] / 100;\n var v = hsv[2] / 100;\n var hi = Math.floor(h) % 6;\n var f = h - Math.floor(h);\n var p = 255 * v * (1 - s);\n var q = 255 * v * (1 - s * f);\n var t = 255 * v * (1 - s * (1 - f));\n v *= 255;\n\n switch (hi) {\n case 0:\n return [v, t, p];\n\n case 1:\n return [q, v, p];\n\n case 2:\n return [p, v, t];\n\n case 3:\n return [p, q, v];\n\n case 4:\n return [t, p, v];\n\n case 5:\n return [v, p, q];\n }\n};\n\nconvert.hsv.hsl = function (hsv) {\n var h = hsv[0];\n var s = hsv[1] / 100;\n var v = hsv[2] / 100;\n var vmin = Math.max(v, 0.01);\n var lmin;\n var sl;\n var l;\n l = (2 - s) * v;\n lmin = (2 - s) * vmin;\n sl = s * vmin;\n sl /= lmin <= 1 ? lmin : 2 - lmin;\n sl = sl || 0;\n l /= 2;\n return [h, sl * 100, l * 100];\n}; // http://dev.w3.org/csswg/css-color/#hwb-to-rgb\n\n\nconvert.hwb.rgb = function (hwb) {\n var h = hwb[0] / 360;\n var wh = hwb[1] / 100;\n var bl = hwb[2] / 100;\n var ratio = wh + bl;\n var i;\n var v;\n var f;\n var n; // wh + bl cant be > 1\n\n if (ratio > 1) {\n wh /= ratio;\n bl /= ratio;\n }\n\n i = Math.floor(6 * h);\n v = 1 - bl;\n f = 6 * h - i;\n\n if ((i & 0x01) !== 0) {\n f = 1 - f;\n }\n\n n = wh + f * (v - wh); // linear interpolation\n\n var r;\n var g;\n var b;\n\n switch (i) {\n default:\n case 6:\n case 0:\n r = v;\n g = n;\n b = wh;\n break;\n\n case 1:\n r = n;\n g = v;\n b = wh;\n break;\n\n case 2:\n r = wh;\n g = v;\n b = n;\n break;\n\n case 3:\n r = wh;\n g = n;\n b = v;\n break;\n\n case 4:\n r = n;\n g = wh;\n b = v;\n break;\n\n case 5:\n r = v;\n g = wh;\n b = n;\n break;\n }\n\n return [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n var c = cmyk[0] / 100;\n var m = cmyk[1] / 100;\n var y = cmyk[2] / 100;\n var k = cmyk[3] / 100;\n var r;\n var g;\n var b;\n r = 1 - Math.min(1, c * (1 - k) + k);\n g = 1 - Math.min(1, m * (1 - k) + k);\n b = 1 - Math.min(1, y * (1 - k) + k);\n return [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n var x = xyz[0] / 100;\n var y = xyz[1] / 100;\n var z = xyz[2] / 100;\n var r;\n var g;\n var b;\n r = x * 3.2406 + y * -1.5372 + z * -0.4986;\n g = x * -0.9689 + y * 1.8758 + z * 0.0415;\n b = x * 0.0557 + y * -0.2040 + z * 1.0570; // assume sRGB\n\n r = r > 0.0031308 ? 1.055 * Math.pow(r, 1.0 / 2.4) - 0.055 : r * 12.92;\n g = g > 0.0031308 ? 1.055 * Math.pow(g, 1.0 / 2.4) - 0.055 : g * 12.92;\n b = b > 0.0031308 ? 1.055 * Math.pow(b, 1.0 / 2.4) - 0.055 : b * 12.92;\n r = Math.min(Math.max(0, r), 1);\n g = Math.min(Math.max(0, g), 1);\n b = Math.min(Math.max(0, b), 1);\n return [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n var x = xyz[0];\n var y = xyz[1];\n var z = xyz[2];\n var l;\n var a;\n var b;\n x /= 95.047;\n y /= 100;\n z /= 108.883;\n x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;\n y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;\n z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;\n l = 116 * y - 16;\n a = 500 * (x - y);\n b = 200 * (y - z);\n return [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n var l = lab[0];\n var a = lab[1];\n var b = lab[2];\n var x;\n var y;\n var z;\n y = (l + 16) / 116;\n x = a / 500 + y;\n z = y - b / 200;\n var y2 = Math.pow(y, 3);\n var x2 = Math.pow(x, 3);\n var z2 = Math.pow(z, 3);\n y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n x *= 95.047;\n y *= 100;\n z *= 108.883;\n return [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n var l = lab[0];\n var a = lab[1];\n var b = lab[2];\n var hr;\n var h;\n var c;\n hr = Math.atan2(b, a);\n h = hr * 360 / 2 / Math.PI;\n\n if (h < 0) {\n h += 360;\n }\n\n c = Math.sqrt(a * a + b * b);\n return [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n var l = lch[0];\n var c = lch[1];\n var h = lch[2];\n var a;\n var b;\n var hr;\n hr = h / 360 * 2 * Math.PI;\n a = c * Math.cos(hr);\n b = c * Math.sin(hr);\n return [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args) {\n var r = args[0];\n var g = args[1];\n var b = args[2];\n var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization\n\n value = Math.round(value / 50);\n\n if (value === 0) {\n return 30;\n }\n\n var ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));\n\n if (value === 2) {\n ansi += 60;\n }\n\n return ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n // optimization here; we already know the value and don't need to get\n // it converted for us.\n return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n var r = args[0];\n var g = args[1];\n var b = args[2]; // we use the extended greyscale palette here, with the exception of\n // black and white. normal palette only has 4 greyscale shades.\n\n if (r === g && g === b) {\n if (r < 8) {\n return 16;\n }\n\n if (r > 248) {\n return 231;\n }\n\n return Math.round((r - 8) / 247 * 24) + 232;\n }\n\n var ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);\n return ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n var color = args % 10; // handle greyscale\n\n if (color === 0 || color === 7) {\n if (args > 50) {\n color += 3.5;\n }\n\n color = color / 10.5 * 255;\n return [color, color, color];\n }\n\n var mult = (~~(args > 50) + 1) * 0.5;\n var r = (color & 1) * mult * 255;\n var g = (color >> 1 & 1) * mult * 255;\n var b = (color >> 2 & 1) * mult * 255;\n return [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n // handle greyscale\n if (args >= 232) {\n var c = (args - 232) * 10 + 8;\n return [c, c, c];\n }\n\n args -= 16;\n var rem;\n var r = Math.floor(args / 36) / 5 * 255;\n var g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n var b = rem % 6 / 5 * 255;\n return [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n var integer = ((Math.round(args[0]) & 0xFF) << 16) + ((Math.round(args[1]) & 0xFF) << 8) + (Math.round(args[2]) & 0xFF);\n var string = integer.toString(16).toUpperCase();\n return '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\n if (!match) {\n return [0, 0, 0];\n }\n\n var colorString = match[0];\n\n if (match[0].length === 3) {\n colorString = colorString.split('').map(function (char) {\n return char + char;\n }).join('');\n }\n\n var integer = parseInt(colorString, 16);\n var r = integer >> 16 & 0xFF;\n var g = integer >> 8 & 0xFF;\n var b = integer & 0xFF;\n return [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var max = Math.max(Math.max(r, g), b);\n var min = Math.min(Math.min(r, g), b);\n var chroma = max - min;\n var grayscale;\n var hue;\n\n if (chroma < 1) {\n grayscale = min / (1 - chroma);\n } else {\n grayscale = 0;\n }\n\n if (chroma <= 0) {\n hue = 0;\n } else if (max === r) {\n hue = (g - b) / chroma % 6;\n } else if (max === g) {\n hue = 2 + (b - r) / chroma;\n } else {\n hue = 4 + (r - g) / chroma + 4;\n }\n\n hue /= 6;\n hue %= 1;\n return [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var c = 1;\n var f = 0;\n\n if (l < 0.5) {\n c = 2.0 * s * l;\n } else {\n c = 2.0 * s * (1.0 - l);\n }\n\n if (c < 1.0) {\n f = (l - 0.5 * c) / (1.0 - c);\n }\n\n return [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n var s = hsv[1] / 100;\n var v = hsv[2] / 100;\n var c = s * v;\n var f = 0;\n\n if (c < 1.0) {\n f = (v - c) / (1 - c);\n }\n\n return [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n var h = hcg[0] / 360;\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n\n if (c === 0.0) {\n return [g * 255, g * 255, g * 255];\n }\n\n var pure = [0, 0, 0];\n var hi = h % 1 * 6;\n var v = hi % 1;\n var w = 1 - v;\n var mg = 0;\n\n switch (Math.floor(hi)) {\n case 0:\n pure[0] = 1;\n pure[1] = v;\n pure[2] = 0;\n break;\n\n case 1:\n pure[0] = w;\n pure[1] = 1;\n pure[2] = 0;\n break;\n\n case 2:\n pure[0] = 0;\n pure[1] = 1;\n pure[2] = v;\n break;\n\n case 3:\n pure[0] = 0;\n pure[1] = w;\n pure[2] = 1;\n break;\n\n case 4:\n pure[0] = v;\n pure[1] = 0;\n pure[2] = 1;\n break;\n\n default:\n pure[0] = 1;\n pure[1] = 0;\n pure[2] = w;\n }\n\n mg = (1.0 - c) * g;\n return [(c * pure[0] + mg) * 255, (c * pure[1] + mg) * 255, (c * pure[2] + mg) * 255];\n};\n\nconvert.hcg.hsv = function (hcg) {\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n var v = c + g * (1.0 - c);\n var f = 0;\n\n if (v > 0.0) {\n f = c / v;\n }\n\n return [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n var l = g * (1.0 - c) + 0.5 * c;\n var s = 0;\n\n if (l > 0.0 && l < 0.5) {\n s = c / (2 * l);\n } else if (l >= 0.5 && l < 1.0) {\n s = c / (2 * (1 - l));\n }\n\n return [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n var v = c + g * (1.0 - c);\n return [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n var w = hwb[1] / 100;\n var b = hwb[2] / 100;\n var v = 1 - b;\n var c = v - w;\n var g = 0;\n\n if (c < 1) {\n g = (v - c) / (1 - c);\n }\n\n return [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = convert.gray.hsv = function (args) {\n return [0, 0, args[0]];\n};\n\nconvert.gray.hwb = function (gray) {\n return [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n return [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n return [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n var val = Math.round(gray[0] / 100 * 255) & 0xFF;\n var integer = (val << 16) + (val << 8) + val;\n var string = integer.toString(16).toUpperCase();\n return '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n var val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n return [val / 255 * 100];\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/06b79876d0c3b3fc55b8dba3e3eb9ee4.json b/packages/web/node_modules/.cache/babel-loader/06b79876d0c3b3fc55b8dba3e3eb9ee4.json new file mode 100644 index 00000000..9608da24 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/06b79876d0c3b3fc55b8dba3e3eb9ee4.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2016 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nexport * from \"./focusStyleManager\";","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/07e66e101734ca35b8f96ad72eba4c19.json b/packages/web/node_modules/.cache/babel-loader/07e66e101734ca35b8f96ad72eba4c19.json new file mode 100644 index 00000000..b5d05ec0 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/07e66e101734ca35b8f96ad72eba4c19.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2017 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nvar userAgent = typeof navigator !== \"undefined\" ? navigator.userAgent : \"\";\nvar browser = {\n isEdge: /Edge/.test(userAgent),\n isInternetExplorer: /Trident|rv:11/.test(userAgent),\n isWebkit: /AppleWebKit/.test(userAgent)\n};\nexport var Browser = {\n isEdge: function isEdge() {\n return browser.isEdge;\n },\n isInternetExplorer: function isInternetExplorer() {\n return browser.isInternetExplorer;\n },\n isWebkit: function isWebkit() {\n return browser.isWebkit;\n }\n};","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/095f91a091fa988390abcece31c53711.json b/packages/web/node_modules/.cache/babel-loader/095f91a091fa988390abcece31c53711.json new file mode 100644 index 00000000..295cd0a7 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/095f91a091fa988390abcece31c53711.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/inheritsLoose\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport * as React from 'react';\nimport warning from 'warning';\nimport { ManagerContext } from './Manager';\nimport { safeInvoke, unwrapArray } from './utils';\n\nvar InnerReference =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(InnerReference, _React$Component);\n\n function InnerReference() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"refHandler\", function (node) {\n safeInvoke(_this.props.innerRef, node);\n safeInvoke(_this.props.getReferenceRef, node);\n });\n\n return _this;\n }\n\n var _proto = InnerReference.prototype;\n\n _proto.render = function render() {\n warning(this.props.getReferenceRef, '`Reference` should not be used outside of a `Manager` component.');\n return unwrapArray(this.props.children)({\n ref: this.refHandler\n });\n };\n\n return InnerReference;\n}(React.Component);\n\nexport default function Reference(props) {\n return React.createElement(ManagerContext.Consumer, null, function (_ref) {\n var getReferenceRef = _ref.getReferenceRef;\n return React.createElement(InnerReference, _extends({\n getReferenceRef: getReferenceRef\n }, props));\n });\n}","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/09e3ad94c41b32a0f663c14d23ced687.json b/packages/web/node_modules/.cache/babel-loader/09e3ad94c41b32a0f663c14d23ced687.json new file mode 100644 index 00000000..1ed8017e --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/09e3ad94c41b32a0f663c14d23ced687.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2016 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport { AbstractPureComponent } from \"../../common/abstractPureComponent\";\nimport * as Classes from \"../../common/classes\";\nimport { DISPLAYNAME_PREFIX } from \"../../common/props\";\nimport { safeInvoke } from \"../../common/utils\";\nimport { ButtonGroup } from \"../button/buttonGroup\";\nimport { AnchorButton, Button } from \"../button/buttons\";\nimport { Icon } from \"../icon/icon\";\n\nvar Toast =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(Toast, _super);\n\n function Toast() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.handleActionClick = function (e) {\n safeInvoke(_this.props.action.onClick, e);\n\n _this.triggerDismiss(false);\n };\n\n _this.handleCloseClick = function () {\n return _this.triggerDismiss(false);\n };\n\n _this.startTimeout = function () {\n if (_this.props.timeout > 0) {\n _this.setTimeout(function () {\n return _this.triggerDismiss(true);\n }, _this.props.timeout);\n }\n };\n\n return _this;\n }\n\n Toast.prototype.render = function () {\n var _a = this.props,\n className = _a.className,\n icon = _a.icon,\n intent = _a.intent,\n message = _a.message;\n return React.createElement(\"div\", {\n className: classNames(Classes.TOAST, Classes.intentClass(intent), className),\n onBlur: this.startTimeout,\n onFocus: this.clearTimeouts,\n onMouseEnter: this.clearTimeouts,\n onMouseLeave: this.startTimeout,\n tabIndex: 0\n }, React.createElement(Icon, {\n icon: icon\n }), React.createElement(\"span\", {\n className: Classes.TOAST_MESSAGE\n }, message), React.createElement(ButtonGroup, {\n minimal: true\n }, this.maybeRenderActionButton(), React.createElement(Button, {\n icon: \"cross\",\n onClick: this.handleCloseClick\n })));\n };\n\n Toast.prototype.componentDidMount = function () {\n this.startTimeout();\n };\n\n Toast.prototype.componentDidUpdate = function (prevProps) {\n if (prevProps.timeout !== this.props.timeout && this.props.timeout > 0) {\n this.startTimeout();\n } else if (prevProps.timeout <= 0 && this.props.timeout > 0) {\n this.startTimeout();\n } else if (prevProps.timeout > 0 && this.props.timeout <= 0) {\n this.clearTimeouts();\n }\n };\n\n Toast.prototype.componentWillUnmount = function () {\n this.clearTimeouts();\n };\n\n Toast.prototype.maybeRenderActionButton = function () {\n var action = this.props.action;\n\n if (action == null) {\n return undefined;\n } else {\n return React.createElement(AnchorButton, tslib_1.__assign({}, action, {\n intent: undefined,\n onClick: this.handleActionClick\n }));\n }\n };\n\n Toast.prototype.triggerDismiss = function (didTimeoutExpire) {\n safeInvoke(this.props.onDismiss, didTimeoutExpire);\n this.clearTimeouts();\n };\n\n Toast.defaultProps = {\n className: \"\",\n message: \"\",\n timeout: 5000\n };\n Toast.displayName = DISPLAYNAME_PREFIX + \".Toast\";\n return Toast;\n}(AbstractPureComponent);\n\nexport { Toast };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/09e40d896a9ae5c469881be3c474cb2f.json b/packages/web/node_modules/.cache/babel-loader/09e40d896a9ae5c469881be3c474cb2f.json new file mode 100644 index 00000000..acb39f77 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/09e40d896a9ae5c469881be3c474cb2f.json @@ -0,0 +1 @@ +{"ast":null,"code":"\"use strict\";\n\nexports.__esModule = true;\nexports.transitionTimeout = transitionTimeout;\nexports.classNamesShape = exports.timeoutsShape = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction transitionTimeout(transitionType) {\n var timeoutPropName = 'transition' + transitionType + 'Timeout';\n var enabledPropName = 'transition' + transitionType;\n return function (props) {\n // If the transition is enabled\n if (props[enabledPropName]) {\n // If no timeout duration is provided\n if (props[timeoutPropName] == null) {\n return new Error(timeoutPropName + ' wasn\\'t supplied to CSSTransitionGroup: ' + 'this can cause unreliable animations and won\\'t be supported in ' + 'a future version of React. See ' + 'https://fb.me/react-animation-transition-group-timeout for more ' + 'information.'); // If the duration isn't a number\n } else if (typeof props[timeoutPropName] !== 'number') {\n return new Error(timeoutPropName + ' must be a number (in milliseconds)');\n }\n }\n\n return null;\n };\n}\n\nvar timeoutsShape = _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({\n enter: _propTypes.default.number,\n exit: _propTypes.default.number\n}).isRequired]);\n\nexports.timeoutsShape = timeoutsShape;\n\nvar classNamesShape = _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({\n enter: _propTypes.default.string,\n exit: _propTypes.default.string,\n active: _propTypes.default.string\n}), _propTypes.default.shape({\n enter: _propTypes.default.string,\n enterDone: _propTypes.default.string,\n enterActive: _propTypes.default.string,\n exit: _propTypes.default.string,\n exitDone: _propTypes.default.string,\n exitActive: _propTypes.default.string\n})]);\n\nexports.classNamesShape = classNamesShape;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/0a0b24136cdd5d549e64ae1b2e4dc8a9.json b/packages/web/node_modules/.cache/babel-loader/0a0b24136cdd5d549e64ae1b2e4dc8a9.json new file mode 100644 index 00000000..3f68d6d3 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/0a0b24136cdd5d549e64ae1b2e4dc8a9.json @@ -0,0 +1 @@ +{"ast":null,"code":"// Written in this round about way for babel-transform-imports\nimport Route from \"react-router/es/Route\";\nexport default Route;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/0b6638b4852b19bfe2866924d69d9a82.json b/packages/web/node_modules/.cache/babel-loader/0b6638b4852b19bfe2866924d69d9a82.json new file mode 100644 index 00000000..8c323001 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/0b6638b4852b19bfe2866924d69d9a82.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n\n\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\n\n\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\n\n\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/0c10f2edd9efdd73bfe3c7579fbfa252.json b/packages/web/node_modules/.cache/babel-loader/0c10f2edd9efdd73bfe3c7579fbfa252.json new file mode 100644 index 00000000..65f0d3a2 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/0c10f2edd9efdd73bfe3c7579fbfa252.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2018 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport { Position } from \"../../common/position\";\n/** `Position` with `\"auto\"` values, used by `Popover` and `Tooltip`. */\n\nexport var PopoverPosition = tslib_1.__assign({}, Position, {\n AUTO: \"auto\",\n AUTO_END: \"auto-end\",\n AUTO_START: \"auto-start\"\n});","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/0c7f7a076eab986e47b7c49f70672752.json b/packages/web/node_modules/.cache/babel-loader/0c7f7a076eab986e47b7c49f70672752.json new file mode 100644 index 00000000..62b2cf4f --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/0c7f7a076eab986e47b7c49f70672752.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2015 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport { AbstractPureComponent, Classes, DISPLAYNAME_PREFIX } from \"../../common\";\nimport { ALERT_WARN_CANCEL_ESCAPE_KEY, ALERT_WARN_CANCEL_OUTSIDE_CLICK, ALERT_WARN_CANCEL_PROPS } from \"../../common/errors\";\nimport { safeInvoke } from \"../../common/utils\";\nimport { Button } from \"../button/buttons\";\nimport { Dialog } from \"../dialog/dialog\";\nimport { Icon } from \"../icon/icon\";\n\nvar Alert =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(Alert, _super);\n\n function Alert() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.handleCancel = function (evt) {\n return _this.internalHandleCallbacks(false, evt);\n };\n\n _this.handleConfirm = function (evt) {\n return _this.internalHandleCallbacks(true, evt);\n };\n\n return _this;\n }\n\n Alert.prototype.render = function () {\n var _a = this.props,\n canEscapeKeyCancel = _a.canEscapeKeyCancel,\n canOutsideClickCancel = _a.canOutsideClickCancel,\n children = _a.children,\n className = _a.className,\n icon = _a.icon,\n intent = _a.intent,\n cancelButtonText = _a.cancelButtonText,\n confirmButtonText = _a.confirmButtonText,\n onClose = _a.onClose,\n overlayProps = tslib_1.__rest(_a, [\"canEscapeKeyCancel\", \"canOutsideClickCancel\", \"children\", \"className\", \"icon\", \"intent\", \"cancelButtonText\", \"confirmButtonText\", \"onClose\"]);\n\n return React.createElement(Dialog, tslib_1.__assign({}, overlayProps, {\n className: classNames(Classes.ALERT, className),\n canEscapeKeyClose: canEscapeKeyCancel,\n canOutsideClickClose: canOutsideClickCancel,\n onClose: this.handleCancel,\n portalContainer: this.props.portalContainer\n }), React.createElement(\"div\", {\n className: Classes.ALERT_BODY\n }, React.createElement(Icon, {\n icon: icon,\n iconSize: 40,\n intent: intent\n }), React.createElement(\"div\", {\n className: Classes.ALERT_CONTENTS\n }, children)), React.createElement(\"div\", {\n className: Classes.ALERT_FOOTER\n }, React.createElement(Button, {\n intent: intent,\n text: confirmButtonText,\n onClick: this.handleConfirm\n }), cancelButtonText && React.createElement(Button, {\n text: cancelButtonText,\n onClick: this.handleCancel\n })));\n };\n\n Alert.prototype.validateProps = function (props) {\n if (props.onClose == null && props.cancelButtonText == null !== (props.onCancel == null)) {\n console.warn(ALERT_WARN_CANCEL_PROPS);\n }\n\n var hasCancelHandler = props.onCancel != null || props.onClose != null;\n\n if (props.canEscapeKeyCancel && !hasCancelHandler) {\n console.warn(ALERT_WARN_CANCEL_ESCAPE_KEY);\n }\n\n if (props.canOutsideClickCancel && !hasCancelHandler) {\n console.warn(ALERT_WARN_CANCEL_OUTSIDE_CLICK);\n }\n };\n\n Alert.prototype.internalHandleCallbacks = function (confirmed, evt) {\n var _a = this.props,\n onCancel = _a.onCancel,\n onClose = _a.onClose,\n onConfirm = _a.onConfirm;\n safeInvoke(confirmed ? onConfirm : onCancel, evt);\n safeInvoke(onClose, confirmed, evt);\n };\n\n Alert.defaultProps = {\n canEscapeKeyCancel: false,\n canOutsideClickCancel: false,\n confirmButtonText: \"OK\",\n isOpen: false\n };\n Alert.displayName = DISPLAYNAME_PREFIX + \".Alert\";\n return Alert;\n}(AbstractPureComponent);\n\nexport { Alert };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/0c9a99598b73f8455c4c7a4946deb2ec.json b/packages/web/node_modules/.cache/babel-loader/0c9a99598b73f8455c4c7a4946deb2ec.json new file mode 100644 index 00000000..62a1efd6 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/0c9a99598b73f8455c4c7a4946deb2ec.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler-tracing.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler-tracing.development.js');\n}","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/0d11b9224eba3110d8c0768d8afb6cf2.json b/packages/web/node_modules/.cache/babel-loader/0d11b9224eba3110d8c0768d8afb6cf2.json new file mode 100644 index 00000000..a71f2605 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/0d11b9224eba3110d8c0768d8afb6cf2.json @@ -0,0 +1 @@ +{"ast":null,"code":"/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\nexports = module.exports = createDebug.debug = createDebug['default'] = createDebug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = require('ms');\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\nexports.formatters = {};\n/**\n * Previous log timestamp.\n */\n\nvar prevTime;\n/**\n * Select a color.\n * @param {String} namespace\n * @return {Number}\n * @api private\n */\n\nfunction selectColor(namespace) {\n var hash = 0,\n i;\n\n for (i in namespace) {\n hash = (hash << 5) - hash + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return exports.colors[Math.abs(hash) % exports.colors.length];\n}\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\n\nfunction createDebug(namespace) {\n function debug() {\n // disabled?\n if (!debug.enabled) return;\n var self = debug; // set `diff` timestamp\n\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr; // turn the `arguments` into a proper Array\n\n var args = new Array(arguments.length);\n\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %O\n args.unshift('%O');\n } // apply any `formatters` transformations\n\n\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val); // now we need to remove `args[index]` since it's inlined in the `format`\n\n args.splice(index, 1);\n index--;\n }\n\n return match;\n }); // apply env-specific formatting (colors, etc.)\n\n exports.formatArgs.call(self, args);\n var logFn = debug.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = exports.enabled(namespace);\n debug.useColors = exports.useColors();\n debug.color = selectColor(namespace); // env-specific initialization logic for debug instances\n\n if ('function' === typeof exports.init) {\n exports.init(debug);\n }\n\n return debug;\n}\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n exports.names = [];\n exports.skips = [];\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (var i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n\n namespaces = split[i].replace(/\\*/g, '.*?');\n\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n}\n/**\n * Disable debug output.\n *\n * @api public\n */\n\n\nfunction disable() {\n exports.enable('');\n}\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\n\nfunction enabled(name) {\n var i, len;\n\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n\n return false;\n}\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/11d5ee1ce0ee989e3214e92d1086e4f5.json b/packages/web/node_modules/.cache/babel-loader/11d5ee1ce0ee989e3214e92d1086e4f5.json new file mode 100644 index 00000000..6a79cbb9 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/11d5ee1ce0ee989e3214e92d1086e4f5.json @@ -0,0 +1 @@ +{"ast":null,"code":"/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';\n\nvar _slicedToArray = require(\"/Users/Nabin/workspace/probro/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/slicedToArray\");\n\nvar chalk = require('chalk');\n\nvar friendlySyntaxErrorLabel = 'Syntax error:';\n\nfunction isLikelyASyntaxError(message) {\n return message.indexOf(friendlySyntaxErrorLabel) !== -1;\n} // Cleans up webpack error messages.\n// eslint-disable-next-line no-unused-vars\n\n\nfunction formatMessage(message, isError) {\n var lines = message.split('\\n'); // Strip Webpack-added headers off errors/warnings\n // https://github.com/webpack/webpack/blob/master/lib/ModuleError.js\n\n lines = lines.filter(function (line) {\n return !/Module [A-z ]+\\(from/.test(line);\n }); // Transform parsing error into syntax error\n // TODO: move this to our ESLint formatter?\n\n lines = lines.map(function (line) {\n var parsingError = /Line (\\d+):(?:(\\d+):)?\\s*Parsing error: (.+)$/.exec(line);\n\n if (!parsingError) {\n return line;\n }\n\n var _parsingError = _slicedToArray(parsingError, 4),\n errorLine = _parsingError[1],\n errorColumn = _parsingError[2],\n errorMessage = _parsingError[3];\n\n return \"\".concat(friendlySyntaxErrorLabel, \" \").concat(errorMessage, \" (\").concat(errorLine, \":\").concat(errorColumn, \")\");\n });\n message = lines.join('\\n'); // Smoosh syntax errors (commonly found in CSS)\n\n message = message.replace(/SyntaxError\\s+\\((\\d+):(\\d+)\\)\\s*(.+?)\\n/g, \"\".concat(friendlySyntaxErrorLabel, \" $3 ($1:$2)\\n\")); // Remove columns from ESLint formatter output (we added these for more\n // accurate syntax errors)\n\n message = message.replace(/Line (\\d+):\\d+:/g, 'Line $1:'); // Clean up export errors\n\n message = message.replace(/^.*export '(.+?)' was not found in '(.+?)'.*$/gm, \"Attempted import error: '$1' is not exported from '$2'.\");\n message = message.replace(/^.*export 'default' \\(imported as '(.+?)'\\) was not found in '(.+?)'.*$/gm, \"Attempted import error: '$2' does not contain a default export (imported as '$1').\");\n message = message.replace(/^.*export '(.+?)' \\(imported as '(.+?)'\\) was not found in '(.+?)'.*$/gm, \"Attempted import error: '$1' is not exported from '$3' (imported as '$2').\");\n lines = message.split('\\n'); // Remove leading newline\n\n if (lines.length > 2 && lines[1].trim() === '') {\n lines.splice(1, 1);\n } // Clean up file name\n\n\n lines[0] = lines[0].replace(/^(.*) \\d+:\\d+-\\d+$/, '$1'); // Cleans up verbose \"module not found\" messages for files and packages.\n\n if (lines[1] && lines[1].indexOf('Module not found: ') === 0) {\n lines = [lines[0], lines[1].replace('Error: ', '').replace('Module not found: Cannot find file:', 'Cannot find file:')];\n } // Add helpful message for users trying to use Sass for the first time\n\n\n if (lines[1] && lines[1].match(/Cannot find module.+node-sass/)) {\n lines[1] = 'To import Sass files, you first need to install node-sass.\\n';\n lines[1] += 'Run `npm install node-sass` or `yarn add node-sass` inside your workspace.';\n }\n\n lines[0] = chalk.inverse(lines[0]);\n message = lines.join('\\n'); // Internal stacks are generally useless so we strip them... with the\n // exception of stacks containing `webpack:` because they're normally\n // from user code generated by Webpack. For more information see\n // https://github.com/facebook/create-react-app/pull/1050\n\n message = message.replace(/^\\s*at\\s((?!webpack:).)*:\\d+:\\d+[\\s)]*(\\n|$)/gm, ''); // at ... ...:x:y\n\n message = message.replace(/^\\s*at\\s(\\n|$)/gm, ''); // at \n\n lines = message.split('\\n'); // Remove duplicated newlines\n\n lines = lines.filter(function (line, index, arr) {\n return index === 0 || line.trim() !== '' || line.trim() !== arr[index - 1].trim();\n }); // Reassemble the message\n\n message = lines.join('\\n');\n return message.trim();\n}\n\nfunction formatWebpackMessages(json) {\n var formattedErrors = json.errors.map(function (message) {\n return formatMessage(message, true);\n });\n var formattedWarnings = json.warnings.map(function (message) {\n return formatMessage(message, false);\n });\n var result = {\n errors: formattedErrors,\n warnings: formattedWarnings\n };\n\n if (result.errors.some(isLikelyASyntaxError)) {\n // If there are any syntax errors, show just them.\n result.errors = result.errors.filter(isLikelyASyntaxError);\n }\n\n return result;\n}\n\nmodule.exports = formatWebpackMessages;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/11fb488196b6e4d6e5bf922a85007585.json b/packages/web/node_modules/.cache/babel-loader/11fb488196b6e4d6e5bf922a85007585.json new file mode 100644 index 00000000..5a325402 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/11fb488196b6e4d6e5bf922a85007585.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nexports.__esModule = true;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _implementation = require('./implementation');\n\nvar _implementation2 = _interopRequireDefault(_implementation);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nexports.default = _react2.default.createContext || _implementation2.default;\nmodule.exports = exports['default'];","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1221e848823f8afb6e6cac5a5fca2c41.json b/packages/web/node_modules/.cache/babel-loader/1221e848823f8afb6e6cac5a5fca2c41.json new file mode 100644 index 00000000..c659390f --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1221e848823f8afb6e6cac5a5fca2c41.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar debug = function debug() {};\n\nif (process.env.NODE_ENV !== 'production') {\n debug = require('debug')('sockjs-client:utils:transport');\n}\n\nmodule.exports = function (availableTransports) {\n return {\n filterToEnabled: function filterToEnabled(transportsWhitelist, info) {\n var transports = {\n main: [],\n facade: []\n };\n\n if (!transportsWhitelist) {\n transportsWhitelist = [];\n } else if (typeof transportsWhitelist === 'string') {\n transportsWhitelist = [transportsWhitelist];\n }\n\n availableTransports.forEach(function (trans) {\n if (!trans) {\n return;\n }\n\n if (trans.transportName === 'websocket' && info.websocket === false) {\n debug('disabled from server', 'websocket');\n return;\n }\n\n if (transportsWhitelist.length && transportsWhitelist.indexOf(trans.transportName) === -1) {\n debug('not in whitelist', trans.transportName);\n return;\n }\n\n if (trans.enabled(info)) {\n debug('enabled', trans.transportName);\n transports.main.push(trans);\n\n if (trans.facadeTransport) {\n transports.facade.push(trans.facadeTransport);\n }\n } else {\n debug('disabled', trans.transportName);\n }\n });\n return transports;\n }\n };\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/12482939689cd0dd6bd53a22897d2024.json b/packages/web/node_modules/.cache/babel-loader/12482939689cd0dd6bd53a22897d2024.json new file mode 100644 index 00000000..0fce71df --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/12482939689cd0dd6bd53a22897d2024.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2015 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport * as Classes from \"../../common/classes\";\nimport { DISPLAYNAME_PREFIX } from \"../../common/props\";\nimport { isFunction } from \"../../common/utils\";\nimport { TreeNode } from \"./treeNode\";\n\nvar Tree =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(Tree, _super);\n\n function Tree() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.nodeRefs = {};\n\n _this.handleNodeCollapse = function (node, e) {\n _this.handlerHelper(_this.props.onNodeCollapse, node, e);\n };\n\n _this.handleNodeClick = function (node, e) {\n _this.handlerHelper(_this.props.onNodeClick, node, e);\n };\n\n _this.handleContentRef = function (node, element) {\n if (element != null) {\n _this.nodeRefs[node.props.id] = element;\n } else {\n // don't want our object to get bloated with old keys\n delete _this.nodeRefs[node.props.id];\n }\n };\n\n _this.handleNodeContextMenu = function (node, e) {\n _this.handlerHelper(_this.props.onNodeContextMenu, node, e);\n };\n\n _this.handleNodeDoubleClick = function (node, e) {\n _this.handlerHelper(_this.props.onNodeDoubleClick, node, e);\n };\n\n _this.handleNodeExpand = function (node, e) {\n _this.handlerHelper(_this.props.onNodeExpand, node, e);\n };\n\n _this.handleNodeMouseEnter = function (node, e) {\n _this.handlerHelper(_this.props.onNodeMouseEnter, node, e);\n };\n\n _this.handleNodeMouseLeave = function (node, e) {\n _this.handlerHelper(_this.props.onNodeMouseLeave, node, e);\n };\n\n return _this;\n }\n\n Tree.ofType = function () {\n return Tree;\n };\n\n Tree.nodeFromPath = function (path, treeNodes) {\n if (path.length === 1) {\n return treeNodes[path[0]];\n } else {\n return Tree.nodeFromPath(path.slice(1), treeNodes[path[0]].childNodes);\n }\n };\n\n Tree.prototype.render = function () {\n return React.createElement(\"div\", {\n className: classNames(Classes.TREE, this.props.className)\n }, this.renderNodes(this.props.contents, [], Classes.TREE_ROOT));\n };\n /**\n * Returns the underlying HTML element of the `Tree` node with an id of `nodeId`.\n * This element does not contain the children of the node, only its label and controls.\n * If the node is not currently mounted, `undefined` is returned.\n */\n\n\n Tree.prototype.getNodeContentElement = function (nodeId) {\n return this.nodeRefs[nodeId];\n };\n\n Tree.prototype.renderNodes = function (treeNodes, currentPath, className) {\n var _this = this;\n\n if (treeNodes == null) {\n return null;\n }\n\n var nodeItems = treeNodes.map(function (node, i) {\n var elementPath = currentPath.concat(i);\n var TypedTreeNode = TreeNode.ofType();\n return React.createElement(TypedTreeNode, tslib_1.__assign({}, node, {\n key: node.id,\n contentRef: _this.handleContentRef,\n depth: elementPath.length - 1,\n onClick: _this.handleNodeClick,\n onContextMenu: _this.handleNodeContextMenu,\n onCollapse: _this.handleNodeCollapse,\n onDoubleClick: _this.handleNodeDoubleClick,\n onExpand: _this.handleNodeExpand,\n onMouseEnter: _this.handleNodeMouseEnter,\n onMouseLeave: _this.handleNodeMouseLeave,\n path: elementPath\n }), _this.renderNodes(node.childNodes, elementPath));\n });\n return React.createElement(\"ul\", {\n className: classNames(Classes.TREE_NODE_LIST, className)\n }, nodeItems);\n };\n\n Tree.prototype.handlerHelper = function (handlerFromProps, node, e) {\n if (isFunction(handlerFromProps)) {\n var nodeData = Tree.nodeFromPath(node.props.path, this.props.contents);\n handlerFromProps(nodeData, node.props.path, e);\n }\n };\n\n Tree.displayName = DISPLAYNAME_PREFIX + \".Tree\";\n return Tree;\n}(React.Component);\n\nexport { Tree };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/12e7e34897b4fd2a0ef49b21766b3c8f.json b/packages/web/node_modules/.cache/babel-loader/12e7e34897b4fd2a0ef49b21766b3c8f.json new file mode 100644 index 00000000..3465865f --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/12e7e34897b4fd2a0ef49b21766b3c8f.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nimport warning from 'warning';\nimport invariant from 'invariant';\nimport { createLocation, locationsAreEqual } from './LocationUtils';\nimport { addLeadingSlash, stripLeadingSlash, stripTrailingSlash, hasBasename, stripBasename, createPath } from './PathUtils';\nimport createTransitionManager from './createTransitionManager';\nimport { canUseDOM, addEventListener, removeEventListener, getConfirmation, supportsGoWithoutReloadUsingHash } from './DOMUtils';\nvar HashChangeEvent = 'hashchange';\nvar HashPathCoders = {\n hashbang: {\n encodePath: function encodePath(path) {\n return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);\n },\n decodePath: function decodePath(path) {\n return path.charAt(0) === '!' ? path.substr(1) : path;\n }\n },\n noslash: {\n encodePath: stripLeadingSlash,\n decodePath: addLeadingSlash\n },\n slash: {\n encodePath: addLeadingSlash,\n decodePath: addLeadingSlash\n }\n};\n\nvar getHashPath = function getHashPath() {\n // We can't use window.location.hash here because it's not\n // consistent across browsers - Firefox will pre-decode it!\n var href = window.location.href;\n var hashIndex = href.indexOf('#');\n return hashIndex === -1 ? '' : href.substring(hashIndex + 1);\n};\n\nvar pushHashPath = function pushHashPath(path) {\n return window.location.hash = path;\n};\n\nvar replaceHashPath = function replaceHashPath(path) {\n var hashIndex = window.location.href.indexOf('#');\n window.location.replace(window.location.href.slice(0, hashIndex >= 0 ? hashIndex : 0) + '#' + path);\n};\n\nvar createHashHistory = function createHashHistory() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n invariant(canUseDOM, 'Hash history needs a DOM');\n var globalHistory = window.history;\n var canGoWithoutReload = supportsGoWithoutReloadUsingHash();\n var _props$getUserConfirm = props.getUserConfirmation,\n getUserConfirmation = _props$getUserConfirm === undefined ? getConfirmation : _props$getUserConfirm,\n _props$hashType = props.hashType,\n hashType = _props$hashType === undefined ? 'slash' : _props$hashType;\n var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n var _HashPathCoders$hashT = HashPathCoders[hashType],\n encodePath = _HashPathCoders$hashT.encodePath,\n decodePath = _HashPathCoders$hashT.decodePath;\n\n var getDOMLocation = function getDOMLocation() {\n var path = decodePath(getHashPath());\n warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path \"' + path + '\" to begin with \"' + basename + '\".');\n if (basename) path = stripBasename(path, basename);\n return createLocation(path);\n };\n\n var transitionManager = createTransitionManager();\n\n var setState = function setState(nextState) {\n _extends(history, nextState);\n\n history.length = globalHistory.length;\n transitionManager.notifyListeners(history.location, history.action);\n };\n\n var forceNextPop = false;\n var ignorePath = null;\n\n var handleHashChange = function handleHashChange() {\n var path = getHashPath();\n var encodedPath = encodePath(path);\n\n if (path !== encodedPath) {\n // Ensure we always have a properly-encoded hash.\n replaceHashPath(encodedPath);\n } else {\n var location = getDOMLocation();\n var prevLocation = history.location;\n if (!forceNextPop && locationsAreEqual(prevLocation, location)) return; // A hashchange doesn't always == location change.\n\n if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.\n\n ignorePath = null;\n handlePop(location);\n }\n };\n\n var handlePop = function handlePop(location) {\n if (forceNextPop) {\n forceNextPop = false;\n setState();\n } else {\n var action = 'POP';\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location\n });\n } else {\n revertPop(location);\n }\n });\n }\n };\n\n var revertPop = function revertPop(fromLocation) {\n var toLocation = history.location; // TODO: We could probably make this more reliable by\n // keeping a list of paths we've seen in sessionStorage.\n // Instead, we just default to 0 for paths we don't know.\n\n var toIndex = allPaths.lastIndexOf(createPath(toLocation));\n if (toIndex === -1) toIndex = 0;\n var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));\n if (fromIndex === -1) fromIndex = 0;\n var delta = toIndex - fromIndex;\n\n if (delta) {\n forceNextPop = true;\n go(delta);\n }\n }; // Ensure the hash is encoded properly before doing anything else.\n\n\n var path = getHashPath();\n var encodedPath = encodePath(path);\n if (path !== encodedPath) replaceHashPath(encodedPath);\n var initialLocation = getDOMLocation();\n var allPaths = [createPath(initialLocation)]; // Public interface\n\n var createHref = function createHref(location) {\n return '#' + encodePath(basename + createPath(location));\n };\n\n var push = function push(path, state) {\n warning(state === undefined, 'Hash history cannot push state; it is ignored');\n var action = 'PUSH';\n var location = createLocation(path, undefined, undefined, history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var path = createPath(location);\n var encodedPath = encodePath(basename + path);\n var hashChanged = getHashPath() !== encodedPath;\n\n if (hashChanged) {\n // We cannot tell if a hashchange was caused by a PUSH, so we'd\n // rather setState here and ignore the hashchange. The caveat here\n // is that other hash histories in the page will consider it a POP.\n ignorePath = path;\n pushHashPath(encodedPath);\n var prevIndex = allPaths.lastIndexOf(createPath(history.location));\n var nextPaths = allPaths.slice(0, prevIndex === -1 ? 0 : prevIndex + 1);\n nextPaths.push(path);\n allPaths = nextPaths;\n setState({\n action: action,\n location: location\n });\n } else {\n warning(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack');\n setState();\n }\n });\n };\n\n var replace = function replace(path, state) {\n warning(state === undefined, 'Hash history cannot replace state; it is ignored');\n var action = 'REPLACE';\n var location = createLocation(path, undefined, undefined, history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var path = createPath(location);\n var encodedPath = encodePath(basename + path);\n var hashChanged = getHashPath() !== encodedPath;\n\n if (hashChanged) {\n // We cannot tell if a hashchange was caused by a REPLACE, so we'd\n // rather setState here and ignore the hashchange. The caveat here\n // is that other hash histories in the page will consider it a POP.\n ignorePath = path;\n replaceHashPath(encodedPath);\n }\n\n var prevIndex = allPaths.indexOf(createPath(history.location));\n if (prevIndex !== -1) allPaths[prevIndex] = path;\n setState({\n action: action,\n location: location\n });\n });\n };\n\n var go = function go(n) {\n warning(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser');\n globalHistory.go(n);\n };\n\n var goBack = function goBack() {\n return go(-1);\n };\n\n var goForward = function goForward() {\n return go(1);\n };\n\n var listenerCount = 0;\n\n var checkDOMListeners = function checkDOMListeners(delta) {\n listenerCount += delta;\n\n if (listenerCount === 1) {\n addEventListener(window, HashChangeEvent, handleHashChange);\n } else if (listenerCount === 0) {\n removeEventListener(window, HashChangeEvent, handleHashChange);\n }\n };\n\n var isBlocked = false;\n\n var block = function block() {\n var prompt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n var unblock = transitionManager.setPrompt(prompt);\n\n if (!isBlocked) {\n checkDOMListeners(1);\n isBlocked = true;\n }\n\n return function () {\n if (isBlocked) {\n isBlocked = false;\n checkDOMListeners(-1);\n }\n\n return unblock();\n };\n };\n\n var listen = function listen(listener) {\n var unlisten = transitionManager.appendListener(listener);\n checkDOMListeners(1);\n return function () {\n checkDOMListeners(-1);\n unlisten();\n };\n };\n\n var history = {\n length: globalHistory.length,\n action: 'POP',\n location: initialLocation,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n block: block,\n listen: listen\n };\n return history;\n};\n\nexport default createHashHistory;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/136a2a74086bf6d3486a28e0b12325d5.json b/packages/web/node_modules/.cache/babel-loader/136a2a74086bf6d3486a28e0b12325d5.json new file mode 100644 index 00000000..208d6279 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/136a2a74086bf6d3486a28e0b12325d5.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar urlUtils = require('./utils/url'),\n eventUtils = require('./utils/event'),\n JSON3 = require('json3'),\n FacadeJS = require('./facade'),\n InfoIframeReceiver = require('./info-iframe-receiver'),\n iframeUtils = require('./utils/iframe'),\n loc = require('./location');\n\nvar debug = function debug() {};\n\nif (process.env.NODE_ENV !== 'production') {\n debug = require('debug')('sockjs-client:iframe-bootstrap');\n}\n\nmodule.exports = function (SockJS, availableTransports) {\n var transportMap = {};\n availableTransports.forEach(function (at) {\n if (at.facadeTransport) {\n transportMap[at.facadeTransport.transportName] = at.facadeTransport;\n }\n }); // hard-coded for the info iframe\n // TODO see if we can make this more dynamic\n\n transportMap[InfoIframeReceiver.transportName] = InfoIframeReceiver;\n var parentOrigin;\n /* eslint-disable camelcase */\n\n SockJS.bootstrap_iframe = function () {\n /* eslint-enable camelcase */\n var facade;\n iframeUtils.currentWindowId = loc.hash.slice(1);\n\n var onMessage = function onMessage(e) {\n if (e.source !== parent) {\n return;\n }\n\n if (typeof parentOrigin === 'undefined') {\n parentOrigin = e.origin;\n }\n\n if (e.origin !== parentOrigin) {\n return;\n }\n\n var iframeMessage;\n\n try {\n iframeMessage = JSON3.parse(e.data);\n } catch (ignored) {\n debug('bad json', e.data);\n return;\n }\n\n if (iframeMessage.windowId !== iframeUtils.currentWindowId) {\n return;\n }\n\n switch (iframeMessage.type) {\n case 's':\n var p;\n\n try {\n p = JSON3.parse(iframeMessage.data);\n } catch (ignored) {\n debug('bad json', iframeMessage.data);\n break;\n }\n\n var version = p[0];\n var transport = p[1];\n var transUrl = p[2];\n var baseUrl = p[3];\n debug(version, transport, transUrl, baseUrl); // change this to semver logic\n\n if (version !== SockJS.version) {\n throw new Error('Incompatible SockJS! Main site uses:' + ' \"' + version + '\", the iframe:' + ' \"' + SockJS.version + '\".');\n }\n\n if (!urlUtils.isOriginEqual(transUrl, loc.href) || !urlUtils.isOriginEqual(baseUrl, loc.href)) {\n throw new Error('Can\\'t connect to different domain from within an ' + 'iframe. (' + loc.href + ', ' + transUrl + ', ' + baseUrl + ')');\n }\n\n facade = new FacadeJS(new transportMap[transport](transUrl, baseUrl));\n break;\n\n case 'm':\n facade._send(iframeMessage.data);\n\n break;\n\n case 'c':\n if (facade) {\n facade._close();\n }\n\n facade = null;\n break;\n }\n };\n\n eventUtils.attachEvent('message', onMessage); // Start\n\n iframeUtils.postMessage('s');\n };\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/140e0621e225f57f2aa4ee4ed656e3d7.json b/packages/web/node_modules/.cache/babel-loader/140e0621e225f57f2aa4ee4ed656e3d7.json new file mode 100644 index 00000000..d7bb2f87 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/140e0621e225f57f2aa4ee4ed656e3d7.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\n\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n return error;\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1458f3cfa36589734aae5ab4ff9a59b6.json b/packages/web/node_modules/.cache/babel-loader/1458f3cfa36589734aae5ab4ff9a59b6.json new file mode 100644 index 00000000..bcfad42f --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1458f3cfa36589734aae5ab4ff9a59b6.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*! https://mths.be/punycode v1.4.1 by @mathias */\n;\n\n(function (root) {\n /** Detect free variables */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n var freeModule = typeof module == 'object' && module && !module.nodeType && module;\n var freeGlobal = typeof global == 'object' && global;\n\n if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) {\n root = freeGlobal;\n }\n /**\n * The `punycode` object.\n * @name punycode\n * @type Object\n */\n\n\n var punycode,\n\n /** Highest positive signed 32-bit float value */\n maxInt = 2147483647,\n // aka. 0x7FFFFFFF or 2^31-1\n\n /** Bootstring parameters */\n base = 36,\n tMin = 1,\n tMax = 26,\n skew = 38,\n damp = 700,\n initialBias = 72,\n initialN = 128,\n // 0x80\n delimiter = '-',\n // '\\x2D'\n\n /** Regular expressions */\n regexPunycode = /^xn--/,\n regexNonASCII = /[^\\x20-\\x7E]/,\n // unprintable ASCII chars + non-ASCII chars\n regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g,\n // RFC 3490 separators\n\n /** Error messages */\n errors = {\n 'overflow': 'Overflow: input needs wider integers to process',\n 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n 'invalid-input': 'Invalid input'\n },\n\n /** Convenience shortcuts */\n baseMinusTMin = base - tMin,\n floor = Math.floor,\n stringFromCharCode = String.fromCharCode,\n\n /** Temporary variable */\n key;\n /*--------------------------------------------------------------------------*/\n\n /**\n * A generic error utility function.\n * @private\n * @param {String} type The error type.\n * @returns {Error} Throws a `RangeError` with the applicable error message.\n */\n\n function error(type) {\n throw new RangeError(errors[type]);\n }\n /**\n * A generic `Array#map` utility function.\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} callback The function that gets called for every array\n * item.\n * @returns {Array} A new array of values returned by the callback function.\n */\n\n\n function map(array, fn) {\n var length = array.length;\n var result = [];\n\n while (length--) {\n result[length] = fn(array[length]);\n }\n\n return result;\n }\n /**\n * A simple `Array#map`-like wrapper to work with domain name strings or email\n * addresses.\n * @private\n * @param {String} domain The domain name or email address.\n * @param {Function} callback The function that gets called for every\n * character.\n * @returns {Array} A new string of characters returned by the callback\n * function.\n */\n\n\n function mapDomain(string, fn) {\n var parts = string.split('@');\n var result = '';\n\n if (parts.length > 1) {\n // In email addresses, only the domain name should be punycoded. Leave\n // the local part (i.e. everything up to `@`) intact.\n result = parts[0] + '@';\n string = parts[1];\n } // Avoid `split(regex)` for IE8 compatibility. See #17.\n\n\n string = string.replace(regexSeparators, '\\x2E');\n var labels = string.split('.');\n var encoded = map(labels, fn).join('.');\n return result + encoded;\n }\n /**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see \n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\n\n\n function ucs2decode(string) {\n var output = [],\n counter = 0,\n length = string.length,\n value,\n extra;\n\n while (counter < length) {\n value = string.charCodeAt(counter++);\n\n if (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n // high surrogate, and there is a next character\n extra = string.charCodeAt(counter++);\n\n if ((extra & 0xFC00) == 0xDC00) {\n // low surrogate\n output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n } else {\n // unmatched surrogate; only append this code unit, in case the next\n // code unit is the high surrogate of a surrogate pair\n output.push(value);\n counter--;\n }\n } else {\n output.push(value);\n }\n }\n\n return output;\n }\n /**\n * Creates a string based on an array of numeric code points.\n * @see `punycode.ucs2.decode`\n * @memberOf punycode.ucs2\n * @name encode\n * @param {Array} codePoints The array of numeric code points.\n * @returns {String} The new Unicode string (UCS-2).\n */\n\n\n function ucs2encode(array) {\n return map(array, function (value) {\n var output = '';\n\n if (value > 0xFFFF) {\n value -= 0x10000;\n output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n value = 0xDC00 | value & 0x3FF;\n }\n\n output += stringFromCharCode(value);\n return output;\n }).join('');\n }\n /**\n * Converts a basic code point into a digit/integer.\n * @see `digitToBasic()`\n * @private\n * @param {Number} codePoint The basic numeric code point value.\n * @returns {Number} The numeric value of a basic code point (for use in\n * representing integers) in the range `0` to `base - 1`, or `base` if\n * the code point does not represent a value.\n */\n\n\n function basicToDigit(codePoint) {\n if (codePoint - 48 < 10) {\n return codePoint - 22;\n }\n\n if (codePoint - 65 < 26) {\n return codePoint - 65;\n }\n\n if (codePoint - 97 < 26) {\n return codePoint - 97;\n }\n\n return base;\n }\n /**\n * Converts a digit/integer into a basic code point.\n * @see `basicToDigit()`\n * @private\n * @param {Number} digit The numeric value of a basic code point.\n * @returns {Number} The basic code point whose value (when used for\n * representing integers) is `digit`, which needs to be in the range\n * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n * used; else, the lowercase form is used. The behavior is undefined\n * if `flag` is non-zero and `digit` has no uppercase form.\n */\n\n\n function digitToBasic(digit, flag) {\n // 0..25 map to ASCII a..z or A..Z\n // 26..35 map to ASCII 0..9\n return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n }\n /**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n * @private\n */\n\n\n function adapt(delta, numPoints, firstTime) {\n var k = 0;\n delta = firstTime ? floor(delta / damp) : delta >> 1;\n delta += floor(delta / numPoints);\n\n for (;\n /* no initialization */\n delta > baseMinusTMin * tMax >> 1; k += base) {\n delta = floor(delta / baseMinusTMin);\n }\n\n return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n }\n /**\n * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n * symbols.\n * @memberOf punycode\n * @param {String} input The Punycode string of ASCII-only symbols.\n * @returns {String} The resulting string of Unicode symbols.\n */\n\n\n function decode(input) {\n // Don't use UCS-2\n var output = [],\n inputLength = input.length,\n out,\n i = 0,\n n = initialN,\n bias = initialBias,\n basic,\n j,\n index,\n oldi,\n w,\n k,\n digit,\n t,\n\n /** Cached calculation results */\n baseMinusT; // Handle the basic code points: let `basic` be the number of input code\n // points before the last delimiter, or `0` if there is none, then copy\n // the first basic code points to the output.\n\n basic = input.lastIndexOf(delimiter);\n\n if (basic < 0) {\n basic = 0;\n }\n\n for (j = 0; j < basic; ++j) {\n // if it's not a basic code point\n if (input.charCodeAt(j) >= 0x80) {\n error('not-basic');\n }\n\n output.push(input.charCodeAt(j));\n } // Main decoding loop: start just after the last delimiter if any basic code\n // points were copied; start at the beginning otherwise.\n\n\n for (index = basic > 0 ? basic + 1 : 0; index < inputLength;)\n /* no final expression */\n {\n // `index` is the index of the next character to be consumed.\n // Decode a generalized variable-length integer into `delta`,\n // which gets added to `i`. The overflow checking is easier\n // if we increase `i` as we go, then subtract off its starting\n // value at the end to obtain `delta`.\n for (oldi = i, w = 1, k = base;;\n /* no condition */\n k += base) {\n if (index >= inputLength) {\n error('invalid-input');\n }\n\n digit = basicToDigit(input.charCodeAt(index++));\n\n if (digit >= base || digit > floor((maxInt - i) / w)) {\n error('overflow');\n }\n\n i += digit * w;\n t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;\n\n if (digit < t) {\n break;\n }\n\n baseMinusT = base - t;\n\n if (w > floor(maxInt / baseMinusT)) {\n error('overflow');\n }\n\n w *= baseMinusT;\n }\n\n out = output.length + 1;\n bias = adapt(i - oldi, out, oldi == 0); // `i` was supposed to wrap around from `out` to `0`,\n // incrementing `n` each time, so we'll fix that now:\n\n if (floor(i / out) > maxInt - n) {\n error('overflow');\n }\n\n n += floor(i / out);\n i %= out; // Insert `n` at position `i` of the output\n\n output.splice(i++, 0, n);\n }\n\n return ucs2encode(output);\n }\n /**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n * @memberOf punycode\n * @param {String} input The string of Unicode symbols.\n * @returns {String} The resulting Punycode string of ASCII-only symbols.\n */\n\n\n function encode(input) {\n var n,\n delta,\n handledCPCount,\n basicLength,\n bias,\n j,\n m,\n q,\n k,\n t,\n currentValue,\n output = [],\n\n /** `inputLength` will hold the number of code points in `input`. */\n inputLength,\n\n /** Cached calculation results */\n handledCPCountPlusOne,\n baseMinusT,\n qMinusT; // Convert the input in UCS-2 to Unicode\n\n input = ucs2decode(input); // Cache the length\n\n inputLength = input.length; // Initialize the state\n\n n = initialN;\n delta = 0;\n bias = initialBias; // Handle the basic code points\n\n for (j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n\n if (currentValue < 0x80) {\n output.push(stringFromCharCode(currentValue));\n }\n }\n\n handledCPCount = basicLength = output.length; // `handledCPCount` is the number of code points that have been handled;\n // `basicLength` is the number of basic code points.\n // Finish the basic string - if it is not empty - with a delimiter\n\n if (basicLength) {\n output.push(delimiter);\n } // Main encoding loop:\n\n\n while (handledCPCount < inputLength) {\n // All non-basic code points < n have been handled already. Find the next\n // larger one:\n for (m = maxInt, j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n\n if (currentValue >= n && currentValue < m) {\n m = currentValue;\n }\n } // Increase `delta` enough to advance the decoder's state to ,\n // but guard against overflow\n\n\n handledCPCountPlusOne = handledCPCount + 1;\n\n if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n error('overflow');\n }\n\n delta += (m - n) * handledCPCountPlusOne;\n n = m;\n\n for (j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n\n if (currentValue < n && ++delta > maxInt) {\n error('overflow');\n }\n\n if (currentValue == n) {\n // Represent delta as a generalized variable-length integer\n for (q = delta, k = base;;\n /* no condition */\n k += base) {\n t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;\n\n if (q < t) {\n break;\n }\n\n qMinusT = q - t;\n baseMinusT = base - t;\n output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));\n q = floor(qMinusT / baseMinusT);\n }\n\n output.push(stringFromCharCode(digitToBasic(q, 0)));\n bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n delta = 0;\n ++handledCPCount;\n }\n }\n\n ++delta;\n ++n;\n }\n\n return output.join('');\n }\n /**\n * Converts a Punycode string representing a domain name or an email address\n * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n * it doesn't matter if you call it on a string that has already been\n * converted to Unicode.\n * @memberOf punycode\n * @param {String} input The Punycoded domain name or email address to\n * convert to Unicode.\n * @returns {String} The Unicode representation of the given Punycode\n * string.\n */\n\n\n function toUnicode(input) {\n return mapDomain(input, function (string) {\n return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;\n });\n }\n /**\n * Converts a Unicode string representing a domain name or an email address to\n * Punycode. Only the non-ASCII parts of the domain name will be converted,\n * i.e. it doesn't matter if you call it with a domain that's already in\n * ASCII.\n * @memberOf punycode\n * @param {String} input The domain name or email address to convert, as a\n * Unicode string.\n * @returns {String} The Punycode representation of the given domain name or\n * email address.\n */\n\n\n function toASCII(input) {\n return mapDomain(input, function (string) {\n return regexNonASCII.test(string) ? 'xn--' + encode(string) : string;\n });\n }\n /*--------------------------------------------------------------------------*/\n\n /** Define the public API */\n\n\n punycode = {\n /**\n * A string representing the current Punycode.js version number.\n * @memberOf punycode\n * @type String\n */\n 'version': '1.4.1',\n\n /**\n * An object of methods to convert from JavaScript's internal character\n * representation (UCS-2) to Unicode code points, and back.\n * @see \n * @memberOf punycode\n * @type Object\n */\n 'ucs2': {\n 'decode': ucs2decode,\n 'encode': ucs2encode\n },\n 'decode': decode,\n 'encode': encode,\n 'toASCII': toASCII,\n 'toUnicode': toUnicode\n };\n /** Expose `punycode` */\n // Some AMD build optimizers, like r.js, check for specific condition patterns\n // like the following:\n\n if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\n define('punycode', function () {\n return punycode;\n });\n } else if (freeExports && freeModule) {\n if (module.exports == freeExports) {\n // in Node.js, io.js, or RingoJS v0.8.0+\n freeModule.exports = punycode;\n } else {\n // in Narwhal or RingoJS v0.7.0-\n for (key in punycode) {\n punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\n }\n }\n } else {\n // in Rhino or a web browser\n root.punycode = punycode;\n }\n})(this);","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/14ec0a1030bdf5580a7c31a0b83622fb.json b/packages/web/node_modules/.cache/babel-loader/14ec0a1030bdf5580a7c31a0b83622fb.json new file mode 100644 index 00000000..82fa14f4 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/14ec0a1030bdf5580a7c31a0b83622fb.json @@ -0,0 +1 @@ +{"ast":null,"code":"\"use strict\";\n\nexports.__esModule = true;\nexports.getChildMapping = getChildMapping;\nexports.mergeChildMappings = mergeChildMappings;\nexports.getInitialChildMapping = getInitialChildMapping;\nexports.getNextChildMapping = getNextChildMapping;\n\nvar _react = require(\"react\");\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\n\n\nfunction getChildMapping(children, mapFn) {\n var mapper = function mapper(child) {\n return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child;\n };\n\n var result = Object.create(null);\n if (children) _react.Children.map(children, function (c) {\n return c;\n }).forEach(function (child) {\n // run the map function here instead so that the key is the computed one\n result[child.key] = mapper(child);\n });\n return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\n\nfunction mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n\n function getValueForKey(key) {\n return key in next ? next[key] : prev[key];\n } // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n\n\n var nextKeysPending = Object.create(null);\n var pendingKeys = [];\n\n for (var prevKey in prev) {\n if (prevKey in next) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n\n var i;\n var childMapping = {};\n\n for (var nextKey in next) {\n if (nextKeysPending[nextKey]) {\n for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n var pendingNextKey = nextKeysPending[nextKey][i];\n childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n }\n }\n\n childMapping[nextKey] = getValueForKey(nextKey);\n } // Finally, add the keys which didn't appear before any key in `next`\n\n\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n\n return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nfunction getInitialChildMapping(props, onExited) {\n return getChildMapping(props.children, function (child) {\n return (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: true,\n appear: getProp(child, 'appear', props),\n enter: getProp(child, 'enter', props),\n exit: getProp(child, 'exit', props)\n });\n });\n}\n\nfunction getNextChildMapping(nextProps, prevChildMapping, onExited) {\n var nextChildMapping = getChildMapping(nextProps.children);\n var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n Object.keys(children).forEach(function (key) {\n var child = children[key];\n if (!(0, _react.isValidElement)(child)) return;\n var hasPrev = key in prevChildMapping;\n var hasNext = key in nextChildMapping;\n var prevChild = prevChildMapping[key];\n var isLeaving = (0, _react.isValidElement)(prevChild) && !prevChild.props.in; // item is new (entering)\n\n if (hasNext && (!hasPrev || isLeaving)) {\n // console.log('entering', key)\n children[key] = (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: true,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n } else if (!hasNext && hasPrev && !isLeaving) {\n // item is old (exiting)\n // console.log('leaving', key)\n children[key] = (0, _react.cloneElement)(child, {\n in: false\n });\n } else if (hasNext && hasPrev && (0, _react.isValidElement)(prevChild)) {\n // item hasn't changed transition states\n // copy over the last transition props;\n // console.log('unchanged', key)\n children[key] = (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: prevChild.props.in,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n }\n });\n return children;\n}","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/17daa4193aa985ec6666f741b98be692.json b/packages/web/node_modules/.cache/babel-loader/17daa4193aa985ec6666f741b98be692.json new file mode 100644 index 00000000..e551e1ef --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/17daa4193aa985ec6666f741b98be692.json @@ -0,0 +1 @@ +{"ast":null,"code":"/**\n * This is the web browser implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\nexports = module.exports = require('./debug');\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome && 'undefined' != typeof chrome.storage ? chrome.storage.local : localstorage();\n/**\n * Colors.\n */\n\nexports.colors = ['lightseagreen', 'forestgreen', 'goldenrod', 'dodgerblue', 'darkorchid', 'crimson'];\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {\n return true;\n } // is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\n\n return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // is firebug? http://stackoverflow.com/a/398120/376773\n typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // double check webkit in userAgent just in case we are in a worker\n typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/);\n}\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\n\nexports.formatters.j = function (v) {\n try {\n return JSON.stringify(v);\n } catch (err) {\n return '[UnexpectedJSONParseError]: ' + err.message;\n }\n};\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\n\nfunction formatArgs(args) {\n var useColors = this.useColors;\n args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports.humanize(this.diff);\n if (!useColors) return;\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit'); // the final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function (match) {\n if ('%%' === match) return;\n index++;\n\n if ('%c' === match) {\n // we only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n args.splice(lastC, 0, c);\n}\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\n\nfunction log() {\n // this hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return 'object' === typeof console && console.log && Function.prototype.apply.call(console.log, console, arguments);\n}\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\n\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch (e) {}\n}\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\n\nfunction load() {\n var r;\n\n try {\n r = exports.storage.debug;\n } catch (e) {} // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\n\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n/**\n * Enable namespaces listed in `localStorage.debug` initially.\n */\n\n\nexports.enable(load());\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/193938570af1e81d063a3a5e62a462fc.json b/packages/web/node_modules/.cache/babel-loader/193938570af1e81d063a3a5e62a462fc.json new file mode 100644 index 00000000..a4bb1512 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/193938570af1e81d063a3a5e62a462fc.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2017 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport * as Classes from \"../../common/classes\";\nimport * as Keys from \"../../common/keys\";\nimport { isReactNodeEmpty, safeInvoke } from \"../../common/utils\";\nimport { Icon } from \"../icon/icon\";\nimport { Spinner } from \"../spinner/spinner\";\n\nvar AbstractButton =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(AbstractButton, _super);\n\n function AbstractButton() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.state = {\n isActive: false\n };\n _this.refHandlers = {\n button: function button(ref) {\n _this.buttonRef = ref;\n safeInvoke(_this.props.elementRef, ref);\n }\n };\n _this.currentKeyDown = null; // we're casting as `any` to get around a somewhat opaque safeInvoke error\n // that \"Type argument candidate 'KeyboardEvent' is not a valid type\n // argument because it is not a supertype of candidate\n // 'KeyboardEvent'.\"\n\n _this.handleKeyDown = function (e) {\n if (Keys.isKeyboardClick(e.which)) {\n e.preventDefault();\n\n if (e.which !== _this.currentKeyDown) {\n _this.setState({\n isActive: true\n });\n }\n }\n\n _this.currentKeyDown = e.which;\n safeInvoke(_this.props.onKeyDown, e);\n };\n\n _this.handleKeyUp = function (e) {\n if (Keys.isKeyboardClick(e.which)) {\n _this.setState({\n isActive: false\n });\n\n _this.buttonRef.click();\n }\n\n _this.currentKeyDown = null;\n safeInvoke(_this.props.onKeyUp, e);\n };\n\n return _this;\n }\n\n AbstractButton.prototype.getCommonButtonProps = function () {\n var _a = this.props,\n alignText = _a.alignText,\n fill = _a.fill,\n large = _a.large,\n loading = _a.loading,\n minimal = _a.minimal,\n small = _a.small,\n tabIndex = _a.tabIndex;\n var disabled = this.props.disabled || loading;\n var className = classNames(Classes.BUTTON, (_b = {}, _b[Classes.ACTIVE] = this.state.isActive || this.props.active, _b[Classes.DISABLED] = disabled, _b[Classes.FILL] = fill, _b[Classes.LARGE] = large, _b[Classes.LOADING] = loading, _b[Classes.MINIMAL] = minimal, _b[Classes.SMALL] = small, _b), Classes.alignmentClass(alignText), Classes.intentClass(this.props.intent), this.props.className);\n return {\n className: className,\n disabled: disabled,\n onClick: disabled ? undefined : this.props.onClick,\n onKeyDown: this.handleKeyDown,\n onKeyUp: this.handleKeyUp,\n ref: this.refHandlers.button,\n tabIndex: disabled ? -1 : tabIndex\n };\n\n var _b;\n };\n\n AbstractButton.prototype.renderChildren = function () {\n var _a = this.props,\n children = _a.children,\n icon = _a.icon,\n loading = _a.loading,\n rightIcon = _a.rightIcon,\n text = _a.text;\n return [loading && React.createElement(Spinner, {\n key: \"loading\",\n className: Classes.BUTTON_SPINNER,\n size: Icon.SIZE_LARGE\n }), React.createElement(Icon, {\n key: \"leftIcon\",\n icon: icon\n }), (!isReactNodeEmpty(text) || !isReactNodeEmpty(children)) && React.createElement(\"span\", {\n key: \"text\",\n className: Classes.BUTTON_TEXT\n }, text, children), React.createElement(Icon, {\n key: \"rightIcon\",\n icon: rightIcon\n })];\n };\n\n return AbstractButton;\n}(React.PureComponent);\n\nexport { AbstractButton };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1b7cb4c5ac8f8e5143d36383c67654d3.json b/packages/web/node_modules/.cache/babel-loader/1b7cb4c5ac8f8e5143d36383c67654d3.json new file mode 100644 index 00000000..e3ab04f4 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1b7cb4c5ac8f8e5143d36383c67654d3.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2016 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nvar TAB_KEY_CODE = 9;\n/* istanbul ignore next */\n\n/**\n * A nifty little class that maintains event handlers to add a class to the container element\n * when entering \"mouse mode\" (on a `mousedown` event) and remove it when entering \"keyboard mode\"\n * (on a `tab` key `keydown` event).\n */\n\nvar InteractionModeEngine =\n/** @class */\nfunction () {\n // tslint:disable-next-line:no-constructor-vars\n function InteractionModeEngine(container, className) {\n var _this = this;\n\n this.container = container;\n this.className = className;\n this.isRunning = false;\n\n this.handleKeyDown = function (e) {\n if (e.which === TAB_KEY_CODE) {\n _this.reset();\n\n _this.container.addEventListener(\"mousedown\", _this.handleMouseDown);\n }\n };\n\n this.handleMouseDown = function () {\n _this.reset();\n\n _this.container.classList.add(_this.className);\n\n _this.container.addEventListener(\"keydown\", _this.handleKeyDown);\n };\n }\n /** Returns whether the engine is currently running. */\n\n\n InteractionModeEngine.prototype.isActive = function () {\n return this.isRunning;\n };\n /** Enable behavior which applies the given className when in mouse mode. */\n\n\n InteractionModeEngine.prototype.start = function () {\n this.container.addEventListener(\"mousedown\", this.handleMouseDown);\n this.isRunning = true;\n };\n /** Disable interaction mode behavior and remove className from container. */\n\n\n InteractionModeEngine.prototype.stop = function () {\n this.reset();\n this.isRunning = false;\n };\n\n InteractionModeEngine.prototype.reset = function () {\n this.container.classList.remove(this.className);\n this.container.removeEventListener(\"keydown\", this.handleKeyDown);\n this.container.removeEventListener(\"mousedown\", this.handleMouseDown);\n };\n\n return InteractionModeEngine;\n}();\n\nexport { InteractionModeEngine };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1b7e9431d0b90eb4ee7ac6e4351d34e1.json b/packages/web/node_modules/.cache/babel-loader/1b7e9431d0b90eb4ee7ac6e4351d34e1.json new file mode 100644 index 00000000..f3c5cb04 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1b7e9431d0b90eb4ee7ac6e4351d34e1.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2018 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport { Boundary } from \"../../common/boundary\";\nimport * as Classes from \"../../common/classes\";\nimport { Position } from \"../../common/position\";\nimport { Menu } from \"../menu/menu\";\nimport { MenuItem } from \"../menu/menuItem\";\nimport { OverflowList } from \"../overflow-list/overflowList\";\nimport { Popover } from \"../popover/popover\";\nimport { Breadcrumb } from \"./breadcrumb\";\n\nvar Breadcrumbs =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(Breadcrumbs, _super);\n\n function Breadcrumbs() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.renderOverflow = function (items) {\n var collapseFrom = _this.props.collapseFrom;\n var position = collapseFrom === Boundary.END ? Position.BOTTOM_RIGHT : Position.BOTTOM_LEFT;\n var orderedItems = items;\n\n if (collapseFrom === Boundary.START) {\n // If we're collapsing from the start, the menu should be read from the bottom to the\n // top, continuing with the breadcrumbs to the right. Since this means the first\n // breadcrumb in the props must be the last in the menu, we need to reverse the overlow\n // order.\n orderedItems = items.slice().reverse();\n }\n\n return React.createElement(\"li\", null, React.createElement(Popover, tslib_1.__assign({\n position: position\n }, _this.props.popoverProps), React.createElement(\"span\", {\n className: Classes.BREADCRUMBS_COLLAPSED\n }), React.createElement(Menu, null, orderedItems.map(_this.renderOverflowBreadcrumb))));\n };\n\n _this.renderOverflowBreadcrumb = function (props, index) {\n var isClickable = props.href != null || props.onClick != null;\n return React.createElement(MenuItem, tslib_1.__assign({\n disabled: !isClickable\n }, props, {\n text: props.text,\n key: index\n }));\n };\n\n _this.renderBreadcrumbWrapper = function (props, index) {\n var isCurrent = _this.props.items[_this.props.items.length - 1] === props;\n return React.createElement(\"li\", {\n key: index\n }, _this.renderBreadcrumb(props, isCurrent));\n };\n\n return _this;\n }\n\n Breadcrumbs.prototype.render = function () {\n var _a = this.props,\n className = _a.className,\n collapseFrom = _a.collapseFrom,\n items = _a.items,\n minVisibleItems = _a.minVisibleItems,\n _b = _a.overflowListProps,\n overflowListProps = _b === void 0 ? {} : _b;\n return React.createElement(OverflowList, tslib_1.__assign({\n collapseFrom: collapseFrom,\n minVisibleItems: minVisibleItems,\n tagName: \"ul\"\n }, overflowListProps, {\n className: classNames(Classes.BREADCRUMBS, overflowListProps.className, className),\n items: items,\n overflowRenderer: this.renderOverflow,\n visibleItemRenderer: this.renderBreadcrumbWrapper\n }));\n };\n\n Breadcrumbs.prototype.renderBreadcrumb = function (props, isCurrent) {\n if (isCurrent && this.props.currentBreadcrumbRenderer != null) {\n return this.props.currentBreadcrumbRenderer(props);\n } else if (this.props.breadcrumbRenderer != null) {\n return this.props.breadcrumbRenderer(props);\n } else {\n return React.createElement(Breadcrumb, tslib_1.__assign({}, props, {\n current: isCurrent\n }));\n }\n };\n\n Breadcrumbs.defaultProps = {\n collapseFrom: Boundary.START\n };\n return Breadcrumbs;\n}(React.PureComponent);\n\nexport { Breadcrumbs };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1b89ff88c96d89faa62ffb45fe7df9e5.json b/packages/web/node_modules/.cache/babel-loader/1b89ff88c96d89faa62ffb45fe7df9e5.json new file mode 100644 index 00000000..3a300582 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1b89ff88c96d89faa62ffb45fe7df9e5.json @@ -0,0 +1 @@ +{"ast":null,"code":"// shim for using process in browser\nvar process = module.exports = {}; // cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\n\nfunction defaultClearTimeout() {\n throw new Error('clearTimeout has not been defined');\n}\n\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n})();\n\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n } // if setTimeout wasn't available but was latter defined\n\n\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n}\n\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n } // if clearTimeout wasn't available but was latter defined\n\n\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n}\n\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n\n draining = false;\n\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n var len = queue.length;\n\n while (len) {\n currentQueue = queue;\n queue = [];\n\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n\n queueIndex = -1;\n len = queue.length;\n }\n\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n\n queue.push(new Item(fun, args));\n\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n}; // v8 likes predictible objects\n\n\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\n\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\n\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) {\n return [];\n};\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () {\n return '/';\n};\n\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\n\nprocess.umask = function () {\n return 0;\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1bc4b6de1aff115645ac327edfdb9c11.json b/packages/web/node_modules/.cache/babel-loader/1bc4b6de1aff115645ac327edfdb9c11.json new file mode 100644 index 00000000..2ad893a8 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1bc4b6de1aff115645ac327edfdb9c11.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1be4bf07f6f3f7ec999dce67636cef17.json b/packages/web/node_modules/.cache/babel-loader/1be4bf07f6f3f7ec999dce67636cef17.json new file mode 100644 index 00000000..71dc7917 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1be4bf07f6f3f7ec999dce67636cef17.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar createError = require('./createError');\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\n\n\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus; // Note: status is not exposed by XDomainRequest\n\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError('Request failed with status code ' + response.status, response.config, null, response.request, response));\n }\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1c1f00907f8b764133554bcd2bc343c9.json b/packages/web/node_modules/.cache/babel-loader/1c1f00907f8b764133554bcd2bc343c9.json new file mode 100644 index 00000000..513910d8 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1c1f00907f8b764133554bcd2bc343c9.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport hoistStatics from \"hoist-non-react-statics\";\nimport Route from \"./Route\";\n/**\n * A public higher-order component to access the imperative API\n */\n\nvar withRouter = function withRouter(Component) {\n var C = function C(props) {\n var wrappedComponentRef = props.wrappedComponentRef,\n remainingProps = _objectWithoutProperties(props, [\"wrappedComponentRef\"]);\n\n return React.createElement(Route, {\n children: function children(routeComponentProps) {\n return React.createElement(Component, _extends({}, remainingProps, routeComponentProps, {\n ref: wrappedComponentRef\n }));\n }\n });\n };\n\n C.displayName = \"withRouter(\" + (Component.displayName || Component.name) + \")\";\n C.WrappedComponent = Component;\n C.propTypes = {\n wrappedComponentRef: PropTypes.func\n };\n return hoistStatics(C, Component);\n};\n\nexport default withRouter;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1c32c109ee3c59defd8aabc839ae3647.json b/packages/web/node_modules/.cache/babel-loader/1c32c109ee3c59defd8aabc839ae3647.json new file mode 100644 index 00000000..fe5432b6 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1c32c109ee3c59defd8aabc839ae3647.json @@ -0,0 +1 @@ +{"ast":null,"code":"import pathToRegexp from \"path-to-regexp\";\nvar patternCache = {};\nvar cacheLimit = 10000;\nvar cacheCount = 0;\n\nvar compileGenerator = function compileGenerator(pattern) {\n var cacheKey = pattern;\n var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});\n if (cache[pattern]) return cache[pattern];\n var compiledGenerator = pathToRegexp.compile(pattern);\n\n if (cacheCount < cacheLimit) {\n cache[pattern] = compiledGenerator;\n cacheCount++;\n }\n\n return compiledGenerator;\n};\n/**\n * Public API for generating a URL pathname from a pattern and parameters.\n */\n\n\nvar generatePath = function generatePath() {\n var pattern = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"/\";\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (pattern === \"/\") {\n return pattern;\n }\n\n var generator = compileGenerator(pattern);\n return generator(params, {\n pretty: true\n });\n};\n\nexport default generatePath;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1c7cd1b700c83d336507ef33da357a8e.json b/packages/web/node_modules/.cache/babel-loader/1c7cd1b700c83d336507ef33da357a8e.json new file mode 100644 index 00000000..834b22df --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1c7cd1b700c83d336507ef33da357a8e.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport warning from \"warning\";\nimport invariant from \"invariant\";\nimport { createLocation, locationsAreEqual } from \"history\";\nimport generatePath from \"./generatePath\";\n/**\n * The public API for updating the location programmatically\n * with a component.\n */\n\nvar Redirect = function (_React$Component) {\n _inherits(Redirect, _React$Component);\n\n function Redirect() {\n _classCallCheck(this, Redirect);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Redirect.prototype.isStatic = function isStatic() {\n return this.context.router && this.context.router.staticContext;\n };\n\n Redirect.prototype.componentWillMount = function componentWillMount() {\n invariant(this.context.router, \"You should not use outside a \");\n if (this.isStatic()) this.perform();\n };\n\n Redirect.prototype.componentDidMount = function componentDidMount() {\n if (!this.isStatic()) this.perform();\n };\n\n Redirect.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {\n var prevTo = createLocation(prevProps.to);\n var nextTo = createLocation(this.props.to);\n\n if (locationsAreEqual(prevTo, nextTo)) {\n warning(false, \"You tried to redirect to the same route you're currently on: \" + (\"\\\"\" + nextTo.pathname + nextTo.search + \"\\\"\"));\n return;\n }\n\n this.perform();\n };\n\n Redirect.prototype.computeTo = function computeTo(_ref) {\n var computedMatch = _ref.computedMatch,\n to = _ref.to;\n\n if (computedMatch) {\n if (typeof to === \"string\") {\n return generatePath(to, computedMatch.params);\n } else {\n return _extends({}, to, {\n pathname: generatePath(to.pathname, computedMatch.params)\n });\n }\n }\n\n return to;\n };\n\n Redirect.prototype.perform = function perform() {\n var history = this.context.router.history;\n var push = this.props.push;\n var to = this.computeTo(this.props);\n\n if (push) {\n history.push(to);\n } else {\n history.replace(to);\n }\n };\n\n Redirect.prototype.render = function render() {\n return null;\n };\n\n return Redirect;\n}(React.Component);\n\nRedirect.propTypes = {\n computedMatch: PropTypes.object,\n // private, from \n push: PropTypes.bool,\n from: PropTypes.string,\n to: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired\n};\nRedirect.defaultProps = {\n push: false\n};\nRedirect.contextTypes = {\n router: PropTypes.shape({\n history: PropTypes.shape({\n push: PropTypes.func.isRequired,\n replace: PropTypes.func.isRequired\n }).isRequired,\n staticContext: PropTypes.object\n }).isRequired\n};\nexport default Redirect;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1cad4dee9d58973fc91f2473b374c7d2.json b/packages/web/node_modules/.cache/babel-loader/1cad4dee9d58973fc91f2473b374c7d2.json new file mode 100644 index 00000000..263a85f0 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1cad4dee9d58973fc91f2473b374c7d2.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2017 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport { DIVIDER } from \"../../common/classes\";\nimport { DISPLAYNAME_PREFIX } from \"../../common/props\"; // this component is simple enough that tests would be purely tautological.\n\n/* istanbul ignore next */\n\nvar Divider =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(Divider, _super);\n\n function Divider() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Divider.prototype.render = function () {\n var _a = this.props,\n className = _a.className,\n _b = _a.tagName,\n TagName = _b === void 0 ? \"div\" : _b,\n htmlProps = tslib_1.__rest(_a, [\"className\", \"tagName\"]);\n\n var classes = classNames(DIVIDER, className);\n return React.createElement(TagName, tslib_1.__assign({}, htmlProps, {\n className: classes\n }));\n };\n\n Divider.displayName = DISPLAYNAME_PREFIX + \".Divider\";\n return Divider;\n}(React.PureComponent);\n\nexport { Divider };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1e406d56174550c7c27528fb3c611d28.json b/packages/web/node_modules/.cache/babel-loader/1e406d56174550c7c27528fb3c611d28.json new file mode 100644 index 00000000..3c9c97fc --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1e406d56174550c7c27528fb3c611d28.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2018 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport { HTML_TABLE, HTML_TABLE_BORDERED, HTML_TABLE_CONDENSED, HTML_TABLE_STRIPED, INTERACTIVE, SMALL } from \"../../common/classes\"; // this component is simple enough that tests would be purely tautological.\n\n/* istanbul ignore next */\n\nvar HTMLTable =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(HTMLTable, _super);\n\n function HTMLTable() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n HTMLTable.prototype.render = function () {\n var _a = this.props,\n bordered = _a.bordered,\n className = _a.className,\n condensed = _a.condensed,\n elementRef = _a.elementRef,\n interactive = _a.interactive,\n small = _a.small,\n striped = _a.striped,\n htmlProps = tslib_1.__rest(_a, [\"bordered\", \"className\", \"condensed\", \"elementRef\", \"interactive\", \"small\", \"striped\"]);\n\n var classes = classNames(HTML_TABLE, (_b = {}, _b[HTML_TABLE_BORDERED] = bordered, _b[HTML_TABLE_CONDENSED] = condensed, _b[HTML_TABLE_STRIPED] = striped, _b[INTERACTIVE] = interactive, _b[SMALL] = small, _b), className); // tslint:disable-next-line:blueprint-html-components\n\n return React.createElement(\"table\", tslib_1.__assign({}, htmlProps, {\n ref: elementRef,\n className: classes\n }));\n\n var _b;\n };\n\n return HTMLTable;\n}(React.PureComponent);\n\nexport { HTMLTable };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1edc95f262605985b89b156799f5b56f.json b/packages/web/node_modules/.cache/babel-loader/1edc95f262605985b89b156799f5b56f.json new file mode 100644 index 00000000..90e9e342 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1edc95f262605985b89b156799f5b56f.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1f0c36187b3787bc71ce6e6d948a722f.json b/packages/web/node_modules/.cache/babel-loader/1f0c36187b3787bc71ce6e6d948a722f.json new file mode 100644 index 00000000..ce4c22bc --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1f0c36187b3787bc71ce6e6d948a722f.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _classCallCheck from \"/Users/Nabin/workspace/probro/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/Users/Nabin/workspace/probro/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/Users/Nabin/workspace/probro/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/Users/Nabin/workspace/probro/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/Users/Nabin/workspace/probro/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/Users/Nabin/workspace/probro/packages/web/src/App.js\";\nimport React, { Component } from 'react';\nimport add from '@probro/common';\nimport Home from './screens/';\n\nvar App =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(App, _Component);\n\n function App() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, App);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(App)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {};\n return _this;\n }\n\n _createClass(App, [{\n key: \"render\",\n value: function render() {\n return React.createElement(Home, {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10\n },\n __self: this\n });\n }\n }]);\n\n return App;\n}(Component);\n\nexport default App;","map":{"version":3,"sources":["/Users/Nabin/workspace/probro/packages/web/src/App.js"],"names":["React","Component","add","Home","App","state"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,GAAP,MAAgB,gBAAhB;AACA,OAAOC,IAAP,MAAiB,YAAjB;;IAEMC,G;;;;;;;;;;;;;;;;;UACJC,K,GAAO,E;;;;;;6BAEE;AACP,aACE,oBAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF;AAGD;;;;EAPeJ,S;;AAUlB,eAAeG,GAAf","sourcesContent":["import React, { Component } from 'react';\nimport add from '@probro/common';\nimport Home from './screens/';\n\nclass App extends Component {\n state ={};\n\n render() {\n return (\n \n );\n }\n}\n\nexport default App;\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1f188da29b1b1b5fd0359e13fdde1514.json b/packages/web/node_modules/.cache/babel-loader/1f188da29b1b1b5fd0359e13fdde1514.json new file mode 100644 index 00000000..4d98c407 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1f188da29b1b1b5fd0359e13fdde1514.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2016 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport { FOCUS_DISABLED } from \"../common/classes\";\nimport { InteractionModeEngine } from \"../common/interactionMode\";\n/* istanbul ignore next */\n\nvar fakeFocusEngine = {\n isActive: function isActive() {\n return true;\n },\n start: function start() {\n return true;\n },\n stop: function stop() {\n return true;\n }\n};\nvar focusEngine = typeof document !== \"undefined\" ? new InteractionModeEngine(document.documentElement, FOCUS_DISABLED) : fakeFocusEngine;\nexport var FocusStyleManager = {\n alwaysShowFocus: function alwaysShowFocus() {\n return focusEngine.stop();\n },\n isActive: function isActive() {\n return focusEngine.isActive();\n },\n onlyShowFocusOnTabs: function onlyShowFocusOnTabs() {\n return focusEngine.start();\n }\n};","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/1f975bdf6e220aa2f334aa0389169771.json b/packages/web/node_modules/.cache/babel-loader/1f975bdf6e220aa2f334aa0389169771.json new file mode 100644 index 00000000..cae411bc --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/1f975bdf6e220aa2f334aa0389169771.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2017 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport * as Classes from \"../../common/classes\";\nimport { DISPLAYNAME_PREFIX } from \"../../common/props\";\nimport { NavbarDivider } from \"./navbarDivider\";\nimport { NavbarGroup } from \"./navbarGroup\";\nimport { NavbarHeading } from \"./navbarHeading\"; // this component is simple enough that tests would be purely tautological.\n\n/* istanbul ignore next */\n\nvar Navbar =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(Navbar, _super);\n\n function Navbar() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Navbar.prototype.render = function () {\n var _a = this.props,\n children = _a.children,\n className = _a.className,\n fixedToTop = _a.fixedToTop,\n htmlProps = tslib_1.__rest(_a, [\"children\", \"className\", \"fixedToTop\"]);\n\n var classes = classNames(Classes.NAVBAR, (_b = {}, _b[Classes.FIXED_TOP] = fixedToTop, _b), className);\n return React.createElement(\"div\", tslib_1.__assign({\n className: classes\n }, htmlProps), children);\n\n var _b;\n };\n\n Navbar.displayName = DISPLAYNAME_PREFIX + \".Navbar\";\n Navbar.Divider = NavbarDivider;\n Navbar.Group = NavbarGroup;\n Navbar.Heading = NavbarHeading;\n return Navbar;\n}(React.PureComponent);\n\nexport { Navbar };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/22619d5859538e28cfa14fb6ddf37b99.json b/packages/web/node_modules/.cache/babel-loader/22619d5859538e28cfa14fb6ddf37b99.json new file mode 100644 index 00000000..3cbea06b --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/22619d5859538e28cfa14fb6ddf37b99.json @@ -0,0 +1 @@ +{"ast":null,"code":"function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport warning from \"warning\";\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createMemoryHistory as createHistory } from \"history\";\nimport Router from \"./Router\";\n/**\n * The public API for a that stores location in memory.\n */\n\nvar MemoryRouter = function (_React$Component) {\n _inherits(MemoryRouter, _React$Component);\n\n function MemoryRouter() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, MemoryRouter);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = createHistory(_this.props), _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n MemoryRouter.prototype.componentWillMount = function componentWillMount() {\n warning(!this.props.history, \" ignores the history prop. To use a custom history, \" + \"use `import { Router }` instead of `import { MemoryRouter as Router }`.\");\n };\n\n MemoryRouter.prototype.render = function render() {\n return React.createElement(Router, {\n history: this.history,\n children: this.props.children\n });\n };\n\n return MemoryRouter;\n}(React.Component);\n\nMemoryRouter.propTypes = {\n initialEntries: PropTypes.array,\n initialIndex: PropTypes.number,\n getUserConfirmation: PropTypes.func,\n keyLength: PropTypes.number,\n children: PropTypes.node\n};\nexport default MemoryRouter;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/231e9d865149094e0423b9863b8fd24e.json b/packages/web/node_modules/.cache/babel-loader/231e9d865149094e0423b9863b8fd24e.json new file mode 100644 index 00000000..3def1da6 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/231e9d865149094e0423b9863b8fd24e.json @@ -0,0 +1 @@ +{"ast":null,"code":"// Public components\nimport Popper, { placements } from './Popper';\nimport Manager from './Manager';\nimport Reference from './Reference';\nexport { Popper, placements, Manager, Reference }; // Public types","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/25e3f3ccb05be383081e4438928fa6a8.json b/packages/web/node_modules/.cache/babel-loader/25e3f3ccb05be383081e4438928fa6a8.json new file mode 100644 index 00000000..e6d70071 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/25e3f3ccb05be383081e4438928fa6a8.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n/**\n * Check if we're required to add a port number.\n *\n * @see https://url.spec.whatwg.org/#default-port\n * @param {Number|String} port Port number we need to check\n * @param {String} protocol Protocol we need to check against.\n * @returns {Boolean} Is it a default port for the given protocol\n * @api private\n */\n\nmodule.exports = function required(port, protocol) {\n protocol = protocol.split(':')[0];\n port = +port;\n if (!port) return false;\n\n switch (protocol) {\n case 'http':\n case 'ws':\n return port !== 80;\n\n case 'https':\n case 'wss':\n return port !== 443;\n\n case 'ftp':\n return port !== 21;\n\n case 'gopher':\n return port !== 70;\n\n case 'file':\n return false;\n }\n\n return port !== 0;\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/26ec323fb501ea426fa4592c237dc4df.json b/packages/web/node_modules/.cache/babel-loader/26ec323fb501ea426fa4592c237dc4df.json new file mode 100644 index 00000000..da9e4e67 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/26ec323fb501ea426fa4592c237dc4df.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2015 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport * as Classes from \"../../common/classes\";\nimport { DISPLAYNAME_PREFIX } from \"../../common/props\";\n\nvar TabTitle =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(TabTitle, _super);\n\n function TabTitle() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.handleClick = function (e) {\n return _this.props.onClick(_this.props.id, e);\n };\n\n return _this;\n }\n\n TabTitle.prototype.render = function () {\n var _a = this.props,\n disabled = _a.disabled,\n id = _a.id,\n parentId = _a.parentId,\n selected = _a.selected;\n return React.createElement(\"div\", {\n \"aria-controls\": generateTabPanelId(parentId, id),\n \"aria-disabled\": disabled,\n \"aria-expanded\": selected,\n \"aria-selected\": selected,\n className: classNames(Classes.TAB, this.props.className),\n \"data-tab-id\": id,\n id: generateTabTitleId(parentId, id),\n onClick: disabled ? undefined : this.handleClick,\n role: \"tab\",\n tabIndex: disabled ? undefined : 0\n }, this.props.title, this.props.children);\n };\n\n TabTitle.displayName = DISPLAYNAME_PREFIX + \".TabTitle\";\n return TabTitle;\n}(React.PureComponent);\n\nexport { TabTitle };\nexport function generateTabPanelId(parentId, tabId) {\n return Classes.TAB_PANEL + \"_\" + parentId + \"_\" + tabId;\n}\nexport function generateTabTitleId(parentId, tabId) {\n return Classes.TAB + \"-title_\" + parentId + \"_\" + tabId;\n}","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/27906eb29d96d7c661a13a38a8066cbb.json b/packages/web/node_modules/.cache/babel-loader/27906eb29d96d7c661a13a38a8066cbb.json new file mode 100644 index 00000000..5b40c6bd --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/27906eb29d96d7c661a13a38a8066cbb.json @@ -0,0 +1 @@ +{"ast":null,"code":"function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport warning from \"warning\";\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createHashHistory as createHistory } from \"history\";\nimport Router from \"./Router\";\n/**\n * The public API for a that uses window.location.hash.\n */\n\nvar HashRouter = function (_React$Component) {\n _inherits(HashRouter, _React$Component);\n\n function HashRouter() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, HashRouter);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = createHistory(_this.props), _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n HashRouter.prototype.componentWillMount = function componentWillMount() {\n warning(!this.props.history, \" ignores the history prop. To use a custom history, \" + \"use `import { Router }` instead of `import { HashRouter as Router }`.\");\n };\n\n HashRouter.prototype.render = function render() {\n return React.createElement(Router, {\n history: this.history,\n children: this.props.children\n });\n };\n\n return HashRouter;\n}(React.Component);\n\nHashRouter.propTypes = {\n basename: PropTypes.string,\n getUserConfirmation: PropTypes.func,\n hashType: PropTypes.oneOf([\"hashbang\", \"noslash\", \"slash\"]),\n children: PropTypes.node\n};\nexport default HashRouter;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/29b2c8955bb52efa2b888cd53a5cf611.json b/packages/web/node_modules/.cache/babel-loader/29b2c8955bb52efa2b888cd53a5cf611.json new file mode 100644 index 00000000..0145115c --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/29b2c8955bb52efa2b888cd53a5cf611.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2017 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as IconContents from \"./generated/iconContents\";\nimport * as IconNames from \"./generated/iconNames\";\nexport { IconContents, IconNames };\nexport { IconSvgPaths16, IconSvgPaths20 } from \"./generated/iconSvgPaths\";","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/2b49268ea27b1af962db21cc9ce89ab3.json b/packages/web/node_modules/.cache/babel-loader/2b49268ea27b1af962db21cc9ce89ab3.json new file mode 100644 index 00000000..aab00e94 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/2b49268ea27b1af962db21cc9ce89ab3.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2016 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { AbstractPureComponent } from \"../../common/abstractPureComponent\";\nimport * as Classes from \"../../common/classes\";\nimport { TOASTER_CREATE_NULL, TOASTER_WARN_INLINE } from \"../../common/errors\";\nimport { ESCAPE } from \"../../common/keys\";\nimport { Position } from \"../../common/position\";\nimport { DISPLAYNAME_PREFIX } from \"../../common/props\";\nimport { isNodeEnv, safeInvoke } from \"../../common/utils\";\nimport { Overlay } from \"../overlay/overlay\";\nimport { Toast } from \"./toast\";\n\nvar Toaster =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(Toaster, _super);\n\n function Toaster() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.state = {\n toasts: []\n }; // auto-incrementing identifier for un-keyed toasts\n\n _this.toastId = 0;\n\n _this.getDismissHandler = function (toast) {\n return function (timeoutExpired) {\n _this.dismiss(toast.key, timeoutExpired);\n };\n };\n\n _this.handleClose = function (e) {\n // NOTE that `e` isn't always a KeyboardEvent but that's the only type we care about\n if (e.which === ESCAPE) {\n _this.clear();\n }\n };\n\n return _this;\n }\n /**\n * Create a new `Toaster` instance that can be shared around your application.\n * The `Toaster` will be rendered into a new element appended to the given container.\n */\n\n\n Toaster.create = function (props, container) {\n if (container === void 0) {\n container = document.body;\n }\n\n if (props != null && props.usePortal != null && !isNodeEnv(\"production\")) {\n console.warn(TOASTER_WARN_INLINE);\n }\n\n var containerElement = document.createElement(\"div\");\n container.appendChild(containerElement);\n var toaster = ReactDOM.render(React.createElement(Toaster, tslib_1.__assign({}, props, {\n usePortal: false\n })), containerElement);\n\n if (toaster == null) {\n throw new Error(TOASTER_CREATE_NULL);\n }\n\n return toaster;\n };\n\n Toaster.prototype.show = function (props, key) {\n var options = this.createToastOptions(props, key);\n\n if (key === undefined || this.isNewToastKey(key)) {\n this.setState(function (prevState) {\n return {\n toasts: [options].concat(prevState.toasts)\n };\n });\n } else {\n this.setState(function (prevState) {\n return {\n toasts: prevState.toasts.map(function (t) {\n return t.key === key ? options : t;\n })\n };\n });\n }\n\n return options.key;\n };\n\n Toaster.prototype.dismiss = function (key, timeoutExpired) {\n if (timeoutExpired === void 0) {\n timeoutExpired = false;\n }\n\n this.setState(function (_a) {\n var toasts = _a.toasts;\n return {\n toasts: toasts.filter(function (t) {\n var matchesKey = t.key === key;\n\n if (matchesKey) {\n safeInvoke(t.onDismiss, timeoutExpired);\n }\n\n return !matchesKey;\n })\n };\n });\n };\n\n Toaster.prototype.clear = function () {\n this.state.toasts.map(function (t) {\n return safeInvoke(t.onDismiss, false);\n });\n this.setState({\n toasts: []\n });\n };\n\n Toaster.prototype.getToasts = function () {\n return this.state.toasts;\n };\n\n Toaster.prototype.render = function () {\n // $pt-transition-duration * 3 + $pt-transition-duration / 2\n var classes = classNames(Classes.TOAST_CONTAINER, this.getPositionClasses(), this.props.className);\n return React.createElement(Overlay, {\n autoFocus: this.props.autoFocus,\n canEscapeKeyClose: this.props.canEscapeKeyClear,\n canOutsideClickClose: false,\n className: classes,\n enforceFocus: false,\n hasBackdrop: false,\n isOpen: this.state.toasts.length > 0 || this.props.children != null,\n onClose: this.handleClose,\n transitionDuration: 350,\n transitionName: Classes.TOAST,\n usePortal: this.props.usePortal\n }, this.state.toasts.map(this.renderToast, this), this.props.children);\n };\n\n Toaster.prototype.isNewToastKey = function (key) {\n return this.state.toasts.every(function (toast) {\n return toast.key !== key;\n });\n };\n\n Toaster.prototype.renderToast = function (toast) {\n return React.createElement(Toast, tslib_1.__assign({}, toast, {\n onDismiss: this.getDismissHandler(toast)\n }));\n };\n\n Toaster.prototype.createToastOptions = function (props, key) {\n if (key === void 0) {\n key = \"toast-\" + this.toastId++;\n } // clone the object before adding the key prop to avoid leaking the mutation\n\n\n return tslib_1.__assign({}, props, {\n key: key\n });\n };\n\n Toaster.prototype.getPositionClasses = function () {\n var positions = this.props.position.split(\"-\"); // NOTE that there is no -center class because that's the default style\n\n return positions.map(function (p) {\n return Classes.TOAST_CONTAINER + \"-\" + p.toLowerCase();\n });\n };\n\n Toaster.displayName = DISPLAYNAME_PREFIX + \".Toaster\";\n Toaster.defaultProps = {\n autoFocus: false,\n canEscapeKeyClear: true,\n position: Position.TOP,\n usePortal: true\n };\n return Toaster;\n}(AbstractPureComponent);\n\nexport { Toaster };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/2c5399eb46f01aec4fdb2e92ed651698.json b/packages/web/node_modules/.cache/babel-loader/2c5399eb46f01aec4fdb2e92ed651698.json new file mode 100644 index 00000000..56605d80 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/2c5399eb46f01aec4fdb2e92ed651698.json @@ -0,0 +1 @@ +{"ast":null,"code":"if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n\n var TempCtor = function TempCtor() {};\n\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n };\n}","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/2d7d54e916c1a291e472a03919051f06.json b/packages/web/node_modules/.cache/babel-loader/2d7d54e916c1a291e472a03919051f06.json new file mode 100644 index 00000000..e63df739 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/2d7d54e916c1a291e472a03919051f06.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _classCallCheck from \"/Users/Nabin/workspace/probro/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/Users/Nabin/workspace/probro/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/Users/Nabin/workspace/probro/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/Users/Nabin/workspace/probro/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/Users/Nabin/workspace/probro/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/Users/Nabin/workspace/probro/packages/web/src/screens/home/component/slider.js\";\nimport React, { Component } from 'react';\nimport { Input } from '../../../common';\nvar color = ['red', 'blue', 'yellow', 'green'];\nvar currentColorIndex = 0;\n\nvar Slider =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Slider, _Component);\n\n function Slider() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Slider);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Slider)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n color: 'red'\n };\n\n _this.changeBackGroundColor = function () {\n if (currentColorIndex === 4) {\n currentColorIndex = 0;\n\n _this.setState({\n color: color[currentColorIndex]\n });\n\n currentColorIndex += 1;\n } else {\n _this.setState({\n color: color[currentColorIndex]\n });\n\n currentColorIndex += 1;\n }\n };\n\n return _this;\n }\n\n _createClass(Slider, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n setInterval(this.changeBackGroundColor, 2000);\n }\n }, {\n key: \"render\",\n value: function render() {\n return React.createElement(\"div\", {\n className: \"slider-container\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28\n },\n __self: this\n }, React.createElement(\"div\", {\n className: \"slider\",\n style: {\n backgroundColor: this.state.color\n },\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29\n },\n __self: this\n }), React.createElement(\"div\", {\n className: \"search-box-container\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30\n },\n __self: this\n }, React.createElement(Input, {\n placeholder: \"Enter a Keyword\",\n iconName: \"Search\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31\n },\n __self: this\n })));\n }\n }]);\n\n return Slider;\n}(Component);\n\nexport default Slider;","map":{"version":3,"sources":["/Users/Nabin/workspace/probro/packages/web/src/screens/home/component/slider.js"],"names":["React","Component","Input","color","currentColorIndex","Slider","state","changeBackGroundColor","setState","setInterval","backgroundColor"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAAQC,KAAR,QAAoB,iBAApB;AAEA,IAAIC,KAAK,GAAG,CAAC,KAAD,EAAQ,MAAR,EAAgB,QAAhB,EAA0B,OAA1B,CAAZ;AACA,IAAIC,iBAAiB,GAAG,CAAxB;;IAEMC,M;;;;;;;;;;;;;;;;;UAEFC,K,GAAM;AAAEH,MAAAA,KAAK,EAAE;AAAT,K;;UAMNI,qB,GAAwB,YAAM;AAC1B,UAAIH,iBAAiB,KAAK,CAA1B,EAA6B;AACzBA,QAAAA,iBAAiB,GAAG,CAApB;;AACA,cAAKI,QAAL,CAAc;AAAEL,UAAAA,KAAK,EAAEA,KAAK,CAACC,iBAAD;AAAd,SAAd;;AACAA,QAAAA,iBAAiB,IAAG,CAApB;AACH,OAJD,MAIO;AACH,cAAKI,QAAL,CAAc;AAAEL,UAAAA,KAAK,EAAEA,KAAK,CAACC,iBAAD;AAAd,SAAd;;AACAA,QAAAA,iBAAiB,IAAI,CAArB;AACH;AACJ,K;;;;;;;wCAbmB;AACpBK,MAAAA,WAAW,CAAC,KAAKF,qBAAN,EAA6B,IAA7B,CAAX;AACC;;;6BAaQ;AACL,aACI;AAAK,QAAA,SAAS,EAAC,kBAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACI;AAAK,QAAA,SAAS,EAAC,QAAf;AAAwB,QAAA,KAAK,EAAE;AAAEG,UAAAA,eAAe,EAAE,KAAKJ,KAAL,CAAWH;AAA9B,SAA/B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,EAEI;AAAK,QAAA,SAAS,EAAC,sBAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACI,oBAAC,KAAD;AAAO,QAAA,WAAW,EAAC,iBAAnB;AAAqC,QAAA,QAAQ,EAAC,QAA9C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAFJ,CADJ;AAQH;;;;EA5BgBF,S;;AA+BrB,eAAeI,MAAf","sourcesContent":["import React, { Component } from 'react';\nimport {Input} from '../../../common';\n\nlet color = ['red', 'blue', 'yellow', 'green'];\nlet currentColorIndex = 0;\n\nclass Slider extends Component {\n\n state={ color: 'red' };\n\n componentDidMount() {\n setInterval(this.changeBackGroundColor, 2000);\n }\n\n changeBackGroundColor = () => {\n if (currentColorIndex === 4) {\n currentColorIndex = 0;\n this.setState({ color: color[currentColorIndex]});\n currentColorIndex +=1;\n } else {\n this.setState({ color: color[currentColorIndex] });\n currentColorIndex += 1;\n }\n }\n\n render() {\n return (\n
\n
\n
\n \n
\n
\n );\n }\n}\n\nexport default Slider;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/2e5694034411dbbc15a0d81faf0ac85a.json b/packages/web/node_modules/.cache/babel-loader/2e5694034411dbbc15a0d81faf0ac85a.json new file mode 100644 index 00000000..82a37005 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/2e5694034411dbbc15a0d81faf0ac85a.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2015 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport * as Classes from \"../../common/classes\";\nimport { DISPLAYNAME_PREFIX } from \"../../common/props\";\nimport { safeInvoke } from \"../../common/utils\";\nimport { Collapse } from \"../collapse/collapse\";\nimport { Icon } from \"../icon/icon\";\n\nvar TreeNode =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(TreeNode, _super);\n\n function TreeNode() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.handleCaretClick = function (e) {\n e.stopPropagation();\n var _a = _this.props,\n isExpanded = _a.isExpanded,\n onCollapse = _a.onCollapse,\n onExpand = _a.onExpand;\n safeInvoke(isExpanded ? onCollapse : onExpand, _this, e);\n };\n\n _this.handleClick = function (e) {\n safeInvoke(_this.props.onClick, _this, e);\n };\n\n _this.handleContentRef = function (element) {\n safeInvoke(_this.props.contentRef, _this, element);\n };\n\n _this.handleContextMenu = function (e) {\n safeInvoke(_this.props.onContextMenu, _this, e);\n };\n\n _this.handleDoubleClick = function (e) {\n safeInvoke(_this.props.onDoubleClick, _this, e);\n };\n\n _this.handleMouseEnter = function (e) {\n safeInvoke(_this.props.onMouseEnter, _this, e);\n };\n\n _this.handleMouseLeave = function (e) {\n safeInvoke(_this.props.onMouseLeave, _this, e);\n };\n\n return _this;\n }\n\n TreeNode.ofType = function () {\n return TreeNode;\n };\n\n TreeNode.prototype.render = function () {\n var _a = this.props,\n children = _a.children,\n className = _a.className,\n icon = _a.icon,\n isExpanded = _a.isExpanded,\n isSelected = _a.isSelected,\n label = _a.label;\n var classes = classNames(Classes.TREE_NODE, (_b = {}, _b[Classes.TREE_NODE_SELECTED] = isSelected, _b[Classes.TREE_NODE_EXPANDED] = isExpanded, _b), className);\n var contentClasses = classNames(Classes.TREE_NODE_CONTENT, Classes.TREE_NODE_CONTENT + \"-\" + this.props.depth);\n return React.createElement(\"li\", {\n className: classes\n }, React.createElement(\"div\", {\n className: contentClasses,\n onClick: this.handleClick,\n onContextMenu: this.handleContextMenu,\n onDoubleClick: this.handleDoubleClick,\n onMouseEnter: this.handleMouseEnter,\n onMouseLeave: this.handleMouseLeave,\n ref: this.handleContentRef\n }, this.maybeRenderCaret(), React.createElement(Icon, {\n className: Classes.TREE_NODE_ICON,\n icon: icon\n }), React.createElement(\"span\", {\n className: Classes.TREE_NODE_LABEL\n }, label), this.maybeRenderSecondaryLabel()), React.createElement(Collapse, {\n isOpen: isExpanded\n }, children));\n\n var _b;\n };\n\n TreeNode.prototype.maybeRenderCaret = function () {\n var _a = this.props.hasCaret,\n hasCaret = _a === void 0 ? React.Children.count(this.props.children) > 0 : _a;\n\n if (hasCaret) {\n var caretClasses = classNames(Classes.TREE_NODE_CARET, this.props.isExpanded ? Classes.TREE_NODE_CARET_OPEN : Classes.TREE_NODE_CARET_CLOSED);\n return React.createElement(Icon, {\n className: caretClasses,\n onClick: this.handleCaretClick,\n icon: \"chevron-right\"\n });\n }\n\n return React.createElement(\"span\", {\n className: Classes.TREE_NODE_CARET_NONE\n });\n };\n\n TreeNode.prototype.maybeRenderSecondaryLabel = function () {\n if (this.props.secondaryLabel != null) {\n return React.createElement(\"span\", {\n className: Classes.TREE_NODE_SECONDARY_LABEL\n }, this.props.secondaryLabel);\n } else {\n return undefined;\n }\n };\n\n TreeNode.displayName = DISPLAYNAME_PREFIX + \".TreeNode\";\n return TreeNode;\n}(React.Component);\n\nexport { TreeNode };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/2eb022e096ec4bd680f379c8d0f159de.json b/packages/web/node_modules/.cache/babel-loader/2eb022e096ec4bd680f379c8d0f159de.json new file mode 100644 index 00000000..9f82f670 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/2eb022e096ec4bd680f379c8d0f159de.json @@ -0,0 +1 @@ +{"ast":null,"code":"/**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n'use strict';\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = function warning() {};\n\nif (process.env.NODE_ENV !== 'production') {\n warning = function warning(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.length < 10 || /^[s\\W]*$/.test(format)) {\n throw new Error('The warning format should be able to uniquely identify this ' + 'warning. Please, use a more descriptive format than: ' + format);\n }\n\n if (!condition) {\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n\n try {\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n };\n}\n\nmodule.exports = warning;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/2f2ef67ab6f62412e2244ef1c2f6e108.json b/packages/web/node_modules/.cache/babel-loader/2f2ef67ab6f62412e2244ef1c2f6e108.json new file mode 100644 index 00000000..711f0080 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/2f2ef67ab6f62412e2244ef1c2f6e108.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar inherits = require('inherits'),\n XhrDriver = require('../driver/xhr');\n\nfunction XHRLocalObject(method, url, payload\n/*, opts */\n) {\n XhrDriver.call(this, method, url, payload, {\n noCredentials: true\n });\n}\n\ninherits(XHRLocalObject, XhrDriver);\nXHRLocalObject.enabled = XhrDriver.enabled;\nmodule.exports = XHRLocalObject;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/2faff89aa9c1ee6cc639bb57e87d9ff7.json b/packages/web/node_modules/.cache/babel-loader/2faff89aa9c1ee6cc639bb57e87d9ff7.json new file mode 100644 index 00000000..7982e863 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/2faff89aa9c1ee6cc639bb57e87d9ff7.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar has = Object.prototype.hasOwnProperty,\n undef;\n/**\n * Decode a URI encoded string.\n *\n * @param {String} input The URI encoded string.\n * @returns {String} The decoded string.\n * @api private\n */\n\nfunction decode(input) {\n return decodeURIComponent(input.replace(/\\+/g, ' '));\n}\n/**\n * Simple query string parser.\n *\n * @param {String} query The query string that needs to be parsed.\n * @returns {Object}\n * @api public\n */\n\n\nfunction querystring(query) {\n var parser = /([^=?&]+)=?([^&]*)/g,\n result = {},\n part;\n\n while (part = parser.exec(query)) {\n var key = decode(part[1]),\n value = decode(part[2]); //\n // Prevent overriding of existing properties. This ensures that build-in\n // methods like `toString` or __proto__ are not overriden by malicious\n // querystrings.\n //\n\n if (key in result) continue;\n result[key] = value;\n }\n\n return result;\n}\n/**\n * Transform a query string to an object.\n *\n * @param {Object} obj Object that should be transformed.\n * @param {String} prefix Optional prefix.\n * @returns {String}\n * @api public\n */\n\n\nfunction querystringify(obj, prefix) {\n prefix = prefix || '';\n var pairs = [],\n value,\n key; //\n // Optionally prefix with a '?' if needed\n //\n\n if ('string' !== typeof prefix) prefix = '?';\n\n for (key in obj) {\n if (has.call(obj, key)) {\n value = obj[key]; //\n // Edge cases where we actually want to encode the value to an empty\n // string instead of the stringified value.\n //\n\n if (!value && (value === null || value === undef || isNaN(value))) {\n value = '';\n }\n\n pairs.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));\n }\n }\n\n return pairs.length ? prefix + pairs.join('&') : '';\n} //\n// Expose the module.\n//\n\n\nexports.stringify = querystringify;\nexports.parse = querystring;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/310b058a88125819325c1c08d6fce87e.json b/packages/web/node_modules/.cache/babel-loader/310b058a88125819325c1c08d6fce87e.json new file mode 100644 index 00000000..2e9982e0 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/310b058a88125819325c1c08d6fce87e.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _BrowserRouter from \"./BrowserRouter\";\nexport { _BrowserRouter as BrowserRouter };\nimport _HashRouter from \"./HashRouter\";\nexport { _HashRouter as HashRouter };\nimport _Link from \"./Link\";\nexport { _Link as Link };\nimport _MemoryRouter from \"./MemoryRouter\";\nexport { _MemoryRouter as MemoryRouter };\nimport _NavLink from \"./NavLink\";\nexport { _NavLink as NavLink };\nimport _Prompt from \"./Prompt\";\nexport { _Prompt as Prompt };\nimport _Redirect from \"./Redirect\";\nexport { _Redirect as Redirect };\nimport _Route from \"./Route\";\nexport { _Route as Route };\nimport _Router from \"./Router\";\nexport { _Router as Router };\nimport _StaticRouter from \"./StaticRouter\";\nexport { _StaticRouter as StaticRouter };\nimport _Switch from \"./Switch\";\nexport { _Switch as Switch };\nimport _generatePath from \"./generatePath\";\nexport { _generatePath as generatePath };\nimport _matchPath from \"./matchPath\";\nexport { _matchPath as matchPath };\nimport _withRouter from \"./withRouter\";\nexport { _withRouter as withRouter };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/3450111456627388bff38b4ddc42d1d4.json b/packages/web/node_modules/.cache/babel-loader/3450111456627388bff38b4ddc42d1d4.json new file mode 100644 index 00000000..e051f24c --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/3450111456627388bff38b4ddc42d1d4.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2015 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport { Alignment } from \"./alignment\";\nimport { Elevation } from \"./elevation\";\nimport { Intent } from \"./intent\";\nvar NS = process.env.BLUEPRINT_NAMESPACE || \"bp3\"; // modifiers\n\nexport var ACTIVE = NS + \"-active\";\nexport var ALIGN_LEFT = NS + \"-align-left\";\nexport var ALIGN_RIGHT = NS + \"-align-right\";\nexport var DARK = NS + \"-dark\";\nexport var DISABLED = NS + \"-disabled\";\nexport var FILL = NS + \"-fill\";\nexport var FIXED = NS + \"-fixed\";\nexport var FIXED_TOP = NS + \"-fixed-top\";\nexport var INLINE = NS + \"-inline\";\nexport var INTERACTIVE = NS + \"-interactive\";\nexport var LARGE = NS + \"-large\";\nexport var LOADING = NS + \"-loading\";\nexport var MINIMAL = NS + \"-minimal\";\nexport var MULTILINE = NS + \"-multiline\";\nexport var ROUND = NS + \"-round\";\nexport var SMALL = NS + \"-small\";\nexport var VERTICAL = NS + \"-vertical\";\nexport var ELEVATION_0 = elevationClass(Elevation.ZERO);\nexport var ELEVATION_1 = elevationClass(Elevation.ONE);\nexport var ELEVATION_2 = elevationClass(Elevation.TWO);\nexport var ELEVATION_3 = elevationClass(Elevation.THREE);\nexport var ELEVATION_4 = elevationClass(Elevation.FOUR);\nexport var INTENT_PRIMARY = intentClass(Intent.PRIMARY);\nexport var INTENT_SUCCESS = intentClass(Intent.SUCCESS);\nexport var INTENT_WARNING = intentClass(Intent.WARNING);\nexport var INTENT_DANGER = intentClass(Intent.DANGER);\nexport var FOCUS_DISABLED = NS + \"-focus-disabled\"; // text utilities\n\nexport var UI_TEXT = NS + \"-ui-text\";\nexport var RUNNING_TEXT = NS + \"-running-text\";\nexport var MONOSPACE_TEXT = NS + \"-monospace-text\";\nexport var TEXT_LARGE = NS + \"-text-large\";\nexport var TEXT_SMALL = NS + \"-text-small\";\nexport var TEXT_MUTED = NS + \"-text-muted\";\nexport var TEXT_DISABLED = NS + \"-text-disabled\";\nexport var TEXT_OVERFLOW_ELLIPSIS = NS + \"-text-overflow-ellipsis\"; // textual elements\n\nexport var BLOCKQUOTE = NS + \"-blockquote\";\nexport var CODE = NS + \"-code\";\nexport var CODE_BLOCK = NS + \"-code-block\";\nexport var HEADING = NS + \"-heading\";\nexport var LIST = NS + \"-list\";\nexport var LIST_UNSTYLED = NS + \"-list-unstyled\";\nexport var RTL = NS + \"-rtl\"; // components\n\nexport var ALERT = NS + \"-alert\";\nexport var ALERT_BODY = ALERT + \"-body\";\nexport var ALERT_CONTENTS = ALERT + \"-contents\";\nexport var ALERT_FOOTER = ALERT + \"-footer\";\nexport var BREADCRUMB = NS + \"-breadcrumb\";\nexport var BREADCRUMB_CURRENT = BREADCRUMB + \"-current\";\nexport var BREADCRUMBS = BREADCRUMB + \"s\";\nexport var BREADCRUMBS_COLLAPSED = BREADCRUMB + \"s-collapsed\";\nexport var BUTTON = NS + \"-button\";\nexport var BUTTON_GROUP = BUTTON + \"-group\";\nexport var BUTTON_SPINNER = BUTTON + \"-spinner\";\nexport var BUTTON_TEXT = BUTTON + \"-text\";\nexport var CALLOUT = NS + \"-callout\";\nexport var CALLOUT_ICON = CALLOUT + \"-icon\";\nexport var CARD = NS + \"-card\";\nexport var COLLAPSE = NS + \"-collapse\";\nexport var COLLAPSE_BODY = COLLAPSE + \"-body\";\nexport var COLLAPSIBLE_LIST = NS + \"-collapse-list\";\nexport var CONTEXT_MENU = NS + \"-context-menu\";\nexport var CONTEXT_MENU_POPOVER_TARGET = CONTEXT_MENU + \"-popover-target\";\nexport var CONTROL_GROUP = NS + \"-control-group\";\nexport var DIALOG = NS + \"-dialog\";\nexport var DIALOG_CONTAINER = DIALOG + \"-container\";\nexport var DIALOG_BODY = DIALOG + \"-body\";\nexport var DIALOG_CLOSE_BUTTON = DIALOG + \"-close-button\";\nexport var DIALOG_FOOTER = DIALOG + \"-footer\";\nexport var DIALOG_FOOTER_ACTIONS = DIALOG + \"-footer-actions\";\nexport var DIALOG_HEADER = DIALOG + \"-header\";\nexport var DIVIDER = NS + \"-divider\";\nexport var EDITABLE_TEXT = NS + \"-editable-text\";\nexport var EDITABLE_TEXT_CONTENT = EDITABLE_TEXT + \"-content\";\nexport var EDITABLE_TEXT_EDITING = EDITABLE_TEXT + \"-editing\";\nexport var EDITABLE_TEXT_INPUT = EDITABLE_TEXT + \"-input\";\nexport var EDITABLE_TEXT_PLACEHOLDER = EDITABLE_TEXT + \"-placeholder\";\nexport var FLEX_EXPANDER = NS + \"-flex-expander\";\nexport var HTML_SELECT = NS + \"-html-select\";\n/** @deprecated prefer `` component */\n\nexport var SELECT = NS + \"-select\";\nexport var HTML_TABLE = NS + \"-html-table\";\nexport var HTML_TABLE_BORDERED = HTML_TABLE + \"-bordered\";\nexport var HTML_TABLE_CONDENSED = HTML_TABLE + \"-condensed\";\nexport var HTML_TABLE_STRIPED = HTML_TABLE + \"-striped\";\nexport var INPUT = NS + \"-input\";\nexport var INPUT_GHOST = INPUT + \"-ghost\";\nexport var INPUT_GROUP = INPUT + \"-group\";\nexport var INPUT_ACTION = INPUT + \"-action\";\nexport var CONTROL = NS + \"-control\";\nexport var CONTROL_INDICATOR = CONTROL + \"-indicator\";\nexport var CHECKBOX = NS + \"-checkbox\";\nexport var RADIO = NS + \"-radio\";\nexport var SWITCH = NS + \"-switch\";\nexport var FILE_INPUT = NS + \"-file-input\";\nexport var FILE_UPLOAD_INPUT = NS + \"-file-upload-input\";\nexport var KEY = NS + \"-key\";\nexport var KEY_COMBO = KEY + \"-combo\";\nexport var MODIFIER_KEY = NS + \"-modifier-key\";\nexport var HOTKEY = NS + \"-hotkey\";\nexport var HOTKEY_LABEL = HOTKEY + \"-label\";\nexport var HOTKEY_COLUMN = HOTKEY + \"-column\";\nexport var HOTKEY_DIALOG = HOTKEY + \"-dialog\";\nexport var LABEL = NS + \"-label\";\nexport var FORM_GROUP = NS + \"-form-group\";\nexport var FORM_CONTENT = NS + \"-form-content\";\nexport var FORM_HELPER_TEXT = NS + \"-form-helper-text\";\nexport var MENU = NS + \"-menu\";\nexport var MENU_ITEM = MENU + \"-item\";\nexport var MENU_ITEM_LABEL = MENU_ITEM + \"-label\";\nexport var MENU_SUBMENU = NS + \"-submenu\";\nexport var MENU_DIVIDER = MENU + \"-divider\";\nexport var MENU_HEADER = MENU + \"-header\";\nexport var NAVBAR = NS + \"-navbar\";\nexport var NAVBAR_GROUP = NAVBAR + \"-group\";\nexport var NAVBAR_HEADING = NAVBAR + \"-heading\";\nexport var NAVBAR_DIVIDER = NAVBAR + \"-divider\";\nexport var NON_IDEAL_STATE = NS + \"-non-ideal-state\";\nexport var NON_IDEAL_STATE_VISUAL = NON_IDEAL_STATE + \"-visual\";\nexport var NUMERIC_INPUT = NS + \"-numeric-input\";\nexport var OVERFLOW_LIST = NS + \"-overflow-list\";\nexport var OVERFLOW_LIST_SPACER = OVERFLOW_LIST + \"-spacer\";\nexport var OVERLAY = NS + \"-overlay\";\nexport var OVERLAY_BACKDROP = OVERLAY + \"-backdrop\";\nexport var OVERLAY_CONTENT = OVERLAY + \"-content\";\nexport var OVERLAY_INLINE = OVERLAY + \"-inline\";\nexport var OVERLAY_OPEN = OVERLAY + \"-open\";\nexport var OVERLAY_SCROLL_CONTAINER = OVERLAY + \"-scroll-container\";\nexport var PANEL_STACK = NS + \"-panel-stack\";\nexport var PANEL_STACK_HEADER = PANEL_STACK + \"-header\";\nexport var PANEL_STACK_HEADER_BACK = PANEL_STACK + \"-header-back\";\nexport var PANEL_STACK_VIEW = PANEL_STACK + \"-view\";\nexport var POPOVER = NS + \"-popover\";\nexport var POPOVER_ARROW = POPOVER + \"-arrow\";\nexport var POPOVER_BACKDROP = POPOVER + \"-backdrop\";\nexport var POPOVER_CONTENT = POPOVER + \"-content\";\nexport var POPOVER_CONTENT_SIZING = POPOVER_CONTENT + \"-sizing\";\nexport var POPOVER_DISMISS = POPOVER + \"-dismiss\";\nexport var POPOVER_DISMISS_OVERRIDE = POPOVER_DISMISS + \"-override\";\nexport var POPOVER_OPEN = POPOVER + \"-open\";\nexport var POPOVER_TARGET = POPOVER + \"-target\";\nexport var POPOVER_WRAPPER = POPOVER + \"-wrapper\";\nexport var TRANSITION_CONTAINER = NS + \"-transition-container\";\nexport var PROGRESS_BAR = NS + \"-progress-bar\";\nexport var PROGRESS_METER = NS + \"-progress-meter\";\nexport var PROGRESS_NO_STRIPES = NS + \"-no-stripes\";\nexport var PROGRESS_NO_ANIMATION = NS + \"-no-animation\";\nexport var PORTAL = NS + \"-portal\";\nexport var SKELETON = NS + \"-skeleton\";\nexport var SLIDER = NS + \"-slider\";\nexport var SLIDER_AXIS = SLIDER + \"-axis\";\nexport var SLIDER_HANDLE = SLIDER + \"-handle\";\nexport var SLIDER_LABEL = SLIDER + \"-label\";\nexport var SLIDER_TRACK = SLIDER + \"-track\";\nexport var SLIDER_PROGRESS = SLIDER + \"-progress\";\nexport var START = NS + \"-start\";\nexport var END = NS + \"-end\";\nexport var SPINNER = NS + \"-spinner\";\nexport var SPINNER_ANIMATION = SPINNER + \"-animation\";\nexport var SPINNER_HEAD = SPINNER + \"-head\";\nexport var SPINNER_NO_SPIN = NS + \"-no-spin\";\nexport var SPINNER_TRACK = SPINNER + \"-track\";\nexport var TAB = NS + \"-tab\";\nexport var TAB_INDICATOR = TAB + \"-indicator\";\nexport var TAB_INDICATOR_WRAPPER = TAB_INDICATOR + \"-wrapper\";\nexport var TAB_LIST = TAB + \"-list\";\nexport var TAB_PANEL = TAB + \"-panel\";\nexport var TABS = TAB + \"s\";\nexport var TAG = NS + \"-tag\";\nexport var TAG_REMOVE = TAG + \"-remove\";\nexport var TAG_INPUT = NS + \"-tag-input\";\nexport var TAG_INPUT_ICON = TAG_INPUT + \"-icon\";\nexport var TAG_INPUT_VALUES = TAG_INPUT + \"-values\";\nexport var TOAST = NS + \"-toast\";\nexport var TOAST_CONTAINER = TOAST + \"-container\";\nexport var TOAST_MESSAGE = TOAST + \"-message\";\nexport var TOOLTIP = NS + \"-tooltip\";\nexport var TOOLTIP_INDICATOR = TOOLTIP + \"-indicator\";\nexport var TREE = NS + \"-tree\";\nexport var TREE_NODE = NS + \"-tree-node\";\nexport var TREE_NODE_CARET = TREE_NODE + \"-caret\";\nexport var TREE_NODE_CARET_CLOSED = TREE_NODE_CARET + \"-closed\";\nexport var TREE_NODE_CARET_NONE = TREE_NODE_CARET + \"-none\";\nexport var TREE_NODE_CARET_OPEN = TREE_NODE_CARET + \"-open\";\nexport var TREE_NODE_CONTENT = TREE_NODE + \"-content\";\nexport var TREE_NODE_EXPANDED = TREE_NODE + \"-expanded\";\nexport var TREE_NODE_ICON = TREE_NODE + \"-icon\";\nexport var TREE_NODE_LABEL = TREE_NODE + \"-label\";\nexport var TREE_NODE_LIST = TREE_NODE + \"-list\";\nexport var TREE_NODE_SECONDARY_LABEL = TREE_NODE + \"-secondary-label\";\nexport var TREE_NODE_SELECTED = TREE_NODE + \"-selected\";\nexport var TREE_ROOT = NS + \"-tree-root\";\nexport var ICON = NS + \"-icon\";\nexport var ICON_STANDARD = ICON + \"-standard\";\nexport var ICON_LARGE = ICON + \"-large\";\n/**\n * Returns the namespace prefix for all Blueprint CSS classes.\n * Customize this namespace at build time with the `process.env.BLUEPRINT_NAMESPACE` environment variable.\n */\n\nexport function getClassNamespace() {\n return NS;\n}\n/** Return CSS class for alignment. */\n\nexport function alignmentClass(alignment) {\n switch (alignment) {\n case Alignment.LEFT:\n return ALIGN_LEFT;\n\n case Alignment.RIGHT:\n return ALIGN_RIGHT;\n\n default:\n return undefined;\n }\n}\nexport function elevationClass(elevation) {\n if (elevation == null) {\n return undefined;\n }\n\n return NS + \"-elevation-\" + elevation;\n}\n/** Returns CSS class for icon name. */\n\nexport function iconClass(iconName) {\n if (iconName == null) {\n return undefined;\n }\n\n return iconName.indexOf(NS + \"-icon-\") === 0 ? iconName : NS + \"-icon-\" + iconName;\n}\n/** Return CSS class for intent. */\n\nexport function intentClass(intent) {\n if (intent == null || intent === Intent.NONE) {\n return undefined;\n }\n\n return NS + \"-intent-\" + intent.toLowerCase();\n}","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/34b041a2153cb60245f8c9ab4c6d944e.json b/packages/web/node_modules/.cache/babel-loader/34b041a2153cb60245f8c9ab4c6d944e.json new file mode 100644 index 00000000..bb3d98dd --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/34b041a2153cb60245f8c9ab4c6d944e.json @@ -0,0 +1 @@ +{"ast":null,"code":"/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n } // Binding \"this\" is important for shallow renderer support.\n\n\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(prevProps, prevState);\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n} // React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\n\n\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (typeof Component.getDerivedStateFromProps !== 'function' && typeof prototype.getSnapshotBeforeUpdate !== 'function') {\n return Component;\n } // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n\n\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n\n if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {\n var componentName = Component.displayName || Component.name;\n var newApiName = typeof Component.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';\n throw Error('Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' + componentName + ' uses ' + newApiName + ' but also contains the following legacy lifecycles:' + (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') + (foundWillReceivePropsName !== null ? '\\n ' + foundWillReceivePropsName : '') + (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') + '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' + 'https://fb.me/react-async-component-lifecycle-hooks');\n } // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n\n\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n } // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n\n\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error('Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype');\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(prevProps, prevState, maybeSnapshot) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : maybeSnapshot;\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\nexport { polyfill };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/34f21dc01d2e06655837e9d60d63a40c.json b/packages/web/node_modules/.cache/babel-loader/34f21dc01d2e06655837e9d60d63a40c.json new file mode 100644 index 00000000..2b03865b --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/34f21dc01d2e06655837e9d60d63a40c.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2015 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nexport var Position = {\n BOTTOM: \"bottom\",\n BOTTOM_LEFT: \"bottom-left\",\n BOTTOM_RIGHT: \"bottom-right\",\n LEFT: \"left\",\n LEFT_BOTTOM: \"left-bottom\",\n LEFT_TOP: \"left-top\",\n RIGHT: \"right\",\n RIGHT_BOTTOM: \"right-bottom\",\n RIGHT_TOP: \"right-top\",\n TOP: \"top\",\n TOP_LEFT: \"top-left\",\n TOP_RIGHT: \"top-right\"\n};\nexport function isPositionHorizontal(position) {\n /* istanbul ignore next */\n return position === Position.TOP || position === Position.TOP_LEFT || position === Position.TOP_RIGHT || position === Position.BOTTOM || position === Position.BOTTOM_LEFT || position === Position.BOTTOM_RIGHT;\n}\nexport function isPositionVertical(position) {\n /* istanbul ignore next */\n return position === Position.LEFT || position === Position.LEFT_TOP || position === Position.LEFT_BOTTOM || position === Position.RIGHT || position === Position.RIGHT_TOP || position === Position.RIGHT_BOTTOM;\n}","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/35418c7dba29c4fcf5b8892b240db09e.json b/packages/web/node_modules/.cache/babel-loader/35418c7dba29c4fcf5b8892b240db09e.json new file mode 100644 index 00000000..81b2af1e --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/35418c7dba29c4fcf5b8892b240db09e.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2015 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as React from \"react\";\nimport { CLAMP_MIN_MAX } from \"./errors\";\nexport * from \"./utils/compareUtils\";\nexport * from \"./utils/safeInvokeMember\";\n/** Returns whether `process.env.NODE_ENV` exists and equals `env`. */\n\nexport function isNodeEnv(env) {\n return typeof process !== \"undefined\" && process.env && process.env.NODE_ENV === env;\n}\n/** Returns whether the value is a function. Acts as a type guard. */\n// tslint:disable-next-line:ban-types\n\nexport function isFunction(value) {\n return typeof value === \"function\";\n}\n/**\n * Returns true if `node` is null/undefined, false, empty string, or an array\n * composed of those. If `node` is an array, only one level of the array is\n * checked, for performance reasons.\n */\n\nexport function isReactNodeEmpty(node, skipArray) {\n if (skipArray === void 0) {\n skipArray = false;\n }\n\n return node == null || node === \"\" || node === false || !skipArray && Array.isArray(node) && ( // only recurse one level through arrays, for performance\n node.length === 0 || node.every(function (n) {\n return isReactNodeEmpty(n, true);\n }));\n}\n/**\n * Converts a React child to an element: non-empty string or number or\n * `React.Fragment` (React 16.3+) is wrapped in given tag name; empty strings\n * are discarded.\n */\n\nexport function ensureElement(child, tagName) {\n if (tagName === void 0) {\n tagName = \"span\";\n }\n\n if (child == null) {\n return undefined;\n } else if (typeof child === \"string\") {\n // cull whitespace strings\n return child.trim().length > 0 ? React.createElement(tagName, {}, child) : undefined;\n } else if (typeof child === \"number\" || typeof child.type === \"symbol\") {\n // React.Fragment has a symbol type\n return React.createElement(tagName, {}, child);\n } else {\n return child;\n }\n}\nexport function getDisplayName(ComponentClass) {\n return ComponentClass.displayName || ComponentClass.name || \"Unknown\";\n}\n/**\n * Returns true if the given JSX element matches the given component type.\n *\n * NOTE: This function only checks equality of `displayName` for performance and\n * to tolerate multiple minor versions of a component being included in one\n * application bundle.\n * @param element JSX element in question\n * @param ComponentType desired component type of element\n */\n\nexport function isElementOfType(element, ComponentType) {\n return element != null && element.type != null && element.type.displayName != null && element.type.displayName === ComponentType.displayName;\n} // tslint:disable-next-line:ban-types\n\nexport function safeInvoke(func) {\n var args = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n\n if (isFunction(func)) {\n return func.apply(void 0, args);\n }\n\n return undefined;\n} // tslint:disable-next-line:ban-types\n\nexport function safeInvokeOrValue(funcOrValue) {\n var args = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n\n return isFunction(funcOrValue) ? funcOrValue.apply(void 0, args) : funcOrValue;\n}\nexport function elementIsOrContains(element, testElement) {\n return element === testElement || element.contains(testElement);\n}\n/**\n * Returns the difference in length between two arrays. A `null` argument is\n * considered an empty list. The return value will be positive if `a` is longer\n * than `b`, negative if the opposite is true, and zero if their lengths are\n * equal.\n */\n\nexport function arrayLengthCompare(a, b) {\n if (a === void 0) {\n a = [];\n }\n\n if (b === void 0) {\n b = [];\n }\n\n return a.length - b.length;\n}\n/**\n * Returns true if the two numbers are within the given tolerance of each other.\n * This is useful to correct for floating point precision issues, less useful\n * for integers.\n */\n\nexport function approxEqual(a, b, tolerance) {\n if (tolerance === void 0) {\n tolerance = 0.00001;\n }\n\n return Math.abs(a - b) <= tolerance;\n}\n/**\n * Clamps the given number between min and max values. Returns value if within\n * range, or closest bound.\n */\n\nexport function clamp(val, min, max) {\n if (val == null) {\n return val;\n }\n\n if (max < min) {\n throw new Error(CLAMP_MIN_MAX);\n }\n\n return Math.min(Math.max(val, min), max);\n}\n/** Returns the number of decimal places in the given number. */\n\nexport function countDecimalPlaces(num) {\n if (typeof num !== \"number\" || Math.floor(num) === num) {\n return 0;\n }\n\n return num.toString().split(\".\")[1].length;\n}\n/**\n * Throttle an event on an EventTarget by wrapping it in a\n * `requestAnimationFrame` call. Returns the event handler that was bound to\n * given eventName so you can clean up after yourself.\n * @see https://developer.mozilla.org/en-US/docs/Web/Events/scroll\n */\n\nexport function throttleEvent(target, eventName, newEventName) {\n var throttledFunc = _throttleHelper(function (event) {\n target.dispatchEvent(new CustomEvent(newEventName, event));\n });\n\n target.addEventListener(eventName, throttledFunc);\n return throttledFunc;\n}\n/**\n * Throttle a callback by wrapping it in a `requestAnimationFrame` call. Returns\n * the throttled function.\n * @see https://www.html5rocks.com/en/tutorials/speed/animations/\n */\n\nexport function throttleReactEventCallback(callback, options) {\n if (options === void 0) {\n options = {};\n }\n\n var throttledFunc = _throttleHelper(callback, function (event2) {\n if (options.preventDefault) {\n event2.preventDefault();\n }\n }, // prevent React from reclaiming the event object before we reference it\n function (event2) {\n return event2.persist();\n });\n\n return throttledFunc;\n}\n/**\n * Throttle a method by wrapping it in a `requestAnimationFrame` call. Returns\n * the throttled function.\n */\n// tslint:disable-next-line:ban-types\n\nexport function throttle(method) {\n return _throttleHelper(method);\n} // tslint:disable-next-line:ban-types\n\nfunction _throttleHelper(onAnimationFrameRequested, onBeforeIsRunningCheck, onAfterIsRunningCheck) {\n var isRunning = false;\n\n var func = function func() {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n } // don't use safeInvoke, because we might have more than its max number\n // of typed params\n\n\n if (isFunction(onBeforeIsRunningCheck)) {\n onBeforeIsRunningCheck.apply(void 0, args);\n }\n\n if (isRunning) {\n return;\n }\n\n isRunning = true;\n\n if (isFunction(onAfterIsRunningCheck)) {\n onAfterIsRunningCheck.apply(void 0, args);\n }\n\n requestAnimationFrame(function () {\n onAnimationFrameRequested.apply(void 0, args);\n isRunning = false;\n });\n };\n\n return func;\n}","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/355ce0dc5baaaf6500076d027d6ea39c.json b/packages/web/node_modules/.cache/babel-loader/355ce0dc5baaaf6500076d027d6ea39c.json new file mode 100644 index 00000000..e087b7d6 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/355ce0dc5baaaf6500076d027d6ea39c.json @@ -0,0 +1 @@ +{"ast":null,"code":"module.exports = require('./lib/axios');","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/365f6ca2c7d63faeda14f3b6d8d7698f.json b/packages/web/node_modules/.cache/babel-loader/365f6ca2c7d63faeda14f3b6d8d7698f.json new file mode 100644 index 00000000..85bb11e8 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/365f6ca2c7d63faeda14f3b6d8d7698f.json @@ -0,0 +1 @@ +{"ast":null,"code":"/**\r\n * A collection of shims that provide minimal functionality of the ES6 collections.\r\n *\r\n * These implementations are not meant to be used outside of the ResizeObserver\r\n * modules as they cover only a limited range of use cases.\r\n */\n\n/* eslint-disable require-jsdoc, valid-jsdoc */\nvar MapShim = function () {\n if (typeof Map !== 'undefined') {\n return Map;\n }\n /**\r\n * Returns index in provided array that matches the specified key.\r\n *\r\n * @param {Array} arr\r\n * @param {*} key\r\n * @returns {number}\r\n */\n\n\n function getIndex(arr, key) {\n var result = -1;\n arr.some(function (entry, index) {\n if (entry[0] === key) {\n result = index;\n return true;\n }\n\n return false;\n });\n return result;\n }\n\n return (\n /** @class */\n function () {\n function class_1() {\n this.__entries__ = [];\n }\n\n Object.defineProperty(class_1.prototype, \"size\", {\n /**\r\n * @returns {boolean}\r\n */\n get: function get() {\n return this.__entries__.length;\n },\n enumerable: true,\n configurable: true\n });\n /**\r\n * @param {*} key\r\n * @returns {*}\r\n */\n\n class_1.prototype.get = function (key) {\n var index = getIndex(this.__entries__, key);\n var entry = this.__entries__[index];\n return entry && entry[1];\n };\n /**\r\n * @param {*} key\r\n * @param {*} value\r\n * @returns {void}\r\n */\n\n\n class_1.prototype.set = function (key, value) {\n var index = getIndex(this.__entries__, key);\n\n if (~index) {\n this.__entries__[index][1] = value;\n } else {\n this.__entries__.push([key, value]);\n }\n };\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\n\n\n class_1.prototype.delete = function (key) {\n var entries = this.__entries__;\n var index = getIndex(entries, key);\n\n if (~index) {\n entries.splice(index, 1);\n }\n };\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\n\n\n class_1.prototype.has = function (key) {\n return !!~getIndex(this.__entries__, key);\n };\n /**\r\n * @returns {void}\r\n */\n\n\n class_1.prototype.clear = function () {\n this.__entries__.splice(0);\n };\n /**\r\n * @param {Function} callback\r\n * @param {*} [ctx=null]\r\n * @returns {void}\r\n */\n\n\n class_1.prototype.forEach = function (callback, ctx) {\n if (ctx === void 0) {\n ctx = null;\n }\n\n for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {\n var entry = _a[_i];\n callback.call(ctx, entry[1], entry[0]);\n }\n };\n\n return class_1;\n }()\n );\n}();\n/**\r\n * Detects whether window and document objects are available in current environment.\r\n */\n\n\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document; // Returns global object of a current environment.\n\nvar global$1 = function () {\n if (typeof global !== 'undefined' && global.Math === Math) {\n return global;\n }\n\n if (typeof self !== 'undefined' && self.Math === Math) {\n return self;\n }\n\n if (typeof window !== 'undefined' && window.Math === Math) {\n return window;\n } // eslint-disable-next-line no-new-func\n\n\n return Function('return this')();\n}();\n/**\r\n * A shim for the requestAnimationFrame which falls back to the setTimeout if\r\n * first one is not supported.\r\n *\r\n * @returns {number} Requests' identifier.\r\n */\n\n\nvar requestAnimationFrame$1 = function () {\n if (typeof requestAnimationFrame === 'function') {\n // It's required to use a bounded function because IE sometimes throws\n // an \"Invalid calling object\" error if rAF is invoked without the global\n // object on the left hand side.\n return requestAnimationFrame.bind(global$1);\n }\n\n return function (callback) {\n return setTimeout(function () {\n return callback(Date.now());\n }, 1000 / 60);\n };\n}(); // Defines minimum timeout before adding a trailing call.\n\n\nvar trailingTimeout = 2;\n/**\r\n * Creates a wrapper function which ensures that provided callback will be\r\n * invoked only once during the specified delay period.\r\n *\r\n * @param {Function} callback - Function to be invoked after the delay period.\r\n * @param {number} delay - Delay after which to invoke callback.\r\n * @returns {Function}\r\n */\n\nfunction throttle(callback, delay) {\n var leadingCall = false,\n trailingCall = false,\n lastCallTime = 0;\n /**\r\n * Invokes the original callback function and schedules new invocation if\r\n * the \"proxy\" was called during current request.\r\n *\r\n * @returns {void}\r\n */\n\n function resolvePending() {\n if (leadingCall) {\n leadingCall = false;\n callback();\n }\n\n if (trailingCall) {\n proxy();\n }\n }\n /**\r\n * Callback invoked after the specified delay. It will further postpone\r\n * invocation of the original function delegating it to the\r\n * requestAnimationFrame.\r\n *\r\n * @returns {void}\r\n */\n\n\n function timeoutCallback() {\n requestAnimationFrame$1(resolvePending);\n }\n /**\r\n * Schedules invocation of the original function.\r\n *\r\n * @returns {void}\r\n */\n\n\n function proxy() {\n var timeStamp = Date.now();\n\n if (leadingCall) {\n // Reject immediately following calls.\n if (timeStamp - lastCallTime < trailingTimeout) {\n return;\n } // Schedule new call to be in invoked when the pending one is resolved.\n // This is important for \"transitions\" which never actually start\n // immediately so there is a chance that we might miss one if change\n // happens amids the pending invocation.\n\n\n trailingCall = true;\n } else {\n leadingCall = true;\n trailingCall = false;\n setTimeout(timeoutCallback, delay);\n }\n\n lastCallTime = timeStamp;\n }\n\n return proxy;\n} // Minimum delay before invoking the update of observers.\n\n\nvar REFRESH_DELAY = 20; // A list of substrings of CSS properties used to find transition events that\n// might affect dimensions of observed elements.\n\nvar transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight']; // Check if MutationObserver is available.\n\nvar mutationObserverSupported = typeof MutationObserver !== 'undefined';\n/**\r\n * Singleton controller class which handles updates of ResizeObserver instances.\r\n */\n\nvar ResizeObserverController =\n/** @class */\nfunction () {\n /**\r\n * Creates a new instance of ResizeObserverController.\r\n *\r\n * @private\r\n */\n function ResizeObserverController() {\n /**\r\n * Indicates whether DOM listeners have been added.\r\n *\r\n * @private {boolean}\r\n */\n this.connected_ = false;\n /**\r\n * Tells that controller has subscribed for Mutation Events.\r\n *\r\n * @private {boolean}\r\n */\n\n this.mutationEventsAdded_ = false;\n /**\r\n * Keeps reference to the instance of MutationObserver.\r\n *\r\n * @private {MutationObserver}\r\n */\n\n this.mutationsObserver_ = null;\n /**\r\n * A list of connected observers.\r\n *\r\n * @private {Array}\r\n */\n\n this.observers_ = [];\n this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);\n this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);\n }\n /**\r\n * Adds observer to observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be added.\r\n * @returns {void}\r\n */\n\n\n ResizeObserverController.prototype.addObserver = function (observer) {\n if (!~this.observers_.indexOf(observer)) {\n this.observers_.push(observer);\n } // Add listeners if they haven't been added yet.\n\n\n if (!this.connected_) {\n this.connect_();\n }\n };\n /**\r\n * Removes observer from observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be removed.\r\n * @returns {void}\r\n */\n\n\n ResizeObserverController.prototype.removeObserver = function (observer) {\n var observers = this.observers_;\n var index = observers.indexOf(observer); // Remove observer if it's present in registry.\n\n if (~index) {\n observers.splice(index, 1);\n } // Remove listeners if controller has no connected observers.\n\n\n if (!observers.length && this.connected_) {\n this.disconnect_();\n }\n };\n /**\r\n * Invokes the update of observers. It will continue running updates insofar\r\n * it detects changes.\r\n *\r\n * @returns {void}\r\n */\n\n\n ResizeObserverController.prototype.refresh = function () {\n var changesDetected = this.updateObservers_(); // Continue running updates if changes have been detected as there might\n // be future ones caused by CSS transitions.\n\n if (changesDetected) {\n this.refresh();\n }\n };\n /**\r\n * Updates every observer from observers list and notifies them of queued\r\n * entries.\r\n *\r\n * @private\r\n * @returns {boolean} Returns \"true\" if any observer has detected changes in\r\n * dimensions of it's elements.\r\n */\n\n\n ResizeObserverController.prototype.updateObservers_ = function () {\n // Collect observers that have active observations.\n var activeObservers = this.observers_.filter(function (observer) {\n return observer.gatherActive(), observer.hasActive();\n }); // Deliver notifications in a separate cycle in order to avoid any\n // collisions between observers, e.g. when multiple instances of\n // ResizeObserver are tracking the same element and the callback of one\n // of them changes content dimensions of the observed target. Sometimes\n // this may result in notifications being blocked for the rest of observers.\n\n activeObservers.forEach(function (observer) {\n return observer.broadcastActive();\n });\n return activeObservers.length > 0;\n };\n /**\r\n * Initializes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\n\n\n ResizeObserverController.prototype.connect_ = function () {\n // Do nothing if running in a non-browser environment or if listeners\n // have been already added.\n if (!isBrowser || this.connected_) {\n return;\n } // Subscription to the \"Transitionend\" event is used as a workaround for\n // delayed transitions. This way it's possible to capture at least the\n // final state of an element.\n\n\n document.addEventListener('transitionend', this.onTransitionEnd_);\n window.addEventListener('resize', this.refresh);\n\n if (mutationObserverSupported) {\n this.mutationsObserver_ = new MutationObserver(this.refresh);\n this.mutationsObserver_.observe(document, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true\n });\n } else {\n document.addEventListener('DOMSubtreeModified', this.refresh);\n this.mutationEventsAdded_ = true;\n }\n\n this.connected_ = true;\n };\n /**\r\n * Removes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\n\n\n ResizeObserverController.prototype.disconnect_ = function () {\n // Do nothing if running in a non-browser environment or if listeners\n // have been already removed.\n if (!isBrowser || !this.connected_) {\n return;\n }\n\n document.removeEventListener('transitionend', this.onTransitionEnd_);\n window.removeEventListener('resize', this.refresh);\n\n if (this.mutationsObserver_) {\n this.mutationsObserver_.disconnect();\n }\n\n if (this.mutationEventsAdded_) {\n document.removeEventListener('DOMSubtreeModified', this.refresh);\n }\n\n this.mutationsObserver_ = null;\n this.mutationEventsAdded_ = false;\n this.connected_ = false;\n };\n /**\r\n * \"Transitionend\" event handler.\r\n *\r\n * @private\r\n * @param {TransitionEvent} event\r\n * @returns {void}\r\n */\n\n\n ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {\n var _b = _a.propertyName,\n propertyName = _b === void 0 ? '' : _b; // Detect whether transition may affect dimensions of an element.\n\n var isReflowProperty = transitionKeys.some(function (key) {\n return !!~propertyName.indexOf(key);\n });\n\n if (isReflowProperty) {\n this.refresh();\n }\n };\n /**\r\n * Returns instance of the ResizeObserverController.\r\n *\r\n * @returns {ResizeObserverController}\r\n */\n\n\n ResizeObserverController.getInstance = function () {\n if (!this.instance_) {\n this.instance_ = new ResizeObserverController();\n }\n\n return this.instance_;\n };\n /**\r\n * Holds reference to the controller's instance.\r\n *\r\n * @private {ResizeObserverController}\r\n */\n\n\n ResizeObserverController.instance_ = null;\n return ResizeObserverController;\n}();\n/**\r\n * Defines non-writable/enumerable properties of the provided target object.\r\n *\r\n * @param {Object} target - Object for which to define properties.\r\n * @param {Object} props - Properties to be defined.\r\n * @returns {Object} Target object.\r\n */\n\n\nvar defineConfigurable = function defineConfigurable(target, props) {\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\n var key = _a[_i];\n Object.defineProperty(target, key, {\n value: props[key],\n enumerable: false,\n writable: false,\n configurable: true\n });\n }\n\n return target;\n};\n/**\r\n * Returns the global object associated with provided element.\r\n *\r\n * @param {Object} target\r\n * @returns {Object}\r\n */\n\n\nvar getWindowOf = function getWindowOf(target) {\n // Assume that the element is an instance of Node, which means that it\n // has the \"ownerDocument\" property from which we can retrieve a\n // corresponding global object.\n var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView; // Return the local global object if it's not possible extract one from\n // provided element.\n\n return ownerGlobal || global$1;\n}; // Placeholder of an empty content rectangle.\n\n\nvar emptyRect = createRectInit(0, 0, 0, 0);\n/**\r\n * Converts provided string to a number.\r\n *\r\n * @param {number|string} value\r\n * @returns {number}\r\n */\n\nfunction toFloat(value) {\n return parseFloat(value) || 0;\n}\n/**\r\n * Extracts borders size from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @param {...string} positions - Borders positions (top, right, ...)\r\n * @returns {number}\r\n */\n\n\nfunction getBordersSize(styles) {\n var positions = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n positions[_i - 1] = arguments[_i];\n }\n\n return positions.reduce(function (size, position) {\n var value = styles['border-' + position + '-width'];\n return size + toFloat(value);\n }, 0);\n}\n/**\r\n * Extracts paddings sizes from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @returns {Object} Paddings box.\r\n */\n\n\nfunction getPaddings(styles) {\n var positions = ['top', 'right', 'bottom', 'left'];\n var paddings = {};\n\n for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {\n var position = positions_1[_i];\n var value = styles['padding-' + position];\n paddings[position] = toFloat(value);\n }\n\n return paddings;\n}\n/**\r\n * Calculates content rectangle of provided SVG element.\r\n *\r\n * @param {SVGGraphicsElement} target - Element content rectangle of which needs\r\n * to be calculated.\r\n * @returns {DOMRectInit}\r\n */\n\n\nfunction getSVGContentRect(target) {\n var bbox = target.getBBox();\n return createRectInit(0, 0, bbox.width, bbox.height);\n}\n/**\r\n * Calculates content rectangle of provided HTMLElement.\r\n *\r\n * @param {HTMLElement} target - Element for which to calculate the content rectangle.\r\n * @returns {DOMRectInit}\r\n */\n\n\nfunction getHTMLElementContentRect(target) {\n // Client width & height properties can't be\n // used exclusively as they provide rounded values.\n var clientWidth = target.clientWidth,\n clientHeight = target.clientHeight; // By this condition we can catch all non-replaced inline, hidden and\n // detached elements. Though elements with width & height properties less\n // than 0.5 will be discarded as well.\n //\n // Without it we would need to implement separate methods for each of\n // those cases and it's not possible to perform a precise and performance\n // effective test for hidden elements. E.g. even jQuery's ':visible' filter\n // gives wrong results for elements with width & height less than 0.5.\n\n if (!clientWidth && !clientHeight) {\n return emptyRect;\n }\n\n var styles = getWindowOf(target).getComputedStyle(target);\n var paddings = getPaddings(styles);\n var horizPad = paddings.left + paddings.right;\n var vertPad = paddings.top + paddings.bottom; // Computed styles of width & height are being used because they are the\n // only dimensions available to JS that contain non-rounded values. It could\n // be possible to utilize the getBoundingClientRect if only it's data wasn't\n // affected by CSS transformations let alone paddings, borders and scroll bars.\n\n var width = toFloat(styles.width),\n height = toFloat(styles.height); // Width & height include paddings and borders when the 'border-box' box\n // model is applied (except for IE).\n\n if (styles.boxSizing === 'border-box') {\n // Following conditions are required to handle Internet Explorer which\n // doesn't include paddings and borders to computed CSS dimensions.\n //\n // We can say that if CSS dimensions + paddings are equal to the \"client\"\n // properties then it's either IE, and thus we don't need to subtract\n // anything, or an element merely doesn't have paddings/borders styles.\n if (Math.round(width + horizPad) !== clientWidth) {\n width -= getBordersSize(styles, 'left', 'right') + horizPad;\n }\n\n if (Math.round(height + vertPad) !== clientHeight) {\n height -= getBordersSize(styles, 'top', 'bottom') + vertPad;\n }\n } // Following steps can't be applied to the document's root element as its\n // client[Width/Height] properties represent viewport area of the window.\n // Besides, it's as well not necessary as the itself neither has\n // rendered scroll bars nor it can be clipped.\n\n\n if (!isDocumentElement(target)) {\n // In some browsers (only in Firefox, actually) CSS width & height\n // include scroll bars size which can be removed at this step as scroll\n // bars are the only difference between rounded dimensions + paddings\n // and \"client\" properties, though that is not always true in Chrome.\n var vertScrollbar = Math.round(width + horizPad) - clientWidth;\n var horizScrollbar = Math.round(height + vertPad) - clientHeight; // Chrome has a rather weird rounding of \"client\" properties.\n // E.g. for an element with content width of 314.2px it sometimes gives\n // the client width of 315px and for the width of 314.7px it may give\n // 314px. And it doesn't happen all the time. So just ignore this delta\n // as a non-relevant.\n\n if (Math.abs(vertScrollbar) !== 1) {\n width -= vertScrollbar;\n }\n\n if (Math.abs(horizScrollbar) !== 1) {\n height -= horizScrollbar;\n }\n }\n\n return createRectInit(paddings.left, paddings.top, width, height);\n}\n/**\r\n * Checks whether provided element is an instance of the SVGGraphicsElement.\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\n\n\nvar isSVGGraphicsElement = function () {\n // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement\n // interface.\n if (typeof SVGGraphicsElement !== 'undefined') {\n return function (target) {\n return target instanceof getWindowOf(target).SVGGraphicsElement;\n };\n } // If it's so, then check that element is at least an instance of the\n // SVGElement and that it has the \"getBBox\" method.\n // eslint-disable-next-line no-extra-parens\n\n\n return function (target) {\n return target instanceof getWindowOf(target).SVGElement && typeof target.getBBox === 'function';\n };\n}();\n/**\r\n * Checks whether provided element is a document element ().\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\n\n\nfunction isDocumentElement(target) {\n return target === getWindowOf(target).document.documentElement;\n}\n/**\r\n * Calculates an appropriate content rectangle for provided html or svg element.\r\n *\r\n * @param {Element} target - Element content rectangle of which needs to be calculated.\r\n * @returns {DOMRectInit}\r\n */\n\n\nfunction getContentRect(target) {\n if (!isBrowser) {\n return emptyRect;\n }\n\n if (isSVGGraphicsElement(target)) {\n return getSVGContentRect(target);\n }\n\n return getHTMLElementContentRect(target);\n}\n/**\r\n * Creates rectangle with an interface of the DOMRectReadOnly.\r\n * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly\r\n *\r\n * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.\r\n * @returns {DOMRectReadOnly}\r\n */\n\n\nfunction createReadOnlyRect(_a) {\n var x = _a.x,\n y = _a.y,\n width = _a.width,\n height = _a.height; // If DOMRectReadOnly is available use it as a prototype for the rectangle.\n\n var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;\n var rect = Object.create(Constr.prototype); // Rectangle's properties are not writable and non-enumerable.\n\n defineConfigurable(rect, {\n x: x,\n y: y,\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: height + y,\n left: x\n });\n return rect;\n}\n/**\r\n * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.\r\n * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit\r\n *\r\n * @param {number} x - X coordinate.\r\n * @param {number} y - Y coordinate.\r\n * @param {number} width - Rectangle's width.\r\n * @param {number} height - Rectangle's height.\r\n * @returns {DOMRectInit}\r\n */\n\n\nfunction createRectInit(x, y, width, height) {\n return {\n x: x,\n y: y,\n width: width,\n height: height\n };\n}\n/**\r\n * Class that is responsible for computations of the content rectangle of\r\n * provided DOM element and for keeping track of it's changes.\r\n */\n\n\nvar ResizeObservation =\n/** @class */\nfunction () {\n /**\r\n * Creates an instance of ResizeObservation.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n */\n function ResizeObservation(target) {\n /**\r\n * Broadcasted width of content rectangle.\r\n *\r\n * @type {number}\r\n */\n this.broadcastWidth = 0;\n /**\r\n * Broadcasted height of content rectangle.\r\n *\r\n * @type {number}\r\n */\n\n this.broadcastHeight = 0;\n /**\r\n * Reference to the last observed content rectangle.\r\n *\r\n * @private {DOMRectInit}\r\n */\n\n this.contentRect_ = createRectInit(0, 0, 0, 0);\n this.target = target;\n }\n /**\r\n * Updates content rectangle and tells whether it's width or height properties\r\n * have changed since the last broadcast.\r\n *\r\n * @returns {boolean}\r\n */\n\n\n ResizeObservation.prototype.isActive = function () {\n var rect = getContentRect(this.target);\n this.contentRect_ = rect;\n return rect.width !== this.broadcastWidth || rect.height !== this.broadcastHeight;\n };\n /**\r\n * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data\r\n * from the corresponding properties of the last observed content rectangle.\r\n *\r\n * @returns {DOMRectInit} Last observed content rectangle.\r\n */\n\n\n ResizeObservation.prototype.broadcastRect = function () {\n var rect = this.contentRect_;\n this.broadcastWidth = rect.width;\n this.broadcastHeight = rect.height;\n return rect;\n };\n\n return ResizeObservation;\n}();\n\nvar ResizeObserverEntry =\n/** @class */\nfunction () {\n /**\r\n * Creates an instance of ResizeObserverEntry.\r\n *\r\n * @param {Element} target - Element that is being observed.\r\n * @param {DOMRectInit} rectInit - Data of the element's content rectangle.\r\n */\n function ResizeObserverEntry(target, rectInit) {\n var contentRect = createReadOnlyRect(rectInit); // According to the specification following properties are not writable\n // and are also not enumerable in the native implementation.\n //\n // Property accessors are not being used as they'd require to define a\n // private WeakMap storage which may cause memory leaks in browsers that\n // don't support this type of collections.\n\n defineConfigurable(this, {\n target: target,\n contentRect: contentRect\n });\n }\n\n return ResizeObserverEntry;\n}();\n\nvar ResizeObserverSPI =\n/** @class */\nfunction () {\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback function that is invoked\r\n * when one of the observed elements changes it's content dimensions.\r\n * @param {ResizeObserverController} controller - Controller instance which\r\n * is responsible for the updates of observer.\r\n * @param {ResizeObserver} callbackCtx - Reference to the public\r\n * ResizeObserver instance which will be passed to callback function.\r\n */\n function ResizeObserverSPI(callback, controller, callbackCtx) {\n /**\r\n * Collection of resize observations that have detected changes in dimensions\r\n * of elements.\r\n *\r\n * @private {Array}\r\n */\n this.activeObservations_ = [];\n /**\r\n * Registry of the ResizeObservation instances.\r\n *\r\n * @private {Map}\r\n */\n\n this.observations_ = new MapShim();\n\n if (typeof callback !== 'function') {\n throw new TypeError('The callback provided as parameter 1 is not a function.');\n }\n\n this.callback_ = callback;\n this.controller_ = controller;\n this.callbackCtx_ = callbackCtx;\n }\n /**\r\n * Starts observing provided element.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n * @returns {void}\r\n */\n\n\n ResizeObserverSPI.prototype.observe = function (target) {\n if (!arguments.length) {\n throw new TypeError('1 argument required, but only 0 present.');\n } // Do nothing if current environment doesn't have the Element interface.\n\n\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\n return;\n }\n\n if (!(target instanceof getWindowOf(target).Element)) {\n throw new TypeError('parameter 1 is not of type \"Element\".');\n }\n\n var observations = this.observations_; // Do nothing if element is already being observed.\n\n if (observations.has(target)) {\n return;\n }\n\n observations.set(target, new ResizeObservation(target));\n this.controller_.addObserver(this); // Force the update of observations.\n\n this.controller_.refresh();\n };\n /**\r\n * Stops observing provided element.\r\n *\r\n * @param {Element} target - Element to stop observing.\r\n * @returns {void}\r\n */\n\n\n ResizeObserverSPI.prototype.unobserve = function (target) {\n if (!arguments.length) {\n throw new TypeError('1 argument required, but only 0 present.');\n } // Do nothing if current environment doesn't have the Element interface.\n\n\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\n return;\n }\n\n if (!(target instanceof getWindowOf(target).Element)) {\n throw new TypeError('parameter 1 is not of type \"Element\".');\n }\n\n var observations = this.observations_; // Do nothing if element is not being observed.\n\n if (!observations.has(target)) {\n return;\n }\n\n observations.delete(target);\n\n if (!observations.size) {\n this.controller_.removeObserver(this);\n }\n };\n /**\r\n * Stops observing all elements.\r\n *\r\n * @returns {void}\r\n */\n\n\n ResizeObserverSPI.prototype.disconnect = function () {\n this.clearActive();\n this.observations_.clear();\n this.controller_.removeObserver(this);\n };\n /**\r\n * Collects observation instances the associated element of which has changed\r\n * it's content rectangle.\r\n *\r\n * @returns {void}\r\n */\n\n\n ResizeObserverSPI.prototype.gatherActive = function () {\n var _this = this;\n\n this.clearActive();\n this.observations_.forEach(function (observation) {\n if (observation.isActive()) {\n _this.activeObservations_.push(observation);\n }\n });\n };\n /**\r\n * Invokes initial callback function with a list of ResizeObserverEntry\r\n * instances collected from active resize observations.\r\n *\r\n * @returns {void}\r\n */\n\n\n ResizeObserverSPI.prototype.broadcastActive = function () {\n // Do nothing if observer doesn't have active observations.\n if (!this.hasActive()) {\n return;\n }\n\n var ctx = this.callbackCtx_; // Create ResizeObserverEntry instance for every active observation.\n\n var entries = this.activeObservations_.map(function (observation) {\n return new ResizeObserverEntry(observation.target, observation.broadcastRect());\n });\n this.callback_.call(ctx, entries, ctx);\n this.clearActive();\n };\n /**\r\n * Clears the collection of active observations.\r\n *\r\n * @returns {void}\r\n */\n\n\n ResizeObserverSPI.prototype.clearActive = function () {\n this.activeObservations_.splice(0);\n };\n /**\r\n * Tells whether observer has active observations.\r\n *\r\n * @returns {boolean}\r\n */\n\n\n ResizeObserverSPI.prototype.hasActive = function () {\n return this.activeObservations_.length > 0;\n };\n\n return ResizeObserverSPI;\n}(); // Registry of internal observers. If WeakMap is not available use current shim\n// for the Map collection as it has all required methods and because WeakMap\n// can't be fully polyfilled anyway.\n\n\nvar observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();\n/**\r\n * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation\r\n * exposing only those methods and properties that are defined in the spec.\r\n */\n\nvar ResizeObserver =\n/** @class */\nfunction () {\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback that is invoked when\r\n * dimensions of the observed elements change.\r\n */\n function ResizeObserver(callback) {\n if (!(this instanceof ResizeObserver)) {\n throw new TypeError('Cannot call a class as a function.');\n }\n\n if (!arguments.length) {\n throw new TypeError('1 argument required, but only 0 present.');\n }\n\n var controller = ResizeObserverController.getInstance();\n var observer = new ResizeObserverSPI(callback, controller, this);\n observers.set(this, observer);\n }\n\n return ResizeObserver;\n}(); // Expose public methods of ResizeObserver.\n\n\n['observe', 'unobserve', 'disconnect'].forEach(function (method) {\n ResizeObserver.prototype[method] = function () {\n var _a;\n\n return (_a = observers.get(this))[method].apply(_a, arguments);\n };\n});\n\nvar index = function () {\n // Export existing implementation if available.\n if (typeof global$1.ResizeObserver !== 'undefined') {\n return global$1.ResizeObserver;\n }\n\n return ResizeObserver;\n}();\n\nexport default index;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/36f079026f2abab1fd528b6c00d5122e.json b/packages/web/node_modules/.cache/babel-loader/36f079026f2abab1fd528b6c00d5122e.json new file mode 100644 index 00000000..9213700d --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/36f079026f2abab1fd528b6c00d5122e.json @@ -0,0 +1 @@ +{"ast":null,"code":"\"use strict\";\n\nexports.__esModule = true;\nexports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0;\n\nvar PropTypes = _interopRequireWildcard(require(\"prop-types\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\n\nvar _reactLifecyclesCompat = require(\"react-lifecycles-compat\");\n\nvar _PropTypes = require(\"./utils/PropTypes\");\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {};\n\n if (desc.get || desc.set) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n }\n\n newObj.default = obj;\n return newObj;\n }\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nvar UNMOUNTED = 'unmounted';\nexports.UNMOUNTED = UNMOUNTED;\nvar EXITED = 'exited';\nexports.EXITED = EXITED;\nvar ENTERING = 'entering';\nexports.ENTERING = ENTERING;\nvar ENTERED = 'entered';\nexports.ENTERED = ENTERED;\nvar EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the components.\n * It's up to you to give meaning and effect to those states. For example we can\n * add styles to a component when it enters or exits:\n *\n * ```jsx\n * import Transition from 'react-transition-group/Transition';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 0 },\n * entered: { opacity: 1 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {(state) => (\n *
\n * I'm a fade Transition!\n *
\n * )}\n *
\n * );\n * ```\n *\n * As noted the `Transition` component doesn't _do_ anything by itself to its child component.\n * What it does do is track transition states over time so you can update the\n * component (such as by adding styles or classes) when it changes states.\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component begins the\n * \"Enter\" stage. During this stage, the component will shift from its current transition state,\n * to `'entering'` for the duration of the transition and then to the `'entered'` stage once\n * it's complete. Let's take the following example:\n *\n * ```jsx\n * state = { in: false };\n *\n * toggleEnterState = () => {\n * this.setState({ in: true });\n * }\n *\n * render() {\n * return (\n *
\n * \n * \n *
\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state and\n * stay there for 500ms (the value of `timeout`) before it finally switches to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from `'exiting'` to `'exited'`.\n *\n * ## Timing\n *\n * Timing is often the trickiest part of animation, mistakes can result in slight delays\n * that are hard to pin down. A common example is when you want to add an exit transition,\n * you should set the desired final styles when the state is `'exiting'`. That's when the\n * transition to those styles will start and, if you matched the `timeout` prop with the\n * CSS Transition duration, it will end exactly when the state changes to `'exited'`.\n *\n * > **Note**: For simpler transitions the `Transition` component might be enough, but\n * > take into account that it's platform-agnostic, while the `CSSTransition` component\n * > [forces reflows](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * > in order to make more complex transitions more predictable. For example, even though\n * > classes `example-enter` and `example-enter-active` are applied immediately one after\n * > another, you can still transition from one to the other because of the forced reflow\n * > (read [this issue](https://github.com/reactjs/react-transition-group/issues/159#issuecomment-322761171)\n * > for more info). Take this into account when choosing between `Transition` and\n * > `CSSTransition`.\n */\n\nexports.EXITING = EXITING;\n\nvar Transition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n var _proto = Transition.prototype;\n\n _proto.getChildContext = function getChildContext() {\n return {\n transitionGroup: null // allows for nested Transitions\n\n };\n };\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n }; // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter;\n appear = timeout.appear;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n var node = _reactDom.default.findDOMNode(this);\n\n if (nextStatus === ENTERING) {\n this.performEnter(node, mounting);\n } else {\n this.performExit(node);\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(node, mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;\n var timeouts = this.getTimeouts(); // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(node);\n });\n return;\n }\n\n this.props.onEnter(node, appearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(node, appearing); // FIXME: appear timeout?\n\n\n _this2.onTransitionEnd(node, timeouts.enter, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(node, appearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit(node) {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED\n\n if (!exit) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(node);\n });\n return;\n }\n\n this.props.onExit(node);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {\n this.setNextCallback(handler);\n\n if (node) {\n if (this.props.addEndListener) {\n this.props.addEndListener(node, this.nextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n } else {\n setTimeout(this.nextCallback, 0);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\"]); // filter props for Transtition\n\n\n delete childProps.in;\n delete childProps.mountOnEnter;\n delete childProps.unmountOnExit;\n delete childProps.appear;\n delete childProps.enter;\n delete childProps.exit;\n delete childProps.timeout;\n delete childProps.addEndListener;\n delete childProps.onEnter;\n delete childProps.onEntering;\n delete childProps.onEntered;\n delete childProps.onExit;\n delete childProps.onExiting;\n delete childProps.onExited;\n\n if (typeof children === 'function') {\n return children(status, childProps);\n }\n\n var child = _react.default.Children.only(children);\n\n return _react.default.cloneElement(child, childProps);\n };\n\n return Transition;\n}(_react.default.Component);\n\nTransition.contextTypes = {\n transitionGroup: PropTypes.object\n};\nTransition.childContextTypes = {\n transitionGroup: function transitionGroup() {}\n};\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A `function` child can be used instead of a React element.\n * This function is called with the current transition status\n * ('entering', 'entered', 'exiting', 'exited', 'unmounted'), which can be used\n * to apply context specific props to a component.\n *\n * ```jsx\n * \n * {(status) => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * Normally a component is not transitioned if it is shown when the `` component mounts.\n * If you want to transition on the first mount set `appear` to `true`, and the\n * component will transition in as soon as the `` mounts.\n *\n * > Note: there are no specific \"appear\" states. `appear` only adds an additional `enter` transition.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided\n *\n * You may specify a single timeout for all transitions like: `timeout={500}`,\n * or individually like:\n *\n * ```jsx\n * timeout={{\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * @type {number | { enter?: number, exit?: number }}\n */\n timeout: function timeout(props) {\n var pt = process.env.NODE_ENV !== \"production\" ? _PropTypes.timeoutsShape : {};\n ;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. **Note:** Timeouts are still used as a fallback if provided.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func // Name the function so it is clearer in the documentation\n\n} : {};\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = 0;\nTransition.EXITED = 1;\nTransition.ENTERING = 2;\nTransition.ENTERED = 3;\nTransition.EXITING = 4;\n\nvar _default = (0, _reactLifecyclesCompat.polyfill)(Transition);\n\nexports.default = _default;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/3b6b426609d75a60332c050a53c8b300.json b/packages/web/node_modules/.cache/babel-loader/3b6b426609d75a60332c050a53c8b300.json new file mode 100644 index 00000000..4c2d8899 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/3b6b426609d75a60332c050a53c8b300.json @@ -0,0 +1 @@ +{"ast":null,"code":"import Input from './Input';\nimport Button from './Button';\nexport { Input, Button };","map":{"version":3,"sources":["/Users/Nabin/workspace/probro/packages/web/src/common/index.js"],"names":["Input","Button"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,SAAlB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AAEA,SAAQD,KAAR,EAAcC,MAAd","sourcesContent":["import Input from './Input';\nimport Button from './Button';\n\nexport {Input,Button};\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/3beb346ed413d4c2596406d69d51f7b6.json b/packages/web/node_modules/.cache/babel-loader/3beb346ed413d4c2596406d69d51f7b6.json new file mode 100644 index 00000000..ba78e03c --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/3beb346ed413d4c2596406d69d51f7b6.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar inherits = require('inherits'),\n AjaxBasedTransport = require('./lib/ajax-based'),\n EventSourceReceiver = require('./receiver/eventsource'),\n XHRCorsObject = require('./sender/xhr-cors'),\n EventSourceDriver = require('eventsource');\n\nfunction EventSourceTransport(transUrl) {\n if (!EventSourceTransport.enabled()) {\n throw new Error('Transport created when disabled');\n }\n\n AjaxBasedTransport.call(this, transUrl, '/eventsource', EventSourceReceiver, XHRCorsObject);\n}\n\ninherits(EventSourceTransport, AjaxBasedTransport);\n\nEventSourceTransport.enabled = function () {\n return !!EventSourceDriver;\n};\n\nEventSourceTransport.transportName = 'eventsource';\nEventSourceTransport.roundTrips = 2;\nmodule.exports = EventSourceTransport;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/3c2406b90aa05425aabd75789acde671.json b/packages/web/node_modules/.cache/babel-loader/3c2406b90aa05425aabd75789acde671.json new file mode 100644 index 00000000..12d45f0f --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/3c2406b90aa05425aabd75789acde671.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2015 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nexport * from \"./accessibility\";\nexport * from \"./common\";\nexport * from \"./components\";","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/3cd3af8720a888f393ebea957c66191d.json b/packages/web/node_modules/.cache/babel-loader/3cd3af8720a888f393ebea957c66191d.json new file mode 100644 index 00000000..2e68c62c --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/3cd3af8720a888f393ebea957c66191d.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2016 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nif (typeof window !== \"undefined\" && typeof document !== \"undefined\") {\n // we're in browser\n // tslint:disable-next-line:no-var-requires\n require(\"dom4\"); // only import actual dom4 if we're in the browser (not server-compatible)\n // we'll still need dom4 types for the TypeScript to compile, these are included in package.json\n\n}\n\nimport * as contextMenu from \"./context-menu/contextMenu\";\nexport var ContextMenu = contextMenu;\nexport * from \"./alert/alert\";\nexport * from \"./breadcrumbs/breadcrumb\";\nexport * from \"./breadcrumbs/breadcrumbs\";\nexport * from \"./button/buttons\";\nexport * from \"./button/buttonGroup\";\nexport * from \"./callout/callout\";\nexport * from \"./card/card\";\nexport * from \"./collapse/collapse\";\nexport * from \"./collapsible-list/collapsibleList\";\nexport * from \"./context-menu/contextMenuTarget\";\nexport * from \"./dialog/dialog\";\nexport * from \"./divider/divider\";\nexport * from \"./editable-text/editableText\";\nexport * from \"./forms/controlGroup\";\nexport * from \"./forms/controls\";\nexport * from \"./forms/fileInput\";\nexport * from \"./forms/formGroup\";\nexport * from \"./forms/inputGroup\";\nexport * from \"./forms/numericInput\";\nexport * from \"./forms/radioGroup\";\nexport * from \"./forms/textArea\";\nexport * from \"./html/html\";\nexport * from \"./html-select/htmlSelect\";\nexport * from \"./html-table/htmlTable\";\nexport * from \"./hotkeys/hotkeys\";\nexport * from \"./icon/icon\";\nexport * from \"./menu/menu\";\nexport * from \"./menu/menuDivider\";\nexport * from \"./menu/menuItem\";\nexport * from \"./navbar/navbar\";\nexport * from \"./navbar/navbarDivider\";\nexport * from \"./navbar/navbarGroup\";\nexport * from \"./navbar/navbarHeading\";\nexport * from \"./non-ideal-state/nonIdealState\";\nexport * from \"./overflow-list/overflowList\";\nexport * from \"./overlay/overlay\";\nexport * from \"./text/text\";\nexport * from \"./panel-stack/panelStack\";\nexport * from \"./popover/popover\";\nexport * from \"./popover/popoverSharedProps\";\nexport * from \"./portal/portal\";\nexport * from \"./progress-bar/progressBar\";\nexport * from \"./resize-sensor/resizeSensor\";\nexport * from \"./slider/handleProps\";\nexport * from \"./slider/multiSlider\";\nexport * from \"./slider/rangeSlider\";\nexport * from \"./slider/slider\";\nexport * from \"./spinner/spinner\";\nexport * from \"./tabs/tab\";\nexport * from \"./tabs/tabs\";\nexport * from \"./tag/tag\";\nexport * from \"./tag-input/tagInput\";\nexport * from \"./toast/toast\";\nexport * from \"./toast/toaster\";\nexport * from \"./tooltip/tooltip\";\nexport * from \"./tree/tree\";\nexport * from \"./tree/treeNode\";","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/3e4128094fbfac6e8292da3e642b6b4a.json b/packages/web/node_modules/.cache/babel-loader/3e4128094fbfac6e8292da3e642b6b4a.json new file mode 100644 index 00000000..779d9519 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/3e4128094fbfac6e8292da3e642b6b4a.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar random = require('./random');\n\nvar onUnload = {},\n afterUnload = false // detect google chrome packaged apps because they don't allow the 'unload' event\n,\n isChromePackagedApp = global.chrome && global.chrome.app && global.chrome.app.runtime;\nmodule.exports = {\n attachEvent: function attachEvent(event, listener) {\n if (typeof global.addEventListener !== 'undefined') {\n global.addEventListener(event, listener, false);\n } else if (global.document && global.attachEvent) {\n // IE quirks.\n // According to: http://stevesouders.com/misc/test-postmessage.php\n // the message gets delivered only to 'document', not 'window'.\n global.document.attachEvent('on' + event, listener); // I get 'window' for ie8.\n\n global.attachEvent('on' + event, listener);\n }\n },\n detachEvent: function detachEvent(event, listener) {\n if (typeof global.addEventListener !== 'undefined') {\n global.removeEventListener(event, listener, false);\n } else if (global.document && global.detachEvent) {\n global.document.detachEvent('on' + event, listener);\n global.detachEvent('on' + event, listener);\n }\n },\n unloadAdd: function unloadAdd(listener) {\n if (isChromePackagedApp) {\n return null;\n }\n\n var ref = random.string(8);\n onUnload[ref] = listener;\n\n if (afterUnload) {\n setTimeout(this.triggerUnloadCallbacks, 0);\n }\n\n return ref;\n },\n unloadDel: function unloadDel(ref) {\n if (ref in onUnload) {\n delete onUnload[ref];\n }\n },\n triggerUnloadCallbacks: function triggerUnloadCallbacks() {\n for (var ref in onUnload) {\n onUnload[ref]();\n delete onUnload[ref];\n }\n }\n};\n\nvar unloadTriggered = function unloadTriggered() {\n if (afterUnload) {\n return;\n }\n\n afterUnload = true;\n module.exports.triggerUnloadCallbacks();\n}; // 'unload' alone is not reliable in opera within an iframe, but we\n// can't use `beforeunload` as IE fires it on javascript: links.\n\n\nif (!isChromePackagedApp) {\n module.exports.attachEvent('unload', unloadTriggered);\n}","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/3e592d6aede647c1a842a47926d2a746.json b/packages/web/node_modules/.cache/babel-loader/3e592d6aede647c1a842a47926d2a746.json new file mode 100644 index 00000000..a9051453 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/3e592d6aede647c1a842a47926d2a746.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2015 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport * as React from \"react\";\nimport { isNodeEnv } from \"./utils\";\n/**\n * An abstract component that Blueprint components can extend\n * in order to add some common functionality like runtime props validation.\n */\n\nvar AbstractPureComponent =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(AbstractPureComponent, _super);\n\n function AbstractPureComponent(props, context) {\n var _this = _super.call(this, props, context) || this; // Not bothering to remove entries when their timeouts finish because clearing invalid ID is a no-op\n\n\n _this.timeoutIds = [];\n /**\n * Clear all known timeouts.\n */\n\n _this.clearTimeouts = function () {\n if (_this.timeoutIds.length > 0) {\n for (var _i = 0, _a = _this.timeoutIds; _i < _a.length; _i++) {\n var timeoutId = _a[_i];\n window.clearTimeout(timeoutId);\n }\n\n _this.timeoutIds = [];\n }\n };\n\n if (!isNodeEnv(\"production\")) {\n _this.validateProps(_this.props);\n }\n\n return _this;\n }\n\n AbstractPureComponent.prototype.componentWillReceiveProps = function (nextProps) {\n if (!isNodeEnv(\"production\")) {\n this.validateProps(nextProps);\n }\n };\n\n AbstractPureComponent.prototype.componentWillUnmount = function () {\n this.clearTimeouts();\n };\n /**\n * Set a timeout and remember its ID.\n * All stored timeouts will be cleared when component unmounts.\n * @returns a \"cancel\" function that will clear timeout when invoked.\n */\n\n\n AbstractPureComponent.prototype.setTimeout = function (callback, timeout) {\n var handle = window.setTimeout(callback, timeout);\n this.timeoutIds.push(handle);\n return function () {\n return window.clearTimeout(handle);\n };\n };\n /**\n * Ensures that the props specified for a component are valid.\n * Implementations should check that props are valid and usually throw an Error if they are not.\n * Implementations should not duplicate checks that the type system already guarantees.\n *\n * This method should be used instead of React's\n * [propTypes](https://facebook.github.io/react/docs/reusable-components.html#prop-validation) feature.\n * Like propTypes, these runtime checks run only in development mode.\n */\n\n\n AbstractPureComponent.prototype.validateProps = function (_) {// implement in subclass\n };\n\n return AbstractPureComponent;\n}(React.PureComponent);\n\nexport { AbstractPureComponent };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/3ea504f6c98290eb909b9d4314e2a46f.json b/packages/web/node_modules/.cache/babel-loader/3ea504f6c98290eb909b9d4314e2a46f.json new file mode 100644 index 00000000..ea11800d --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/3ea504f6c98290eb909b9d4314e2a46f.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */\n;\n(function () {\n // Detect the `define` function exposed by asynchronous module loaders. The\n // strict `define` check is necessary for compatibility with `r.js`.\n var isLoader = typeof define === \"function\" && define.amd; // A set of types used to distinguish objects from primitives.\n\n var objectTypes = {\n \"function\": true,\n \"object\": true\n }; // Detect the `exports` object exposed by CommonJS implementations.\n\n var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports; // Use the `global` object exposed by Node (including Browserify via\n // `insert-module-globals`), Narwhal, and Ringo as the default context,\n // and the `window` object in browsers. Rhino exports a `global` function\n // instead.\n\n var root = objectTypes[typeof window] && window || this,\n freeGlobal = freeExports && objectTypes[typeof module] && module && !module.nodeType && typeof global == \"object\" && global;\n\n if (freeGlobal && (freeGlobal[\"global\"] === freeGlobal || freeGlobal[\"window\"] === freeGlobal || freeGlobal[\"self\"] === freeGlobal)) {\n root = freeGlobal;\n } // Public: Initializes JSON 3 using the given `context` object, attaching the\n // `stringify` and `parse` functions to the specified `exports` object.\n\n\n function runInContext(context, exports) {\n context || (context = root[\"Object\"]());\n exports || (exports = root[\"Object\"]()); // Native constructor aliases.\n\n var Number = context[\"Number\"] || root[\"Number\"],\n String = context[\"String\"] || root[\"String\"],\n Object = context[\"Object\"] || root[\"Object\"],\n Date = context[\"Date\"] || root[\"Date\"],\n SyntaxError = context[\"SyntaxError\"] || root[\"SyntaxError\"],\n TypeError = context[\"TypeError\"] || root[\"TypeError\"],\n Math = context[\"Math\"] || root[\"Math\"],\n nativeJSON = context[\"JSON\"] || root[\"JSON\"]; // Delegate to the native `stringify` and `parse` implementations.\n\n if (typeof nativeJSON == \"object\" && nativeJSON) {\n exports.stringify = nativeJSON.stringify;\n exports.parse = nativeJSON.parse;\n } // Convenience aliases.\n\n\n var objectProto = Object.prototype,\n getClass = objectProto.toString,\n _isProperty,\n _forEach,\n undef; // Test the `Date#getUTC*` methods. Based on work by @Yaffle.\n\n\n var isExtended = new Date(-3509827334573292);\n\n try {\n // The `getUTCFullYear`, `Month`, and `Date` methods return nonsensical\n // results for certain dates in Opera >= 10.53.\n isExtended = isExtended.getUTCFullYear() == -109252 && isExtended.getUTCMonth() === 0 && isExtended.getUTCDate() === 1 && // Safari < 2.0.2 stores the internal millisecond time value correctly,\n // but clips the values returned by the date methods to the range of\n // signed 32-bit integers ([-2 ** 31, 2 ** 31 - 1]).\n isExtended.getUTCHours() == 10 && isExtended.getUTCMinutes() == 37 && isExtended.getUTCSeconds() == 6 && isExtended.getUTCMilliseconds() == 708;\n } catch (exception) {} // Internal: Determines whether the native `JSON.stringify` and `parse`\n // implementations are spec-compliant. Based on work by Ken Snyder.\n\n\n function has(name) {\n if (has[name] !== undef) {\n // Return cached feature test result.\n return has[name];\n }\n\n var isSupported;\n\n if (name == \"bug-string-char-index\") {\n // IE <= 7 doesn't support accessing string characters using square\n // bracket notation. IE 8 only supports this for primitives.\n isSupported = \"a\"[0] != \"a\";\n } else if (name == \"json\") {\n // Indicates whether both `JSON.stringify` and `JSON.parse` are\n // supported.\n isSupported = has(\"json-stringify\") && has(\"json-parse\");\n } else {\n var value,\n serialized = \"{\\\"a\\\":[1,true,false,null,\\\"\\\\u0000\\\\b\\\\n\\\\f\\\\r\\\\t\\\"]}\"; // Test `JSON.stringify`.\n\n if (name == \"json-stringify\") {\n var stringify = exports.stringify,\n stringifySupported = typeof stringify == \"function\" && isExtended;\n\n if (stringifySupported) {\n // A test function object with a custom `toJSON` method.\n (value = function value() {\n return 1;\n }).toJSON = value;\n\n try {\n stringifySupported = // Firefox 3.1b1 and b2 serialize string, number, and boolean\n // primitives as object literals.\n stringify(0) === \"0\" && // FF 3.1b1, b2, and JSON 2 serialize wrapped primitives as object\n // literals.\n stringify(new Number()) === \"0\" && stringify(new String()) == '\"\"' && // FF 3.1b1, 2 throw an error if the value is `null`, `undefined`, or\n // does not define a canonical JSON representation (this applies to\n // objects with `toJSON` properties as well, *unless* they are nested\n // within an object or array).\n stringify(getClass) === undef && // IE 8 serializes `undefined` as `\"undefined\"`. Safari <= 5.1.7 and\n // FF 3.1b3 pass this test.\n stringify(undef) === undef && // Safari <= 5.1.7 and FF 3.1b3 throw `Error`s and `TypeError`s,\n // respectively, if the value is omitted entirely.\n stringify() === undef && // FF 3.1b1, 2 throw an error if the given value is not a number,\n // string, array, object, Boolean, or `null` literal. This applies to\n // objects with custom `toJSON` methods as well, unless they are nested\n // inside object or array literals. YUI 3.0.0b1 ignores custom `toJSON`\n // methods entirely.\n stringify(value) === \"1\" && stringify([value]) == \"[1]\" && // Prototype <= 1.6.1 serializes `[undefined]` as `\"[]\"` instead of\n // `\"[null]\"`.\n stringify([undef]) == \"[null]\" && // YUI 3.0.0b1 fails to serialize `null` literals.\n stringify(null) == \"null\" && // FF 3.1b1, 2 halts serialization if an array contains a function:\n // `[1, true, getClass, 1]` serializes as \"[1,true,],\". FF 3.1b3\n // elides non-JSON values from objects and arrays, unless they\n // define custom `toJSON` methods.\n stringify([undef, getClass, null]) == \"[null,null,null]\" && // Simple serialization test. FF 3.1b1 uses Unicode escape sequences\n // where character escape codes are expected (e.g., `\\b` => `\\u0008`).\n stringify({\n \"a\": [value, true, false, null, \"\\x00\\b\\n\\f\\r\\t\"]\n }) == serialized && // FF 3.1b1 and b2 ignore the `filter` and `width` arguments.\n stringify(null, value) === \"1\" && stringify([1, 2], null, 1) == \"[\\n 1,\\n 2\\n]\" && // JSON 2, Prototype <= 1.7, and older WebKit builds incorrectly\n // serialize extended years.\n stringify(new Date(-8.64e15)) == '\"-271821-04-20T00:00:00.000Z\"' && // The milliseconds are optional in ES 5, but required in 5.1.\n stringify(new Date(8.64e15)) == '\"+275760-09-13T00:00:00.000Z\"' && // Firefox <= 11.0 incorrectly serializes years prior to 0 as negative\n // four-digit years instead of six-digit years. Credits: @Yaffle.\n stringify(new Date(-621987552e5)) == '\"-000001-01-01T00:00:00.000Z\"' && // Safari <= 5.1.5 and Opera >= 10.53 incorrectly serialize millisecond\n // values less than 1000. Credits: @Yaffle.\n stringify(new Date(-1)) == '\"1969-12-31T23:59:59.999Z\"';\n } catch (exception) {\n stringifySupported = false;\n }\n }\n\n isSupported = stringifySupported;\n } // Test `JSON.parse`.\n\n\n if (name == \"json-parse\") {\n var parse = exports.parse;\n\n if (typeof parse == \"function\") {\n try {\n // FF 3.1b1, b2 will throw an exception if a bare literal is provided.\n // Conforming implementations should also coerce the initial argument to\n // a string prior to parsing.\n if (parse(\"0\") === 0 && !parse(false)) {\n // Simple parsing test.\n value = parse(serialized);\n var parseSupported = value[\"a\"].length == 5 && value[\"a\"][0] === 1;\n\n if (parseSupported) {\n try {\n // Safari <= 5.1.2 and FF 3.1b1 allow unescaped tabs in strings.\n parseSupported = !parse('\"\\t\"');\n } catch (exception) {}\n\n if (parseSupported) {\n try {\n // FF 4.0 and 4.0.1 allow leading `+` signs and leading\n // decimal points. FF 4.0, 4.0.1, and IE 9-10 also allow\n // certain octal literals.\n parseSupported = parse(\"01\") !== 1;\n } catch (exception) {}\n }\n\n if (parseSupported) {\n try {\n // FF 4.0, 4.0.1, and Rhino 1.7R3-R4 allow trailing decimal\n // points. These environments, along with FF 3.1b1 and 2,\n // also allow trailing commas in JSON objects and arrays.\n parseSupported = parse(\"1.\") !== 1;\n } catch (exception) {}\n }\n }\n }\n } catch (exception) {\n parseSupported = false;\n }\n }\n\n isSupported = parseSupported;\n }\n }\n\n return has[name] = !!isSupported;\n }\n\n if (!has(\"json\")) {\n // Common `[[Class]]` name aliases.\n var functionClass = \"[object Function]\",\n dateClass = \"[object Date]\",\n numberClass = \"[object Number]\",\n stringClass = \"[object String]\",\n arrayClass = \"[object Array]\",\n booleanClass = \"[object Boolean]\"; // Detect incomplete support for accessing string characters by index.\n\n var charIndexBuggy = has(\"bug-string-char-index\"); // Define additional utility methods if the `Date` methods are buggy.\n\n if (!isExtended) {\n var floor = Math.floor; // A mapping between the months of the year and the number of days between\n // January 1st and the first of the respective month.\n\n var Months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]; // Internal: Calculates the number of days between the Unix epoch and the\n // first day of the given month.\n\n var getDay = function getDay(year, month) {\n return Months[month] + 365 * (year - 1970) + floor((year - 1969 + (month = +(month > 1))) / 4) - floor((year - 1901 + month) / 100) + floor((year - 1601 + month) / 400);\n };\n } // Internal: Determines if a property is a direct property of the given\n // object. Delegates to the native `Object#hasOwnProperty` method.\n\n\n if (!(_isProperty = objectProto.hasOwnProperty)) {\n _isProperty = function isProperty(property) {\n var members = {},\n constructor;\n\n if ((members.__proto__ = null, members.__proto__ = {\n // The *proto* property cannot be set multiple times in recent\n // versions of Firefox and SeaMonkey.\n \"toString\": 1\n }, members).toString != getClass) {\n // Safari <= 2.0.3 doesn't implement `Object#hasOwnProperty`, but\n // supports the mutable *proto* property.\n _isProperty = function isProperty(property) {\n // Capture and break the object's prototype chain (see section 8.6.2\n // of the ES 5.1 spec). The parenthesized expression prevents an\n // unsafe transformation by the Closure Compiler.\n var original = this.__proto__,\n result = property in (this.__proto__ = null, this); // Restore the original prototype chain.\n\n this.__proto__ = original;\n return result;\n };\n } else {\n // Capture a reference to the top-level `Object` constructor.\n constructor = members.constructor; // Use the `constructor` property to simulate `Object#hasOwnProperty` in\n // other environments.\n\n _isProperty = function isProperty(property) {\n var parent = (this.constructor || constructor).prototype;\n return property in this && !(property in parent && this[property] === parent[property]);\n };\n }\n\n members = null;\n return _isProperty.call(this, property);\n };\n } // Internal: Normalizes the `for...in` iteration algorithm across\n // environments. Each enumerated key is yielded to a `callback` function.\n\n\n _forEach = function forEach(object, callback) {\n var size = 0,\n Properties,\n members,\n property; // Tests for bugs in the current environment's `for...in` algorithm. The\n // `valueOf` property inherits the non-enumerable flag from\n // `Object.prototype` in older versions of IE, Netscape, and Mozilla.\n\n (Properties = function Properties() {\n this.valueOf = 0;\n }).prototype.valueOf = 0; // Iterate over a new instance of the `Properties` class.\n\n members = new Properties();\n\n for (property in members) {\n // Ignore all properties inherited from `Object.prototype`.\n if (_isProperty.call(members, property)) {\n size++;\n }\n }\n\n Properties = members = null; // Normalize the iteration algorithm.\n\n if (!size) {\n // A list of non-enumerable properties inherited from `Object.prototype`.\n members = [\"valueOf\", \"toString\", \"toLocaleString\", \"propertyIsEnumerable\", \"isPrototypeOf\", \"hasOwnProperty\", \"constructor\"]; // IE <= 8, Mozilla 1.0, and Netscape 6.2 ignore shadowed non-enumerable\n // properties.\n\n _forEach = function forEach(object, callback) {\n var isFunction = getClass.call(object) == functionClass,\n property,\n length;\n var hasProperty = !isFunction && typeof object.constructor != \"function\" && objectTypes[typeof object.hasOwnProperty] && object.hasOwnProperty || _isProperty;\n\n for (property in object) {\n // Gecko <= 1.0 enumerates the `prototype` property of functions under\n // certain conditions; IE does not.\n if (!(isFunction && property == \"prototype\") && hasProperty.call(object, property)) {\n callback(property);\n }\n } // Manually invoke the callback for each non-enumerable property.\n\n\n for (length = members.length; property = members[--length]; hasProperty.call(object, property) && callback(property)) {\n ;\n }\n };\n } else if (size == 2) {\n // Safari <= 2.0.4 enumerates shadowed properties twice.\n _forEach = function forEach(object, callback) {\n // Create a set of iterated properties.\n var members = {},\n isFunction = getClass.call(object) == functionClass,\n property;\n\n for (property in object) {\n // Store each property name to prevent double enumeration. The\n // `prototype` property of functions is not enumerated due to cross-\n // environment inconsistencies.\n if (!(isFunction && property == \"prototype\") && !_isProperty.call(members, property) && (members[property] = 1) && _isProperty.call(object, property)) {\n callback(property);\n }\n }\n };\n } else {\n // No bugs detected; use the standard `for...in` algorithm.\n _forEach = function forEach(object, callback) {\n var isFunction = getClass.call(object) == functionClass,\n property,\n isConstructor;\n\n for (property in object) {\n if (!(isFunction && property == \"prototype\") && _isProperty.call(object, property) && !(isConstructor = property === \"constructor\")) {\n callback(property);\n }\n } // Manually invoke the callback for the `constructor` property due to\n // cross-environment inconsistencies.\n\n\n if (isConstructor || _isProperty.call(object, property = \"constructor\")) {\n callback(property);\n }\n };\n }\n\n return _forEach(object, callback);\n }; // Public: Serializes a JavaScript `value` as a JSON string. The optional\n // `filter` argument may specify either a function that alters how object and\n // array members are serialized, or an array of strings and numbers that\n // indicates which properties should be serialized. The optional `width`\n // argument may be either a string or number that specifies the indentation\n // level of the output.\n\n\n if (!has(\"json-stringify\")) {\n // Internal: A map of control characters and their escaped equivalents.\n var Escapes = {\n 92: \"\\\\\\\\\",\n 34: '\\\\\"',\n 8: \"\\\\b\",\n 12: \"\\\\f\",\n 10: \"\\\\n\",\n 13: \"\\\\r\",\n 9: \"\\\\t\"\n }; // Internal: Converts `value` into a zero-padded string such that its\n // length is at least equal to `width`. The `width` must be <= 6.\n\n var leadingZeroes = \"000000\";\n\n var toPaddedString = function toPaddedString(width, value) {\n // The `|| 0` expression is necessary to work around a bug in\n // Opera <= 7.54u2 where `0 == -0`, but `String(-0) !== \"0\"`.\n return (leadingZeroes + (value || 0)).slice(-width);\n }; // Internal: Double-quotes a string `value`, replacing all ASCII control\n // characters (characters with code unit values between 0 and 31) with\n // their escaped equivalents. This is an implementation of the\n // `Quote(value)` operation defined in ES 5.1 section 15.12.3.\n\n\n var unicodePrefix = \"\\\\u00\";\n\n var quote = function quote(value) {\n var result = '\"',\n index = 0,\n length = value.length,\n useCharIndex = !charIndexBuggy || length > 10;\n var symbols = useCharIndex && (charIndexBuggy ? value.split(\"\") : value);\n\n for (; index < length; index++) {\n var charCode = value.charCodeAt(index); // If the character is a control character, append its Unicode or\n // shorthand escape sequence; otherwise, append the character as-is.\n\n switch (charCode) {\n case 8:\n case 9:\n case 10:\n case 12:\n case 13:\n case 34:\n case 92:\n result += Escapes[charCode];\n break;\n\n default:\n if (charCode < 32) {\n result += unicodePrefix + toPaddedString(2, charCode.toString(16));\n break;\n }\n\n result += useCharIndex ? symbols[index] : value.charAt(index);\n }\n }\n\n return result + '\"';\n }; // Internal: Recursively serializes an object. Implements the\n // `Str(key, holder)`, `JO(value)`, and `JA(value)` operations.\n\n\n var serialize = function serialize(property, object, callback, properties, whitespace, indentation, stack) {\n var value, className, year, month, date, time, hours, minutes, seconds, milliseconds, results, element, index, length, prefix, result;\n\n try {\n // Necessary for host object support.\n value = object[property];\n } catch (exception) {}\n\n if (typeof value == \"object\" && value) {\n className = getClass.call(value);\n\n if (className == dateClass && !_isProperty.call(value, \"toJSON\")) {\n if (value > -1 / 0 && value < 1 / 0) {\n // Dates are serialized according to the `Date#toJSON` method\n // specified in ES 5.1 section 15.9.5.44. See section 15.9.1.15\n // for the ISO 8601 date time string format.\n if (getDay) {\n // Manually compute the year, month, date, hours, minutes,\n // seconds, and milliseconds if the `getUTC*` methods are\n // buggy. Adapted from @Yaffle's `date-shim` project.\n date = floor(value / 864e5);\n\n for (year = floor(date / 365.2425) + 1970 - 1; getDay(year + 1, 0) <= date; year++) {\n ;\n }\n\n for (month = floor((date - getDay(year, 0)) / 30.42); getDay(year, month + 1) <= date; month++) {\n ;\n }\n\n date = 1 + date - getDay(year, month); // The `time` value specifies the time within the day (see ES\n // 5.1 section 15.9.1.2). The formula `(A % B + B) % B` is used\n // to compute `A modulo B`, as the `%` operator does not\n // correspond to the `modulo` operation for negative numbers.\n\n time = (value % 864e5 + 864e5) % 864e5; // The hours, minutes, seconds, and milliseconds are obtained by\n // decomposing the time within the day. See section 15.9.1.10.\n\n hours = floor(time / 36e5) % 24;\n minutes = floor(time / 6e4) % 60;\n seconds = floor(time / 1e3) % 60;\n milliseconds = time % 1e3;\n } else {\n year = value.getUTCFullYear();\n month = value.getUTCMonth();\n date = value.getUTCDate();\n hours = value.getUTCHours();\n minutes = value.getUTCMinutes();\n seconds = value.getUTCSeconds();\n milliseconds = value.getUTCMilliseconds();\n } // Serialize extended years correctly.\n\n\n value = (year <= 0 || year >= 1e4 ? (year < 0 ? \"-\" : \"+\") + toPaddedString(6, year < 0 ? -year : year) : toPaddedString(4, year)) + \"-\" + toPaddedString(2, month + 1) + \"-\" + toPaddedString(2, date) + // Months, dates, hours, minutes, and seconds should have two\n // digits; milliseconds should have three.\n \"T\" + toPaddedString(2, hours) + \":\" + toPaddedString(2, minutes) + \":\" + toPaddedString(2, seconds) + // Milliseconds are optional in ES 5.0, but required in 5.1.\n \".\" + toPaddedString(3, milliseconds) + \"Z\";\n } else {\n value = null;\n }\n } else if (typeof value.toJSON == \"function\" && (className != numberClass && className != stringClass && className != arrayClass || _isProperty.call(value, \"toJSON\"))) {\n // Prototype <= 1.6.1 adds non-standard `toJSON` methods to the\n // `Number`, `String`, `Date`, and `Array` prototypes. JSON 3\n // ignores all `toJSON` methods on these objects unless they are\n // defined directly on an instance.\n value = value.toJSON(property);\n }\n }\n\n if (callback) {\n // If a replacement function was provided, call it to obtain the value\n // for serialization.\n value = callback.call(object, property, value);\n }\n\n if (value === null) {\n return \"null\";\n }\n\n className = getClass.call(value);\n\n if (className == booleanClass) {\n // Booleans are represented literally.\n return \"\" + value;\n } else if (className == numberClass) {\n // JSON numbers must be finite. `Infinity` and `NaN` are serialized as\n // `\"null\"`.\n return value > -1 / 0 && value < 1 / 0 ? \"\" + value : \"null\";\n } else if (className == stringClass) {\n // Strings are double-quoted and escaped.\n return quote(\"\" + value);\n } // Recursively serialize objects and arrays.\n\n\n if (typeof value == \"object\") {\n // Check for cyclic structures. This is a linear search; performance\n // is inversely proportional to the number of unique nested objects.\n for (length = stack.length; length--;) {\n if (stack[length] === value) {\n // Cyclic structures cannot be serialized by `JSON.stringify`.\n throw TypeError();\n }\n } // Add the object to the stack of traversed objects.\n\n\n stack.push(value);\n results = []; // Save the current indentation level and indent one additional level.\n\n prefix = indentation;\n indentation += whitespace;\n\n if (className == arrayClass) {\n // Recursively serialize array elements.\n for (index = 0, length = value.length; index < length; index++) {\n element = serialize(index, value, callback, properties, whitespace, indentation, stack);\n results.push(element === undef ? \"null\" : element);\n }\n\n result = results.length ? whitespace ? \"[\\n\" + indentation + results.join(\",\\n\" + indentation) + \"\\n\" + prefix + \"]\" : \"[\" + results.join(\",\") + \"]\" : \"[]\";\n } else {\n // Recursively serialize object members. Members are selected from\n // either a user-specified list of property names, or the object\n // itself.\n _forEach(properties || value, function (property) {\n var element = serialize(property, value, callback, properties, whitespace, indentation, stack);\n\n if (element !== undef) {\n // According to ES 5.1 section 15.12.3: \"If `gap` {whitespace}\n // is not the empty string, let `member` {quote(property) + \":\"}\n // be the concatenation of `member` and the `space` character.\"\n // The \"`space` character\" refers to the literal space\n // character, not the `space` {width} argument provided to\n // `JSON.stringify`.\n results.push(quote(property) + \":\" + (whitespace ? \" \" : \"\") + element);\n }\n });\n\n result = results.length ? whitespace ? \"{\\n\" + indentation + results.join(\",\\n\" + indentation) + \"\\n\" + prefix + \"}\" : \"{\" + results.join(\",\") + \"}\" : \"{}\";\n } // Remove the object from the traversed object stack.\n\n\n stack.pop();\n return result;\n }\n }; // Public: `JSON.stringify`. See ES 5.1 section 15.12.3.\n\n\n exports.stringify = function (source, filter, width) {\n var whitespace, callback, properties, className;\n\n if (objectTypes[typeof filter] && filter) {\n if ((className = getClass.call(filter)) == functionClass) {\n callback = filter;\n } else if (className == arrayClass) {\n // Convert the property names array into a makeshift set.\n properties = {};\n\n for (var index = 0, length = filter.length, value; index < length; value = filter[index++], (className = getClass.call(value), className == stringClass || className == numberClass) && (properties[value] = 1)) {\n ;\n }\n }\n }\n\n if (width) {\n if ((className = getClass.call(width)) == numberClass) {\n // Convert the `width` to an integer and create a string containing\n // `width` number of space characters.\n if ((width -= width % 1) > 0) {\n for (whitespace = \"\", width > 10 && (width = 10); whitespace.length < width; whitespace += \" \") {\n ;\n }\n }\n } else if (className == stringClass) {\n whitespace = width.length <= 10 ? width : width.slice(0, 10);\n }\n } // Opera <= 7.54u2 discards the values associated with empty string keys\n // (`\"\"`) only if they are used directly within an object member list\n // (e.g., `!(\"\" in { \"\": 1})`).\n\n\n return serialize(\"\", (value = {}, value[\"\"] = source, value), callback, properties, whitespace, \"\", []);\n };\n } // Public: Parses a JSON source string.\n\n\n if (!has(\"json-parse\")) {\n var fromCharCode = String.fromCharCode; // Internal: A map of escaped control characters and their unescaped\n // equivalents.\n\n var Unescapes = {\n 92: \"\\\\\",\n 34: '\"',\n 47: \"/\",\n 98: \"\\b\",\n 116: \"\\t\",\n 110: \"\\n\",\n 102: \"\\f\",\n 114: \"\\r\"\n }; // Internal: Stores the parser state.\n\n var Index, Source; // Internal: Resets the parser state and throws a `SyntaxError`.\n\n var abort = function abort() {\n Index = Source = null;\n throw SyntaxError();\n }; // Internal: Returns the next token, or `\"$\"` if the parser has reached\n // the end of the source string. A token may be a string, number, `null`\n // literal, or Boolean literal.\n\n\n var lex = function lex() {\n var source = Source,\n length = source.length,\n value,\n begin,\n position,\n isSigned,\n charCode;\n\n while (Index < length) {\n charCode = source.charCodeAt(Index);\n\n switch (charCode) {\n case 9:\n case 10:\n case 13:\n case 32:\n // Skip whitespace tokens, including tabs, carriage returns, line\n // feeds, and space characters.\n Index++;\n break;\n\n case 123:\n case 125:\n case 91:\n case 93:\n case 58:\n case 44:\n // Parse a punctuator token (`{`, `}`, `[`, `]`, `:`, or `,`) at\n // the current position.\n value = charIndexBuggy ? source.charAt(Index) : source[Index];\n Index++;\n return value;\n\n case 34:\n // `\"` delimits a JSON string; advance to the next character and\n // begin parsing the string. String tokens are prefixed with the\n // sentinel `@` character to distinguish them from punctuators and\n // end-of-string tokens.\n for (value = \"@\", Index++; Index < length;) {\n charCode = source.charCodeAt(Index);\n\n if (charCode < 32) {\n // Unescaped ASCII control characters (those with a code unit\n // less than the space character) are not permitted.\n abort();\n } else if (charCode == 92) {\n // A reverse solidus (`\\`) marks the beginning of an escaped\n // control character (including `\"`, `\\`, and `/`) or Unicode\n // escape sequence.\n charCode = source.charCodeAt(++Index);\n\n switch (charCode) {\n case 92:\n case 34:\n case 47:\n case 98:\n case 116:\n case 110:\n case 102:\n case 114:\n // Revive escaped control characters.\n value += Unescapes[charCode];\n Index++;\n break;\n\n case 117:\n // `\\u` marks the beginning of a Unicode escape sequence.\n // Advance to the first character and validate the\n // four-digit code point.\n begin = ++Index;\n\n for (position = Index + 4; Index < position; Index++) {\n charCode = source.charCodeAt(Index); // A valid sequence comprises four hexdigits (case-\n // insensitive) that form a single hexadecimal value.\n\n if (!(charCode >= 48 && charCode <= 57 || charCode >= 97 && charCode <= 102 || charCode >= 65 && charCode <= 70)) {\n // Invalid Unicode escape sequence.\n abort();\n }\n } // Revive the escaped character.\n\n\n value += fromCharCode(\"0x\" + source.slice(begin, Index));\n break;\n\n default:\n // Invalid escape sequence.\n abort();\n }\n } else {\n if (charCode == 34) {\n // An unescaped double-quote character marks the end of the\n // string.\n break;\n }\n\n charCode = source.charCodeAt(Index);\n begin = Index; // Optimize for the common case where a string is valid.\n\n while (charCode >= 32 && charCode != 92 && charCode != 34) {\n charCode = source.charCodeAt(++Index);\n } // Append the string as-is.\n\n\n value += source.slice(begin, Index);\n }\n }\n\n if (source.charCodeAt(Index) == 34) {\n // Advance to the next character and return the revived string.\n Index++;\n return value;\n } // Unterminated string.\n\n\n abort();\n\n default:\n // Parse numbers and literals.\n begin = Index; // Advance past the negative sign, if one is specified.\n\n if (charCode == 45) {\n isSigned = true;\n charCode = source.charCodeAt(++Index);\n } // Parse an integer or floating-point value.\n\n\n if (charCode >= 48 && charCode <= 57) {\n // Leading zeroes are interpreted as octal literals.\n if (charCode == 48 && (charCode = source.charCodeAt(Index + 1), charCode >= 48 && charCode <= 57)) {\n // Illegal octal literal.\n abort();\n }\n\n isSigned = false; // Parse the integer component.\n\n for (; Index < length && (charCode = source.charCodeAt(Index), charCode >= 48 && charCode <= 57); Index++) {\n ;\n } // Floats cannot contain a leading decimal point; however, this\n // case is already accounted for by the parser.\n\n\n if (source.charCodeAt(Index) == 46) {\n position = ++Index; // Parse the decimal component.\n\n for (; position < length && (charCode = source.charCodeAt(position), charCode >= 48 && charCode <= 57); position++) {\n ;\n }\n\n if (position == Index) {\n // Illegal trailing decimal.\n abort();\n }\n\n Index = position;\n } // Parse exponents. The `e` denoting the exponent is\n // case-insensitive.\n\n\n charCode = source.charCodeAt(Index);\n\n if (charCode == 101 || charCode == 69) {\n charCode = source.charCodeAt(++Index); // Skip past the sign following the exponent, if one is\n // specified.\n\n if (charCode == 43 || charCode == 45) {\n Index++;\n } // Parse the exponential component.\n\n\n for (position = Index; position < length && (charCode = source.charCodeAt(position), charCode >= 48 && charCode <= 57); position++) {\n ;\n }\n\n if (position == Index) {\n // Illegal empty exponent.\n abort();\n }\n\n Index = position;\n } // Coerce the parsed value to a JavaScript number.\n\n\n return +source.slice(begin, Index);\n } // A negative sign may only precede numbers.\n\n\n if (isSigned) {\n abort();\n } // `true`, `false`, and `null` literals.\n\n\n if (source.slice(Index, Index + 4) == \"true\") {\n Index += 4;\n return true;\n } else if (source.slice(Index, Index + 5) == \"false\") {\n Index += 5;\n return false;\n } else if (source.slice(Index, Index + 4) == \"null\") {\n Index += 4;\n return null;\n } // Unrecognized token.\n\n\n abort();\n }\n } // Return the sentinel `$` character if the parser has reached the end\n // of the source string.\n\n\n return \"$\";\n }; // Internal: Parses a JSON `value` token.\n\n\n var get = function get(value) {\n var results, hasMembers;\n\n if (value == \"$\") {\n // Unexpected end of input.\n abort();\n }\n\n if (typeof value == \"string\") {\n if ((charIndexBuggy ? value.charAt(0) : value[0]) == \"@\") {\n // Remove the sentinel `@` character.\n return value.slice(1);\n } // Parse object and array literals.\n\n\n if (value == \"[\") {\n // Parses a JSON array, returning a new JavaScript array.\n results = [];\n\n for (;; hasMembers || (hasMembers = true)) {\n value = lex(); // A closing square bracket marks the end of the array literal.\n\n if (value == \"]\") {\n break;\n } // If the array literal contains elements, the current token\n // should be a comma separating the previous element from the\n // next.\n\n\n if (hasMembers) {\n if (value == \",\") {\n value = lex();\n\n if (value == \"]\") {\n // Unexpected trailing `,` in array literal.\n abort();\n }\n } else {\n // A `,` must separate each array element.\n abort();\n }\n } // Elisions and leading commas are not permitted.\n\n\n if (value == \",\") {\n abort();\n }\n\n results.push(get(value));\n }\n\n return results;\n } else if (value == \"{\") {\n // Parses a JSON object, returning a new JavaScript object.\n results = {};\n\n for (;; hasMembers || (hasMembers = true)) {\n value = lex(); // A closing curly brace marks the end of the object literal.\n\n if (value == \"}\") {\n break;\n } // If the object literal contains members, the current token\n // should be a comma separator.\n\n\n if (hasMembers) {\n if (value == \",\") {\n value = lex();\n\n if (value == \"}\") {\n // Unexpected trailing `,` in object literal.\n abort();\n }\n } else {\n // A `,` must separate each object member.\n abort();\n }\n } // Leading commas are not permitted, object property names must be\n // double-quoted strings, and a `:` must separate each property\n // name and value.\n\n\n if (value == \",\" || typeof value != \"string\" || (charIndexBuggy ? value.charAt(0) : value[0]) != \"@\" || lex() != \":\") {\n abort();\n }\n\n results[value.slice(1)] = get(lex());\n }\n\n return results;\n } // Unexpected token encountered.\n\n\n abort();\n }\n\n return value;\n }; // Internal: Updates a traversed object member.\n\n\n var update = function update(source, property, callback) {\n var element = walk(source, property, callback);\n\n if (element === undef) {\n delete source[property];\n } else {\n source[property] = element;\n }\n }; // Internal: Recursively traverses a parsed JSON object, invoking the\n // `callback` function for each value. This is an implementation of the\n // `Walk(holder, name)` operation defined in ES 5.1 section 15.12.2.\n\n\n var walk = function walk(source, property, callback) {\n var value = source[property],\n length;\n\n if (typeof value == \"object\" && value) {\n // `forEach` can't be used to traverse an array in Opera <= 8.54\n // because its `Object#hasOwnProperty` implementation returns `false`\n // for array indices (e.g., `![1, 2, 3].hasOwnProperty(\"0\")`).\n if (getClass.call(value) == arrayClass) {\n for (length = value.length; length--;) {\n update(value, length, callback);\n }\n } else {\n _forEach(value, function (property) {\n update(value, property, callback);\n });\n }\n }\n\n return callback.call(source, property, value);\n }; // Public: `JSON.parse`. See ES 5.1 section 15.12.2.\n\n\n exports.parse = function (source, callback) {\n var result, value;\n Index = 0;\n Source = \"\" + source;\n result = get(lex()); // If a JSON string contains multiple tokens, it is invalid.\n\n if (lex() != \"$\") {\n abort();\n } // Reset the parser state.\n\n\n Index = Source = null;\n return callback && getClass.call(callback) == functionClass ? walk((value = {}, value[\"\"] = result, value), \"\", callback) : result;\n };\n }\n }\n\n exports[\"runInContext\"] = runInContext;\n return exports;\n }\n\n if (freeExports && !isLoader) {\n // Export for CommonJS environments.\n runInContext(root, freeExports);\n } else {\n // Export for web browsers and JavaScript engines.\n var nativeJSON = root.JSON,\n previousJSON = root[\"JSON3\"],\n isRestored = false;\n var JSON3 = runInContext(root, root[\"JSON3\"] = {\n // Public: Restores the original value of the global `JSON` object and\n // returns a reference to the `JSON3` object.\n \"noConflict\": function noConflict() {\n if (!isRestored) {\n isRestored = true;\n root.JSON = nativeJSON;\n root[\"JSON3\"] = previousJSON;\n nativeJSON = previousJSON = null;\n }\n\n return JSON3;\n }\n });\n root.JSON = {\n \"parse\": JSON3.parse,\n \"stringify\": JSON3.stringify\n };\n } // Export for asynchronous module loaders.\n\n\n if (isLoader) {\n define(function () {\n return JSON3;\n });\n }\n}).call(this);","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/3ecb87fb6d99d19e5bef6142dc6ff53d.json b/packages/web/node_modules/.cache/babel-loader/3ecb87fb6d99d19e5bef6142dc6ff53d.json new file mode 100644 index 00000000..4abd727a --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/3ecb87fb6d99d19e5bef6142dc6ff53d.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2016 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport * as Classes from \"../../common/classes\";\nexport var Breadcrumb = function Breadcrumb(breadcrumbProps) {\n var classes = classNames(Classes.BREADCRUMB, (_a = {}, _a[Classes.BREADCRUMB_CURRENT] = breadcrumbProps.current, _a[Classes.DISABLED] = breadcrumbProps.disabled, _a), breadcrumbProps.className);\n\n if (breadcrumbProps.href == null && breadcrumbProps.onClick == null) {\n return React.createElement(\"span\", {\n className: classes\n }, breadcrumbProps.text, breadcrumbProps.children);\n }\n\n return React.createElement(\"a\", {\n className: classes,\n href: breadcrumbProps.href,\n onClick: breadcrumbProps.disabled ? null : breadcrumbProps.onClick,\n tabIndex: breadcrumbProps.disabled ? null : 0,\n target: breadcrumbProps.target\n }, breadcrumbProps.text, breadcrumbProps.children);\n\n var _a;\n};","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/3fa921c499fbac3434a40cc467f52b3d.json b/packages/web/node_modules/.cache/babel-loader/3fa921c499fbac3434a40cc467f52b3d.json new file mode 100644 index 00000000..264b5338 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/3fa921c499fbac3434a40cc467f52b3d.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = utils.isStandardBrowserEnv() ? // Standard browser envs support document.cookie\nfunction standardBrowserEnv() {\n return {\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 read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return match ? decodeURIComponent(match[3]) : null;\n },\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n}() : // Non standard browser env (web workers, react-native) lack needed support.\nfunction nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() {\n return null;\n },\n remove: function remove() {}\n };\n}();","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/3fc0c5eab60fed7098b56d9f0a0d8620.json b/packages/web/node_modules/.cache/babel-loader/3fc0c5eab60fed7098b56d9f0a0d8620.json new file mode 100644 index 00000000..094a95ba --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/3fc0c5eab60fed7098b56d9f0a0d8620.json @@ -0,0 +1 @@ +{"ast":null,"code":"// Written in this round about way for babel-transform-imports\nimport StaticRouter from \"react-router/es/StaticRouter\";\nexport default StaticRouter;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/40062cf4de5114165241f15a0e389a64.json b/packages/web/node_modules/.cache/babel-loader/40062cf4de5114165241f15a0e389a64.json new file mode 100644 index 00000000..f7fa2791 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/40062cf4de5114165241f15a0e389a64.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar inherits = require('inherits'),\n urlUtils = require('../../utils/url'),\n BufferedSender = require('./buffered-sender'),\n Polling = require('./polling');\n\nvar debug = function debug() {};\n\nif (process.env.NODE_ENV !== 'production') {\n debug = require('debug')('sockjs-client:sender-receiver');\n}\n\nfunction SenderReceiver(transUrl, urlSuffix, senderFunc, Receiver, AjaxObject) {\n var pollUrl = urlUtils.addPath(transUrl, urlSuffix);\n debug(pollUrl);\n var self = this;\n BufferedSender.call(this, transUrl, senderFunc);\n this.poll = new Polling(Receiver, pollUrl, AjaxObject);\n this.poll.on('message', function (msg) {\n debug('poll message', msg);\n self.emit('message', msg);\n });\n this.poll.once('close', function (code, reason) {\n debug('poll close', code, reason);\n self.poll = null;\n self.emit('close', code, reason);\n self.close();\n });\n}\n\ninherits(SenderReceiver, BufferedSender);\n\nSenderReceiver.prototype.close = function () {\n BufferedSender.prototype.close.call(this);\n debug('close');\n this.removeAllListeners();\n\n if (this.poll) {\n this.poll.abort();\n this.poll = null;\n }\n};\n\nmodule.exports = SenderReceiver;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/41e8bd700a6216ab1ab00562c0018d5e.json b/packages/web/node_modules/.cache/babel-loader/41e8bd700a6216ab1ab00562c0018d5e.json new file mode 100644 index 00000000..efd57ef2 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/41e8bd700a6216ab1ab00562c0018d5e.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar inherits = require('inherits'),\n AjaxBasedTransport = require('./lib/ajax-based'),\n XhrReceiver = require('./receiver/xhr'),\n XHRCorsObject = require('./sender/xhr-cors'),\n XHRLocalObject = require('./sender/xhr-local'),\n browser = require('../utils/browser');\n\nfunction XhrStreamingTransport(transUrl) {\n if (!XHRLocalObject.enabled && !XHRCorsObject.enabled) {\n throw new Error('Transport created when disabled');\n }\n\n AjaxBasedTransport.call(this, transUrl, '/xhr_streaming', XhrReceiver, XHRCorsObject);\n}\n\ninherits(XhrStreamingTransport, AjaxBasedTransport);\n\nXhrStreamingTransport.enabled = function (info) {\n if (info.nullOrigin) {\n return false;\n } // Opera doesn't support xhr-streaming #60\n // But it might be able to #92\n\n\n if (browser.isOpera()) {\n return false;\n }\n\n return XHRCorsObject.enabled;\n};\n\nXhrStreamingTransport.transportName = 'xhr-streaming';\nXhrStreamingTransport.roundTrips = 2; // preflight, ajax\n// Safari gets confused when a streaming ajax request is started\n// before onload. This causes the load indicator to spin indefinetely.\n// Only require body when used in a browser\n\nXhrStreamingTransport.needBody = !!global.document;\nmodule.exports = XhrStreamingTransport;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/42c27a6dca28fb9be4ab8c84662dc6ad.json b/packages/web/node_modules/.cache/babel-loader/42c27a6dca28fb9be4ab8c84662dc6ad.json new file mode 100644 index 00000000..e6e90e96 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/42c27a6dca28fb9be4ab8c84662dc6ad.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar escapeStringRegexp = require('escape-string-regexp');\n\nvar ansiStyles = require('ansi-styles');\n\nvar stdoutColor = require('supports-color').stdout;\n\nvar template = require('./templates.js');\n\nvar isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm'); // `supportsColor.level` → `ansiStyles.color[name]` mapping\n\nvar levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m']; // `color-convert` models to exclude from the Chalk API due to conflicts and such\n\nvar skipModels = new Set(['gray']);\nvar styles = Object.create(null);\n\nfunction applyOptions(obj, options) {\n options = options || {}; // Detect level if not set manually\n\n var scLevel = stdoutColor ? stdoutColor.level : 0;\n obj.level = options.level === undefined ? scLevel : options.level;\n obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0;\n}\n\nfunction Chalk(options) {\n // We check for this.template here since calling `chalk.constructor()`\n // by itself will have a `this` of a previously constructed chalk object\n if (!this || !(this instanceof Chalk) || this.template) {\n var chalk = {};\n applyOptions(chalk, options);\n\n chalk.template = function () {\n var args = [].slice.call(arguments);\n return chalkTag.apply(null, [chalk.template].concat(args));\n };\n\n Object.setPrototypeOf(chalk, Chalk.prototype);\n Object.setPrototypeOf(chalk.template, chalk);\n chalk.template.constructor = Chalk;\n return chalk.template;\n }\n\n applyOptions(this, options);\n} // Use bright blue on Windows as the normal blue color is illegible\n\n\nif (isSimpleWindowsTerm) {\n ansiStyles.blue.open = \"\\x1B[94m\";\n}\n\nvar _arr = Object.keys(ansiStyles);\n\nvar _loop = function _loop() {\n var key = _arr[_i];\n ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');\n styles[key] = {\n get: function get() {\n var codes = ansiStyles[key];\n return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key);\n }\n };\n};\n\nfor (var _i = 0; _i < _arr.length; _i++) {\n _loop();\n}\n\nstyles.visible = {\n get: function get() {\n return build.call(this, this._styles || [], true, 'visible');\n }\n};\nansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g');\n\nvar _arr2 = Object.keys(ansiStyles.color.ansi);\n\nvar _loop2 = function _loop2() {\n var model = _arr2[_i2];\n\n if (skipModels.has(model)) {\n return \"continue\";\n }\n\n styles[model] = {\n get: function get() {\n var level = this.level;\n return function () {\n var open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments);\n var codes = {\n open: open,\n close: ansiStyles.color.close,\n closeRe: ansiStyles.color.closeRe\n };\n return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);\n };\n }\n };\n};\n\nfor (var _i2 = 0; _i2 < _arr2.length; _i2++) {\n var _ret = _loop2();\n\n if (_ret === \"continue\") continue;\n}\n\nansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), 'g');\n\nvar _arr3 = Object.keys(ansiStyles.bgColor.ansi);\n\nvar _loop3 = function _loop3() {\n var model = _arr3[_i3];\n\n if (skipModels.has(model)) {\n return \"continue\";\n }\n\n var bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);\n styles[bgModel] = {\n get: function get() {\n var level = this.level;\n return function () {\n var open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments);\n var codes = {\n open: open,\n close: ansiStyles.bgColor.close,\n closeRe: ansiStyles.bgColor.closeRe\n };\n return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);\n };\n }\n };\n};\n\nfor (var _i3 = 0; _i3 < _arr3.length; _i3++) {\n var _ret2 = _loop3();\n\n if (_ret2 === \"continue\") continue;\n}\n\nvar proto = Object.defineProperties(function () {}, styles);\n\nfunction build(_styles, _empty, key) {\n var builder = function builder() {\n return applyStyle.apply(builder, arguments);\n };\n\n builder._styles = _styles;\n builder._empty = _empty;\n var self = this;\n Object.defineProperty(builder, 'level', {\n enumerable: true,\n get: function get() {\n return self.level;\n },\n set: function set(level) {\n self.level = level;\n }\n });\n Object.defineProperty(builder, 'enabled', {\n enumerable: true,\n get: function get() {\n return self.enabled;\n },\n set: function set(enabled) {\n self.enabled = enabled;\n }\n }); // See below for fix regarding invisible grey/dim combination on Windows\n\n builder.hasGrey = this.hasGrey || key === 'gray' || key === 'grey'; // `__proto__` is used because we must return a function, but there is\n // no way to create a function with a different prototype\n\n builder.__proto__ = proto; // eslint-disable-line no-proto\n\n return builder;\n}\n\nfunction applyStyle() {\n // Support varags, but simply cast to string in case there's only one arg\n var args = arguments;\n var argsLen = args.length;\n var str = String(arguments[0]);\n\n if (argsLen === 0) {\n return '';\n }\n\n if (argsLen > 1) {\n // Don't slice `arguments`, it prevents V8 optimizations\n for (var a = 1; a < argsLen; a++) {\n str += ' ' + args[a];\n }\n }\n\n if (!this.enabled || this.level <= 0 || !str) {\n return this._empty ? '' : str;\n } // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe,\n // see https://github.com/chalk/chalk/issues/58\n // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop.\n\n\n var originalDim = ansiStyles.dim.open;\n\n if (isSimpleWindowsTerm && this.hasGrey) {\n ansiStyles.dim.open = '';\n }\n\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = this._styles.slice().reverse()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var code = _step.value;\n // Replace any instances already present with a re-opening code\n // otherwise only the part of the string until said closing code\n // will be colored, and the rest will simply be 'plain'.\n str = code.open + str.replace(code.closeRe, code.open) + code.close; // Close the styling before a linebreak and reopen\n // after next line to fix a bleed issue on macOS\n // https://github.com/chalk/chalk/pull/92\n\n str = str.replace(/\\r?\\n/g, \"\".concat(code.close, \"$&\").concat(code.open));\n } // Reset the original `dim` if we changed it to work around the Windows dimmed gray issue\n\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n ansiStyles.dim.open = originalDim;\n return str;\n}\n\nfunction chalkTag(chalk, strings) {\n if (!Array.isArray(strings)) {\n // If chalk() was called by itself or with a string,\n // return the string itself as a string.\n return [].slice.call(arguments, 1).join(' ');\n }\n\n var args = [].slice.call(arguments, 2);\n var parts = [strings.raw[0]];\n\n for (var i = 1; i < strings.length; i++) {\n parts.push(String(args[i - 1]).replace(/[{}\\\\]/g, '\\\\$&'));\n parts.push(String(strings.raw[i]));\n }\n\n return template(chalk, parts.join(''));\n}\n\nObject.defineProperties(Chalk.prototype, styles);\nmodule.exports = Chalk(); // eslint-disable-line new-cap\n\nmodule.exports.supportsColor = stdoutColor;\nmodule.exports.default = module.exports; // For TypeScript","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/45d8ec98d55894ce88099d775f27e10c.json b/packages/web/node_modules/.cache/babel-loader/45d8ec98d55894ce88099d775f27e10c.json new file mode 100644 index 00000000..df278e4d --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/45d8ec98d55894ce88099d775f27e10c.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2016 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nexport * from \"./abstractComponent\";\nexport * from \"./abstractPureComponent\";\nexport * from \"./alignment\";\nexport * from \"./boundary\";\nexport * from \"./colors\";\nexport * from \"./elevation\";\nexport * from \"./intent\";\nexport * from \"./position\";\nexport * from \"./props\";\nimport * as Classes from \"./classes\";\nimport * as Keys from \"./keys\";\nimport * as Utils from \"./utils\";\nexport { Classes, Keys, Utils }; // NOTE: Errors is not exported in public API","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/45dc2b182af575a3658dfd193de8cd13.json b/packages/web/node_modules/.cache/babel-loader/45dc2b182af575a3658dfd193de8cd13.json new file mode 100644 index 00000000..4913584f --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/45dc2b182af575a3658dfd193de8cd13.json @@ -0,0 +1 @@ +{"ast":null,"code":"function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport warning from \"warning\";\nimport invariant from \"invariant\";\nimport matchPath from \"./matchPath\";\n/**\n * The public API for rendering the first that matches.\n */\n\nvar Switch = function (_React$Component) {\n _inherits(Switch, _React$Component);\n\n function Switch() {\n _classCallCheck(this, Switch);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Switch.prototype.componentWillMount = function componentWillMount() {\n invariant(this.context.router, \"You should not use outside a \");\n };\n\n Switch.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n warning(!(nextProps.location && !this.props.location), ' elements should not change from uncontrolled to controlled (or vice versa). You initially used no \"location\" prop and then provided one on a subsequent render.');\n warning(!(!nextProps.location && this.props.location), ' elements should not change from controlled to uncontrolled (or vice versa). You provided a \"location\" prop initially but omitted it on a subsequent render.');\n };\n\n Switch.prototype.render = function render() {\n var route = this.context.router.route;\n var children = this.props.children;\n var location = this.props.location || route.location;\n var match = void 0,\n child = void 0;\n React.Children.forEach(children, function (element) {\n if (match == null && React.isValidElement(element)) {\n var _element$props = element.props,\n pathProp = _element$props.path,\n exact = _element$props.exact,\n strict = _element$props.strict,\n sensitive = _element$props.sensitive,\n from = _element$props.from;\n var path = pathProp || from;\n child = element;\n match = matchPath(location.pathname, {\n path: path,\n exact: exact,\n strict: strict,\n sensitive: sensitive\n }, route.match);\n }\n });\n return match ? React.cloneElement(child, {\n location: location,\n computedMatch: match\n }) : null;\n };\n\n return Switch;\n}(React.Component);\n\nSwitch.contextTypes = {\n router: PropTypes.shape({\n route: PropTypes.object.isRequired\n }).isRequired\n};\nSwitch.propTypes = {\n children: PropTypes.node,\n location: PropTypes.object\n};\nexport default Switch;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/45f47d01dc48ff1a5620a49a855d8b47.json b/packages/web/node_modules/.cache/babel-loader/45f47d01dc48ff1a5620a49a855d8b47.json new file mode 100644 index 00000000..e2b22d1e --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/45f47d01dc48ff1a5620a49a855d8b47.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nimport warning from 'warning';\nimport { createPath } from './PathUtils';\nimport { createLocation } from './LocationUtils';\nimport createTransitionManager from './createTransitionManager';\n\nvar clamp = function clamp(n, lowerBound, upperBound) {\n return Math.min(Math.max(n, lowerBound), upperBound);\n};\n/**\n * Creates a history object that stores locations in memory.\n */\n\n\nvar createMemoryHistory = function createMemoryHistory() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var getUserConfirmation = props.getUserConfirmation,\n _props$initialEntries = props.initialEntries,\n initialEntries = _props$initialEntries === undefined ? ['/'] : _props$initialEntries,\n _props$initialIndex = props.initialIndex,\n initialIndex = _props$initialIndex === undefined ? 0 : _props$initialIndex,\n _props$keyLength = props.keyLength,\n keyLength = _props$keyLength === undefined ? 6 : _props$keyLength;\n var transitionManager = createTransitionManager();\n\n var setState = function setState(nextState) {\n _extends(history, nextState);\n\n history.length = history.entries.length;\n transitionManager.notifyListeners(history.location, history.action);\n };\n\n var createKey = function createKey() {\n return Math.random().toString(36).substr(2, keyLength);\n };\n\n var index = clamp(initialIndex, 0, initialEntries.length - 1);\n var entries = initialEntries.map(function (entry) {\n return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());\n }); // Public interface\n\n var createHref = createPath;\n\n var push = function push(path, state) {\n warning(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored');\n var action = 'PUSH';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var prevIndex = history.index;\n var nextIndex = prevIndex + 1;\n var nextEntries = history.entries.slice(0);\n\n if (nextEntries.length > nextIndex) {\n nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);\n } else {\n nextEntries.push(location);\n }\n\n setState({\n action: action,\n location: location,\n index: nextIndex,\n entries: nextEntries\n });\n });\n };\n\n var replace = function replace(path, state) {\n warning(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored');\n var action = 'REPLACE';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n history.entries[history.index] = location;\n setState({\n action: action,\n location: location\n });\n });\n };\n\n var go = function go(n) {\n var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);\n var action = 'POP';\n var location = history.entries[nextIndex];\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location,\n index: nextIndex\n });\n } else {\n // Mimic the behavior of DOM histories by\n // causing a render after a cancelled POP.\n setState();\n }\n });\n };\n\n var goBack = function goBack() {\n return go(-1);\n };\n\n var goForward = function goForward() {\n return go(1);\n };\n\n var canGo = function canGo(n) {\n var nextIndex = history.index + n;\n return nextIndex >= 0 && nextIndex < history.entries.length;\n };\n\n var block = function block() {\n var prompt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return transitionManager.setPrompt(prompt);\n };\n\n var listen = function listen(listener) {\n return transitionManager.appendListener(listener);\n };\n\n var history = {\n length: entries.length,\n action: 'POP',\n location: entries[index],\n index: index,\n entries: entries,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n canGo: canGo,\n block: block,\n listen: listen\n };\n return history;\n};\n\nexport default createMemoryHistory;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/45f7d10e675270dfc38bd9ddb740f99b.json b/packages/web/node_modules/.cache/babel-loader/45f7d10e675270dfc38bd9ddb740f99b.json new file mode 100644 index 00000000..e95be635 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/45f7d10e675270dfc38bd9ddb740f99b.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n/* global crypto:true */\n\nvar crypto = require('crypto'); // This string has length 32, a power of 2, so the modulus doesn't introduce a\n// bias.\n\n\nvar _randomStringChars = 'abcdefghijklmnopqrstuvwxyz012345';\nmodule.exports = {\n string: function string(length) {\n var max = _randomStringChars.length;\n var bytes = crypto.randomBytes(length);\n var ret = [];\n\n for (var i = 0; i < length; i++) {\n ret.push(_randomStringChars.substr(bytes[i] % max, 1));\n }\n\n return ret.join('');\n },\n number: function number(max) {\n return Math.floor(Math.random() * max);\n },\n numberString: function numberString(max) {\n var t = ('' + (max - 1)).length;\n var p = new Array(t + 1).join('0');\n return (p + this.number(max)).slice(-t);\n }\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/46d89106f708f9a315aaa8029cc91628.json b/packages/web/node_modules/.cache/babel-loader/46d89106f708f9a315aaa8029cc91628.json new file mode 100644 index 00000000..f2f0725e --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/46d89106f708f9a315aaa8029cc91628.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/Nabin/workspace/probro/packages/web/src/index.js\";\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport App from './App';\nimport '../../../node_modules/@blueprintjs/core/lib/css/blueprint.css';\nimport '../../../node_modules/@blueprintjs/icons/lib/css/blueprint-icons.css';\nimport './styles/main.css';\nReactDOM.render(React.createElement(App, {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 8\n },\n __self: this\n}), document.getElementById('root')); //eslint-disable-line","map":{"version":3,"sources":["/Users/Nabin/workspace/probro/packages/web/src/index.js"],"names":["React","ReactDOM","App","render","document","getElementById"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,OAAOC,GAAP,MAAgB,OAAhB;AACA,OAAO,+DAAP;AACA,OAAO,sEAAP;AACA,OAAO,mBAAP;AAEAD,QAAQ,CAACE,MAAT,CAAgB,oBAAC,GAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAhB,EAAyBC,QAAQ,CAACC,cAAT,CAAwB,MAAxB,CAAzB,E,CAA2D","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport App from './App';\nimport '../../../node_modules/@blueprintjs/core/lib/css/blueprint.css';\nimport '../../../node_modules/@blueprintjs/icons/lib/css/blueprint-icons.css';\nimport './styles/main.css';\n\nReactDOM.render(, document.getElementById('root')); //eslint-disable-line\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/4702d0d0b6e94a27b40cfeea2434cf93.json b/packages/web/node_modules/.cache/babel-loader/4702d0d0b6e94a27b40cfeea2434cf93.json new file mode 100644 index 00000000..6ddfc893 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/4702d0d0b6e94a27b40cfeea2434cf93.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2016 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport { AbstractPureComponent, Classes, DISPLAYNAME_PREFIX } from \"../../common\";\nimport { KeyCombo } from \"./keyCombo\";\n\nvar Hotkey =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(Hotkey, _super);\n\n function Hotkey() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Hotkey.prototype.render = function () {\n var _a = this.props,\n label = _a.label,\n className = _a.className,\n spreadableProps = tslib_1.__rest(_a, [\"label\", \"className\"]);\n\n var rootClasses = classNames(Classes.HOTKEY, className);\n return React.createElement(\"div\", {\n className: rootClasses\n }, React.createElement(\"div\", {\n className: Classes.HOTKEY_LABEL\n }, label), React.createElement(KeyCombo, tslib_1.__assign({}, spreadableProps)));\n };\n\n Hotkey.prototype.validateProps = function (props) {\n if (props.global !== true && props.group == null) {\n throw new Error(\"non-global s must define a group\");\n }\n };\n\n Hotkey.displayName = DISPLAYNAME_PREFIX + \".Hotkey\";\n Hotkey.defaultProps = {\n allowInInput: false,\n disabled: false,\n global: false,\n preventDefault: false,\n stopPropagation: false\n };\n return Hotkey;\n}(AbstractPureComponent);\n\nexport { Hotkey };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/4840b893c6cdbcd143ed378b6905aff8.json b/packages/web/node_modules/.cache/babel-loader/4840b893c6cdbcd143ed378b6905aff8.json new file mode 100644 index 00000000..3b715672 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/4840b893c6cdbcd143ed378b6905aff8.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2015 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport * as Classes from \"../../common/classes\";\nimport * as Errors from \"../../common/errors\";\nimport { DISPLAYNAME_PREFIX } from \"../../common/props\";\nimport { isFunction } from \"../../common/utils\";\n/** Detect if `React.createPortal()` API method does not exist. */\n\nvar cannotCreatePortal = !isFunction(ReactDOM.createPortal);\nvar REACT_CONTEXT_TYPES = {\n blueprintPortalClassName: function blueprintPortalClassName(obj, key) {\n if (obj[key] != null && typeof obj[key] !== \"string\") {\n return new Error(Errors.PORTAL_CONTEXT_CLASS_NAME_STRING);\n }\n\n return undefined;\n }\n};\n/**\n * This component detaches its contents and re-attaches them to document.body.\n * Use it when you need to circumvent DOM z-stacking (for dialogs, popovers, etc.).\n * Any class names passed to this element will be propagated to the new container element on document.body.\n */\n\nvar Portal =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(Portal, _super);\n\n function Portal() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.state = {\n hasMounted: false\n };\n return _this;\n }\n\n Portal.prototype.render = function () {\n // Only render `children` once this component has mounted in a browser environment, so they are\n // immediately attached to the DOM tree and can do DOM things like measuring or `autoFocus`.\n // See long comment on componentDidMount in https://reactjs.org/docs/portals.html#event-bubbling-through-portals\n if (cannotCreatePortal || typeof document === \"undefined\" || !this.state.hasMounted) {\n return null;\n } else {\n return ReactDOM.createPortal(this.props.children, this.portalElement);\n }\n };\n\n Portal.prototype.componentDidMount = function () {\n if (!this.props.container) {\n return;\n }\n\n this.portalElement = this.createContainerElement();\n this.props.container.appendChild(this.portalElement);\n this.setState({\n hasMounted: true\n }, this.props.onChildrenMount);\n\n if (cannotCreatePortal) {\n this.unstableRenderNoPortal();\n }\n };\n\n Portal.prototype.componentDidUpdate = function (prevProps) {\n // update className prop on portal DOM element\n if (this.portalElement != null && prevProps.className !== this.props.className) {\n this.portalElement.classList.remove(prevProps.className);\n maybeAddClass(this.portalElement.classList, this.props.className);\n }\n\n if (cannotCreatePortal) {\n this.unstableRenderNoPortal();\n }\n };\n\n Portal.prototype.componentWillUnmount = function () {\n if (this.portalElement != null) {\n if (cannotCreatePortal) {\n ReactDOM.unmountComponentAtNode(this.portalElement);\n }\n\n this.portalElement.remove();\n }\n };\n\n Portal.prototype.createContainerElement = function () {\n var container = document.createElement(\"div\");\n container.classList.add(Classes.PORTAL);\n maybeAddClass(container.classList, this.props.className);\n\n if (this.context != null) {\n maybeAddClass(container.classList, this.context.blueprintPortalClassName);\n }\n\n return container;\n };\n\n Portal.prototype.unstableRenderNoPortal = function () {\n ReactDOM.unstable_renderSubtreeIntoContainer(\n /* parentComponent */\n this, React.createElement(\"div\", null, this.props.children), this.portalElement);\n };\n\n Portal.displayName = DISPLAYNAME_PREFIX + \".Portal\";\n Portal.contextTypes = REACT_CONTEXT_TYPES;\n Portal.defaultProps = {\n container: typeof document !== \"undefined\" ? document.body : null\n };\n return Portal;\n}(React.Component);\n\nexport { Portal };\n\nfunction maybeAddClass(classList, className) {\n if (className != null && className !== \"\") {\n classList.add.apply(classList, className.split(\" \"));\n }\n}","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/48556e6c80f804af3bfb02f63ad1f2f1.json b/packages/web/node_modules/.cache/babel-loader/48556e6c80f804af3bfb02f63ad1f2f1.json new file mode 100644 index 00000000..93d2c6aa --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/48556e6c80f804af3bfb02f63ad1f2f1.json @@ -0,0 +1 @@ +{"ast":null,"code":"/**\n * When source maps are enabled, `style-loader` uses a link element with a data-uri to\n * embed the css on the page. This breaks all relative urls because now they are relative to a\n * bundle instead of the current page.\n *\n * One solution is to only use full urls, but that may be impossible.\n *\n * Instead, this function \"fixes\" the relative urls to be absolute according to the current page location.\n *\n * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.\n *\n */\nmodule.exports = function (css) {\n // get current location\n var location = typeof window !== \"undefined\" && window.location;\n\n if (!location) {\n throw new Error(\"fixUrls requires window.location\");\n } // blank or null?\n\n\n if (!css || typeof css !== \"string\") {\n return css;\n }\n\n var baseUrl = location.protocol + \"//\" + location.host;\n var currentDir = baseUrl + location.pathname.replace(/\\/[^\\/]*$/, \"/\"); // convert each url(...)\n\n /*\n This regular expression is just a way to recursively match brackets within\n a string.\n \t /url\\s*\\( = Match on the word \"url\" with any whitespace after it and then a parens\n ( = Start a capturing group\n (?: = Start a non-capturing group\n [^)(] = Match anything that isn't a parentheses\n | = OR\n \\( = Match a start parentheses\n (?: = Start another non-capturing groups\n [^)(]+ = Match anything that isn't a parentheses\n | = OR\n \\( = Match a start parentheses\n [^)(]* = Match anything that isn't a parentheses\n \\) = Match a end parentheses\n ) = End Group\n *\\) = Match anything and then a close parens\n ) = Close non-capturing group\n * = Match anything\n ) = Close capturing group\n \\) = Match a close parens\n \t /gi = Get all matches, not the first. Be case insensitive.\n */\n\n var fixedCss = css.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi, function (fullMatch, origUrl) {\n // strip quotes (if they exist)\n var unquotedOrigUrl = origUrl.trim().replace(/^\"(.*)\"$/, function (o, $1) {\n return $1;\n }).replace(/^'(.*)'$/, function (o, $1) {\n return $1;\n }); // already a full url? no change\n\n if (/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/|\\s*$)/i.test(unquotedOrigUrl)) {\n return fullMatch;\n } // convert the url to a full url\n\n\n var newUrl;\n\n if (unquotedOrigUrl.indexOf(\"//\") === 0) {\n //TODO: should we add protocol?\n newUrl = unquotedOrigUrl;\n } else if (unquotedOrigUrl.indexOf(\"/\") === 0) {\n // path should be relative to the base url\n newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'\n } else {\n // path should be relative to current directory\n newUrl = currentDir + unquotedOrigUrl.replace(/^\\.\\//, \"\"); // Strip leading './'\n } // send back the fixed url(...)\n\n\n return \"url(\" + JSON.stringify(newUrl) + \")\";\n }); // send back the fixed css\n\n return fixedCss;\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/48d9393dd1b70c92145d6ea167d4e7c5.json b/packages/web/node_modules/.cache/babel-loader/48d9393dd1b70c92145d6ea167d4e7c5.json new file mode 100644 index 00000000..85abc420 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/48d9393dd1b70c92145d6ea167d4e7c5.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar inherits = require('inherits'),\n urlUtils = require('../../utils/url'),\n SenderReceiver = require('./sender-receiver');\n\nvar debug = function debug() {};\n\nif (process.env.NODE_ENV !== 'production') {\n debug = require('debug')('sockjs-client:ajax-based');\n}\n\nfunction createAjaxSender(AjaxObject) {\n return function (url, payload, callback) {\n debug('create ajax sender', url, payload);\n var opt = {};\n\n if (typeof payload === 'string') {\n opt.headers = {\n 'Content-type': 'text/plain'\n };\n }\n\n var ajaxUrl = urlUtils.addPath(url, '/xhr_send');\n var xo = new AjaxObject('POST', ajaxUrl, payload, opt);\n xo.once('finish', function (status) {\n debug('finish', status);\n xo = null;\n\n if (status !== 200 && status !== 204) {\n return callback(new Error('http status ' + status));\n }\n\n callback();\n });\n return function () {\n debug('abort');\n xo.close();\n xo = null;\n var err = new Error('Aborted');\n err.code = 1000;\n callback(err);\n };\n };\n}\n\nfunction AjaxBasedTransport(transUrl, urlSuffix, Receiver, AjaxObject) {\n SenderReceiver.call(this, transUrl, urlSuffix, createAjaxSender(AjaxObject), Receiver, AjaxObject);\n}\n\ninherits(AjaxBasedTransport, SenderReceiver);\nmodule.exports = AjaxBasedTransport;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/48f19d25f9f032f0a629e1ba36f4b19c.json b/packages/web/node_modules/.cache/babel-loader/48f19d25f9f032f0a629e1ba36f4b19c.json new file mode 100644 index 00000000..1b8d8ba7 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/48f19d25f9f032f0a629e1ba36f4b19c.json @@ -0,0 +1 @@ +{"ast":null,"code":"// Written in this round about way for babel-transform-imports\nimport Router from \"react-router/es/Router\";\nexport default Router;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/490cee1d721ef6dcd7f5b122b924d025.json b/packages/web/node_modules/.cache/babel-loader/490cee1d721ef6dcd7f5b122b924d025.json new file mode 100644 index 00000000..09b8a470 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/490cee1d721ef6dcd7f5b122b924d025.json @@ -0,0 +1 @@ +{"ast":null,"code":"// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n'use strict';\n\nvar punycode = require('punycode');\n\nvar util = require('./util');\n\nexports.parse = urlParse;\nexports.resolve = urlResolve;\nexports.resolveObject = urlResolveObject;\nexports.format = urlFormat;\nexports.Url = Url;\n\nfunction Url() {\n this.protocol = null;\n this.slashes = null;\n this.auth = null;\n this.host = null;\n this.port = null;\n this.hostname = null;\n this.hash = null;\n this.search = null;\n this.query = null;\n this.pathname = null;\n this.path = null;\n this.href = null;\n} // Reference: RFC 3986, RFC 1808, RFC 2396\n// define these here so at least they only have to be\n// compiled once on the first module load.\n\n\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n // Special case for a simple path URL\nsimplePathPattern = /^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,\n // RFC 2396: characters reserved for delimiting URLs.\n// We actually just auto-escape these.\ndelims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n // RFC 2396: characters not allowed for various reasons.\nunwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\nautoEscape = ['\\''].concat(unwise),\n // Characters that are never ever allowed in a hostname.\n// Note that any invalid chars are also handled, but these\n// are the ones that are *expected* to be seen, so we fast-path\n// them.\nnonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\n hostEndingChars = ['/', '?', '#'],\n hostnameMaxLen = 255,\n hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,\n hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,\n // protocols that can allow \"unsafe\" and \"unwise\" chars.\nunsafeProtocol = {\n 'javascript': true,\n 'javascript:': true\n},\n // protocols that never have a hostname.\nhostlessProtocol = {\n 'javascript': true,\n 'javascript:': true\n},\n // protocols that always contain a // bit.\nslashedProtocol = {\n 'http': true,\n 'https': true,\n 'ftp': true,\n 'gopher': true,\n 'file': true,\n 'http:': true,\n 'https:': true,\n 'ftp:': true,\n 'gopher:': true,\n 'file:': true\n},\n querystring = require('querystring');\n\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\n if (url && util.isObject(url) && url instanceof Url) return url;\n var u = new Url();\n u.parse(url, parseQueryString, slashesDenoteHost);\n return u;\n}\n\nUrl.prototype.parse = function (url, parseQueryString, slashesDenoteHost) {\n if (!util.isString(url)) {\n throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\n } // Copy chrome, IE, opera backslash-handling behavior.\n // Back slashes before the query string get converted to forward slashes\n // See: https://code.google.com/p/chromium/issues/detail?id=25916\n\n\n var queryIndex = url.indexOf('?'),\n splitter = queryIndex !== -1 && queryIndex < url.indexOf('#') ? '?' : '#',\n uSplit = url.split(splitter),\n slashRegex = /\\\\/g;\n uSplit[0] = uSplit[0].replace(slashRegex, '/');\n url = uSplit.join(splitter);\n var rest = url; // trim before proceeding.\n // This is to support parse stuff like \" http://foo.com \\n\"\n\n rest = rest.trim();\n\n if (!slashesDenoteHost && url.split('#').length === 1) {\n // Try fast path regexp\n var simplePath = simplePathPattern.exec(rest);\n\n if (simplePath) {\n this.path = rest;\n this.href = rest;\n this.pathname = simplePath[1];\n\n if (simplePath[2]) {\n this.search = simplePath[2];\n\n if (parseQueryString) {\n this.query = querystring.parse(this.search.substr(1));\n } else {\n this.query = this.search.substr(1);\n }\n } else if (parseQueryString) {\n this.search = '';\n this.query = {};\n }\n\n return this;\n }\n }\n\n var proto = protocolPattern.exec(rest);\n\n if (proto) {\n proto = proto[0];\n var lowerProto = proto.toLowerCase();\n this.protocol = lowerProto;\n rest = rest.substr(proto.length);\n } // figure out if it's got a host\n // user@server is *always* interpreted as a hostname, and url\n // resolution will treat //foo/bar as host=foo,path=bar because that's\n // how the browser resolves relative URLs.\n\n\n if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n var slashes = rest.substr(0, 2) === '//';\n\n if (slashes && !(proto && hostlessProtocol[proto])) {\n rest = rest.substr(2);\n this.slashes = true;\n }\n }\n\n if (!hostlessProtocol[proto] && (slashes || proto && !slashedProtocol[proto])) {\n // there's a hostname.\n // the first instance of /, ?, ;, or # ends the host.\n //\n // If there is an @ in the hostname, then non-host chars *are* allowed\n // to the left of the last @ sign, unless some host-ending character\n // comes *before* the @-sign.\n // URLs are obnoxious.\n //\n // ex:\n // http://a@b@c/ => user:a@b host:c\n // http://a@b?@c => user:a host:c path:/?@c\n // v0.12 TODO(isaacs): This is not quite how Chrome does things.\n // Review our test case against browsers more comprehensively.\n // find the first instance of any hostEndingChars\n var hostEnd = -1;\n\n for (var i = 0; i < hostEndingChars.length; i++) {\n var hec = rest.indexOf(hostEndingChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) hostEnd = hec;\n } // at this point, either we have an explicit point where the\n // auth portion cannot go past, or the last @ char is the decider.\n\n\n var auth, atSign;\n\n if (hostEnd === -1) {\n // atSign can be anywhere.\n atSign = rest.lastIndexOf('@');\n } else {\n // atSign must be in auth portion.\n // http://a@b/c@d => host:b auth:a path:/c@d\n atSign = rest.lastIndexOf('@', hostEnd);\n } // Now we have a portion which is definitely the auth.\n // Pull that off.\n\n\n if (atSign !== -1) {\n auth = rest.slice(0, atSign);\n rest = rest.slice(atSign + 1);\n this.auth = decodeURIComponent(auth);\n } // the host is the remaining to the left of the first non-host char\n\n\n hostEnd = -1;\n\n for (var i = 0; i < nonHostChars.length; i++) {\n var hec = rest.indexOf(nonHostChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) hostEnd = hec;\n } // if we still have not hit it, then the entire thing is a host.\n\n\n if (hostEnd === -1) hostEnd = rest.length;\n this.host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd); // pull out port.\n\n this.parseHost(); // we've indicated that there is a hostname,\n // so even if it's empty, it has to be present.\n\n this.hostname = this.hostname || ''; // if hostname begins with [ and ends with ]\n // assume that it's an IPv6 address.\n\n var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']'; // validate a little.\n\n if (!ipv6Hostname) {\n var hostparts = this.hostname.split(/\\./);\n\n for (var i = 0, l = hostparts.length; i < l; i++) {\n var part = hostparts[i];\n if (!part) continue;\n\n if (!part.match(hostnamePartPattern)) {\n var newpart = '';\n\n for (var j = 0, k = part.length; j < k; j++) {\n if (part.charCodeAt(j) > 127) {\n // we replace non-ASCII char with a temporary placeholder\n // we need this to make sure size of hostname is not\n // broken by replacing non-ASCII by nothing\n newpart += 'x';\n } else {\n newpart += part[j];\n }\n } // we test again with ASCII char only\n\n\n if (!newpart.match(hostnamePartPattern)) {\n var validParts = hostparts.slice(0, i);\n var notHost = hostparts.slice(i + 1);\n var bit = part.match(hostnamePartStart);\n\n if (bit) {\n validParts.push(bit[1]);\n notHost.unshift(bit[2]);\n }\n\n if (notHost.length) {\n rest = '/' + notHost.join('.') + rest;\n }\n\n this.hostname = validParts.join('.');\n break;\n }\n }\n }\n }\n\n if (this.hostname.length > hostnameMaxLen) {\n this.hostname = '';\n } else {\n // hostnames are always lower case.\n this.hostname = this.hostname.toLowerCase();\n }\n\n if (!ipv6Hostname) {\n // IDNA Support: Returns a punycoded representation of \"domain\".\n // It only converts parts of the domain name that\n // have non-ASCII characters, i.e. it doesn't matter if\n // you call it with a domain that already is ASCII-only.\n this.hostname = punycode.toASCII(this.hostname);\n }\n\n var p = this.port ? ':' + this.port : '';\n var h = this.hostname || '';\n this.host = h + p;\n this.href += this.host; // strip [ and ] from the hostname\n // the host field still retains them, though\n\n if (ipv6Hostname) {\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n\n if (rest[0] !== '/') {\n rest = '/' + rest;\n }\n }\n } // now rest is set to the post-host stuff.\n // chop off any delim chars.\n\n\n if (!unsafeProtocol[lowerProto]) {\n // First, make 100% sure that any \"autoEscape\" chars get\n // escaped, even if encodeURIComponent doesn't think they\n // need to be.\n for (var i = 0, l = autoEscape.length; i < l; i++) {\n var ae = autoEscape[i];\n if (rest.indexOf(ae) === -1) continue;\n var esc = encodeURIComponent(ae);\n\n if (esc === ae) {\n esc = escape(ae);\n }\n\n rest = rest.split(ae).join(esc);\n }\n } // chop off from the tail first.\n\n\n var hash = rest.indexOf('#');\n\n if (hash !== -1) {\n // got a fragment string.\n this.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n\n var qm = rest.indexOf('?');\n\n if (qm !== -1) {\n this.search = rest.substr(qm);\n this.query = rest.substr(qm + 1);\n\n if (parseQueryString) {\n this.query = querystring.parse(this.query);\n }\n\n rest = rest.slice(0, qm);\n } else if (parseQueryString) {\n // no query string, but parseQueryString still requested\n this.search = '';\n this.query = {};\n }\n\n if (rest) this.pathname = rest;\n\n if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) {\n this.pathname = '/';\n } //to support http.request\n\n\n if (this.pathname || this.search) {\n var p = this.pathname || '';\n var s = this.search || '';\n this.path = p + s;\n } // finally, reconstruct the href based on what has been validated.\n\n\n this.href = this.format();\n return this;\n}; // format a parsed object into a url string\n\n\nfunction urlFormat(obj) {\n // ensure it's an object, and not a string url.\n // If it's an obj, this is a no-op.\n // this way, you can call url_format() on strings\n // to clean up potentially wonky urls.\n if (util.isString(obj)) obj = urlParse(obj);\n if (!(obj instanceof Url)) return Url.prototype.format.call(obj);\n return obj.format();\n}\n\nUrl.prototype.format = function () {\n var auth = this.auth || '';\n\n if (auth) {\n auth = encodeURIComponent(auth);\n auth = auth.replace(/%3A/i, ':');\n auth += '@';\n }\n\n var protocol = this.protocol || '',\n pathname = this.pathname || '',\n hash = this.hash || '',\n host = false,\n query = '';\n\n if (this.host) {\n host = auth + this.host;\n } else if (this.hostname) {\n host = auth + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']');\n\n if (this.port) {\n host += ':' + this.port;\n }\n }\n\n if (this.query && util.isObject(this.query) && Object.keys(this.query).length) {\n query = querystring.stringify(this.query);\n }\n\n var search = this.search || query && '?' + query || '';\n if (protocol && protocol.substr(-1) !== ':') protocol += ':'; // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\n // unless they had them to begin with.\n\n if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) {\n host = '//' + (host || '');\n if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;\n } else if (!host) {\n host = '';\n }\n\n if (hash && hash.charAt(0) !== '#') hash = '#' + hash;\n if (search && search.charAt(0) !== '?') search = '?' + search;\n pathname = pathname.replace(/[?#]/g, function (match) {\n return encodeURIComponent(match);\n });\n search = search.replace('#', '%23');\n return protocol + host + pathname + search + hash;\n};\n\nfunction urlResolve(source, relative) {\n return urlParse(source, false, true).resolve(relative);\n}\n\nUrl.prototype.resolve = function (relative) {\n return this.resolveObject(urlParse(relative, false, true)).format();\n};\n\nfunction urlResolveObject(source, relative) {\n if (!source) return relative;\n return urlParse(source, false, true).resolveObject(relative);\n}\n\nUrl.prototype.resolveObject = function (relative) {\n if (util.isString(relative)) {\n var rel = new Url();\n rel.parse(relative, false, true);\n relative = rel;\n }\n\n var result = new Url();\n var tkeys = Object.keys(this);\n\n for (var tk = 0; tk < tkeys.length; tk++) {\n var tkey = tkeys[tk];\n result[tkey] = this[tkey];\n } // hash is always overridden, no matter what.\n // even href=\"\" will remove it.\n\n\n result.hash = relative.hash; // if the relative url is empty, then there's nothing left to do here.\n\n if (relative.href === '') {\n result.href = result.format();\n return result;\n } // hrefs like //foo/bar always cut to the protocol.\n\n\n if (relative.slashes && !relative.protocol) {\n // take everything except the protocol from relative\n var rkeys = Object.keys(relative);\n\n for (var rk = 0; rk < rkeys.length; rk++) {\n var rkey = rkeys[rk];\n if (rkey !== 'protocol') result[rkey] = relative[rkey];\n } //urlParse appends trailing / to urls like http://www.example.com\n\n\n if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) {\n result.path = result.pathname = '/';\n }\n\n result.href = result.format();\n return result;\n }\n\n if (relative.protocol && relative.protocol !== result.protocol) {\n // if it's a known url protocol, then changing\n // the protocol does weird things\n // first, if it's not file:, then we MUST have a host,\n // and if there was a path\n // to begin with, then we MUST have a path.\n // if it is file:, then the host is dropped,\n // because that's known to be hostless.\n // anything else is assumed to be absolute.\n if (!slashedProtocol[relative.protocol]) {\n var keys = Object.keys(relative);\n\n for (var v = 0; v < keys.length; v++) {\n var k = keys[v];\n result[k] = relative[k];\n }\n\n result.href = result.format();\n return result;\n }\n\n result.protocol = relative.protocol;\n\n if (!relative.host && !hostlessProtocol[relative.protocol]) {\n var relPath = (relative.pathname || '').split('/');\n\n while (relPath.length && !(relative.host = relPath.shift())) {\n ;\n }\n\n if (!relative.host) relative.host = '';\n if (!relative.hostname) relative.hostname = '';\n if (relPath[0] !== '') relPath.unshift('');\n if (relPath.length < 2) relPath.unshift('');\n result.pathname = relPath.join('/');\n } else {\n result.pathname = relative.pathname;\n }\n\n result.search = relative.search;\n result.query = relative.query;\n result.host = relative.host || '';\n result.auth = relative.auth;\n result.hostname = relative.hostname || relative.host;\n result.port = relative.port; // to support http.request\n\n if (result.pathname || result.search) {\n var p = result.pathname || '';\n var s = result.search || '';\n result.path = p + s;\n }\n\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n }\n\n var isSourceAbs = result.pathname && result.pathname.charAt(0) === '/',\n isRelAbs = relative.host || relative.pathname && relative.pathname.charAt(0) === '/',\n mustEndAbs = isRelAbs || isSourceAbs || result.host && relative.pathname,\n removeAllDots = mustEndAbs,\n srcPath = result.pathname && result.pathname.split('/') || [],\n relPath = relative.pathname && relative.pathname.split('/') || [],\n psychotic = result.protocol && !slashedProtocol[result.protocol]; // if the url is a non-slashed url, then relative\n // links like ../.. should be able\n // to crawl up to the hostname, as well. This is strange.\n // result.protocol has already been set by now.\n // Later on, put the first path part into the host field.\n\n if (psychotic) {\n result.hostname = '';\n result.port = null;\n\n if (result.host) {\n if (srcPath[0] === '') srcPath[0] = result.host;else srcPath.unshift(result.host);\n }\n\n result.host = '';\n\n if (relative.protocol) {\n relative.hostname = null;\n relative.port = null;\n\n if (relative.host) {\n if (relPath[0] === '') relPath[0] = relative.host;else relPath.unshift(relative.host);\n }\n\n relative.host = null;\n }\n\n mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\n }\n\n if (isRelAbs) {\n // it's absolute.\n result.host = relative.host || relative.host === '' ? relative.host : result.host;\n result.hostname = relative.hostname || relative.hostname === '' ? relative.hostname : result.hostname;\n result.search = relative.search;\n result.query = relative.query;\n srcPath = relPath; // fall through to the dot-handling below.\n } else if (relPath.length) {\n // it's relative\n // throw away the existing file, and take the new path instead.\n if (!srcPath) srcPath = [];\n srcPath.pop();\n srcPath = srcPath.concat(relPath);\n result.search = relative.search;\n result.query = relative.query;\n } else if (!util.isNullOrUndefined(relative.search)) {\n // just pull out the search.\n // like href='?foo'.\n // Put this after the other two cases because it simplifies the booleans\n if (psychotic) {\n result.hostname = result.host = srcPath.shift(); //occationaly the auth can get stuck only in host\n //this especially happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n\n var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;\n\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n\n result.search = relative.search;\n result.query = relative.query; //to support http.request\n\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');\n }\n\n result.href = result.format();\n return result;\n }\n\n if (!srcPath.length) {\n // no path at all. easy.\n // we've already handled the other stuff above.\n result.pathname = null; //to support http.request\n\n if (result.search) {\n result.path = '/' + result.search;\n } else {\n result.path = null;\n }\n\n result.href = result.format();\n return result;\n } // if a url ENDs in . or .., then it must get a trailing slash.\n // however, if it ends in anything else non-slashy,\n // then it must NOT get a trailing slash.\n\n\n var last = srcPath.slice(-1)[0];\n var hasTrailingSlash = (result.host || relative.host || srcPath.length > 1) && (last === '.' || last === '..') || last === ''; // strip single dots, resolve double dots to parent dir\n // if the path tries to go above the root, `up` ends up > 0\n\n var up = 0;\n\n for (var i = srcPath.length; i >= 0; i--) {\n last = srcPath[i];\n\n if (last === '.') {\n srcPath.splice(i, 1);\n } else if (last === '..') {\n srcPath.splice(i, 1);\n up++;\n } else if (up) {\n srcPath.splice(i, 1);\n up--;\n }\n } // if the path is allowed to go above the root, restore leading ..s\n\n\n if (!mustEndAbs && !removeAllDots) {\n for (; up--; up) {\n srcPath.unshift('..');\n }\n }\n\n if (mustEndAbs && srcPath[0] !== '' && (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\n srcPath.unshift('');\n }\n\n if (hasTrailingSlash && srcPath.join('/').substr(-1) !== '/') {\n srcPath.push('');\n }\n\n var isAbsolute = srcPath[0] === '' || srcPath[0] && srcPath[0].charAt(0) === '/'; // put the host back\n\n if (psychotic) {\n result.hostname = result.host = isAbsolute ? '' : srcPath.length ? srcPath.shift() : ''; //occationaly the auth can get stuck only in host\n //this especially happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n\n var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;\n\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n\n mustEndAbs = mustEndAbs || result.host && srcPath.length;\n\n if (mustEndAbs && !isAbsolute) {\n srcPath.unshift('');\n }\n\n if (!srcPath.length) {\n result.pathname = null;\n result.path = null;\n } else {\n result.pathname = srcPath.join('/');\n } //to support request.http\n\n\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');\n }\n\n result.auth = relative.auth || result.auth;\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n};\n\nUrl.prototype.parseHost = function () {\n var host = this.host;\n var port = portPattern.exec(host);\n\n if (port) {\n port = port[0];\n\n if (port !== ':') {\n this.port = port.substr(1);\n }\n\n host = host.substr(0, host.length - port.length);\n }\n\n if (host) this.hostname = host;\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/49e231101e49b625a8e15f1b64c25c32.json b/packages/web/node_modules/.cache/babel-loader/49e231101e49b625a8e15f1b64c25c32.json new file mode 100644 index 00000000..3a19205e --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/49e231101e49b625a8e15f1b64c25c32.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2017 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport { Manager, Popper, Reference } from \"react-popper\";\nimport { AbstractPureComponent } from \"../../common/abstractPureComponent\";\nimport * as Classes from \"../../common/classes\";\nimport * as Errors from \"../../common/errors\";\nimport { DISPLAYNAME_PREFIX } from \"../../common/props\";\nimport * as Utils from \"../../common/utils\";\nimport { Overlay } from \"../overlay/overlay\";\nimport { ResizeSensor } from \"../resize-sensor/resizeSensor\";\nimport { Tooltip } from \"../tooltip/tooltip\";\nimport { PopoverArrow } from \"./popoverArrow\";\nimport { positionToPlacement } from \"./popoverMigrationUtils\";\nimport { arrowOffsetModifier, getTransformOrigin } from \"./popperUtils\";\nexport var PopoverInteractionKind = {\n CLICK: \"click\",\n CLICK_TARGET_ONLY: \"click-target\",\n HOVER: \"hover\",\n HOVER_TARGET_ONLY: \"hover-target\"\n};\n\nvar Popover =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(Popover, _super);\n\n function Popover() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.state = {\n hasDarkParent: false,\n isOpen: _this.getIsOpen(_this.props),\n transformOrigin: \"\"\n }; // a flag that lets us detect mouse movement between the target and popover,\n // now that mouseleave is triggered when you cross the gap between the two.\n\n _this.isMouseInTargetOrPopover = false; // a flag that indicates whether the target previously lost focus to another\n // element on the same page.\n\n _this.lostFocusOnSamePage = true;\n _this.refHandlers = {\n popover: function popover(ref) {\n _this.popoverElement = ref;\n Utils.safeInvoke(_this.props.popoverRef, ref);\n },\n target: function target(ref) {\n return _this.targetElement = ref;\n }\n };\n /**\n * Instance method to instruct the `Popover` to recompute its position.\n *\n * This method should only be used if you are updating the target in a way\n * that does not cause it to re-render, such as changing its _position_\n * without changing its _size_ (since `Popover` already repositions when it\n * detects a resize).\n */\n\n _this.reposition = function () {\n return Utils.safeInvoke(_this.popperScheduleUpdate);\n };\n\n _this.renderPopover = function (popperProps) {\n var _a = _this.props,\n usePortal = _a.usePortal,\n interactionKind = _a.interactionKind;\n var transformOrigin = _this.state.transformOrigin; // Need to update our reference to this on every render as it will change.\n\n _this.popperScheduleUpdate = popperProps.scheduleUpdate;\n var popoverHandlers = {\n // always check popover clicks for dismiss class\n onClick: _this.handlePopoverClick\n };\n\n if (interactionKind === PopoverInteractionKind.HOVER || !usePortal && interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY) {\n popoverHandlers.onMouseEnter = _this.handleMouseEnter;\n popoverHandlers.onMouseLeave = _this.handleMouseLeave;\n }\n\n var popoverClasses = classNames(Classes.POPOVER, (_b = {}, _b[Classes.DARK] = _this.props.inheritDarkTheme && _this.state.hasDarkParent, _b[Classes.MINIMAL] = _this.props.minimal, _b), _this.props.popoverClassName);\n return React.createElement(\"div\", {\n className: Classes.TRANSITION_CONTAINER,\n ref: popperProps.ref,\n style: popperProps.style\n }, React.createElement(ResizeSensor, {\n onResize: _this.reposition\n }, React.createElement(\"div\", tslib_1.__assign({\n className: popoverClasses,\n style: {\n transformOrigin: transformOrigin\n }\n }, popoverHandlers), _this.isArrowEnabled() && React.createElement(PopoverArrow, {\n arrowProps: popperProps.arrowProps,\n placement: popperProps.placement\n }), React.createElement(\"div\", {\n className: Classes.POPOVER_CONTENT\n }, _this.understandChildren().content))));\n\n var _b;\n };\n\n _this.renderTarget = function (referenceProps) {\n var _a = _this.props,\n openOnTargetFocus = _a.openOnTargetFocus,\n targetClassName = _a.targetClassName,\n _b = _a.targetProps,\n targetProps = _b === void 0 ? {} : _b,\n TagName = _a.targetTagName;\n var isOpen = _this.state.isOpen;\n\n var isHoverInteractionKind = _this.isHoverInteractionKind();\n\n var finalTargetProps = isHoverInteractionKind ? {\n // HOVER handlers\n onBlur: _this.handleTargetBlur,\n onFocus: _this.handleTargetFocus,\n onMouseEnter: _this.handleMouseEnter,\n onMouseLeave: _this.handleMouseLeave\n } : {\n // CLICK needs only one handler\n onClick: _this.handleTargetClick\n };\n finalTargetProps.className = classNames(Classes.POPOVER_TARGET, (_c = {}, _c[Classes.POPOVER_OPEN] = isOpen, _c), targetProps.className, targetClassName);\n finalTargetProps.ref = referenceProps.ref;\n var rawTarget = Utils.ensureElement(_this.understandChildren().target);\n var rawTabIndex = rawTarget.props.tabIndex; // ensure target is focusable if relevant prop enabled\n\n var tabIndex = rawTabIndex == null && openOnTargetFocus && isHoverInteractionKind ? 0 : rawTabIndex;\n var clonedTarget = React.cloneElement(rawTarget, {\n className: classNames(rawTarget.props.className, (_d = {}, _d[Classes.ACTIVE] = isOpen && !isHoverInteractionKind, _d)),\n // force disable single Tooltip child when popover is open (BLUEPRINT-552)\n disabled: isOpen && Utils.isElementOfType(rawTarget, Tooltip) ? true : rawTarget.props.disabled,\n tabIndex: tabIndex\n });\n return React.createElement(ResizeSensor, {\n onResize: _this.reposition\n }, React.createElement(TagName, tslib_1.__assign({}, targetProps, finalTargetProps), clonedTarget));\n\n var _c, _d;\n };\n\n _this.handleTargetFocus = function (e) {\n if (_this.props.openOnTargetFocus && _this.isHoverInteractionKind()) {\n if (e.relatedTarget == null && !_this.lostFocusOnSamePage) {\n // ignore this focus event -- the target was already focused but the page itself\n // lost focus (e.g. due to switching tabs).\n return;\n }\n\n _this.handleMouseEnter(e);\n }\n\n Utils.safeInvokeMember(_this.props.targetProps, \"onFocus\", e);\n };\n\n _this.handleTargetBlur = function (e) {\n if (_this.props.openOnTargetFocus && _this.isHoverInteractionKind()) {\n // if the next element to receive focus is within the popover, we'll want to leave the\n // popover open.\n if (!_this.isElementInPopover(e.relatedTarget)) {\n _this.handleMouseLeave(e);\n }\n }\n\n _this.lostFocusOnSamePage = e.relatedTarget != null;\n Utils.safeInvokeMember(_this.props.targetProps, \"onBlur\", e);\n };\n\n _this.handleMouseEnter = function (e) {\n _this.isMouseInTargetOrPopover = true; // if we're entering the popover, and the mode is set to be HOVER_TARGET_ONLY, we want to manually\n // trigger the mouse leave event, as hovering over the popover shouldn't count.\n\n if (!_this.props.usePortal && _this.isElementInPopover(e.target) && _this.props.interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY && !_this.props.openOnTargetFocus) {\n _this.handleMouseLeave(e);\n } else if (!_this.props.disabled) {\n // only begin opening popover when it is enabled\n _this.setOpenState(true, e, _this.props.hoverOpenDelay);\n }\n\n Utils.safeInvokeMember(_this.props.targetProps, \"onMouseEnter\", e);\n };\n\n _this.handleMouseLeave = function (e) {\n _this.isMouseInTargetOrPopover = false; // wait until the event queue is flushed, because we want to leave the\n // popover open if the mouse entered the popover immediately after\n // leaving the target (or vice versa).\n\n _this.setTimeout(function () {\n if (_this.isMouseInTargetOrPopover) {\n return;\n } // user-configurable closing delay is helpful when moving mouse from target to popover\n\n\n _this.setOpenState(false, e, _this.props.hoverCloseDelay);\n });\n\n Utils.safeInvokeMember(_this.props.targetProps, \"onMouseLeave\", e);\n };\n\n _this.handlePopoverClick = function (e) {\n var eventTarget = e.target; // an OVERRIDE inside a DISMISS does not dismiss, and a DISMISS inside an OVERRIDE will dismiss.\n\n var dismissElement = eventTarget.closest(\".\" + Classes.POPOVER_DISMISS + \", .\" + Classes.POPOVER_DISMISS_OVERRIDE);\n var shouldDismiss = dismissElement != null && dismissElement.classList.contains(Classes.POPOVER_DISMISS);\n var isDisabled = eventTarget.closest(\":disabled, .\" + Classes.DISABLED) != null;\n\n if (shouldDismiss && !isDisabled && !e.isDefaultPrevented()) {\n _this.setOpenState(false, e);\n\n if (_this.props.captureDismiss) {\n e.preventDefault();\n }\n }\n };\n\n _this.handleOverlayClose = function (e) {\n var eventTarget = e.target; // if click was in target, target event listener will handle things, so don't close\n\n if (!Utils.elementIsOrContains(_this.targetElement, eventTarget) || e.nativeEvent instanceof KeyboardEvent) {\n _this.setOpenState(false, e);\n }\n };\n\n _this.handleTargetClick = function (e) {\n // ensure click did not originate from within inline popover before closing\n if (!_this.props.disabled && !_this.isElementInPopover(e.target)) {\n if (_this.props.isOpen == null) {\n _this.setState(function (prevState) {\n return {\n isOpen: !prevState.isOpen\n };\n });\n } else {\n _this.setOpenState(!_this.props.isOpen, e);\n }\n }\n\n Utils.safeInvokeMember(_this.props.targetProps, \"onClick\", e);\n };\n /** Popper modifier that updates React state (for style properties) based on latest data. */\n\n\n _this.updatePopoverState = function (data) {\n // always set string; let shouldComponentUpdate determine if update is necessary\n _this.setState({\n transformOrigin: getTransformOrigin(data)\n });\n\n return data;\n };\n\n return _this;\n }\n\n Popover.prototype.render = function () {\n // rename wrapper tag to begin with uppercase letter so it's recognized\n // as JSX component instead of intrinsic element. but because of its\n // type, tsc actually recognizes that it is _any_ intrinsic element, so\n // it can typecheck the HTML props!!\n var _a = this.props,\n className = _a.className,\n disabled = _a.disabled,\n WrapperTagName = _a.wrapperTagName;\n var isOpen = this.state.isOpen;\n var isContentEmpty = Utils.ensureElement(this.understandChildren().content) == null; // need to do this check in render(), because `isOpen` is derived from\n // state, and state can't necessarily be accessed in validateProps.\n\n if (isContentEmpty && !disabled && isOpen !== false && !Utils.isNodeEnv(\"production\")) {\n console.warn(Errors.POPOVER_WARN_EMPTY_CONTENT);\n }\n\n return React.createElement(Manager, null, React.createElement(WrapperTagName, {\n className: classNames(Classes.POPOVER_WRAPPER, className)\n }, React.createElement(Reference, {\n innerRef: this.refHandlers.target\n }, this.renderTarget), React.createElement(Overlay, {\n autoFocus: this.props.autoFocus,\n backdropClassName: Classes.POPOVER_BACKDROP,\n backdropProps: this.props.backdropProps,\n canEscapeKeyClose: this.props.canEscapeKeyClose,\n canOutsideClickClose: this.props.interactionKind === PopoverInteractionKind.CLICK,\n className: this.props.portalClassName,\n enforceFocus: this.props.enforceFocus,\n hasBackdrop: this.props.hasBackdrop,\n isOpen: isOpen && !isContentEmpty,\n onClose: this.handleOverlayClose,\n onClosed: this.props.onClosed,\n onClosing: this.props.onClosing,\n onOpened: this.props.onOpened,\n onOpening: this.props.onOpening,\n transitionDuration: this.props.transitionDuration,\n transitionName: Classes.POPOVER,\n usePortal: this.props.usePortal,\n portalContainer: this.props.portalContainer\n }, React.createElement(Popper, {\n innerRef: this.refHandlers.popover,\n placement: positionToPlacement(this.props.position),\n modifiers: this.getPopperModifiers()\n }, this.renderPopover))));\n };\n\n Popover.prototype.componentDidMount = function () {\n this.updateDarkParent();\n };\n\n Popover.prototype.componentWillReceiveProps = function (nextProps) {\n _super.prototype.componentWillReceiveProps.call(this, nextProps);\n\n var nextIsOpen = this.getIsOpen(nextProps);\n\n if (nextProps.isOpen != null && nextIsOpen !== this.state.isOpen) {\n this.setOpenState(nextIsOpen); // tricky: setOpenState calls setState only if this.props.isOpen is\n // not controlled, so we need to invoke setState manually here.\n\n this.setState({\n isOpen: nextIsOpen\n });\n } else if (this.state.isOpen && nextProps.isOpen == null && nextProps.disabled) {\n // special case: close an uncontrolled popover when disabled is set to true\n this.setOpenState(false);\n }\n };\n\n Popover.prototype.componentDidUpdate = function () {\n this.updateDarkParent();\n };\n\n Popover.prototype.validateProps = function (props) {\n if (props.isOpen == null && props.onInteraction != null) {\n console.warn(Errors.POPOVER_WARN_UNCONTROLLED_ONINTERACTION);\n }\n\n if (props.hasBackdrop && !props.usePortal) {\n console.warn(Errors.POPOVER_WARN_HAS_BACKDROP_INLINE);\n }\n\n if (props.hasBackdrop && props.interactionKind !== PopoverInteractionKind.CLICK) {\n throw new Error(Errors.POPOVER_HAS_BACKDROP_INTERACTION);\n }\n\n var childrenCount = React.Children.count(props.children);\n var hasContentProp = props.content !== undefined;\n var hasTargetProp = props.target !== undefined;\n\n if (childrenCount === 0 && !hasTargetProp) {\n throw new Error(Errors.POPOVER_REQUIRES_TARGET);\n }\n\n if (childrenCount > 2) {\n console.warn(Errors.POPOVER_WARN_TOO_MANY_CHILDREN);\n }\n\n if (childrenCount > 0 && hasTargetProp) {\n console.warn(Errors.POPOVER_WARN_DOUBLE_TARGET);\n }\n\n if (childrenCount === 2 && hasContentProp) {\n console.warn(Errors.POPOVER_WARN_DOUBLE_CONTENT);\n }\n };\n\n Popover.prototype.updateDarkParent = function () {\n if (this.props.usePortal && this.state.isOpen) {\n var hasDarkParent = this.targetElement != null && this.targetElement.closest(\".\" + Classes.DARK) != null;\n this.setState({\n hasDarkParent: hasDarkParent\n });\n }\n }; // content and target can be specified as props or as children. this method\n // normalizes the two approaches, preferring child over prop.\n\n\n Popover.prototype.understandChildren = function () {\n var _a = this.props,\n children = _a.children,\n contentProp = _a.content,\n targetProp = _a.target; // #validateProps asserts that 1 <= children.length <= 2 so content is optional\n\n var _b = React.Children.toArray(children),\n targetChild = _b[0],\n contentChild = _b[1];\n\n return {\n content: contentChild == null ? contentProp : contentChild,\n target: targetChild == null ? targetProp : targetChild\n };\n };\n\n Popover.prototype.getIsOpen = function (props) {\n // disabled popovers should never be allowed to open.\n if (props.disabled) {\n return false;\n } else if (props.isOpen != null) {\n return props.isOpen;\n } else {\n return props.defaultIsOpen;\n }\n };\n\n Popover.prototype.getPopperModifiers = function () {\n var _a = this.props,\n boundary = _a.boundary,\n modifiers = _a.modifiers;\n var _b = modifiers.flip,\n flip = _b === void 0 ? {} : _b,\n _c = modifiers.preventOverflow,\n preventOverflow = _c === void 0 ? {} : _c;\n return tslib_1.__assign({}, modifiers, {\n arrowOffset: {\n enabled: this.isArrowEnabled(),\n fn: arrowOffsetModifier,\n order: 510\n },\n flip: tslib_1.__assign({\n boundariesElement: boundary\n }, flip),\n preventOverflow: tslib_1.__assign({\n boundariesElement: boundary\n }, preventOverflow),\n updatePopoverState: {\n enabled: true,\n fn: this.updatePopoverState,\n order: 900\n }\n });\n }; // a wrapper around setState({isOpen}) that will call props.onInteraction instead when in controlled mode.\n // starts a timeout to delay changing the state if a non-zero duration is provided.\n\n\n Popover.prototype.setOpenState = function (isOpen, e, timeout) {\n var _this = this; // cancel any existing timeout because we have new state\n\n\n Utils.safeInvoke(this.cancelOpenTimeout);\n\n if (timeout > 0) {\n this.cancelOpenTimeout = this.setTimeout(function () {\n return _this.setOpenState(isOpen, e);\n }, timeout);\n } else {\n if (this.props.isOpen == null) {\n this.setState({\n isOpen: isOpen\n });\n } else {\n Utils.safeInvoke(this.props.onInteraction, isOpen, e);\n }\n\n if (!isOpen) {\n Utils.safeInvoke(this.props.onClose, e);\n }\n }\n };\n\n Popover.prototype.isArrowEnabled = function () {\n var _a = this.props,\n minimal = _a.minimal,\n arrow = _a.modifiers.arrow; // omitting `arrow` from `modifiers` uses Popper default, which does show an arrow.\n\n return !minimal && (arrow == null || arrow.enabled);\n };\n\n Popover.prototype.isElementInPopover = function (element) {\n return this.popoverElement != null && this.popoverElement.contains(element);\n };\n\n Popover.prototype.isHoverInteractionKind = function () {\n return this.props.interactionKind === PopoverInteractionKind.HOVER || this.props.interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY;\n };\n\n Popover.displayName = DISPLAYNAME_PREFIX + \".Popover\";\n Popover.defaultProps = {\n boundary: \"scrollParent\",\n captureDismiss: false,\n defaultIsOpen: false,\n disabled: false,\n hasBackdrop: false,\n hoverCloseDelay: 300,\n hoverOpenDelay: 150,\n inheritDarkTheme: true,\n interactionKind: PopoverInteractionKind.CLICK,\n minimal: false,\n modifiers: {},\n openOnTargetFocus: true,\n position: \"auto\",\n targetTagName: \"span\",\n transitionDuration: 300,\n usePortal: true,\n wrapperTagName: \"span\"\n };\n return Popover;\n}(AbstractPureComponent);\n\nexport { Popover };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/4a2b5d10e8ba68a41daaa9b4e6175522.json b/packages/web/node_modules/.cache/babel-loader/4a2b5d10e8ba68a41daaa9b4e6175522.json new file mode 100644 index 00000000..419d72b8 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/4a2b5d10e8ba68a41daaa9b4e6175522.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2015 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\n// tslint:disable:object-literal-sort-keys\n\n/**\n * The four basic intents.\n */\nexport var Intent = {\n NONE: \"none\",\n PRIMARY: \"primary\",\n SUCCESS: \"success\",\n WARNING: \"warning\",\n DANGER: \"danger\"\n};","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/4b22b62c3363ca8f472bab4c79db9690.json b/packages/web/node_modules/.cache/babel-loader/4b22b62c3363ca8f472bab4c79db9690.json new file mode 100644 index 00000000..82127bbb --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/4b22b62c3363ca8f472bab4c79db9690.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar utils = require('./../utils');\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 */\n\n\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n return data;\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/4d7c0a582e425e85da8b04c32aa50e97.json b/packages/web/node_modules/.cache/babel-loader/4d7c0a582e425e85da8b04c32aa50e97.json new file mode 100644 index 00000000..eafb5ec2 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/4d7c0a582e425e85da8b04c32aa50e97.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar inherits = require('inherits'),\n EventEmitter = require('events').EventEmitter;\n\nvar debug = function debug() {};\n\nif (process.env.NODE_ENV !== 'production') {\n debug = require('debug')('sockjs-client:buffered-sender');\n}\n\nfunction BufferedSender(url, sender) {\n debug(url);\n EventEmitter.call(this);\n this.sendBuffer = [];\n this.sender = sender;\n this.url = url;\n}\n\ninherits(BufferedSender, EventEmitter);\n\nBufferedSender.prototype.send = function (message) {\n debug('send', message);\n this.sendBuffer.push(message);\n\n if (!this.sendStop) {\n this.sendSchedule();\n }\n}; // For polling transports in a situation when in the message callback,\n// new message is being send. If the sending connection was started\n// before receiving one, it is possible to saturate the network and\n// timeout due to the lack of receiving socket. To avoid that we delay\n// sending messages by some small time, in order to let receiving\n// connection be started beforehand. This is only a halfmeasure and\n// does not fix the big problem, but it does make the tests go more\n// stable on slow networks.\n\n\nBufferedSender.prototype.sendScheduleWait = function () {\n debug('sendScheduleWait');\n var self = this;\n var tref;\n\n this.sendStop = function () {\n debug('sendStop');\n self.sendStop = null;\n clearTimeout(tref);\n };\n\n tref = setTimeout(function () {\n debug('timeout');\n self.sendStop = null;\n self.sendSchedule();\n }, 25);\n};\n\nBufferedSender.prototype.sendSchedule = function () {\n debug('sendSchedule', this.sendBuffer.length);\n var self = this;\n\n if (this.sendBuffer.length > 0) {\n var payload = '[' + this.sendBuffer.join(',') + ']';\n this.sendStop = this.sender(this.url, payload, function (err) {\n self.sendStop = null;\n\n if (err) {\n debug('error', err);\n self.emit('close', err.code || 1006, 'Sending error: ' + err);\n self.close();\n } else {\n self.sendScheduleWait();\n }\n });\n this.sendBuffer = [];\n }\n};\n\nBufferedSender.prototype._cleanup = function () {\n debug('_cleanup');\n this.removeAllListeners();\n};\n\nBufferedSender.prototype.close = function () {\n debug('close');\n\n this._cleanup();\n\n if (this.sendStop) {\n this.sendStop();\n this.sendStop = null;\n }\n};\n\nmodule.exports = BufferedSender;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/4da5ebf46e87bb05fdb7582f359bb86e.json b/packages/web/node_modules/.cache/babel-loader/4da5ebf46e87bb05fdb7582f359bb86e.json new file mode 100644 index 00000000..d8373ad0 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/4da5ebf46e87bb05fdb7582f359bb86e.json @@ -0,0 +1 @@ +{"ast":null,"code":"function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"invariant\";\n/**\n * The public API for prompting the user before navigating away\n * from a screen with a component.\n */\n\nvar Prompt = function (_React$Component) {\n _inherits(Prompt, _React$Component);\n\n function Prompt() {\n _classCallCheck(this, Prompt);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Prompt.prototype.enable = function enable(message) {\n if (this.unblock) this.unblock();\n this.unblock = this.context.router.history.block(message);\n };\n\n Prompt.prototype.disable = function disable() {\n if (this.unblock) {\n this.unblock();\n this.unblock = null;\n }\n };\n\n Prompt.prototype.componentWillMount = function componentWillMount() {\n invariant(this.context.router, \"You should not use outside a \");\n if (this.props.when) this.enable(this.props.message);\n };\n\n Prompt.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (nextProps.when) {\n if (!this.props.when || this.props.message !== nextProps.message) this.enable(nextProps.message);\n } else {\n this.disable();\n }\n };\n\n Prompt.prototype.componentWillUnmount = function componentWillUnmount() {\n this.disable();\n };\n\n Prompt.prototype.render = function render() {\n return null;\n };\n\n return Prompt;\n}(React.Component);\n\nPrompt.propTypes = {\n when: PropTypes.bool,\n message: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired\n};\nPrompt.defaultProps = {\n when: true\n};\nPrompt.contextTypes = {\n router: PropTypes.shape({\n history: PropTypes.shape({\n block: PropTypes.func.isRequired\n }).isRequired\n }).isRequired\n};\nexport default Prompt;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/4e444507967f5924aadfb5cf1a6c0794.json b/packages/web/node_modules/.cache/babel-loader/4e444507967f5924aadfb5cf1a6c0794.json new file mode 100644 index 00000000..cb413669 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/4e444507967f5924aadfb5cf1a6c0794.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nmodule.exports = global.location || {\n origin: 'http://localhost:80',\n protocol: 'http:',\n host: 'localhost',\n port: 80,\n href: 'http://localhost/',\n hash: ''\n};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/4e4b62adba542f0a7259acba22a2ed6d.json b/packages/web/node_modules/.cache/babel-loader/4e4b62adba542f0a7259acba22a2ed6d.json new file mode 100644 index 00000000..ec426f11 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/4e4b62adba542f0a7259acba22a2ed6d.json @@ -0,0 +1 @@ +{"ast":null,"code":"export var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nexport var addEventListener = function addEventListener(node, event, listener) {\n return node.addEventListener ? node.addEventListener(event, listener, false) : node.attachEvent('on' + event, listener);\n};\nexport var removeEventListener = function removeEventListener(node, event, listener) {\n return node.removeEventListener ? node.removeEventListener(event, listener, false) : node.detachEvent('on' + event, listener);\n};\nexport var getConfirmation = function getConfirmation(message, callback) {\n return callback(window.confirm(message));\n}; // eslint-disable-line no-alert\n\n/**\n * Returns true if the HTML5 history API is supported. Taken from Modernizr.\n *\n * https://github.com/Modernizr/Modernizr/blob/master/LICENSE\n * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js\n * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586\n */\n\nexport var supportsHistory = function supportsHistory() {\n var ua = window.navigator.userAgent;\n if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;\n return window.history && 'pushState' in window.history;\n};\n/**\n * Returns true if browser fires popstate on hash change.\n * IE10 and IE11 do not.\n */\n\nexport var supportsPopStateOnHashChange = function supportsPopStateOnHashChange() {\n return window.navigator.userAgent.indexOf('Trident') === -1;\n};\n/**\n * Returns false if using go(n) with hash history causes a full page reload.\n */\n\nexport var supportsGoWithoutReloadUsingHash = function supportsGoWithoutReloadUsingHash() {\n return window.navigator.userAgent.indexOf('Firefox') === -1;\n};\n/**\n * Returns true if a given popstate event is an extraneous WebKit event.\n * Accounts for the fact that Chrome on iOS fires real popstate events\n * containing undefined state when pressing the back button.\n */\n\nexport var isExtraneousPopstateEvent = function isExtraneousPopstateEvent(event) {\n return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;\n};","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/4e9174defcba8e706427264a17ca1c05.json b/packages/web/node_modules/.cache/babel-loader/4e9174defcba8e706427264a17ca1c05.json new file mode 100644 index 00000000..7a374cb0 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/4e9174defcba8e706427264a17ca1c05.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2017 Palantir Technologies, Inc. All rights reserved.\n */\nexport var ADD = \"\\uE63E\";\nexport var ADD_COLUMN_LEFT = \"\\uE6F9\";\nexport var ADD_COLUMN_RIGHT = \"\\uE6FA\";\nexport var ADD_ROW_BOTTOM = \"\\uE6F8\";\nexport var ADD_ROW_TOP = \"\\uE6F7\";\nexport var ADD_TO_ARTIFACT = \"\\uE67C\";\nexport var ADD_TO_FOLDER = \"\\uE6D2\";\nexport var AIRPLANE = \"\\uE74B\";\nexport var ALIGN_CENTER = \"\\uE603\";\nexport var ALIGN_JUSTIFY = \"\\uE605\";\nexport var ALIGN_LEFT = \"\\uE602\";\nexport var ALIGN_RIGHT = \"\\uE604\";\nexport var ALIGNMENT_BOTTOM = \"\\uE727\";\nexport var ALIGNMENT_HORIZONTAL_CENTER = \"\\uE726\";\nexport var ALIGNMENT_LEFT = \"\\uE722\";\nexport var ALIGNMENT_RIGHT = \"\\uE724\";\nexport var ALIGNMENT_TOP = \"\\uE725\";\nexport var ALIGNMENT_VERTICAL_CENTER = \"\\uE723\";\nexport var ANNOTATION = \"\\uE6F0\";\nexport var APPLICATION = \"\\uE735\";\nexport var APPLICATIONS = \"\\uE621\";\nexport var ARROW_BOTTOM_LEFT = \"\\u2199\";\nexport var ARROW_BOTTOM_RIGHT = \"\\u2198\";\nexport var ARROW_DOWN = \"\\u2193 \";\nexport var ARROW_LEFT = \"\\u2190\";\nexport var ARROW_RIGHT = \"\\u2192\";\nexport var ARROW_TOP_LEFT = \"\\u2196\";\nexport var ARROW_TOP_RIGHT = \"\\u2197\";\nexport var ARROW_UP = \"\\u2191 \";\nexport var ARROWS_HORIZONTAL = \"\\u2194 \";\nexport var ARROWS_VERTICAL = \"\\u2195 \";\nexport var ASTERISK = \"*\";\nexport var AUTOMATIC_UPDATES = \"\\uE65F\";\nexport var BADGE = \"\\uE6E3\";\nexport var BAN_CIRCLE = \"\\uE69D\";\nexport var BANK_ACCOUNT = \"\\uE76F\";\nexport var BARCODE = \"\\uE676\";\nexport var BLANK = \"\\uE900\";\nexport var BLOCKED_PERSON = \"\\uE768\";\nexport var BOLD = \"\\uE606\";\nexport var BOOK = \"\\uE6B8\";\nexport var BOOKMARK = \"\\uE61A\";\nexport var BOX = \"\\uE6BF\";\nexport var BRIEFCASE = \"\\uE674\";\nexport var BUILD = \"\\uE72D\";\nexport var CALCULATOR = \"\\uE70B\";\nexport var CALENDAR = \"\\uE62B\";\nexport var CAMERA = \"\\uE69E\";\nexport var CARET_DOWN = \"\\u2304\";\nexport var CARET_LEFT = \"\\u2329\";\nexport var CARET_RIGHT = \"\\u232A\";\nexport var CARET_UP = \"\\u2303\";\nexport var CELL_TOWER = \"\\uE770\";\nexport var CHANGES = \"\\uE623\";\nexport var CHART = \"\\uE67E\";\nexport var CHAT = \"\\uE689\";\nexport var CHEVRON_BACKWARD = \"\\uE6DF\";\nexport var CHEVRON_DOWN = \"\\uE697\";\nexport var CHEVRON_FORWARD = \"\\uE6E0\";\nexport var CHEVRON_LEFT = \"\\uE694\";\nexport var CHEVRON_RIGHT = \"\\uE695\";\nexport var CHEVRON_UP = \"\\uE696\";\nexport var CIRCLE = \"\\uE66A\";\nexport var CIRCLE_ARROW_DOWN = \"\\uE68E\";\nexport var CIRCLE_ARROW_LEFT = \"\\uE68C\";\nexport var CIRCLE_ARROW_RIGHT = \"\\uE68B\";\nexport var CIRCLE_ARROW_UP = \"\\uE68D\";\nexport var CITATION = \"\\uE61B\";\nexport var CLEAN = \"\\uE7C5\";\nexport var CLIPBOARD = \"\\uE61D\";\nexport var CLOUD = \"\\u2601\";\nexport var CLOUD_DOWNLOAD = \"\\uE690\";\nexport var CLOUD_UPLOAD = \"\\uE691\";\nexport var CODE = \"\\uE661\";\nexport var CODE_BLOCK = \"\\uE6C5\";\nexport var COG = \"\\uE645\";\nexport var COLLAPSE_ALL = \"\\uE763\";\nexport var COLUMN_LAYOUT = \"\\uE6DA\";\nexport var COMMENT = \"\\uE68A\";\nexport var COMPARISON = \"\\uE637\";\nexport var COMPASS = \"\\uE79C\";\nexport var COMPRESSED = \"\\uE6C0\";\nexport var CONFIRM = \"\\uE639\";\nexport var CONSOLE = \"\\uE79B\";\nexport var CONTRAST = \"\\uE6CB\";\nexport var CONTROL = \"\\uE67F\";\nexport var CREDIT_CARD = \"\\uE649\";\nexport var CROSS = \"\\u2717\";\nexport var CROWN = \"\\uE7B4\";\nexport var CUBE = \"\\uE7C8\";\nexport var CUBE_ADD = \"\\uE7C9\";\nexport var CUBE_REMOVE = \"\\uE7D0\";\nexport var CURVED_RANGE_CHART = \"\\uE71B\";\nexport var CUT = \"\\uE6EF\";\nexport var DASHBOARD = \"\\uE751\";\nexport var DATABASE = \"\\uE683\";\nexport var DELETE = \"\\uE644\";\nexport var DELTA = \"\\u0394\";\nexport var DERIVE_COLUMN = \"\\uE739\";\nexport var DESKTOP = \"\\uE6AF\";\nexport var DIAGRAM_TREE = \"\\uE7B3\";\nexport var DIRECTION_LEFT = \"\\uE681\";\nexport var DIRECTION_RIGHT = \"\\uE682\";\nexport var DISABLE = \"\\uE600\";\nexport var DOCUMENT = \"\\uE630\";\nexport var DOCUMENT_OPEN = \"\\uE71E\";\nexport var DOCUMENT_SHARE = \"\\uE71F\";\nexport var DOLLAR = \"$\";\nexport var DOT = \"\\u2022\";\nexport var DOUBLE_CARET_HORIZONTAL = \"\\uE6C7\";\nexport var DOUBLE_CARET_VERTICAL = \"\\uE6C6\";\nexport var DOUBLE_CHEVRON_DOWN = \"\\uE703\";\nexport var DOUBLE_CHEVRON_LEFT = \"\\uE6FF\";\nexport var DOUBLE_CHEVRON_RIGHT = \"\\uE701\";\nexport var DOUBLE_CHEVRON_UP = \"\\uE702\";\nexport var DOUGHNUT_CHART = \"\\uE6CE\";\nexport var DOWNLOAD = \"\\uE62F\";\nexport var DRAG_HANDLE_HORIZONTAL = \"\\uE716\";\nexport var DRAG_HANDLE_VERTICAL = \"\\uE715\";\nexport var DRAW = \"\\uE66B\";\nexport var DRIVE_TIME = \"\\uE615\";\nexport var DUPLICATE = \"\\uE69C\";\nexport var EDIT = \"\\u270E\";\nexport var EJECT = \"\\u23CF\";\nexport var ENDORSED = \"\\uE75F\";\nexport var ENVELOPE = \"\\u2709\";\nexport var ERASER = \"\\uE773\";\nexport var ERROR = \"\\uE648\";\nexport var EURO = \"\\u20AC\";\nexport var EXCHANGE = \"\\uE636\";\nexport var EXCLUDE_ROW = \"\\uE6EA\";\nexport var EXPAND_ALL = \"\\uE764\";\nexport var EXPORT = \"\\uE633\";\nexport var EYE_OFF = \"\\uE6CC\";\nexport var EYE_ON = \"\\uE75A\";\nexport var EYE_OPEN = \"\\uE66F\";\nexport var FAST_BACKWARD = \"\\uE6A8\";\nexport var FAST_FORWARD = \"\\uE6AC\";\nexport var FEED = \"\\uE656\";\nexport var FEED_SUBSCRIBED = \"\\uE78F\";\nexport var FILM = \"\\uE6A1\";\nexport var FILTER = \"\\uE638\";\nexport var FILTER_KEEP = \"\\uE78C\";\nexport var FILTER_LIST = \"\\uE6EE\";\nexport var FILTER_REMOVE = \"\\uE78D\";\nexport var FLAG = \"\\u2691\";\nexport var FLAME = \"\\uE7A9\";\nexport var FLASH = \"\\uE6B3\";\nexport var FLOPPY_DISK = \"\\uE6B7\";\nexport var FLOW_BRANCH = \"\\uE7C1\";\nexport var FLOW_END = \"\\uE7C4\";\nexport var FLOW_LINEAR = \"\\uE7C0\";\nexport var FLOW_REVIEW = \"\\uE7C2\";\nexport var FLOW_REVIEW_BRANCH = \"\\uE7C3\";\nexport var FLOWS = \"\\uE659\";\nexport var FOLDER_CLOSE = \"\\uE652\";\nexport var FOLDER_NEW = \"\\uE7B0\";\nexport var FOLDER_OPEN = \"\\uE651\";\nexport var FOLDER_SHARED = \"\\uE653\";\nexport var FOLDER_SHARED_OPEN = \"\\uE670\";\nexport var FOLLOWER = \"\\uE760\";\nexport var FOLLOWING = \"\\uE761\";\nexport var FONT = \"\\uE6B4\";\nexport var FORK = \"\\uE63A\";\nexport var FORM = \"\\uE795\";\nexport var FULL_CIRCLE = \"\\uE685\";\nexport var FULL_STACKED_CHART = \"\\uE75E\";\nexport var FULLSCREEN = \"\\uE699\";\nexport var FUNCTION = \"\\uE6E5\";\nexport var GANTT_CHART = \"\\uE6F4\";\nexport var GEOLOCATION = \"\\uE640\";\nexport var GEOSEARCH = \"\\uE613\";\nexport var GIT_BRANCH = \"\\uE72A\";\nexport var GIT_COMMIT = \"\\uE72B\";\nexport var GIT_MERGE = \"\\uE729\";\nexport var GIT_NEW_BRANCH = \"\\uE749\";\nexport var GIT_PULL = \"\\uE728\";\nexport var GIT_PUSH = \"\\uE72C\";\nexport var GIT_REPO = \"\\uE748\";\nexport var GLASS = \"\\uE6B1\";\nexport var GLOBE = \"\\uE666\";\nexport var GLOBE_NETWORK = \"\\uE7B5\";\nexport var GRAPH = \"\\uE673\";\nexport var GRAPH_REMOVE = \"\\uE609\";\nexport var GRID = \"\\uE6D0\";\nexport var GRID_VIEW = \"\\uE6E4\";\nexport var GROUP_OBJECTS = \"\\uE60A\";\nexport var GROUPED_BAR_CHART = \"\\uE75D\";\nexport var HAND = \"\\uE6DE\";\nexport var HAND_DOWN = \"\\uE6BB\";\nexport var HAND_LEFT = \"\\uE6BC\";\nexport var HAND_RIGHT = \"\\uE6B9\";\nexport var HAND_UP = \"\\uE6BA\";\nexport var HEADER = \"\\uE6B5\";\nexport var HEADER_ONE = \"\\uE793\";\nexport var HEADER_TWO = \"\\uE794\";\nexport var HEADSET = \"\\uE6DC\";\nexport var HEART = \"\\u2665\";\nexport var HEART_BROKEN = \"\\uE7A2\";\nexport var HEAT_GRID = \"\\uE6F3\";\nexport var HEATMAP = \"\\uE614\";\nexport var HELP = \"?\";\nexport var HELPER_MANAGEMENT = \"\\uE66D\";\nexport var HIGHLIGHT = \"\\uE6ED\";\nexport var HISTORY = \"\\uE64A\";\nexport var HOME = \"\\u2302\";\nexport var HORIZONTAL_BAR_CHART = \"\\uE70C\";\nexport var HORIZONTAL_BAR_CHART_ASC = \"\\uE75C\";\nexport var HORIZONTAL_BAR_CHART_DESC = \"\\uE71D\";\nexport var HORIZONTAL_DISTRIBUTION = \"\\uE720\";\nexport var ID_NUMBER = \"\\uE771\";\nexport var IMAGE_ROTATE_LEFT = \"\\uE73A\";\nexport var IMAGE_ROTATE_RIGHT = \"\\uE73B\";\nexport var IMPORT = \"\\uE632\";\nexport var INBOX = \"\\uE629\";\nexport var INFO_SIGN = \"\\u2139\";\nexport var INNER_JOIN = \"\\uE7A3\";\nexport var INSERT = \"\\uE66C\";\nexport var INTERSECTION = \"\\uE765\";\nexport var IP_ADDRESS = \"\\uE772\";\nexport var ISSUE = \"\\uE774\";\nexport var ISSUE_CLOSED = \"\\uE776\";\nexport var ISSUE_NEW = \"\\uE775\";\nexport var ITALIC = \"\\uE607\";\nexport var JOIN_TABLE = \"\\uE738\";\nexport var KEY = \"\\uE78E\";\nexport var KEY_BACKSPACE = \"\\uE707\";\nexport var KEY_COMMAND = \"\\uE705\";\nexport var KEY_CONTROL = \"\\uE704\";\nexport var KEY_DELETE = \"\\uE708\";\nexport var KEY_ENTER = \"\\uE70A\";\nexport var KEY_ESCAPE = \"\\uE709\";\nexport var KEY_OPTION = \"\\uE742\";\nexport var KEY_SHIFT = \"\\uE706\";\nexport var KEY_TAB = \"\\uE757\";\nexport var KNOWN_VEHICLE = \"\\uE73C\";\nexport var LABEL = \"\\uE665\";\nexport var LAYER = \"\\uE6CF\";\nexport var LAYERS = \"\\uE618\";\nexport var LAYOUT = \"\\uE60C\";\nexport var LAYOUT_AUTO = \"\\uE60D\";\nexport var LAYOUT_BALLOON = \"\\uE6D3\";\nexport var LAYOUT_CIRCLE = \"\\uE60E\";\nexport var LAYOUT_GRID = \"\\uE610\";\nexport var LAYOUT_GROUP_BY = \"\\uE611\";\nexport var LAYOUT_HIERARCHY = \"\\uE60F\";\nexport var LAYOUT_LINEAR = \"\\uE6C3\";\nexport var LAYOUT_SKEW_GRID = \"\\uE612\";\nexport var LAYOUT_SORTED_CLUSTERS = \"\\uE6D4\";\nexport var LEFT_JOIN = \"\\uE7A4\";\nexport var LIFESAVER = \"\\uE7C7\";\nexport var LIGHTBULB = \"\\uE6B0\";\nexport var LINK = \"\\uE62D\";\nexport var LIST = \"\\u2630\";\nexport var LIST_COLUMNS = \"\\uE7B9\";\nexport var LIST_DETAIL_VIEW = \"\\uE743\";\nexport var LOCATE = \"\\uE619\";\nexport var LOCK = \"\\uE625\";\nexport var LOG_IN = \"\\uE69A\";\nexport var LOG_OUT = \"\\uE64C\";\nexport var MANUAL = \"\\uE6F6\";\nexport var MANUALLY_ENTERED_DATA = \"\\uE74A\";\nexport var MAP = \"\\uE662\";\nexport var MAP_CREATE = \"\\uE741\";\nexport var MAP_MARKER = \"\\uE67D\";\nexport var MAXIMIZE = \"\\uE635\";\nexport var MEDIA = \"\\uE62C\";\nexport var MENU = \"\\uE762\";\nexport var MENU_CLOSED = \"\\uE655\";\nexport var MENU_OPEN = \"\\uE654\";\nexport var MERGE_COLUMNS = \"\\uE74F\";\nexport var MERGE_LINKS = \"\\uE60B\";\nexport var MINIMIZE = \"\\uE634\";\nexport var MINUS = \"\\u2212\";\nexport var MOBILE_PHONE = \"\\uE717\";\nexport var MOBILE_VIDEO = \"\\uE69F\";\nexport var MOON = \"\\uE754\";\nexport var MORE = \"\\uE62A\";\nexport var MOUNTAIN = \"\\uE7B1\";\nexport var MOVE = \"\\uE693\";\nexport var MUGSHOT = \"\\uE6DB\";\nexport var MULTI_SELECT = \"\\uE680\";\nexport var MUSIC = \"\\uE6A6\";\nexport var NEW_GRID_ITEM = \"\\uE747\";\nexport var NEW_LINK = \"\\uE65C\";\nexport var NEW_OBJECT = \"\\uE65D\";\nexport var NEW_PERSON = \"\\uE6E9\";\nexport var NEW_PRESCRIPTION = \"\\uE78B\";\nexport var NEW_TEXT_BOX = \"\\uE65B\";\nexport var NINJA = \"\\uE675\";\nexport var NOTIFICATIONS = \"\\uE624\";\nexport var NOTIFICATIONS_UPDATED = \"\\uE7B8\";\nexport var NUMBERED_LIST = \"\\uE746\";\nexport var NUMERICAL = \"\\uE756\";\nexport var OFFICE = \"\\uE69B\";\nexport var OFFLINE = \"\\uE67A\";\nexport var OIL_FIELD = \"\\uE73F\";\nexport var ONE_COLUMN = \"\\uE658\";\nexport var OUTDATED = \"\\uE7A8\";\nexport var PAGE_LAYOUT = \"\\uE660\";\nexport var PANEL_STATS = \"\\uE777\";\nexport var PANEL_TABLE = \"\\uE778\";\nexport var PAPERCLIP = \"\\uE664\";\nexport var PARAGRAPH = \"\\uE76C\";\nexport var PATH = \"\\uE753\";\nexport var PATH_SEARCH = \"\\uE65E\";\nexport var PAUSE = \"\\uE6A9\";\nexport var PEOPLE = \"\\uE63D\";\nexport var PERCENTAGE = \"\\uE76A\";\nexport var PERSON = \"\\uE63C\";\nexport var PHONE = \"\\u260E\";\nexport var PIE_CHART = \"\\uE684\";\nexport var PIN = \"\\uE646\";\nexport var PIVOT = \"\\uE6F1\";\nexport var PIVOT_TABLE = \"\\uE6EB\";\nexport var PLAY = \"\\uE6AB\";\nexport var PLUS = \"+\";\nexport var POLYGON_FILTER = \"\\uE6D1\";\nexport var POWER = \"\\uE6D9\";\nexport var PREDICTIVE_ANALYSIS = \"\\uE617\";\nexport var PRESCRIPTION = \"\\uE78A\";\nexport var PRESENTATION = \"\\uE687\";\nexport var PRINT = \"\\u2399\";\nexport var PROJECTS = \"\\uE622\";\nexport var PROPERTIES = \"\\uE631\";\nexport var PROPERTY = \"\\uE65A\";\nexport var PUBLISH_FUNCTION = \"\\uE752\";\nexport var PULSE = \"\\uE6E8\";\nexport var RANDOM = \"\\uE698\";\nexport var RECORD = \"\\uE6AE\";\nexport var REDO = \"\\uE6C4\";\nexport var REFRESH = \"\\uE643\";\nexport var REGRESSION_CHART = \"\\uE758\";\nexport var REMOVE = \"\\uE63F\";\nexport var REMOVE_COLUMN = \"\\uE755\";\nexport var REMOVE_COLUMN_LEFT = \"\\uE6FD\";\nexport var REMOVE_COLUMN_RIGHT = \"\\uE6FE\";\nexport var REMOVE_ROW_BOTTOM = \"\\uE6FC\";\nexport var REMOVE_ROW_TOP = \"\\uE6FB\";\nexport var REPEAT = \"\\uE692\";\nexport var RESOLVE = \"\\uE672\";\nexport var RIG = \"\\uE740\";\nexport var RIGHT_JOIN = \"\\uE7A5\";\nexport var RING = \"\\uE6F2\";\nexport var ROTATE_DOCUMENT = \"\\uE6E1\";\nexport var ROTATE_PAGE = \"\\uE6E2\";\nexport var SATELLITE = \"\\uE76B\";\nexport var SAVED = \"\\uE6B6\";\nexport var SCATTER_PLOT = \"\\uE73E\";\nexport var SEARCH = \"\\uE64B\";\nexport var SEARCH_AROUND = \"\\uE608\";\nexport var SEARCH_TEMPLATE = \"\\uE628\";\nexport var SEARCH_TEXT = \"\\uE663\";\nexport var SEGMENTED_CONTROL = \"\\uE6EC\";\nexport var SELECT = \"\\uE616\";\nexport var SELECTION = \"\\u29BF\";\nexport var SEND_TO = \"\\uE66E\";\nexport var SEND_TO_GRAPH = \"\\uE736\";\nexport var SEND_TO_MAP = \"\\uE737\";\nexport var SERIES_ADD = \"\\uE796\";\nexport var SERIES_CONFIGURATION = \"\\uE79A\";\nexport var SERIES_DERIVED = \"\\uE799\";\nexport var SERIES_FILTERED = \"\\uE798\";\nexport var SERIES_SEARCH = \"\\uE797\";\nexport var SETTINGS = \"\\uE6A2\";\nexport var SHARE = \"\\uE62E\";\nexport var SHIELD = \"\\uE7B2\";\nexport var SHOP = \"\\uE6C2\";\nexport var SHOPPING_CART = \"\\uE6C1\";\nexport var SIM_CARD = \"\\uE718\";\nexport var SLASH = \"\\uE769\";\nexport var SMALL_CROSS = \"\\uE6D7\";\nexport var SMALL_MINUS = \"\\uE70E\";\nexport var SMALL_PLUS = \"\\uE70D\";\nexport var SMALL_TICK = \"\\uE6D8\";\nexport var SNOWFLAKE = \"\\uE7B6\";\nexport var SOCIAL_MEDIA = \"\\uE671\";\nexport var SORT = \"\\uE64F\";\nexport var SORT_ALPHABETICAL = \"\\uE64D\";\nexport var SORT_ALPHABETICAL_DESC = \"\\uE6C8\";\nexport var SORT_ASC = \"\\uE6D5\";\nexport var SORT_DESC = \"\\uE6D6\";\nexport var SORT_NUMERICAL = \"\\uE64E\";\nexport var SORT_NUMERICAL_DESC = \"\\uE6C9\";\nexport var SPLIT_COLUMNS = \"\\uE750\";\nexport var SQUARE = \"\\uE686\";\nexport var STACKED_CHART = \"\\uE6E7\";\nexport var STAR = \"\\u2605\";\nexport var STAR_EMPTY = \"\\u2606\";\nexport var STEP_BACKWARD = \"\\uE6A7\";\nexport var STEP_CHART = \"\\uE70F\";\nexport var STEP_FORWARD = \"\\uE6AD\";\nexport var STOP = \"\\uE6AA\";\nexport var STRIKETHROUGH = \"\\uE7A6\";\nexport var STYLE = \"\\uE601\";\nexport var SWAP_HORIZONTAL = \"\\uE745\";\nexport var SWAP_VERTICAL = \"\\uE744\";\nexport var SYMBOL_CIRCLE = \"\\uE72E\";\nexport var SYMBOL_CROSS = \"\\uE731\";\nexport var SYMBOL_DIAMOND = \"\\uE730\";\nexport var SYMBOL_SQUARE = \"\\uE72F\";\nexport var SYMBOL_TRIANGLE_DOWN = \"\\uE733\";\nexport var SYMBOL_TRIANGLE_UP = \"\\uE732\";\nexport var TAG = \"\\uE61C\";\nexport var TAKE_ACTION = \"\\uE6CA\";\nexport var TAXI = \"\\uE79E\";\nexport var TEXT_HIGHLIGHT = \"\\uE6DD\";\nexport var TH = \"\\uE667\";\nexport var TH_DERIVED = \"\\uE669\";\nexport var TH_FILTERED = \"\\uE7C6\";\nexport var TH_LIST = \"\\uE668\";\nexport var THUMBS_DOWN = \"\\uE6BE\";\nexport var THUMBS_UP = \"\\uE6BD\";\nexport var TICK = \"\\u2713\";\nexport var TICK_CIRCLE = \"\\uE779\";\nexport var TIME = \"\\u23F2\";\nexport var TIMELINE_AREA_CHART = \"\\uE6CD\";\nexport var TIMELINE_BAR_CHART = \"\\uE620\";\nexport var TIMELINE_EVENTS = \"\\uE61E\";\nexport var TIMELINE_LINE_CHART = \"\\uE61F\";\nexport var TINT = \"\\uE6B2\";\nexport var TORCH = \"\\uE677\";\nexport var TRAIN = \"\\uE79F\";\nexport var TRANSLATE = \"\\uE759\";\nexport var TRASH = \"\\uE63B\";\nexport var TREE = \"\\uE7B7\";\nexport var TRENDING_DOWN = \"\\uE71A\";\nexport var TRENDING_UP = \"\\uE719\";\nexport var TWO_COLUMNS = \"\\uE657\";\nexport var UNDERLINE = \"\\u2381\";\nexport var UNDO = \"\\u238C\";\nexport var UNGROUP_OBJECTS = \"\\uE688\";\nexport var UNKNOWN_VEHICLE = \"\\uE73D\";\nexport var UNLOCK = \"\\uE626\";\nexport var UNPIN = \"\\uE650\";\nexport var UNRESOLVE = \"\\uE679\";\nexport var UPDATED = \"\\uE7A7\";\nexport var UPLOAD = \"\\uE68F\";\nexport var USER = \"\\uE627\";\nexport var VARIABLE = \"\\uE6F5\";\nexport var VERTICAL_BAR_CHART_ASC = \"\\uE75B\";\nexport var VERTICAL_BAR_CHART_DESC = \"\\uE71C\";\nexport var VERTICAL_DISTRIBUTION = \"\\uE721\";\nexport var VIDEO = \"\\uE6A0\";\nexport var VOLUME_DOWN = \"\\uE6A4\";\nexport var VOLUME_OFF = \"\\uE6A3\";\nexport var VOLUME_UP = \"\\uE6A5\";\nexport var WALK = \"\\uE79D\";\nexport var WARNING_SIGN = \"\\uE647\";\nexport var WATERFALL_CHART = \"\\uE6E6\";\nexport var WIDGET = \"\\uE678\";\nexport var WIDGET_BUTTON = \"\\uE790\";\nexport var WIDGET_FOOTER = \"\\uE792\";\nexport var WIDGET_HEADER = \"\\uE791\";\nexport var WRENCH = \"\\uE734\";\nexport var ZOOM_IN = \"\\uE641\";\nexport var ZOOM_OUT = \"\\uE642\";\nexport var ZOOM_TO_FIT = \"\\uE67B\";","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/4fce7834bb268da1b3c82ab6d57d7bbc.json b/packages/web/node_modules/.cache/babel-loader/4fce7834bb268da1b3c82ab6d57d7bbc.json new file mode 100644 index 00000000..b386b7ab --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/4fce7834bb268da1b3c82ab6d57d7bbc.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar inherits = require('inherits'),\n HtmlfileReceiver = require('./receiver/htmlfile'),\n XHRLocalObject = require('./sender/xhr-local'),\n AjaxBasedTransport = require('./lib/ajax-based');\n\nfunction HtmlFileTransport(transUrl) {\n if (!HtmlfileReceiver.enabled) {\n throw new Error('Transport created when disabled');\n }\n\n AjaxBasedTransport.call(this, transUrl, '/htmlfile', HtmlfileReceiver, XHRLocalObject);\n}\n\ninherits(HtmlFileTransport, AjaxBasedTransport);\n\nHtmlFileTransport.enabled = function (info) {\n return HtmlfileReceiver.enabled && info.sameOrigin;\n};\n\nHtmlFileTransport.transportName = 'htmlfile';\nHtmlFileTransport.roundTrips = 2;\nmodule.exports = HtmlFileTransport;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/5223341d278ed910595ceaf0ff4eda4b.json b/packages/web/node_modules/.cache/babel-loader/5223341d278ed910595ceaf0ff4eda4b.json new file mode 100644 index 00000000..9446ef5a --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/5223341d278ed910595ceaf0ff4eda4b.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2016 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nimport * as tslib_1 from \"tslib\";\nimport classNames from \"classnames\";\nimport * as React from \"react\";\nimport * as Classes from \"../../common/classes\";\nimport { DISPLAYNAME_PREFIX } from \"../../common/props\";\nimport { ensureElement } from \"../../common/utils\";\nimport { H4 } from \"../html/html\";\nimport { Icon } from \"../icon/icon\";\n\nvar NonIdealState =\n/** @class */\nfunction (_super) {\n tslib_1.__extends(NonIdealState, _super);\n\n function NonIdealState() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n NonIdealState.prototype.render = function () {\n var _a = this.props,\n action = _a.action,\n children = _a.children,\n className = _a.className,\n description = _a.description,\n title = _a.title;\n return React.createElement(\"div\", {\n className: classNames(Classes.NON_IDEAL_STATE, className)\n }, this.maybeRenderVisual(), title && React.createElement(H4, null, title), description && ensureElement(description, \"div\"), action, children);\n };\n\n NonIdealState.prototype.maybeRenderVisual = function () {\n var icon = this.props.icon;\n\n if (icon == null) {\n return null;\n } else {\n return React.createElement(\"div\", {\n className: Classes.NON_IDEAL_STATE_VISUAL\n }, React.createElement(Icon, {\n icon: icon,\n iconSize: Icon.SIZE_LARGE * 3\n }));\n }\n };\n\n NonIdealState.displayName = DISPLAYNAME_PREFIX + \".NonIdealState\";\n return NonIdealState;\n}(React.PureComponent);\n\nexport { NonIdealState };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/52b5b6faef20bd0f5da8425a18fa7b47.json b/packages/web/node_modules/.cache/babel-loader/52b5b6faef20bd0f5da8425a18fa7b47.json new file mode 100644 index 00000000..9cf84dd4 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/52b5b6faef20bd0f5da8425a18fa7b47.json @@ -0,0 +1 @@ +{"ast":null,"code":"/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function warning() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/5322df9fc47206566265d57f4baf293c.json b/packages/web/node_modules/.cache/babel-loader/5322df9fc47206566265d57f4baf293c.json new file mode 100644 index 00000000..ca05a372 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/5322df9fc47206566265d57f4baf293c.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function') {\n return;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/5367fb634b2d5a23a1eccf1912b006cb.json b/packages/web/node_modules/.cache/babel-loader/5367fb634b2d5a23a1eccf1912b006cb.json new file mode 100644 index 00000000..9ef53711 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/5367fb634b2d5a23a1eccf1912b006cb.json @@ -0,0 +1 @@ +{"ast":null,"code":"/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\nmodule.exports = ReactPropTypesSecret;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/53c1809febf7cfb3f3653ed36600f552.json b/packages/web/node_modules/.cache/babel-loader/53c1809febf7cfb3f3653ed36600f552.json new file mode 100644 index 00000000..efed41b3 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/53c1809febf7cfb3f3653ed36600f552.json @@ -0,0 +1 @@ +{"ast":null,"code":"/*\n * Copyright 2015 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the terms of the LICENSE file distributed with this project.\n */\nexport var BACKSPACE = 8;\nexport var TAB = 9;\nexport var ENTER = 13;\nexport var SHIFT = 16;\nexport var ESCAPE = 27;\nexport var SPACE = 32;\nexport var ARROW_LEFT = 37;\nexport var ARROW_UP = 38;\nexport var ARROW_RIGHT = 39;\nexport var ARROW_DOWN = 40;\nexport var DELETE = 46;\n/** Returns whether the key code is `enter` or `space`, the two keys that can click a button. */\n\nexport function isKeyboardClick(keyCode) {\n return keyCode === ENTER || keyCode === SPACE;\n}","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/545f10ded200e7d03172693e3991b94c.json b/packages/web/node_modules/.cache/babel-loader/545f10ded200e7d03172693e3991b94c.json new file mode 100644 index 00000000..3262f1ef --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/545f10ded200e7d03172693e3991b94c.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n/* Simplified implementation of DOM2 EventTarget.\n * http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget\n */\n\nfunction EventTarget() {\n this._listeners = {};\n}\n\nEventTarget.prototype.addEventListener = function (eventType, listener) {\n if (!(eventType in this._listeners)) {\n this._listeners[eventType] = [];\n }\n\n var arr = this._listeners[eventType]; // #4\n\n if (arr.indexOf(listener) === -1) {\n // Make a copy so as not to interfere with a current dispatchEvent.\n arr = arr.concat([listener]);\n }\n\n this._listeners[eventType] = arr;\n};\n\nEventTarget.prototype.removeEventListener = function (eventType, listener) {\n var arr = this._listeners[eventType];\n\n if (!arr) {\n return;\n }\n\n var idx = arr.indexOf(listener);\n\n if (idx !== -1) {\n if (arr.length > 1) {\n // Make a copy so as not to interfere with a current dispatchEvent.\n this._listeners[eventType] = arr.slice(0, idx).concat(arr.slice(idx + 1));\n } else {\n delete this._listeners[eventType];\n }\n\n return;\n }\n};\n\nEventTarget.prototype.dispatchEvent = function () {\n var event = arguments[0];\n var t = event.type; // equivalent of Array.prototype.slice.call(arguments, 0);\n\n var args = arguments.length === 1 ? [event] : Array.apply(null, arguments); // TODO: This doesn't match the real behavior; per spec, onfoo get\n // their place in line from the /first/ time they're set from\n // non-null. Although WebKit bumps it to the end every time it's\n // set.\n\n if (this['on' + t]) {\n this['on' + t].apply(this, args);\n }\n\n if (t in this._listeners) {\n // Grab a reference to the listeners list. removeEventListener may alter the list.\n var listeners = this._listeners[t];\n\n for (var i = 0; i < listeners.length; i++) {\n listeners[i].apply(this, args);\n }\n }\n};\n\nmodule.exports = EventTarget;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/5797aa7648d505b5af2965562e53d65a.json b/packages/web/node_modules/.cache/babel-loader/5797aa7648d505b5af2965562e53d65a.json new file mode 100644 index 00000000..627f91ce --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/5797aa7648d505b5af2965562e53d65a.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar logObject = {};\n['log', 'debug', 'warn'].forEach(function (level) {\n var levelExists;\n\n try {\n levelExists = global.console && global.console[level] && global.console[level].apply;\n } catch (e) {// do nothing\n }\n\n logObject[level] = levelExists ? function () {\n return global.console[level].apply(global.console, arguments);\n } : level === 'log' ? function () {} : logObject.log;\n});\nmodule.exports = logObject;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/58a5fcf546f2d3b57bd0d988ccf1d5f2.json b/packages/web/node_modules/.cache/babel-loader/58a5fcf546f2d3b57bd0d988ccf1d5f2.json new file mode 100644 index 00000000..2111e88a --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/58a5fcf546f2d3b57bd0d988ccf1d5f2.json @@ -0,0 +1 @@ +{"ast":null,"code":"'use strict';\n\nvar inherits = require('inherits'),\n EventEmitter = require('events').EventEmitter;\n\nvar debug = function debug() {};\n\nif (process.env.NODE_ENV !== 'production') {\n debug = require('debug')('sockjs-client:receiver:xhr');\n}\n\nfunction XhrReceiver(url, AjaxObject) {\n debug(url);\n EventEmitter.call(this);\n var self = this;\n this.bufferPosition = 0;\n this.xo = new AjaxObject('POST', url, null);\n this.xo.on('chunk', this._chunkHandler.bind(this));\n this.xo.once('finish', function (status, text) {\n debug('finish', status, text);\n\n self._chunkHandler(status, text);\n\n self.xo = null;\n var reason = status === 200 ? 'network' : 'permanent';\n debug('close', reason);\n self.emit('close', null, reason);\n\n self._cleanup();\n });\n}\n\ninherits(XhrReceiver, EventEmitter);\n\nXhrReceiver.prototype._chunkHandler = function (status, text) {\n debug('_chunkHandler', status);\n\n if (status !== 200 || !text) {\n return;\n }\n\n for (var idx = -1;; this.bufferPosition += idx + 1) {\n var buf = text.slice(this.bufferPosition);\n idx = buf.indexOf('\\n');\n\n if (idx === -1) {\n break;\n }\n\n var msg = buf.slice(0, idx);\n\n if (msg) {\n debug('message', msg);\n this.emit('message', msg);\n }\n }\n};\n\nXhrReceiver.prototype._cleanup = function () {\n debug('_cleanup');\n this.removeAllListeners();\n};\n\nXhrReceiver.prototype.abort = function () {\n debug('abort');\n\n if (this.xo) {\n this.xo.close();\n debug('close');\n this.emit('close', null, 'user');\n this.xo = null;\n }\n\n this._cleanup();\n};\n\nmodule.exports = XhrReceiver;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/59677118087e71229d210e1b803b5b42.json b/packages/web/node_modules/.cache/babel-loader/59677118087e71229d210e1b803b5b42.json new file mode 100644 index 00000000..b157757b --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/59677118087e71229d210e1b803b5b42.json @@ -0,0 +1 @@ +{"ast":null,"code":"module.exports = global.EventSource;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/59a24da5e9aa03152aa61d85bfb95ce8.json b/packages/web/node_modules/.cache/babel-loader/59a24da5e9aa03152aa61d85bfb95ce8.json new file mode 100644 index 00000000..8c41e176 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/59a24da5e9aa03152aa61d85bfb95ce8.json @@ -0,0 +1 @@ +{"ast":null,"code":"/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n'use strict';\n\nvar emptyFunction = require('./emptyFunction');\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\n\nvar warning = emptyFunction;\n\nif (process.env.NODE_ENV !== 'production') {\n var printWarning = function printWarning(format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/packages/web/node_modules/.cache/babel-loader/59e4a66944794b5f0f0992ccea325103.json b/packages/web/node_modules/.cache/babel-loader/59e4a66944794b5f0f0992ccea325103.json new file mode 100644 index 00000000..d757cb79 --- /dev/null +++ b/packages/web/node_modules/.cache/babel-loader/59e4a66944794b5f0f0992ccea325103.json @@ -0,0 +1 @@ +{"ast":null,"code":"/** @license React v16.7.0\n * react-dom.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function () {\n 'use strict';\n\n var React = require('react');\n\n var _assign = require('object-assign');\n\n var checkPropTypes = require('prop-types/checkPropTypes');\n\n var scheduler = require('scheduler');\n\n var tracing = require('scheduler/tracing');\n /**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\n\n var validateFormat = function validateFormat() {};\n\n {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n }\n\n function invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error = void 0;\n\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n\n throw error;\n }\n } // Relying on the `invariant()` implementation lets us\n // preserve the format and params in the www builds.\n\n\n !React ? invariant(false, 'ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.') : void 0;\n\n var invokeGuardedCallbackImpl = function invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) {\n var funcArgs = Array.prototype.slice.call(arguments, 3);\n\n try {\n func.apply(context, funcArgs);\n } catch (error) {\n this.onError(error);\n }\n };\n\n {\n // In DEV mode, we swap out invokeGuardedCallback for a special version\n // that plays more nicely with the browser's DevTools. The idea is to preserve\n // \"Pause on exceptions\" behavior. Because React wraps all user-provided\n // functions in invokeGuardedCallback, and the production version of\n // invokeGuardedCallback uses a try-catch, all user exceptions are treated\n // like caught exceptions, and the DevTools won't pause unless the developer\n // takes the extra step of enabling pause on caught exceptions. This is\n // untintuitive, though, because even though React has caught the error, from\n // the developer's perspective, the error is uncaught.\n //\n // To preserve the expected \"Pause on exceptions\" behavior, we don't use a\n // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake\n // DOM node, and call the user-provided callback from inside an event handler\n // for that fake event. If the callback throws, the error is \"captured\" using\n // a global event handler. But because the error happens in a different\n // event loop context, it does not interrupt the normal program flow.\n // Effectively, this gives us try-catch behavior without actually using\n // try-catch. Neat!\n // Check that the browser supports the APIs we need to implement our special\n // DEV version of invokeGuardedCallback\n if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {\n var fakeNode = document.createElement('react');\n\n var invokeGuardedCallbackDev = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) {\n // If document doesn't exist we know for sure we will crash in this method\n // when we call document.createEvent(). However this can cause confusing\n // errors: https://github.com/facebookincubator/create-react-app/issues/3482\n // So we preemptively throw with a better message instead.\n !(typeof document !== 'undefined') ? invariant(false, 'The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.') : void 0;\n var evt = document.createEvent('Event'); // Keeps track of whether the user-provided callback threw an error. We\n // set this to true at the beginning, then set it to false right after\n // calling the function. If the function errors, `didError` will never be\n // set to false. This strategy works even if the browser is flaky and\n // fails to call our global error handler, because it doesn't rely on\n // the error event at all.\n\n var didError = true; // Keeps track of the value of window.event so that we can reset it\n // during the callback to let user code access window.event in the\n // browsers that support it.\n\n var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event\n // dispatching: https://github.com/facebook/react/issues/13688\n\n var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event'); // Create an event handler for our fake event. We will synchronously\n // dispatch our fake event using `dispatchEvent`. Inside the handler, we\n // call the user-provided callback.\n\n var funcArgs = Array.prototype.slice.call(arguments, 3);\n\n function callCallback() {\n // We immediately remove the callback from event listeners so that\n // nested `invokeGuardedCallback` calls do not clash. Otherwise, a\n // nested call would trigger the fake event handlers of any call higher\n // in the stack.\n fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the\n // window.event assignment in both IE <= 10 as they throw an error\n // \"Member not found\" in strict mode, and in Firefox which does not\n // support window.event.\n\n if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {\n window.event = windowEvent;\n }\n\n func.apply(context, funcArgs);\n didError = false;\n } // Create a global error event handler. We use this to capture the value\n // that was thrown. It's possible that this error handler will fire more\n // than once; for example, if non-React code also calls `dispatchEvent`\n // and a handler for that event throws. We should be resilient to most of\n // those cases. Even if our error event handler fires more than once, the\n // last error event is always used. If the callback actually does error,\n // we know that the last error event is the correct one, because it's not\n // possible for anything else to have happened in between our callback\n // erroring and the code that follows the `dispatchEvent` call below. If\n // the callback doesn't error, but the error event was fired, we know to\n // ignore it because `didError` will be false, as described above.\n\n\n var error = void 0; // Use this to track whether the error event is ever called.\n\n var didSetError = false;\n var isCrossOriginError = false;\n\n function handleWindowError(event) {\n error = event.error;\n didSetError = true;\n\n if (error === null && event.colno === 0 && event.lineno === 0) {\n isCrossOriginError = true;\n }\n\n if (event.defaultPrevented) {\n // Some other error handler has prevented default.\n // Browsers silence the error report if this happens.\n // We'll remember this to later decide whether to log it or not.\n if (error != null && typeof error === 'object') {\n try {\n error._suppressLogging = true;\n } catch (inner) {// Ignore.\n }\n }\n }\n } // Create a fake event type.\n\n\n var evtType = 'react-' + (name ? name : 'invokeguardedcallback'); // Attach our event handlers\n\n window.addEventListener('error', handleWindowError);\n fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function\n // errors, it will trigger our global error handler.\n\n evt.initEvent(evtType, false, false);\n fakeNode.dispatchEvent(evt);\n\n if (windowEventDescriptor) {\n Object.defineProperty(window, 'event', windowEventDescriptor);\n }\n\n if (didError) {\n if (!didSetError) {\n // The callback errored, but the error event never fired.\n error = new Error('An error was thrown inside one of your components, but React ' + \"doesn't know what it was. This is likely due to browser \" + 'flakiness. React does its best to preserve the \"Pause on ' + 'exceptions\" behavior of the DevTools, which requires some ' + \"DEV-mode only tricks. It's possible that these don't work in \" + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');\n } else if (isCrossOriginError) {\n error = new Error(\"A cross-origin error was thrown. React doesn't have access to \" + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.');\n }\n\n this.onError(error);\n } // Remove our event listeners\n\n\n window.removeEventListener('error', handleWindowError);\n };\n\n invokeGuardedCallbackImpl = invokeGuardedCallbackDev;\n }\n }\n var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl; // Used by Fiber to simulate a try-catch.\n\n var hasError = false;\n var caughtError = null; // Used by event system to capture/rethrow the first error.\n\n var hasRethrowError = false;\n var rethrowError = null;\n var reporter = {\n onError: function onError(error) {\n hasError = true;\n caughtError = error;\n }\n };\n /**\n * Call a function while guarding against errors that happens within it.\n * Returns an error if it throws, otherwise null.\n *\n * In production, this is implemented using a try-catch. The reason we don't\n * use a try-catch directly is so that we can swap out a different\n * implementation in DEV mode.\n *\n * @param {String} name of the guard to use for logging or debugging\n * @param {Function} func The function to invoke\n * @param {*} context The context to use when calling the function\n * @param {...*} args Arguments for function\n */\n\n function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {\n hasError = false;\n caughtError = null;\n invokeGuardedCallbackImpl$1.apply(reporter, arguments);\n }\n /**\n * Same as invokeGuardedCallback, but instead of returning an error, it stores\n * it in a global so it can be rethrown by `rethrowCaughtError` later.\n * TODO: See if caughtError and rethrowError can be unified.\n *\n * @param {String} name of the guard to use for logging or debugging\n * @param {Function} func The function to invoke\n * @param {*} context The context to use when calling the function\n * @param {...*} args Arguments for function\n */\n\n\n function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {\n invokeGuardedCallback.apply(this, arguments);\n\n if (hasError) {\n var error = clearCaughtError();\n\n if (!hasRethrowError) {\n hasRethrowError = true;\n rethrowError = error;\n }\n }\n }\n /**\n * During execution of guarded functions we will capture the first error which\n * we will rethrow to be handled by the top level error handler.\n */\n\n\n function rethrowCaughtError() {\n if (hasRethrowError) {\n var error = rethrowError;\n hasRethrowError = false;\n rethrowError = null;\n throw error;\n }\n }\n\n function hasCaughtError() {\n return hasError;\n }\n\n function clearCaughtError() {\n if (hasError) {\n var error = caughtError;\n hasError = false;\n caughtError = null;\n return error;\n } else {\n invariant(false, 'clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.');\n }\n }\n /**\n * Injectable ordering of event plugins.\n */\n\n\n var eventPluginOrder = null;\n /**\n * Injectable mapping from names to event plugin modules.\n */\n\n var namesToPlugins = {};\n /**\n * Recomputes the plugin list using the injected plugins and plugin ordering.\n *\n * @private\n */\n\n function recomputePluginOrdering() {\n if (!eventPluginOrder) {\n // Wait until an `eventPluginOrder` is injected.\n return;\n }\n\n for (var pluginName in namesToPlugins) {\n var pluginModule = namesToPlugins[pluginName];\n var pluginIndex = eventPluginOrder.indexOf(pluginName);\n !(pluginIndex > -1) ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : void 0;\n\n if (plugins[pluginIndex]) {\n continue;\n }\n\n !pluginModule.extractEvents ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : void 0;\n plugins[pluginIndex] = pluginModule;\n var publishedEvents = pluginModule.eventTypes;\n\n for (var eventName in publishedEvents) {\n !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : void 0;\n }\n }\n }\n /**\n * Publishes an event so that it can be dispatched by the supplied plugin.\n *\n * @param {object} dispatchConfig Dispatch configuration for the event.\n * @param {object} PluginModule Plugin publishing the event.\n * @return {boolean} True if the event was successfully published.\n * @private\n */\n\n\n function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {\n !!eventNameDispatchConfigs.hasOwnProperty(eventName) ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : void 0;\n eventNameDispatchConfigs[eventName] = dispatchConfig;\n var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;\n\n if (phasedRegistrationNames) {\n for (var phaseName in phasedRegistrationNames) {\n if (phasedRegistrationNames.hasOwnProperty(phaseName)) {\n var phasedRegistrationName = phasedRegistrationNames[phaseName];\n publishRegistrationName(phasedRegistrationName, pluginModule, eventName);\n }\n }\n\n return true;\n } else if (dispatchConfig.registrationName) {\n publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);\n return true;\n }\n\n return false;\n }\n /**\n * Publishes a registration name that is used to identify dispatched events.\n *\n * @param {string} registrationName Registration name to add.\n * @param {object} PluginModule Plugin publishing the event.\n * @private\n */\n\n\n function publishRegistrationName(registrationName, pluginModule, eventName) {\n !!registrationNameModules[registrationName] ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : void 0;\n registrationNameModules[registrationName] = pluginModule;\n registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;\n {\n var lowerCasedName = registrationName.toLowerCase();\n possibleRegistrationNames[lowerCasedName] = registrationName;\n\n if (registrationName === 'onDoubleClick') {\n possibleRegistrationNames.ondblclick = registrationName;\n }\n }\n }\n /**\n * Registers plugins so that they can extract and dispatch events.\n *\n * @see {EventPluginHub}\n */\n\n /**\n * Ordered list of injected plugins.\n */\n\n\n var plugins = [];\n /**\n * Mapping from event name to dispatch config\n */\n\n var eventNameDispatchConfigs = {};\n /**\n * Mapping from registration name to plugin module\n */\n\n var registrationNameModules = {};\n /**\n * Mapping from registration name to event name\n */\n\n var registrationNameDependencies = {};\n /**\n * Mapping from lowercase registration names to the properly cased version,\n * used to warn in the case of missing event handlers. Available\n * only in true.\n * @type {Object}\n */\n\n var possibleRegistrationNames = {}; // Trust the developer to only use possibleRegistrationNames in true\n\n /**\n * Injects an ordering of plugins (by plugin name). This allows the ordering\n * to be decoupled from injection of the actual plugins so that ordering is\n * always deterministic regardless of packaging, on-the-fly injection, etc.\n *\n * @param {array} InjectedEventPluginOrder\n * @internal\n * @see {EventPluginHub.injection.injectEventPluginOrder}\n */\n\n function injectEventPluginOrder(injectedEventPluginOrder) {\n !!eventPluginOrder ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : void 0; // Clone the ordering so it cannot be dynamically mutated.\n\n eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);\n recomputePluginOrdering();\n }\n /**\n * Injects plugins to be used by `EventPluginHub`. The plugin names must be\n * in the ordering injected by `injectEventPluginOrder`.\n *\n * Plugins can be injected as part of page initialization or on-the-fly.\n *\n * @param {object} injectedNamesToPlugins Map from names to plugin modules.\n * @internal\n * @see {EventPluginHub.injection.injectEventPluginsByName}\n */\n\n\n function injectEventPluginsByName(injectedNamesToPlugins) {\n var isOrderingDirty = false;\n\n for (var pluginName in injectedNamesToPlugins) {\n if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {\n continue;\n }\n\n var pluginModule = injectedNamesToPlugins[pluginName];\n\n if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {\n !!namesToPlugins[pluginName] ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : void 0;\n namesToPlugins[pluginName] = pluginModule;\n isOrderingDirty = true;\n }\n }\n\n if (isOrderingDirty) {\n recomputePluginOrdering();\n }\n }\n /**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\n\n var warningWithoutStack = function warningWithoutStack() {};\n\n {\n warningWithoutStack = function warningWithoutStack(condition, format) {\n for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n if (format === undefined) {\n throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (args.length > 8) {\n // Check before the condition to catch violations early.\n throw new Error('warningWithoutStack() currently supports at most 8 arguments.');\n }\n\n if (condition) {\n return;\n }\n\n if (typeof console !== 'undefined') {\n var argsWithFormat = args.map(function (item) {\n return '' + item;\n });\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n\n Function.prototype.apply.call(console.error, console, argsWithFormat);\n }\n\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n throw new Error(message);\n } catch (x) {}\n };\n }\n var warningWithoutStack$1 = warningWithoutStack;\n var getFiberCurrentPropsFromNode = null;\n var getInstanceFromNode = null;\n var getNodeFromInstance = null;\n\n function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {\n getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;\n getInstanceFromNode = getInstanceFromNodeImpl;\n getNodeFromInstance = getNodeFromInstanceImpl;\n {\n !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;\n }\n }\n\n var validateEventDispatches = void 0;\n {\n validateEventDispatches = function validateEventDispatches(event) {\n var dispatchListeners = event._dispatchListeners;\n var dispatchInstances = event._dispatchInstances;\n var listenersIsArr = Array.isArray(dispatchListeners);\n var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;\n var instancesIsArr = Array.isArray(dispatchInstances);\n var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;\n !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;\n };\n }\n /**\n * Dispatch the event to the listener.\n * @param {SyntheticEvent} event SyntheticEvent to handle\n * @param {function} listener Application-level callback\n * @param {*} inst Internal component instance\n */\n\n function executeDispatch(event, listener, inst) {\n var type = event.type || 'unknown-event';\n event.currentTarget = getNodeFromInstance(inst);\n invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);\n event.currentTarget = null;\n }\n /**\n * Standard/simple iteration through an event's collected dispatches.\n */\n\n\n function executeDispatchesInOrder(event) {\n var dispatchListeners = event._dispatchListeners;\n var dispatchInstances = event._dispatchInstances;\n {\n validateEventDispatches(event);\n }\n\n if (Array.isArray(dispatchListeners)) {\n for (var i = 0; i < dispatchListeners.length; i++) {\n if (event.isPropagationStopped()) {\n break;\n } // Listeners and Instances are two parallel arrays that are always in sync.\n\n\n executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);\n }\n } else if (dispatchListeners) {\n executeDispatch(event, dispatchListeners, dispatchInstances);\n }\n\n event._dispatchListeners = null;\n event._dispatchInstances = null;\n }\n /**\n * @see executeDispatchesInOrderStopAtTrueImpl\n */\n\n /**\n * Execution of a \"direct\" dispatch - there must be at most one dispatch\n * accumulated on the event or it is considered an error. It doesn't really make\n * sense for an event with multiple dispatches (bubbled) to keep track of the\n * return values at each dispatch execution, but it does tend to make sense when\n * dealing with \"direct\" dispatches.\n *\n * @return {*} The return value of executing the single dispatch.\n */\n\n /**\n * @param {SyntheticEvent} event\n * @return {boolean} True iff number of dispatches accumulated is greater than 0.\n */\n\n /**\n * Accumulates items that must not be null or undefined into the first one. This\n * is used to conserve memory by avoiding array allocations, and thus sacrifices\n * API cleanness. Since `current` can be null before being passed in and not\n * null after this function, make sure to assign it back to `current`:\n *\n * `a = accumulateInto(a, b);`\n *\n * This API should be sparingly used. Try `accumulate` for something cleaner.\n *\n * @return {*|array<*>} An accumulation of items.\n */\n\n\n function accumulateInto(current, next) {\n !(next != null) ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : void 0;\n\n if (current == null) {\n return next;\n } // Both are not empty. Warning: Never call x.concat(y) when you are not\n // certain that x is an Array (x could be a string with concat method).\n\n\n if (Array.isArray(current)) {\n if (Array.isArray(next)) {\n current.push.apply(current, next);\n return current;\n }\n\n current.push(next);\n return current;\n }\n\n if (Array.isArray(next)) {\n // A bit too dangerous to mutate `next`.\n return [current].concat(next);\n }\n\n return [current, next];\n }\n /**\n * @param {array} arr an \"accumulation\" of items which is either an Array or\n * a single item. Useful when paired with the `accumulate` module. This is a\n * simple utility that allows us to reason about a collection of items, but\n * handling the case when there is exactly one item (and we do not need to\n * allocate an array).\n * @param {function} cb Callback invoked with each element or a collection.\n * @param {?} [scope] Scope used as `this` in a callback.\n */\n\n\n function forEachAccumulated(arr, cb, scope) {\n if (Array.isArray(arr)) {\n arr.forEach(cb, scope);\n } else if (arr) {\n cb.call(scope, arr);\n }\n }\n /**\n * Internal queue of events that have accumulated their dispatches and are\n * waiting to have their dispatches executed.\n */\n\n\n var eventQueue = null;\n /**\n * Dispatches an event and releases it back into the pool, unless persistent.\n *\n * @param {?object} event Synthetic event to be dispatched.\n * @private\n */\n\n var executeDispatchesAndRelease = function executeDispatchesAndRelease(event) {\n if (event) {\n executeDispatchesInOrder(event);\n\n if (!event.isPersistent()) {\n event.constructor.release(event);\n }\n }\n };\n\n var executeDispatchesAndReleaseTopLevel = function executeDispatchesAndReleaseTopLevel(e) {\n return executeDispatchesAndRelease(e);\n };\n\n function isInteractive(tag) {\n return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';\n }\n\n function shouldPreventMouseEvent(name, type, props) {\n switch (name) {\n case 'onClick':\n case 'onClickCapture':\n case 'onDoubleClick':\n case 'onDoubleClickCapture':\n case 'onMouseDown':\n case 'onMouseDownCapture':\n case 'onMouseMove':\n case 'onMouseMoveCapture':\n case 'onMouseUp':\n case 'onMouseUpCapture':\n return !!(props.disabled && isInteractive(type));\n\n default:\n return false;\n }\n }\n /**\n * This is a unified interface for event plugins to be installed and configured.\n *\n * Event plugins can implement the following properties:\n *\n * `extractEvents` {function(string, DOMEventTarget, string, object): *}\n * Required. When a top-level event is fired, this method is expected to\n * extract synthetic events that will in turn be queued and dispatched.\n *\n * `eventTypes` {object}\n * Optional, plugins that fire events must publish a mapping of registration\n * names that are used to register listeners. Values of this mapping must\n * be objects that contain `registrationName` or `phasedRegistrationNames`.\n *\n * `executeDispatch` {function(object, function, string)}\n * Optional, allows plugins to override how an event gets dispatched. By\n * default, the listener is simply invoked.\n *\n * Each plugin that is injected into `EventsPluginHub` is immediately operable.\n *\n * @public\n */\n\n /**\n * Methods for injecting dependencies.\n */\n\n\n var injection = {\n /**\n * @param {array} InjectedEventPluginOrder\n * @public\n */\n injectEventPluginOrder: injectEventPluginOrder,\n\n /**\n * @param {object} injectedNamesToPlugins Map from names to plugin modules.\n */\n injectEventPluginsByName: injectEventPluginsByName\n };\n /**\n * @param {object} inst The instance, which is the source of events.\n * @param {string} registrationName Name of listener (e.g. `onClick`).\n * @return {?function} The stored callback.\n */\n\n function getListener(inst, registrationName) {\n var listener = void 0; // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not\n // live here; needs to be moved to a better place soon\n\n var stateNode = inst.stateNode;\n\n if (!stateNode) {\n // Work in progress (ex: onload events in incremental mode).\n return null;\n }\n\n var props = getFiberCurrentPropsFromNode(stateNode);\n\n if (!props) {\n // Work in progress.\n return null;\n }\n\n listener = props[registrationName];\n\n if (shouldPreventMouseEvent(registrationName, inst.type, props)) {\n return null;\n }\n\n !(!listener || typeof listener === 'function') ? invariant(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener) : void 0;\n return listener;\n }\n /**\n * Allows registered plugins an opportunity to extract events from top-level\n * native browser events.\n *\n * @return {*} An accumulation of synthetic events.\n * @internal\n */\n\n\n function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var events = null;\n\n for (var i = 0; i < plugins.length; i++) {\n // Not every plugin in the ordering may be loaded at runtime.\n var possiblePlugin = plugins[i];\n\n if (possiblePlugin) {\n var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n\n if (extractedEvents) {\n events = accumulateInto(events, extractedEvents);\n }\n }\n }\n\n return events;\n }\n\n function runEventsInBatch(events) {\n if (events !== null) {\n eventQueue = accumulateInto(eventQueue, events);\n } // Set `eventQueue` to null before processing it so that we can tell if more\n // events get enqueued while processing.\n\n\n var processingEventQueue = eventQueue;\n eventQueue = null;\n\n if (!processingEventQueue) {\n return;\n }\n\n forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);\n !!eventQueue ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : void 0; // This would be a good time to rethrow if any of the event handlers threw.\n\n rethrowCaughtError();\n }\n\n function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n runEventsInBatch(events);\n }\n\n var FunctionComponent = 0;\n var ClassComponent = 1;\n var IndeterminateComponent = 2; // Before we know whether it is function or class\n\n var HostRoot = 3; // Root of a host tree. Could be nested inside another node.\n\n var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.\n\n var HostComponent = 5;\n var HostText = 6;\n var Fragment = 7;\n var Mode = 8;\n var ContextConsumer = 9;\n var ContextProvider = 10;\n var ForwardRef = 11;\n var Profiler = 12;\n var SuspenseComponent = 13;\n var MemoComponent = 14;\n var SimpleMemoComponent = 15;\n var LazyComponent = 16;\n var IncompleteClassComponent = 17;\n var randomKey = Math.random().toString(36).slice(2);\n var internalInstanceKey = '__reactInternalInstance$' + randomKey;\n var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;\n\n function precacheFiberNode(hostInst, node) {\n node[internalInstanceKey] = hostInst;\n }\n /**\n * Given a DOM node, return the closest ReactDOMComponent or\n * ReactDOMTextComponent instance ancestor.\n */\n\n\n function getClosestInstanceFromNode(node) {\n if (node[internalInstanceKey]) {\n return node[internalInstanceKey];\n }\n\n while (!node[internalInstanceKey]) {\n if (node.parentNode) {\n node = node.parentNode;\n } else {\n // Top of the tree. This node must not be part of a React tree (or is\n // unmounted, potentially).\n return null;\n }\n }\n\n var inst = node[internalInstanceKey];\n\n if (inst.tag === HostComponent || inst.tag === HostText) {\n // In Fiber, this will always be the deepest root.\n return inst;\n }\n\n return null;\n }\n /**\n * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent\n * instance, or null if the node was not rendered by this React.\n */\n\n\n function getInstanceFromNode$1(node) {\n var inst = node[internalInstanceKey];\n\n if (inst) {\n if (inst.tag === HostComponent || inst.tag === HostText) {\n return inst;\n } else {\n return null;\n }\n }\n\n return null;\n }\n /**\n * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding\n * DOM node.\n */\n\n\n function getNodeFromInstance$1(inst) {\n if (inst.tag === HostComponent || inst.tag === HostText) {\n // In Fiber this, is just the state node right now. We assume it will be\n // a host component or host text.\n return inst.stateNode;\n } // Without this first invariant, passing a non-DOM-component triggers the next\n // invariant for a missing parent, which is super confusing.\n\n\n invariant(false, 'getNodeFromInstance: Invalid argument.');\n }\n\n function getFiberCurrentPropsFromNode$1(node) {\n return node[internalEventHandlersKey] || null;\n }\n\n function updateFiberProps(node, props) {\n node[internalEventHandlersKey] = props;\n }\n\n function getParent(inst) {\n do {\n inst = inst.return; // TODO: If this is a HostRoot we might want to bail out.\n // That is depending on if we want nested subtrees (layers) to bubble\n // events to their parent. We could also go through parentNode on the\n // host node but that wouldn't work for React Native and doesn't let us\n // do the portal feature.\n } while (inst && inst.tag !== HostComponent);\n\n if (inst) {\n return inst;\n }\n\n return null;\n }\n /**\n * Return the lowest common ancestor of A and B, or null if they are in\n * different trees.\n */\n\n\n function getLowestCommonAncestor(instA, instB) {\n var depthA = 0;\n\n for (var tempA = instA; tempA; tempA = getParent(tempA)) {\n depthA++;\n }\n\n var depthB = 0;\n\n for (var tempB = instB; tempB; tempB = getParent(tempB)) {\n depthB++;\n } // If A is deeper, crawl up.\n\n\n while (depthA - depthB > 0) {\n instA = getParent(instA);\n depthA--;\n } // If B is deeper, crawl up.\n\n\n while (depthB - depthA > 0) {\n instB = getParent(instB);\n depthB--;\n } // Walk in lockstep until we find a match.\n\n\n var depth = depthA;\n\n while (depth--) {\n if (instA === instB || instA === instB.alternate) {\n return instA;\n }\n\n instA = getParent(instA);\n instB = getParent(instB);\n }\n\n return null;\n }\n /**\n * Return if A is an ancestor of B.\n */\n\n /**\n * Return the parent instance of the passed-in instance.\n */\n\n /**\n * Simulates the traversal of a two-phase, capture/bubble event dispatch.\n */\n\n\n function traverseTwoPhase(inst, fn, arg) {\n var path = [];\n\n while (inst) {\n path.push(inst);\n inst = getParent(inst);\n }\n\n var i = void 0;\n\n for (i = path.length; i-- > 0;) {\n fn(path[i], 'captured', arg);\n }\n\n for (i = 0; i < path.length; i++) {\n fn(path[i], 'bubbled', arg);\n }\n }\n /**\n * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that\n * should would receive a `mouseEnter` or `mouseLeave` event.\n *\n * Does not invoke the callback on the nearest common ancestor because nothing\n * \"entered\" or \"left\" that element.\n */\n\n\n function traverseEnterLeave(from, to, fn, argFrom, argTo) {\n var common = from && to ? getLowestCommonAncestor(from, to) : null;\n var pathFrom = [];\n\n while (true) {\n if (!from) {\n break;\n }\n\n if (from === common) {\n break;\n }\n\n var alternate = from.alternate;\n\n if (alternate !== null && alternate === common) {\n break;\n }\n\n pathFrom.push(from);\n from = getParent(from);\n }\n\n var pathTo = [];\n\n while (true) {\n if (!to) {\n break;\n }\n\n if (to === common) {\n break;\n }\n\n var _alternate = to.alternate;\n\n if (_alternate !== null && _alternate === common) {\n break;\n }\n\n pathTo.push(to);\n to = getParent(to);\n }\n\n for (var i = 0; i < pathFrom.length; i++) {\n fn(pathFrom[i], 'bubbled', argFrom);\n }\n\n for (var _i = pathTo.length; _i-- > 0;) {\n fn(pathTo[_i], 'captured', argTo);\n }\n }\n /**\n * Some event types have a notion of different registration names for different\n * \"phases\" of propagation. This finds listeners by a given phase.\n */\n\n\n function listenerAtPhase(inst, event, propagationPhase) {\n var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];\n return getListener(inst, registrationName);\n }\n /**\n * A small set of propagation patterns, each of which will accept a small amount\n * of information, and generate a set of \"dispatch ready event objects\" - which\n * are sets of events that have already been annotated with a set of dispatched\n * listener functions/ids. The API is designed this way to discourage these\n * propagation strategies from actually executing the dispatches, since we\n * always want to collect the entire set of dispatches before executing even a\n * single one.\n */\n\n /**\n * Tags a `SyntheticEvent` with dispatched listeners. Creating this function\n * here, allows us to not have to bind or create functions for each event.\n * Mutating the event's members allows us to not have to create a wrapping\n * \"dispatch\" object that pairs the event with the listener.\n */\n\n\n function accumulateDirectionalDispatches(inst, phase, event) {\n {\n !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;\n }\n var listener = listenerAtPhase(inst, event, phase);\n\n if (listener) {\n event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);\n event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);\n }\n }\n /**\n * Collect dispatches (must be entirely collected before dispatching - see unit\n * tests). Lazily allocate the array to conserve memory. We must loop through\n * each event and perform the traversal for each one. We cannot perform a\n * single traversal for the entire collection of events because each event may\n * have a different target.\n */\n\n\n function accumulateTwoPhaseDispatchesSingle(event) {\n if (event && event.dispatchConfig.phasedRegistrationNames) {\n traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);\n }\n }\n /**\n * Accumulates without regard to direction, does not look for phased\n * registration names. Same as `accumulateDirectDispatchesSingle` but without\n * requiring that the `dispatchMarker` be the same as the dispatched ID.\n */\n\n\n function accumulateDispatches(inst, ignoredDirection, event) {\n if (inst && event && event.dispatchConfig.registrationName) {\n var registrationName = event.dispatchConfig.registrationName;\n var listener = getListener(inst, registrationName);\n\n if (listener) {\n event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);\n event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);\n }\n }\n }\n /**\n * Accumulates dispatches on an `SyntheticEvent`, but only for the\n * `dispatchMarker`.\n * @param {SyntheticEvent} event\n */\n\n\n function accumulateDirectDispatchesSingle(event) {\n if (event && event.dispatchConfig.registrationName) {\n accumulateDispatches(event._targetInst, null, event);\n }\n }\n\n function accumulateTwoPhaseDispatches(events) {\n forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);\n }\n\n function accumulateEnterLeaveDispatches(leave, enter, from, to) {\n traverseEnterLeave(from, to, accumulateDispatches, leave, enter);\n }\n\n function accumulateDirectDispatches(events) {\n forEachAccumulated(events, accumulateDirectDispatchesSingle);\n }\n\n var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); // Do not uses the below two methods directly!\n // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.\n // (It is the only module that is allowed to access these methods.)\n\n function unsafeCastStringToDOMTopLevelType(topLevelType) {\n return topLevelType;\n }\n\n function unsafeCastDOMTopLevelTypeToString(topLevelType) {\n return topLevelType;\n }\n /**\n * Generate a mapping of standard vendor prefixes using the defined style property and event name.\n *\n * @param {string} styleProp\n * @param {string} eventName\n * @returns {object}\n */\n\n\n function makePrefixMap(styleProp, eventName) {\n var prefixes = {};\n prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();\n prefixes['Webkit' + styleProp] = 'webkit' + eventName;\n prefixes['Moz' + styleProp] = 'moz' + eventName;\n return prefixes;\n }\n /**\n * A list of event names to a configurable list of vendor prefixes.\n */\n\n\n var vendorPrefixes = {\n animationend: makePrefixMap('Animation', 'AnimationEnd'),\n animationiteration: makePrefixMap('Animation', 'AnimationIteration'),\n animationstart: makePrefixMap('Animation', 'AnimationStart'),\n transitionend: makePrefixMap('Transition', 'TransitionEnd')\n };\n /**\n * Event names that have already been detected and prefixed (if applicable).\n */\n\n var prefixedEventNames = {};\n /**\n * Element to check for prefixes on.\n */\n\n var style = {};\n /**\n * Bootstrap if a DOM exists.\n */\n\n if (canUseDOM) {\n style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,\n // the un-prefixed \"animation\" and \"transition\" properties are defined on the\n // style object but the events that fire will still be prefixed, so we need\n // to check if the un-prefixed events are usable, and if not remove them from the map.\n\n if (!('AnimationEvent' in window)) {\n delete vendorPrefixes.animationend.animation;\n delete vendorPrefixes.animationiteration.animation;\n delete vendorPrefixes.animationstart.animation;\n } // Same as above\n\n\n if (!('TransitionEvent' in window)) {\n delete vendorPrefixes.transitionend.transition;\n }\n }\n /**\n * Attempts to determine the correct vendor prefixed event name.\n *\n * @param {string} eventName\n * @returns {string}\n */\n\n\n function getVendorPrefixedEventName(eventName) {\n if (prefixedEventNames[eventName]) {\n return prefixedEventNames[eventName];\n } else if (!vendorPrefixes[eventName]) {\n return eventName;\n }\n\n var prefixMap = vendorPrefixes[eventName];\n\n for (var styleProp in prefixMap) {\n if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {\n return prefixedEventNames[eventName] = prefixMap[styleProp];\n }\n }\n\n return eventName;\n }\n /**\n * To identify top level events in ReactDOM, we use constants defined by this\n * module. This is the only module that uses the unsafe* methods to express\n * that the constants actually correspond to the browser event names. This lets\n * us save some bundle size by avoiding a top level type -> event name map.\n * The rest of ReactDOM code should import top level types from this file.\n */\n\n\n var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');\n var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));\n var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));\n var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));\n var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');\n var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');\n var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');\n var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');\n var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');\n var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');\n var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');\n var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');\n var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');\n var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');\n var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');\n var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');\n var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');\n var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');\n var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');\n var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');\n var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');\n var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');\n var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');\n var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');\n var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');\n var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');\n var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');\n var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');\n var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');\n var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');\n var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');\n var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');\n var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');\n var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');\n var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');\n var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');\n var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');\n var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');\n var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');\n var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');\n var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');\n var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');\n var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');\n var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');\n var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');\n var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');\n var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');\n var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');\n var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');\n var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');\n var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');\n var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');\n var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');\n var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');\n var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');\n var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');\n var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');\n var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');\n var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');\n var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');\n var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');\n var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');\n var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');\n var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');\n var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');\n var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');\n var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');\n var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');\n var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');\n var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');\n var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');\n var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');\n var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');\n var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');\n var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');\n var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');\n var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));\n var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');\n var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');\n var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel'); // List of events that need to be individually attached to media elements.\n // Note that events in this list will *not* be listened to at the top level\n // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.\n\n var mediaEventTypes = [TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING];\n\n function getRawEventName(topLevelType) {\n return unsafeCastDOMTopLevelTypeToString(topLevelType);\n }\n /**\n * These variables store information about text content of a target node,\n * allowing comparison of content before and after a given event.\n *\n * Identify the node where selection currently begins, then observe\n * both its text content and its current position in the DOM. Since the\n * browser may natively replace the target node during composition, we can\n * use its position to find its replacement.\n *\n *\n */\n\n\n var root = null;\n var startText = null;\n var fallbackText = null;\n\n function initialize(nativeEventTarget) {\n root = nativeEventTarget;\n startText = getText();\n return true;\n }\n\n function reset() {\n root = null;\n startText = null;\n fallbackText = null;\n }\n\n function getData() {\n if (fallbackText) {\n return fallbackText;\n }\n\n var start = void 0;\n var startValue = startText;\n var startLength = startValue.length;\n var end = void 0;\n var endValue = getText();\n var endLength = endValue.length;\n\n for (start = 0; start < startLength; start++) {\n if (startValue[start] !== endValue[start]) {\n break;\n }\n }\n\n var minEnd = startLength - start;\n\n for (end = 1; end <= minEnd; end++) {\n if (startValue[startLength - end] !== endValue[endLength - end]) {\n break;\n }\n }\n\n var sliceTail = end > 1 ? 1 - end : undefined;\n fallbackText = endValue.slice(start, sliceTail);\n return fallbackText;\n }\n\n function getText() {\n if ('value' in root) {\n return root.value;\n }\n\n return root.textContent;\n }\n /* eslint valid-typeof: 0 */\n\n\n var EVENT_POOL_SIZE = 10;\n /**\n * @interface Event\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\n var EventInterface = {\n type: null,\n target: null,\n // currentTarget is set when dispatching; no use in copying it here\n currentTarget: function currentTarget() {\n return null;\n },\n eventPhase: null,\n bubbles: null,\n cancelable: null,\n timeStamp: function timeStamp(event) {\n return event.timeStamp || Date.now();\n },\n defaultPrevented: null,\n isTrusted: null\n };\n\n function functionThatReturnsTrue() {\n return true;\n }\n\n function functionThatReturnsFalse() {\n return false;\n }\n /**\n * Synthetic events are dispatched by event plugins, typically in response to a\n * top-level event delegation handler.\n *\n * These systems should generally use pooling to reduce the frequency of garbage\n * collection. The system should check `isPersistent` to determine whether the\n * event should be released into the pool after being dispatched. Users that\n * need a persisted event should invoke `persist`.\n *\n * Synthetic events (and subclasses) implement the DOM Level 3 Events API by\n * normalizing browser quirks. Subclasses do not necessarily have to implement a\n * DOM interface; custom application-specific events can also subclass this.\n *\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {*} targetInst Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @param {DOMEventTarget} nativeEventTarget Target node.\n */\n\n\n function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {\n {\n // these have a getter/setter for warnings\n delete this.nativeEvent;\n delete this.preventDefault;\n delete this.stopPropagation;\n delete this.isDefaultPrevented;\n delete this.isPropagationStopped;\n }\n this.dispatchConfig = dispatchConfig;\n this._targetInst = targetInst;\n this.nativeEvent = nativeEvent;\n var Interface = this.constructor.Interface;\n\n for (var propName in Interface) {\n if (!Interface.hasOwnProperty(propName)) {\n continue;\n }\n\n {\n delete this[propName]; // this has a getter/setter for warnings\n }\n var normalize = Interface[propName];\n\n if (normalize) {\n this[propName] = normalize(nativeEvent);\n } else {\n if (propName === 'target') {\n this.target = nativeEventTarget;\n } else {\n this[propName] = nativeEvent[propName];\n }\n }\n }\n\n var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;\n\n if (defaultPrevented) {\n this.isDefaultPrevented = functionThatReturnsTrue;\n } else {\n this.isDefaultPrevented = functionThatReturnsFalse;\n }\n\n this.isPropagationStopped = functionThatReturnsFalse;\n return this;\n }\n\n _assign(SyntheticEvent.prototype, {\n preventDefault: function preventDefault() {\n this.defaultPrevented = true;\n var event = this.nativeEvent;\n\n if (!event) {\n return;\n }\n\n if (event.preventDefault) {\n event.preventDefault();\n } else if (typeof event.returnValue !== 'unknown') {\n event.returnValue = false;\n }\n\n this.isDefaultPrevented = functionThatReturnsTrue;\n },\n stopPropagation: function stopPropagation() {\n var event = this.nativeEvent;\n\n if (!event) {\n return;\n }\n\n if (event.stopPropagation) {\n event.stopPropagation();\n } else if (typeof event.cancelBubble !== 'unknown') {\n // The ChangeEventPlugin registers a \"propertychange\" event for\n // IE. This event does not support bubbling or cancelling, and\n // any references to cancelBubble throw \"Member not found\". A\n // typeof check of \"unknown\" circumvents this issue (and is also\n // IE specific).\n event.cancelBubble = true;\n }\n\n this.isPropagationStopped = functionThatReturnsTrue;\n },\n\n /**\n * We release all dispatched `SyntheticEvent`s after each event loop, adding\n * them back into the pool. This allows a way to hold onto a reference that\n * won't be added back into the pool.\n */\n persist: function persist() {\n this.isPersistent = functionThatReturnsTrue;\n },\n\n /**\n * Checks if this event should be released back into the pool.\n *\n * @return {boolean} True if this should not be released, false otherwise.\n */\n isPersistent: functionThatReturnsFalse,\n\n /**\n * `PooledClass` looks for `destructor` on each instance it releases.\n */\n destructor: function destructor() {\n var Interface = this.constructor.Interface;\n\n for (var propName in Interface) {\n {\n Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));\n }\n }\n\n this.dispatchConfig = null;\n this._targetInst = null;\n this.nativeEvent = null;\n this.isDefaultPrevented = functionThatReturnsFalse;\n this.isPropagationStopped = functionThatReturnsFalse;\n this._dispatchListeners = null;\n this._dispatchInstances = null;\n {\n Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));\n Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));\n Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));\n Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));\n Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));\n }\n }\n });\n\n SyntheticEvent.Interface = EventInterface;\n /**\n * Helper to reduce boilerplate when creating subclasses.\n */\n\n SyntheticEvent.extend = function (Interface) {\n var Super = this;\n\n var E = function E() {};\n\n E.prototype = Super.prototype;\n var prototype = new E();\n\n function Class() {\n return Super.apply(this, arguments);\n }\n\n _assign(prototype, Class.prototype);\n\n Class.prototype = prototype;\n Class.prototype.constructor = Class;\n Class.Interface = _assign({}, Super.Interface, Interface);\n Class.extend = Super.extend;\n addEventPoolingTo(Class);\n return Class;\n };\n\n addEventPoolingTo(SyntheticEvent);\n /**\n * Helper to nullify syntheticEvent instance properties when destructing\n *\n * @param {String} propName\n * @param {?object} getVal\n * @return {object} defineProperty object\n */\n\n function getPooledWarningPropertyDefinition(propName, getVal) {\n var isFunction = typeof getVal === 'function';\n return {\n configurable: true,\n set: set,\n get: get\n };\n\n function set(val) {\n var action = isFunction ? 'setting the method' : 'setting the property';\n warn(action, 'This is effectively a no-op');\n return val;\n }\n\n function get() {\n var action = isFunction ? 'accessing the method' : 'accessing the property';\n var result = isFunction ? 'This is a no-op function' : 'This is set to null';\n warn(action, result);\n return getVal;\n }\n\n function warn(action, result) {\n var warningCondition = false;\n !warningCondition ? warningWithoutStack$1(false, \"This synthetic event is reused for performance reasons. If you're seeing this, \" + \"you're %s `%s` on a released/nullified synthetic event. %s. \" + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;\n }\n }\n\n function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {\n var EventConstructor = this;\n\n if (EventConstructor.eventPool.length) {\n var instance = EventConstructor.eventPool.pop();\n EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);\n return instance;\n }\n\n return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);\n }\n\n function releasePooledEvent(event) {\n var EventConstructor = this;\n !(event instanceof EventConstructor) ? invariant(false, 'Trying to release an event instance into a pool of a different type.') : void 0;\n event.destructor();\n\n if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {\n EventConstructor.eventPool.push(event);\n }\n }\n\n function addEventPoolingTo(EventConstructor) {\n EventConstructor.eventPool = [];\n EventConstructor.getPooled = getPooledEvent;\n EventConstructor.release = releasePooledEvent;\n }\n /**\n * @interface Event\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents\n */\n\n\n var SyntheticCompositionEvent = SyntheticEvent.extend({\n data: null\n });\n /**\n * @interface Event\n * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105\n * /#events-inputevents\n */\n\n var SyntheticInputEvent = SyntheticEvent.extend({\n data: null\n });\n var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space\n\n var START_KEYCODE = 229;\n var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;\n var documentMode = null;\n\n if (canUseDOM && 'documentMode' in document) {\n documentMode = document.documentMode;\n } // Webkit offers a very useful `textInput` event that can be used to\n // directly represent `beforeInput`. The IE `textinput` event is not as\n // useful, so we don't use it.\n\n\n var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied\n // by the native compositionend event may be incorrect. Japanese ideographic\n // spaces, for instance (\\u3000) are not recorded correctly.\n\n var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);\n var SPACEBAR_CODE = 32;\n var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); // Events and their corresponding property names.\n\n var eventTypes = {\n beforeInput: {\n phasedRegistrationNames: {\n bubbled: 'onBeforeInput',\n captured: 'onBeforeInputCapture'\n },\n dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]\n },\n compositionEnd: {\n phasedRegistrationNames: {\n bubbled: 'onCompositionEnd',\n captured: 'onCompositionEndCapture'\n },\n dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]\n },\n compositionStart: {\n phasedRegistrationNames: {\n bubbled: 'onCompositionStart',\n captured: 'onCompositionStartCapture'\n },\n dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]\n },\n compositionUpdate: {\n phasedRegistrationNames: {\n bubbled: 'onCompositionUpdate',\n captured: 'onCompositionUpdateCapture'\n },\n dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]\n }\n }; // Track whether we've ever handled a keypress on the space key.\n\n var hasSpaceKeypress = false;\n /**\n * Return whether a native keypress event is assumed to be a command.\n * This is required because Firefox fires `keypress` events for key commands\n * (cut, copy, select-all, etc.) even though no character is inserted.\n */\n\n function isKeypressCommand(nativeEvent) {\n return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.\n !(nativeEvent.ctrlKey && nativeEvent.altKey);\n }\n /**\n * Translate native top level events into event types.\n *\n * @param {string} topLevelType\n * @return {object}\n */\n\n\n function getCompositionEventType(topLevelType) {\n switch (topLevelType) {\n case TOP_COMPOSITION_START:\n return eventTypes.compositionStart;\n\n case TOP_COMPOSITION_END:\n return eventTypes.compositionEnd;\n\n case TOP_COMPOSITION_UPDATE:\n return eventTypes.compositionUpdate;\n }\n }\n /**\n * Does our fallback best-guess model think this event signifies that\n * composition has begun?\n *\n * @param {string} topLevelType\n * @param {object} nativeEvent\n * @return {boolean}\n */\n\n\n function isFallbackCompositionStart(topLevelType, nativeEvent) {\n return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;\n }\n /**\n * Does our fallback mode think that this event is the end of composition?\n *\n * @param {string} topLevelType\n * @param {object} nativeEvent\n * @return {boolean}\n */\n\n\n function isFallbackCompositionEnd(topLevelType, nativeEvent) {\n switch (topLevelType) {\n case TOP_KEY_UP:\n // Command keys insert or clear IME input.\n return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;\n\n case TOP_KEY_DOWN:\n // Expect IME keyCode on each keydown. If we get any other\n // code we must have exited earlier.\n return nativeEvent.keyCode !== START_KEYCODE;\n\n case TOP_KEY_PRESS:\n case TOP_MOUSE_DOWN:\n case TOP_BLUR:\n // Events are not possible without cancelling IME.\n return true;\n\n default:\n return false;\n }\n }\n /**\n * Google Input Tools provides composition data via a CustomEvent,\n * with the `data` property populated in the `detail` object. If this\n * is available on the event object, use it. If not, this is a plain\n * composition event and we have nothing special to extract.\n *\n * @param {object} nativeEvent\n * @return {?string}\n */\n\n\n function getDataFromCustomEvent(nativeEvent) {\n var detail = nativeEvent.detail;\n\n if (typeof detail === 'object' && 'data' in detail) {\n return detail.data;\n }\n\n return null;\n }\n /**\n * Check if a composition event was triggered by Korean IME.\n * Our fallback mode does not work well with IE's Korean IME,\n * so just use native composition events when Korean IME is used.\n * Although CompositionEvent.locale property is deprecated,\n * it is available in IE, where our fallback mode is enabled.\n *\n * @param {object} nativeEvent\n * @return {boolean}\n */\n\n\n function isUsingKoreanIME(nativeEvent) {\n return nativeEvent.locale === 'ko';\n } // Track the current IME composition status, if any.\n\n\n var isComposing = false;\n /**\n * @return {?object} A SyntheticCompositionEvent.\n */\n\n function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var eventType = void 0;\n var fallbackData = void 0;\n\n if (canUseCompositionEvent) {\n eventType = getCompositionEventType(topLevelType);\n } else if (!isComposing) {\n if (isFallbackCompositionStart(topLevelType, nativeEvent)) {\n eventType = eventTypes.compositionStart;\n }\n } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {\n eventType = eventTypes.compositionEnd;\n }\n\n if (!eventType) {\n return null;\n }\n\n if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {\n // The current composition is stored statically and must not be\n // overwritten while composition continues.\n if (!isComposing && eventType === eventTypes.compositionStart) {\n isComposing = initialize(nativeEventTarget);\n } else if (eventType === eventTypes.compositionEnd) {\n if (isComposing) {\n fallbackData = getData();\n }\n }\n }\n\n var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);\n\n if (fallbackData) {\n // Inject data generated from fallback path into the synthetic event.\n // This matches the property of native CompositionEventInterface.\n event.data = fallbackData;\n } else {\n var customData = getDataFromCustomEvent(nativeEvent);\n\n if (customData !== null) {\n event.data = customData;\n }\n }\n\n accumulateTwoPhaseDispatches(event);\n return event;\n }\n /**\n * @param {TopLevelType} topLevelType Number from `TopLevelType`.\n * @param {object} nativeEvent Native browser event.\n * @return {?string} The string corresponding to this `beforeInput` event.\n */\n\n\n function getNativeBeforeInputChars(topLevelType, nativeEvent) {\n switch (topLevelType) {\n case TOP_COMPOSITION_END:\n return getDataFromCustomEvent(nativeEvent);\n\n case TOP_KEY_PRESS:\n /**\n * If native `textInput` events are available, our goal is to make\n * use of them. However, there is a special case: the spacebar key.\n * In Webkit, preventing default on a spacebar `textInput` event\n * cancels character insertion, but it *also* causes the browser\n * to fall back to its default spacebar behavior of scrolling the\n * page.\n *\n * Tracking at:\n * https://code.google.com/p/chromium/issues/detail?id=355103\n *\n * To avoid this issue, use the keypress event as if no `textInput`\n * event is available.\n */\n var which = nativeEvent.which;\n\n if (which !== SPACEBAR_CODE) {\n return null;\n }\n\n hasSpaceKeypress = true;\n return SPACEBAR_CHAR;\n\n case TOP_TEXT_INPUT:\n // Record the characters to be added to the DOM.\n var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled\n // it at the keypress level and bail immediately. Android Chrome\n // doesn't give us keycodes, so we need to ignore it.\n\n if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {\n return null;\n }\n\n return chars;\n\n default:\n // For other native event types, do nothing.\n return null;\n }\n }\n /**\n * For browsers that do not provide the `textInput` event, extract the\n * appropriate string to use for SyntheticInputEvent.\n *\n * @param {number} topLevelType Number from `TopLevelEventTypes`.\n * @param {object} nativeEvent Native browser event.\n * @return {?string} The fallback string for this `beforeInput` event.\n */\n\n\n function getFallbackBeforeInputChars(topLevelType, nativeEvent) {\n // If we are currently composing (IME) and using a fallback to do so,\n // try to extract the composed characters from the fallback object.\n // If composition event is available, we extract a string only at\n // compositionevent, otherwise extract it at fallback events.\n if (isComposing) {\n if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {\n var chars = getData();\n reset();\n isComposing = false;\n return chars;\n }\n\n return null;\n }\n\n switch (topLevelType) {\n case TOP_PASTE:\n // If a paste event occurs after a keypress, throw out the input\n // chars. Paste events should not lead to BeforeInput events.\n return null;\n\n case TOP_KEY_PRESS:\n /**\n * As of v27, Firefox may fire keypress events even when no character\n * will be inserted. A few possibilities:\n *\n * - `which` is `0`. Arrow keys, Esc key, etc.\n *\n * - `which` is the pressed key code, but no char is available.\n * Ex: 'AltGr + d` in Polish. There is no modified character for\n * this key combination and no character is inserted into the\n * document, but FF fires the keypress for char code `100` anyway.\n * No `input` event will occur.\n *\n * - `which` is the pressed key code, but a command combination is\n * being used. Ex: `Cmd+C`. No character is inserted, and no\n * `input` event will occur.\n */\n if (!isKeypressCommand(nativeEvent)) {\n // IE fires the `keypress` event when a user types an emoji via\n // Touch keyboard of Windows. In such a case, the `char` property\n // holds an emoji character like `\\uD83D\\uDE0A`. Because its length\n // is 2, the property `which` does not represent an emoji correctly.\n // In such a case, we directly return the `char` property instead of\n // using `which`.\n if (nativeEvent.char && nativeEvent.char.length > 1) {\n return nativeEvent.char;\n } else if (nativeEvent.which) {\n return String.fromCharCode(nativeEvent.which);\n }\n }\n\n return null;\n\n case TOP_COMPOSITION_END:\n return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;\n\n default:\n return null;\n }\n }\n /**\n * Extract a SyntheticInputEvent for `beforeInput`, based on either native\n * `textInput` or fallback behavior.\n *\n * @return {?object} A SyntheticInputEvent.\n */\n\n\n function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var chars = void 0;\n\n if (canUseTextInputEvent) {\n chars = getNativeBeforeInputChars(topLevelType, nativeEvent);\n } else {\n chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);\n } // If no characters are being inserted, no BeforeInput event should\n // be fired.\n\n\n if (!chars) {\n return null;\n }\n\n var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);\n event.data = chars;\n accumulateTwoPhaseDispatches(event);\n return event;\n }\n /**\n * Create an `onBeforeInput` event to match\n * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.\n *\n * This event plugin is based on the native `textInput` event\n * available in Chrome, Safari, Opera, and IE. This event fires after\n * `onKeyPress` and `onCompositionEnd`, but before `onInput`.\n *\n * `beforeInput` is spec'd but not implemented in any browsers, and\n * the `input` event does not provide any useful information about what has\n * actually been added, contrary to the spec. Thus, `textInput` is the best\n * available event to identify the characters that have actually been inserted\n * into the target node.\n *\n * This plugin is also responsible for emitting `composition` events, thus\n * allowing us to share composition fallback code for both `beforeInput` and\n * `composition` event types.\n */\n\n\n var BeforeInputEventPlugin = {\n eventTypes: eventTypes,\n extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n\n if (composition === null) {\n return beforeInput;\n }\n\n if (beforeInput === null) {\n return composition;\n }\n\n return [composition, beforeInput];\n }\n }; // Use to restore controlled state after a change event has fired.\n\n var restoreImpl = null;\n var restoreTarget = null;\n var restoreQueue = null;\n\n function restoreStateOfTarget(target) {\n // We perform this translation at the end of the event loop so that we\n // always receive the correct fiber here\n var internalInstance = getInstanceFromNode(target);\n\n if (!internalInstance) {\n // Unmounted\n return;\n }\n\n !(typeof restoreImpl === 'function') ? invariant(false, 'setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);\n restoreImpl(internalInstance.stateNode, internalInstance.type, props);\n }\n\n function setRestoreImplementation(impl) {\n restoreImpl = impl;\n }\n\n function enqueueStateRestore(target) {\n if (restoreTarget) {\n if (restoreQueue) {\n restoreQueue.push(target);\n } else {\n restoreQueue = [target];\n }\n } else {\n restoreTarget = target;\n }\n }\n\n function needsStateRestore() {\n return restoreTarget !== null || restoreQueue !== null;\n }\n\n function restoreStateIfNeeded() {\n if (!restoreTarget) {\n return;\n }\n\n var target = restoreTarget;\n var queuedTargets = restoreQueue;\n restoreTarget = null;\n restoreQueue = null;\n restoreStateOfTarget(target);\n\n if (queuedTargets) {\n for (var i = 0; i < queuedTargets.length; i++) {\n restoreStateOfTarget(queuedTargets[i]);\n }\n }\n } // Used as a way to call batchedUpdates when we don't have a reference to\n // the renderer. Such as when we're dispatching events or if third party\n // libraries need to call batchedUpdates. Eventually, this API will go away when\n // everything is batched by default. We'll then have a similar API to opt-out of\n // scheduled work and instead do synchronous work.\n // Defaults\n\n\n var _batchedUpdatesImpl = function _batchedUpdatesImpl(fn, bookkeeping) {\n return fn(bookkeeping);\n };\n\n var _interactiveUpdatesImpl = function _interactiveUpdatesImpl(fn, a, b) {\n return fn(a, b);\n };\n\n var _flushInteractiveUpdatesImpl = function _flushInteractiveUpdatesImpl() {};\n\n var isBatching = false;\n\n function batchedUpdates(fn, bookkeeping) {\n if (isBatching) {\n // If we are currently inside another batch, we need to wait until it\n // fully completes before restoring state.\n return fn(bookkeeping);\n }\n\n isBatching = true;\n\n try {\n return _batchedUpdatesImpl(fn, bookkeeping);\n } finally {\n // Here we wait until all updates have propagated, which is important\n // when using controlled components within layers:\n // https://github.com/facebook/react/issues/1698\n // Then we restore state of any controlled component.\n isBatching = false;\n var controlledComponentsHavePendingUpdates = needsStateRestore();\n\n if (controlledComponentsHavePendingUpdates) {\n // If a controlled event was fired, we may need to restore the state of\n // the DOM node back to the controlled value. This is necessary when React\n // bails out of the update without touching the DOM.\n _flushInteractiveUpdatesImpl();\n\n restoreStateIfNeeded();\n }\n }\n }\n\n function interactiveUpdates(fn, a, b) {\n return _interactiveUpdatesImpl(fn, a, b);\n }\n\n function setBatchingImplementation(batchedUpdatesImpl, interactiveUpdatesImpl, flushInteractiveUpdatesImpl) {\n _batchedUpdatesImpl = batchedUpdatesImpl;\n _interactiveUpdatesImpl = interactiveUpdatesImpl;\n _flushInteractiveUpdatesImpl = flushInteractiveUpdatesImpl;\n }\n /**\n * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary\n */\n\n\n var supportedInputTypes = {\n color: true,\n date: true,\n datetime: true,\n 'datetime-local': true,\n email: true,\n month: true,\n number: true,\n password: true,\n range: true,\n search: true,\n tel: true,\n text: true,\n time: true,\n url: true,\n week: true\n };\n\n function isTextInputElement(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n\n if (nodeName === 'input') {\n return !!supportedInputTypes[elem.type];\n }\n\n if (nodeName === 'textarea') {\n return true;\n }\n\n return false;\n }\n /**\n * HTML nodeType values that represent the type of the node\n */\n\n\n var ELEMENT_NODE = 1;\n var TEXT_NODE = 3;\n var COMMENT_NODE = 8;\n var DOCUMENT_NODE = 9;\n var DOCUMENT_FRAGMENT_NODE = 11;\n /**\n * Gets the target node from a native browser event by accounting for\n * inconsistencies in browser DOM APIs.\n *\n * @param {object} nativeEvent Native browser event.\n * @return {DOMEventTarget} Target node.\n */\n\n function getEventTarget(nativeEvent) {\n // Fallback to nativeEvent.srcElement for IE9\n // https://github.com/facebook/react/issues/12506\n var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG element events #4963\n\n if (target.correspondingUseElement) {\n target = target.correspondingUseElement;\n } // Safari may fire events on text nodes (Node.TEXT_NODE is 3).\n // @see http://www.quirksmode.org/js/events_properties.html\n\n\n return target.nodeType === TEXT_NODE ? target.parentNode : target;\n }\n /**\n * Checks if an event is supported in the current execution environment.\n *\n * NOTE: This will not work correctly for non-generic events such as `change`,\n * `reset`, `load`, `error`, and `select`.\n *\n * Borrows from Modernizr.\n *\n * @param {string} eventNameSuffix Event name, e.g. \"click\".\n * @return {boolean} True if the event is supported.\n * @internal\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\n\n\n function isEventSupported(eventNameSuffix) {\n if (!canUseDOM) {\n return false;\n }\n\n var eventName = 'on' + eventNameSuffix;\n var isSupported = eventName in document;\n\n if (!isSupported) {\n var element = document.createElement('div');\n element.setAttribute(eventName, 'return;');\n isSupported = typeof element[eventName] === 'function';\n }\n\n return isSupported;\n }\n\n function isCheckable(elem) {\n var type = elem.type;\n var nodeName = elem.nodeName;\n return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');\n }\n\n function getTracker(node) {\n return node._valueTracker;\n }\n\n function detachTracker(node) {\n node._valueTracker = null;\n }\n\n function getValueFromNode(node) {\n var value = '';\n\n if (!node) {\n return value;\n }\n\n if (isCheckable(node)) {\n value = node.checked ? 'true' : 'false';\n } else {\n value = node.value;\n }\n\n return value;\n }\n\n function trackValueOnNode(node) {\n var valueField = isCheckable(node) ? 'checked' : 'value';\n var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);\n var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail\n // and don't track value will cause over reporting of changes,\n // but it's better then a hard failure\n // (needed for certain tests that spyOn input values and Safari)\n\n if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {\n return;\n }\n\n var _get = descriptor.get,\n _set = descriptor.set;\n Object.defineProperty(node, valueField, {\n configurable: true,\n get: function get() {\n return _get.call(this);\n },\n set: function set(value) {\n currentValue = '' + value;\n\n _set.call(this, value);\n }\n }); // We could've passed this the first time\n // but it triggers a bug in IE11 and Edge 14/15.\n // Calling defineProperty() again should be equivalent.\n // https://github.com/facebook/react/issues/11768\n\n Object.defineProperty(node, valueField, {\n enumerable: descriptor.enumerable\n });\n var tracker = {\n getValue: function getValue() {\n return currentValue;\n },\n setValue: function setValue(value) {\n currentValue = '' + value;\n },\n stopTracking: function stopTracking() {\n detachTracker(node);\n delete node[valueField];\n }\n };\n return tracker;\n }\n\n function track(node) {\n if (getTracker(node)) {\n return;\n } // TODO: Once it's just Fiber we can move this to node._wrapperState\n\n\n node._valueTracker = trackValueOnNode(node);\n }\n\n function updateValueIfChanged(node) {\n if (!node) {\n return false;\n }\n\n var tracker = getTracker(node); // if there is no tracker at this point it's unlikely\n // that trying again will succeed\n\n if (!tracker) {\n return true;\n }\n\n var lastValue = tracker.getValue();\n var nextValue = getValueFromNode(node);\n\n if (nextValue !== lastValue) {\n tracker.setValue(nextValue);\n return true;\n }\n\n return false;\n }\n\n var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n var BEFORE_SLASH_RE = /^(.*)[\\\\\\/]/;\n\n var describeComponentFrame = function describeComponentFrame(name, source, ownerName) {\n var sourceInfo = '';\n\n if (source) {\n var path = source.fileName;\n var fileName = path.replace(BEFORE_SLASH_RE, '');\n {\n // In DEV, include code for a common special case:\n // prefer \"folder/index.js\" instead of just \"index.js\".\n if (/^index\\./.test(fileName)) {\n var match = path.match(BEFORE_SLASH_RE);\n\n if (match) {\n var pathBeforeSlash = match[1];\n\n if (pathBeforeSlash) {\n var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');\n fileName = folderName + '/' + fileName;\n }\n }\n }\n }\n sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';\n } else if (ownerName) {\n sourceInfo = ' (created by ' + ownerName + ')';\n }\n\n return '\\n in ' + (name || 'Unknown') + sourceInfo;\n }; // The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n // nor polyfill, then a plain number is used for performance.\n\n\n var hasSymbol = typeof Symbol === 'function' && Symbol.for;\n var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\n var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\n var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\n var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\n var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\n var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\n var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;\n var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\n var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\n var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\n var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\n var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\n var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator';\n\n function getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n }\n\n var Pending = 0;\n var Resolved = 1;\n var Rejected = 2;\n\n function refineResolvedLazyComponent(lazyComponent) {\n return lazyComponent._status === Resolved ? lazyComponent._result : null;\n }\n\n function getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);\n }\n\n function getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_CONCURRENT_MODE_TYPE:\n return 'ConcurrentMode';\n\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n return 'Context.Consumer';\n\n case REACT_PROVIDER_TYPE:\n return 'Context.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n\n case REACT_LAZY_TYPE:\n {\n var thenable = type;\n var resolvedThenable = refineResolvedLazyComponent(thenable);\n\n if (resolvedThenable) {\n return getComponentName(resolvedThenable);\n }\n }\n }\n }\n\n return null;\n }\n\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\n function describeFiber(fiber) {\n switch (fiber.tag) {\n case HostRoot:\n case HostPortal:\n case HostText:\n case Fragment:\n case ContextProvider:\n case ContextConsumer:\n return '';\n\n default:\n var owner = fiber._debugOwner;\n var source = fiber._debugSource;\n var name = getComponentName(fiber.type);\n var ownerName = null;\n\n if (owner) {\n ownerName = getComponentName(owner.type);\n }\n\n return describeComponentFrame(name, source, ownerName);\n }\n }\n\n function getStackByFiberInDevAndProd(workInProgress) {\n var info = '';\n var node = workInProgress;\n\n do {\n info += describeFiber(node);\n node = node.return;\n } while (node);\n\n return info;\n }\n\n var current = null;\n var phase = null;\n\n function getCurrentFiberOwnerNameInDevOrNull() {\n {\n if (current === null) {\n return null;\n }\n\n var owner = current._debugOwner;\n\n if (owner !== null && typeof owner !== 'undefined') {\n return getComponentName(owner.type);\n }\n }\n return null;\n }\n\n function getCurrentFiberStackInDev() {\n {\n if (current === null) {\n return '';\n } // Safe because if current fiber exists, we are reconciling,\n // and it is guaranteed to be the work-in-progress version.\n\n\n return getStackByFiberInDevAndProd(current);\n }\n return '';\n }\n\n function resetCurrentFiber() {\n {\n ReactDebugCurrentFrame.getCurrentStack = null;\n current = null;\n phase = null;\n }\n }\n\n function setCurrentFiber(fiber) {\n {\n ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;\n current = fiber;\n phase = null;\n }\n }\n\n function setCurrentPhase(lifeCyclePhase) {\n {\n phase = lifeCyclePhase;\n }\n }\n /**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\n\n var warning = warningWithoutStack$1;\n {\n warning = function warning(condition, format) {\n if (condition) {\n return;\n }\n\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum(); // eslint-disable-next-line react-internal/warning-and-invariant-args\n\n for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));\n };\n }\n var warning$1 = warning; // A reserved attribute.\n // It is handled by React separately and shouldn't be written to the DOM.\n\n var RESERVED = 0; // A simple string attribute.\n // Attributes that aren't in the whitelist are presumed to have this type.\n\n var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called\n // \"enumerated\" attributes with \"true\" and \"false\" as possible values.\n // When true, it should be set to a \"true\" string.\n // When false, it should be set to a \"false\" string.\n\n var BOOLEANISH_STRING = 2; // A real boolean attribute.\n // When true, it should be present (set either to an empty string or its name).\n // When false, it should be omitted.\n\n var BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.\n // When true, it should be present (set either to an empty string or its name).\n // When false, it should be omitted.\n // For any other value, should be present with that value.\n\n var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.\n // When falsy, it should be removed.\n\n var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.\n // When falsy, it should be removed.\n\n var POSITIVE_NUMERIC = 6;\n /* eslint-disable max-len */\n\n var ATTRIBUTE_NAME_START_CHAR = \":A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\";\n /* eslint-enable max-len */\n\n var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + \"\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\";\n var ROOT_ATTRIBUTE_NAME = 'data-reactroot';\n var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var illegalAttributeNameCache = {};\n var validatedAttributeNameCache = {};\n\n function isAttributeNameSafe(attributeName) {\n if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {\n return true;\n }\n\n if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {\n return false;\n }\n\n if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {\n validatedAttributeNameCache[attributeName] = true;\n return true;\n }\n\n illegalAttributeNameCache[attributeName] = true;\n {\n warning$1(false, 'Invalid attribute name: `%s`', attributeName);\n }\n return false;\n }\n\n function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {\n if (propertyInfo !== null) {\n return propertyInfo.type === RESERVED;\n }\n\n if (isCustomComponentTag) {\n return false;\n }\n\n if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {\n return true;\n }\n\n return false;\n }\n\n function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {\n if (propertyInfo !== null && propertyInfo.type === RESERVED) {\n return false;\n }\n\n switch (typeof value) {\n case 'function': // $FlowIssue symbol is perfectly valid here\n\n case 'symbol':\n // eslint-disable-line\n return true;\n\n case 'boolean':\n {\n if (isCustomComponentTag) {\n return false;\n }\n\n if (propertyInfo !== null) {\n return !propertyInfo.acceptsBooleans;\n } else {\n var prefix = name.toLowerCase().slice(0, 5);\n return prefix !== 'data-' && prefix !== 'aria-';\n }\n }\n\n default:\n return false;\n }\n }\n\n function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {\n if (value === null || typeof value === 'undefined') {\n return true;\n }\n\n if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {\n return true;\n }\n\n if (isCustomComponentTag) {\n return false;\n }\n\n if (propertyInfo !== null) {\n switch (propertyInfo.type) {\n case BOOLEAN:\n return !value;\n\n case OVERLOADED_BOOLEAN:\n return value === false;\n\n case NUMERIC:\n return isNaN(value);\n\n case POSITIVE_NUMERIC:\n return isNaN(value) || value < 1;\n }\n }\n\n return false;\n }\n\n function getPropertyInfo(name) {\n return properties.hasOwnProperty(name) ? properties[name] : null;\n }\n\n function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace) {\n this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;\n this.attributeName = attributeName;\n this.attributeNamespace = attributeNamespace;\n this.mustUseProperty = mustUseProperty;\n this.propertyName = name;\n this.type = type;\n } // When adding attributes to this list, be sure to also add them to\n // the `possibleStandardNames` module to ensure casing and incorrect\n // name warnings.\n\n\n var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.\n\n ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular\n // elements (not just inputs). Now that ReactDOMInput assigns to the\n // defaultValue property -- do we need this?\n 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty\n name, // attributeName\n null);\n } // attributeNamespace\n ); // A few React string attributes have a different name.\n // This is a mapping from React prop names to the attribute names.\n\n [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {\n var name = _ref[0],\n attributeName = _ref[1];\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, // attributeName\n null);\n } // attributeNamespace\n ); // These are \"enumerated\" HTML attributes that accept \"true\" and \"false\".\n // In React, we let users pass `true` and `false` even though technically\n // these aren't boolean attributes (they are coerced to strings).\n\n ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null);\n } // attributeNamespace\n ); // These are \"enumerated\" SVG attributes that accept \"true\" and \"false\".\n // In React, we let users pass `true` and `false` even though technically\n // these aren't boolean attributes (they are coerced to strings).\n // Since these are SVG attributes, their attribute names are case-sensitive.\n\n ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n name, // attributeName\n null);\n } // attributeNamespace\n ); // These are HTML boolean attributes.\n\n ['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM\n // on the client side because the browsers are inconsistent. Instead we call focus().\n 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata\n 'itemScope'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null);\n } // attributeNamespace\n ); // These are the few React props that we set as DOM properties\n // rather than attributes. These are all booleans.\n\n ['checked', // Note: `option.selected` is not updated if `select.multiple` is\n // disabled with `removeAttribute`. We have special logic for handling this.\n 'multiple', 'muted', 'selected'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty\n name, // attributeName\n null);\n } // attributeNamespace\n ); // These are HTML attributes that are \"overloaded booleans\": they behave like\n // booleans, but can also accept a string value.\n\n ['capture', 'download'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty\n name, // attributeName\n null);\n } // attributeNamespace\n ); // These are HTML attributes that must be positive numbers.\n\n ['cols', 'rows', 'size', 'span'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty\n name, // attributeName\n null);\n } // attributeNamespace\n ); // These are HTML attributes that must be numbers.\n\n ['rowSpan', 'start'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null);\n } // attributeNamespace\n );\n var CAMELIZE = /[\\-\\:]([a-z])/g;\n\n var capitalize = function capitalize(token) {\n return token[1].toUpperCase();\n }; // This is a list of all SVG attributes that need special casing, namespacing,\n // or boolean value assignment. Regular attributes that just accept strings\n // and have the same names are omitted, just like in the HTML whitelist.\n // Some of these attributes can be hard to find. This list was created by\n // scrapping the MDN documentation.\n\n\n ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, null);\n } // attributeNamespace\n ); // String SVG attributes with the xlink namespace.\n\n ['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, 'http://www.w3.org/1999/xlink');\n }); // String SVG attributes with the xml namespace.\n\n ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, 'http://www.w3.org/XML/1998/namespace');\n }); // Special case: this attribute exists both in HTML and SVG.\n // Its \"tabindex\" attribute name is case-sensitive in SVG so we can't just use\n // its React `tabIndex` name, like we do for attributes that exist only in HTML.\n\n properties.tabIndex = new PropertyInfoRecord('tabIndex', STRING, false, // mustUseProperty\n 'tabindex', // attributeName\n null);\n /**\n * Get the value for a property on a node. Only used in DEV for SSR validation.\n * The \"expected\" argument is used as a hint of what the expected value is.\n * Some properties have multiple equivalent values.\n */\n\n function getValueForProperty(node, name, expected, propertyInfo) {\n {\n if (propertyInfo.mustUseProperty) {\n var propertyName = propertyInfo.propertyName;\n return node[propertyName];\n } else {\n var attributeName = propertyInfo.attributeName;\n var stringValue = null;\n\n if (propertyInfo.type === OVERLOADED_BOOLEAN) {\n if (node.hasAttribute(attributeName)) {\n var value = node.getAttribute(attributeName);\n\n if (value === '') {\n return true;\n }\n\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n return value;\n }\n\n if (value === '' + expected) {\n return expected;\n }\n\n return value;\n }\n } else if (node.hasAttribute(attributeName)) {\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n // We had an attribute but shouldn't have had one, so read it\n // for the error message.\n return node.getAttribute(attributeName);\n }\n\n if (propertyInfo.type === BOOLEAN) {\n // If this was a boolean, it doesn't matter what the value is\n // the fact that we have it is the same as the expected.\n return expected;\n } // Even if this property uses a namespace we use getAttribute\n // because we assume its namespaced name is the same as our config.\n // To use getAttributeNS we need the local name which we don't have\n // in our config atm.\n\n\n stringValue = node.getAttribute(attributeName);\n }\n\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n return stringValue === null ? expected : stringValue;\n } else if (stringValue === '' + expected) {\n return expected;\n } else {\n return stringValue;\n }\n }\n }\n }\n /**\n * Get the value for a attribute on a node. Only used in DEV for SSR validation.\n * The third argument is used as a hint of what the expected value is. Some\n * attributes have multiple equivalent values.\n */\n\n\n function getValueForAttribute(node, name, expected) {\n {\n if (!isAttributeNameSafe(name)) {\n return;\n }\n\n if (!node.hasAttribute(name)) {\n return expected === undefined ? undefined : null;\n }\n\n var value = node.getAttribute(name);\n\n if (value === '' + expected) {\n return expected;\n }\n\n return value;\n }\n }\n /**\n * Sets the value for a property on a node.\n *\n * @param {DOMElement} node\n * @param {string} name\n * @param {*} value\n */\n\n\n function setValueForProperty(node, name, value, isCustomComponentTag) {\n var propertyInfo = getPropertyInfo(name);\n\n if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {\n return;\n }\n\n if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {\n value = null;\n } // If the prop isn't in the special list, treat it as a simple attribute.\n\n\n if (isCustomComponentTag || propertyInfo === null) {\n if (isAttributeNameSafe(name)) {\n var _attributeName = name;\n\n if (value === null) {\n node.removeAttribute(_attributeName);\n } else {\n node.setAttribute(_attributeName, '' + value);\n }\n }\n\n return;\n }\n\n var mustUseProperty = propertyInfo.mustUseProperty;\n\n if (mustUseProperty) {\n var propertyName = propertyInfo.propertyName;\n\n if (value === null) {\n var type = propertyInfo.type;\n node[propertyName] = type === BOOLEAN ? false : '';\n } else {\n // Contrary to `setAttribute`, object properties are properly\n // `toString`ed by IE8/9.\n node[propertyName] = value;\n }\n\n return;\n } // The rest are treated as attributes with special cases.\n\n\n var attributeName = propertyInfo.attributeName,\n attributeNamespace = propertyInfo.attributeNamespace;\n\n if (value === null) {\n node.removeAttribute(attributeName);\n } else {\n var _type = propertyInfo.type;\n var attributeValue = void 0;\n\n if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {\n attributeValue = '';\n } else {\n // `setAttribute` with objects becomes only `[object]` in IE8/9,\n // ('' + value) makes it output the correct toString()-value.\n attributeValue = '' + value;\n }\n\n if (attributeNamespace) {\n node.setAttributeNS(attributeNamespace, attributeName, attributeValue);\n } else {\n node.setAttribute(attributeName, attributeValue);\n }\n }\n } // Flow does not allow string concatenation of most non-string types. To work\n // around this limitation, we use an opaque type that can only be obtained by\n // passing the value through getToStringValue first.\n\n\n function toString(value) {\n return '' + value;\n }\n\n function getToStringValue(value) {\n switch (typeof value) {\n case 'boolean':\n case 'number':\n case 'object':\n case 'string':\n case 'undefined':\n return value;\n\n default:\n // function, symbol are assigned as empty strings\n return '';\n }\n }\n\n var ReactDebugCurrentFrame$1 = null;\n var ReactControlledValuePropTypes = {\n checkPropTypes: null\n };\n {\n ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n var hasReadOnlyValue = {\n button: true,\n checkbox: true,\n image: true,\n hidden: true,\n radio: true,\n reset: true,\n submit: true\n };\n var propTypes = {\n value: function value(props, propName, componentName) {\n if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null) {\n return null;\n }\n\n return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n },\n checked: function checked(props, propName, componentName) {\n if (props.onChange || props.readOnly || props.disabled || props[propName] == null) {\n return null;\n }\n\n return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n }\n };\n /**\n * Provide a linked `value` attribute for controlled forms. You should not use\n * this outside of the ReactDOM controlled form components.\n */\n\n ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {\n checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$1.getStackAddendum);\n };\n }\n var enableUserTimingAPI = true;\n var enableHooks = false; // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:\n\n var debugRenderPhaseSideEffects = false; // In some cases, StrictMode should also double-render lifecycles.\n // This can be confusing for tests though,\n // And it can be bad for performance in production.\n // This feature flag can be used to control the behavior:\n\n var debugRenderPhaseSideEffectsForStrictMode = true; // To preserve the \"Pause on caught exceptions\" behavior of the debugger, we\n // replay the begin phase of a failed component inside invokeGuardedCallback.\n\n var replayFailedUnitOfWorkWithInvokeGuardedCallback = true; // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:\n\n var warnAboutDeprecatedLifecycles = false; // Gather advanced timing metrics for Profiler subtrees.\n\n var enableProfilerTimer = true; // Trace which interactions trigger each commit.\n\n var enableSchedulerTracing = true; // Only used in www builds.\n // TODO: true? Here it might just be false.\n // Only used in www builds.\n // Only used in www builds.\n // React Fire: prevent the value and checked attributes from syncing\n // with their related DOM properties\n\n var disableInputAttributeSyncing = false; // These APIs will no longer be \"unstable\" in the upcoming 16.7 release,\n // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.\n\n var enableStableConcurrentModeAPIs = false;\n var warnAboutShorthandPropertyCollision = false; // TODO: direct imports like some-package/src/* are bad. Fix me.\n\n var didWarnValueDefaultValue = false;\n var didWarnCheckedDefaultChecked = false;\n var didWarnControlledToUncontrolled = false;\n var didWarnUncontrolledToControlled = false;\n\n function isControlled(props) {\n var usesChecked = props.type === 'checkbox' || props.type === 'radio';\n return usesChecked ? props.checked != null : props.value != null;\n }\n /**\n * Implements an host component that allows setting these optional\n * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.\n *\n * If `checked` or `value` are not supplied (or null/undefined), user actions\n * that affect the checked state or value will trigger updates to the element.\n *\n * If they are supplied (and not null/undefined), the rendered element will not\n * trigger updates to the element. Instead, the props must change in order for\n * the rendered element to be updated.\n *\n * The rendered element will be initialized as unchecked (or `defaultChecked`)\n * with an empty value (or `defaultValue`).\n *\n * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html\n */\n\n\n function getHostProps(element, props) {\n var node = element;\n var checked = props.checked;\n\n var hostProps = _assign({}, props, {\n defaultChecked: undefined,\n defaultValue: undefined,\n value: undefined,\n checked: checked != null ? checked : node._wrapperState.initialChecked\n });\n\n return hostProps;\n }\n\n function initWrapperState(element, props) {\n {\n ReactControlledValuePropTypes.checkPropTypes('input', props);\n\n if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {\n warning$1(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);\n didWarnCheckedDefaultChecked = true;\n }\n\n if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {\n warning$1(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);\n didWarnValueDefaultValue = true;\n }\n }\n var node = element;\n var defaultValue = props.defaultValue == null ? '' : props.defaultValue;\n node._wrapperState = {\n initialChecked: props.checked != null ? props.checked : props.defaultChecked,\n initialValue: getToStringValue(props.value != null ? props.value : defaultValue),\n controlled: isControlled(props)\n };\n }\n\n function updateChecked(element, props) {\n var node = element;\n var checked = props.checked;\n\n if (checked != null) {\n setValueForProperty(node, 'checked', checked, false);\n }\n }\n\n function updateWrapper(element, props) {\n var node = element;\n {\n var _controlled = isControlled(props);\n\n if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {\n warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);\n didWarnUncontrolledToControlled = true;\n }\n\n if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {\n warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);\n didWarnControlledToUncontrolled = true;\n }\n }\n updateChecked(element, props);\n var value = getToStringValue(props.value);\n var type = props.type;\n\n if (value != null) {\n if (type === 'number') {\n if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.\n // eslint-disable-next-line\n node.value != value) {\n node.value = toString(value);\n }\n } else if (node.value !== toString(value)) {\n node.value = toString(value);\n }\n } else if (type === 'submit' || type === 'reset') {\n // Submit/reset inputs need the attribute removed completely to avoid\n // blank-text buttons.\n node.removeAttribute('value');\n return;\n }\n\n if (disableInputAttributeSyncing) {\n // When not syncing the value attribute, React only assigns a new value\n // whenever the defaultValue React prop has changed. When not present,\n // React does nothing\n if (props.hasOwnProperty('defaultValue')) {\n setDefaultValue(node, props.type, getToStringValue(props.defaultValue));\n }\n } else {\n // When syncing the value attribute, the value comes from a cascade of\n // properties:\n // 1. The value React property\n // 2. The defaultValue React property\n // 3. Otherwise there should be no change\n if (props.hasOwnProperty('value')) {\n setDefaultValue(node, props.type, value);\n } else if (props.hasOwnProperty('defaultValue')) {\n setDefaultValue(node, props.type, getToStringValue(props.defaultValue));\n }\n }\n\n if (disableInputAttributeSyncing) {\n // When not syncing the checked attribute, the attribute is directly\n // controllable from the defaultValue React property. It needs to be\n // updated as new props come in.\n if (props.defaultChecked == null) {\n node.removeAttribute('checked');\n } else {\n node.defaultChecked = !!props.defaultChecked;\n }\n } else {\n // When syncing the checked attribute, it only changes when it needs\n // to be removed, such as transitioning from a checkbox into a text input\n if (props.checked == null && props.defaultChecked != null) {\n node.defaultChecked = !!props.defaultChecked;\n }\n }\n }\n\n function postMountWrapper(element, props, isHydrating) {\n var node = element; // Do not assign value if it is already set. This prevents user text input\n // from being lost during SSR hydration.\n\n if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {\n var type = props.type;\n var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the\n // default value provided by the browser. See: #12872\n\n if (isButton && (props.value === undefined || props.value === null)) {\n return;\n }\n\n var _initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input\n // from being lost during SSR hydration.\n\n\n if (!isHydrating) {\n if (disableInputAttributeSyncing) {\n var value = getToStringValue(props.value); // When not syncing the value attribute, the value property points\n // directly to the React prop. Only assign it if it exists.\n\n if (value != null) {\n // Always assign on buttons so that it is possible to assign an\n // empty string to clear button text.\n //\n // Otherwise, do not re-assign the value property if is empty. This\n // potentially avoids a DOM write and prevents Firefox (~60.0.1) from\n // prematurely marking required inputs as invalid. Equality is compared\n // to the current value in case the browser provided value is not an\n // empty string.\n if (isButton || value !== node.value) {\n node.value = toString(value);\n }\n }\n } else {\n // When syncing the value attribute, the value property should use\n // the wrapperState._initialValue property. This uses:\n //\n // 1. The value React property when present\n // 2. The defaultValue React property when present\n // 3. An empty string\n if (_initialValue !== node.value) {\n node.value = _initialValue;\n }\n }\n }\n\n if (disableInputAttributeSyncing) {\n // When not syncing the value attribute, assign the value attribute\n // directly from the defaultValue React property (when present)\n var defaultValue = getToStringValue(props.defaultValue);\n\n if (defaultValue != null) {\n node.defaultValue = toString(defaultValue);\n }\n } else {\n // Otherwise, the value attribute is synchronized to the property,\n // so we assign defaultValue to the same thing as the value property\n // assignment step above.\n node.defaultValue = _initialValue;\n }\n } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug\n // this is needed to work around a chrome bug where setting defaultChecked\n // will sometimes influence the value of checked (even after detachment).\n // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416\n // We need to temporarily unset name to avoid disrupting radio button groups.\n\n\n var name = node.name;\n\n if (name !== '') {\n node.name = '';\n }\n\n if (disableInputAttributeSyncing) {\n // When not syncing the checked attribute, the checked property\n // never gets assigned. It must be manually set. We don't want\n // to do this when hydrating so that existing user input isn't\n // modified\n if (!isHydrating) {\n updateChecked(element, props);\n } // Only assign the checked attribute if it is defined. This saves\n // a DOM write when controlling the checked attribute isn't needed\n // (text inputs, submit/reset)\n\n\n if (props.hasOwnProperty('defaultChecked')) {\n node.defaultChecked = !node.defaultChecked;\n node.defaultChecked = !!props.defaultChecked;\n }\n } else {\n // When syncing the checked attribute, both the checked property and\n // attribute are assigned at the same time using defaultChecked. This uses:\n //\n // 1. The checked React property when present\n // 2. The defaultChecked React property when present\n // 3. Otherwise, false\n node.defaultChecked = !node.defaultChecked;\n node.defaultChecked = !!node._wrapperState.initialChecked;\n }\n\n if (name !== '') {\n node.name = name;\n }\n }\n\n function restoreControlledState(element, props) {\n var node = element;\n updateWrapper(node, props);\n updateNamedCousins(node, props);\n }\n\n function updateNamedCousins(rootNode, props) {\n var name = props.name;\n\n if (props.type === 'radio' && name != null) {\n var queryRoot = rootNode;\n\n while (queryRoot.parentNode) {\n queryRoot = queryRoot.parentNode;\n } // If `rootNode.form` was non-null, then we could try `form.elements`,\n // but that sometimes behaves strangely in IE8. We could also try using\n // `form.getElementsByName`, but that will only return direct children\n // and won't include inputs that use the HTML5 `form=` attribute. Since\n // the input might not even be in a form. It might not even be in the\n // document. Let's just use the local `querySelectorAll` to ensure we don't\n // miss anything.\n\n\n var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type=\"radio\"]');\n\n for (var i = 0; i < group.length; i++) {\n var otherNode = group[i];\n\n if (otherNode === rootNode || otherNode.form !== rootNode.form) {\n continue;\n } // This will throw if radio buttons rendered by different copies of React\n // and the same name are rendered into the same form (same as #1939).\n // That's probably okay; we don't support it just as we don't support\n // mixing React radio buttons with non-React ones.\n\n\n var otherProps = getFiberCurrentPropsFromNode$1(otherNode);\n !otherProps ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : void 0; // We need update the tracked value on the named cousin since the value\n // was changed but the input saw no event or value set\n\n updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that\n // was previously checked to update will cause it to be come re-checked\n // as appropriate.\n\n updateWrapper(otherNode, otherProps);\n }\n }\n } // In Chrome, assigning defaultValue to certain input types triggers input validation.\n // For number inputs, the display value loses trailing decimal points. For email inputs,\n // Chrome raises \"The specified value is not a valid email address\".\n //\n // Here we check to see if the defaultValue has actually changed, avoiding these problems\n // when the user is inputting text\n //\n // https://github.com/facebook/react/issues/7253\n\n\n function setDefaultValue(node, type, value) {\n if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js\n type !== 'number' || node.ownerDocument.activeElement !== node) {\n if (value == null) {\n node.defaultValue = toString(node._wrapperState.initialValue);\n } else if (node.defaultValue !== toString(value)) {\n node.defaultValue = toString(value);\n }\n }\n }\n\n var eventTypes$1 = {\n change: {\n phasedRegistrationNames: {\n bubbled: 'onChange',\n captured: 'onChangeCapture'\n },\n dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]\n }\n };\n\n function createAndAccumulateChangeEvent(inst, nativeEvent, target) {\n var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);\n event.type = 'change'; // Flag this event loop as needing state restore.\n\n enqueueStateRestore(target);\n accumulateTwoPhaseDispatches(event);\n return event;\n }\n /**\n * For IE shims\n */\n\n\n var activeElement = null;\n var activeElementInst = null;\n /**\n * SECTION: handle `change` event\n */\n\n function shouldUseChangeEvent(elem) {\n var nodeName = elem.nodeName && elem.nodeName.toLowerCase();\n return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';\n }\n\n function manualDispatchChangeEvent(nativeEvent) {\n var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the\n // other events and have it go through ReactBrowserEventEmitter. Since it\n // doesn't, we manually listen for the events and so we have to enqueue and\n // process the abstract event manually.\n //\n // Batching is necessary here in order to ensure that all event handlers run\n // before the next rerender (including event handlers attached to ancestor\n // elements instead of directly on the input). Without this, controlled\n // components don't work properly in conjunction with event bubbling because\n // the component is rerendered and the value reverted before all the event\n // handlers can run. See https://github.com/facebook/react/issues/708.\n\n batchedUpdates(runEventInBatch, event);\n }\n\n function runEventInBatch(event) {\n runEventsInBatch(event);\n }\n\n function getInstIfValueChanged(targetInst) {\n var targetNode = getNodeFromInstance$1(targetInst);\n\n if (updateValueIfChanged(targetNode)) {\n return targetInst;\n }\n }\n\n function getTargetInstForChangeEvent(topLevelType, targetInst) {\n if (topLevelType === TOP_CHANGE) {\n return targetInst;\n }\n }\n /**\n * SECTION: handle `input` event\n */\n\n\n var isInputEventSupported = false;\n\n if (canUseDOM) {\n // IE9 claims to support the input event but fails to trigger it when\n // deleting text, so we ignore its input events.\n isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);\n }\n /**\n * (For IE <=9) Starts tracking propertychange events on the passed-in element\n * and override the value property so that we can distinguish user events from\n * value changes in JS.\n */\n\n\n function startWatchingForValueChange(target, targetInst) {\n activeElement = target;\n activeElementInst = targetInst;\n activeElement.attachEvent('onpropertychange', handlePropertyChange);\n }\n /**\n * (For IE <=9) Removes the event listeners from the currently-tracked element,\n * if any exists.\n */\n\n\n function stopWatchingForValueChange() {\n if (!activeElement) {\n return;\n }\n\n activeElement.detachEvent('onpropertychange', handlePropertyChange);\n activeElement = null;\n activeElementInst = null;\n }\n /**\n * (For IE <=9) Handles a propertychange event, sending a `change` event if\n * the value of the active element has changed.\n */\n\n\n function handlePropertyChange(nativeEvent) {\n if (nativeEvent.propertyName !== 'value') {\n return;\n }\n\n if (getInstIfValueChanged(activeElementInst)) {\n manualDispatchChangeEvent(nativeEvent);\n }\n }\n\n function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {\n if (topLevelType === TOP_FOCUS) {\n // In IE9, propertychange fires for most input events but is buggy and\n // doesn't fire when text is deleted, but conveniently, selectionchange\n // appears to fire in all of the remaining cases so we catch those and\n // forward the event if the value has changed\n // In either case, we don't want to call the event handler if the value\n // is changed from JS so we redefine a setter for `.value` that updates\n // our activeElementValue variable, allowing us to ignore those changes\n //\n // stopWatching() should be a noop here but we call it just in case we\n // missed a blur event somehow.\n stopWatchingForValueChange();\n startWatchingForValueChange(target, targetInst);\n } else if (topLevelType === TOP_BLUR) {\n stopWatchingForValueChange();\n }\n } // For IE8 and IE9.\n\n\n function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {\n if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {\n // On the selectionchange event, the target is just document which isn't\n // helpful for us so just check activeElement instead.\n //\n // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire\n // propertychange on the first input event after setting `value` from a\n // script and fires only keydown, keypress, keyup. Catching keyup usually\n // gets it and catching keydown lets us fire an event for the first\n // keystroke if user does a key repeat (it'll be a little delayed: right\n // before the second keystroke). Other input methods (e.g., paste) seem to\n // fire selectionchange normally.\n return getInstIfValueChanged(activeElementInst);\n }\n }\n /**\n * SECTION: handle `click` event\n */\n\n\n function shouldUseClickEvent(elem) {\n // Use the `click` event to detect changes to checkbox and radio inputs.\n // This approach works across all browsers, whereas `change` does not fire\n // until `blur` in IE8.\n var nodeName = elem.nodeName;\n return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');\n }\n\n function getTargetInstForClickEvent(topLevelType, targetInst) {\n if (topLevelType === TOP_CLICK) {\n return getInstIfValueChanged(targetInst);\n }\n }\n\n function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {\n if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {\n return getInstIfValueChanged(targetInst);\n }\n }\n\n function handleControlledInputBlur(node) {\n var state = node._wrapperState;\n\n if (!state || !state.controlled || node.type !== 'number') {\n return;\n }\n\n if (!disableInputAttributeSyncing) {\n // If controlled, assign the value attribute to the current value on blur\n setDefaultValue(node, 'number', node.value);\n }\n }\n /**\n * This plugin creates an `onChange` event that normalizes change events\n * across form elements. This event fires at a time when it's possible to\n * change the element's value without seeing a flicker.\n *\n * Supported elements are:\n * - input (see `isTextInputElement`)\n * - textarea\n * - select\n */\n\n\n var ChangeEventPlugin = {\n eventTypes: eventTypes$1,\n _isInputEventSupported: isInputEventSupported,\n extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;\n var getTargetInstFunc = void 0,\n handleEventFunc = void 0;\n\n if (shouldUseChangeEvent(targetNode)) {\n getTargetInstFunc = getTargetInstForChangeEvent;\n } else if (isTextInputElement(targetNode)) {\n if (isInputEventSupported) {\n getTargetInstFunc = getTargetInstForInputOrChangeEvent;\n } else {\n getTargetInstFunc = getTargetInstForInputEventPolyfill;\n handleEventFunc = handleEventsForInputEventPolyfill;\n }\n } else if (shouldUseClickEvent(targetNode)) {\n getTargetInstFunc = getTargetInstForClickEvent;\n }\n\n if (getTargetInstFunc) {\n var inst = getTargetInstFunc(topLevelType, targetInst);\n\n if (inst) {\n var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);\n return event;\n }\n }\n\n if (handleEventFunc) {\n handleEventFunc(topLevelType, targetNode, targetInst);\n } // When blurring, set the value attribute for number inputs\n\n\n if (topLevelType === TOP_BLUR) {\n handleControlledInputBlur(targetNode);\n }\n }\n };\n /**\n * Module that is injectable into `EventPluginHub`, that specifies a\n * deterministic ordering of `EventPlugin`s. A convenient way to reason about\n * plugins, without having to package every one of them. This is better than\n * having plugins be ordered in the same order that they are injected because\n * that ordering would be influenced by the packaging order.\n * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that\n * preventing default on events is convenient in `SimpleEventPlugin` handlers.\n */\n\n var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];\n var SyntheticUIEvent = SyntheticEvent.extend({\n view: null,\n detail: null\n });\n var modifierKeyToProp = {\n Alt: 'altKey',\n Control: 'ctrlKey',\n Meta: 'metaKey',\n Shift: 'shiftKey'\n }; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support\n // getModifierState. If getModifierState is not supported, we map it to a set of\n // modifier keys exposed by the event. In this case, Lock-keys are not supported.\n\n /**\n * Translation from modifier key to the associated property in the event.\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers\n */\n\n function modifierStateGetter(keyArg) {\n var syntheticEvent = this;\n var nativeEvent = syntheticEvent.nativeEvent;\n\n if (nativeEvent.getModifierState) {\n return nativeEvent.getModifierState(keyArg);\n }\n\n var keyProp = modifierKeyToProp[keyArg];\n return keyProp ? !!nativeEvent[keyProp] : false;\n }\n\n function getEventModifierState(nativeEvent) {\n return modifierStateGetter;\n }\n\n var previousScreenX = 0;\n var previousScreenY = 0; // Use flags to signal movementX/Y has already been set\n\n var isMovementXSet = false;\n var isMovementYSet = false;\n /**\n * @interface MouseEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\n var SyntheticMouseEvent = SyntheticUIEvent.extend({\n screenX: null,\n screenY: null,\n clientX: null,\n clientY: null,\n pageX: null,\n pageY: null,\n ctrlKey: null,\n shiftKey: null,\n altKey: null,\n metaKey: null,\n getModifierState: getEventModifierState,\n button: null,\n buttons: null,\n relatedTarget: function relatedTarget(event) {\n return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);\n },\n movementX: function movementX(event) {\n if ('movementX' in event) {\n return event.movementX;\n }\n\n var screenX = previousScreenX;\n previousScreenX = event.screenX;\n\n if (!isMovementXSet) {\n isMovementXSet = true;\n return 0;\n }\n\n return event.type === 'mousemove' ? event.screenX - screenX : 0;\n },\n movementY: function movementY(event) {\n if ('movementY' in event) {\n return event.movementY;\n }\n\n var screenY = previousScreenY;\n previousScreenY = event.screenY;\n\n if (!isMovementYSet) {\n isMovementYSet = true;\n return 0;\n }\n\n return event.type === 'mousemove' ? event.screenY - screenY : 0;\n }\n });\n /**\n * @interface PointerEvent\n * @see http://www.w3.org/TR/pointerevents/\n */\n\n var SyntheticPointerEvent = SyntheticMouseEvent.extend({\n pointerId: null,\n width: null,\n height: null,\n pressure: null,\n tangentialPressure: null,\n tiltX: null,\n tiltY: null,\n twist: null,\n pointerType: null,\n isPrimary: null\n });\n var eventTypes$2 = {\n mouseEnter: {\n registrationName: 'onMouseEnter',\n dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]\n },\n mouseLeave: {\n registrationName: 'onMouseLeave',\n dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]\n },\n pointerEnter: {\n registrationName: 'onPointerEnter',\n dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]\n },\n pointerLeave: {\n registrationName: 'onPointerLeave',\n dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]\n }\n };\n var EnterLeaveEventPlugin = {\n eventTypes: eventTypes$2,\n\n /**\n * For almost every interaction we care about, there will be both a top-level\n * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that\n * we do not extract duplicate events. However, moving the mouse into the\n * browser from outside will not fire a `mouseout` event. In this case, we use\n * the `mouseover` top-level event.\n */\n extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;\n var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;\n\n if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {\n return null;\n }\n\n if (!isOutEvent && !isOverEvent) {\n // Must not be a mouse or pointer in or out - ignoring.\n return null;\n }\n\n var win = void 0;\n\n if (nativeEventTarget.window === nativeEventTarget) {\n // `nativeEventTarget` is probably a window object.\n win = nativeEventTarget;\n } else {\n // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.\n var doc = nativeEventTarget.ownerDocument;\n\n if (doc) {\n win = doc.defaultView || doc.parentWindow;\n } else {\n win = window;\n }\n }\n\n var from = void 0;\n var to = void 0;\n\n if (isOutEvent) {\n from = targetInst;\n var related = nativeEvent.relatedTarget || nativeEvent.toElement;\n to = related ? getClosestInstanceFromNode(related) : null;\n } else {\n // Moving to a node from outside the window.\n from = null;\n to = targetInst;\n }\n\n if (from === to) {\n // Nothing pertains to our managed components.\n return null;\n }\n\n var eventInterface = void 0,\n leaveEventType = void 0,\n enterEventType = void 0,\n eventTypePrefix = void 0;\n\n if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {\n eventInterface = SyntheticMouseEvent;\n leaveEventType = eventTypes$2.mouseLeave;\n enterEventType = eventTypes$2.mouseEnter;\n eventTypePrefix = 'mouse';\n } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {\n eventInterface = SyntheticPointerEvent;\n leaveEventType = eventTypes$2.pointerLeave;\n enterEventType = eventTypes$2.pointerEnter;\n eventTypePrefix = 'pointer';\n }\n\n var fromNode = from == null ? win : getNodeFromInstance$1(from);\n var toNode = to == null ? win : getNodeFromInstance$1(to);\n var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);\n leave.type = eventTypePrefix + 'leave';\n leave.target = fromNode;\n leave.relatedTarget = toNode;\n var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);\n enter.type = eventTypePrefix + 'enter';\n enter.target = toNode;\n enter.relatedTarget = fromNode;\n accumulateEnterLeaveDispatches(leave, enter, from, to);\n return [leave, enter];\n }\n };\n /*eslint-disable no-self-compare */\n\n var hasOwnProperty$1 = Object.prototype.hasOwnProperty;\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n // Added the nonzero y check to make Flow happy, but it is redundant\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /**\n * Performs equality by iterating through keys on an object and returning false\n * when any key has values which are not strictly equal between the arguments.\n * Returns true when the values of all keys are strictly equal.\n */\n\n\n function shallowEqual(objA, objB) {\n if (is(objA, objB)) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n } // Test for A's keys different from B.\n\n\n for (var i = 0; i < keysA.length; i++) {\n if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n\n return true;\n }\n /**\n * `ReactInstanceMap` maintains a mapping from a public facing stateful\n * instance (key) and the internal representation (value). This allows public\n * methods to accept the user facing instance as an argument and map them back\n * to internal methods.\n *\n * Note that this module is currently shared and assumed to be stateless.\n * If this becomes an actual Map, that will break.\n */\n\n /**\n * This API should be called `delete` but we'd have to make sure to always\n * transform these to strings for IE support. When this transform is fully\n * supported we can rename it.\n */\n\n\n function get(key) {\n return key._reactInternalFiber;\n }\n\n function has(key) {\n return key._reactInternalFiber !== undefined;\n }\n\n function set(key, value) {\n key._reactInternalFiber = value;\n } // Don't change these two values. They're used by React Dev Tools.\n\n\n var NoEffect =\n /* */\n 0;\n var PerformedWork =\n /* */\n 1; // You can change the rest (and add more).\n\n var Placement =\n /* */\n 2;\n var Update =\n /* */\n 4;\n var PlacementAndUpdate =\n /* */\n 6;\n var Deletion =\n /* */\n 8;\n var ContentReset =\n /* */\n 16;\n var Callback =\n /* */\n 32;\n var DidCapture =\n /* */\n 64;\n var Ref =\n /* */\n 128;\n var Snapshot =\n /* */\n 256;\n var Passive =\n /* */\n 512; // Passive & Update & Callback & Ref & Snapshot\n\n var LifecycleEffectMask =\n /* */\n 932; // Union of all host effects\n\n var HostEffectMask =\n /* */\n 1023;\n var Incomplete =\n /* */\n 1024;\n var ShouldCapture =\n /* */\n 2048;\n var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\n var MOUNTING = 1;\n var MOUNTED = 2;\n var UNMOUNTED = 3;\n\n function isFiberMountedImpl(fiber) {\n var node = fiber;\n\n if (!fiber.alternate) {\n // If there is no alternate, this might be a new tree that isn't inserted\n // yet. If it is, then it will have a pending insertion effect on it.\n if ((node.effectTag & Placement) !== NoEffect) {\n return MOUNTING;\n }\n\n while (node.return) {\n node = node.return;\n\n if ((node.effectTag & Placement) !== NoEffect) {\n return MOUNTING;\n }\n }\n } else {\n while (node.return) {\n node = node.return;\n }\n }\n\n if (node.tag === HostRoot) {\n // TODO: Check if this was a nested HostRoot when used with\n // renderContainerIntoSubtree.\n return MOUNTED;\n } // If we didn't hit the root, that means that we're in an disconnected tree\n // that has been unmounted.\n\n\n return UNMOUNTED;\n }\n\n function isFiberMounted(fiber) {\n return isFiberMountedImpl(fiber) === MOUNTED;\n }\n\n function isMounted(component) {\n {\n var owner = ReactCurrentOwner$1.current;\n\n if (owner !== null && owner.tag === ClassComponent) {\n var ownerFiber = owner;\n var instance = ownerFiber.stateNode;\n !instance._warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component') : void 0;\n instance._warnedAboutRefsInRender = true;\n }\n }\n var fiber = get(component);\n\n if (!fiber) {\n return false;\n }\n\n return isFiberMountedImpl(fiber) === MOUNTED;\n }\n\n function assertIsMounted(fiber) {\n !(isFiberMountedImpl(fiber) === MOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;\n }\n\n function findCurrentFiberUsingSlowPath(fiber) {\n var alternate = fiber.alternate;\n\n if (!alternate) {\n // If there is no alternate, then we only need to check if it is mounted.\n var state = isFiberMountedImpl(fiber);\n !(state !== UNMOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;\n\n if (state === MOUNTING) {\n return null;\n }\n\n return fiber;\n } // If we have two possible branches, we'll walk backwards up to the root\n // to see what path the root points to. On the way we may hit one of the\n // special cases and we'll deal with them.\n\n\n var a = fiber;\n var b = alternate;\n\n while (true) {\n var parentA = a.return;\n var parentB = parentA ? parentA.alternate : null;\n\n if (!parentA || !parentB) {\n // We're at the root.\n break;\n } // If both copies of the parent fiber point to the same child, we can\n // assume that the child is current. This happens when we bailout on low\n // priority: the bailed out fiber's child reuses the current child.\n\n\n if (parentA.child === parentB.child) {\n var child = parentA.child;\n\n while (child) {\n if (child === a) {\n // We've determined that A is the current branch.\n assertIsMounted(parentA);\n return fiber;\n }\n\n if (child === b) {\n // We've determined that B is the current branch.\n assertIsMounted(parentA);\n return alternate;\n }\n\n child = child.sibling;\n } // We should never have an alternate for any mounting node. So the only\n // way this could possibly happen is if this was unmounted, if at all.\n\n\n invariant(false, 'Unable to find node on an unmounted component.');\n }\n\n if (a.return !== b.return) {\n // The return pointer of A and the return pointer of B point to different\n // fibers. We assume that return pointers never criss-cross, so A must\n // belong to the child set of A.return, and B must belong to the child\n // set of B.return.\n a = parentA;\n b = parentB;\n } else {\n // The return pointers point to the same fiber. We'll have to use the\n // default, slow path: scan the child sets of each parent alternate to see\n // which child belongs to which set.\n //\n // Search parent A's child set\n var didFindChild = false;\n var _child = parentA.child;\n\n while (_child) {\n if (_child === a) {\n didFindChild = true;\n a = parentA;\n b = parentB;\n break;\n }\n\n if (_child === b) {\n didFindChild = true;\n b = parentA;\n a = parentB;\n break;\n }\n\n _child = _child.sibling;\n }\n\n if (!didFindChild) {\n // Search parent B's child set\n _child = parentB.child;\n\n while (_child) {\n if (_child === a) {\n didFindChild = true;\n a = parentB;\n b = parentA;\n break;\n }\n\n if (_child === b) {\n didFindChild = true;\n b = parentB;\n a = parentA;\n break;\n }\n\n _child = _child.sibling;\n }\n\n !didFindChild ? invariant(false, 'Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.') : void 0;\n }\n }\n\n !(a.alternate === b) ? invariant(false, 'Return fibers should always be each others\\' alternates. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n } // If the root is not a host container, we're in a disconnected tree. I.e.\n // unmounted.\n\n\n !(a.tag === HostRoot) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;\n\n if (a.stateNode.current === a) {\n // We've determined that A is the current branch.\n return fiber;\n } // Otherwise B has to be current branch.\n\n\n return alternate;\n }\n\n function findCurrentHostFiber(parent) {\n var currentParent = findCurrentFiberUsingSlowPath(parent);\n\n if (!currentParent) {\n return null;\n } // Next we'll drill down this component to find the first HostComponent/Text.\n\n\n var node = currentParent;\n\n while (true) {\n if (node.tag === HostComponent || node.tag === HostText) {\n return node;\n } else if (node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n\n if (node === currentParent) {\n return null;\n }\n\n while (!node.sibling) {\n if (!node.return || node.return === currentParent) {\n return null;\n }\n\n node = node.return;\n }\n\n node.sibling.return = node.return;\n node = node.sibling;\n } // Flow needs the return null here, but ESLint complains about it.\n // eslint-disable-next-line no-unreachable\n\n\n return null;\n }\n\n function findCurrentHostFiberWithNoPortals(parent) {\n var currentParent = findCurrentFiberUsingSlowPath(parent);\n\n if (!currentParent) {\n return null;\n } // Next we'll drill down this component to find the first HostComponent/Text.\n\n\n var node = currentParent;\n\n while (true) {\n if (node.tag === HostComponent || node.tag === HostText) {\n return node;\n } else if (node.child && node.tag !== HostPortal) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n\n if (node === currentParent) {\n return null;\n }\n\n while (!node.sibling) {\n if (!node.return || node.return === currentParent) {\n return null;\n }\n\n node = node.return;\n }\n\n node.sibling.return = node.return;\n node = node.sibling;\n } // Flow needs the return null here, but ESLint complains about it.\n // eslint-disable-next-line no-unreachable\n\n\n return null;\n }\n\n function addEventBubbleListener(element, eventType, listener) {\n element.addEventListener(eventType, listener, false);\n }\n\n function addEventCaptureListener(element, eventType, listener) {\n element.addEventListener(eventType, listener, true);\n }\n /**\n * @interface Event\n * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface\n * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent\n */\n\n\n var SyntheticAnimationEvent = SyntheticEvent.extend({\n animationName: null,\n elapsedTime: null,\n pseudoElement: null\n });\n /**\n * @interface Event\n * @see http://www.w3.org/TR/clipboard-apis/\n */\n\n var SyntheticClipboardEvent = SyntheticEvent.extend({\n clipboardData: function clipboardData(event) {\n return 'clipboardData' in event ? event.clipboardData : window.clipboardData;\n }\n });\n /**\n * @interface FocusEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\n var SyntheticFocusEvent = SyntheticUIEvent.extend({\n relatedTarget: null\n });\n /**\n * `charCode` represents the actual \"character code\" and is safe to use with\n * `String.fromCharCode`. As such, only keys that correspond to printable\n * characters produce a valid `charCode`, the only exception to this is Enter.\n * The Tab-key is considered non-printable and does not have a `charCode`,\n * presumably because it does not produce a tab-character in browsers.\n *\n * @param {object} nativeEvent Native browser event.\n * @return {number} Normalized `charCode` property.\n */\n\n function getEventCharCode(nativeEvent) {\n var charCode = void 0;\n var keyCode = nativeEvent.keyCode;\n\n if ('charCode' in nativeEvent) {\n charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.\n\n if (charCode === 0 && keyCode === 13) {\n charCode = 13;\n }\n } else {\n // IE8 does not implement `charCode`, but `keyCode` has the correct value.\n charCode = keyCode;\n } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)\n // report Enter as charCode 10 when ctrl is pressed.\n\n\n if (charCode === 10) {\n charCode = 13;\n } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.\n // Must not discard the (non-)printable Enter-key.\n\n\n if (charCode >= 32 || charCode === 13) {\n return charCode;\n }\n\n return 0;\n }\n /**\n * Normalization of deprecated HTML5 `key` values\n * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names\n */\n\n\n var normalizeKey = {\n Esc: 'Escape',\n Spacebar: ' ',\n Left: 'ArrowLeft',\n Up: 'ArrowUp',\n Right: 'ArrowRight',\n Down: 'ArrowDown',\n Del: 'Delete',\n Win: 'OS',\n Menu: 'ContextMenu',\n Apps: 'ContextMenu',\n Scroll: 'ScrollLock',\n MozPrintableKey: 'Unidentified'\n };\n /**\n * Translation from legacy `keyCode` to HTML5 `key`\n * Only special keys supported, all others depend on keyboard layout or browser\n * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names\n */\n\n var translateToKey = {\n '8': 'Backspace',\n '9': 'Tab',\n '12': 'Clear',\n '13': 'Enter',\n '16': 'Shift',\n '17': 'Control',\n '18': 'Alt',\n '19': 'Pause',\n '20': 'CapsLock',\n '27': 'Escape',\n '32': ' ',\n '33': 'PageUp',\n '34': 'PageDown',\n '35': 'End',\n '36': 'Home',\n '37': 'ArrowLeft',\n '38': 'ArrowUp',\n '39': 'ArrowRight',\n '40': 'ArrowDown',\n '45': 'Insert',\n '46': 'Delete',\n '112': 'F1',\n '113': 'F2',\n '114': 'F3',\n '115': 'F4',\n '116': 'F5',\n '117': 'F6',\n '118': 'F7',\n '119': 'F8',\n '120': 'F9',\n '121': 'F10',\n '122': 'F11',\n '123': 'F12',\n '144': 'NumLock',\n '145': 'ScrollLock',\n '224': 'Meta'\n };\n /**\n * @param {object} nativeEvent Native browser event.\n * @return {string} Normalized `key` property.\n */\n\n function getEventKey(nativeEvent) {\n if (nativeEvent.key) {\n // Normalize inconsistent values reported by browsers due to\n // implementations of a working draft specification.\n // FireFox implements `key` but returns `MozPrintableKey` for all\n // printable characters (normalized to `Unidentified`), ignore it.\n var key = normalizeKey[nativeEvent.key] || nativeEvent.key;\n\n if (key !== 'Unidentified') {\n return key;\n }\n } // Browser does not implement `key`, polyfill as much of it as we can.\n\n\n if (nativeEvent.type === 'keypress') {\n var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can\n // thus be captured by `keypress`, no other non-printable key should.\n\n return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);\n }\n\n if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {\n // While user keyboard layout determines the actual meaning of each\n // `keyCode` value, almost all function keys have a universal value.\n return translateToKey[nativeEvent.keyCode] || 'Unidentified';\n }\n\n return '';\n }\n /**\n * @interface KeyboardEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\n\n var SyntheticKeyboardEvent = SyntheticUIEvent.extend({\n key: getEventKey,\n location: null,\n ctrlKey: null,\n shiftKey: null,\n altKey: null,\n metaKey: null,\n repeat: null,\n locale: null,\n getModifierState: getEventModifierState,\n // Legacy Interface\n charCode: function charCode(event) {\n // `charCode` is the result of a KeyPress event and represents the value of\n // the actual printable character.\n // KeyPress is deprecated, but its replacement is not yet final and not\n // implemented in any major browser. Only KeyPress has charCode.\n if (event.type === 'keypress') {\n return getEventCharCode(event);\n }\n\n return 0;\n },\n keyCode: function keyCode(event) {\n // `keyCode` is the result of a KeyDown/Up event and represents the value of\n // physical keyboard key.\n // The actual meaning of the value depends on the users' keyboard layout\n // which cannot be detected. Assuming that it is a US keyboard layout\n // provides a surprisingly accurate mapping for US and European users.\n // Due to this, it is left to the user to implement at this time.\n if (event.type === 'keydown' || event.type === 'keyup') {\n return event.keyCode;\n }\n\n return 0;\n },\n which: function which(event) {\n // `which` is an alias for either `keyCode` or `charCode` depending on the\n // type of the event.\n if (event.type === 'keypress') {\n return getEventCharCode(event);\n }\n\n if (event.type === 'keydown' || event.type === 'keyup') {\n return event.keyCode;\n }\n\n return 0;\n }\n });\n /**\n * @interface DragEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\n var SyntheticDragEvent = SyntheticMouseEvent.extend({\n dataTransfer: null\n });\n /**\n * @interface TouchEvent\n * @see http://www.w3.org/TR/touch-events/\n */\n\n var SyntheticTouchEvent = SyntheticUIEvent.extend({\n touches: null,\n targetTouches: null,\n changedTouches: null,\n altKey: null,\n metaKey: null,\n ctrlKey: null,\n shiftKey: null,\n getModifierState: getEventModifierState\n });\n /**\n * @interface Event\n * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-\n * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent\n */\n\n var SyntheticTransitionEvent = SyntheticEvent.extend({\n propertyName: null,\n elapsedTime: null,\n pseudoElement: null\n });\n /**\n * @interface WheelEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\n var SyntheticWheelEvent = SyntheticMouseEvent.extend({\n deltaX: function deltaX(event) {\n return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).\n 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;\n },\n deltaY: function deltaY(event) {\n return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).\n 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).\n 'wheelDelta' in event ? -event.wheelDelta : 0;\n },\n deltaZ: null,\n // Browsers without \"deltaMode\" is reporting in raw wheel delta where one\n // notch on the scroll is always +/- 120, roughly equivalent to pixels.\n // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or\n // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.\n deltaMode: null\n });\n /**\n * Turns\n * ['abort', ...]\n * into\n * eventTypes = {\n * 'abort': {\n * phasedRegistrationNames: {\n * bubbled: 'onAbort',\n * captured: 'onAbortCapture',\n * },\n * dependencies: [TOP_ABORT],\n * },\n * ...\n * };\n * topLevelEventsToDispatchConfig = new Map([\n * [TOP_ABORT, { sameConfig }],\n * ]);\n */\n\n var interactiveEventTypeNames = [[TOP_BLUR, 'blur'], [TOP_CANCEL, 'cancel'], [TOP_CLICK, 'click'], [TOP_CLOSE, 'close'], [TOP_CONTEXT_MENU, 'contextMenu'], [TOP_COPY, 'copy'], [TOP_CUT, 'cut'], [TOP_AUX_CLICK, 'auxClick'], [TOP_DOUBLE_CLICK, 'doubleClick'], [TOP_DRAG_END, 'dragEnd'], [TOP_DRAG_START, 'dragStart'], [TOP_DROP, 'drop'], [TOP_FOCUS, 'focus'], [TOP_INPUT, 'input'], [TOP_INVALID, 'invalid'], [TOP_KEY_DOWN, 'keyDown'], [TOP_KEY_PRESS, 'keyPress'], [TOP_KEY_UP, 'keyUp'], [TOP_MOUSE_DOWN, 'mouseDown'], [TOP_MOUSE_UP, 'mouseUp'], [TOP_PASTE, 'paste'], [TOP_PAUSE, 'pause'], [TOP_PLAY, 'play'], [TOP_POINTER_CANCEL, 'pointerCancel'], [TOP_POINTER_DOWN, 'pointerDown'], [TOP_POINTER_UP, 'pointerUp'], [TOP_RATE_CHANGE, 'rateChange'], [TOP_RESET, 'reset'], [TOP_SEEKED, 'seeked'], [TOP_SUBMIT, 'submit'], [TOP_TOUCH_CANCEL, 'touchCancel'], [TOP_TOUCH_END, 'touchEnd'], [TOP_TOUCH_START, 'touchStart'], [TOP_VOLUME_CHANGE, 'volumeChange']];\n var nonInteractiveEventTypeNames = [[TOP_ABORT, 'abort'], [TOP_ANIMATION_END, 'animationEnd'], [TOP_ANIMATION_ITERATION, 'animationIteration'], [TOP_ANIMATION_START, 'animationStart'], [TOP_CAN_PLAY, 'canPlay'], [TOP_CAN_PLAY_THROUGH, 'canPlayThrough'], [TOP_DRAG, 'drag'], [TOP_DRAG_ENTER, 'dragEnter'], [TOP_DRAG_EXIT, 'dragExit'], [TOP_DRAG_LEAVE, 'dragLeave'], [TOP_DRAG_OVER, 'dragOver'], [TOP_DURATION_CHANGE, 'durationChange'], [TOP_EMPTIED, 'emptied'], [TOP_ENCRYPTED, 'encrypted'], [TOP_ENDED, 'ended'], [TOP_ERROR, 'error'], [TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture'], [TOP_LOAD, 'load'], [TOP_LOADED_DATA, 'loadedData'], [TOP_LOADED_METADATA, 'loadedMetadata'], [TOP_LOAD_START, 'loadStart'], [TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture'], [TOP_MOUSE_MOVE, 'mouseMove'], [TOP_MOUSE_OUT, 'mouseOut'], [TOP_MOUSE_OVER, 'mouseOver'], [TOP_PLAYING, 'playing'], [TOP_POINTER_MOVE, 'pointerMove'], [TOP_POINTER_OUT, 'pointerOut'], [TOP_POINTER_OVER, 'pointerOver'], [TOP_PROGRESS, 'progress'], [TOP_SCROLL, 'scroll'], [TOP_SEEKING, 'seeking'], [TOP_STALLED, 'stalled'], [TOP_SUSPEND, 'suspend'], [TOP_TIME_UPDATE, 'timeUpdate'], [TOP_TOGGLE, 'toggle'], [TOP_TOUCH_MOVE, 'touchMove'], [TOP_TRANSITION_END, 'transitionEnd'], [TOP_WAITING, 'waiting'], [TOP_WHEEL, 'wheel']];\n var eventTypes$4 = {};\n var topLevelEventsToDispatchConfig = {};\n\n function addEventTypeNameToConfig(_ref, isInteractive) {\n var topEvent = _ref[0],\n event = _ref[1];\n var capitalizedEvent = event[0].toUpperCase() + event.slice(1);\n var onEvent = 'on' + capitalizedEvent;\n var type = {\n phasedRegistrationNames: {\n bubbled: onEvent,\n captured: onEvent + 'Capture'\n },\n dependencies: [topEvent],\n isInteractive: isInteractive\n };\n eventTypes$4[event] = type;\n topLevelEventsToDispatchConfig[topEvent] = type;\n }\n\n interactiveEventTypeNames.forEach(function (eventTuple) {\n addEventTypeNameToConfig(eventTuple, true);\n });\n nonInteractiveEventTypeNames.forEach(function (eventTuple) {\n addEventTypeNameToConfig(eventTuple, false);\n }); // Only used in DEV for exhaustiveness validation.\n\n var knownHTMLTopLevelTypes = [TOP_ABORT, TOP_CANCEL, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_CLOSE, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_INPUT, TOP_INVALID, TOP_LOAD, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_RESET, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUBMIT, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_TOGGLE, TOP_VOLUME_CHANGE, TOP_WAITING];\n var SimpleEventPlugin = {\n eventTypes: eventTypes$4,\n isInteractiveTopLevelEventType: function isInteractiveTopLevelEventType(topLevelType) {\n var config = topLevelEventsToDispatchConfig[topLevelType];\n return config !== undefined && config.isInteractive === true;\n },\n extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];\n\n if (!dispatchConfig) {\n return null;\n }\n\n var EventConstructor = void 0;\n\n switch (topLevelType) {\n case TOP_KEY_PRESS:\n // Firefox creates a keypress event for function keys too. This removes\n // the unwanted keypress events. Enter is however both printable and\n // non-printable. One would expect Tab to be as well (but it isn't).\n if (getEventCharCode(nativeEvent) === 0) {\n return null;\n }\n\n /* falls through */\n\n case TOP_KEY_DOWN:\n case TOP_KEY_UP:\n EventConstructor = SyntheticKeyboardEvent;\n break;\n\n case TOP_BLUR:\n case TOP_FOCUS:\n EventConstructor = SyntheticFocusEvent;\n break;\n\n case TOP_CLICK:\n // Firefox creates a click event on right mouse clicks. This removes the\n // unwanted click events.\n if (nativeEvent.button === 2) {\n return null;\n }\n\n /* falls through */\n\n case TOP_AUX_CLICK:\n case TOP_DOUBLE_CLICK:\n case TOP_MOUSE_DOWN:\n case TOP_MOUSE_MOVE:\n case TOP_MOUSE_UP: // TODO: Disabled elements should not respond to mouse events\n\n /* falls through */\n\n case TOP_MOUSE_OUT:\n case TOP_MOUSE_OVER:\n case TOP_CONTEXT_MENU:\n EventConstructor = SyntheticMouseEvent;\n break;\n\n case TOP_DRAG:\n case TOP_DRAG_END:\n case TOP_DRAG_ENTER:\n case TOP_DRAG_EXIT:\n case TOP_DRAG_LEAVE:\n case TOP_DRAG_OVER:\n case TOP_DRAG_START:\n case TOP_DROP:\n EventConstructor = SyntheticDragEvent;\n break;\n\n case TOP_TOUCH_CANCEL:\n case TOP_TOUCH_END:\n case TOP_TOUCH_MOVE:\n case TOP_TOUCH_START:\n EventConstructor = SyntheticTouchEvent;\n break;\n\n case TOP_ANIMATION_END:\n case TOP_ANIMATION_ITERATION:\n case TOP_ANIMATION_START:\n EventConstructor = SyntheticAnimationEvent;\n break;\n\n case TOP_TRANSITION_END:\n EventConstructor = SyntheticTransitionEvent;\n break;\n\n case TOP_SCROLL:\n EventConstructor = SyntheticUIEvent;\n break;\n\n case TOP_WHEEL:\n EventConstructor = SyntheticWheelEvent;\n break;\n\n case TOP_COPY:\n case TOP_CUT:\n case TOP_PASTE:\n EventConstructor = SyntheticClipboardEvent;\n break;\n\n case TOP_GOT_POINTER_CAPTURE:\n case TOP_LOST_POINTER_CAPTURE:\n case TOP_POINTER_CANCEL:\n case TOP_POINTER_DOWN:\n case TOP_POINTER_MOVE:\n case TOP_POINTER_OUT:\n case TOP_POINTER_OVER:\n case TOP_POINTER_UP:\n EventConstructor = SyntheticPointerEvent;\n break;\n\n default:\n {\n if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {\n warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);\n }\n } // HTML Events\n // @see http://www.w3.org/TR/html5/index.html#events-0\n\n EventConstructor = SyntheticEvent;\n break;\n }\n\n var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);\n accumulateTwoPhaseDispatches(event);\n return event;\n }\n };\n var isInteractiveTopLevelEventType = SimpleEventPlugin.isInteractiveTopLevelEventType;\n var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;\n var callbackBookkeepingPool = [];\n /**\n * Find the deepest React component completely containing the root of the\n * passed-in instance (for use when entire React trees are nested within each\n * other). If React trees are not nested, returns null.\n */\n\n function findRootContainerNode(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst.return) {\n inst = inst.return;\n }\n\n if (inst.tag !== HostRoot) {\n // This can happen if we're in a detached tree.\n return null;\n }\n\n return inst.stateNode.containerInfo;\n } // Used to store ancestor hierarchy in top level callback\n\n\n function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {\n if (callbackBookkeepingPool.length) {\n var instance = callbackBookkeepingPool.pop();\n instance.topLevelType = topLevelType;\n instance.nativeEvent = nativeEvent;\n instance.targetInst = targetInst;\n return instance;\n }\n\n return {\n topLevelType: topLevelType,\n nativeEvent: nativeEvent,\n targetInst: targetInst,\n ancestors: []\n };\n }\n\n function releaseTopLevelCallbackBookKeeping(instance) {\n instance.topLevelType = null;\n instance.nativeEvent = null;\n instance.targetInst = null;\n instance.ancestors.length = 0;\n\n if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {\n callbackBookkeepingPool.push(instance);\n }\n }\n\n function handleTopLevel(bookKeeping) {\n var targetInst = bookKeeping.targetInst; // Loop through the hierarchy, in case there's any nested components.\n // It's important that we build the array of ancestors before calling any\n // event handlers, because event handlers can modify the DOM, leading to\n // inconsistencies with ReactMount's node cache. See #1105.\n\n var ancestor = targetInst;\n\n do {\n if (!ancestor) {\n bookKeeping.ancestors.push(ancestor);\n break;\n }\n\n var root = findRootContainerNode(ancestor);\n\n if (!root) {\n break;\n }\n\n bookKeeping.ancestors.push(ancestor);\n ancestor = getClosestInstanceFromNode(root);\n } while (ancestor);\n\n for (var i = 0; i < bookKeeping.ancestors.length; i++) {\n targetInst = bookKeeping.ancestors[i];\n runExtractedEventsInBatch(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));\n }\n } // TODO: can we stop exporting these?\n\n\n var _enabled = true;\n\n function setEnabled(enabled) {\n _enabled = !!enabled;\n }\n\n function isEnabled() {\n return _enabled;\n }\n /**\n * Traps top-level events by using event bubbling.\n *\n * @param {number} topLevelType Number from `TopLevelEventTypes`.\n * @param {object} element Element on which to attach listener.\n * @return {?object} An object with a remove function which will forcefully\n * remove the listener.\n * @internal\n */\n\n\n function trapBubbledEvent(topLevelType, element) {\n if (!element) {\n return null;\n }\n\n var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;\n addEventBubbleListener(element, getRawEventName(topLevelType), // Check if interactive and wrap in interactiveUpdates\n dispatch.bind(null, topLevelType));\n }\n /**\n * Traps a top-level event by using event capturing.\n *\n * @param {number} topLevelType Number from `TopLevelEventTypes`.\n * @param {object} element Element on which to attach listener.\n * @return {?object} An object with a remove function which will forcefully\n * remove the listener.\n * @internal\n */\n\n\n function trapCapturedEvent(topLevelType, element) {\n if (!element) {\n return null;\n }\n\n var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;\n addEventCaptureListener(element, getRawEventName(topLevelType), // Check if interactive and wrap in interactiveUpdates\n dispatch.bind(null, topLevelType));\n }\n\n function dispatchInteractiveEvent(topLevelType, nativeEvent) {\n interactiveUpdates(dispatchEvent, topLevelType, nativeEvent);\n }\n\n function dispatchEvent(topLevelType, nativeEvent) {\n if (!_enabled) {\n return;\n }\n\n var nativeEventTarget = getEventTarget(nativeEvent);\n var targetInst = getClosestInstanceFromNode(nativeEventTarget);\n\n if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {\n // If we get an event (ex: img onload) before committing that\n // component's mount, ignore it for now (that is, treat it as if it was an\n // event on a non-React tree). We might also consider queueing events and\n // dispatching them after the mount.\n targetInst = null;\n }\n\n var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);\n\n try {\n // Event queue being processed in the same cycle allows\n // `preventDefault`.\n batchedUpdates(handleTopLevel, bookKeeping);\n } finally {\n releaseTopLevelCallbackBookKeeping(bookKeeping);\n }\n }\n /**\n * Summary of `ReactBrowserEventEmitter` event handling:\n *\n * - Top-level delegation is used to trap most native browser events. This\n * may only occur in the main thread and is the responsibility of\n * ReactDOMEventListener, which is injected and can therefore support\n * pluggable event sources. This is the only work that occurs in the main\n * thread.\n *\n * - We normalize and de-duplicate events to account for browser quirks. This\n * may be done in the worker thread.\n *\n * - Forward these native events (with the associated top-level type used to\n * trap it) to `EventPluginHub`, which in turn will ask plugins if they want\n * to extract any synthetic events.\n *\n * - The `EventPluginHub` will then process each event by annotating them with\n * \"dispatches\", a sequence of listeners and IDs that care about that event.\n *\n * - The `EventPluginHub` then dispatches the events.\n *\n * Overview of React and the event system:\n *\n * +------------+ .\n * | DOM | .\n * +------------+ .\n * | .\n * v .\n * +------------+ .\n * | ReactEvent | .\n * | Listener | .\n * +------------+ . +-----------+\n * | . +--------+|SimpleEvent|\n * | . | |Plugin |\n * +-----|------+ . v +-----------+\n * | | | . +--------------+ +------------+\n * | +-----------.--->|EventPluginHub| | Event |\n * | | . | | +-----------+ | Propagators|\n * | ReactEvent | . | | |TapEvent | |------------|\n * | Emitter | . | |<---+|Plugin | |other plugin|\n * | | . | | +-----------+ | utilities |\n * | +-----------.--->| | +------------+\n * | | | . +--------------+\n * +-----|------+ . ^ +-----------+\n * | . | |Enter/Leave|\n * + . +-------+|Plugin |\n * +-------------+ . +-----------+\n * | application | .\n * |-------------| .\n * | | .\n * | | .\n * +-------------+ .\n * .\n * React Core . General Purpose Event Plugin System\n */\n\n\n var alreadyListeningTo = {};\n var reactTopListenersCounter = 0;\n /**\n * To ensure no conflicts with other potential React instances on the page\n */\n\n var topListenersIDKey = '_reactListenersID' + ('' + Math.random()).slice(2);\n\n function getListeningForDocument(mountAt) {\n // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`\n // directly.\n if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {\n mountAt[topListenersIDKey] = reactTopListenersCounter++;\n alreadyListeningTo[mountAt[topListenersIDKey]] = {};\n }\n\n return alreadyListeningTo[mountAt[topListenersIDKey]];\n }\n /**\n * We listen for bubbled touch events on the document object.\n *\n * Firefox v8.01 (and possibly others) exhibited strange behavior when\n * mounting `onmousemove` events at some node that was not the document\n * element. The symptoms were that if your mouse is not moving over something\n * contained within that mount point (for example on the background) the\n * top-level listeners for `onmousemove` won't be called. However, if you\n * register the `mousemove` on the document object, then it will of course\n * catch all `mousemove`s. This along with iOS quirks, justifies restricting\n * top-level listeners to the document object only, at least for these\n * movement types of events and possibly all events.\n *\n * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html\n *\n * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but\n * they bubble to document.\n *\n * @param {string} registrationName Name of listener (e.g. `onClick`).\n * @param {object} mountAt Container where to mount the listener\n */\n\n\n function listenTo(registrationName, mountAt) {\n var isListening = getListeningForDocument(mountAt);\n var dependencies = registrationNameDependencies[registrationName];\n\n for (var i = 0; i < dependencies.length; i++) {\n var dependency = dependencies[i];\n\n if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {\n switch (dependency) {\n case TOP_SCROLL:\n trapCapturedEvent(TOP_SCROLL, mountAt);\n break;\n\n case TOP_FOCUS:\n case TOP_BLUR:\n trapCapturedEvent(TOP_FOCUS, mountAt);\n trapCapturedEvent(TOP_BLUR, mountAt); // We set the flag for a single dependency later in this function,\n // but this ensures we mark both as attached rather than just one.\n\n isListening[TOP_BLUR] = true;\n isListening[TOP_FOCUS] = true;\n break;\n\n case TOP_CANCEL:\n case TOP_CLOSE:\n if (isEventSupported(getRawEventName(dependency))) {\n trapCapturedEvent(dependency, mountAt);\n }\n\n break;\n\n case TOP_INVALID:\n case TOP_SUBMIT:\n case TOP_RESET:\n // We listen to them on the target DOM elements.\n // Some of them bubble so we don't want them to fire twice.\n break;\n\n default:\n // By default, listen on the top level to all non-media events.\n // Media events don't bubble so adding the listener wouldn't do anything.\n var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;\n\n if (!isMediaEvent) {\n trapBubbledEvent(dependency, mountAt);\n }\n\n break;\n }\n\n isListening[dependency] = true;\n }\n }\n }\n\n function isListeningToAllDependencies(registrationName, mountAt) {\n var isListening = getListeningForDocument(mountAt);\n var dependencies = registrationNameDependencies[registrationName];\n\n for (var i = 0; i < dependencies.length; i++) {\n var dependency = dependencies[i];\n\n if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {\n return false;\n }\n }\n\n return true;\n }\n\n function getActiveElement(doc) {\n doc = doc || (typeof document !== 'undefined' ? document : undefined);\n\n if (typeof doc === 'undefined') {\n return null;\n }\n\n try {\n return doc.activeElement || doc.body;\n } catch (e) {\n return doc.body;\n }\n }\n /**\n * Given any node return the first leaf node without children.\n *\n * @param {DOMElement|DOMTextNode} node\n * @return {DOMElement|DOMTextNode}\n */\n\n\n function getLeafNode(node) {\n while (node && node.firstChild) {\n node = node.firstChild;\n }\n\n return node;\n }\n /**\n * Get the next sibling within a container. This will walk up the\n * DOM if a node's siblings have been exhausted.\n *\n * @param {DOMElement|DOMTextNode} node\n * @return {?DOMElement|DOMTextNode}\n */\n\n\n function getSiblingNode(node) {\n while (node) {\n if (node.nextSibling) {\n return node.nextSibling;\n }\n\n node = node.parentNode;\n }\n }\n /**\n * Get object describing the nodes which contain characters at offset.\n *\n * @param {DOMElement|DOMTextNode} root\n * @param {number} offset\n * @return {?object}\n */\n\n\n function getNodeForCharacterOffset(root, offset) {\n var node = getLeafNode(root);\n var nodeStart = 0;\n var nodeEnd = 0;\n\n while (node) {\n if (node.nodeType === TEXT_NODE) {\n nodeEnd = nodeStart + node.textContent.length;\n\n if (nodeStart <= offset && nodeEnd >= offset) {\n return {\n node: node,\n offset: offset - nodeStart\n };\n }\n\n nodeStart = nodeEnd;\n }\n\n node = getLeafNode(getSiblingNode(node));\n }\n }\n /**\n * @param {DOMElement} outerNode\n * @return {?object}\n */\n\n\n function getOffsets(outerNode) {\n var ownerDocument = outerNode.ownerDocument;\n var win = ownerDocument && ownerDocument.defaultView || window;\n var selection = win.getSelection && win.getSelection();\n\n if (!selection || selection.rangeCount === 0) {\n return null;\n }\n\n var anchorNode = selection.anchorNode,\n anchorOffset = selection.anchorOffset,\n focusNode = selection.focusNode,\n focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be \"anonymous divs\", e.g. the\n // up/down buttons on an . Anonymous divs do not seem to\n // expose properties, triggering a \"Permission denied error\" if any of its\n // properties are accessed. The only seemingly possible way to avoid erroring\n // is to access a property that typically works for non-anonymous divs and\n // catch any error that may otherwise arise. See\n // https://bugzilla.mozilla.org/show_bug.cgi?id=208427\n\n try {\n /* eslint-disable no-unused-expressions */\n anchorNode.nodeType;\n focusNode.nodeType;\n /* eslint-enable no-unused-expressions */\n } catch (e) {\n return null;\n }\n\n return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);\n }\n /**\n * Returns {start, end} where `start` is the character/codepoint index of\n * (anchorNode, anchorOffset) within the textContent of `outerNode`, and\n * `end` is the index of (focusNode, focusOffset).\n *\n * Returns null if you pass in garbage input but we should probably just crash.\n *\n * Exported only for testing.\n */\n\n\n function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {\n var length = 0;\n var start = -1;\n var end = -1;\n var indexWithinAnchor = 0;\n var indexWithinFocus = 0;\n var node = outerNode;\n var parentNode = null;\n\n outer: while (true) {\n var next = null;\n\n while (true) {\n if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {\n start = length + anchorOffset;\n }\n\n if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {\n end = length + focusOffset;\n }\n\n if (node.nodeType === TEXT_NODE) {\n length += node.nodeValue.length;\n }\n\n if ((next = node.firstChild) === null) {\n break;\n } // Moving from `node` to its first child `next`.\n\n\n parentNode = node;\n node = next;\n }\n\n while (true) {\n if (node === outerNode) {\n // If `outerNode` has children, this is always the second time visiting\n // it. If it has no children, this is still the first loop, and the only\n // valid selection is anchorNode and focusNode both equal to this node\n // and both offsets 0, in which case we will have handled above.\n break outer;\n }\n\n if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {\n start = length;\n }\n\n if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {\n end = length;\n }\n\n if ((next = node.nextSibling) !== null) {\n break;\n }\n\n node = parentNode;\n parentNode = node.parentNode;\n } // Moving from `node` to its next sibling `next`.\n\n\n node = next;\n }\n\n if (start === -1 || end === -1) {\n // This should never happen. (Would happen if the anchor/focus nodes aren't\n // actually inside the passed-in node.)\n return null;\n }\n\n return {\n start: start,\n end: end\n };\n }\n /**\n * In modern non-IE browsers, we can support both forward and backward\n * selections.\n *\n * Note: IE10+ supports the Selection object, but it does not support\n * the `extend` method, which means that even in modern IE, it's not possible\n * to programmatically create a backward selection. Thus, for all IE\n * versions, we use the old IE API to create our selections.\n *\n * @param {DOMElement|DOMTextNode} node\n * @param {object} offsets\n */\n\n\n function setOffsets(node, offsets) {\n var doc = node.ownerDocument || document;\n var win = doc && doc.defaultView || window; // Edge fails with \"Object expected\" in some scenarios.\n // (For instance: TinyMCE editor used in a list component that supports pasting to add more,\n // fails when pasting 100+ items)\n\n if (!win.getSelection) {\n return;\n }\n\n var selection = win.getSelection();\n var length = node.textContent.length;\n var start = Math.min(offsets.start, length);\n var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.\n // Flip backward selections, so we can set with a single range.\n\n if (!selection.extend && start > end) {\n var temp = end;\n end = start;\n start = temp;\n }\n\n var startMarker = getNodeForCharacterOffset(node, start);\n var endMarker = getNodeForCharacterOffset(node, end);\n\n if (startMarker && endMarker) {\n if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {\n return;\n }\n\n var range = doc.createRange();\n range.setStart(startMarker.node, startMarker.offset);\n selection.removeAllRanges();\n\n if (start > end) {\n selection.addRange(range);\n selection.extend(endMarker.node, endMarker.offset);\n } else {\n range.setEnd(endMarker.node, endMarker.offset);\n selection.addRange(range);\n }\n }\n }\n\n function isTextNode(node) {\n return node && node.nodeType === TEXT_NODE;\n }\n\n function containsNode(outerNode, innerNode) {\n if (!outerNode || !innerNode) {\n return false;\n } else if (outerNode === innerNode) {\n return true;\n } else if (isTextNode(outerNode)) {\n return false;\n } else if (isTextNode(innerNode)) {\n return containsNode(outerNode, innerNode.parentNode);\n } else if ('contains' in outerNode) {\n return outerNode.contains(innerNode);\n } else if (outerNode.compareDocumentPosition) {\n return !!(outerNode.compareDocumentPosition(innerNode) & 16);\n } else {\n return false;\n }\n }\n\n function isInDocument(node) {\n return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);\n }\n\n function getActiveElementDeep() {\n var win = window;\n var element = getActiveElement();\n\n while (element instanceof win.HTMLIFrameElement) {\n // Accessing the contentDocument of a HTMLIframeElement can cause the browser\n // to throw, e.g. if it has a cross-origin src attribute\n try {\n win = element.contentDocument.defaultView;\n } catch (e) {\n return element;\n }\n\n element = getActiveElement(win.document);\n }\n\n return element;\n }\n /**\n * @ReactInputSelection: React input selection module. Based on Selection.js,\n * but modified to be suitable for react and has a couple of bug fixes (doesn't\n * assume buttons have range selections allowed).\n * Input selection module for React.\n */\n\n /**\n * @hasSelectionCapabilities: we get the element types that support selection\n * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`\n * and `selectionEnd` rows.\n */\n\n\n function hasSelectionCapabilities(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');\n }\n\n function getSelectionInformation() {\n var focusedElem = getActiveElementDeep();\n return {\n focusedElem: focusedElem,\n selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null\n };\n }\n /**\n * @restoreSelection: If any selection information was potentially lost,\n * restore it. This is useful when performing operations that could remove dom\n * nodes and place them back in, resulting in focus being lost.\n */\n\n\n function restoreSelection(priorSelectionInformation) {\n var curFocusedElem = getActiveElementDeep();\n var priorFocusedElem = priorSelectionInformation.focusedElem;\n var priorSelectionRange = priorSelectionInformation.selectionRange;\n\n if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {\n if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {\n setSelection(priorFocusedElem, priorSelectionRange);\n } // Focusing a node can change the scroll position, which is undesirable\n\n\n var ancestors = [];\n var ancestor = priorFocusedElem;\n\n while (ancestor = ancestor.parentNode) {\n if (ancestor.nodeType === ELEMENT_NODE) {\n ancestors.push({\n element: ancestor,\n left: ancestor.scrollLeft,\n top: ancestor.scrollTop\n });\n }\n }\n\n if (typeof priorFocusedElem.focus === 'function') {\n priorFocusedElem.focus();\n }\n\n for (var i = 0; i < ancestors.length; i++) {\n var info = ancestors[i];\n info.element.scrollLeft = info.left;\n info.element.scrollTop = info.top;\n }\n }\n }\n /**\n * @getSelection: Gets the selection bounds of a focused textarea, input or\n * contentEditable node.\n * -@input: Look up selection bounds of this input\n * -@return {start: selectionStart, end: selectionEnd}\n */\n\n\n function getSelection$1(input) {\n var selection = void 0;\n\n if ('selectionStart' in input) {\n // Modern browser with input or textarea.\n selection = {\n start: input.selectionStart,\n end: input.selectionEnd\n };\n } else {\n // Content editable or old IE textarea.\n selection = getOffsets(input);\n }\n\n return selection || {\n start: 0,\n end: 0\n };\n }\n /**\n * @setSelection: Sets the selection bounds of a textarea or input and focuses\n * the input.\n * -@input Set selection bounds of this input or textarea\n * -@offsets Object of same form that is returned from get*\n */\n\n\n function setSelection(input, offsets) {\n var start = offsets.start,\n end = offsets.end;\n\n if (end === undefined) {\n end = start;\n }\n\n if ('selectionStart' in input) {\n input.selectionStart = start;\n input.selectionEnd = Math.min(end, input.value.length);\n } else {\n setOffsets(input, offsets);\n }\n }\n\n var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;\n var eventTypes$3 = {\n select: {\n phasedRegistrationNames: {\n bubbled: 'onSelect',\n captured: 'onSelectCapture'\n },\n dependencies: [TOP_BLUR, TOP_CONTEXT_MENU, TOP_DRAG_END, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE]\n }\n };\n var activeElement$1 = null;\n var activeElementInst$1 = null;\n var lastSelection = null;\n var mouseDown = false;\n /**\n * Get an object which is a unique representation of the current selection.\n *\n * The return value will not be consistent across nodes or browsers, but\n * two identical selections on the same node will return identical objects.\n *\n * @param {DOMElement} node\n * @return {object}\n */\n\n function getSelection(node) {\n if ('selectionStart' in node && hasSelectionCapabilities(node)) {\n return {\n start: node.selectionStart,\n end: node.selectionEnd\n };\n } else {\n var win = node.ownerDocument && node.ownerDocument.defaultView || window;\n var selection = win.getSelection();\n return {\n anchorNode: selection.anchorNode,\n anchorOffset: selection.anchorOffset,\n focusNode: selection.focusNode,\n focusOffset: selection.focusOffset\n };\n }\n }\n /**\n * Get document associated with the event target.\n *\n * @param {object} nativeEventTarget\n * @return {Document}\n */\n\n\n function getEventTargetDocument(eventTarget) {\n return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;\n }\n /**\n * Poll selection to see whether it's changed.\n *\n * @param {object} nativeEvent\n * @param {object} nativeEventTarget\n * @return {?SyntheticEvent}\n */\n\n\n function constructSelectEvent(nativeEvent, nativeEventTarget) {\n // Ensure we have the right element, and that the user is not dragging a\n // selection (this matches native `select` event behavior). In HTML5, select\n // fires only on input and textarea thus if there's no focused element we\n // won't dispatch.\n var doc = getEventTargetDocument(nativeEventTarget);\n\n if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {\n return null;\n } // Only fire when selection has actually changed.\n\n\n var currentSelection = getSelection(activeElement$1);\n\n if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {\n lastSelection = currentSelection;\n var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);\n syntheticEvent.type = 'select';\n syntheticEvent.target = activeElement$1;\n accumulateTwoPhaseDispatches(syntheticEvent);\n return syntheticEvent;\n }\n\n return null;\n }\n /**\n * This plugin creates an `onSelect` event that normalizes select events\n * across form elements.\n *\n * Supported elements are:\n * - input (see `isTextInputElement`)\n * - textarea\n * - contentEditable\n *\n * This differs from native browser implementations in the following ways:\n * - Fires on contentEditable fields as well as inputs.\n * - Fires for collapsed selection.\n * - Fires after user input.\n */\n\n\n var SelectEventPlugin = {\n eventTypes: eventTypes$3,\n extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var doc = getEventTargetDocument(nativeEventTarget); // Track whether all listeners exists for this plugin. If none exist, we do\n // not extract events. See #3639.\n\n if (!doc || !isListeningToAllDependencies('onSelect', doc)) {\n return null;\n }\n\n var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;\n\n switch (topLevelType) {\n // Track the input node that has focus.\n case TOP_FOCUS:\n if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {\n activeElement$1 = targetNode;\n activeElementInst$1 = targetInst;\n lastSelection = null;\n }\n\n break;\n\n case TOP_BLUR:\n activeElement$1 = null;\n activeElementInst$1 = null;\n lastSelection = null;\n break;\n // Don't fire the event while the user is dragging. This matches the\n // semantics of the native select event.\n\n case TOP_MOUSE_DOWN:\n mouseDown = true;\n break;\n\n case TOP_CONTEXT_MENU:\n case TOP_MOUSE_UP:\n case TOP_DRAG_END:\n mouseDown = false;\n return constructSelectEvent(nativeEvent, nativeEventTarget);\n // Chrome and IE fire non-standard event when selection is changed (and\n // sometimes when it hasn't). IE's event fires out of order with respect\n // to key and input events on deletion, so we discard it.\n //\n // Firefox doesn't support selectionchange, so check selection status\n // after each key entry. The selection changes after keydown and before\n // keyup, but we check on keydown as well in the case of holding down a\n // key, when multiple keydown events are fired but only one keyup is.\n // This is also our approach for IE handling, for the reason above.\n\n case TOP_SELECTION_CHANGE:\n if (skipSelectionChangeEvent) {\n break;\n }\n\n // falls through\n\n case TOP_KEY_DOWN:\n case TOP_KEY_UP:\n return constructSelectEvent(nativeEvent, nativeEventTarget);\n }\n\n return null;\n }\n };\n /**\n * Inject modules for resolving DOM hierarchy and plugin ordering.\n */\n\n injection.injectEventPluginOrder(DOMEventPluginOrder);\n setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);\n /**\n * Some important event plugins included by default (without having to require\n * them).\n */\n\n injection.injectEventPluginsByName({\n SimpleEventPlugin: SimpleEventPlugin,\n EnterLeaveEventPlugin: EnterLeaveEventPlugin,\n ChangeEventPlugin: ChangeEventPlugin,\n SelectEventPlugin: SelectEventPlugin,\n BeforeInputEventPlugin: BeforeInputEventPlugin\n });\n var didWarnSelectedSetOnOption = false;\n var didWarnInvalidChild = false;\n\n function flattenChildren(children) {\n var content = ''; // Flatten children. We'll warn if they are invalid\n // during validateProps() which runs for hydration too.\n // Note that this would throw on non-element objects.\n // Elements are stringified (which is normally irrelevant\n // but matters for ).\n\n React.Children.forEach(children, function (child) {\n if (child == null) {\n return;\n }\n\n content += child; // Note: we don't warn about invalid children here.\n // Instead, this is done separately below so that\n // it happens during the hydration codepath too.\n });\n return content;\n }\n /**\n * Implements an