@dr.pogodin/react-utils 1.8.3 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"web.bundle.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,2CAA4CA,QAAQ,yCAA0CA,QAAQ,kDAAmDA,QAAQ,wCAAyCA,QAAQ,iCAAkCA,QAAQ,8BAA+BA,QAAQ,kCAAmCA,QAAQ,4BAA6BA,QAAQ,SAAUA,QAAQ,SAAUA,QAAQ,UAAWA,QAAQ,cAAeA,QAAQ,MAAOA,QAAQ,SAAUA,QAAQ,aAAcA,QAAQ,gBAAiBA,QAAQ,qBACzhB,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,0CAA2C,wCAAyC,iDAAkD,uCAAwC,gCAAiC,6BAA8B,iCAAkC,2BAA4B,QAAS,QAAS,SAAU,aAAc,KAAM,QAAS,YAAa,eAAgB,oBAAqBJ,GACpY,iBAAZC,QACdA,QAAQ,2BAA6BD,EAAQG,QAAQ,2CAA4CA,QAAQ,yCAA0CA,QAAQ,kDAAmDA,QAAQ,wCAAyCA,QAAQ,iCAAkCA,QAAQ,8BAA+BA,QAAQ,kCAAmCA,QAAQ,4BAA6BA,QAAQ,SAAUA,QAAQ,SAAUA,QAAQ,UAAWA,QAAQ,cAAeA,QAAQ,MAAOA,QAAQ,SAAUA,QAAQ,aAAcA,QAAQ,gBAAiBA,QAAQ,qBAEtkBJ,EAAK,2BAA6BC,EAAQD,EAAK,2CAA4CA,EAAK,yCAA0CA,EAAK,kDAAmDA,EAAK,wCAAyCA,EAAK,iCAAkCA,EAAK,8BAA+BA,EAAK,kCAAmCA,EAAK,4BAA6BA,EAAY,MAAGA,EAAY,MAAGA,EAAa,OAAGA,EAAK,cAAeA,EAAS,GAAGA,EAAY,MAAGA,EAA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MAAOA,OAMf,IAAM0H,GAAqBnQ,GAAAA,CACzB,eACA,CACE,YACA,SClEJ,CAAgB,UAAY,SAAS,QAAU,SAAS,GAAK,UAAU,IAAM,UAAU,MAAQ,UD8DpEA,CAOzBwP,IAEFA,GAAa5M,UAAY,CACvB6M,SAAU5M,IAAAA,KACV6M,IAAK7M,IAAAA,OAAAA,WACLN,MAAO4N,GAAmBpN,UAAUC,WACpCyF,MAAO5F,IAAAA,QAGT2M,GAAa9S,aAAe,CAC1B+S,UAAU,EACVhH,MAAO,IAGT,UEhFI2H,GAAS,KACb,GAAIhQ,EAA0B,CAC5B,IAAMR,GAAOW,EAAQhI,YAAY,QACjC6X,GAAS7P,EAAQhI,YAAYqH,GAAKH,YAAmB","sources":["webpack://@dr.pogodin/react-utils/webpack/universalModuleDefinition","webpack://@dr.pogodin/react-utils/./src/shared/utils/webpack.js","webpack://@dr.pogodin/react-utils/./node_modules/object-assign/index.js","webpack://@dr.pogodin/react-utils/./node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://@dr.pogodin/react-utils/./node_modules/react/jsx-runtime.js","webpack://@dr.pogodin/react-utils/external \"@babel/runtime/helpers/asyncToGenerator\"","webpack://@dr.pogodin/react-utils/external \"@babel/runtime/helpers/defineProperty\"","webpack://@dr.pogodin/react-utils/external \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://@dr.pogodin/react-utils/external \"@babel/runtime/helpers/slicedToArray\"","webpack://@dr.pogodin/react-utils/external \"@babel/runtime/helpers/typeof\"","webpack://@dr.pogodin/react-utils/external \"@babel/runtime/regenerator\"","webpack://@dr.pogodin/react-utils/external \"@dr.pogodin/react-global-state\"","webpack://@dr.pogodin/react-utils/external \"@dr.pogodin/react-themes\"","webpack://@dr.pogodin/react-utils/external \"axios\"","webpack://@dr.pogodin/react-utils/external \"dayjs\"","webpack://@dr.pogodin/react-utils/external \"lodash\"","webpack://@dr.pogodin/react-utils/external \"prop-types\"","webpack://@dr.pogodin/react-utils/external \"qs\"","webpack://@dr.pogodin/react-utils/external \"react\"","webpack://@dr.pogodin/react-utils/external \"react-dom\"","webpack://@dr.pogodin/react-utils/external \"react-helmet\"","webpack://@dr.pogodin/react-utils/external \"react-router-dom\"","webpack://@dr.pogodin/react-utils/webpack/bootstrap","webpack://@dr.pogodin/react-utils/webpack/runtime/compat get default export","webpack://@dr.pogodin/react-utils/webpack/runtime/define property getters","webpack://@dr.pogodin/react-utils/webpack/runtime/global","webpack://@dr.pogodin/react-utils/webpack/runtime/hasOwnProperty shorthand","webpack://@dr.pogodin/react-utils/webpack/runtime/make namespace object","webpack://@dr.pogodin/react-utils/./src/shared/utils/isomorphy.js","webpack://@dr.pogodin/react-utils/./src/shared/utils/config.js","webpack://@dr.pogodin/react-utils/./src/shared/utils/time.js","webpack://@dr.pogodin/react-utils/./src/shared/utils/url.js","webpack://@dr.pogodin/react-utils/./src/shared/utils/index.js","webpack://@dr.pogodin/react-utils/./src/shared/components/GenericLink/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Link.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Button/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Button/style.scss?4fed","webpack://@dr.pogodin/react-utils/./src/shared/components/Checkbox/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Checkbox/theme.scss?e808","webpack://@dr.pogodin/react-utils/./src/shared/components/CodeSplit/index.js","webpack://@dr.pogodin/react-utils/./src/shared/components/CodeSplit/ClientSide.jsx","webpack://@dr.pogodin/react-utils/./src/client/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Dropdown/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Dropdown/theme.scss?9ee7","webpack://@dr.pogodin/react-utils/./src/shared/components/Input/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Input/theme.scss?43a4","webpack://@dr.pogodin/react-utils/./src/shared/components/PageLayout/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/PageLayout/base-theme.scss?229d","webpack://@dr.pogodin/react-utils/./src/shared/components/MetaTags.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Modal/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Modal/base-theme.scss?9858","webpack://@dr.pogodin/react-utils/./src/shared/components/NavLink.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/ScalableRect/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Throbber/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Throbber/theme.scss?1805","webpack://@dr.pogodin/react-utils/./src/shared/components/WithTooltip/Tooltip.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/WithTooltip/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/WithTooltip/default-theme.scss?195d","webpack://@dr.pogodin/react-utils/./src/shared/components/YouTubeVideo/throbber.scss?c5e3","webpack://@dr.pogodin/react-utils/./src/shared/components/YouTubeVideo/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/YouTubeVideo/base.scss?267e","webpack://@dr.pogodin/react-utils/./src/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@babel/runtime/helpers/asyncToGenerator\"), require(\"@babel/runtime/helpers/defineProperty\"), require(\"@babel/runtime/helpers/objectWithoutProperties\"), require(\"@babel/runtime/helpers/slicedToArray\"), require(\"@babel/runtime/helpers/typeof\"), require(\"@babel/runtime/regenerator\"), require(\"@dr.pogodin/react-global-state\"), require(\"@dr.pogodin/react-themes\"), require(\"axios\"), require(\"dayjs\"), require(\"lodash\"), require(\"prop-types\"), require(\"qs\"), require(\"react\"), require(\"react-dom\"), require(\"react-helmet\"), require(\"react-router-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@babel/runtime/helpers/asyncToGenerator\", \"@babel/runtime/helpers/defineProperty\", \"@babel/runtime/helpers/objectWithoutProperties\", \"@babel/runtime/helpers/slicedToArray\", \"@babel/runtime/helpers/typeof\", \"@babel/runtime/regenerator\", \"@dr.pogodin/react-global-state\", \"@dr.pogodin/react-themes\", \"axios\", \"dayjs\", \"lodash\", \"prop-types\", \"qs\", \"react\", \"react-dom\", \"react-helmet\", \"react-router-dom\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@dr.pogodin/react-utils\"] = factory(require(\"@babel/runtime/helpers/asyncToGenerator\"), require(\"@babel/runtime/helpers/defineProperty\"), require(\"@babel/runtime/helpers/objectWithoutProperties\"), require(\"@babel/runtime/helpers/slicedToArray\"), require(\"@babel/runtime/helpers/typeof\"), require(\"@babel/runtime/regenerator\"), require(\"@dr.pogodin/react-global-state\"), require(\"@dr.pogodin/react-themes\"), require(\"axios\"), require(\"dayjs\"), require(\"lodash\"), require(\"prop-types\"), require(\"qs\"), require(\"react\"), require(\"react-dom\"), require(\"react-helmet\"), require(\"react-router-dom\"));\n\telse\n\t\troot[\"@dr.pogodin/react-utils\"] = factory(root[\"@babel/runtime/helpers/asyncToGenerator\"], root[\"@babel/runtime/helpers/defineProperty\"], root[\"@babel/runtime/helpers/objectWithoutProperties\"], root[\"@babel/runtime/helpers/slicedToArray\"], root[\"@babel/runtime/helpers/typeof\"], root[\"@babel/runtime/regenerator\"], root[\"@dr.pogodin/react-global-state\"], root[\"@dr.pogodin/react-themes\"], root[\"axios\"], root[\"dayjs\"], root[\"lodash\"], root[\"prop-types\"], root[\"qs\"], root[\"react\"], root[\"react-dom\"], root[\"react-helmet\"], root[\"react-router-dom\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE__373__, __WEBPACK_EXTERNAL_MODULE__12__, __WEBPACK_EXTERNAL_MODULE__755__, __WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__727__, __WEBPACK_EXTERNAL_MODULE__531__, __WEBPACK_EXTERNAL_MODULE__828__, __WEBPACK_EXTERNAL_MODULE__19__, __WEBPACK_EXTERNAL_MODULE__376__, __WEBPACK_EXTERNAL_MODULE__349__, __WEBPACK_EXTERNAL_MODULE__804__, __WEBPACK_EXTERNAL_MODULE__229__, __WEBPACK_EXTERNAL_MODULE__850__, __WEBPACK_EXTERNAL_MODULE__297__, __WEBPACK_EXTERNAL_MODULE__268__, __WEBPACK_EXTERNAL_MODULE__481__, __WEBPACK_EXTERNAL_MODULE__146__) {\nreturn ","/**\n * @category Utilities\n * @module webpack\n * @desc\n * ```js\n * import { webpack } from '@dr.pogodin/react-utils';\n * ```\n * Webpack-related utilities.\n */\n\n/**\n * ```js\n * import { webpack } from '@dr.pogodin/react-utils';\n * const { requireWeak } = webpack;\n * ```\n * Requires the specified module without including it into the bundle during\n * Webpack build. This function should be executed only server-side.\n *\n * WARNING: Beware to pass in relative paths: they will be resolved relative\n * to the library distribution function, this is not what you want in most of\n * cases. To convert a relative path to the absolute one, do in the caller code\n * ```\n * import path from 'path';\n * const p = path.resolve(__dirname, './relative/path');\n * const module = requireWeak(p);\n * ```\n * In case you use an absolute path that relies on Babel module resolver,\n * pass it through resolveWeak function below.\n *\n * @param {string} modulePath\n * @return {object} Required module.\n */\nexport function requireWeak(modulePath) {\n /* eslint-disable no-eval */\n const { default: def, ...named } = eval('require')(modulePath);\n /* eslint-enable no-eval */\n\n if (!def) return named;\n\n Object.entries(named).forEach(([key, value]) => {\n if (def[key]) throw Error('Conflict between default and named exports');\n def[key] = value;\n });\n return def;\n}\n\n/**\n * ```js\n * import { webpack } from '@dr.pogodin/react-utils';\n * const { resolveWeak } = webpack;\n * ```\n * Resolves specified module path with help of Babel's module resolver.\n * Yes, the function itself just returns its argument to the caller, but Babel\n * is configured to resolve the first argument of resolveWeak(..) function, thus\n * the result will be the resolved path.\n * @param {string} modulePath\n * @return {string} Absolute or relative path to the module.\n */\nexport function resolveWeak(modulePath) {\n return modulePath;\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/** @license React v17.0.2\n * react-jsx-runtime.production.min.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';require(\"object-assign\");var f=require(\"react\"),g=60103;exports.Fragment=60107;if(\"function\"===typeof Symbol&&Symbol.for){var h=Symbol.for;g=h(\"react.element\");exports.Fragment=h(\"react.fragment\")}var m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=\"\"+k);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(l=a.ref);for(b in a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__373__;","module.exports = __WEBPACK_EXTERNAL_MODULE__12__;","module.exports = __WEBPACK_EXTERNAL_MODULE__755__;","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","module.exports = __WEBPACK_EXTERNAL_MODULE__727__;","module.exports = __WEBPACK_EXTERNAL_MODULE__531__;","module.exports = __WEBPACK_EXTERNAL_MODULE__828__;","module.exports = __WEBPACK_EXTERNAL_MODULE__19__;","module.exports = __WEBPACK_EXTERNAL_MODULE__376__;","module.exports = __WEBPACK_EXTERNAL_MODULE__349__;","module.exports = __WEBPACK_EXTERNAL_MODULE__804__;","module.exports = __WEBPACK_EXTERNAL_MODULE__229__;","module.exports = __WEBPACK_EXTERNAL_MODULE__850__;","module.exports = __WEBPACK_EXTERNAL_MODULE__297__;","module.exports = __WEBPACK_EXTERNAL_MODULE__268__;","module.exports = __WEBPACK_EXTERNAL_MODULE__481__;","module.exports = __WEBPACK_EXTERNAL_MODULE__146__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * @category Utilities\n * @module isomorphy\n * @desc\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * ```\n * Collection of helpers for dealing with isomorphic aspects of code\n * (mostly environment checks: client- or server-side, development or\n * production, _etc._).\n *\n * **Beware:** This module relies on Babel and Webpack configurations provided\n * by `react-utils` library being used by the host code, along with provided\n * methods for server creation and client-side app initialization. It won't\n * work correctly with a different app setup.\n */\n/* global window */\n\n/**\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * const { IS_CLIENT_SIDE } = isomorphy;\n * ```\n * `true` within client-side environment (browser), `false` at server-side.\n */\nexport const IS_CLIENT_SIDE = typeof process !== 'object'\n || !process.versions || !process.versions.node;\n\n/**\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * const { IS_SERVER_SIDE } = isomorphy;\n * ```\n * `true` within the server-side environment (node), `false` at client-side.\n */\nexport const IS_SERVER_SIDE = !IS_CLIENT_SIDE;\n\n/**\n * @ignore\n * @return {string} Code mode: \"development\" or \"production\".\n */\nfunction getMode() {\n return process.env.NODE_ENV;\n}\n\n/**\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * const { isDevBuild } = isomorphy;\n * ```\n * Returns `true` if development version of the code is running;\n * `false` otherwise.\n * @return {boolean}\n */\nexport function isDevBuild() {\n return getMode() === 'development';\n}\n\n/**\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * const { isProdBuild } = isomorphy;\n * ```\n * Returns `true` if production build of the code is running;\n * `false` otherwise.\n * @return {boolean}\n */\nexport function isProdBuild() {\n return getMode() === 'production';\n}\n\n/**\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * const { getBuildInfo } = isomorphy;\n * ```\n * Returns build info object.\n * @returns {object}\n */\nexport function getBuildInfo() {\n return (IS_CLIENT_SIDE ? window : global).TRU_BUILD_INFO;\n}\n\n/**\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * const { buildTimestamp } = isomorphy;\n * ```\n * Returns build timestamp of the front-end JS bundle.\n * @return {string} ISO date/time string.\n */\nexport function buildTimestamp() {\n return getBuildInfo().timestamp;\n}\n","/**\n * @category Utilities\n * @module config\n * @desc\n * ```js\n * import { config } from '@dr.pogodin/react-utils';\n * ```\n * This module provides isomorphic application configuration, based on\n * [**node-config**](https://github.com/lorenwest/node-config) library.\n * At the server-side it works just as `config` library import,\n * at the client it is made available in the same format via\n * injection into HTML template during the server-side rendering.\n *\n * There are two nuances when imported at the client side:\n * - Any configurations under `SECRET` key at the top level of config won't\n * be present (they are automatically stripped out by the server-side\n * renderer, thus providing a configuration segment where server-side\n * only secrets may be added).\n * - Some extra fields are added to the config by **react-utils** library\n * itself, to facilitate some other functionalities.\n */\n/* global window */\n\nimport { IS_CLIENT_SIDE } from './isomorphy';\nimport { requireWeak } from './webpack';\n\n/* eslint-disable global-require */\nexport default IS_CLIENT_SIDE ? window.CONFIG : requireWeak('config');\n/* eslint-enable global-require */\n","/**\n * @category Utilities\n * @module time\n * @desc\n * ```js\n * import { time } from '@dr.pogodin/react-utils';\n * ```\n * Date & time utilities. The `time` export is a convenient alias for\n * [dayjs](https://day.js.org/en/) library, _i.e._ you can use `time`\n * in all ways you would use `dayjs`. It is further extended with\n * the following additional members.\n */\n\nimport dayjs from 'dayjs';\n\n/**\n * @static\n * @const SEC_MS\n * @desc One second, expressed in milliseconds (equals 1000 ms).\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * console.log(time.SEC_MS); // Prints: 1000\n */\ndayjs.SEC_MS = 1000;\n\n/**\n * @static\n * @const MIN_MS\n * @desc One minute, expressed in milliseconds (equals 60 &times; `SEC_MS`).\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * console.log(time.MIN_MS); // Prints: 60000\n */\ndayjs.MIN_MS = 60 * dayjs.SEC_MS;\n\n/**\n * @static\n * @const HOUR_MS\n * @desc One hour, expressed in milliseconds (equals 60 &times; `MIN_MS`).\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * console.log(time.HOUR_MS); // Prints: 3600000\n */\ndayjs.HOUR_MS = 60 * dayjs.MIN_MS;\n\n/**\n * @static\n * @const DAY_MS\n * @desc One day, expressed in milliseconds (equals 24 &times; `HOUR_MS`).\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * console.log(time.DAY_MS); // Prints: 86400000\n */\ndayjs.DAY_MS = 24 * dayjs.HOUR_MS;\n\n/**\n * @static\n * @const YEAR_MS\n * @desc One year, expressed in milliseconds (equals 365 &times; `DAY_MS`,\n * thus a normal, non-leap year).\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * console.log(time.YEAR_MS); // Prints: 31536000000\n */\ndayjs.YEAR_MS = 365 * dayjs.DAY_MS;\n\n/**\n * @static\n * @func now\n * @desc Returns Unix timestamp [ms] (thus, it is just an alias for `Date.now`).\n * @return {number}\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * console.log(time.now()); // Prints the current timestamp, e.g. 1618608761000.\n */\ndayjs.now = Date.now;\n\n/**\n * @static\n * @func timer\n * @desc Creates a Promise, which resolves after the given timeout.\n * @param {number} timeout Timeout [ms].\n * @return {Promise} Resolves after the timeout.\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * time.timer(5000).then(() => console.log('5 seconds have passed'))\n */\ndayjs.timer = async function timer(timeout) {\n return new Promise((resolve) => setTimeout(resolve, timeout));\n};\n\nexport default dayjs;\n","/**\n * @category Utilities\n * @module url\n * @desc\n * ```jsx\n * import { url } from '@dr.pogodin/react-utils';\n * ```\n * URL utilities.\n */\n\nimport { trimEnd } from 'lodash';\n\n/**\n * ```js\n * import { url } from '@dr.pogodin/react-utils';\n * const { parent } = url;\n * ```\n * Given an URL, returns the parent URL.\n *\n * Namely, this function trims any `/` symbols at the given `url` end, then cuts\n * out the last path segment of the result. The exact logic might be enhanced\n * later. The overall intent is: if you have the current URL, and need the URL\n * for going one level up, calling `url.parent(url)` will give you that.\n * @param {string} url\n * @return {string}\n */\nexport function parent(path) {\n return path.slice(0, trimEnd(path, '/').lastIndexOf('/'));\n}\n\nexport default null;\n","/**\n * @category Utilities\n * @module themed\n * @desc\n * ```js\n * import { themed, ThemeProvider } from '@dr.pogodin/react-utils';\n * ```\n * Encapsulates\n * [`dr.pogodin/react-themes`](https://www.npmjs.com/package/@dr.pogodin/react-themes)\n * library for React component styling with theme composition. For convenience,\n * the aliases are provided for react themes exports. They work the same as\n * specified in the `react-themes` documentation, and `react-utils`\n * configration is fully compliant with expected CSS Modules setup.\n * | Export from `react-utils` | Original export from `react-themes` |\n * | ------------------------- | -------------------------------------- |\n * | `themed` | _default export_ (component decorator) |\n * | `themed.COMPOSE` | `COMPOSE` |\n * | `themed.PRIORITY` | `PRIORITY` |\n * | `ThemeProvider` | `ThemeProvider` |\n */\nimport themed, {\n COMPOSE,\n PRIORITY,\n ThemeProvider,\n} from '@dr.pogodin/react-themes';\n\nimport config from './config';\nimport * as isomorphy from './isomorphy';\nimport time from './time';\nimport * as url from './url';\nimport * as webpack from './webpack';\n\nthemed.COMPOSE = COMPOSE;\nthemed.PRIORITY = PRIORITY;\n\nlet JU = null; // eslint-disable-line import/no-mutable-exports\nif (isomorphy.IS_SERVER_SIDE\n && (process.env.NODE_CONFIG_ENV || process.env.NODE_ENV) !== 'production'\n) {\n /* eslint-disable global-require */\n const path = webpack.requireWeak('path');\n JU = webpack.requireWeak(path.resolve(__dirname, './jest'));\n /* eslint-enable global-require */\n}\n\n/**\n * @category Utilities\n * @func newBarrier\n * @global\n * @desc\n * ```js\n * import { newBarrier } from '@dr.pogodin/react-utils';\n * ```\n * Creates a new async barrier: a Promise instance with its resolve method\n * attached as `.resolve` field.\n * @return {Promise}\n * @example\n * import { newBarrier } from '@dr.pogodin/react-utils';\n * (async () => {\n * const barrier = newBarrier();\n * setTimeout(() => barrier.resolve(), 5000);\n * await barrier;\n * console.log('This will be printed only after the timeout fires.');\n * })();\n */\nfunction newBarrier() {\n let resolve;\n const promise = new Promise((res) => { resolve = res; });\n promise.resolve = resolve;\n return promise;\n}\n\n/**\n * @category Utilities\n * @global\n * @func withRetries\n * @desc\n * ```js\n * import { withRetries } from '@dr.pogodin/react-utils';\n * ```\n * Attempts to perform given asynchronous `action` up to `maxRetries` times,\n * with the given `interval` between attempts. If any attempt is successful,\n * the result is returned immediately, with no further attempts done;\n * otherwise, if all attempts fail, the result Promise rejects after the last\n * attempt.\n * @param {function} action\n * @param {number} [maxRetries=5] Optional. Maximum number of retries. Defaults\n * to 5 attempts.\n * @param {number} [interval=1000] Optional. Interval between retries [ms].\n * Defaults to 1 second.\n * @return {Promise} Resolves to the result of successful operation, or\n * rejects with the error from the latst failed attempt.\n * @example\n * import { withRetries } from '@dr.pogodin/react-utils';\n *\n * let firstCall = true;\n *\n * function sampleAction() {\n * if (!firstCall) return 'success';\n * firstCall = false;\n * throw Error('The first call to this method fails');\n * }\n *\n * withRetries(sampleAction).then(console.log);\n * // It will print 'success' after one second, once the second attempt\n * // is performed.\n */\nexport async function withRetries(action, maxRetries = 5, interval = 1000) {\n /* eslint-disable no-await-in-loop */\n for (let n = 1; ; ++n) {\n try {\n return await action();\n } catch (error) {\n if (n < maxRetries) await time.timer(interval);\n else throw error;\n }\n }\n /* eslint-enable no-await-in-loop */\n}\n\nexport {\n config,\n isomorphy,\n JU,\n newBarrier,\n themed,\n ThemeProvider,\n time,\n url,\n webpack,\n};\n","/* global window */\n\nimport PT from 'prop-types';\nimport { createElement } from 'react';\n\nimport './style.scss';\n\n/**\n * @category Components\n * @func Link\n * @desc\n * ```js\n * import { Link } from '@dr.pogodin/react-utils';\n * ```\n * The `<Link>` component, and almost identical `<NavLink>` component, are\n * auxiliary wrappers around\n * [React Router](https://github.com/ReactTraining/react-router)'s\n * `<Link>` and `<NavLink>` components; they help to handle external and\n * internal links in uniform manner.\n *\n * The `<Link>` (`<NavLink>`) component is rendered as a simple `<a>` element\n * when:\n * 1. The link is absolute, i.e. starts with `http://` or `https://`.\n * 2. The link points to an anchor, i.e. starts with `#` symbol.\n * 3. The link should be opened in a new tab (`openNewTab` property).\n * 4. Explicitly opted by the `enforceA` property.\n *\n * Otherwise it is rendered as the usual React Router's `<Link>` (`<NavLink>`).\n * Also in this case links to the current page scroll the page to its top when\n * clicked.\n *\n * Both `<Link>` and `<NavLink>` support all properties of the underlying React\n * Router's components, along with some additional props:\n *\n * **Children:** Child components are rendered as link's content.\n *\n * @param {object} [props] Component properties.\n * @param {string} [props.className] CSS classes to apply to the link.\n * @param {boolean} [props.disabled] Disables the link.\n * @param {boolean} [props.enforceA] `true` enforces rendering of the link as\n * a simple `<a>` element.\n * @param {boolean} [props.keepScrollPosition] If `true`, and the link is\n * rendered as a React Router's component, it won't reset the viewport scrolling\n * position to the origin when clicked.\n * @param {function} [props.onClick] Event handler to trigger upon click.\n * @param {function} [props.onMouseDown] Event handler to trigger on MouseDown\n * event.\n * @param {boolean} [props.openNewTab] If `true` the link opens in a new tab.\n * @param {boolean} [props.replace] When `true`, the link will replace current\n * entry in the history stack instead of adding a new one.\n * @param {string} [props.to] Link URL.\n * @param {string} [props.activeClassName] **`<NavLink>`** only: CSS class(es)\n * to apply to rendered link when it is active.\n * @param {string} [props.activeStyle] **`<NavLink>`** only: CSS styles\n * to apply to the rendered link when it is active.\n * @param {boolean} [props.exact] **`<NavLink>`** only: if `true`, the active\n * class/style will only be applied if the location is matched exactly.\n * @param {function} [props.isActive] **`<NavLink>`** only: Add extra\n * logic for determining whether the link is active. This should be used if you\n * want to do more than verify that the link’s pathname matches the current URL\n * pathname.\n * @param {object} [props.location] **`<NavLink>`** only: `isActive` compares\n * current history location (usually the current browser URL). To compare to\n * a different location, a custom `location` can be passed.\n * @param {boolean} [props.strict] **`<NavLink>`** only: . When `true`, trailing\n * slash on a location’s pathname will be taken into consideration when\n * determining if the location matches the current URL. See the `<Route strict>`\n * documentation for more information.\n */\nexport default function GenericLink({\n children,\n className,\n disabled,\n enforceA,\n keepScrollPosition,\n onClick,\n onMouseDown,\n openNewTab,\n replace,\n routerLinkType,\n to,\n ...rest\n}) {\n /* Renders Link as <a> element if:\n * - It is opted explicitely by `enforceA` prop;\n * - It should be opened in a new tab;\n * - It is an absolte URL (starts with http:// or https://);\n * - It is anchor link (starts with #). */\n if (disabled || enforceA || openNewTab || to.match(/^(#|(https?|mailto):)/)) {\n return (\n <a\n className={className}\n disabled={disabled}\n href={to}\n onClick={disabled ? (e) => e.preventDefault() : onClick}\n onMouseDown={disabled ? (e) => e.preventDefault() : onMouseDown}\n rel=\"noopener noreferrer\"\n styleName=\"link\"\n target={openNewTab ? '_blank' : ''}\n >\n {children}\n </a>\n );\n }\n\n /* Otherwise we render the link as React Router's Link or NavLink element. */\n return createElement(routerLinkType, {\n className,\n disabled,\n onMouseDown,\n replace,\n to,\n onClick: (e) => {\n // Executes the user-provided event handler, if any.\n if (onClick) onClick(e);\n\n // By default, clicking the link scrolls the page to beginning.\n if (!keepScrollPosition) window.scroll(0, 0);\n },\n ...rest,\n }, children);\n}\n\nGenericLink.defaultProps = {\n children: null,\n className: null,\n disabled: false,\n enforceA: false,\n keepScrollPosition: false,\n onClick: null,\n onMouseDown: null,\n openNewTab: false,\n replace: false,\n to: '',\n};\n\nGenericLink.propTypes = {\n children: PT.node,\n className: PT.string,\n disabled: PT.bool,\n enforceA: PT.bool,\n keepScrollPosition: PT.bool,\n onClick: PT.func,\n onMouseDown: PT.func,\n openNewTab: PT.bool,\n replace: PT.bool,\n routerLinkType: PT.elementType.isRequired,\n to: PT.oneOfType([PT.object, PT.string]),\n};\n","/**\n * The Link wraps around React Router's Link component, to automatically replace\n * it by the regular <a> element when:\n * - The target reference points to another domain;\n * - User opts to open the reference in a new tab;\n * - User explicitely opts to use <a>.\n */\n\nimport { Link as RrLink } from 'react-router-dom';\n\nimport GenericLink from './GenericLink';\n\nexport default function Link(props) {\n /* eslint-disable react/jsx-props-no-spreading */\n return <GenericLink {...props} routerLinkType={RrLink} />;\n /* eslint-enable react/jsx-props-no-spreading */\n}\n","// The <Button> component implements a standard button / button-like link.\n\nimport PT from 'prop-types';\n\nimport Link from 'components/Link';\n\nimport { themed } from 'utils';\n\nimport defaultTheme from './style.scss';\n\nfunction BaseButton({\n active,\n children,\n disabled,\n enforceA,\n onClick,\n onMouseDown,\n openNewTab,\n replace,\n theme,\n to,\n}) {\n let className = theme.button;\n if (active && theme.active) className += ` ${theme.active}`;\n if (disabled) {\n if (theme.disabled) className += ` ${theme.disabled}`;\n return (\n <div className={className}>\n {children}\n </div>\n );\n }\n if (to) {\n return (\n <Link\n className={className}\n enforceA={enforceA}\n onClick={onClick}\n onMouseDown={onMouseDown}\n openNewTab={openNewTab}\n replace={replace}\n to={to}\n >\n {children}\n </Link>\n );\n }\n return (\n <div\n className={className}\n onClick={onClick}\n onKeyPress={onClick}\n onMouseDown={onMouseDown}\n role=\"button\"\n tabIndex={0}\n >\n {children}\n </div>\n );\n}\n\n/**\n * @category Components\n * @typedef {object} ButtonTheme {@link Button} component theme: a map of CSS\n * class names to append to button elements:\n * @prop {string} [active] to the root element of active button.\n * @prop {string} [button] to the root element of any button.\n * @prop {string} [disabled] to the root element of disabled button.\n */\nconst ThemedButton = themed('Button', [\n 'active',\n 'button',\n 'disabled',\n], defaultTheme)(BaseButton);\n\n/**\n * @category Components\n * @func Button\n * @desc\n * ```js\n * import { Button } from '@dr.pogodin/react-utils';\n * ```\n * Implements themeable buttons, and button-line links (elements which look\n * like buttons, but behave as links) in the same uniform manner.\n *\n * Under the hood, a `<Button>` instance is rendered as:\n * 1. `<div>` when the button is disabled. It helps to ensure exactly\n * the same style of disabled buttons and button-like links.\n * 2. `<Link>` when `to` property is set.\n * This takes care about internal and external links.\n * 3. `<div>` element, otherwise. `<Link>` component could also play the button\n * role, but is more efficient to use `<div>` in this case.\n *\n * **Children:** Component children, if any, are rendered as button content.\n *\n * @param {object} [props] Component props.\n * @param {boolean} [props.active] Set `true` to render the button as\n * active, even if it is not active otherwise.\n * @param {boolean} [props.disabled] Set `true` to disable the button.\n * @param {boolean} [props.enforceA] When the button is rendered as `<Link>`\n * component, this prop enforces it to be rendered as a simple `<a>` element\n * (external link), rather than the React router's internal link.\n * See `<Link>` documentation to learn when links are rendered as `<a>`\n * by default.\n * @param {function} [props.onClick] Click event handler.\n * @param {function} [props.onMouseDown] Mouse down event handler.\n * @param {boolean} [props.openNewTab] Set `true` to open link in the new tab.\n * @param {boolean} [props.replace] When the button is rendered as\n * `<Link>`, and the target URL is internal, this property tells that\n * the new route should replace the last record in the browser's history,\n * rather than to be pushed as a new entry into the history stack.\n * @param {ButtonTheme} [props.theme] _Ad hoc_ button theme.\n * @param {object|string} [props.to] If specified, the button will be rendered\n * as `<Link>` (if not disabled), and it will point to the specified location\n * or URL.\n * @param {...any} [props....]\n * [Other properties of themeable components](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n *\n * @example\n * import React from 'react';\n * import { Button } from '@dr.pogodin/react-utils';\n *\n * export default function ButtonDemo() {\n * return (\n * <div>\n * <Button onClick={() => alert('Button Clicked')}>Button</Button>\n * <Button to=\"https://dr.pogodin.studio\" openNewTab>\n * Button-Like Link\n * </Button>\n * <Button disabled>Disabled Button</Button>\n * <Button active>Forced-Active Button</Button>\n * </div>\n * );\n * }\n */\nBaseButton.defaultProps = {\n active: false,\n children: undefined,\n disabled: false,\n enforceA: false,\n onClick: undefined,\n onMouseDown: undefined,\n openNewTab: false,\n replace: false,\n to: undefined,\n};\n\nBaseButton.propTypes = {\n active: PT.bool,\n children: PT.node,\n disabled: PT.bool,\n enforceA: PT.bool,\n onClick: PT.func,\n onMouseDown: PT.func,\n openNewTab: PT.bool,\n replace: PT.bool,\n theme: ThemedButton.themeType.isRequired,\n to: PT.oneOfType([PT.object, PT.string]),\n};\n\nexport default ThemedButton;\n","// extracted by mini-css-extract-plugin\nexport default {\"button\":\"_3-kJlZ\",\"context\":\"_1orYrC\",\"ad\":\"_14A3nZ\",\"hoc\":\"_5EzTm9\",\"active\":\"_3UaAP4\",\"disabled\":\"JnSSAY\"};","import PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport defaultTheme from './theme.scss';\n\nfunction Checkbox({\n checked,\n label,\n onChange,\n theme,\n}) {\n return (\n <div className={theme.container}>\n { label === undefined ? null : <p className={theme.label}>{label}</p> }\n <input\n checked={checked}\n className={theme.checkbox}\n onChange={onChange}\n type=\"checkbox\"\n />\n </div>\n );\n}\n\n/**\n * @category Components\n * @typedef {object} CheckboxTheme {@link Checkbox} component theme: a map of\n * CSS classes to append to its elements:\n * @prop {string} [checkbox] to the underlying checkbox `<input>` element.\n * @prop {string} [container] to the root checkbox element.\n * @prop {string} [label] to the checkbox label element.\n */\nconst ThemedCheckbox = themed('Checkbox', [\n 'checkbox',\n 'container',\n 'label',\n], defaultTheme)(Checkbox);\n\n/**\n * @category Components\n * @func Checkbox\n * @desc\n * ```js\n * import { Checkbox } from '@dr.pogodin/react-utils';\n * ```\n * The `<Checkbox>` component implements themeable checkboxes.\n * @param {object} [props] Component properties.\n * @param {boolean} [props.checked] Checkbox value.\n * @param {string} [props.label] Checkbox label.\n * @param {function} [props.onChange] State change handler.\n * @param {CheckboxTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other properties of themeable components](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties).\n */\nCheckbox.propTypes = {\n checked: PT.bool,\n label: PT.string,\n onChange: PT.func,\n theme: ThemedCheckbox.themeType.isRequired,\n};\n\nCheckbox.defaultProps = {\n checked: undefined,\n label: undefined,\n onChange: undefined,\n};\n\nexport default ThemedCheckbox;\n","// extracted by mini-css-extract-plugin\nexport default {\"checkbox\":\"TKBJM0\",\"context\":\"Eo3d0U\",\"ad\":\"_1zOOw4\",\"hoc\":\"Db_vtL\",\"container\":\"_265CXn\",\"label\":\"_2_7qW7\"};","/**\n * @category Components\n * @func CodeSplit\n * @desc\n * ```js\n * import { CodeSplit } from '@dr.pogodin/react-utils';\n * ```\n * The `<CodeSplit>` component implements separation of an app part into\n * separate code & style chunks (thus, allowing to split compiled app bundle\n * into smaller lazy-loaded pieces).\n * @param {object} props Component properties.\n * @param {string} props.chunkName Unique chunk name.\n * @param {function} props.getComponentAsync Asynchronous function which\n * resolves to the component to render in place of the `<CodeSplit>`\n * (_i.e._ the component which we are splitting into a separate chunk),\n * and uses dynamic `import()` with Webpack's\n * [webpackChunkName](https://webpack.js.org/api/module-methods/#magic-comments) magic\n * comment stating the same chunk name, as was specified via the `chunkName`\n * property above.\n * @param {function} [props.getComponentServer] A synchronous version of\n * `getComponentAsync()` to be used during server-side rendering. If not\n * provided, the server-side code will fallback to the asynchronous\n * `getComponentAsync()`, which is sub-optimal. If provided, it will be called\n * with a special {@link resolveRequire} function passed in as the only\n * argument, which should be used to correctly resolve & require necessary\n * modules, without Webpack being able to detect it and thus bundle them\n * into client-side code (also see the example below).\n * @param {function} [props.placeholder] Placeholder React component to render\n * while the code for actual splitted component is being loaded.\n * @param {...any} [props....] Any other properties are passed as is into\n * the splitted component.\n * @example\n * // Assume <SampleComponent> is a React sub-tree we want to split into\n * // a stand-alone chunk. To achieve it, we use <CodeSplit> to declare\n * // an auxiliary <WrappedSampleComponent>, which we'll use everywhere\n * // in the code instead of <SampleComponent>. In result <SampleComponent>,\n * // and any other components in its sub-tree, not required directly in\n * // other chunks, will be placed into a dedicated chunk.\n *\n * // WrappedSampleComponent.jsx\n * import { CodeSplit, webpack } from '@dr.pogodin/react-utils';\n *\n * export default function WrappedSampleComponent(props) {\n * return (\n * <CodeSplit\n * chunkName=\"sample-component\"\n * getComponentAsync={\n * // NOTE: Use the normal comment block opening and closing at\n * // the next line instead of / * and * / (whitespaces between\n * // start and slash had to be added due to limitations of our\n * // documentation setup).\n * () => import(/ * webpackChunkName: 'sample-component' * / 'path/to/SampleComponent')\n * }\n * getComponentServer={\n * // NOTE: You cannot just use the standard require() here, as it would\n * // cause Webpack to bundle in required module into the current chunk,\n * // instead of the split one. Thus, this workaround.\n * (resolveRequire) => resolveRequire(__dirname, 'path/to/SampleComponent');\n * }\n * placeholder={() => <div>Optional Placeholder</div>}\n * {...props}\n * />\n * );\n * }\n */\n\nimport { isomorphy, webpack } from 'utils';\n\nimport ClientSide from './ClientSide';\n\nexport default isomorphy.IS_SERVER_SIDE\n ? webpack.requireWeak(`${__dirname}/ServerSide`) : ClientSide;\n","/**\n * Client-side implementation of a split code chunk.\n */\n/* global document, window */\n/* eslint-disable react/jsx-props-no-spreading */\n\nimport { useEffect, useRef, useState } from 'react';\n\nimport { useAsyncData } from '@dr.pogodin/react-global-state';\n\nimport { newBarrier } from 'utils';\nimport { getBuildInfo } from 'utils/isomorphy';\nimport time from 'utils/time';\n\nexport default function ClientSide({\n chunkName,\n getComponentAsync,\n placeholder,\n ...rest\n}) {\n const { current: heap } = useRef({\n pendingStyles: [],\n renderInitialized: false,\n stylesInitialized: false,\n });\n\n // publicPath from buildInfo does not have a trailing slash at the end.\n const { publicPath } = getBuildInfo();\n\n // This code block initiates style loading as soon as possible; it collects\n // into heap.pendingStyles all style load promises; and heap.stylesInitialized\n // flag remains set until the styles are teared down upon unmounting.\n if (!heap.stylesInitialized) {\n heap.stylesInitialized = true;\n window.CHUNK_GROUPS[chunkName].forEach((asset) => {\n if (!asset.endsWith('.css')) return;\n const path = `${publicPath}/${asset}`;\n let link = document.querySelector(`link[href=\"${path}\"]`);\n if (!link) {\n link = document.createElement('link');\n link.setAttribute('href', path);\n link.setAttribute('rel', 'stylesheet');\n\n const barrier = newBarrier();\n link.onload = barrier.resolve;\n heap.pendingStyles.push(barrier);\n\n const head = document.querySelector('head');\n head.appendChild(link);\n }\n if (!link.dependants) link.dependants = new Set([chunkName]);\n else link.dependants.add(chunkName);\n });\n }\n\n // Async loading of React component necessary to render the chunk.\n const { data } = useAsyncData(\n `dr_pogodin_react_utils___split_components.${chunkName}`,\n getComponentAsync,\n { maxage: time.YEAR_MS },\n );\n\n const createRender = () => {\n const Scene = data.default || data;\n return <div data-chunk-name={chunkName}><Scene {...rest} /></div>;\n };\n\n const [render, setRender] = useState(() => {\n // No need to await anything, we can render the final component right away.\n if (data && !heap.pendingStyles.length) {\n heap.renderInitialized = true;\n return createRender();\n }\n\n // Try to reuse the markup rendered during SSR.\n const node = document.querySelector(`[data-chunk-name=${chunkName}]`);\n if (node) {\n return (\n <div\n /* eslint-disable react/no-danger */\n dangerouslySetInnerHTML={{ __html: node.innerHTML || '' }}\n /* eslint-disable react/no-danger */\n data-chunk-name={chunkName}\n />\n );\n }\n\n // Else render placeholder, or empty div.\n const Scene = placeholder || (() => null);\n return <div><Scene /></div>;\n });\n\n // At this point, if we have data, the absense of heap.renderInitialized flag\n // means we have to await styles loading; once it is done, and if we are still\n // mounted, we can set the final render.\n if (data && !heap.renderInitialized) {\n heap.renderInitialized = true;\n Promise.all(heap.pendingStyles).then(() => {\n if (heap.stylesInitialized) setRender(createRender());\n });\n }\n\n // This effectively fires only once, just before the component unmounts.\n useEffect(() => () => {\n heap.stylesInitialized = false;\n window.CHUNK_GROUPS[chunkName].forEach((item) => {\n if (!item.endsWith('.css')) return;\n const path = `${publicPath}/${item}`;\n const link = document.querySelector(`link[href=\"${path}\"]`);\n link.dependants.delete(chunkName);\n if (!link.dependants.size) {\n const head = document.querySelector('head');\n head.removeChild(link);\n }\n });\n }, [chunkName, heap, publicPath]);\n\n return render;\n}\n","// Initialization of client-side code.\n/* global document, window */\n\nimport { GlobalStateProvider } from '@dr.pogodin/react-global-state';\n\nimport ReactDom from 'react-dom';\nimport { BrowserRouter } from 'react-router-dom';\n\n/**\n * @category Utilities\n * @func client\n * @desc\n * ```js\n * import { client } from '@dr.pogodin/react-utils';\n * ```\n * Prepares and launches the app at client side.\n * @param {object} Application Root application component\n */\nexport default function Launch(Application) {\n ReactDom.hydrate((\n <GlobalStateProvider initialState={window.ISTATE}>\n <BrowserRouter>\n <Application />\n </BrowserRouter>\n </GlobalStateProvider>\n ), document.getElementById('react-view'));\n}\n","import { isString } from 'lodash';\nimport PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport defaultTheme from './theme.scss';\n\n/**\n * @category Components\n * @typedef {object} DropdownOption Represents a single option inside\n * {@link Dropdown} component.\n * @prop {string} [name] Option name (displayed in UI). If not given,\n * the `value` is used as the name.\n * @prop {string} value Option value key (used inside the code).\n */\n\n/**\n * @category Components\n * @desc\n * ```js\n * import { Dropdown } from '@dr.pogodin/react-utils';\n * ```\n * Implements a themeable dropdown list. Internally it is rendered with help of\n * the standard HTML `<select>` element, thus the styling support is somewhat\n * limited.\n * @param {object} [props] Component properties.\n * @param {function} [props.filter] Options filter function. If provided, only\n * those elements of `options` list will be used by the dropdown, for which this\n * filter returns `true`.\n * @param {string} [props.label] Dropdown label.\n * @param {string} [props.onChange] Selection event handler.\n * @param {DropdownOption[]|string[]} [props.options=[]] Array of dropdown\n * options. For string elements the option value and name will be the same.\n * It is allowed to mix DropdownOption and string elements in the same option\n * list.\n * @param {DropdownTheme} [props.theme] _Ad hoc_ theme.\n * @param {string} [props.value] Currently selected value.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n */\nfunction Dropdown({\n filter,\n label,\n onChange,\n options,\n theme,\n value,\n}) {\n const optionArray = [(\n <option\n className={theme.hiddenOption}\n key=\"__reactUtilsHiddenOption\"\n >\n &zwnj;\n </option>\n )];\n for (let i = 0; i < options.length; ++i) {\n let op = options[i];\n if (!filter || filter(op)) {\n if (isString(op)) op = { value: op };\n optionArray.push((\n <option className={theme.option} key={op.value} value={op.value}>\n {op.name === undefined ? op.value : op.name }\n </option>\n ));\n }\n }\n return (\n <div className={theme.container}>\n { label === undefined ? null : <p className={theme.label}>{label}</p> }\n <select\n className={theme.select}\n onChange={onChange}\n value={value}\n >\n {optionArray}\n </select>\n <div className={theme.arrow}>▼</div>\n </div>\n );\n}\n\n/**\n * @category Components\n * @typedef {object} DropdownTheme {@link Dropdown} component theme.\n * @prop {string} [arrow] Class name for arrow element.\n * @prop {string} [container] Class name for the root dropdown element.\n * @prop {string} [hiddenOption] Class name for the \"hidden option\" element,\n * which is rendered when dropdown value is undefined.\n * @prop {string} [label] Class name for label element.\n * @prop {string} [option] Class name for each option item element.\n * @prop {string} [select] Class name for the underlying `<select>` element.\n */\nconst ThemedDropdown = themed('Dropdown', [\n 'arrow',\n 'container',\n 'hiddenOption',\n 'label',\n 'option',\n 'select',\n], defaultTheme)(Dropdown);\n\nDropdown.propTypes = {\n filter: PT.func,\n label: PT.string,\n onChange: PT.func,\n options: PT.arrayOf(\n PT.oneOfType([\n PT.shape({\n name: PT.node,\n value: PT.string.isRequired,\n }),\n PT.string,\n ]).isRequired,\n ),\n theme: ThemedDropdown.themeType.isRequired,\n value: PT.string,\n};\n\nDropdown.defaultProps = {\n filter: undefined,\n label: undefined,\n onChange: undefined,\n options: [],\n value: undefined,\n};\n\nexport default ThemedDropdown;\n","// extracted by mini-css-extract-plugin\nexport default {\"arrow\":\"zk_X_t\",\"context\":\"_36FjKe\",\"ad\":\"_1tuabC\",\"hoc\":\"IXTRRj\",\"container\":\"_2pSA6T\",\"label\":\"_22Z9dt\",\"hiddenOption\":\"_24WdmW\",\"select\":\"_3plxWK\"};","import PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport defaultTheme from './theme.scss';\n\n/**\n * @category Components\n * @desc\n * ```js\n * import { Input } from '@dr.pogodin/react-utils';\n * ```\n * Themeable input field, based on the standard HTML `<input>` element.\n * @param {object} [props]\n * @param {string} [props.label] Input label.\n * @param {InputTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....] [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n * @param {...any} [props....] Any other properties are passed to the underlying\n * `<input>` element.\n */\nfunction Input({\n label,\n theme,\n ...rest\n}) {\n return (\n <div className={theme.container}>\n { label === undefined ? null : <p className={theme.label}>{label}</p> }\n <input\n className={theme.input}\n {...rest} // eslint-disable-line react/jsx-props-no-spreading\n />\n </div>\n );\n}\n\n/**\n * @category Components\n * @typedef {object} InputTheme {@link Input} component theme.\n * @prop {string} [container] Class name for root component element.\n * @prop {string} [input] Class name for the underlying HTML `<input>` element.\n * @prop {string} [label] Class name for label element.\n */\nconst ThemedInput = themed('Input', [\n 'container',\n 'input',\n 'label',\n], defaultTheme)(Input);\n\nInput.propTypes = {\n label: PT.string,\n theme: ThemedInput.themeType.isRequired,\n};\n\nInput.defaultProps = {\n label: undefined,\n};\n\nexport default ThemedInput;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"_1kPBvU\",\"context\":\"_21ZJJ1\",\"ad\":\"_19c9Ts\",\"hoc\":\"_2SyEqs\",\"input\":\"_3DHAKJ\",\"label\":\"pIHNog\"};","import PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport baseTheme from './base-theme.scss';\n\n/**\n * @category Components\n * @func PageLayout\n * @desc\n * ```jsx\n * import { PageLayout } from '@dr.pogodin/react-utils';\n * export default PageLayoutDemo() {\n * return (\n * <PageLayout>\n * Page content.\n * </PageLayout>\n * );\n * }\n * ```\n * Simple and themeable page layout. It keeps the main content centered in\n * a column of limited width, which fills entire viewport on small screens\n * (under `$screen-md = 1024px` size). At larger screens the column keeps\n * `$screen-md` size, and it is centered at the page, surrounded by side\n * panels, where additional content can be displayed.\n *\n * **Children:** Component children are rendered as the content of main panel.\n * @param {object} [props] Component properties.\n * @param {Node} [props.leftSidePanelContent] The content for left side panel.\n * @param {Node} [props.rightSidePanelContent] The content for right side panel.\n * @param {PageLayoutTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n */\nfunction PageLayout({\n children,\n leftSidePanelContent,\n rightSidePanelContent,\n theme,\n}) {\n return (\n <div className={theme.container}>\n <div className={[theme.sidePanel, theme.leftSidePanel].join(' ')}>\n {leftSidePanelContent}\n </div>\n <div className={theme.mainPanel}>\n {children}\n </div>\n <div className={[theme.sidePanel, theme.rightSidePanel].join(' ')}>\n {rightSidePanelContent}\n </div>\n </div>\n );\n}\n\n/**\n * @category Components\n * @typedef {object} PageLayoutTheme {@link PageLayout} component theme.\n * @prop {string} [container] Class for the root container of page layout.\n * @prop {string} [mainPanel] Class for the main content panel.\n * @prop {string} [sidePanel] Class for each side panel.\n * @prop {string} [leftSidePanel] Class for the left side panel (in addition to\n * `.sidePanel`, if also provided).\n * @prop {string} [rightSidePanel] Class for the right side panel (in addition\n * to `.sidePanel`, if also provided).\n */\nconst ThemedPageLayout = themed('PageLayout', [\n 'container',\n 'leftSidePanel',\n 'mainPanel',\n 'rightSidePanel',\n 'sidePanel',\n], baseTheme)(PageLayout);\n\nPageLayout.propTypes = {\n children: PT.node,\n leftSidePanelContent: PT.node,\n rightSidePanelContent: PT.node,\n theme: ThemedPageLayout.themeType.isRequired,\n};\n\nPageLayout.defaultProps = {\n children: null,\n leftSidePanelContent: null,\n rightSidePanelContent: null,\n};\n\nexport default ThemedPageLayout;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"_9l8HhV\",\"context\":\"_3u0VuV\",\"ad\":\"_1hw_qJ\",\"hoc\":\"fKILKU\",\"mainPanel\":\"_2izxcu\",\"sidePanel\":\"_3H_g8q\"};","import PT from 'prop-types';\nimport { createContext } from 'react';\nimport { Helmet } from 'react-helmet';\n\nconst Context = createContext();\n\n/**\n * @category Components\n * @func MetaTags\n * @desc\n * ```js\n * import { MetaTags } from '@dr.pogodin/react-utils';\n * ```\n * The `<MetaTags>` component is an auxiliary wrapper around `react-helmet`,\n * which helps to inject meta tags (page title, a brief content description,\n * and social media thumbnails) into generated pages.\n *\n * When `<MetaTags>` are nested within the app's component tree, meta tags\n * content injected by components encountered down the tree overrides tags\n * injected by previously encountered `<MetaTags>` components.\n *\n * **Children:** `<MetaTags>` children, if any, are rendered at the component's\n * location. The context passes down all meta tag properties of parent\n * `<MetaTag>` instances. These properties can fetched within children\n * hierarchy in the following way, thus facilitating tags modification by\n * children:\n * ```jsx\n * import { useContext } from 'react';\n * import { MetaTags } from '@dr.pogodin/react-utils';\n * export default function SampleComponent() {\n * const { title, description, ...rest } = useContext(MetaTags.Context);\n * // Do something with these props here, e.g. prefix the page title with\n * // the component name:\n * return (\n * <MetaTags title={`Sample component - ${title}`} />\n * );\n * }\n * ```\n * @param {object} [props]\n * @param {string} [props.description] Page description to use in\n * the `description` meta tag, and as a default description of Open Graph Tags.\n * @param {string} [props.image] The absolute URL of thumbnail image to use\n * in Open Graph Tags (`twitter:image`, and `og:image`). By default these tags\n * are not injected.\n *\n * **BEWARE:** It must be a complete, absolute URL, including the correct\n * website domain and HTTP schema.\n *\n * @param {string} [props.siteName]: The site name to use in `twitter:site`,\n * and `og:sitename` tags. By default these tags are not injected.\n *\n * @param {string} [props.socialDescription] The site description to use in\n * `twitter:description` and `og:description` meta tags. By default the value of\n * `description` prop is used.\n * @param {string} [props.socialTitle] The page title to use in\n * `twitter:title`, `og:title`, and `og:image:alt` tags. By default the value of\n * `title` prop is used. Also the `og:image:alt` tag is only injected if `image`\n * prop is present.\n *\n * @param {string} props.title: The page name to use in the `<title>` tag.\n * It is also used as the default value of `socialTitle` prop.\n *\n * @param {string} [props.url] The page URL to use in `og:url` tag.\n * By default the tag is not injected.\n *\n * @example\n * // Top-level app component.\n * import { MetaTags } from '@dr.pogodin/react-utils';\n * export default function ApplicationRoot() {\n * return (\n * <>\n * <MetaTags\n * title=\"Sample website title\"\n * description=\"Just the minimal example of MetaTags usage\"\n * >\n * // The actual application content here.\n * </>\n * );\n * }\n */\nexport default function MetaTags({\n children,\n description,\n image,\n siteName,\n socialDescription,\n socialTitle,\n title,\n url,\n}) {\n const socTitle = socialTitle || title;\n const socDesc = socialDescription || description;\n return (\n <>\n <Helmet>\n {/* General tags. */}\n <title>\n {title}\n </title>\n <meta name=\"description\" content={description} />\n\n {/* Twitter cards. */}\n <meta name=\"twitter:card\" content=\"summary_large_image\" />\n <meta name=\"twitter:title\" content={socTitle} />\n <meta name=\"twitter:description\" content={socDesc} />\n { image ? <meta name=\"twitter:image\" content={image} /> : null }\n {\n siteName ? (\n <meta name=\"twitter:site\" content={`@${siteName}`} />\n ) : null\n }\n\n {/* Open Graph data. */}\n <meta name=\"og:title\" content={socTitle} />\n { image ? <meta name=\"og:image\" content={image} /> : null }\n { image ? <meta name=\"og:image:alt\" content={socTitle} /> : null }\n <meta name=\"og:description\" content={socDesc} />\n {\n siteName ? (<meta name=\"og:sitename\" content={siteName} />) : null\n }\n { url ? (<meta name=\"og:url\" content={url} />) : null }\n </Helmet>\n {\n children ? (\n <Context.Provider\n value={{\n description,\n image,\n siteName,\n socialDescription,\n socialTitle,\n title,\n url,\n }}\n >\n {children}\n </Context.Provider>\n ) : null\n }\n </>\n );\n}\n\nMetaTags.Context = Context;\n\nMetaTags.defaultProps = {\n children: null,\n image: null,\n siteName: null,\n socialDescription: null,\n socialTitle: null,\n url: null,\n};\n\nMetaTags.propTypes = {\n children: PT.node,\n description: PT.string.isRequired,\n image: PT.string,\n siteName: PT.string,\n socialDescription: PT.string,\n socialTitle: PT.string,\n title: PT.string.isRequired,\n url: PT.string,\n};\n","/* global document */\n\nimport { noop } from 'lodash';\nimport {\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport ReactDom from 'react-dom';\nimport PT from 'prop-types';\nimport themed from '@dr.pogodin/react-themes';\n\nimport baseTheme from './base-theme.scss';\nimport './styles.scss';\n\n/**\n * @category Components\n * @func Modal\n * @desc\n * ```jsx\n * import { BaseModal, Modal } from '@dr.pogodin/react-utils';\n * ```\n * The `<Modal>` component implements a simple themeable modal window, wrapped\n * into the default theme. `<BaseModal>` exposes the base non-themed component.\n * **Children:** Component children are rendered as the modal content.\n * @param {object} props Component properties.\n * @param {function} [props.onCancel] The callback to trigger when user\n * clicks outside the modal, or presses Escape. It is expected to hide the\n * modal.\n * @param {ModalTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n * @example\n * import React, { useState } from 'react';\n * import { Button, Modal } from '@dr.pogodin/react-utils';\n *\n * export default function ModalDemo() {\n * const [visible, setVisible] = useState(false);\n * return (\n * <div>\n * <Button onClick={() => setVisible(true)}>Show Modal</Button>\n * {\n * visible ? (\n * <Modal onCancel={() => setVisible(false)}>\n * This is a simple modal. Click outside, or press Escape to close\n * it.\n * </Modal>\n * ) : null\n * }\n * </div>\n * );\n * }\n */\nfunction BaseModal({\n children,\n onCancel,\n theme,\n}) {\n const containerRef = useRef();\n const overlayRef = useRef();\n const [portal, setPortal] = useState();\n\n useEffect(() => {\n const p = document.createElement('div');\n document.body.classList.add('scrolling-disabled-by-modal');\n document.body.appendChild(p);\n setPortal(p);\n return () => {\n document.body.classList.remove('scrolling-disabled-by-modal');\n document.body.removeChild(p);\n };\n }, []);\n\n const focusLast = useMemo(() => (\n <div\n onFocus={() => {\n const elems = containerRef.current.querySelectorAll('*');\n for (let i = elems.length - 1; i >= 0; --i) {\n elems[i].focus();\n if (document.activeElement === elems[i]) return;\n }\n overlayRef.current.focus();\n }}\n /* eslint-disable jsx-a11y/no-noninteractive-tabindex */\n tabIndex=\"0\"\n /* eslint-enable jsx-a11y/no-noninteractive-tabindex */\n />\n ), []);\n\n return portal ? ReactDom.createPortal(\n (\n <>\n {focusLast}\n <div\n aria-label=\"Cancel\"\n className={theme.overlay}\n onClick={() => onCancel()}\n onKeyDown={(e) => {\n if (e.key === 'Escape') onCancel();\n }}\n ref={(node) => {\n if (node && node !== overlayRef.current) {\n overlayRef.current = node;\n node.focus();\n }\n }}\n role=\"button\"\n tabIndex=\"0\"\n />\n <div\n aria-modal=\"true\"\n className={theme.container}\n onWheel={(event) => event.stopPropagation()}\n ref={containerRef}\n role=\"dialog\"\n >\n {children}\n </div>\n <div\n onFocus={() => {\n overlayRef.current.focus();\n }}\n /* eslint-disable jsx-a11y/no-noninteractive-tabindex */\n tabIndex=\"0\"\n /* eslint-enable jsx-a11y/no-noninteractive-tabindex */\n />\n {focusLast}\n </>\n ),\n portal,\n ) : null;\n}\n\n/**\n * @category Components\n * @typedef {object} ModalTheme {@link Modal} component theme.\n * @prop {string} [container] Class for modal container.\n * @prop {string} [overlay] Class for modal overlay (the background closing\n * the page underneath the modal).\n */\nconst ThemedModal = themed(\n 'Modal',\n [\n 'container',\n 'overlay',\n ],\n baseTheme,\n)(BaseModal);\n\nBaseModal.propTypes = {\n onCancel: PT.func,\n children: PT.node,\n theme: ThemedModal.themeType,\n};\n\nBaseModal.defaultProps = {\n onCancel: noop,\n children: null,\n};\n\nexport default ThemedModal;\n\n/* Non-themed version of the Modal. */\nexport { BaseModal };\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"_1z_lT2\",\"context\":\"b8XBy_\",\"ad\":\"_323Y1S\",\"hoc\":\"lkxNM-\",\"container\":\"uS4uDL\"};","import { NavLink as RrNavLink } from 'react-router-dom';\n\nimport GenericLink from './GenericLink';\n\n/**\n * @category Components\n * @func NavLink\n * @desc\n * ```js\n * import { NavLink } from '@dr.pogodin/react-utils';\n * ```\n * See {@link Link} documentation.\n * @param {object} [props] Component properties.\n */\nexport default function NavLink(props) {\n /* eslint-disable react/jsx-props-no-spreading */\n return <GenericLink {...props} routerLinkType={RrNavLink} />;\n /* eslint-enable react/jsx-props-no-spreading */\n}\n","import PT from 'prop-types';\n\nimport './style.scss';\n\n/**\n * @category Components\n * @func ScalableRect\n * @desc\n * ```js\n * import { ScalableRect } from '@dr.pogodin/react-utils';\n * ```\n * The `<ScalableRect>` component implements container keeping given aspect\n * ratio, while its width is altered.\n *\n * **Children:** Component children are rendered as the component's content.\n * @param {object} props\n * @param {string} [props.className] CSS class for component container.\n * @param {string} [props.ratio=1:1] Ratio of the rendered rectangle sides,\n * in `W:H` form.\n */\nexport default function ScalableRect({ children, className, ratio }) {\n const aux = ratio.split(':');\n const paddingBottom = `${(100 * aux[1]) / aux[0]}%`;\n\n /* NOTE: In case the following code looks strange to you, mind that we want to\n * allow the user to set custom styles on this component. If user passes in a\n * \"className\" prop (possibly \"styleName\", but that one is converted to\n * \"className\" by Babel just before being passed into this component), it\n * should not interfere with the sizing behavior, thus we need an extra <div>\n * level in this component; however, if user does not need a custom styling,\n * we can save one level of HTML code, so we do it. */\n const rect = (\n <div\n style={{ paddingBottom }}\n styleName=\"container\"\n >\n <div styleName=\"wrapper\">\n {children}\n </div>\n </div>\n );\n return className ? (\n <div className={className}>\n {rect}\n </div>\n ) : rect;\n}\n\nScalableRect.defaultProps = {\n children: null,\n className: null,\n ratio: '1:1',\n};\n\nScalableRect.propTypes = {\n children: PT.node,\n className: PT.string,\n ratio: PT.string,\n};\n","import PT from 'prop-types';\nimport themed from '@dr.pogodin/react-themes';\n\nimport defaultTheme from './theme.scss';\n\n/**\n * @category Components\n * @func Throbber\n * @desc\n * ```jsx\n * import { Throbber } from '@dr.pogodin/react-utils';\n * ```\n * Throbber is an \"action in progress\" indicator, which renders\n * three bouncing circles as a simple pending activity indicator,\n * and can be further themed to a certain degree.\n * @param {object} [props] Component properties.\n * @param {ThrobberTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n */\nfunction Throbber({\n theme,\n}) {\n return (\n <div className={theme.container} styleName=\"container\">\n <div className={theme.circle} styleName=\"circle\" />\n <div className={theme.circle} styleName=\"circle\" />\n <div className={theme.circle} styleName=\"circle\" />\n </div>\n );\n}\n\nThrobber.defaultProps = {\n theme: {},\n};\n\nThrobber.propTypes = {\n theme: PT.shape({\n container: PT.string,\n circle: PT.string,\n }),\n};\n\n/**\n * @category Components\n * @typedef {object} ThrobberTheme {@link Throbber} theme.\n * @prop {string} [container] Class name to add to the throbber container.\n * @prop {string} [circle] Class name to add to each throbber circle.\n */\nexport default themed('Throbber', [\n 'circle',\n 'container',\n], defaultTheme)(Throbber);\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"_1aJSBX\",\"context\":\"_1izs01\",\"ad\":\"_2m21Oe\",\"hoc\":\"_132xA1\",\"circle\":\"_2c_4lS\",\"bouncing\":\"_1wSERI\"};","/**\n * The actual tooltip component. It is rendered outside the regular document\n * hierarchy, and with sub-components managed without React to achieve the best\n * performance during animation.\n */\n/* global document, window */\n\nimport {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useState,\n} from 'react';\nimport { createPortal } from 'react-dom';\n\nimport PT from 'prop-types';\n\n/* Valid placements of the rendered tooltip. They will be overriden when\n * necessary to fit the tooltip within the viewport. */\nexport const PLACEMENTS = {\n ABOVE_CURSOR: 'ABOVE_CURSOR',\n ABOVE_ELEMENT: 'ABOVE_ELEMENT',\n BELOW_CURSOR: 'BELOW_CURSOR',\n BELOW_ELEMENT: 'BELOW_ELEMENT',\n};\n\nconst ARROW_STYLE_DOWN = [\n 'border-bottom-color:transparent',\n 'border-left-color:transparent',\n 'border-right-color:transparent',\n].join(';');\n\nconst ARROW_STYLE_UP = [\n 'border-top-color:transparent',\n 'border-left-color:transparent',\n 'border-right-color:transparent',\n].join(';');\n\n/**\n * Creates tooltip components.\n * @ignore\n * @param {object} theme Themes to use for tooltip container, arrow,\n * and content.\n * @return {object} Object with DOM references to the container components:\n * container, arrow, content.\n */\nfunction createTooltipComponents(theme) {\n const arrow = document.createElement('div');\n if (theme.arrow) arrow.setAttribute('class', theme.arrow);\n\n const content = document.createElement('div');\n if (theme.content) content.setAttribute('class', theme.content);\n\n const container = document.createElement('div');\n if (theme.container) container.setAttribute('class', theme.container);\n\n container.appendChild(arrow);\n container.appendChild(content);\n document.body.appendChild(container);\n\n return { container, arrow, content };\n}\n\n/**\n * Generates bounding client rectangles for tooltip components.\n * @ignore\n * @param {object} tooltip DOM references to the tooltip components.\n * @param {object} tooltip.arrow\n * @param {object} tooltip.container\n * @return {{ arrow: object, container}} Object holding tooltip rectangles in\n * two fields.\n */\nfunction calcTooltipRects(tooltip) {\n return {\n arrow: tooltip.arrow.getBoundingClientRect(),\n container: tooltip.container.getBoundingClientRect(),\n };\n}\n\n/**\n * Calculates the document viewport size.\n * @ignore\n * @return {{x, y, width, height}}\n */\nfunction calcViewportRect() {\n const { pageXOffset, pageYOffset } = window;\n const { documentElement: { clientHeight, clientWidth } } = document;\n return {\n left: pageXOffset,\n right: pageXOffset + clientWidth,\n top: pageYOffset,\n bottom: pageYOffset + clientHeight,\n };\n}\n\n/**\n * Calculates tooltip and arrow positions for the placement just above\n * the cursor.\n * @ignore\n * @param {number} x Cursor page-x position.\n * @param {number} y Cursor page-y position.\n * @param {object} tooltipRects Bounding client rectangles of tooltip parts.\n * @param {object} tooltipRects.arrow\n * @param {object} tooltipRects.container\n * @return {object} Contains the following fields:\n * - {number} arrowX\n * - {number} arrowY\n * - {number} containerX\n * - {number} containerY\n * - {string} baseArrowStyle\n */\nfunction calcPositionAboveXY(x, y, tooltipRects) {\n const { arrow, container } = tooltipRects;\n return {\n arrowX: 0.5 * (container.width - arrow.width),\n arrowY: container.height,\n containerX: x - container.width / 2,\n containerY: y - container.height - arrow.height / 1.5,\n\n // TODO: Instead of already setting the base style here, we should\n // introduce a set of constants for arrow directions, which will help\n // to do checks dependant on the arrow direction.\n baseArrowStyle: ARROW_STYLE_DOWN,\n };\n}\n\n/*\nconst HIT = {\n NONE: false,\n LEFT: 'LEFT',\n RIGHT: 'RIGHT',\n TOP: 'TOP',\n BOTTOM: 'BOTTOM',\n};\n*/\n\n/**\n * Checks whether\n * @param {object} pos\n * @param {object} tooltipRects\n * @param {object} viewportRect\n * @return {HIT}\n */\n/*\nfunction checkViewportFit(pos, tooltipRects, viewportRect) {\n const { containerX, containerY } = pos;\n if (containerX < viewportRect.left + 6) return HIT.LEFT;\n if (containerX > viewportRect.right - 6) return HIT.RIGHT;\n return HIT.NONE;\n}\n*/\n\n/**\n * Shifts tooltip horizontally to fit into the viewport, while keeping\n * the arrow pointed to the XY point.\n * @param {number} x\n * @param {number} y\n * @param {object} pos\n * @param {number} pageXOffset\n * @param {number} pageXWidth\n */\n/*\nfunction xPageFitCorrection(x, y, pos, pageXOffset, pageXWidth) {\n if (pos.containerX < pageXOffset + 6) {\n pos.containerX = pageXOffset + 6;\n pos.arrowX = Math.max(6, pageX - containerX - arrowRect.width / 2);\n } else {\n const maxX = pageXOffset + docRect.width - containerRect.width - 6;\n if (containerX > maxX) {\n containerX = maxX;\n arrowX = Math.min(\n containerRect.width - 6,\n pageX - containerX - arrowRect.width / 2,\n );\n }\n }\n}\n*/\n\n/**\n * Sets positions of tooltip components to point the tooltip to the specified\n * page point.\n * @ignore\n * @param {number} pageX\n * @param {number} pageY\n * @param {PLACEMENTS} placement\n * @param {object} element DOM reference to the element wrapped by the tooltip.\n * @param {object} tooltip\n * @param {object} tooltip.arrow DOM reference to the tooltip arrow.\n * @param {object} tooltip.container DOM reference to the tooltip container.\n */\nfunction setComponentPositions(\n pageX,\n pageY,\n placement,\n element,\n tooltip,\n) {\n const tooltipRects = calcTooltipRects(tooltip);\n const viewportRect = calcViewportRect();\n\n /* Default container coords: tooltip at the top. */\n const pos = calcPositionAboveXY(pageX, pageY, tooltipRects);\n\n if (pos.containerX < viewportRect.left + 6) {\n pos.containerX = viewportRect.left + 6;\n pos.arrowX = Math.max(\n 6,\n pageX - pos.containerX - tooltipRects.arrow.width / 2,\n );\n } else {\n const maxX = viewportRect.right - 6 - tooltipRects.container.width;\n if (pos.containerX > maxX) {\n pos.containerX = maxX;\n pos.arrowX = Math.min(\n tooltipRects.container.width - 6,\n pageX - pos.containerX - tooltipRects.arrow.width / 2,\n );\n }\n }\n\n /* If tooltip has not enough space on top - make it bottom tooltip. */\n if (pos.containerY < viewportRect.top + 6) {\n pos.containerY += tooltipRects.container.height\n + 2 * tooltipRects.arrow.height;\n pos.arrowY -= tooltipRects.container.height\n + tooltipRects.arrow.height;\n pos.baseArrowStyle = ARROW_STYLE_UP;\n }\n\n const containerStyle = `left:${pos.containerX}px;top:${pos.containerY}px`;\n tooltip.container.setAttribute('style', containerStyle);\n\n const arrowStyle = `${pos.baseArrowStyle};left:${pos.arrowX}px;top:${pos.arrowY}px`;\n tooltip.arrow.setAttribute('style', arrowStyle);\n}\n\n/* The Tooltip component itself. */\nconst Tooltip = forwardRef(({ children, theme }, ref) => {\n const [components, setComponents] = useState(null);\n\n const pointTo = (pageX, pageY, placement, element) => components\n && setComponentPositions(pageX, pageY, placement, element, components);\n useImperativeHandle(ref, () => ({ pointTo }));\n\n /* Inits and destroys tooltip components. */\n useEffect(() => {\n const x = createTooltipComponents(theme);\n setComponents(x);\n return () => {\n document.body.removeChild(x.container);\n setComponents(null);\n };\n }, [theme]);\n\n return components ? createPortal(children, components.content) : null;\n});\n\nTooltip.propTypes = {\n children: PT.node,\n theme: PT.shape().isRequired,\n};\n\nTooltip.defaultProps = {\n children: null,\n};\n\nexport default Tooltip;\n","/* global window */\n\nimport PT from 'prop-types';\nimport { useEffect, useRef, useState } from 'react';\n\nimport { themed } from 'utils';\n\nimport Tooltip, { PLACEMENTS } from './Tooltip';\n\nimport defaultTheme from './default-theme.scss';\n\n/**\n * @category Components\n * @func WithTooltip\n * @desc\n * ```js\n * import { WithTooltip } from '@dr.pogodin/react-utils';\n * ```\n * Implements a simple to use and themeable tooltip component, _e.g._\n * ```js\n * <WithTooltip tip=\"This is example tooltip.\">\n * <p>Hover to see the tooltip.</p>\n * </WithTooltip>\n * ```\n * **Children:** Children are rendered in the place of `<WithTooltip>`,\n * and when hovered the tooltip is shown. By default the wrapper itself is\n * `<div>` block with `display: inline-block`.\n * @param {object} props Component properties.\n * @param {React.node} props.tip &ndash; Anything React is able to render,\n * _e.g._ a tooltip text. This will be the tooltip content.\n * @param {WithTooltipTheme} props.theme _Ad hoc_ theme.\n */\nfunction Wrapper({\n children,\n placement,\n tip,\n theme,\n}) {\n const tooltipRef = useRef();\n const wrapperRef = useRef();\n const [showTooltip, setShowTooltip] = useState(false);\n\n const updatePortalPosition = (cursorX, cursorY) => {\n if (!showTooltip) setShowTooltip(true);\n else {\n const wrapperRect = wrapperRef.current.getBoundingClientRect();\n if (\n cursorX < wrapperRect.left\n || cursorX > wrapperRect.right\n || cursorY < wrapperRect.top\n || cursorY > wrapperRect.bottom\n ) {\n setShowTooltip(false);\n } else if (tooltipRef.current) {\n tooltipRef.current.pointTo(\n cursorX + window.pageXOffset,\n cursorY + window.pageYOffset,\n placement,\n wrapperRef.current,\n );\n }\n }\n };\n\n useEffect(() => {\n if (showTooltip && tip !== null) {\n const listener = () => setShowTooltip(false);\n window.addEventListener('scroll', listener);\n return () => window.removeEventListener('scroll', listener);\n }\n return undefined;\n }, [showTooltip, tip]);\n\n return (\n <div\n className={theme.wrapper}\n onMouseLeave={() => setShowTooltip(false)}\n onMouseMove={(e) => updatePortalPosition(e.clientX, e.clientY)}\n ref={wrapperRef}\n >\n {\n showTooltip && tip !== null ? (\n <Tooltip ref={tooltipRef} theme={theme}>{tip}</Tooltip>\n ) : null\n }\n {children}\n </div>\n );\n}\n\nconst ThemedWrapper = themed(\n 'WithTooltip',\n [\n 'appearance',\n 'arrow',\n 'container',\n 'content',\n 'wrapper',\n ],\n defaultTheme,\n)(Wrapper);\n\nThemedWrapper.PLACEMENTS = PLACEMENTS;\n\nWrapper.propTypes = {\n children: PT.node,\n placement: PT.oneOf(Object.values(PLACEMENTS)),\n theme: ThemedWrapper.themeType.isRequired,\n tip: PT.node,\n};\n\nWrapper.defaultProps = {\n children: null,\n placement: PLACEMENTS.ABOVE_CURSOR,\n tip: null,\n};\n\nexport default ThemedWrapper;\n","// extracted by mini-css-extract-plugin\nexport default {\"arrow\":\"scfFf8\",\"ad\":\"aAk6G-\",\"hoc\":\"_14hBg4\",\"context\":\"_2m35Lg\",\"container\":\"XykNzN\",\"appearance\":\"_11gtAo\",\"wrapper\":\"_1xTGgL\"};","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"_3E1caC\",\"context\":\"_2mWOa4\",\"ad\":\"_2Q3v3l\",\"hoc\":\"_3-8kXq\"};","import PT from 'prop-types';\nimport qs from 'qs';\nimport ScalableRect from 'components/ScalableRect';\nimport themed from '@dr.pogodin/react-themes';\nimport Throbber from 'components/Throbber';\n\nimport baseTheme from './base.scss';\nimport throbberTheme from './throbber.scss';\n\n/**\n * @category Components\n * @func YouTubeVideo\n * @desc\n * ```js\n * import { YouTubeVideo } from '@dr.pogodin/react-utils';\n * ```\n * A component for embeding a YouTube video.\n * @param {object} [props] Component properties.\n * @param {boolean} [props.autoplay] If `true` the video will start to play\n * automatically once loaded.\n * @param {string} [props.src] URL of the video to play. Can be in any of\n * the following formats, and keeps any additional query parameters understood\n * by the YouTube IFrame player:\n * - `https://www.youtube.com/watch?v=NdF6Rmt6Ado`\n * - `https://youtu.be/NdF6Rmt6Ado`\n * - `https://www.youtube.com/embed/NdF6Rmt6Ado`\n * @param {YouTubeVideoTheme} [props.theme] _Ad hoc_ theme.\n * @param {string} [props.title] The `title` attribute to add to the player\n * IFrame.\n */\nfunction YouTubeVideo({\n autoplay,\n src,\n theme,\n title,\n}) {\n let [url, query] = src.split('?');\n query = query ? qs.parse(query) : {};\n\n const videoId = query.v || url.match(/\\/([a-zA-Z0-9-_]*)$/)[1];\n url = `https://www.youtube.com/embed/${videoId}`;\n\n delete query.v;\n query.autoplay = autoplay ? 1 : 0;\n url += `?${qs.stringify(query)}`;\n\n // TODO: https://developers.google.com/youtube/player_parameters\n // More query parameters can be exposed via the component props.\n\n return (\n <ScalableRect className={theme.container} ratio=\"16:9\">\n <Throbber theme={throbberTheme} />\n <iframe\n allow=\"autoplay\"\n allowFullScreen\n className={theme.video}\n src={url}\n title={title}\n />\n </ScalableRect>\n );\n}\n\nconst ThemedYouTubeVideo = themed(\n 'YouTubeVideo',\n [\n 'container',\n 'video',\n ],\n baseTheme,\n)(YouTubeVideo);\n\nYouTubeVideo.propTypes = {\n autoplay: PT.bool,\n src: PT.string.isRequired,\n theme: ThemedYouTubeVideo.themeType.isRequired,\n title: PT.string,\n};\n\nYouTubeVideo.defaultProps = {\n autoplay: false,\n title: '',\n};\n\nexport default ThemedYouTubeVideo;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"mqlUDF\",\"context\":\"n-j8Eo\",\"ad\":\"_2KXRTp\",\"hoc\":\"_1bn6KT\",\"video\":\"MFAQ6x\"};","import 'styles/global.scss';\n\nimport { isomorphy, webpack } from 'utils';\n\nlet server = null; // eslint-disable-line import/no-mutable-exports\nif (isomorphy.IS_SERVER_SIDE) {\n const path = webpack.requireWeak('path');\n server = webpack.requireWeak(path.resolve(__dirname, './server'));\n}\n\n/**\n * @category Utilities\n * @module _\n * @desc\n * ```js\n * import { _ } from '@dr.pogodin/react-utils';\n * ```\n * `_` is just an alias for [lodash](https://lodash.com/docs) library,\n * which provides various generic JS helpers.\n */\nexport { default as _ } from 'lodash';\n\n/**\n * @category Utilities\n * @module api\n * @desc\n * ```js\n * import { api } from '@dr.pogodin/react-utils';\n * ```\n * `api` is just an alias for [`axios`](https://www.npmjs.com/package/axios)\n * library, which provides a great HTTP(S) client.\n */\nexport { default as api } from 'axios';\n\n/**\n * @category Utilities\n * @module PT\n * @desc\n * ```js\n * import { PT } from '@dr.pogodin/react-utils';\n * ```\n * `PT` (short for `prop-types`) is an alias for\n * [prop-types](https://www.npmjs.com/package/prop-types) library,\n * which facilitates runtime type checks for React.\n */\nexport * as PT from 'prop-types';\n\n/**\n * @category Utilities\n * @module ReactGlobalState\n * @desc\n * ```jsx\n * import {\n * getGlobalState,\n * GlobalStateProvider,\n * useAsyncCollection,\n * useAsyncData,\n * useGlobalState,\n * } from '@dr.pogodin/react-utils';\n * ```\n * For convenience, `react-utils` re-exports components and hooks provided by\n * [react-global-state](https://dr.pogodin.studio/docs/react-global-state/index.html)\n * library, which is a state of the art library for global state and\n * asynchronous data managment in React applications, powered by hooks and\n * Context API. It is simple, efficient, and with a full server-side rendering\n * (SSR) support.\n *\n * The standard {@link client} and {@link server} automatically wrap your\n * app into `<GlobalStateProvider>`, also `server` wires `react-global-state` to\n * SSR setup, and also exposes the actual incoming HTTP request object via SSR\n * context, to which it attaches it as `req` field.\n */\n\nexport {\n getGlobalState,\n GlobalStateProvider,\n useAsyncCollection,\n useAsyncData,\n useGlobalState,\n} from '@dr.pogodin/react-global-state';\n\nexport * from 'components';\nexport * from 'utils';\n\nexport { server };\n"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__373__","__WEBPACK_EXTERNAL_MODULE__12__","__WEBPACK_EXTERNAL_MODULE__755__","__WEBPACK_EXTERNAL_MODULE__0__","__WEBPACK_EXTERNAL_MODULE__727__","__WEBPACK_EXTERNAL_MODULE__531__","__WEBPACK_EXTERNAL_MODULE__828__","__WEBPACK_EXTERNAL_MODULE__19__","__WEBPACK_EXTERNAL_MODULE__376__","__WEBPACK_EXTERNAL_MODULE__349__","__WEBPACK_EXTERNAL_MODULE__804__","__WEBPACK_EXTERNAL_MODULE__229__","__WEBPACK_EXTERNAL_MODULE__850__","__WEBPACK_EXTERNAL_MODULE__297__","__WEBPACK_EXTERNAL_MODULE__268__","__WEBPACK_EXTERNAL_MODULE__481__","__WEBPACK_EXTERNAL_MODULE__146__","requireWeak","modulePath","eval","def","default","named","Object","entries","forEach","key","value","Error","resolveWeak","getOwnPropertySymbols","hasOwnProperty","prototype","propIsEnumerable","propertyIsEnumerable","toObject","val","TypeError","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","map","n","join","test3","split","letter","keys","err","shouldUseNative","target","source","from","symbols","to","s","arguments","length","call","f","g","Fragment","Symbol","for","h","m","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","ref","__self","__source","q","c","a","k","b","d","e","l","defaultProps","$$typeof","type","props","_owner","current","jsx","jsxs","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","getter","__esModule","definition","o","defineProperty","enumerable","get","globalThis","Function","window","obj","prop","r","toStringTag","IS_CLIENT_SIDE","process","versions","node","IS_SERVER_SIDE","isDevBuild","getMode","isProdBuild","getBuildInfo","global","TRU_BUILD_INFO","buildTimestamp","timestamp","CONFIG","dayjs","Date","now","timeout","Promise","resolve","setTimeout","parent","path","slice","trimEnd","lastIndexOf","themed","COMPOSE","PRIORITY","JU","isomorphy","env","NODE_CONFIG_ENV","webpack","newBarrier","promise","res","withRetries","action","maxRetries","interval","time","timer","GenericLink","children","className","disabled","enforceA","keepScrollPosition","onClick","onMouseDown","openNewTab","replace","routerLinkType","rest","match","href","preventDefault","rel","createElement","scroll","Link","RrLink","BaseButton","active","theme","button","onKeyPress","role","tabIndex","propTypes","PT","ThemedButton","themeType","isRequired","Checkbox","checked","label","onChange","container","checkbox","ThemedCheckbox","chunkName","getComponentAsync","placeholder","heap","useRef","pendingStyles","renderInitialized","stylesInitialized","publicPath","CHUNK_GROUPS","asset","endsWith","link","document","querySelector","setAttribute","barrier","onload","push","appendChild","dependants","add","Set","data","useAsyncData","maxage","YEAR_MS","createRender","Scene","useState","dangerouslySetInnerHTML","__html","innerHTML","render","setRender","all","then","useEffect","item","delete","size","removeChild","Launch","Application","ReactDom","GlobalStateProvider","initialState","ISTATE","BrowserRouter","getElementById","Dropdown","filter","options","optionArray","hiddenOption","op","isString","option","name","select","arrow","ThemedDropdown","Input","input","ThemedInput","PageLayout","leftSidePanelContent","rightSidePanelContent","sidePanel","leftSidePanel","mainPanel","rightSidePanel","ThemedPageLayout","Context","createContext","MetaTags","description","image","siteName","socialDescription","socialTitle","title","url","socTitle","socDesc","Helmet","content","Provider","BaseModal","onCancel","containerRef","overlayRef","portal","setPortal","body","classList","remove","focusLast","useMemo","onFocus","elems","querySelectorAll","focus","activeElement","overlay","onKeyDown","onWheel","event","stopPropagation","ThemedModal","noop","NavLink","RrNavLink","ScalableRect","aux","ratio","paddingBottom","rect","style","Throbber","circle","PLACEMENTS","ABOVE_CURSOR","ABOVE_ELEMENT","BELOW_CURSOR","BELOW_ELEMENT","ARROW_STYLE_DOWN","ARROW_STYLE_UP","Tooltip","forwardRef","components","setComponents","pointTo","pageX","pageY","placement","element","tooltip","pageXOffset","pageYOffset","clientHeight","tooltipRects","getBoundingClientRect","calcTooltipRects","viewportRect","documentElement","left","right","clientWidth","top","bottom","pos","x","y","arrowX","width","arrowY","height","containerX","containerY","baseArrowStyle","calcPositionAboveXY","Math","max","maxX","min","containerStyle","arrowStyle","setComponentPositions","useImperativeHandle","createTooltipComponents","createPortal","Wrapper","tip","tooltipRef","wrapperRef","showTooltip","setShowTooltip","listener","addEventListener","removeEventListener","wrapper","onMouseLeave","onMouseMove","cursorX","cursorY","wrapperRect","updatePortalPosition","clientX","clientY","ThemedWrapper","values","YouTubeVideo","autoplay","src","query","videoId","qs","v","throbberTheme","allow","allowFullScreen","video","ThemedYouTubeVideo","server"],"sourceRoot":""}
1
+ {"version":3,"file":"web.bundle.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,2CAA4CA,QAAQ,yCAA0CA,QAAQ,kDAAmDA,QAAQ,wCAAyCA,QAAQ,iCAAkCA,QAAQ,8BAA+BA,QAAQ,kCAAmCA,QAAQ,4BAA6BA,QAAQ,SAAUA,QAAQ,SAAUA,QAAQ,UAAWA,QAAQ,cAAeA,QAAQ,MAAOA,QAAQ,SAAUA,QAAQ,aAAcA,QAAQ,gBAAiBA,QAAQ,qBACzhB,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,0CAA2C,wCAAyC,iDAAkD,uCAAwC,gCAAiC,6BAA8B,iCAAkC,2BAA4B,QAAS,QAAS,SAAU,aAAc,KAAM,QAAS,YAAa,eAAgB,oBAAqBJ,GACpY,iBAAZC,QACdA,QAAQ,2BAA6BD,EAAQG,QAAQ,2CAA4CA,QAAQ,yCAA0CA,QAAQ,kDAAmDA,Q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,MAEA,EAAmBiH,EAAInV,MAAM,KAA7B,YAAKmO,EAAL,KAAUiH,EAAV,KAGMC,GAFND,EAAQA,EAAQE,KAAAA,MAASF,GAAS,IAEZG,GAAKpH,EAAI7G,MAAM,uBAAuB,GAU5D,OATA6G,EAAM,iCAAH,OAAoCkH,UAEhCD,EAAMG,EACbH,EAAMF,SAAWA,EAAW,EAAI,EAChC/G,GAAO,IAAJ,OAAQmH,KAAAA,UAAaF,KAMtB,UAAClF,GAAD,CAActJ,UAAWoB,EAAMc,UAAWsH,MAAM,OAAhD,WACE,SAAC,GAAD,CAAUpI,MAAOwN,MACjB,mBACEC,MAAM,WACNC,iBAAe,EACf9O,UAAWoB,EAAM2N,MACjBR,IAAKhH,EACLD,MAAOA,OAMf,IAAM0H,GAAqBnQ,GAAAA,CACzB,eACA,CACE,YACA,SClEJ,CAAgB,UAAY,SAAS,QAAU,SAAS,GAAK,UAAU,IAAM,UAAU,MAAQ,UD8DpEA,CAOzBwP,IAEFA,GAAa5M,UAAY,CACvB6M,SAAU5M,IAAAA,KACV6M,IAAK7M,IAAAA,OAAAA,WACLN,MAAO4N,GAAmBpN,UAAUC,WACpCyF,MAAO5F,IAAAA,QAGT2M,GAAa9S,aAAe,CAC1B+S,UAAU,EACVhH,MAAO,IAGT,UEhFI2H,GAAS,KACb,GAAIhQ,EAA0B,CAC5B,IAAMR,GAAOW,EAAQhI,YAAY,QACjC6X,GAAS7P,EAAQhI,YAAYqH,GAAKH,YAAmB","sources":["webpack://@dr.pogodin/react-utils/webpack/universalModuleDefinition","webpack://@dr.pogodin/react-utils/./src/shared/utils/webpack.js","webpack://@dr.pogodin/react-utils/./node_modules/object-assign/index.js","webpack://@dr.pogodin/react-utils/./node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://@dr.pogodin/react-utils/./node_modules/react/jsx-runtime.js","webpack://@dr.pogodin/react-utils/external umd \"@babel/runtime/helpers/asyncToGenerator\"","webpack://@dr.pogodin/react-utils/external umd \"@babel/runtime/helpers/defineProperty\"","webpack://@dr.pogodin/react-utils/external umd \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://@dr.pogodin/react-utils/external umd \"@babel/runtime/helpers/slicedToArray\"","webpack://@dr.pogodin/react-utils/external umd \"@babel/runtime/helpers/typeof\"","webpack://@dr.pogodin/react-utils/external umd \"@babel/runtime/regenerator\"","webpack://@dr.pogodin/react-utils/external umd \"@dr.pogodin/react-global-state\"","webpack://@dr.pogodin/react-utils/external umd \"@dr.pogodin/react-themes\"","webpack://@dr.pogodin/react-utils/external umd \"axios\"","webpack://@dr.pogodin/react-utils/external umd \"dayjs\"","webpack://@dr.pogodin/react-utils/external umd \"lodash\"","webpack://@dr.pogodin/react-utils/external umd \"prop-types\"","webpack://@dr.pogodin/react-utils/external umd \"qs\"","webpack://@dr.pogodin/react-utils/external umd \"react\"","webpack://@dr.pogodin/react-utils/external umd \"react-dom\"","webpack://@dr.pogodin/react-utils/external umd \"react-helmet\"","webpack://@dr.pogodin/react-utils/external umd \"react-router-dom\"","webpack://@dr.pogodin/react-utils/webpack/bootstrap","webpack://@dr.pogodin/react-utils/webpack/runtime/compat get default export","webpack://@dr.pogodin/react-utils/webpack/runtime/define property getters","webpack://@dr.pogodin/react-utils/webpack/runtime/global","webpack://@dr.pogodin/react-utils/webpack/runtime/hasOwnProperty shorthand","webpack://@dr.pogodin/react-utils/webpack/runtime/make namespace object","webpack://@dr.pogodin/react-utils/./src/shared/utils/isomorphy.js","webpack://@dr.pogodin/react-utils/./src/shared/utils/config.js","webpack://@dr.pogodin/react-utils/./src/shared/utils/time.js","webpack://@dr.pogodin/react-utils/./src/shared/utils/url.js","webpack://@dr.pogodin/react-utils/./src/shared/utils/index.js","webpack://@dr.pogodin/react-utils/./src/shared/components/GenericLink/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Link.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Button/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Button/style.scss?4fed","webpack://@dr.pogodin/react-utils/./src/shared/components/Checkbox/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Checkbox/theme.scss?e808","webpack://@dr.pogodin/react-utils/./src/shared/components/CodeSplit/index.js","webpack://@dr.pogodin/react-utils/./src/shared/components/CodeSplit/ClientSide.jsx","webpack://@dr.pogodin/react-utils/./src/client/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Dropdown/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Dropdown/theme.scss?9ee7","webpack://@dr.pogodin/react-utils/./src/shared/components/Input/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Input/theme.scss?43a4","webpack://@dr.pogodin/react-utils/./src/shared/components/PageLayout/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/PageLayout/base-theme.scss?229d","webpack://@dr.pogodin/react-utils/./src/shared/components/MetaTags.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Modal/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Modal/base-theme.scss?9858","webpack://@dr.pogodin/react-utils/./src/shared/components/NavLink.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/ScalableRect/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Throbber/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/Throbber/theme.scss?1805","webpack://@dr.pogodin/react-utils/./src/shared/components/WithTooltip/Tooltip.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/WithTooltip/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/WithTooltip/default-theme.scss?195d","webpack://@dr.pogodin/react-utils/./src/shared/components/YouTubeVideo/throbber.scss?c5e3","webpack://@dr.pogodin/react-utils/./src/shared/components/YouTubeVideo/index.jsx","webpack://@dr.pogodin/react-utils/./src/shared/components/YouTubeVideo/base.scss?267e","webpack://@dr.pogodin/react-utils/./src/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@babel/runtime/helpers/asyncToGenerator\"), require(\"@babel/runtime/helpers/defineProperty\"), require(\"@babel/runtime/helpers/objectWithoutProperties\"), require(\"@babel/runtime/helpers/slicedToArray\"), require(\"@babel/runtime/helpers/typeof\"), require(\"@babel/runtime/regenerator\"), require(\"@dr.pogodin/react-global-state\"), require(\"@dr.pogodin/react-themes\"), require(\"axios\"), require(\"dayjs\"), require(\"lodash\"), require(\"prop-types\"), require(\"qs\"), require(\"react\"), require(\"react-dom\"), require(\"react-helmet\"), require(\"react-router-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@babel/runtime/helpers/asyncToGenerator\", \"@babel/runtime/helpers/defineProperty\", \"@babel/runtime/helpers/objectWithoutProperties\", \"@babel/runtime/helpers/slicedToArray\", \"@babel/runtime/helpers/typeof\", \"@babel/runtime/regenerator\", \"@dr.pogodin/react-global-state\", \"@dr.pogodin/react-themes\", \"axios\", \"dayjs\", \"lodash\", \"prop-types\", \"qs\", \"react\", \"react-dom\", \"react-helmet\", \"react-router-dom\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@dr.pogodin/react-utils\"] = factory(require(\"@babel/runtime/helpers/asyncToGenerator\"), require(\"@babel/runtime/helpers/defineProperty\"), require(\"@babel/runtime/helpers/objectWithoutProperties\"), require(\"@babel/runtime/helpers/slicedToArray\"), require(\"@babel/runtime/helpers/typeof\"), require(\"@babel/runtime/regenerator\"), require(\"@dr.pogodin/react-global-state\"), require(\"@dr.pogodin/react-themes\"), require(\"axios\"), require(\"dayjs\"), require(\"lodash\"), require(\"prop-types\"), require(\"qs\"), require(\"react\"), require(\"react-dom\"), require(\"react-helmet\"), require(\"react-router-dom\"));\n\telse\n\t\troot[\"@dr.pogodin/react-utils\"] = factory(root[\"@babel/runtime/helpers/asyncToGenerator\"], root[\"@babel/runtime/helpers/defineProperty\"], root[\"@babel/runtime/helpers/objectWithoutProperties\"], root[\"@babel/runtime/helpers/slicedToArray\"], root[\"@babel/runtime/helpers/typeof\"], root[\"@babel/runtime/regenerator\"], root[\"@dr.pogodin/react-global-state\"], root[\"@dr.pogodin/react-themes\"], root[\"axios\"], root[\"dayjs\"], root[\"lodash\"], root[\"prop-types\"], root[\"qs\"], root[\"react\"], root[\"react-dom\"], root[\"react-helmet\"], root[\"react-router-dom\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE__314__, __WEBPACK_EXTERNAL_MODULE__311__, __WEBPACK_EXTERNAL_MODULE__189__, __WEBPACK_EXTERNAL_MODULE__673__, __WEBPACK_EXTERNAL_MODULE__541__, __WEBPACK_EXTERNAL_MODULE__395__, __WEBPACK_EXTERNAL_MODULE__899__, __WEBPACK_EXTERNAL_MODULE__198__, __WEBPACK_EXTERNAL_MODULE__300__, __WEBPACK_EXTERNAL_MODULE__760__, __WEBPACK_EXTERNAL_MODULE__467__, __WEBPACK_EXTERNAL_MODULE__99__, __WEBPACK_EXTERNAL_MODULE__656__, __WEBPACK_EXTERNAL_MODULE__156__, __WEBPACK_EXTERNAL_MODULE__111__, __WEBPACK_EXTERNAL_MODULE__383__, __WEBPACK_EXTERNAL_MODULE__128__) {\nreturn ","/**\n * @category Utilities\n * @module webpack\n * @desc\n * ```js\n * import { webpack } from '@dr.pogodin/react-utils';\n * ```\n * Webpack-related utilities.\n */\n\n/**\n * ```js\n * import { webpack } from '@dr.pogodin/react-utils';\n * const { requireWeak } = webpack;\n * ```\n * Requires the specified module without including it into the bundle during\n * Webpack build. This function should be executed only server-side.\n *\n * WARNING: Beware to pass in relative paths: they will be resolved relative\n * to the library distribution function, this is not what you want in most of\n * cases. To convert a relative path to the absolute one, do in the caller code\n * ```\n * import path from 'path';\n * const p = path.resolve(__dirname, './relative/path');\n * const module = requireWeak(p);\n * ```\n * In case you use an absolute path that relies on Babel module resolver,\n * pass it through resolveWeak function below.\n *\n * @param {string} modulePath\n * @return {object} Required module.\n */\nexport function requireWeak(modulePath) {\n /* eslint-disable no-eval */\n const { default: def, ...named } = eval('require')(modulePath);\n /* eslint-enable no-eval */\n\n if (!def) return named;\n\n Object.entries(named).forEach(([key, value]) => {\n if (def[key]) throw Error('Conflict between default and named exports');\n def[key] = value;\n });\n return def;\n}\n\n/**\n * ```js\n * import { webpack } from '@dr.pogodin/react-utils';\n * const { resolveWeak } = webpack;\n * ```\n * Resolves specified module path with help of Babel's module resolver.\n * Yes, the function itself just returns its argument to the caller, but Babel\n * is configured to resolve the first argument of resolveWeak(..) function, thus\n * the result will be the resolved path.\n * @param {string} modulePath\n * @return {string} Absolute or relative path to the module.\n */\nexport function resolveWeak(modulePath) {\n return modulePath;\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/** @license React v17.0.2\n * react-jsx-runtime.production.min.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';require(\"object-assign\");var f=require(\"react\"),g=60103;exports.Fragment=60107;if(\"function\"===typeof Symbol&&Symbol.for){var h=Symbol.for;g=h(\"react.element\");exports.Fragment=h(\"react.fragment\")}var m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=\"\"+k);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(l=a.ref);for(b in a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__314__;","module.exports = __WEBPACK_EXTERNAL_MODULE__311__;","module.exports = __WEBPACK_EXTERNAL_MODULE__189__;","module.exports = __WEBPACK_EXTERNAL_MODULE__673__;","module.exports = __WEBPACK_EXTERNAL_MODULE__541__;","module.exports = __WEBPACK_EXTERNAL_MODULE__395__;","module.exports = __WEBPACK_EXTERNAL_MODULE__899__;","module.exports = __WEBPACK_EXTERNAL_MODULE__198__;","module.exports = __WEBPACK_EXTERNAL_MODULE__300__;","module.exports = __WEBPACK_EXTERNAL_MODULE__760__;","module.exports = __WEBPACK_EXTERNAL_MODULE__467__;","module.exports = __WEBPACK_EXTERNAL_MODULE__99__;","module.exports = __WEBPACK_EXTERNAL_MODULE__656__;","module.exports = __WEBPACK_EXTERNAL_MODULE__156__;","module.exports = __WEBPACK_EXTERNAL_MODULE__111__;","module.exports = __WEBPACK_EXTERNAL_MODULE__383__;","module.exports = __WEBPACK_EXTERNAL_MODULE__128__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * @category Utilities\n * @module isomorphy\n * @desc\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * ```\n * Collection of helpers for dealing with isomorphic aspects of code\n * (mostly environment checks: client- or server-side, development or\n * production, _etc._).\n *\n * **Beware:** This module relies on Babel and Webpack configurations provided\n * by `react-utils` library being used by the host code, along with provided\n * methods for server creation and client-side app initialization. It won't\n * work correctly with a different app setup.\n */\n/* global window */\n\n/**\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * const { IS_CLIENT_SIDE } = isomorphy;\n * ```\n * `true` within client-side environment (browser), `false` at server-side.\n */\nexport const IS_CLIENT_SIDE = typeof process !== 'object'\n || !process.versions || !process.versions.node;\n\n/**\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * const { IS_SERVER_SIDE } = isomorphy;\n * ```\n * `true` within the server-side environment (node), `false` at client-side.\n */\nexport const IS_SERVER_SIDE = !IS_CLIENT_SIDE;\n\n/**\n * @ignore\n * @return {string} Code mode: \"development\" or \"production\".\n */\nfunction getMode() {\n return process.env.NODE_ENV;\n}\n\n/**\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * const { isDevBuild } = isomorphy;\n * ```\n * Returns `true` if development version of the code is running;\n * `false` otherwise.\n * @return {boolean}\n */\nexport function isDevBuild() {\n return getMode() === 'development';\n}\n\n/**\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * const { isProdBuild } = isomorphy;\n * ```\n * Returns `true` if production build of the code is running;\n * `false` otherwise.\n * @return {boolean}\n */\nexport function isProdBuild() {\n return getMode() === 'production';\n}\n\n/**\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * const { getBuildInfo } = isomorphy;\n * ```\n * Returns build info object.\n * @returns {object}\n */\nexport function getBuildInfo() {\n return (IS_CLIENT_SIDE ? window : global).TRU_BUILD_INFO;\n}\n\n/**\n * ```js\n * import { isomorphy } from '@dr.pogodin/react-utils';\n * const { buildTimestamp } = isomorphy;\n * ```\n * Returns build timestamp of the front-end JS bundle.\n * @return {string} ISO date/time string.\n */\nexport function buildTimestamp() {\n return getBuildInfo().timestamp;\n}\n","/**\n * @category Utilities\n * @module config\n * @desc\n * ```js\n * import { config } from '@dr.pogodin/react-utils';\n * ```\n * This module provides isomorphic application configuration, based on\n * [**node-config**](https://github.com/lorenwest/node-config) library.\n * At the server-side it works just as `config` library import,\n * at the client it is made available in the same format via\n * injection into HTML template during the server-side rendering.\n *\n * There are two nuances when imported at the client side:\n * - Any configurations under `SECRET` key at the top level of config won't\n * be present (they are automatically stripped out by the server-side\n * renderer, thus providing a configuration segment where server-side\n * only secrets may be added).\n * - Some extra fields are added to the config by **react-utils** library\n * itself, to facilitate some other functionalities.\n */\n/* global window */\n\nimport { IS_CLIENT_SIDE } from './isomorphy';\nimport { requireWeak } from './webpack';\n\n/* eslint-disable global-require */\nexport default IS_CLIENT_SIDE ? window.CONFIG : requireWeak('config');\n/* eslint-enable global-require */\n","/**\n * @category Utilities\n * @module time\n * @desc\n * ```js\n * import { time } from '@dr.pogodin/react-utils';\n * ```\n * Date & time utilities. The `time` export is a convenient alias for\n * [dayjs](https://day.js.org/en/) library, _i.e._ you can use `time`\n * in all ways you would use `dayjs`. It is further extended with\n * the following additional members.\n */\n\nimport dayjs from 'dayjs';\n\n/**\n * @static\n * @const SEC_MS\n * @desc One second, expressed in milliseconds (equals 1000 ms).\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * console.log(time.SEC_MS); // Prints: 1000\n */\ndayjs.SEC_MS = 1000;\n\n/**\n * @static\n * @const MIN_MS\n * @desc One minute, expressed in milliseconds (equals 60 &times; `SEC_MS`).\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * console.log(time.MIN_MS); // Prints: 60000\n */\ndayjs.MIN_MS = 60 * dayjs.SEC_MS;\n\n/**\n * @static\n * @const HOUR_MS\n * @desc One hour, expressed in milliseconds (equals 60 &times; `MIN_MS`).\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * console.log(time.HOUR_MS); // Prints: 3600000\n */\ndayjs.HOUR_MS = 60 * dayjs.MIN_MS;\n\n/**\n * @static\n * @const DAY_MS\n * @desc One day, expressed in milliseconds (equals 24 &times; `HOUR_MS`).\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * console.log(time.DAY_MS); // Prints: 86400000\n */\ndayjs.DAY_MS = 24 * dayjs.HOUR_MS;\n\n/**\n * @static\n * @const YEAR_MS\n * @desc One year, expressed in milliseconds (equals 365 &times; `DAY_MS`,\n * thus a normal, non-leap year).\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * console.log(time.YEAR_MS); // Prints: 31536000000\n */\ndayjs.YEAR_MS = 365 * dayjs.DAY_MS;\n\n/**\n * @static\n * @func now\n * @desc Returns Unix timestamp [ms] (thus, it is just an alias for `Date.now`).\n * @return {number}\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * console.log(time.now()); // Prints the current timestamp, e.g. 1618608761000.\n */\ndayjs.now = Date.now;\n\n/**\n * @static\n * @func timer\n * @desc Creates a Promise, which resolves after the given timeout.\n * @param {number} timeout Timeout [ms].\n * @return {Promise} Resolves after the timeout.\n * @example\n * import { time } from '@dr.pogodin/react-utils';\n * time.timer(5000).then(() => console.log('5 seconds have passed'))\n */\ndayjs.timer = async function timer(timeout) {\n return new Promise((resolve) => setTimeout(resolve, timeout));\n};\n\nexport default dayjs;\n","/**\n * @category Utilities\n * @module url\n * @desc\n * ```jsx\n * import { url } from '@dr.pogodin/react-utils';\n * ```\n * URL utilities.\n */\n\nimport { trimEnd } from 'lodash';\n\n/**\n * ```js\n * import { url } from '@dr.pogodin/react-utils';\n * const { parent } = url;\n * ```\n * Given an URL, returns the parent URL.\n *\n * Namely, this function trims any `/` symbols at the given `url` end, then cuts\n * out the last path segment of the result. The exact logic might be enhanced\n * later. The overall intent is: if you have the current URL, and need the URL\n * for going one level up, calling `url.parent(url)` will give you that.\n * @param {string} url\n * @return {string}\n */\nexport function parent(path) {\n return path.slice(0, trimEnd(path, '/').lastIndexOf('/'));\n}\n\nexport default null;\n","/**\n * @category Utilities\n * @module themed\n * @desc\n * ```js\n * import { themed, ThemeProvider } from '@dr.pogodin/react-utils';\n * ```\n * Encapsulates\n * [`dr.pogodin/react-themes`](https://www.npmjs.com/package/@dr.pogodin/react-themes)\n * library for React component styling with theme composition. For convenience,\n * the aliases are provided for react themes exports. They work the same as\n * specified in the `react-themes` documentation, and `react-utils`\n * configration is fully compliant with expected CSS Modules setup.\n * | Export from `react-utils` | Original export from `react-themes` |\n * | ------------------------- | -------------------------------------- |\n * | `themed` | _default export_ (component decorator) |\n * | `themed.COMPOSE` | `COMPOSE` |\n * | `themed.PRIORITY` | `PRIORITY` |\n * | `ThemeProvider` | `ThemeProvider` |\n */\nimport themed, {\n COMPOSE,\n PRIORITY,\n ThemeProvider,\n} from '@dr.pogodin/react-themes';\n\nimport config from './config';\nimport * as isomorphy from './isomorphy';\nimport time from './time';\nimport * as url from './url';\nimport * as webpack from './webpack';\n\nthemed.COMPOSE = COMPOSE;\nthemed.PRIORITY = PRIORITY;\n\nlet JU = null; // eslint-disable-line import/no-mutable-exports\nif (isomorphy.IS_SERVER_SIDE\n && (process.env.NODE_CONFIG_ENV || process.env.NODE_ENV) !== 'production'\n) {\n /* eslint-disable global-require */\n const path = webpack.requireWeak('path');\n JU = webpack.requireWeak(path.resolve(__dirname, './jest'));\n /* eslint-enable global-require */\n}\n\n/**\n * @category Utilities\n * @func newBarrier\n * @global\n * @desc\n * ```js\n * import { newBarrier } from '@dr.pogodin/react-utils';\n * ```\n * Creates a new async barrier: a Promise instance with its resolve method\n * attached as `.resolve` field.\n * @return {Promise}\n * @example\n * import { newBarrier } from '@dr.pogodin/react-utils';\n * (async () => {\n * const barrier = newBarrier();\n * setTimeout(() => barrier.resolve(), 5000);\n * await barrier;\n * console.log('This will be printed only after the timeout fires.');\n * })();\n */\nfunction newBarrier() {\n let resolve;\n const promise = new Promise((res) => { resolve = res; });\n promise.resolve = resolve;\n return promise;\n}\n\n/**\n * @category Utilities\n * @global\n * @func withRetries\n * @desc\n * ```js\n * import { withRetries } from '@dr.pogodin/react-utils';\n * ```\n * Attempts to perform given asynchronous `action` up to `maxRetries` times,\n * with the given `interval` between attempts. If any attempt is successful,\n * the result is returned immediately, with no further attempts done;\n * otherwise, if all attempts fail, the result Promise rejects after the last\n * attempt.\n * @param {function} action\n * @param {number} [maxRetries=5] Optional. Maximum number of retries. Defaults\n * to 5 attempts.\n * @param {number} [interval=1000] Optional. Interval between retries [ms].\n * Defaults to 1 second.\n * @return {Promise} Resolves to the result of successful operation, or\n * rejects with the error from the latst failed attempt.\n * @example\n * import { withRetries } from '@dr.pogodin/react-utils';\n *\n * let firstCall = true;\n *\n * function sampleAction() {\n * if (!firstCall) return 'success';\n * firstCall = false;\n * throw Error('The first call to this method fails');\n * }\n *\n * withRetries(sampleAction).then(console.log);\n * // It will print 'success' after one second, once the second attempt\n * // is performed.\n */\nexport async function withRetries(action, maxRetries = 5, interval = 1000) {\n /* eslint-disable no-await-in-loop */\n for (let n = 1; ; ++n) {\n try {\n return await action();\n } catch (error) {\n if (n < maxRetries) await time.timer(interval);\n else throw error;\n }\n }\n /* eslint-enable no-await-in-loop */\n}\n\nexport {\n config,\n isomorphy,\n JU,\n newBarrier,\n themed,\n ThemeProvider,\n time,\n url,\n webpack,\n};\n","/* global window */\n\nimport PT from 'prop-types';\nimport { createElement } from 'react';\n\nimport './style.scss';\n\n/**\n * @category Components\n * @func Link\n * @desc\n * ```js\n * import { Link } from '@dr.pogodin/react-utils';\n * ```\n * The `<Link>` component, and almost identical `<NavLink>` component, are\n * auxiliary wrappers around\n * [React Router](https://github.com/ReactTraining/react-router)'s\n * `<Link>` and `<NavLink>` components; they help to handle external and\n * internal links in uniform manner.\n *\n * The `<Link>` (`<NavLink>`) component is rendered as a simple `<a>` element\n * when:\n * 1. The link is absolute, i.e. starts with `http://` or `https://`.\n * 2. The link points to an anchor, i.e. starts with `#` symbol.\n * 3. The link should be opened in a new tab (`openNewTab` property).\n * 4. Explicitly opted by the `enforceA` property.\n *\n * Otherwise it is rendered as the usual React Router's `<Link>` (`<NavLink>`).\n * Also in this case links to the current page scroll the page to its top when\n * clicked.\n *\n * Both `<Link>` and `<NavLink>` support all properties of the underlying React\n * Router's components, along with some additional props:\n *\n * **Children:** Child components are rendered as link's content.\n *\n * @param {object} [props] Component properties.\n * @param {string} [props.className] CSS classes to apply to the link.\n * @param {boolean} [props.disabled] Disables the link.\n * @param {boolean} [props.enforceA] `true` enforces rendering of the link as\n * a simple `<a>` element.\n * @param {boolean} [props.keepScrollPosition] If `true`, and the link is\n * rendered as a React Router's component, it won't reset the viewport scrolling\n * position to the origin when clicked.\n * @param {function} [props.onClick] Event handler to trigger upon click.\n * @param {function} [props.onMouseDown] Event handler to trigger on MouseDown\n * event.\n * @param {boolean} [props.openNewTab] If `true` the link opens in a new tab.\n * @param {boolean} [props.replace] When `true`, the link will replace current\n * entry in the history stack instead of adding a new one.\n * @param {string} [props.to] Link URL.\n * @param {string} [props.activeClassName] **`<NavLink>`** only: CSS class(es)\n * to apply to rendered link when it is active.\n * @param {string} [props.activeStyle] **`<NavLink>`** only: CSS styles\n * to apply to the rendered link when it is active.\n * @param {boolean} [props.exact] **`<NavLink>`** only: if `true`, the active\n * class/style will only be applied if the location is matched exactly.\n * @param {function} [props.isActive] **`<NavLink>`** only: Add extra\n * logic for determining whether the link is active. This should be used if you\n * want to do more than verify that the link’s pathname matches the current URL\n * pathname.\n * @param {object} [props.location] **`<NavLink>`** only: `isActive` compares\n * current history location (usually the current browser URL). To compare to\n * a different location, a custom `location` can be passed.\n * @param {boolean} [props.strict] **`<NavLink>`** only: . When `true`, trailing\n * slash on a location’s pathname will be taken into consideration when\n * determining if the location matches the current URL. See the `<Route strict>`\n * documentation for more information.\n */\nexport default function GenericLink({\n children,\n className,\n disabled,\n enforceA,\n keepScrollPosition,\n onClick,\n onMouseDown,\n openNewTab,\n replace,\n routerLinkType,\n to,\n ...rest\n}) {\n /* Renders Link as <a> element if:\n * - It is opted explicitely by `enforceA` prop;\n * - It should be opened in a new tab;\n * - It is an absolte URL (starts with http:// or https://);\n * - It is anchor link (starts with #). */\n if (disabled || enforceA || openNewTab || to.match(/^(#|(https?|mailto):)/)) {\n return (\n <a\n className={className}\n disabled={disabled}\n href={to}\n onClick={disabled ? (e) => e.preventDefault() : onClick}\n onMouseDown={disabled ? (e) => e.preventDefault() : onMouseDown}\n rel=\"noopener noreferrer\"\n styleName=\"link\"\n target={openNewTab ? '_blank' : ''}\n >\n {children}\n </a>\n );\n }\n\n /* Otherwise we render the link as React Router's Link or NavLink element. */\n return createElement(routerLinkType, {\n className,\n disabled,\n onMouseDown,\n replace,\n to,\n onClick: (e) => {\n // Executes the user-provided event handler, if any.\n if (onClick) onClick(e);\n\n // By default, clicking the link scrolls the page to beginning.\n if (!keepScrollPosition) window.scroll(0, 0);\n },\n ...rest,\n }, children);\n}\n\nGenericLink.defaultProps = {\n children: null,\n className: null,\n disabled: false,\n enforceA: false,\n keepScrollPosition: false,\n onClick: null,\n onMouseDown: null,\n openNewTab: false,\n replace: false,\n to: '',\n};\n\nGenericLink.propTypes = {\n children: PT.node,\n className: PT.string,\n disabled: PT.bool,\n enforceA: PT.bool,\n keepScrollPosition: PT.bool,\n onClick: PT.func,\n onMouseDown: PT.func,\n openNewTab: PT.bool,\n replace: PT.bool,\n routerLinkType: PT.elementType.isRequired,\n to: PT.oneOfType([PT.object, PT.string]),\n};\n","/**\n * The Link wraps around React Router's Link component, to automatically replace\n * it by the regular <a> element when:\n * - The target reference points to another domain;\n * - User opts to open the reference in a new tab;\n * - User explicitely opts to use <a>.\n */\n\nimport { Link as RrLink } from 'react-router-dom';\n\nimport GenericLink from './GenericLink';\n\nexport default function Link(props) {\n /* eslint-disable react/jsx-props-no-spreading */\n return <GenericLink {...props} routerLinkType={RrLink} />;\n /* eslint-enable react/jsx-props-no-spreading */\n}\n","// The <Button> component implements a standard button / button-like link.\n\nimport PT from 'prop-types';\n\nimport Link from 'components/Link';\n\nimport { themed } from 'utils';\n\nimport defaultTheme from './style.scss';\n\nfunction BaseButton({\n active,\n children,\n disabled,\n enforceA,\n onClick,\n onMouseDown,\n openNewTab,\n replace,\n theme,\n to,\n}) {\n let className = theme.button;\n if (active && theme.active) className += ` ${theme.active}`;\n if (disabled) {\n if (theme.disabled) className += ` ${theme.disabled}`;\n return (\n <div className={className}>\n {children}\n </div>\n );\n }\n if (to) {\n return (\n <Link\n className={className}\n enforceA={enforceA}\n onClick={onClick}\n onMouseDown={onMouseDown}\n openNewTab={openNewTab}\n replace={replace}\n to={to}\n >\n {children}\n </Link>\n );\n }\n return (\n <div\n className={className}\n onClick={onClick}\n onKeyPress={onClick}\n onMouseDown={onMouseDown}\n role=\"button\"\n tabIndex={0}\n >\n {children}\n </div>\n );\n}\n\n/**\n * @category Components\n * @typedef {object} ButtonTheme {@link Button} component theme: a map of CSS\n * class names to append to button elements:\n * @prop {string} [active] to the root element of active button.\n * @prop {string} [button] to the root element of any button.\n * @prop {string} [disabled] to the root element of disabled button.\n */\nconst ThemedButton = themed('Button', [\n 'active',\n 'button',\n 'disabled',\n], defaultTheme)(BaseButton);\n\n/**\n * @category Components\n * @func Button\n * @desc\n * ```js\n * import { Button } from '@dr.pogodin/react-utils';\n * ```\n * Implements themeable buttons, and button-line links (elements which look\n * like buttons, but behave as links) in the same uniform manner.\n *\n * Under the hood, a `<Button>` instance is rendered as:\n * 1. `<div>` when the button is disabled. It helps to ensure exactly\n * the same style of disabled buttons and button-like links.\n * 2. `<Link>` when `to` property is set.\n * This takes care about internal and external links.\n * 3. `<div>` element, otherwise. `<Link>` component could also play the button\n * role, but is more efficient to use `<div>` in this case.\n *\n * **Children:** Component children, if any, are rendered as button content.\n *\n * @param {object} [props] Component props.\n * @param {boolean} [props.active] Set `true` to render the button as\n * active, even if it is not active otherwise.\n * @param {boolean} [props.disabled] Set `true` to disable the button.\n * @param {boolean} [props.enforceA] When the button is rendered as `<Link>`\n * component, this prop enforces it to be rendered as a simple `<a>` element\n * (external link), rather than the React router's internal link.\n * See `<Link>` documentation to learn when links are rendered as `<a>`\n * by default.\n * @param {function} [props.onClick] Click event handler.\n * @param {function} [props.onMouseDown] Mouse down event handler.\n * @param {boolean} [props.openNewTab] Set `true` to open link in the new tab.\n * @param {boolean} [props.replace] When the button is rendered as\n * `<Link>`, and the target URL is internal, this property tells that\n * the new route should replace the last record in the browser's history,\n * rather than to be pushed as a new entry into the history stack.\n * @param {ButtonTheme} [props.theme] _Ad hoc_ button theme.\n * @param {object|string} [props.to] If specified, the button will be rendered\n * as `<Link>` (if not disabled), and it will point to the specified location\n * or URL.\n * @param {...any} [props....]\n * [Other properties of themeable components](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n *\n * @example\n * import React from 'react';\n * import { Button } from '@dr.pogodin/react-utils';\n *\n * export default function ButtonDemo() {\n * return (\n * <div>\n * <Button onClick={() => alert('Button Clicked')}>Button</Button>\n * <Button to=\"https://dr.pogodin.studio\" openNewTab>\n * Button-Like Link\n * </Button>\n * <Button disabled>Disabled Button</Button>\n * <Button active>Forced-Active Button</Button>\n * </div>\n * );\n * }\n */\nBaseButton.defaultProps = {\n active: false,\n children: undefined,\n disabled: false,\n enforceA: false,\n onClick: undefined,\n onMouseDown: undefined,\n openNewTab: false,\n replace: false,\n to: undefined,\n};\n\nBaseButton.propTypes = {\n active: PT.bool,\n children: PT.node,\n disabled: PT.bool,\n enforceA: PT.bool,\n onClick: PT.func,\n onMouseDown: PT.func,\n openNewTab: PT.bool,\n replace: PT.bool,\n theme: ThemedButton.themeType.isRequired,\n to: PT.oneOfType([PT.object, PT.string]),\n};\n\nexport default ThemedButton;\n","// extracted by mini-css-extract-plugin\nexport default {\"button\":\"_3-kJlZ\",\"context\":\"_1orYrC\",\"ad\":\"_14A3nZ\",\"hoc\":\"_5EzTm9\",\"active\":\"_3UaAP4\",\"disabled\":\"JnSSAY\"};","import PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport defaultTheme from './theme.scss';\n\nfunction Checkbox({\n checked,\n label,\n onChange,\n theme,\n}) {\n return (\n <div className={theme.container}>\n { label === undefined ? null : <p className={theme.label}>{label}</p> }\n <input\n checked={checked}\n className={theme.checkbox}\n onChange={onChange}\n type=\"checkbox\"\n />\n </div>\n );\n}\n\n/**\n * @category Components\n * @typedef {object} CheckboxTheme {@link Checkbox} component theme: a map of\n * CSS classes to append to its elements:\n * @prop {string} [checkbox] to the underlying checkbox `<input>` element.\n * @prop {string} [container] to the root checkbox element.\n * @prop {string} [label] to the checkbox label element.\n */\nconst ThemedCheckbox = themed('Checkbox', [\n 'checkbox',\n 'container',\n 'label',\n], defaultTheme)(Checkbox);\n\n/**\n * @category Components\n * @func Checkbox\n * @desc\n * ```js\n * import { Checkbox } from '@dr.pogodin/react-utils';\n * ```\n * The `<Checkbox>` component implements themeable checkboxes.\n * @param {object} [props] Component properties.\n * @param {boolean} [props.checked] Checkbox value.\n * @param {string} [props.label] Checkbox label.\n * @param {function} [props.onChange] State change handler.\n * @param {CheckboxTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other properties of themeable components](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties).\n */\nCheckbox.propTypes = {\n checked: PT.bool,\n label: PT.string,\n onChange: PT.func,\n theme: ThemedCheckbox.themeType.isRequired,\n};\n\nCheckbox.defaultProps = {\n checked: undefined,\n label: undefined,\n onChange: undefined,\n};\n\nexport default ThemedCheckbox;\n","// extracted by mini-css-extract-plugin\nexport default {\"checkbox\":\"TKBJM0\",\"context\":\"Eo3d0U\",\"ad\":\"_1zOOw4\",\"hoc\":\"Db_vtL\",\"container\":\"_265CXn\",\"label\":\"_2_7qW7\"};","/**\n * @category Components\n * @func CodeSplit\n * @desc\n * ```js\n * import { CodeSplit } from '@dr.pogodin/react-utils';\n * ```\n * The `<CodeSplit>` component implements separation of an app part into\n * separate code & style chunks (thus, allowing to split compiled app bundle\n * into smaller lazy-loaded pieces).\n * @param {object} props Component properties.\n * @param {string} props.chunkName Unique chunk name.\n * @param {function} props.getComponentAsync Asynchronous function which\n * resolves to the component to render in place of the `<CodeSplit>`\n * (_i.e._ the component which we are splitting into a separate chunk),\n * and uses dynamic `import()` with Webpack's\n * [webpackChunkName](https://webpack.js.org/api/module-methods/#magic-comments) magic\n * comment stating the same chunk name, as was specified via the `chunkName`\n * property above.\n * @param {function} [props.getComponentServer] A synchronous version of\n * `getComponentAsync()` to be used during server-side rendering. If not\n * provided, the server-side code will fallback to the asynchronous\n * `getComponentAsync()`, which is sub-optimal. If provided, it will be called\n * with a special {@link resolveRequire} function passed in as the only\n * argument, which should be used to correctly resolve & require necessary\n * modules, without Webpack being able to detect it and thus bundle them\n * into client-side code (also see the example below).\n * @param {function} [props.placeholder] Placeholder React component to render\n * while the code for actual splitted component is being loaded.\n * @param {...any} [props....] Any other properties are passed as is into\n * the splitted component.\n * @example\n * // Assume <SampleComponent> is a React sub-tree we want to split into\n * // a stand-alone chunk. To achieve it, we use <CodeSplit> to declare\n * // an auxiliary <WrappedSampleComponent>, which we'll use everywhere\n * // in the code instead of <SampleComponent>. In result <SampleComponent>,\n * // and any other components in its sub-tree, not required directly in\n * // other chunks, will be placed into a dedicated chunk.\n *\n * // WrappedSampleComponent.jsx\n * import { CodeSplit, webpack } from '@dr.pogodin/react-utils';\n *\n * export default function WrappedSampleComponent(props) {\n * return (\n * <CodeSplit\n * chunkName=\"sample-component\"\n * getComponentAsync={\n * // NOTE: Use the normal comment block opening and closing at\n * // the next line instead of / * and * / (whitespaces between\n * // start and slash had to be added due to limitations of our\n * // documentation setup).\n * () => import(/ * webpackChunkName: 'sample-component' * / 'path/to/SampleComponent')\n * }\n * getComponentServer={\n * // NOTE: You cannot just use the standard require() here, as it would\n * // cause Webpack to bundle in required module into the current chunk,\n * // instead of the split one. Thus, this workaround.\n * (resolveRequire) => resolveRequire(__dirname, 'path/to/SampleComponent');\n * }\n * placeholder={() => <div>Optional Placeholder</div>}\n * {...props}\n * />\n * );\n * }\n */\n\nimport { isomorphy, webpack } from 'utils';\n\nimport ClientSide from './ClientSide';\n\nexport default isomorphy.IS_SERVER_SIDE\n ? webpack.requireWeak(`${__dirname}/ServerSide`) : ClientSide;\n","/**\n * Client-side implementation of a split code chunk.\n */\n/* global document, window */\n/* eslint-disable react/jsx-props-no-spreading */\n\nimport { useEffect, useRef, useState } from 'react';\n\nimport { useAsyncData } from '@dr.pogodin/react-global-state';\n\nimport { newBarrier } from 'utils';\nimport { getBuildInfo } from 'utils/isomorphy';\nimport time from 'utils/time';\n\nexport default function ClientSide({\n chunkName,\n getComponentAsync,\n placeholder,\n ...rest\n}) {\n const { current: heap } = useRef({\n pendingStyles: [],\n renderInitialized: false,\n stylesInitialized: false,\n });\n\n // publicPath from buildInfo does not have a trailing slash at the end.\n const { publicPath } = getBuildInfo();\n\n // This code block initiates style loading as soon as possible; it collects\n // into heap.pendingStyles all style load promises; and heap.stylesInitialized\n // flag remains set until the styles are teared down upon unmounting.\n if (!heap.stylesInitialized) {\n heap.stylesInitialized = true;\n window.CHUNK_GROUPS[chunkName].forEach((asset) => {\n if (!asset.endsWith('.css')) return;\n const path = `${publicPath}/${asset}`;\n let link = document.querySelector(`link[href=\"${path}\"]`);\n if (!link) {\n link = document.createElement('link');\n link.setAttribute('href', path);\n link.setAttribute('rel', 'stylesheet');\n\n const barrier = newBarrier();\n link.onload = barrier.resolve;\n heap.pendingStyles.push(barrier);\n\n const head = document.querySelector('head');\n head.appendChild(link);\n }\n if (!link.dependants) link.dependants = new Set([chunkName]);\n else link.dependants.add(chunkName);\n });\n }\n\n // Async loading of React component necessary to render the chunk.\n const { data } = useAsyncData(\n `dr_pogodin_react_utils___split_components.${chunkName}`,\n getComponentAsync,\n { maxage: time.YEAR_MS },\n );\n\n const createRender = () => {\n const Scene = data.default || data;\n return <div data-chunk-name={chunkName}><Scene {...rest} /></div>;\n };\n\n const [render, setRender] = useState(() => {\n // No need to await anything, we can render the final component right away.\n if (data && !heap.pendingStyles.length) {\n heap.renderInitialized = true;\n return createRender();\n }\n\n // Try to reuse the markup rendered during SSR.\n const node = document.querySelector(`[data-chunk-name=${chunkName}]`);\n if (node) {\n return (\n <div\n /* eslint-disable react/no-danger */\n dangerouslySetInnerHTML={{ __html: node.innerHTML || '' }}\n /* eslint-disable react/no-danger */\n data-chunk-name={chunkName}\n />\n );\n }\n\n // Else render placeholder, or empty div.\n const Scene = placeholder || (() => null);\n return <div><Scene /></div>;\n });\n\n // At this point, if we have data, the absense of heap.renderInitialized flag\n // means we have to await styles loading; once it is done, and if we are still\n // mounted, we can set the final render.\n if (data && !heap.renderInitialized) {\n heap.renderInitialized = true;\n Promise.all(heap.pendingStyles).then(() => {\n if (heap.stylesInitialized) setRender(createRender());\n });\n }\n\n // This effectively fires only once, just before the component unmounts.\n useEffect(() => () => {\n heap.stylesInitialized = false;\n window.CHUNK_GROUPS[chunkName].forEach((item) => {\n if (!item.endsWith('.css')) return;\n const path = `${publicPath}/${item}`;\n const link = document.querySelector(`link[href=\"${path}\"]`);\n link.dependants.delete(chunkName);\n if (!link.dependants.size) {\n const head = document.querySelector('head');\n head.removeChild(link);\n }\n });\n }, [chunkName, heap, publicPath]);\n\n return render;\n}\n","// Initialization of client-side code.\n/* global document, window */\n\nimport { GlobalStateProvider } from '@dr.pogodin/react-global-state';\n\nimport ReactDom from 'react-dom';\nimport { BrowserRouter } from 'react-router-dom';\n\n/**\n * @category Utilities\n * @func client\n * @desc\n * ```js\n * import { client } from '@dr.pogodin/react-utils';\n * ```\n * Prepares and launches the app at client side.\n * @param {object} Application Root application component\n */\nexport default function Launch(Application) {\n ReactDom.hydrate((\n <GlobalStateProvider initialState={window.ISTATE}>\n <BrowserRouter>\n <Application />\n </BrowserRouter>\n </GlobalStateProvider>\n ), document.getElementById('react-view'));\n}\n","import { isString } from 'lodash';\nimport PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport defaultTheme from './theme.scss';\n\n/**\n * @category Components\n * @typedef {object} DropdownOption Represents a single option inside\n * {@link Dropdown} component.\n * @prop {string} [name] Option name (displayed in UI). If not given,\n * the `value` is used as the name.\n * @prop {string} value Option value key (used inside the code).\n */\n\n/**\n * @category Components\n * @desc\n * ```js\n * import { Dropdown } from '@dr.pogodin/react-utils';\n * ```\n * Implements a themeable dropdown list. Internally it is rendered with help of\n * the standard HTML `<select>` element, thus the styling support is somewhat\n * limited.\n * @param {object} [props] Component properties.\n * @param {function} [props.filter] Options filter function. If provided, only\n * those elements of `options` list will be used by the dropdown, for which this\n * filter returns `true`.\n * @param {string} [props.label] Dropdown label.\n * @param {string} [props.onChange] Selection event handler.\n * @param {DropdownOption[]|string[]} [props.options=[]] Array of dropdown\n * options. For string elements the option value and name will be the same.\n * It is allowed to mix DropdownOption and string elements in the same option\n * list.\n * @param {DropdownTheme} [props.theme] _Ad hoc_ theme.\n * @param {string} [props.value] Currently selected value.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n */\nfunction Dropdown({\n filter,\n label,\n onChange,\n options,\n theme,\n value,\n}) {\n const optionArray = [(\n <option\n className={theme.hiddenOption}\n key=\"__reactUtilsHiddenOption\"\n >\n &zwnj;\n </option>\n )];\n for (let i = 0; i < options.length; ++i) {\n let op = options[i];\n if (!filter || filter(op)) {\n if (isString(op)) op = { value: op };\n optionArray.push((\n <option className={theme.option} key={op.value} value={op.value}>\n {op.name === undefined ? op.value : op.name }\n </option>\n ));\n }\n }\n return (\n <div className={theme.container}>\n { label === undefined ? null : <p className={theme.label}>{label}</p> }\n <select\n className={theme.select}\n onChange={onChange}\n value={value}\n >\n {optionArray}\n </select>\n <div className={theme.arrow}>▼</div>\n </div>\n );\n}\n\n/**\n * @category Components\n * @typedef {object} DropdownTheme {@link Dropdown} component theme.\n * @prop {string} [arrow] Class name for arrow element.\n * @prop {string} [container] Class name for the root dropdown element.\n * @prop {string} [hiddenOption] Class name for the \"hidden option\" element,\n * which is rendered when dropdown value is undefined.\n * @prop {string} [label] Class name for label element.\n * @prop {string} [option] Class name for each option item element.\n * @prop {string} [select] Class name for the underlying `<select>` element.\n */\nconst ThemedDropdown = themed('Dropdown', [\n 'arrow',\n 'container',\n 'hiddenOption',\n 'label',\n 'option',\n 'select',\n], defaultTheme)(Dropdown);\n\nDropdown.propTypes = {\n filter: PT.func,\n label: PT.string,\n onChange: PT.func,\n options: PT.arrayOf(\n PT.oneOfType([\n PT.shape({\n name: PT.node,\n value: PT.string.isRequired,\n }),\n PT.string,\n ]).isRequired,\n ),\n theme: ThemedDropdown.themeType.isRequired,\n value: PT.string,\n};\n\nDropdown.defaultProps = {\n filter: undefined,\n label: undefined,\n onChange: undefined,\n options: [],\n value: undefined,\n};\n\nexport default ThemedDropdown;\n","// extracted by mini-css-extract-plugin\nexport default {\"arrow\":\"zk_X_t\",\"context\":\"_36FjKe\",\"ad\":\"_1tuabC\",\"hoc\":\"IXTRRj\",\"container\":\"_2pSA6T\",\"label\":\"_22Z9dt\",\"hiddenOption\":\"_24WdmW\",\"select\":\"_3plxWK\"};","import PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport defaultTheme from './theme.scss';\n\n/**\n * @category Components\n * @desc\n * ```js\n * import { Input } from '@dr.pogodin/react-utils';\n * ```\n * Themeable input field, based on the standard HTML `<input>` element.\n * @param {object} [props]\n * @param {string} [props.label] Input label.\n * @param {InputTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....] [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n * @param {...any} [props....] Any other properties are passed to the underlying\n * `<input>` element.\n */\nfunction Input({\n label,\n theme,\n ...rest\n}) {\n return (\n <div className={theme.container}>\n { label === undefined ? null : <p className={theme.label}>{label}</p> }\n <input\n className={theme.input}\n {...rest} // eslint-disable-line react/jsx-props-no-spreading\n />\n </div>\n );\n}\n\n/**\n * @category Components\n * @typedef {object} InputTheme {@link Input} component theme.\n * @prop {string} [container] Class name for root component element.\n * @prop {string} [input] Class name for the underlying HTML `<input>` element.\n * @prop {string} [label] Class name for label element.\n */\nconst ThemedInput = themed('Input', [\n 'container',\n 'input',\n 'label',\n], defaultTheme)(Input);\n\nInput.propTypes = {\n label: PT.string,\n theme: ThemedInput.themeType.isRequired,\n};\n\nInput.defaultProps = {\n label: undefined,\n};\n\nexport default ThemedInput;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"_1kPBvU\",\"context\":\"_21ZJJ1\",\"ad\":\"_19c9Ts\",\"hoc\":\"_2SyEqs\",\"input\":\"_3DHAKJ\",\"label\":\"pIHNog\"};","import PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport baseTheme from './base-theme.scss';\n\n/**\n * @category Components\n * @func PageLayout\n * @desc\n * ```jsx\n * import { PageLayout } from '@dr.pogodin/react-utils';\n * export default PageLayoutDemo() {\n * return (\n * <PageLayout>\n * Page content.\n * </PageLayout>\n * );\n * }\n * ```\n * Simple and themeable page layout. It keeps the main content centered in\n * a column of limited width, which fills entire viewport on small screens\n * (under `$screen-md = 1024px` size). At larger screens the column keeps\n * `$screen-md` size, and it is centered at the page, surrounded by side\n * panels, where additional content can be displayed.\n *\n * **Children:** Component children are rendered as the content of main panel.\n * @param {object} [props] Component properties.\n * @param {Node} [props.leftSidePanelContent] The content for left side panel.\n * @param {Node} [props.rightSidePanelContent] The content for right side panel.\n * @param {PageLayoutTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n */\nfunction PageLayout({\n children,\n leftSidePanelContent,\n rightSidePanelContent,\n theme,\n}) {\n return (\n <div className={theme.container}>\n <div className={[theme.sidePanel, theme.leftSidePanel].join(' ')}>\n {leftSidePanelContent}\n </div>\n <div className={theme.mainPanel}>\n {children}\n </div>\n <div className={[theme.sidePanel, theme.rightSidePanel].join(' ')}>\n {rightSidePanelContent}\n </div>\n </div>\n );\n}\n\n/**\n * @category Components\n * @typedef {object} PageLayoutTheme {@link PageLayout} component theme.\n * @prop {string} [container] Class for the root container of page layout.\n * @prop {string} [mainPanel] Class for the main content panel.\n * @prop {string} [sidePanel] Class for each side panel.\n * @prop {string} [leftSidePanel] Class for the left side panel (in addition to\n * `.sidePanel`, if also provided).\n * @prop {string} [rightSidePanel] Class for the right side panel (in addition\n * to `.sidePanel`, if also provided).\n */\nconst ThemedPageLayout = themed('PageLayout', [\n 'container',\n 'leftSidePanel',\n 'mainPanel',\n 'rightSidePanel',\n 'sidePanel',\n], baseTheme)(PageLayout);\n\nPageLayout.propTypes = {\n children: PT.node,\n leftSidePanelContent: PT.node,\n rightSidePanelContent: PT.node,\n theme: ThemedPageLayout.themeType.isRequired,\n};\n\nPageLayout.defaultProps = {\n children: null,\n leftSidePanelContent: null,\n rightSidePanelContent: null,\n};\n\nexport default ThemedPageLayout;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"_9l8HhV\",\"context\":\"_3u0VuV\",\"ad\":\"_1hw_qJ\",\"hoc\":\"fKILKU\",\"mainPanel\":\"_2izxcu\",\"sidePanel\":\"_3H_g8q\"};","import PT from 'prop-types';\nimport { createContext } from 'react';\nimport { Helmet } from 'react-helmet';\n\nconst Context = createContext();\n\n/**\n * @category Components\n * @func MetaTags\n * @desc\n * ```js\n * import { MetaTags } from '@dr.pogodin/react-utils';\n * ```\n * The `<MetaTags>` component is an auxiliary wrapper around `react-helmet`,\n * which helps to inject meta tags (page title, a brief content description,\n * and social media thumbnails) into generated pages.\n *\n * When `<MetaTags>` are nested within the app's component tree, meta tags\n * content injected by components encountered down the tree overrides tags\n * injected by previously encountered `<MetaTags>` components.\n *\n * **Children:** `<MetaTags>` children, if any, are rendered at the component's\n * location. The context passes down all meta tag properties of parent\n * `<MetaTag>` instances. These properties can fetched within children\n * hierarchy in the following way, thus facilitating tags modification by\n * children:\n * ```jsx\n * import { useContext } from 'react';\n * import { MetaTags } from '@dr.pogodin/react-utils';\n * export default function SampleComponent() {\n * const { title, description, ...rest } = useContext(MetaTags.Context);\n * // Do something with these props here, e.g. prefix the page title with\n * // the component name:\n * return (\n * <MetaTags title={`Sample component - ${title}`} />\n * );\n * }\n * ```\n * @param {object} [props]\n * @param {string} [props.description] Page description to use in\n * the `description` meta tag, and as a default description of Open Graph Tags.\n * @param {string} [props.image] The absolute URL of thumbnail image to use\n * in Open Graph Tags (`twitter:image`, and `og:image`). By default these tags\n * are not injected.\n *\n * **BEWARE:** It must be a complete, absolute URL, including the correct\n * website domain and HTTP schema.\n *\n * @param {string} [props.siteName]: The site name to use in `twitter:site`,\n * and `og:sitename` tags. By default these tags are not injected.\n *\n * @param {string} [props.socialDescription] The site description to use in\n * `twitter:description` and `og:description` meta tags. By default the value of\n * `description` prop is used.\n * @param {string} [props.socialTitle] The page title to use in\n * `twitter:title`, `og:title`, and `og:image:alt` tags. By default the value of\n * `title` prop is used. Also the `og:image:alt` tag is only injected if `image`\n * prop is present.\n *\n * @param {string} props.title: The page name to use in the `<title>` tag.\n * It is also used as the default value of `socialTitle` prop.\n *\n * @param {string} [props.url] The page URL to use in `og:url` tag.\n * By default the tag is not injected.\n *\n * @example\n * // Top-level app component.\n * import { MetaTags } from '@dr.pogodin/react-utils';\n * export default function ApplicationRoot() {\n * return (\n * <>\n * <MetaTags\n * title=\"Sample website title\"\n * description=\"Just the minimal example of MetaTags usage\"\n * >\n * // The actual application content here.\n * </>\n * );\n * }\n */\nexport default function MetaTags({\n children,\n description,\n image,\n siteName,\n socialDescription,\n socialTitle,\n title,\n url,\n}) {\n const socTitle = socialTitle || title;\n const socDesc = socialDescription || description;\n return (\n <>\n <Helmet>\n {/* General tags. */}\n <title>\n {title}\n </title>\n <meta name=\"description\" content={description} />\n\n {/* Twitter cards. */}\n <meta name=\"twitter:card\" content=\"summary_large_image\" />\n <meta name=\"twitter:title\" content={socTitle} />\n <meta name=\"twitter:description\" content={socDesc} />\n { image ? <meta name=\"twitter:image\" content={image} /> : null }\n {\n siteName ? (\n <meta name=\"twitter:site\" content={`@${siteName}`} />\n ) : null\n }\n\n {/* Open Graph data. */}\n <meta name=\"og:title\" content={socTitle} />\n { image ? <meta name=\"og:image\" content={image} /> : null }\n { image ? <meta name=\"og:image:alt\" content={socTitle} /> : null }\n <meta name=\"og:description\" content={socDesc} />\n {\n siteName ? (<meta name=\"og:sitename\" content={siteName} />) : null\n }\n { url ? (<meta name=\"og:url\" content={url} />) : null }\n </Helmet>\n {\n children ? (\n <Context.Provider\n value={{\n description,\n image,\n siteName,\n socialDescription,\n socialTitle,\n title,\n url,\n }}\n >\n {children}\n </Context.Provider>\n ) : null\n }\n </>\n );\n}\n\nMetaTags.Context = Context;\n\nMetaTags.defaultProps = {\n children: null,\n image: null,\n siteName: null,\n socialDescription: null,\n socialTitle: null,\n url: null,\n};\n\nMetaTags.propTypes = {\n children: PT.node,\n description: PT.string.isRequired,\n image: PT.string,\n siteName: PT.string,\n socialDescription: PT.string,\n socialTitle: PT.string,\n title: PT.string.isRequired,\n url: PT.string,\n};\n","/* global document */\n\nimport { noop } from 'lodash';\nimport {\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport ReactDom from 'react-dom';\nimport PT from 'prop-types';\nimport themed from '@dr.pogodin/react-themes';\n\nimport baseTheme from './base-theme.scss';\nimport './styles.scss';\n\n/**\n * @category Components\n * @func Modal\n * @desc\n * ```jsx\n * import { BaseModal, Modal } from '@dr.pogodin/react-utils';\n * ```\n * The `<Modal>` component implements a simple themeable modal window, wrapped\n * into the default theme. `<BaseModal>` exposes the base non-themed component.\n * **Children:** Component children are rendered as the modal content.\n * @param {object} props Component properties.\n * @param {function} [props.onCancel] The callback to trigger when user\n * clicks outside the modal, or presses Escape. It is expected to hide the\n * modal.\n * @param {ModalTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n * @example\n * import React, { useState } from 'react';\n * import { Button, Modal } from '@dr.pogodin/react-utils';\n *\n * export default function ModalDemo() {\n * const [visible, setVisible] = useState(false);\n * return (\n * <div>\n * <Button onClick={() => setVisible(true)}>Show Modal</Button>\n * {\n * visible ? (\n * <Modal onCancel={() => setVisible(false)}>\n * This is a simple modal. Click outside, or press Escape to close\n * it.\n * </Modal>\n * ) : null\n * }\n * </div>\n * );\n * }\n */\nfunction BaseModal({\n children,\n onCancel,\n theme,\n}) {\n const containerRef = useRef();\n const overlayRef = useRef();\n const [portal, setPortal] = useState();\n\n useEffect(() => {\n const p = document.createElement('div');\n document.body.classList.add('scrolling-disabled-by-modal');\n document.body.appendChild(p);\n setPortal(p);\n return () => {\n document.body.classList.remove('scrolling-disabled-by-modal');\n document.body.removeChild(p);\n };\n }, []);\n\n const focusLast = useMemo(() => (\n <div\n onFocus={() => {\n const elems = containerRef.current.querySelectorAll('*');\n for (let i = elems.length - 1; i >= 0; --i) {\n elems[i].focus();\n if (document.activeElement === elems[i]) return;\n }\n overlayRef.current.focus();\n }}\n /* eslint-disable jsx-a11y/no-noninteractive-tabindex */\n tabIndex=\"0\"\n /* eslint-enable jsx-a11y/no-noninteractive-tabindex */\n />\n ), []);\n\n return portal ? ReactDom.createPortal(\n (\n <>\n {focusLast}\n <div\n aria-label=\"Cancel\"\n className={theme.overlay}\n onClick={() => onCancel()}\n onKeyDown={(e) => {\n if (e.key === 'Escape') onCancel();\n }}\n ref={(node) => {\n if (node && node !== overlayRef.current) {\n overlayRef.current = node;\n node.focus();\n }\n }}\n role=\"button\"\n tabIndex=\"0\"\n />\n <div\n aria-modal=\"true\"\n className={theme.container}\n onWheel={(event) => event.stopPropagation()}\n ref={containerRef}\n role=\"dialog\"\n >\n {children}\n </div>\n <div\n onFocus={() => {\n overlayRef.current.focus();\n }}\n /* eslint-disable jsx-a11y/no-noninteractive-tabindex */\n tabIndex=\"0\"\n /* eslint-enable jsx-a11y/no-noninteractive-tabindex */\n />\n {focusLast}\n </>\n ),\n portal,\n ) : null;\n}\n\n/**\n * @category Components\n * @typedef {object} ModalTheme {@link Modal} component theme.\n * @prop {string} [container] Class for modal container.\n * @prop {string} [overlay] Class for modal overlay (the background closing\n * the page underneath the modal).\n */\nconst ThemedModal = themed(\n 'Modal',\n [\n 'container',\n 'overlay',\n ],\n baseTheme,\n)(BaseModal);\n\nBaseModal.propTypes = {\n onCancel: PT.func,\n children: PT.node,\n theme: ThemedModal.themeType.isRequired,\n};\n\nBaseModal.defaultProps = {\n onCancel: noop,\n children: null,\n};\n\nexport default ThemedModal;\n\n/* Non-themed version of the Modal. */\nexport { BaseModal };\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"_1z_lT2\",\"context\":\"b8XBy_\",\"ad\":\"_323Y1S\",\"hoc\":\"lkxNM-\",\"container\":\"uS4uDL\"};","import { NavLink as RrNavLink } from 'react-router-dom';\n\nimport GenericLink from './GenericLink';\n\n/**\n * @category Components\n * @func NavLink\n * @desc\n * ```js\n * import { NavLink } from '@dr.pogodin/react-utils';\n * ```\n * See {@link Link} documentation.\n * @param {object} [props] Component properties.\n */\nexport default function NavLink(props) {\n /* eslint-disable react/jsx-props-no-spreading */\n return <GenericLink {...props} routerLinkType={RrNavLink} />;\n /* eslint-enable react/jsx-props-no-spreading */\n}\n","import PT from 'prop-types';\n\nimport './style.scss';\n\n/**\n * @category Components\n * @func ScalableRect\n * @desc\n * ```js\n * import { ScalableRect } from '@dr.pogodin/react-utils';\n * ```\n * The `<ScalableRect>` component implements container keeping given aspect\n * ratio, while its width is altered.\n *\n * **Children:** Component children are rendered as the component's content.\n * @param {object} props\n * @param {string} [props.className] CSS class for component container.\n * @param {string} [props.ratio=1:1] Ratio of the rendered rectangle sides,\n * in `W:H` form.\n */\nexport default function ScalableRect({ children, className, ratio }) {\n const aux = ratio.split(':');\n const paddingBottom = `${(100 * aux[1]) / aux[0]}%`;\n\n /* NOTE: In case the following code looks strange to you, mind that we want to\n * allow the user to set custom styles on this component. If user passes in a\n * \"className\" prop (possibly \"styleName\", but that one is converted to\n * \"className\" by Babel just before being passed into this component), it\n * should not interfere with the sizing behavior, thus we need an extra <div>\n * level in this component; however, if user does not need a custom styling,\n * we can save one level of HTML code, so we do it. */\n const rect = (\n <div\n style={{ paddingBottom }}\n styleName=\"container\"\n >\n <div styleName=\"wrapper\">\n {children}\n </div>\n </div>\n );\n return className ? (\n <div className={className}>\n {rect}\n </div>\n ) : rect;\n}\n\nScalableRect.defaultProps = {\n children: null,\n className: null,\n ratio: '1:1',\n};\n\nScalableRect.propTypes = {\n children: PT.node,\n className: PT.string,\n ratio: PT.string,\n};\n","import PT from 'prop-types';\nimport themed from '@dr.pogodin/react-themes';\n\nimport defaultTheme from './theme.scss';\n\n/**\n * @category Components\n * @func Throbber\n * @desc\n * ```jsx\n * import { Throbber } from '@dr.pogodin/react-utils';\n * ```\n * Throbber is an \"action in progress\" indicator, which renders\n * three bouncing circles as a simple pending activity indicator,\n * and can be further themed to a certain degree.\n * @param {object} [props] Component properties.\n * @param {ThrobberTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n */\nfunction Throbber({\n theme,\n}) {\n return (\n <div className={theme.container} styleName=\"container\">\n <div className={theme.circle} styleName=\"circle\" />\n <div className={theme.circle} styleName=\"circle\" />\n <div className={theme.circle} styleName=\"circle\" />\n </div>\n );\n}\n\nThrobber.defaultProps = {\n theme: {},\n};\n\nThrobber.propTypes = {\n theme: PT.shape({\n container: PT.string,\n circle: PT.string,\n }),\n};\n\n/**\n * @category Components\n * @typedef {object} ThrobberTheme {@link Throbber} theme.\n * @prop {string} [container] Class name to add to the throbber container.\n * @prop {string} [circle] Class name to add to each throbber circle.\n */\nexport default themed('Throbber', [\n 'circle',\n 'container',\n], defaultTheme)(Throbber);\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"_1aJSBX\",\"context\":\"_1izs01\",\"ad\":\"_2m21Oe\",\"hoc\":\"_132xA1\",\"circle\":\"_2c_4lS\",\"bouncing\":\"_1wSERI\"};","/**\n * The actual tooltip component. It is rendered outside the regular document\n * hierarchy, and with sub-components managed without React to achieve the best\n * performance during animation.\n */\n/* global document, window */\n\nimport {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useState,\n} from 'react';\nimport { createPortal } from 'react-dom';\n\nimport PT from 'prop-types';\n\n/* Valid placements of the rendered tooltip. They will be overriden when\n * necessary to fit the tooltip within the viewport. */\nexport const PLACEMENTS = {\n ABOVE_CURSOR: 'ABOVE_CURSOR',\n ABOVE_ELEMENT: 'ABOVE_ELEMENT',\n BELOW_CURSOR: 'BELOW_CURSOR',\n BELOW_ELEMENT: 'BELOW_ELEMENT',\n};\n\nconst ARROW_STYLE_DOWN = [\n 'border-bottom-color:transparent',\n 'border-left-color:transparent',\n 'border-right-color:transparent',\n].join(';');\n\nconst ARROW_STYLE_UP = [\n 'border-top-color:transparent',\n 'border-left-color:transparent',\n 'border-right-color:transparent',\n].join(';');\n\n/**\n * Creates tooltip components.\n * @ignore\n * @param {object} theme Themes to use for tooltip container, arrow,\n * and content.\n * @return {object} Object with DOM references to the container components:\n * container, arrow, content.\n */\nfunction createTooltipComponents(theme) {\n const arrow = document.createElement('div');\n if (theme.arrow) arrow.setAttribute('class', theme.arrow);\n\n const content = document.createElement('div');\n if (theme.content) content.setAttribute('class', theme.content);\n\n const container = document.createElement('div');\n if (theme.container) container.setAttribute('class', theme.container);\n\n container.appendChild(arrow);\n container.appendChild(content);\n document.body.appendChild(container);\n\n return { container, arrow, content };\n}\n\n/**\n * Generates bounding client rectangles for tooltip components.\n * @ignore\n * @param {object} tooltip DOM references to the tooltip components.\n * @param {object} tooltip.arrow\n * @param {object} tooltip.container\n * @return {{ arrow: object, container}} Object holding tooltip rectangles in\n * two fields.\n */\nfunction calcTooltipRects(tooltip) {\n return {\n arrow: tooltip.arrow.getBoundingClientRect(),\n container: tooltip.container.getBoundingClientRect(),\n };\n}\n\n/**\n * Calculates the document viewport size.\n * @ignore\n * @return {{x, y, width, height}}\n */\nfunction calcViewportRect() {\n const { pageXOffset, pageYOffset } = window;\n const { documentElement: { clientHeight, clientWidth } } = document;\n return {\n left: pageXOffset,\n right: pageXOffset + clientWidth,\n top: pageYOffset,\n bottom: pageYOffset + clientHeight,\n };\n}\n\n/**\n * Calculates tooltip and arrow positions for the placement just above\n * the cursor.\n * @ignore\n * @param {number} x Cursor page-x position.\n * @param {number} y Cursor page-y position.\n * @param {object} tooltipRects Bounding client rectangles of tooltip parts.\n * @param {object} tooltipRects.arrow\n * @param {object} tooltipRects.container\n * @return {object} Contains the following fields:\n * - {number} arrowX\n * - {number} arrowY\n * - {number} containerX\n * - {number} containerY\n * - {string} baseArrowStyle\n */\nfunction calcPositionAboveXY(x, y, tooltipRects) {\n const { arrow, container } = tooltipRects;\n return {\n arrowX: 0.5 * (container.width - arrow.width),\n arrowY: container.height,\n containerX: x - container.width / 2,\n containerY: y - container.height - arrow.height / 1.5,\n\n // TODO: Instead of already setting the base style here, we should\n // introduce a set of constants for arrow directions, which will help\n // to do checks dependant on the arrow direction.\n baseArrowStyle: ARROW_STYLE_DOWN,\n };\n}\n\n/*\nconst HIT = {\n NONE: false,\n LEFT: 'LEFT',\n RIGHT: 'RIGHT',\n TOP: 'TOP',\n BOTTOM: 'BOTTOM',\n};\n*/\n\n/**\n * Checks whether\n * @param {object} pos\n * @param {object} tooltipRects\n * @param {object} viewportRect\n * @return {HIT}\n */\n/*\nfunction checkViewportFit(pos, tooltipRects, viewportRect) {\n const { containerX, containerY } = pos;\n if (containerX < viewportRect.left + 6) return HIT.LEFT;\n if (containerX > viewportRect.right - 6) return HIT.RIGHT;\n return HIT.NONE;\n}\n*/\n\n/**\n * Shifts tooltip horizontally to fit into the viewport, while keeping\n * the arrow pointed to the XY point.\n * @param {number} x\n * @param {number} y\n * @param {object} pos\n * @param {number} pageXOffset\n * @param {number} pageXWidth\n */\n/*\nfunction xPageFitCorrection(x, y, pos, pageXOffset, pageXWidth) {\n if (pos.containerX < pageXOffset + 6) {\n pos.containerX = pageXOffset + 6;\n pos.arrowX = Math.max(6, pageX - containerX - arrowRect.width / 2);\n } else {\n const maxX = pageXOffset + docRect.width - containerRect.width - 6;\n if (containerX > maxX) {\n containerX = maxX;\n arrowX = Math.min(\n containerRect.width - 6,\n pageX - containerX - arrowRect.width / 2,\n );\n }\n }\n}\n*/\n\n/**\n * Sets positions of tooltip components to point the tooltip to the specified\n * page point.\n * @ignore\n * @param {number} pageX\n * @param {number} pageY\n * @param {PLACEMENTS} placement\n * @param {object} element DOM reference to the element wrapped by the tooltip.\n * @param {object} tooltip\n * @param {object} tooltip.arrow DOM reference to the tooltip arrow.\n * @param {object} tooltip.container DOM reference to the tooltip container.\n */\nfunction setComponentPositions(\n pageX,\n pageY,\n placement,\n element,\n tooltip,\n) {\n const tooltipRects = calcTooltipRects(tooltip);\n const viewportRect = calcViewportRect();\n\n /* Default container coords: tooltip at the top. */\n const pos = calcPositionAboveXY(pageX, pageY, tooltipRects);\n\n if (pos.containerX < viewportRect.left + 6) {\n pos.containerX = viewportRect.left + 6;\n pos.arrowX = Math.max(\n 6,\n pageX - pos.containerX - tooltipRects.arrow.width / 2,\n );\n } else {\n const maxX = viewportRect.right - 6 - tooltipRects.container.width;\n if (pos.containerX > maxX) {\n pos.containerX = maxX;\n pos.arrowX = Math.min(\n tooltipRects.container.width - 6,\n pageX - pos.containerX - tooltipRects.arrow.width / 2,\n );\n }\n }\n\n /* If tooltip has not enough space on top - make it bottom tooltip. */\n if (pos.containerY < viewportRect.top + 6) {\n pos.containerY += tooltipRects.container.height\n + 2 * tooltipRects.arrow.height;\n pos.arrowY -= tooltipRects.container.height\n + tooltipRects.arrow.height;\n pos.baseArrowStyle = ARROW_STYLE_UP;\n }\n\n const containerStyle = `left:${pos.containerX}px;top:${pos.containerY}px`;\n tooltip.container.setAttribute('style', containerStyle);\n\n const arrowStyle = `${pos.baseArrowStyle};left:${pos.arrowX}px;top:${pos.arrowY}px`;\n tooltip.arrow.setAttribute('style', arrowStyle);\n}\n\n/* The Tooltip component itself. */\nconst Tooltip = forwardRef(({ children, theme }, ref) => {\n const [components, setComponents] = useState(null);\n\n const pointTo = (pageX, pageY, placement, element) => components\n && setComponentPositions(pageX, pageY, placement, element, components);\n useImperativeHandle(ref, () => ({ pointTo }));\n\n /* Inits and destroys tooltip components. */\n useEffect(() => {\n const x = createTooltipComponents(theme);\n setComponents(x);\n return () => {\n document.body.removeChild(x.container);\n setComponents(null);\n };\n }, [theme]);\n\n return components ? createPortal(children, components.content) : null;\n});\n\nTooltip.propTypes = {\n children: PT.node,\n theme: PT.shape().isRequired,\n};\n\nTooltip.defaultProps = {\n children: null,\n};\n\nexport default Tooltip;\n","/* global window */\n\nimport PT from 'prop-types';\nimport { useEffect, useRef, useState } from 'react';\n\nimport { themed } from 'utils';\n\nimport Tooltip, { PLACEMENTS } from './Tooltip';\n\nimport defaultTheme from './default-theme.scss';\n\n/**\n * @category Components\n * @func WithTooltip\n * @desc\n * ```js\n * import { WithTooltip } from '@dr.pogodin/react-utils';\n * ```\n * Implements a simple to use and themeable tooltip component, _e.g._\n * ```js\n * <WithTooltip tip=\"This is example tooltip.\">\n * <p>Hover to see the tooltip.</p>\n * </WithTooltip>\n * ```\n * **Children:** Children are rendered in the place of `<WithTooltip>`,\n * and when hovered the tooltip is shown. By default the wrapper itself is\n * `<div>` block with `display: inline-block`.\n * @param {object} props Component properties.\n * @param {React.node} props.tip &ndash; Anything React is able to render,\n * _e.g._ a tooltip text. This will be the tooltip content.\n * @param {WithTooltipTheme} props.theme _Ad hoc_ theme.\n */\nfunction Wrapper({\n children,\n placement,\n tip,\n theme,\n}) {\n const tooltipRef = useRef();\n const wrapperRef = useRef();\n const [showTooltip, setShowTooltip] = useState(false);\n\n const updatePortalPosition = (cursorX, cursorY) => {\n if (!showTooltip) setShowTooltip(true);\n else {\n const wrapperRect = wrapperRef.current.getBoundingClientRect();\n if (\n cursorX < wrapperRect.left\n || cursorX > wrapperRect.right\n || cursorY < wrapperRect.top\n || cursorY > wrapperRect.bottom\n ) {\n setShowTooltip(false);\n } else if (tooltipRef.current) {\n tooltipRef.current.pointTo(\n cursorX + window.pageXOffset,\n cursorY + window.pageYOffset,\n placement,\n wrapperRef.current,\n );\n }\n }\n };\n\n useEffect(() => {\n if (showTooltip && tip !== null) {\n const listener = () => setShowTooltip(false);\n window.addEventListener('scroll', listener);\n return () => window.removeEventListener('scroll', listener);\n }\n return undefined;\n }, [showTooltip, tip]);\n\n return (\n <div\n className={theme.wrapper}\n onMouseLeave={() => setShowTooltip(false)}\n onMouseMove={(e) => updatePortalPosition(e.clientX, e.clientY)}\n ref={wrapperRef}\n >\n {\n showTooltip && tip !== null ? (\n <Tooltip ref={tooltipRef} theme={theme}>{tip}</Tooltip>\n ) : null\n }\n {children}\n </div>\n );\n}\n\nconst ThemedWrapper = themed(\n 'WithTooltip',\n [\n 'appearance',\n 'arrow',\n 'container',\n 'content',\n 'wrapper',\n ],\n defaultTheme,\n)(Wrapper);\n\nThemedWrapper.PLACEMENTS = PLACEMENTS;\n\nWrapper.propTypes = {\n children: PT.node,\n placement: PT.oneOf(Object.values(PLACEMENTS)),\n theme: ThemedWrapper.themeType.isRequired,\n tip: PT.node,\n};\n\nWrapper.defaultProps = {\n children: null,\n placement: PLACEMENTS.ABOVE_CURSOR,\n tip: null,\n};\n\nexport default ThemedWrapper;\n","// extracted by mini-css-extract-plugin\nexport default {\"arrow\":\"scfFf8\",\"ad\":\"aAk6G-\",\"hoc\":\"_14hBg4\",\"context\":\"_2m35Lg\",\"container\":\"XykNzN\",\"appearance\":\"_11gtAo\",\"wrapper\":\"_1xTGgL\"};","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"_3E1caC\",\"context\":\"_2mWOa4\",\"ad\":\"_2Q3v3l\",\"hoc\":\"_3-8kXq\"};","import PT from 'prop-types';\nimport qs from 'qs';\nimport ScalableRect from 'components/ScalableRect';\nimport themed from '@dr.pogodin/react-themes';\nimport Throbber from 'components/Throbber';\n\nimport baseTheme from './base.scss';\nimport throbberTheme from './throbber.scss';\n\n/**\n * @category Components\n * @func YouTubeVideo\n * @desc\n * ```js\n * import { YouTubeVideo } from '@dr.pogodin/react-utils';\n * ```\n * A component for embeding a YouTube video.\n * @param {object} [props] Component properties.\n * @param {boolean} [props.autoplay] If `true` the video will start to play\n * automatically once loaded.\n * @param {string} [props.src] URL of the video to play. Can be in any of\n * the following formats, and keeps any additional query parameters understood\n * by the YouTube IFrame player:\n * - `https://www.youtube.com/watch?v=NdF6Rmt6Ado`\n * - `https://youtu.be/NdF6Rmt6Ado`\n * - `https://www.youtube.com/embed/NdF6Rmt6Ado`\n * @param {YouTubeVideoTheme} [props.theme] _Ad hoc_ theme.\n * @param {string} [props.title] The `title` attribute to add to the player\n * IFrame.\n */\nfunction YouTubeVideo({\n autoplay,\n src,\n theme,\n title,\n}) {\n let [url, query] = src.split('?');\n query = query ? qs.parse(query) : {};\n\n const videoId = query.v || url.match(/\\/([a-zA-Z0-9-_]*)$/)[1];\n url = `https://www.youtube.com/embed/${videoId}`;\n\n delete query.v;\n query.autoplay = autoplay ? 1 : 0;\n url += `?${qs.stringify(query)}`;\n\n // TODO: https://developers.google.com/youtube/player_parameters\n // More query parameters can be exposed via the component props.\n\n return (\n <ScalableRect className={theme.container} ratio=\"16:9\">\n <Throbber theme={throbberTheme} />\n <iframe\n allow=\"autoplay\"\n allowFullScreen\n className={theme.video}\n src={url}\n title={title}\n />\n </ScalableRect>\n );\n}\n\nconst ThemedYouTubeVideo = themed(\n 'YouTubeVideo',\n [\n 'container',\n 'video',\n ],\n baseTheme,\n)(YouTubeVideo);\n\nYouTubeVideo.propTypes = {\n autoplay: PT.bool,\n src: PT.string.isRequired,\n theme: ThemedYouTubeVideo.themeType.isRequired,\n title: PT.string,\n};\n\nYouTubeVideo.defaultProps = {\n autoplay: false,\n title: '',\n};\n\nexport default ThemedYouTubeVideo;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"mqlUDF\",\"context\":\"n-j8Eo\",\"ad\":\"_2KXRTp\",\"hoc\":\"_1bn6KT\",\"video\":\"MFAQ6x\"};","import 'styles/global.scss';\n\nimport { isomorphy, webpack } from 'utils';\n\nlet server = null; // eslint-disable-line import/no-mutable-exports\nif (isomorphy.IS_SERVER_SIDE) {\n const path = webpack.requireWeak('path');\n server = webpack.requireWeak(path.resolve(__dirname, './server'));\n}\n\n/**\n * @category Utilities\n * @module _\n * @desc\n * ```js\n * import { _ } from '@dr.pogodin/react-utils';\n * ```\n * `_` is just an alias for [lodash](https://lodash.com/docs) library,\n * which provides various generic JS helpers.\n */\nexport { default as _ } from 'lodash';\n\n/**\n * @category Utilities\n * @module api\n * @desc\n * ```js\n * import { api } from '@dr.pogodin/react-utils';\n * ```\n * `api` is just an alias for [`axios`](https://www.npmjs.com/package/axios)\n * library, which provides a great HTTP(S) client.\n */\nexport { default as api } from 'axios';\n\n/**\n * @category Utilities\n * @module PT\n * @desc\n * ```js\n * import { PT } from '@dr.pogodin/react-utils';\n * ```\n * `PT` (short for `prop-types`) is an alias for\n * [prop-types](https://www.npmjs.com/package/prop-types) library,\n * which facilitates runtime type checks for React.\n */\nexport * as PT from 'prop-types';\n\n/**\n * @category Utilities\n * @module ReactGlobalState\n * @desc\n * ```jsx\n * import {\n * getGlobalState,\n * GlobalStateProvider,\n * useAsyncCollection,\n * useAsyncData,\n * useGlobalState,\n * } from '@dr.pogodin/react-utils';\n * ```\n * For convenience, `react-utils` re-exports components and hooks provided by\n * [react-global-state](https://dr.pogodin.studio/docs/react-global-state/index.html)\n * library, which is a state of the art library for global state and\n * asynchronous data managment in React applications, powered by hooks and\n * Context API. It is simple, efficient, and with a full server-side rendering\n * (SSR) support.\n *\n * The standard {@link client} and {@link server} automatically wrap your\n * app into `<GlobalStateProvider>`, also `server` wires `react-global-state` to\n * SSR setup, and also exposes the actual incoming HTTP request object via SSR\n * context, to which it attaches it as `req` field.\n */\n\nexport {\n getGlobalState,\n GlobalStateProvider,\n useAsyncCollection,\n useAsyncData,\n useGlobalState,\n} from '@dr.pogodin/react-global-state';\n\nexport * from 'components';\nexport * from 'utils';\n\nexport { server };\n"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__314__","__WEBPACK_EXTERNAL_MODULE__311__","__WEBPACK_EXTERNAL_MODULE__189__","__WEBPACK_EXTERNAL_MODULE__673__","__WEBPACK_EXTERNAL_MODULE__541__","__WEBPACK_EXTERNAL_MODULE__395__","__WEBPACK_EXTERNAL_MODULE__899__","__WEBPACK_EXTERNAL_MODULE__198__","__WEBPACK_EXTERNAL_MODULE__300__","__WEBPACK_EXTERNAL_MODULE__760__","__WEBPACK_EXTERNAL_MODULE__467__","__WEBPACK_EXTERNAL_MODULE__99__","__WEBPACK_EXTERNAL_MODULE__656__","__WEBPACK_EXTERNAL_MODULE__156__","__WEBPACK_EXTERNAL_MODULE__111__","__WEBPACK_EXTERNAL_MODULE__383__","__WEBPACK_EXTERNAL_MODULE__128__","requireWeak","modulePath","eval","def","default","named","Object","entries","forEach","key","value","Error","resolveWeak","getOwnPropertySymbols","hasOwnProperty","prototype","propIsEnumerable","propertyIsEnumerable","toObject","val","TypeError","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","map","n","join","test3","split","letter","keys","err","shouldUseNative","target","source","from","symbols","to","s","arguments","length","call","f","g","Fragment","Symbol","for","h","m","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","ref","__self","__source","q","c","a","k","b","d","e","l","defaultProps","$$typeof","type","props","_owner","current","jsx","jsxs","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","getter","__esModule","definition","o","defineProperty","enumerable","get","globalThis","Function","window","obj","prop","r","toStringTag","IS_CLIENT_SIDE","process","versions","node","IS_SERVER_SIDE","isDevBuild","getMode","isProdBuild","getBuildInfo","global","TRU_BUILD_INFO","buildTimestamp","timestamp","CONFIG","dayjs","Date","now","timeout","Promise","resolve","setTimeout","parent","path","slice","trimEnd","lastIndexOf","themed","COMPOSE","PRIORITY","JU","isomorphy","env","NODE_CONFIG_ENV","webpack","newBarrier","promise","res","withRetries","action","maxRetries","interval","time","timer","GenericLink","children","className","disabled","enforceA","keepScrollPosition","onClick","onMouseDown","openNewTab","replace","routerLinkType","rest","match","href","preventDefault","rel","createElement","scroll","Link","RrLink","BaseButton","active","theme","button","onKeyPress","role","tabIndex","propTypes","PT","ThemedButton","themeType","isRequired","Checkbox","checked","label","onChange","container","checkbox","ThemedCheckbox","chunkName","getComponentAsync","placeholder","heap","useRef","pendingStyles","renderInitialized","stylesInitialized","publicPath","CHUNK_GROUPS","asset","endsWith","link","document","querySelector","setAttribute","barrier","onload","push","appendChild","dependants","add","Set","data","useAsyncData","maxage","YEAR_MS","createRender","Scene","useState","dangerouslySetInnerHTML","__html","innerHTML","render","setRender","all","then","useEffect","item","delete","size","removeChild","Launch","Application","ReactDom","GlobalStateProvider","initialState","ISTATE","BrowserRouter","getElementById","Dropdown","filter","options","optionArray","hiddenOption","op","isString","option","name","select","arrow","ThemedDropdown","Input","input","ThemedInput","PageLayout","leftSidePanelContent","rightSidePanelContent","sidePanel","leftSidePanel","mainPanel","rightSidePanel","ThemedPageLayout","Context","createContext","MetaTags","description","image","siteName","socialDescription","socialTitle","title","url","socTitle","socDesc","Helmet","content","Provider","BaseModal","onCancel","containerRef","overlayRef","portal","setPortal","body","classList","remove","focusLast","useMemo","onFocus","elems","querySelectorAll","focus","activeElement","overlay","onKeyDown","onWheel","event","stopPropagation","ThemedModal","noop","NavLink","RrNavLink","ScalableRect","aux","ratio","paddingBottom","rect","style","Throbber","circle","PLACEMENTS","ABOVE_CURSOR","ABOVE_ELEMENT","BELOW_CURSOR","BELOW_ELEMENT","ARROW_STYLE_DOWN","ARROW_STYLE_UP","Tooltip","forwardRef","components","setComponents","pointTo","pageX","pageY","placement","element","tooltip","pageXOffset","pageYOffset","clientHeight","tooltipRects","getBoundingClientRect","calcTooltipRects","viewportRect","documentElement","left","right","clientWidth","top","bottom","pos","x","y","arrowX","width","arrowY","height","containerX","containerY","baseArrowStyle","calcPositionAboveXY","Math","max","maxX","min","containerStyle","arrowStyle","setComponentPositions","useImperativeHandle","createTooltipComponents","createPortal","Wrapper","tip","tooltipRef","wrapperRef","showTooltip","setShowTooltip","listener","addEventListener","removeEventListener","wrapper","onMouseLeave","onMouseMove","cursorX","cursorY","wrapperRect","updatePortalPosition","clientX","clientY","ThemedWrapper","values","YouTubeVideo","autoplay","src","query","videoId","qs","v","throbberTheme","allow","allowFullScreen","video","ThemedYouTubeVideo","server"],"sourceRoot":""}