@dr.pogodin/react-utils 1.12.4 → 1.12.5

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.
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ /**
9
+ * Simple listeneable data Emitter.
10
+ */
11
+ class Emitter {
12
+ /**
13
+ * Creates a new Emitter.
14
+ */
15
+ constructor() {
16
+ this.listeners = [];
17
+ }
18
+ /**
19
+ * Returns "true" if any listener is connected; "false" otherwise.
20
+ * @return {boolean}
21
+ */
22
+
23
+
24
+ get hasListeners() {
25
+ return !!this.listeners.length;
26
+ }
27
+ /**
28
+ * Adds `listener` if it is not already connected.
29
+ * @param {function} listener
30
+ * @return {function} Unsubscribe function.
31
+ */
32
+
33
+
34
+ addListener(listener) {
35
+ if (!this.listeners.includes(listener)) {
36
+ this.listeners.push(listener);
37
+ }
38
+
39
+ return () => this.removeListener(listener);
40
+ }
41
+ /**
42
+ * Calls every connected listener with the given arguments.
43
+ * @param {...any} args
44
+ */
45
+
46
+
47
+ emit(...args) {
48
+ const {
49
+ listeners
50
+ } = this;
51
+
52
+ for (let i = 0; i < listeners.length; ++i) {
53
+ listeners[i](...args);
54
+ }
55
+ }
56
+ /**
57
+ * Removes specified `listener`, if connected.
58
+ * @param {function} listener
59
+ */
60
+
61
+
62
+ removeListener(listener) {
63
+ const idx = this.listeners.indexOf(listener);
64
+ if (idx >= 0) this.listeners.splice(idx, 1);
65
+ }
66
+
67
+ }
68
+
69
+ exports.default = Emitter;
70
+ //# sourceMappingURL=Emitter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/shared/utils/Emitter.js"],"names":["Emitter","constructor","listeners","hasListeners","length","addListener","listener","includes","push","removeListener","emit","args","i","idx","indexOf","splice"],"mappings":";;;;;;;AAAA;AACA;AACA;AACe,MAAMA,OAAN,CAAc;AAC3B;AACF;AACA;AACEC,EAAAA,WAAW,GAAG;AACZ,SAAKC,SAAL,GAAiB,EAAjB;AACD;AAED;AACF;AACA;AACA;;;AACkB,MAAZC,YAAY,GAAG;AACjB,WAAO,CAAC,CAAC,KAAKD,SAAL,CAAeE,MAAxB;AACD;AAED;AACF;AACA;AACA;AACA;;;AACEC,EAAAA,WAAW,CAACC,QAAD,EAAW;AACpB,QAAI,CAAC,KAAKJ,SAAL,CAAeK,QAAf,CAAwBD,QAAxB,CAAL,EAAwC;AACtC,WAAKJ,SAAL,CAAeM,IAAf,CAAoBF,QAApB;AACD;;AACD,WAAO,MAAM,KAAKG,cAAL,CAAoBH,QAApB,CAAb;AACD;AAED;AACF;AACA;AACA;;;AACEI,EAAAA,IAAI,CAAC,GAAGC,IAAJ,EAAU;AACZ,UAAM;AAAET,MAAAA;AAAF,QAAgB,IAAtB;;AACA,SAAK,IAAIU,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGV,SAAS,CAACE,MAA9B,EAAsC,EAAEQ,CAAxC,EAA2C;AACzCV,MAAAA,SAAS,CAACU,CAAD,CAAT,CAAa,GAAGD,IAAhB;AACD;AACF;AAED;AACF;AACA;AACA;;;AACEF,EAAAA,cAAc,CAACH,QAAD,EAAW;AACvB,UAAMO,GAAG,GAAG,KAAKX,SAAL,CAAeY,OAAf,CAAuBR,QAAvB,CAAZ;AACA,QAAIO,GAAG,IAAI,CAAX,EAAc,KAAKX,SAAL,CAAea,MAAf,CAAsBF,GAAtB,EAA2B,CAA3B;AACf;;AA9C0B","sourcesContent":["/**\n * Simple listeneable data Emitter.\n */\nexport default class Emitter {\n /**\n * Creates a new Emitter.\n */\n constructor() {\n this.listeners = [];\n }\n\n /**\n * Returns \"true\" if any listener is connected; \"false\" otherwise.\n * @return {boolean}\n */\n get hasListeners() {\n return !!this.listeners.length;\n }\n\n /**\n * Adds `listener` if it is not already connected.\n * @param {function} listener\n * @return {function} Unsubscribe function.\n */\n addListener(listener) {\n if (!this.listeners.includes(listener)) {\n this.listeners.push(listener);\n }\n return () => this.removeListener(listener);\n }\n\n /**\n * Calls every connected listener with the given arguments.\n * @param {...any} args\n */\n emit(...args) {\n const { listeners } = this;\n for (let i = 0; i < listeners.length; ++i) {\n listeners[i](...args);\n }\n }\n\n /**\n * Removes specified `listener`, if connected.\n * @param {function} listener\n */\n removeListener(listener) {\n const idx = this.listeners.indexOf(listener);\n if (idx >= 0) this.listeners.splice(idx, 1);\n }\n}\n"],"file":"Emitter.js"}
@@ -5,6 +5,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
+ Object.defineProperty(exports, "Emitter", {
9
+ enumerable: true,
10
+ get: function () {
11
+ return _Emitter.default;
12
+ }
13
+ });
8
14
  exports.JU = void 0;
9
15
  Object.defineProperty(exports, "ThemeProvider", {
10
16
  enumerable: true,
@@ -49,6 +55,8 @@ var webpack = _interopRequireWildcard(require("./webpack"));
49
55
 
50
56
  exports.webpack = webpack;
51
57
 
58
+ var _Emitter = _interopRequireDefault(require("./Emitter"));
59
+
52
60
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
53
61
 
54
62
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/shared/utils/index.js"],"names":["themed","COMPOSE","PRIORITY","JU","isomorphy","IS_SERVER_SIDE","process","env","NODE_CONFIG_ENV","NODE_ENV","path","webpack","requireWeak","resolve","__dirname","newBarrier","promise","Promise","res","withRetries","action","maxRetries","interval","n","error","time","timer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAMA;;AACA;;;;AACA;;AACA;;;;;;;;AAEAA,qBAAOC,OAAP,GAAiBA,oBAAjB;AACAD,qBAAOE,QAAP,GAAkBA,qBAAlB;AAEA,IAAIC,EAAE,GAAG,IAAT,C,CAAe;;;;AACf,IAAIC,SAAS,CAACC,cAAV,IACC,CAACC,OAAO,CAACC,GAAR,CAAYC,eAAZ,IAA+BF,OAAO,CAACC,GAAR,CAAYE,QAA5C,MAA0D,YAD/D,EAEE;AACA;AACA,QAAMC,IAAI,GAAGC,OAAO,CAACC,WAAR,CAAoB,MAApB,CAAb;AACA,eAAAT,EAAE,GAAGQ,OAAO,CAACC,WAAR,CAAoBF,IAAI,CAACG,OAAL,CAAaC,SAAb,EAAwB,QAAxB,CAApB,CAAL;AACA;AACD;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,SAASC,UAAT,GAAsB;AACpB,MAAIF,OAAJ;AACA,QAAMG,OAAO,GAAG,IAAIC,OAAJ,CAAaC,GAAD,IAAS;AAAEL,IAAAA,OAAO,GAAGK,GAAV;AAAgB,GAAvC,CAAhB;AACAF,EAAAA,OAAO,CAACH,OAAR,GAAkBA,OAAlB;AACA,SAAOG,OAAP;AACD;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACO,eAAeG,WAAf,CAA2BC,MAA3B,EAAmCC,UAAU,GAAG,CAAhD,EAAmDC,QAAQ,GAAG,IAA9D,EAAoE;AACzE;AACA,OAAK,IAAIC,CAAC,GAAG,CAAb,GAAkB,EAAEA,CAApB,EAAuB;AACrB,QAAI;AACF,aAAO,MAAMH,MAAM,EAAnB;AACD,KAFD,CAEE,OAAOI,KAAP,EAAc;AACd,UAAID,CAAC,GAAGF,UAAR,EAAoB,MAAMI,cAAKC,KAAL,CAAWJ,QAAX,CAAN,CAApB,KACK,MAAME,KAAN;AACN;AACF;AACD;;AACD","sourcesContent":["import 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 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 webpack,\n};\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/shared/utils/index.js"],"names":["themed","COMPOSE","PRIORITY","JU","isomorphy","IS_SERVER_SIDE","process","env","NODE_CONFIG_ENV","NODE_ENV","path","webpack","requireWeak","resolve","__dirname","newBarrier","promise","Promise","res","withRetries","action","maxRetries","interval","n","error","time","timer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAMA;;AACA;;;;AACA;;AACA;;;;AAEA;;;;;;AAEAA,qBAAOC,OAAP,GAAiBA,oBAAjB;AACAD,qBAAOE,QAAP,GAAkBA,qBAAlB;AAEA,IAAIC,EAAE,GAAG,IAAT,C,CAAe;;;;AACf,IAAIC,SAAS,CAACC,cAAV,IACC,CAACC,OAAO,CAACC,GAAR,CAAYC,eAAZ,IAA+BF,OAAO,CAACC,GAAR,CAAYE,QAA5C,MAA0D,YAD/D,EAEE;AACA;AACA,QAAMC,IAAI,GAAGC,OAAO,CAACC,WAAR,CAAoB,MAApB,CAAb;AACA,eAAAT,EAAE,GAAGQ,OAAO,CAACC,WAAR,CAAoBF,IAAI,CAACG,OAAL,CAAaC,SAAb,EAAwB,QAAxB,CAApB,CAAL;AACA;AACD;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,SAASC,UAAT,GAAsB;AACpB,MAAIF,OAAJ;AACA,QAAMG,OAAO,GAAG,IAAIC,OAAJ,CAAaC,GAAD,IAAS;AAAEL,IAAAA,OAAO,GAAGK,GAAV;AAAgB,GAAvC,CAAhB;AACAF,EAAAA,OAAO,CAACH,OAAR,GAAkBA,OAAlB;AACA,SAAOG,OAAP;AACD;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACO,eAAeG,WAAf,CAA2BC,MAA3B,EAAmCC,UAAU,GAAG,CAAhD,EAAmDC,QAAQ,GAAG,IAA9D,EAAoE;AACzE;AACA,OAAK,IAAIC,CAAC,GAAG,CAAb,GAAkB,EAAEA,CAApB,EAAuB;AACrB,QAAI;AACF,aAAO,MAAMH,MAAM,EAAnB;AACD,KAFD,CAEE,OAAOI,KAAP,EAAc;AACd,UAAID,CAAC,GAAGF,UAAR,EAAoB,MAAMI,cAAKC,KAAL,CAAWJ,QAAX,CAAN,CAApB,KACK,MAAME,KAAN;AACN;AACF;AACD;;AACD","sourcesContent":["import 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 webpack from './webpack';\n\nexport { default as Emitter } from './Emitter';\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 webpack,\n};\n"],"file":"index.js"}
@@ -8,14 +8,14 @@
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
10
10
  if(typeof exports === 'object' && typeof module === 'object')
11
- module.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"));
11
+ module.exports = factory(require("@babel/runtime/helpers/asyncToGenerator"), require("@babel/runtime/helpers/classCallCheck"), require("@babel/runtime/helpers/createClass"), 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"));
12
12
  else if(typeof define === 'function' && define.amd)
13
- define(["@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);
13
+ define(["@babel/runtime/helpers/asyncToGenerator", "@babel/runtime/helpers/classCallCheck", "@babel/runtime/helpers/createClass", "@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);
14
14
  else if(typeof exports === 'object')
15
- exports["@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"));
15
+ exports["@dr.pogodin/react-utils"] = factory(require("@babel/runtime/helpers/asyncToGenerator"), require("@babel/runtime/helpers/classCallCheck"), require("@babel/runtime/helpers/createClass"), 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"));
16
16
  else
17
- root["@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"]);
18
- })(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_asyncToGenerator__, __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_defineProperty__, __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_objectWithoutProperties__, __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_slicedToArray__, __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_typeof__, __WEBPACK_EXTERNAL_MODULE__babel_runtime_regenerator__, __WEBPACK_EXTERNAL_MODULE__dr_pogodin_react_global_state__, __WEBPACK_EXTERNAL_MODULE__dr_pogodin_react_themes__, __WEBPACK_EXTERNAL_MODULE_axios__, __WEBPACK_EXTERNAL_MODULE_dayjs__, __WEBPACK_EXTERNAL_MODULE_lodash__, __WEBPACK_EXTERNAL_MODULE_prop_types__, __WEBPACK_EXTERNAL_MODULE_qs__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__, __WEBPACK_EXTERNAL_MODULE_react_helmet__, __WEBPACK_EXTERNAL_MODULE_react_router_dom__) {
17
+ root["@dr.pogodin/react-utils"] = factory(root["@babel/runtime/helpers/asyncToGenerator"], root["@babel/runtime/helpers/classCallCheck"], root["@babel/runtime/helpers/createClass"], 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"]);
18
+ })(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_asyncToGenerator__, __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_classCallCheck__, __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_createClass__, __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_defineProperty__, __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_objectWithoutProperties__, __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_slicedToArray__, __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_typeof__, __WEBPACK_EXTERNAL_MODULE__babel_runtime_regenerator__, __WEBPACK_EXTERNAL_MODULE__dr_pogodin_react_global_state__, __WEBPACK_EXTERNAL_MODULE__dr_pogodin_react_themes__, __WEBPACK_EXTERNAL_MODULE_axios__, __WEBPACK_EXTERNAL_MODULE_dayjs__, __WEBPACK_EXTERNAL_MODULE_lodash__, __WEBPACK_EXTERNAL_MODULE_prop_types__, __WEBPACK_EXTERNAL_MODULE_qs__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__, __WEBPACK_EXTERNAL_MODULE_react_helmet__, __WEBPACK_EXTERNAL_MODULE_react_router_dom__) {
19
19
  return /******/ (function() { // webpackBootstrap
20
20
  /******/ "use strict";
21
21
  /******/ var __webpack_modules__ = ({
@@ -36,7 +36,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
36
36
  \**********************/
37
37
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
38
38
 
39
- eval("var __dirname = \"/\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"api\": function() { return /* reexport default from dynamic */ axios__WEBPACK_IMPORTED_MODULE_2___default.a; },\n/* harmony export */ \"PT\": function() { return /* reexport module object */ prop_types__WEBPACK_IMPORTED_MODULE_3__; },\n/* harmony export */ \"getGlobalState\": function() { return /* reexport safe */ _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__.getGlobalState; },\n/* harmony export */ \"GlobalStateProvider\": function() { return /* reexport safe */ _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__.GlobalStateProvider; },\n/* harmony export */ \"useAsyncCollection\": function() { return /* reexport safe */ _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__.useAsyncCollection; },\n/* harmony export */ \"useAsyncData\": function() { return /* reexport safe */ _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__.useAsyncData; },\n/* harmony export */ \"useGlobalState\": function() { return /* reexport safe */ _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__.useGlobalState; },\n/* harmony export */ \"BaseModal\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.BaseModal; },\n/* harmony export */ \"Button\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Button; },\n/* harmony export */ \"Checkbox\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Checkbox; },\n/* harmony export */ \"CodeSplit\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.CodeSplit; },\n/* harmony export */ \"Dropdown\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Dropdown; },\n/* harmony export */ \"Input\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Input; },\n/* harmony export */ \"Link\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Link; },\n/* harmony export */ \"MetaTags\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.MetaTags; },\n/* harmony export */ \"Modal\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Modal; },\n/* harmony export */ \"NavLink\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.NavLink; },\n/* harmony export */ \"PageLayout\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.PageLayout; },\n/* harmony export */ \"ScalableRect\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.ScalableRect; },\n/* harmony export */ \"Throbber\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Throbber; },\n/* harmony export */ \"WithTooltip\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.WithTooltip; },\n/* harmony export */ \"YouTubeVideo\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.YouTubeVideo; },\n/* harmony export */ \"client\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.client; },\n/* harmony export */ \"JU\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.JU; },\n/* harmony export */ \"ThemeProvider\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.ThemeProvider; },\n/* harmony export */ \"config\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.config; },\n/* harmony export */ \"isomorphy\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.isomorphy; },\n/* harmony export */ \"newBarrier\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.newBarrier; },\n/* harmony export */ \"themed\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.themed; },\n/* harmony export */ \"time\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.time; },\n/* harmony export */ \"webpack\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.webpack; },\n/* harmony export */ \"withRetries\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.withRetries; },\n/* harmony export */ \"server\": function() { return /* binding */ server; }\n/* harmony export */ });\n/* harmony import */ var _styles_global_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./styles/global.scss */ \"./src/styles/global.scss\");\n/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./shared/utils */ \"./src/shared/utils/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"prop-types\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @dr.pogodin/react-global-state */ \"@dr.pogodin/react-global-state\");\n/* harmony import */ var _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./shared/components */ \"./src/shared/components/index.js\");\n\n\nvar server = null; // eslint-disable-line import/no-mutable-exports\n\nif (_shared_utils__WEBPACK_IMPORTED_MODULE_1__.isomorphy.IS_SERVER_SIDE) {\n try {\n var path = _shared_utils__WEBPACK_IMPORTED_MODULE_1__.webpack.requireWeak('path');\n server = _shared_utils__WEBPACK_IMPORTED_MODULE_1__.webpack.requireWeak(path.resolve(__dirname, './server'));\n } catch (error) {\n server = null;\n }\n}\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://@dr.pogodin/react-utils/./src/index.js?");
39
+ eval("var __dirname = \"/\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"api\": function() { return /* reexport default from dynamic */ axios__WEBPACK_IMPORTED_MODULE_2___default.a; },\n/* harmony export */ \"PT\": function() { return /* reexport module object */ prop_types__WEBPACK_IMPORTED_MODULE_3__; },\n/* harmony export */ \"getGlobalState\": function() { return /* reexport safe */ _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__.getGlobalState; },\n/* harmony export */ \"GlobalStateProvider\": function() { return /* reexport safe */ _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__.GlobalStateProvider; },\n/* harmony export */ \"useAsyncCollection\": function() { return /* reexport safe */ _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__.useAsyncCollection; },\n/* harmony export */ \"useAsyncData\": function() { return /* reexport safe */ _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__.useAsyncData; },\n/* harmony export */ \"useGlobalState\": function() { return /* reexport safe */ _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__.useGlobalState; },\n/* harmony export */ \"BaseModal\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.BaseModal; },\n/* harmony export */ \"Button\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Button; },\n/* harmony export */ \"Checkbox\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Checkbox; },\n/* harmony export */ \"CodeSplit\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.CodeSplit; },\n/* harmony export */ \"Dropdown\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Dropdown; },\n/* harmony export */ \"Input\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Input; },\n/* harmony export */ \"Link\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Link; },\n/* harmony export */ \"MetaTags\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.MetaTags; },\n/* harmony export */ \"Modal\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Modal; },\n/* harmony export */ \"NavLink\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.NavLink; },\n/* harmony export */ \"PageLayout\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.PageLayout; },\n/* harmony export */ \"ScalableRect\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.ScalableRect; },\n/* harmony export */ \"Throbber\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.Throbber; },\n/* harmony export */ \"WithTooltip\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.WithTooltip; },\n/* harmony export */ \"YouTubeVideo\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.YouTubeVideo; },\n/* harmony export */ \"client\": function() { return /* reexport safe */ _shared_components__WEBPACK_IMPORTED_MODULE_5__.client; },\n/* harmony export */ \"Emitter\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.Emitter; },\n/* harmony export */ \"JU\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.JU; },\n/* harmony export */ \"ThemeProvider\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.ThemeProvider; },\n/* harmony export */ \"config\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.config; },\n/* harmony export */ \"isomorphy\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.isomorphy; },\n/* harmony export */ \"newBarrier\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.newBarrier; },\n/* harmony export */ \"themed\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.themed; },\n/* harmony export */ \"time\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.time; },\n/* harmony export */ \"webpack\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.webpack; },\n/* harmony export */ \"withRetries\": function() { return /* reexport safe */ _shared_utils__WEBPACK_IMPORTED_MODULE_1__.withRetries; },\n/* harmony export */ \"server\": function() { return /* binding */ server; }\n/* harmony export */ });\n/* harmony import */ var _styles_global_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./styles/global.scss */ \"./src/styles/global.scss\");\n/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./shared/utils */ \"./src/shared/utils/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"prop-types\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @dr.pogodin/react-global-state */ \"@dr.pogodin/react-global-state\");\n/* harmony import */ var _dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_dr_pogodin_react_global_state__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./shared/components */ \"./src/shared/components/index.js\");\n\n\nvar server = null; // eslint-disable-line import/no-mutable-exports\n\nif (_shared_utils__WEBPACK_IMPORTED_MODULE_1__.isomorphy.IS_SERVER_SIDE) {\n try {\n var path = _shared_utils__WEBPACK_IMPORTED_MODULE_1__.webpack.requireWeak('path');\n server = _shared_utils__WEBPACK_IMPORTED_MODULE_1__.webpack.requireWeak(path.resolve(__dirname, './server'));\n } catch (error) {\n server = null;\n }\n}\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://@dr.pogodin/react-utils/./src/index.js?");
40
40
 
41
41
  /***/ }),
42
42
 
@@ -220,6 +220,16 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
220
220
 
221
221
  /***/ }),
222
222
 
223
+ /***/ "./src/shared/utils/Emitter.js":
224
+ /*!*************************************!*\
225
+ !*** ./src/shared/utils/Emitter.js ***!
226
+ \*************************************/
227
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
228
+
229
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ Emitter; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"@babel/runtime/helpers/classCallCheck\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"@babel/runtime/helpers/createClass\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n/**\n * Simple listeneable data Emitter.\n */\nvar Emitter = /*#__PURE__*/function () {\n /**\n * Creates a new Emitter.\n */\n function Emitter() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Emitter);\n\n this.listeners = [];\n }\n /**\n * Returns \"true\" if any listener is connected; \"false\" otherwise.\n * @return {boolean}\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Emitter, [{\n key: \"hasListeners\",\n get: function get() {\n return !!this.listeners.length;\n }\n /**\n * Adds `listener` if it is not already connected.\n * @param {function} listener\n * @return {function} Unsubscribe function.\n */\n\n }, {\n key: \"addListener\",\n value: function addListener(listener) {\n var _this = this;\n\n if (!this.listeners.includes(listener)) {\n this.listeners.push(listener);\n }\n\n return function () {\n return _this.removeListener(listener);\n };\n }\n /**\n * Calls every connected listener with the given arguments.\n * @param {...any} args\n */\n\n }, {\n key: \"emit\",\n value: function emit() {\n var listeners = this.listeners;\n\n for (var i = 0; i < listeners.length; ++i) {\n listeners[i].apply(listeners, arguments);\n }\n }\n /**\n * Removes specified `listener`, if connected.\n * @param {function} listener\n */\n\n }, {\n key: \"removeListener\",\n value: function removeListener(listener) {\n var idx = this.listeners.indexOf(listener);\n if (idx >= 0) this.listeners.splice(idx, 1);\n }\n }]);\n\n return Emitter;\n}();\n\n\n\n//# sourceURL=webpack://@dr.pogodin/react-utils/./src/shared/utils/Emitter.js?");
230
+
231
+ /***/ }),
232
+
223
233
  /***/ "./src/shared/utils/config.js":
224
234
  /*!************************************!*\
225
235
  !*** ./src/shared/utils/config.js ***!
@@ -236,7 +246,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _iso
236
246
  \***********************************/
237
247
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
238
248
 
239
- eval("var __dirname = \"/\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"withRetries\": function() { return /* binding */ withRetries; },\n/* harmony export */ \"config\": function() { return /* reexport safe */ _config__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; },\n/* harmony export */ \"isomorphy\": function() { return /* reexport module object */ _isomorphy__WEBPACK_IMPORTED_MODULE_4__; },\n/* harmony export */ \"JU\": function() { return /* binding */ JU; },\n/* harmony export */ \"newBarrier\": function() { return /* binding */ newBarrier; },\n/* harmony export */ \"themed\": function() { return /* reexport default from dynamic */ _dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2___default.a; },\n/* harmony export */ \"ThemeProvider\": function() { return /* reexport safe */ _dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2__.ThemeProvider; },\n/* harmony export */ \"time\": function() { return /* reexport safe */ _time__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; },\n/* harmony export */ \"webpack\": function() { return /* reexport module object */ _webpack__WEBPACK_IMPORTED_MODULE_6__; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"@babel/runtime/helpers/asyncToGenerator\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"@babel/runtime/regenerator\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @dr.pogodin/react-themes */ \"@dr.pogodin/react-themes\");\n/* harmony import */ var _dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./config */ \"./src/shared/utils/config.js\");\n/* harmony import */ var _isomorphy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isomorphy */ \"./src/shared/utils/isomorphy.js\");\n/* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./time */ \"./src/shared/utils/time.js\");\n/* harmony import */ var _webpack__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./webpack */ \"./src/shared/utils/webpack.js\");\n\n\n\n\n\n\n\n(_dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2___default().COMPOSE) = _dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2__.COMPOSE;\n(_dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2___default().PRIORITY) = _dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2__.PRIORITY;\nvar JU = null; // eslint-disable-line import/no-mutable-exports\n\nif (_isomorphy__WEBPACK_IMPORTED_MODULE_4__.IS_SERVER_SIDE && (process.env.NODE_CONFIG_ENV || \"development\") !== 'production') {\n /* eslint-disable global-require */\n var path = _webpack__WEBPACK_IMPORTED_MODULE_6__.requireWeak('path');\n JU = _webpack__WEBPACK_IMPORTED_MODULE_6__.requireWeak(path.resolve(__dirname, './jest'));\n /* eslint-enable global-require */\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 */\n\n\nfunction newBarrier() {\n var resolve;\n var promise = new Promise(function (res) {\n resolve = res;\n });\n promise.resolve = resolve;\n return promise;\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 */\n\n\nfunction withRetries(_x) {\n return _withRetries.apply(this, arguments);\n}\n\nfunction _withRetries() {\n _withRetries = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee(action) {\n var maxRetries,\n interval,\n n,\n _args = arguments;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n maxRetries = _args.length > 1 && _args[1] !== undefined ? _args[1] : 5;\n interval = _args.length > 2 && _args[2] !== undefined ? _args[2] : 1000;\n n = 1;\n\n case 3:\n _context.prev = 3;\n _context.next = 6;\n return action();\n\n case 6:\n return _context.abrupt(\"return\", _context.sent);\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](3);\n\n if (!(n < maxRetries)) {\n _context.next = 16;\n break;\n }\n\n _context.next = 14;\n return _time__WEBPACK_IMPORTED_MODULE_5__[\"default\"].timer(interval);\n\n case 14:\n _context.next = 17;\n break;\n\n case 16:\n throw _context.t0;\n\n case 17:\n ++n;\n _context.next = 3;\n break;\n\n case 20:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[3, 9]]);\n }));\n return _withRetries.apply(this, arguments);\n}\n\n\n\n//# sourceURL=webpack://@dr.pogodin/react-utils/./src/shared/utils/index.js?");
249
+ eval("var __dirname = \"/\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Emitter\": function() { return /* reexport safe */ _Emitter__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; },\n/* harmony export */ \"withRetries\": function() { return /* binding */ withRetries; },\n/* harmony export */ \"config\": function() { return /* reexport safe */ _config__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; },\n/* harmony export */ \"isomorphy\": function() { return /* reexport module object */ _isomorphy__WEBPACK_IMPORTED_MODULE_4__; },\n/* harmony export */ \"JU\": function() { return /* binding */ JU; },\n/* harmony export */ \"newBarrier\": function() { return /* binding */ newBarrier; },\n/* harmony export */ \"themed\": function() { return /* reexport default from dynamic */ _dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2___default.a; },\n/* harmony export */ \"ThemeProvider\": function() { return /* reexport safe */ _dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2__.ThemeProvider; },\n/* harmony export */ \"time\": function() { return /* reexport safe */ _time__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; },\n/* harmony export */ \"webpack\": function() { return /* reexport module object */ _webpack__WEBPACK_IMPORTED_MODULE_6__; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"@babel/runtime/helpers/asyncToGenerator\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"@babel/runtime/regenerator\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @dr.pogodin/react-themes */ \"@dr.pogodin/react-themes\");\n/* harmony import */ var _dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./config */ \"./src/shared/utils/config.js\");\n/* harmony import */ var _isomorphy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isomorphy */ \"./src/shared/utils/isomorphy.js\");\n/* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./time */ \"./src/shared/utils/time.js\");\n/* harmony import */ var _webpack__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./webpack */ \"./src/shared/utils/webpack.js\");\n/* harmony import */ var _Emitter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Emitter */ \"./src/shared/utils/Emitter.js\");\n\n\n\n\n\n\n\n\n(_dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2___default().COMPOSE) = _dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2__.COMPOSE;\n(_dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2___default().PRIORITY) = _dr_pogodin_react_themes__WEBPACK_IMPORTED_MODULE_2__.PRIORITY;\nvar JU = null; // eslint-disable-line import/no-mutable-exports\n\nif (_isomorphy__WEBPACK_IMPORTED_MODULE_4__.IS_SERVER_SIDE && (process.env.NODE_CONFIG_ENV || \"development\") !== 'production') {\n /* eslint-disable global-require */\n var path = _webpack__WEBPACK_IMPORTED_MODULE_6__.requireWeak('path');\n JU = _webpack__WEBPACK_IMPORTED_MODULE_6__.requireWeak(path.resolve(__dirname, './jest'));\n /* eslint-enable global-require */\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 */\n\n\nfunction newBarrier() {\n var resolve;\n var promise = new Promise(function (res) {\n resolve = res;\n });\n promise.resolve = resolve;\n return promise;\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 */\n\n\nfunction withRetries(_x) {\n return _withRetries.apply(this, arguments);\n}\n\nfunction _withRetries() {\n _withRetries = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee(action) {\n var maxRetries,\n interval,\n n,\n _args = arguments;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n maxRetries = _args.length > 1 && _args[1] !== undefined ? _args[1] : 5;\n interval = _args.length > 2 && _args[2] !== undefined ? _args[2] : 1000;\n n = 1;\n\n case 3:\n _context.prev = 3;\n _context.next = 6;\n return action();\n\n case 6:\n return _context.abrupt(\"return\", _context.sent);\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](3);\n\n if (!(n < maxRetries)) {\n _context.next = 16;\n break;\n }\n\n _context.next = 14;\n return _time__WEBPACK_IMPORTED_MODULE_5__[\"default\"].timer(interval);\n\n case 14:\n _context.next = 17;\n break;\n\n case 16:\n throw _context.t0;\n\n case 17:\n ++n;\n _context.next = 3;\n break;\n\n case 20:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[3, 9]]);\n }));\n return _withRetries.apply(this, arguments);\n}\n\n\n\n//# sourceURL=webpack://@dr.pogodin/react-utils/./src/shared/utils/index.js?");
240
250
 
241
251
  /***/ }),
242
252
 
@@ -450,6 +460,26 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_asyncToGenerat
450
460
 
451
461
  /***/ }),
452
462
 
463
+ /***/ "@babel/runtime/helpers/classCallCheck":
464
+ /*!********************************************************!*\
465
+ !*** external "@babel/runtime/helpers/classCallCheck" ***!
466
+ \********************************************************/
467
+ /***/ (function(module) {
468
+
469
+ module.exports = __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_classCallCheck__;
470
+
471
+ /***/ }),
472
+
473
+ /***/ "@babel/runtime/helpers/createClass":
474
+ /*!*****************************************************!*\
475
+ !*** external "@babel/runtime/helpers/createClass" ***!
476
+ \*****************************************************/
477
+ /***/ (function(module) {
478
+
479
+ module.exports = __WEBPACK_EXTERNAL_MODULE__babel_runtime_helpers_createClass__;
480
+
481
+ /***/ }),
482
+
453
483
  /***/ "@babel/runtime/helpers/defineProperty":
454
484
  /*!********************************************************!*\
455
485
  !*** external "@babel/runtime/helpers/defineProperty" ***!
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;/**
2
+ * Simple listeneable data Emitter.
3
+ */class Emitter{/**
4
+ * Creates a new Emitter.
5
+ */constructor(){this.listeners=[]}/**
6
+ * Returns "true" if any listener is connected; "false" otherwise.
7
+ * @return {boolean}
8
+ */get hasListeners(){return!!this.listeners.length}/**
9
+ * Adds `listener` if it is not already connected.
10
+ * @param {function} listener
11
+ * @return {function} Unsubscribe function.
12
+ */addListener(listener){if(!this.listeners.includes(listener)){this.listeners.push(listener)}return()=>this.removeListener(listener)}/**
13
+ * Calls every connected listener with the given arguments.
14
+ * @param {...any} args
15
+ */emit(...args){const{listeners}=this;for(let i=0;i<listeners.length;++i){listeners[i](...args)}}/**
16
+ * Removes specified `listener`, if connected.
17
+ * @param {function} listener
18
+ */removeListener(listener){const idx=this.listeners.indexOf(listener);if(idx>=0)this.listeners.splice(idx,1)}}exports.default=Emitter;
19
+ //# sourceMappingURL=Emitter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/shared/utils/Emitter.js"],"names":["Emitter","constructor","listeners","hasListeners","length","addListener","listener","includes","push","removeListener","emit","args","i","idx","indexOf","splice"],"mappings":"6FAAA;AACA;AACA,GACe,KAAMA,CAAAA,OAAQ,CAC3B;AACF;AACA,KACEC,WAAW,EAAG,CACZ,KAAKC,SAAL,CAAiB,EAClB,CAED;AACF;AACA;AACA,KACkB,GAAZC,CAAAA,YAAY,EAAG,CACjB,MAAO,CAAC,CAAC,KAAKD,SAAL,CAAeE,MACzB,CAED;AACF;AACA;AACA;AACA,KACEC,WAAW,CAACC,QAAD,CAAW,CACpB,GAAI,CAAC,KAAKJ,SAAL,CAAeK,QAAf,CAAwBD,QAAxB,CAAL,CAAwC,CACtC,KAAKJ,SAAL,CAAeM,IAAf,CAAoBF,QAApB,CACD,CACD,MAAO,IAAM,KAAKG,cAAL,CAAoBH,QAApB,CACd,CAED;AACF;AACA;AACA,KACEI,IAAI,CAAC,GAAGC,IAAJ,CAAU,CACZ,KAAM,CAAET,SAAF,EAAgB,IAAtB,CACA,IAAK,GAAIU,CAAAA,CAAC,CAAG,CAAb,CAAgBA,CAAC,CAAGV,SAAS,CAACE,MAA9B,CAAsC,EAAEQ,CAAxC,CAA2C,CACzCV,SAAS,CAACU,CAAD,CAAT,CAAa,GAAGD,IAAhB,CACD,CACF,CAED;AACF;AACA;AACA,KACEF,cAAc,CAACH,QAAD,CAAW,CACvB,KAAMO,CAAAA,GAAG,CAAG,KAAKX,SAAL,CAAeY,OAAf,CAAuBR,QAAvB,CAAZ,CACA,GAAIO,GAAG,EAAI,CAAX,CAAc,KAAKX,SAAL,CAAea,MAAf,CAAsBF,GAAtB,CAA2B,CAA3B,CACf,CA9C0B,C","sourcesContent":["/**\n * Simple listeneable data Emitter.\n */\nexport default class Emitter {\n /**\n * Creates a new Emitter.\n */\n constructor() {\n this.listeners = [];\n }\n\n /**\n * Returns \"true\" if any listener is connected; \"false\" otherwise.\n * @return {boolean}\n */\n get hasListeners() {\n return !!this.listeners.length;\n }\n\n /**\n * Adds `listener` if it is not already connected.\n * @param {function} listener\n * @return {function} Unsubscribe function.\n */\n addListener(listener) {\n if (!this.listeners.includes(listener)) {\n this.listeners.push(listener);\n }\n return () => this.removeListener(listener);\n }\n\n /**\n * Calls every connected listener with the given arguments.\n * @param {...any} args\n */\n emit(...args) {\n const { listeners } = this;\n for (let i = 0; i < listeners.length; ++i) {\n listeners[i](...args);\n }\n }\n\n /**\n * Removes specified `listener`, if connected.\n * @param {function} listener\n */\n removeListener(listener) {\n const idx = this.listeners.indexOf(listener);\n if (idx >= 0) this.listeners.splice(idx, 1);\n }\n}\n"],"file":"Emitter.js"}
@@ -1,4 +1,4 @@
1
- "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.JU=void 0;Object.defineProperty(exports,"ThemeProvider",{enumerable:true,get:function(){return _reactThemes.ThemeProvider}});Object.defineProperty(exports,"config",{enumerable:true,get:function(){return _config.default}});exports.isomorphy=void 0;exports.newBarrier=newBarrier;Object.defineProperty(exports,"themed",{enumerable:true,get:function(){return _reactThemes.default}});Object.defineProperty(exports,"time",{enumerable:true,get:function(){return _time.default}});exports.webpack=void 0;exports.withRetries=withRetries;var _reactThemes=_interopRequireWildcard(require("@dr.pogodin/react-themes"));var _config=_interopRequireDefault(require("./config"));var isomorphy=_interopRequireWildcard(require("./isomorphy"));exports.isomorphy=isomorphy;var _time=_interopRequireDefault(require("./time"));var webpack=_interopRequireWildcard(require("./webpack"));exports.webpack=webpack;function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap;var cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj}}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj)}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc)}else{newObj[key]=obj[key]}}}newObj.default=obj;if(cache){cache.set(obj,newObj)}return newObj}_reactThemes.default.COMPOSE=_reactThemes.COMPOSE;_reactThemes.default.PRIORITY=_reactThemes.PRIORITY;let JU=null;// eslint-disable-line import/no-mutable-exports
1
+ "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"Emitter",{enumerable:true,get:function(){return _Emitter.default}});exports.JU=void 0;Object.defineProperty(exports,"ThemeProvider",{enumerable:true,get:function(){return _reactThemes.ThemeProvider}});Object.defineProperty(exports,"config",{enumerable:true,get:function(){return _config.default}});exports.isomorphy=void 0;exports.newBarrier=newBarrier;Object.defineProperty(exports,"themed",{enumerable:true,get:function(){return _reactThemes.default}});Object.defineProperty(exports,"time",{enumerable:true,get:function(){return _time.default}});exports.webpack=void 0;exports.withRetries=withRetries;var _reactThemes=_interopRequireWildcard(require("@dr.pogodin/react-themes"));var _config=_interopRequireDefault(require("./config"));var isomorphy=_interopRequireWildcard(require("./isomorphy"));exports.isomorphy=isomorphy;var _time=_interopRequireDefault(require("./time"));var webpack=_interopRequireWildcard(require("./webpack"));exports.webpack=webpack;var _Emitter=_interopRequireDefault(require("./Emitter"));function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap;var cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj}}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj)}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc)}else{newObj[key]=obj[key]}}}newObj.default=obj;if(cache){cache.set(obj,newObj)}return newObj}_reactThemes.default.COMPOSE=_reactThemes.COMPOSE;_reactThemes.default.PRIORITY=_reactThemes.PRIORITY;let JU=null;// eslint-disable-line import/no-mutable-exports
2
2
  exports.JU=JU;if(isomorphy.IS_SERVER_SIDE&&(process.env.NODE_CONFIG_ENV||process.env.NODE_ENV)!=="production"){/* eslint-disable global-require */const path=webpack.requireWeak("path");exports.JU=JU=webpack.requireWeak(path.resolve(__dirname,"./jest"));/* eslint-enable global-require */}/**
3
3
  * @category Utilities
4
4
  * @func newBarrier
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/shared/utils/index.js"],"names":["themed","COMPOSE","PRIORITY","JU","isomorphy","IS_SERVER_SIDE","process","env","NODE_CONFIG_ENV","NODE_ENV","path","webpack","requireWeak","resolve","__dirname","newBarrier","promise","Promise","res","withRetries","action","maxRetries","interval","n","error","time","timer"],"mappings":"grBAAA,8EAMA,wDACA,8D,4BACA,oDACA,0D,4+BAEAA,qBAAOC,OAAP,CAAiBA,oBAAjB,CACAD,qBAAOE,QAAP,CAAkBA,qBAAlB,CAEA,GAAIC,CAAAA,EAAE,CAAG,IAAT,CAAe;cACf,GAAIC,SAAS,CAACC,cAAV,EACC,CAACC,OAAO,CAACC,GAAR,CAAYC,eAAZ,EAA+BF,OAAO,CAACC,GAAR,CAAYE,QAA5C,IAA0D,YAD/D,CAEE,CACA,mCACA,KAAMC,CAAAA,IAAI,CAAGC,OAAO,CAACC,WAAR,CAAoB,MAApB,CAAb,CACA,WAAAT,EAAE,CAAGQ,OAAO,CAACC,WAAR,CAAoBF,IAAI,CAACG,OAAL,CAAaC,SAAb,CAAwB,QAAxB,CAApB,CAAL,CACA,kCACD,CAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACA,QAASC,CAAAA,UAAT,EAAsB,CACpB,GAAIF,CAAAA,OAAJ,CACA,KAAMG,CAAAA,OAAO,CAAG,GAAIC,CAAAA,OAAJ,CAAaC,GAAD,EAAS,CAAEL,OAAO,CAAGK,GAAM,CAAvC,CAAhB,CACAF,OAAO,CAACH,OAAR,CAAkBA,OAAlB,CACA,MAAOG,CAAAA,OACR,CAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACO,cAAeG,CAAAA,WAAf,CAA2BC,MAA3B,CAAmCC,UAAU,CAAG,CAAhD,CAAmDC,QAAQ,CAAG,IAA9D,CAAoE,CACzE,qCACA,IAAK,GAAIC,CAAAA,CAAC,CAAG,CAAb,EAAkB,EAAEA,CAApB,CAAuB,CACrB,GAAI,CACF,MAAO,MAAMH,CAAAA,MAAM,EACpB,CAAC,MAAOI,KAAP,CAAc,CACd,GAAID,CAAC,CAAGF,UAAR,CAAoB,KAAMI,eAAKC,KAAL,CAAWJ,QAAX,CAAN,CAApB,IACK,MAAME,CAAAA,KACZ,CACF,CACD,oCACD","sourcesContent":["import 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 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 webpack,\n};\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/shared/utils/index.js"],"names":["themed","COMPOSE","PRIORITY","JU","isomorphy","IS_SERVER_SIDE","process","env","NODE_CONFIG_ENV","NODE_ENV","path","webpack","requireWeak","resolve","__dirname","newBarrier","promise","Promise","res","withRetries","action","maxRetries","interval","n","error","time","timer"],"mappings":"mxBAAA,8EAMA,wDACA,8D,4BACA,oDACA,0D,wBAEA,0D,o9BAEAA,qBAAOC,OAAP,CAAiBA,oBAAjB,CACAD,qBAAOE,QAAP,CAAkBA,qBAAlB,CAEA,GAAIC,CAAAA,EAAE,CAAG,IAAT,CAAe;cACf,GAAIC,SAAS,CAACC,cAAV,EACC,CAACC,OAAO,CAACC,GAAR,CAAYC,eAAZ,EAA+BF,OAAO,CAACC,GAAR,CAAYE,QAA5C,IAA0D,YAD/D,CAEE,CACA,mCACA,KAAMC,CAAAA,IAAI,CAAGC,OAAO,CAACC,WAAR,CAAoB,MAApB,CAAb,CACA,WAAAT,EAAE,CAAGQ,OAAO,CAACC,WAAR,CAAoBF,IAAI,CAACG,OAAL,CAAaC,SAAb,CAAwB,QAAxB,CAApB,CAAL,CACA,kCACD,CAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACA,QAASC,CAAAA,UAAT,EAAsB,CACpB,GAAIF,CAAAA,OAAJ,CACA,KAAMG,CAAAA,OAAO,CAAG,GAAIC,CAAAA,OAAJ,CAAaC,GAAD,EAAS,CAAEL,OAAO,CAAGK,GAAM,CAAvC,CAAhB,CACAF,OAAO,CAACH,OAAR,CAAkBA,OAAlB,CACA,MAAOG,CAAAA,OACR,CAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACO,cAAeG,CAAAA,WAAf,CAA2BC,MAA3B,CAAmCC,UAAU,CAAG,CAAhD,CAAmDC,QAAQ,CAAG,IAA9D,CAAoE,CACzE,qCACA,IAAK,GAAIC,CAAAA,CAAC,CAAG,CAAb,EAAkB,EAAEA,CAApB,CAAuB,CACrB,GAAI,CACF,MAAO,MAAMH,CAAAA,MAAM,EACpB,CAAC,MAAOI,KAAP,CAAc,CACd,GAAID,CAAC,CAAGF,UAAR,CAAoB,KAAMI,eAAKC,KAAL,CAAWJ,QAAX,CAAN,CAApB,IACK,MAAME,CAAAA,KACZ,CACF,CACD,oCACD","sourcesContent":["import 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 webpack from './webpack';\n\nexport { default as Emitter } from './Emitter';\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 webpack,\n};\n"],"file":"index.js"}
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see web.bundle.js.LICENSE.txt */
2
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(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")):"function"==typeof define&&define.amd?define(["@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"],r):"object"==typeof exports?exports["@dr.pogodin/react-utils"]=r(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")):e["@dr.pogodin/react-utils"]=r(e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/objectWithoutProperties"],e["@babel/runtime/helpers/slicedToArray"],e["@babel/runtime/helpers/typeof"],e["@babel/runtime/regenerator"],e["@dr.pogodin/react-global-state"],e["@dr.pogodin/react-themes"],e.axios,e.dayjs,e.lodash,e["prop-types"],e.qs,e.react,e["react-dom"],e["react-helmet"],e["react-router-dom"])}("undefined"!=typeof self?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__){return function(){"use strict";var __webpack_modules__={869:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{requireWeak:function(){return requireWeak},resolveWeak:function(){return resolveWeak}});var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(673),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(189),_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__),_excluded=["default"];function requireWeak(modulePath){var _eval=eval("require")(modulePath),def=_eval.default,named=_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_eval,_excluded);return def?(Object.entries(named).forEach((function(e){var r=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(e,2),t=r[0],n=r[1];if(def[t])throw Error("Conflict between default and named exports");def[t]=n})),def):named}function resolveWeak(e){return e}},418:function(e){var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,_=o(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))t.call(a,u)&&(_[u]=a[u]);if(r){c=r(a);for(var s=0;s<c.length;s++)n.call(a,c[s])&&(_[c[s]]=a[c[s]])}}return _}},251:function(e,r,t){t(418);var n=t(156),o=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),r.Fragment=i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function l(e,r,t){var n,i={},l=null,u=null;for(n in void 0!==t&&(l=""+t),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(u=r.ref),r)c.call(r,n)&&!_.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:a.current}}r.jsx=l,r.jsxs=l},893:function(e,r,t){e.exports=t(251)},314:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__314__},311:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__311__},189:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__189__},673:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__673__},541:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__541__},395:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__395__},899:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__899__},198:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__198__},300:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__300__},760:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__760__},467:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__467__},99:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__99__},656:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__656__},156:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__156__},111:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__111__},383:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__383__},128:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__128__}},__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](t,t.exports,__webpack_require__),t.exports}__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return function(){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BaseModal:function(){return ye},Button:function(){return z},Checkbox:function(){return H},CodeSplit:function(){return ne},Dropdown:function(){return ce},GlobalStateProvider:function(){return T.GlobalStateProvider},Input:function(){return de},JU:function(){return E},Link:function(){return X},MetaTags:function(){return Ee},Modal:function(){return Oe},NavLink:function(){return je},PT:function(){return x},PageLayout:function(){return he},ScalableRect:function(){return xe},ThemeProvider:function(){return i.ThemeProvider},Throbber:function(){return Te},WithTooltip:function(){return Re},YouTubeVideo:function(){return Ke},api:function(){return j()},client:function(){return Q},config:function(){return b},getGlobalState:function(){return T.getGlobalState},isomorphy:function(){return e},newBarrier:function(){return w},server:function(){return Ie},themed:function(){return a()},time:function(){return v},useAsyncCollection:function(){return T.useAsyncCollection},useAsyncData:function(){return T.useAsyncData},useGlobalState:function(){return T.useGlobalState},webpack:function(){return f},withRetries:function(){return O}});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{IS_CLIENT_SIDE:function(){return _},IS_SERVER_SIDE:function(){return l},buildTimestamp:function(){return d},getBuildInfo:function(){return p},isDevBuild:function(){return u},isProdBuild:function(){return s}});var r=__webpack_require__(314),t=__webpack_require__.n(r),n=__webpack_require__(395),o=__webpack_require__.n(n),i=__webpack_require__(198),a=__webpack_require__.n(i),c=__webpack_require__(541),_="object"!==("undefined"==typeof process?"undefined":__webpack_require__.n(c)()(process))||!process.versions||!process.versions.node,l=!_;function u(){return!1}function s(){return!0}function p(){return(_?window:__webpack_require__.g).TRU_BUILD_INFO}function d(){return p().timestamp}var f=__webpack_require__(869),b=_?window.CONFIG:(0,f.requireWeak)("config"),h=__webpack_require__(760),m=__webpack_require__.n(h);m().SEC_MS=1e3,m().MIN_MS=60*m().SEC_MS,m().HOUR_MS=60*m().MIN_MS,m().DAY_MS=24*m().HOUR_MS,m().YEAR_MS=365*m().DAY_MS,m().now=Date.now,m().timer=function(){var e=t()(o().mark((function e(r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout(e,r)})));case 1:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}();var v=m();a().COMPOSE=i.COMPOSE,a().PRIORITY=i.PRIORITY;var E=null;if(l&&"production"!==(process.env.NODE_CONFIG_ENV||"production")){var y=f.requireWeak("path");E=f.requireWeak(y.resolve("/","./jest"))}function w(){var e,r=new Promise((function(r){e=r}));return r.resolve=e,r}function O(e){return g.apply(this,arguments)}function g(){return g=t()(o().mark((function e(r){var t,n,i,a=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=a.length>1&&void 0!==a[1]?a[1]:5,n=a.length>2&&void 0!==a[2]?a[2]:1e3,i=1;case 3:return e.prev=3,e.next=6,r();case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(3),!(i<t)){e.next=16;break}return e.next=14,v.timer(n);case 14:e.next=17;break;case 16:throw e.t0;case 17:++i,e.next=3;break;case 20:case"end":return e.stop()}}),e,null,[[3,9]])}))),g.apply(this,arguments)}var P=__webpack_require__(300),j=__webpack_require__.n(P),x=__webpack_require__(99),k=__webpack_require__.n(x),T=__webpack_require__(899),A=__webpack_require__(311),q=__webpack_require__.n(A),C=__webpack_require__(128),N=__webpack_require__(189),L=__webpack_require__.n(N),D=__webpack_require__(156),M=__webpack_require__(893),R=["children","className","disabled","enforceA","keepScrollPosition","onClick","onMouseDown","openNewTab","replace","routerLinkType","to"];function S(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function B(e){var r=e.children,t=e.className,n=e.disabled,o=e.enforceA,i=e.keepScrollPosition,a=e.onClick,c=e.onMouseDown,_=e.openNewTab,l=e.replace,u=e.routerLinkType,s=e.to,p=L()(e,R);return n||o||_||s.match(/^(#|(https?|mailto):)/)?(0,M.jsx)("a",{className:(t?t+" ":"")+"zH52sA",disabled:n,href:s,onClick:n?function(e){return e.preventDefault()}:a,onMouseDown:n?function(e){return e.preventDefault()}:c,rel:"noopener noreferrer",target:_?"_blank":"",children:r}):(0,D.createElement)(u,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?S(Object(t),!0).forEach((function(r){q()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({className:t,disabled:n,onMouseDown:c,replace:l,to:s,onClick:function(e){a&&a(e),i||window.scroll(0,0)}},p),r)}function W(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function U(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?W(Object(t),!0).forEach((function(r){q()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function X(e){return(0,M.jsx)(B,U(U({},e),{},{routerLinkType:C.Link}))}function K(e){var r=e.active,t=e.children,n=e.disabled,o=e.enforceA,i=e.onClick,a=e.onMouseDown,c=e.openNewTab,_=e.replace,l=e.theme,u=e.to,s=l.button;return r&&l.active&&(s+=" ".concat(l.active)),n?(l.disabled&&(s+=" ".concat(l.disabled)),(0,M.jsx)("div",{className:s,children:t})):u?(0,M.jsx)(X,{className:s,enforceA:o,onClick:i,onMouseDown:a,openNewTab:c,replace:_,to:u,children:t}):(0,M.jsx)("div",{className:s,onClick:i,onKeyPress:i,onMouseDown:a,role:"button",tabIndex:0,children:t})}B.defaultProps={children:null,className:null,disabled:!1,enforceA:!1,keepScrollPosition:!1,onClick:null,onMouseDown:null,openNewTab:!1,replace:!1,to:""},B.propTypes={children:k().node,className:k().string,disabled:k().bool,enforceA:k().bool,keepScrollPosition:k().bool,onClick:k().func,onMouseDown:k().func,openNewTab:k().bool,replace:k().bool,routerLinkType:k().elementType.isRequired,to:k().oneOfType([k().object,k().string])};var I=a()("Button",["active","button","disabled"],{button:"E1FNQT",context:"KM0v4f",ad:"_3jm1-Q",hoc:"_0plpDL",active:"MAe9O6",disabled:"Br9IWV"})(K);K.defaultProps={active:!1,children:void 0,disabled:!1,enforceA:!1,onClick:void 0,onMouseDown:void 0,openNewTab:!1,replace:!1,to:void 0},K.propTypes={active:k().bool,children:k().node,disabled:k().bool,enforceA:k().bool,onClick:k().func,onMouseDown:k().func,openNewTab:k().bool,replace:k().bool,theme:I.themeType.isRequired,to:k().oneOfType([k().object,k().string])};var z=I;function Y(e){var r=e.checked,t=e.label,n=e.onChange,o=e.theme;return(0,M.jsxs)("div",{className:o.container,children:[void 0===t?null:(0,M.jsx)("p",{className:o.label,children:t}),(0,M.jsx)("input",{checked:r,className:o.checkbox,onChange:n,type:"checkbox"})]})}var G=a()("Checkbox",["checkbox","container","label"],{checkbox:"A-f8qJ",context:"dNQcC6",ad:"earXxa",hoc:"qAPfQ6",container:"Kr0g3M",label:"_3dML-O"})(Y);Y.propTypes={checked:k().bool,label:k().string,onChange:k().func,theme:G.themeType.isRequired},Y.defaultProps={checked:void 0,label:void 0,onChange:void 0};var H=G,F=__webpack_require__(111),V=__webpack_require__.n(F);function Q(e){V().hydrate((0,M.jsx)(T.GlobalStateProvider,{initialState:window.ISTATE,children:(0,M.jsx)(C.BrowserRouter,{children:(0,M.jsx)(e,{})})}),document.getElementById("react-view"))}var J,Z=__webpack_require__(673),$=__webpack_require__.n(Z),ee=["chunkName","getComponentAsync","placeholder"];function re(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function te(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?re(Object(t),!0).forEach((function(r){q()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):re(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}try{J=l&&f.requireWeak("".concat("/","/ServerSide"))}catch(e){J=void 0}J||(J=function(e){var r=e.chunkName,t=e.getComponentAsync,n=e.placeholder,o=L()(e,ee),i=(0,D.useRef)({pendingStyles:[],renderInitialized:!1,stylesInitialized:!1}).current,a=p().publicPath;i.stylesInitialized||(i.stylesInitialized=!0,window.CHUNK_GROUPS[r].forEach((function(e){if(e.endsWith(".css")){var t="".concat(a,"/").concat(e),n=document.querySelector('link[href="'.concat(t,'"]'));if(!n){(n=document.createElement("link")).setAttribute("href",t),n.setAttribute("rel","stylesheet");var o=w();n.onload=o.resolve,i.pendingStyles.push(o),document.querySelector("head").appendChild(n)}n.dependants?n.dependants.add(r):n.dependants=new Set([r])}})));var c=(0,T.useAsyncData)("dr_pogodin_react_utils___split_components.".concat(r),t,{maxage:v.YEAR_MS}).data,_=function(){var e=c.default||c;return(0,M.jsx)("div",{"data-chunk-name":r,children:(0,M.jsx)(e,te({},o))})},l=(0,D.useState)((function(){if(c&&!i.pendingStyles.length)return i.renderInitialized=!0,_();var e=document.querySelector("[data-chunk-name=".concat(r,"]"));if(e)return(0,M.jsx)("div",{dangerouslySetInnerHTML:{__html:e.innerHTML||""},"data-chunk-name":r});var t=n||function(){return null};return(0,M.jsx)("div",{children:(0,M.jsx)(t,{})})})),u=$()(l,2),s=u[0],d=u[1];return c&&!i.renderInitialized&&(i.renderInitialized=!0,Promise.all(i.pendingStyles).then((function(){i.stylesInitialized&&d(_())}))),(0,D.useEffect)((function(){return function(){i.stylesInitialized=!1,window.CHUNK_GROUPS[r].forEach((function(e){if(e.endsWith(".css")){var t="".concat(a,"/").concat(e),n=document.querySelector('link[href="'.concat(t,'"]'));n.dependants.delete(r),n.dependants.size||document.querySelector("head").removeChild(n)}}))}}),[r,i,a]),s});var ne=J,oe=__webpack_require__(467);function ie(e){for(var r=e.filter,t=e.label,n=e.onChange,o=e.options,i=e.theme,a=e.value,c=[(0,M.jsx)("option",{className:i.hiddenOption,children:"‌"},"__reactUtilsHiddenOption")],_=0;_<o.length;++_){var l=o[_];r&&!r(l)||((0,oe.isString)(l)&&(l={value:l}),c.push((0,M.jsx)("option",{className:i.option,value:l.value,children:void 0===l.name?l.value:l.name},l.value)))}return(0,M.jsxs)("div",{className:i.container,children:[void 0===t?null:(0,M.jsx)("p",{className:i.label,children:t}),(0,M.jsx)("select",{className:i.select,onChange:n,value:a,children:c}),(0,M.jsx)("div",{className:i.arrow,children:"▼"})]})}var ae=a()("Dropdown",["arrow","container","hiddenOption","label","option","select"],{arrow:"-zPK7Y",context:"haRIry",ad:"D4XHG2",hoc:"N3nd34",container:"_9CQpeA",label:"Gv0kyu",hiddenOption:"RdW3yR",select:"JXK1uw"})(ie);ie.propTypes={filter:k().func,label:k().string,onChange:k().func,options:k().arrayOf(k().oneOfType([k().shape({name:k().node,value:k().string.isRequired}),k().string]).isRequired),theme:ae.themeType.isRequired,value:k().string},ie.defaultProps={filter:void 0,label:void 0,onChange:void 0,options:[],value:void 0};var ce=ae,_e=["label","theme"];function le(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function ue(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?le(Object(t),!0).forEach((function(r){q()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function se(e){var r=e.label,t=e.theme,n=L()(e,_e);return(0,M.jsxs)("div",{className:t.container,children:[void 0===r?null:(0,M.jsx)("p",{className:t.label,children:r}),(0,M.jsx)("input",ue({className:t.input},n))]})}var pe=a()("Input",["container","input","label"],{container:"Cxx397",context:"X5WszA",ad:"_8s7GCr",hoc:"TVlBYc",input:"M07d4s",label:"gfbdq-"})(se);se.propTypes={label:k().string,theme:pe.themeType.isRequired},se.defaultProps={label:void 0};var de=pe;function fe(e){var r=e.children,t=e.leftSidePanelContent,n=e.rightSidePanelContent,o=e.theme;return(0,M.jsxs)("div",{className:o.container,children:[(0,M.jsx)("div",{className:[o.sidePanel,o.leftSidePanel].join(" "),children:t}),(0,M.jsx)("div",{className:o.mainPanel,children:r}),(0,M.jsx)("div",{className:[o.sidePanel,o.rightSidePanel].join(" "),children:n})]})}var be=a()("PageLayout",["container","leftSidePanel","mainPanel","rightSidePanel","sidePanel"],{container:"T3cuHB",context:"m4mL-M",ad:"m3-mdC",hoc:"J15Z4H",mainPanel:"pPlQO2",sidePanel:"lqNh4h"})(fe);fe.propTypes={children:k().node,leftSidePanelContent:k().node,rightSidePanelContent:k().node,theme:be.themeType.isRequired},fe.defaultProps={children:null,leftSidePanelContent:null,rightSidePanelContent:null};var he=be,me=__webpack_require__(383),ve=(0,D.createContext)();function Ee(e){var r=e.children,t=e.description,n=e.image,o=e.siteName,i=e.socialDescription,a=e.socialTitle,c=e.title,_=e.url,l=a||c,u=i||t,s=(0,D.useMemo)((function(){return{description:t,image:n,siteName:o,socialDescription:i,socialTitle:a,title:c,url:_}}),[t,n,o,i,a,c,_]);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(me.Helmet,{children:[(0,M.jsx)("title",{children:c}),(0,M.jsx)("meta",{name:"description",content:t}),(0,M.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,M.jsx)("meta",{name:"twitter:title",content:l}),(0,M.jsx)("meta",{name:"twitter:description",content:u}),n?(0,M.jsx)("meta",{name:"twitter:image",content:n}):null,o?(0,M.jsx)("meta",{name:"twitter:site",content:"@".concat(o)}):null,(0,M.jsx)("meta",{name:"og:title",content:l}),n?(0,M.jsx)("meta",{name:"og:image",content:n}):null,n?(0,M.jsx)("meta",{name:"og:image:alt",content:l}):null,(0,M.jsx)("meta",{name:"og:description",content:u}),o?(0,M.jsx)("meta",{name:"og:sitename",content:o}):null,_?(0,M.jsx)("meta",{name:"og:url",content:_}):null]}),r?(0,M.jsx)(ve.Provider,{value:s,children:r}):null]})}function ye(e){var r=e.children,t=e.onCancel,n=e.theme,o=(0,D.useRef)(),i=(0,D.useRef)(),a=(0,D.useState)(),c=$()(a,2),_=c[0],l=c[1];(0,D.useEffect)((function(){var e=document.createElement("div");return document.body.classList.add("scrolling-disabled-by-modal"),document.body.appendChild(e),l(e),function(){document.body.classList.remove("scrolling-disabled-by-modal"),document.body.removeChild(e)}}),[]);var u=(0,D.useMemo)((function(){return(0,M.jsx)("div",{onFocus:function(){for(var e=o.current.querySelectorAll("*"),r=e.length-1;r>=0;--r)if(e[r].focus(),document.activeElement===e[r])return;i.current.focus()},tabIndex:"0"})}),[]);return _?V().createPortal((0,M.jsxs)(M.Fragment,{children:[u,(0,M.jsx)("div",{"aria-label":"Cancel",className:n.overlay,onClick:function(){return t()},onKeyDown:function(e){"Escape"===e.key&&t()},ref:function(e){e&&e!==i.current&&(i.current=e,e.focus())},role:"button",tabIndex:"0"}),(0,M.jsx)("div",{"aria-modal":"true",className:n.container,onWheel:function(e){return e.stopPropagation()},ref:o,role:"dialog",children:r}),(0,M.jsx)("div",{onFocus:function(){i.current.focus()},tabIndex:"0"}),u]}),_):null}Ee.Context=ve,Ee.defaultProps={children:null,image:null,siteName:null,socialDescription:null,socialTitle:null,url:null},Ee.propTypes={children:k().node,description:k().string.isRequired,image:k().string,siteName:k().string,socialDescription:k().string,socialTitle:k().string,title:k().string.isRequired,url:k().string};var we=a()("Modal",["container","overlay"],{overlay:"ye2BZo",context:"Szmbbz",ad:"Ah-Nsc",hoc:"Wki41G",container:"gyZ4rc"})(ye);ye.propTypes={onCancel:k().func,children:k().node,theme:we.themeType.isRequired},ye.defaultProps={onCancel:oe.noop,children:null};var Oe=we;function ge(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function Pe(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ge(Object(t),!0).forEach((function(r){q()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ge(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function je(e){return(0,M.jsx)(B,Pe(Pe({},e),{},{routerLinkType:C.NavLink}))}function xe(e){var r=e.children,t=e.className,n=e.ratio.split(":"),o="".concat(100*n[1]/n[0],"%"),i=(0,M.jsx)("div",{style:{paddingBottom:o},className:"EznFz3",children:(0,M.jsx)("div",{className:"_0vb7tq",children:r})});return t?(0,M.jsx)("div",{className:t,children:i}):i}function ke(e){var r=e.theme;return(0,M.jsxs)("div",{className:(r.container?r.container+" ":"")+"_7zdld4",children:[(0,M.jsx)("div",{className:(r.circle?r.circle+" ":"")+"dBrB4g"}),(0,M.jsx)("div",{className:(r.circle?r.circle+" ":"")+"dBrB4g"}),(0,M.jsx)("div",{className:(r.circle?r.circle+" ":"")+"dBrB4g"})]})}xe.defaultProps={children:null,className:null,ratio:"1:1"},xe.propTypes={children:k().node,className:k().string,ratio:k().string},ke.defaultProps={theme:{}},ke.propTypes={theme:k().shape({container:k().string,circle:k().string})};var Te=a()("Throbber",["circle","container"],{container:"_7zdld4",context:"uIObt7",ad:"XIxe9o",hoc:"YOyORH",circle:"dBrB4g",bouncing:"TJe-6j"})(ke),Ae={ABOVE_CURSOR:"ABOVE_CURSOR",ABOVE_ELEMENT:"ABOVE_ELEMENT",BELOW_CURSOR:"BELOW_CURSOR",BELOW_ELEMENT:"BELOW_ELEMENT"},qe=["border-bottom-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";"),Ce=["border-top-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";");var Ne=(0,D.forwardRef)((function(e,r){var t=e.children,n=e.theme,o=(0,D.useState)(null),i=$()(o,2),a=i[0],c=i[1],_=function(e,r,t,n){return a&&function(e,r,t,n,o){var i,a,c,_,l,u=function(e){return{arrow:e.arrow.getBoundingClientRect(),container:e.container.getBoundingClientRect()}}(o),s=(a=(i=window).pageXOffset,c=i.pageYOffset,l=(_=document.documentElement).clientHeight,{left:a,right:a+_.clientWidth,top:c,bottom:c+l}),p=function(e,r,t){var n=t.arrow,o=t.container;return{arrowX:.5*(o.width-n.width),arrowY:o.height,containerX:e-o.width/2,containerY:r-o.height-n.height/1.5,baseArrowStyle:qe}}(e,r,u);if(p.containerX<s.left+6)p.containerX=s.left+6,p.arrowX=Math.max(6,e-p.containerX-u.arrow.width/2);else{var d=s.right-6-u.container.width;p.containerX>d&&(p.containerX=d,p.arrowX=Math.min(u.container.width-6,e-p.containerX-u.arrow.width/2))}p.containerY<s.top+6&&(p.containerY+=u.container.height+2*u.arrow.height,p.arrowY-=u.container.height+u.arrow.height,p.baseArrowStyle=Ce);var f="left:".concat(p.containerX,"px;top:").concat(p.containerY,"px");o.container.setAttribute("style",f);var b="".concat(p.baseArrowStyle,";left:").concat(p.arrowX,"px;top:").concat(p.arrowY,"px");o.arrow.setAttribute("style",b)}(e,r,0,0,a)};return(0,D.useImperativeHandle)(r,(function(){return{pointTo:_}})),(0,D.useEffect)((function(){var e=function(e){var r=document.createElement("div");e.arrow&&r.setAttribute("class",e.arrow);var t=document.createElement("div");e.content&&t.setAttribute("class",e.content);var n=document.createElement("div");return e.container&&n.setAttribute("class",e.container),n.appendChild(r),n.appendChild(t),document.body.appendChild(n),{container:n,arrow:r,content:t}}(n);return c(e),function(){document.body.removeChild(e.container),c(null)}}),[n]),a?(0,F.createPortal)(t,a.content):null}));Ne.propTypes={children:k().node,theme:k().shape().isRequired},Ne.defaultProps={children:null};var Le=Ne;function De(e){var r=e.children,t=e.placement,n=e.tip,o=e.theme,i=(0,D.useRef)(),a=(0,D.useRef)(),c=(0,D.useState)(!1),_=$()(c,2),l=_[0],u=_[1];return(0,D.useEffect)((function(){if(l&&null!==n){var e=function(){return u(!1)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}}),[l,n]),(0,M.jsxs)("div",{className:o.wrapper,onMouseLeave:function(){return u(!1)},onMouseMove:function(e){return function(e,r){if(l){var n=a.current.getBoundingClientRect();e<n.left||e>n.right||r<n.top||r>n.bottom?u(!1):i.current&&i.current.pointTo(e+window.pageXOffset,r+window.pageYOffset,t,a.current)}else u(!0)}(e.clientX,e.clientY)},ref:a,children:[l&&null!==n?(0,M.jsx)(Le,{ref:i,theme:o,children:n}):null,r]})}var Me=a()("WithTooltip",["appearance","arrow","container","content","wrapper"],{arrow:"M9gywF",ad:"_4xT7zE",hoc:"zd-vnH",context:"GdZucr",container:"f9gY8K",appearance:"L4ubm-",wrapper:"_4qDBRM"})(De);Me.PLACEMENTS=Ae,De.propTypes={children:k().node,placement:k().oneOf(Object.values(Ae)),theme:Me.themeType.isRequired,tip:k().node},De.defaultProps={children:null,placement:Ae.ABOVE_CURSOR,tip:null};var Re=Me,Se=__webpack_require__(656),Be=__webpack_require__.n(Se),We={container:"jTxmOX",context:"dzIcLh",ad:"_5a9XX1",hoc:"_7sH52O"};function Ue(e){var r=e.autoplay,t=e.src,n=e.theme,o=e.title,i=t.split("?"),a=$()(i,2),c=a[0],_=a[1],l=(_=_?Be().parse(_):{}).v||c.match(/\/([a-zA-Z0-9-_]*)$/)[1];return c="https://www.youtube.com/embed/".concat(l),delete _.v,_.autoplay=r?1:0,c+="?".concat(Be().stringify(_)),(0,M.jsxs)(xe,{className:n.container,ratio:"16:9",children:[(0,M.jsx)(Te,{theme:We}),(0,M.jsx)("iframe",{allow:"autoplay",allowFullScreen:!0,className:n.video,src:c,title:o})]})}var Xe=a()("YouTubeVideo",["container","video"],{container:"sXHM81",context:"veKyYi",ad:"r3ABzd",hoc:"YKcPnR",video:"SlV2zw"})(Ue);Ue.propTypes={autoplay:k().bool,src:k().string.isRequired,theme:Xe.themeType.isRequired,title:k().string},Ue.defaultProps={autoplay:!1,title:""};var Ke=Xe,Ie=null;if(l)try{var ze=f.requireWeak("path");Ie=f.requireWeak(ze.resolve("/","./server"))}catch(e){Ie=null}}(),__webpack_exports__}()}));
2
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),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")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/classCallCheck","@babel/runtime/helpers/createClass","@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"],r):"object"==typeof exports?exports["@dr.pogodin/react-utils"]=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),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")):e["@dr.pogodin/react-utils"]=r(e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/classCallCheck"],e["@babel/runtime/helpers/createClass"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/objectWithoutProperties"],e["@babel/runtime/helpers/slicedToArray"],e["@babel/runtime/helpers/typeof"],e["@babel/runtime/regenerator"],e["@dr.pogodin/react-global-state"],e["@dr.pogodin/react-themes"],e.axios,e.dayjs,e.lodash,e["prop-types"],e.qs,e.react,e["react-dom"],e["react-helmet"],e["react-router-dom"])}("undefined"!=typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__314__,__WEBPACK_EXTERNAL_MODULE__162__,__WEBPACK_EXTERNAL_MODULE__111__,__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__386__,__WEBPACK_EXTERNAL_MODULE__383__,__WEBPACK_EXTERNAL_MODULE__128__){return function(){"use strict";var __webpack_modules__={869:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{requireWeak:function(){return requireWeak},resolveWeak:function(){return resolveWeak}});var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(673),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(189),_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__),_excluded=["default"];function requireWeak(modulePath){var _eval=eval("require")(modulePath),def=_eval.default,named=_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_eval,_excluded);return def?(Object.entries(named).forEach((function(e){var r=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(e,2),t=r[0],n=r[1];if(def[t])throw Error("Conflict between default and named exports");def[t]=n})),def):named}function resolveWeak(e){return e}},418:function(e){var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,_=o(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))t.call(a,u)&&(_[u]=a[u]);if(r){c=r(a);for(var s=0;s<c.length;s++)n.call(a,c[s])&&(_[c[s]]=a[c[s]])}}return _}},251:function(e,r,t){t(418);var n=t(156),o=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),r.Fragment=i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function l(e,r,t){var n,i={},l=null,u=null;for(n in void 0!==t&&(l=""+t),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(u=r.ref),r)c.call(r,n)&&!_.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:a.current}}r.jsx=l,r.jsxs=l},893:function(e,r,t){e.exports=t(251)},314:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__314__},162:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__162__},111:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__111__},311:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__311__},189:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__189__},673:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__673__},541:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__541__},395:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__395__},899:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__899__},198:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__198__},300:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__300__},760:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__760__},467:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__467__},99:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__99__},656:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__656__},156:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__156__},386:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__386__},383:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__383__},128:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__128__}},__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](t,t.exports,__webpack_require__),t.exports}__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return function(){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BaseModal:function(){return je},Button:function(){return V},Checkbox:function(){return Z},CodeSplit:function(){return _e},Dropdown:function(){return pe},Emitter:function(){return g},GlobalStateProvider:function(){return N.GlobalStateProvider},Input:function(){return Ee},JU:function(){return P},Link:function(){return G},MetaTags:function(){return Pe},Modal:function(){return xe},NavLink:function(){return qe},PT:function(){return C},PageLayout:function(){return we},ScalableRect:function(){return Ce},ThemeProvider:function(){return i.ThemeProvider},Throbber:function(){return Ne},WithTooltip:function(){return Xe},YouTubeVideo:function(){return He},api:function(){return q()},client:function(){return re},config:function(){return b},getGlobalState:function(){return N.getGlobalState},isomorphy:function(){return e},newBarrier:function(){return k},server:function(){return Fe},themed:function(){return a()},time:function(){return E},useAsyncCollection:function(){return N.useAsyncCollection},useAsyncData:function(){return N.useAsyncData},useGlobalState:function(){return N.useGlobalState},webpack:function(){return f},withRetries:function(){return x}});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{IS_CLIENT_SIDE:function(){return _},IS_SERVER_SIDE:function(){return l},buildTimestamp:function(){return d},getBuildInfo:function(){return p},isDevBuild:function(){return u},isProdBuild:function(){return s}});var r=__webpack_require__(314),t=__webpack_require__.n(r),n=__webpack_require__(395),o=__webpack_require__.n(n),i=__webpack_require__(198),a=__webpack_require__.n(i),c=__webpack_require__(541),_="object"!==("undefined"==typeof process?"undefined":__webpack_require__.n(c)()(process))||!process.versions||!process.versions.node,l=!_;function u(){return!1}function s(){return!0}function p(){return(_?window:__webpack_require__.g).TRU_BUILD_INFO}function d(){return p().timestamp}var f=__webpack_require__(869),b=_?window.CONFIG:(0,f.requireWeak)("config"),h=__webpack_require__(760),m=__webpack_require__.n(h);m().SEC_MS=1e3,m().MIN_MS=60*m().SEC_MS,m().HOUR_MS=60*m().MIN_MS,m().DAY_MS=24*m().HOUR_MS,m().YEAR_MS=365*m().DAY_MS,m().now=Date.now,m().timer=function(){var e=t()(o().mark((function e(r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout(e,r)})));case 1:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}();var E=m(),v=__webpack_require__(162),y=__webpack_require__.n(v),w=__webpack_require__(111),O=__webpack_require__.n(w),g=function(){function e(){y()(this,e),this.listeners=[]}return O()(e,[{key:"hasListeners",get:function(){return!!this.listeners.length}},{key:"addListener",value:function(e){var r=this;return this.listeners.includes(e)||this.listeners.push(e),function(){return r.removeListener(e)}}},{key:"emit",value:function(){for(var e=this.listeners,r=0;r<e.length;++r)e[r].apply(e,arguments)}},{key:"removeListener",value:function(e){var r=this.listeners.indexOf(e);r>=0&&this.listeners.splice(r,1)}}]),e}();a().COMPOSE=i.COMPOSE,a().PRIORITY=i.PRIORITY;var P=null;if(l&&"production"!==(process.env.NODE_CONFIG_ENV||"production")){var j=f.requireWeak("path");P=f.requireWeak(j.resolve("/","./jest"))}function k(){var e,r=new Promise((function(r){e=r}));return r.resolve=e,r}function x(e){return T.apply(this,arguments)}function T(){return T=t()(o().mark((function e(r){var t,n,i,a=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=a.length>1&&void 0!==a[1]?a[1]:5,n=a.length>2&&void 0!==a[2]?a[2]:1e3,i=1;case 3:return e.prev=3,e.next=6,r();case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(3),!(i<t)){e.next=16;break}return e.next=14,E.timer(n);case 14:e.next=17;break;case 16:throw e.t0;case 17:++i,e.next=3;break;case 20:case"end":return e.stop()}}),e,null,[[3,9]])}))),T.apply(this,arguments)}var A=__webpack_require__(300),q=__webpack_require__.n(A),C=__webpack_require__(99),L=__webpack_require__.n(C),N=__webpack_require__(899),D=__webpack_require__(311),M=__webpack_require__.n(D),R=__webpack_require__(128),S=__webpack_require__(189),B=__webpack_require__.n(S),W=__webpack_require__(156),U=__webpack_require__(893),X=["children","className","disabled","enforceA","keepScrollPosition","onClick","onMouseDown","openNewTab","replace","routerLinkType","to"];function K(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function I(e){var r=e.children,t=e.className,n=e.disabled,o=e.enforceA,i=e.keepScrollPosition,a=e.onClick,c=e.onMouseDown,_=e.openNewTab,l=e.replace,u=e.routerLinkType,s=e.to,p=B()(e,X);return n||o||_||s.match(/^(#|(https?|mailto):)/)?(0,U.jsx)("a",{className:(t?t+" ":"")+"zH52sA",disabled:n,href:s,onClick:n?function(e){return e.preventDefault()}:a,onMouseDown:n?function(e){return e.preventDefault()}:c,rel:"noopener noreferrer",target:_?"_blank":"",children:r}):(0,W.createElement)(u,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?K(Object(t),!0).forEach((function(r){M()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):K(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({className:t,disabled:n,onMouseDown:c,replace:l,to:s,onClick:function(e){a&&a(e),i||window.scroll(0,0)}},p),r)}function z(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function Y(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?z(Object(t),!0).forEach((function(r){M()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function G(e){return(0,U.jsx)(I,Y(Y({},e),{},{routerLinkType:R.Link}))}function H(e){var r=e.active,t=e.children,n=e.disabled,o=e.enforceA,i=e.onClick,a=e.onMouseDown,c=e.openNewTab,_=e.replace,l=e.theme,u=e.to,s=l.button;return r&&l.active&&(s+=" ".concat(l.active)),n?(l.disabled&&(s+=" ".concat(l.disabled)),(0,U.jsx)("div",{className:s,children:t})):u?(0,U.jsx)(G,{className:s,enforceA:o,onClick:i,onMouseDown:a,openNewTab:c,replace:_,to:u,children:t}):(0,U.jsx)("div",{className:s,onClick:i,onKeyPress:i,onMouseDown:a,role:"button",tabIndex:0,children:t})}I.defaultProps={children:null,className:null,disabled:!1,enforceA:!1,keepScrollPosition:!1,onClick:null,onMouseDown:null,openNewTab:!1,replace:!1,to:""},I.propTypes={children:L().node,className:L().string,disabled:L().bool,enforceA:L().bool,keepScrollPosition:L().bool,onClick:L().func,onMouseDown:L().func,openNewTab:L().bool,replace:L().bool,routerLinkType:L().elementType.isRequired,to:L().oneOfType([L().object,L().string])};var F=a()("Button",["active","button","disabled"],{button:"E1FNQT",context:"KM0v4f",ad:"_3jm1-Q",hoc:"_0plpDL",active:"MAe9O6",disabled:"Br9IWV"})(H);H.defaultProps={active:!1,children:void 0,disabled:!1,enforceA:!1,onClick:void 0,onMouseDown:void 0,openNewTab:!1,replace:!1,to:void 0},H.propTypes={active:L().bool,children:L().node,disabled:L().bool,enforceA:L().bool,onClick:L().func,onMouseDown:L().func,openNewTab:L().bool,replace:L().bool,theme:F.themeType.isRequired,to:L().oneOfType([L().object,L().string])};var V=F;function Q(e){var r=e.checked,t=e.label,n=e.onChange,o=e.theme;return(0,U.jsxs)("div",{className:o.container,children:[void 0===t?null:(0,U.jsx)("p",{className:o.label,children:t}),(0,U.jsx)("input",{checked:r,className:o.checkbox,onChange:n,type:"checkbox"})]})}var J=a()("Checkbox",["checkbox","container","label"],{checkbox:"A-f8qJ",context:"dNQcC6",ad:"earXxa",hoc:"qAPfQ6",container:"Kr0g3M",label:"_3dML-O"})(Q);Q.propTypes={checked:L().bool,label:L().string,onChange:L().func,theme:J.themeType.isRequired},Q.defaultProps={checked:void 0,label:void 0,onChange:void 0};var Z=J,$=__webpack_require__(386),ee=__webpack_require__.n($);function re(e){ee().hydrate((0,U.jsx)(N.GlobalStateProvider,{initialState:window.ISTATE,children:(0,U.jsx)(R.BrowserRouter,{children:(0,U.jsx)(e,{})})}),document.getElementById("react-view"))}var te,ne=__webpack_require__(673),oe=__webpack_require__.n(ne),ie=["chunkName","getComponentAsync","placeholder"];function ae(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function ce(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ae(Object(t),!0).forEach((function(r){M()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ae(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}try{te=l&&f.requireWeak("".concat("/","/ServerSide"))}catch(e){te=void 0}te||(te=function(e){var r=e.chunkName,t=e.getComponentAsync,n=e.placeholder,o=B()(e,ie),i=(0,W.useRef)({pendingStyles:[],renderInitialized:!1,stylesInitialized:!1}).current,a=p().publicPath;i.stylesInitialized||(i.stylesInitialized=!0,window.CHUNK_GROUPS[r].forEach((function(e){if(e.endsWith(".css")){var t="".concat(a,"/").concat(e),n=document.querySelector('link[href="'.concat(t,'"]'));if(!n){(n=document.createElement("link")).setAttribute("href",t),n.setAttribute("rel","stylesheet");var o=k();n.onload=o.resolve,i.pendingStyles.push(o),document.querySelector("head").appendChild(n)}n.dependants?n.dependants.add(r):n.dependants=new Set([r])}})));var c=(0,N.useAsyncData)("dr_pogodin_react_utils___split_components.".concat(r),t,{maxage:E.YEAR_MS}).data,_=function(){var e=c.default||c;return(0,U.jsx)("div",{"data-chunk-name":r,children:(0,U.jsx)(e,ce({},o))})},l=(0,W.useState)((function(){if(c&&!i.pendingStyles.length)return i.renderInitialized=!0,_();var e=document.querySelector("[data-chunk-name=".concat(r,"]"));if(e)return(0,U.jsx)("div",{dangerouslySetInnerHTML:{__html:e.innerHTML||""},"data-chunk-name":r});var t=n||function(){return null};return(0,U.jsx)("div",{children:(0,U.jsx)(t,{})})})),u=oe()(l,2),s=u[0],d=u[1];return c&&!i.renderInitialized&&(i.renderInitialized=!0,Promise.all(i.pendingStyles).then((function(){i.stylesInitialized&&d(_())}))),(0,W.useEffect)((function(){return function(){i.stylesInitialized=!1,window.CHUNK_GROUPS[r].forEach((function(e){if(e.endsWith(".css")){var t="".concat(a,"/").concat(e),n=document.querySelector('link[href="'.concat(t,'"]'));n.dependants.delete(r),n.dependants.size||document.querySelector("head").removeChild(n)}}))}}),[r,i,a]),s});var _e=te,le=__webpack_require__(467);function ue(e){for(var r=e.filter,t=e.label,n=e.onChange,o=e.options,i=e.theme,a=e.value,c=[(0,U.jsx)("option",{className:i.hiddenOption,children:"‌"},"__reactUtilsHiddenOption")],_=0;_<o.length;++_){var l=o[_];r&&!r(l)||((0,le.isString)(l)&&(l={value:l}),c.push((0,U.jsx)("option",{className:i.option,value:l.value,children:void 0===l.name?l.value:l.name},l.value)))}return(0,U.jsxs)("div",{className:i.container,children:[void 0===t?null:(0,U.jsx)("p",{className:i.label,children:t}),(0,U.jsx)("select",{className:i.select,onChange:n,value:a,children:c}),(0,U.jsx)("div",{className:i.arrow,children:"▼"})]})}var se=a()("Dropdown",["arrow","container","hiddenOption","label","option","select"],{arrow:"-zPK7Y",context:"haRIry",ad:"D4XHG2",hoc:"N3nd34",container:"_9CQpeA",label:"Gv0kyu",hiddenOption:"RdW3yR",select:"JXK1uw"})(ue);ue.propTypes={filter:L().func,label:L().string,onChange:L().func,options:L().arrayOf(L().oneOfType([L().shape({name:L().node,value:L().string.isRequired}),L().string]).isRequired),theme:se.themeType.isRequired,value:L().string},ue.defaultProps={filter:void 0,label:void 0,onChange:void 0,options:[],value:void 0};var pe=se,de=["label","theme"];function fe(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function be(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?fe(Object(t),!0).forEach((function(r){M()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function he(e){var r=e.label,t=e.theme,n=B()(e,de);return(0,U.jsxs)("div",{className:t.container,children:[void 0===r?null:(0,U.jsx)("p",{className:t.label,children:r}),(0,U.jsx)("input",be({className:t.input},n))]})}var me=a()("Input",["container","input","label"],{container:"Cxx397",context:"X5WszA",ad:"_8s7GCr",hoc:"TVlBYc",input:"M07d4s",label:"gfbdq-"})(he);he.propTypes={label:L().string,theme:me.themeType.isRequired},he.defaultProps={label:void 0};var Ee=me;function ve(e){var r=e.children,t=e.leftSidePanelContent,n=e.rightSidePanelContent,o=e.theme;return(0,U.jsxs)("div",{className:o.container,children:[(0,U.jsx)("div",{className:[o.sidePanel,o.leftSidePanel].join(" "),children:t}),(0,U.jsx)("div",{className:o.mainPanel,children:r}),(0,U.jsx)("div",{className:[o.sidePanel,o.rightSidePanel].join(" "),children:n})]})}var ye=a()("PageLayout",["container","leftSidePanel","mainPanel","rightSidePanel","sidePanel"],{container:"T3cuHB",context:"m4mL-M",ad:"m3-mdC",hoc:"J15Z4H",mainPanel:"pPlQO2",sidePanel:"lqNh4h"})(ve);ve.propTypes={children:L().node,leftSidePanelContent:L().node,rightSidePanelContent:L().node,theme:ye.themeType.isRequired},ve.defaultProps={children:null,leftSidePanelContent:null,rightSidePanelContent:null};var we=ye,Oe=__webpack_require__(383),ge=(0,W.createContext)();function Pe(e){var r=e.children,t=e.description,n=e.image,o=e.siteName,i=e.socialDescription,a=e.socialTitle,c=e.title,_=e.url,l=a||c,u=i||t,s=(0,W.useMemo)((function(){return{description:t,image:n,siteName:o,socialDescription:i,socialTitle:a,title:c,url:_}}),[t,n,o,i,a,c,_]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Oe.Helmet,{children:[(0,U.jsx)("title",{children:c}),(0,U.jsx)("meta",{name:"description",content:t}),(0,U.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,U.jsx)("meta",{name:"twitter:title",content:l}),(0,U.jsx)("meta",{name:"twitter:description",content:u}),n?(0,U.jsx)("meta",{name:"twitter:image",content:n}):null,o?(0,U.jsx)("meta",{name:"twitter:site",content:"@".concat(o)}):null,(0,U.jsx)("meta",{name:"og:title",content:l}),n?(0,U.jsx)("meta",{name:"og:image",content:n}):null,n?(0,U.jsx)("meta",{name:"og:image:alt",content:l}):null,(0,U.jsx)("meta",{name:"og:description",content:u}),o?(0,U.jsx)("meta",{name:"og:sitename",content:o}):null,_?(0,U.jsx)("meta",{name:"og:url",content:_}):null]}),r?(0,U.jsx)(ge.Provider,{value:s,children:r}):null]})}function je(e){var r=e.children,t=e.onCancel,n=e.theme,o=(0,W.useRef)(),i=(0,W.useRef)(),a=(0,W.useState)(),c=oe()(a,2),_=c[0],l=c[1];(0,W.useEffect)((function(){var e=document.createElement("div");return document.body.classList.add("scrolling-disabled-by-modal"),document.body.appendChild(e),l(e),function(){document.body.classList.remove("scrolling-disabled-by-modal"),document.body.removeChild(e)}}),[]);var u=(0,W.useMemo)((function(){return(0,U.jsx)("div",{onFocus:function(){for(var e=o.current.querySelectorAll("*"),r=e.length-1;r>=0;--r)if(e[r].focus(),document.activeElement===e[r])return;i.current.focus()},tabIndex:"0"})}),[]);return _?ee().createPortal((0,U.jsxs)(U.Fragment,{children:[u,(0,U.jsx)("div",{"aria-label":"Cancel",className:n.overlay,onClick:function(){return t()},onKeyDown:function(e){"Escape"===e.key&&t()},ref:function(e){e&&e!==i.current&&(i.current=e,e.focus())},role:"button",tabIndex:"0"}),(0,U.jsx)("div",{"aria-modal":"true",className:n.container,onWheel:function(e){return e.stopPropagation()},ref:o,role:"dialog",children:r}),(0,U.jsx)("div",{onFocus:function(){i.current.focus()},tabIndex:"0"}),u]}),_):null}Pe.Context=ge,Pe.defaultProps={children:null,image:null,siteName:null,socialDescription:null,socialTitle:null,url:null},Pe.propTypes={children:L().node,description:L().string.isRequired,image:L().string,siteName:L().string,socialDescription:L().string,socialTitle:L().string,title:L().string.isRequired,url:L().string};var ke=a()("Modal",["container","overlay"],{overlay:"ye2BZo",context:"Szmbbz",ad:"Ah-Nsc",hoc:"Wki41G",container:"gyZ4rc"})(je);je.propTypes={onCancel:L().func,children:L().node,theme:ke.themeType.isRequired},je.defaultProps={onCancel:le.noop,children:null};var xe=ke;function Te(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function Ae(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Te(Object(t),!0).forEach((function(r){M()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Te(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function qe(e){return(0,U.jsx)(I,Ae(Ae({},e),{},{routerLinkType:R.NavLink}))}function Ce(e){var r=e.children,t=e.className,n=e.ratio.split(":"),o="".concat(100*n[1]/n[0],"%"),i=(0,U.jsx)("div",{style:{paddingBottom:o},className:"EznFz3",children:(0,U.jsx)("div",{className:"_0vb7tq",children:r})});return t?(0,U.jsx)("div",{className:t,children:i}):i}function Le(e){var r=e.theme;return(0,U.jsxs)("div",{className:(r.container?r.container+" ":"")+"_7zdld4",children:[(0,U.jsx)("div",{className:(r.circle?r.circle+" ":"")+"dBrB4g"}),(0,U.jsx)("div",{className:(r.circle?r.circle+" ":"")+"dBrB4g"}),(0,U.jsx)("div",{className:(r.circle?r.circle+" ":"")+"dBrB4g"})]})}Ce.defaultProps={children:null,className:null,ratio:"1:1"},Ce.propTypes={children:L().node,className:L().string,ratio:L().string},Le.defaultProps={theme:{}},Le.propTypes={theme:L().shape({container:L().string,circle:L().string})};var Ne=a()("Throbber",["circle","container"],{container:"_7zdld4",context:"uIObt7",ad:"XIxe9o",hoc:"YOyORH",circle:"dBrB4g",bouncing:"TJe-6j"})(Le),De={ABOVE_CURSOR:"ABOVE_CURSOR",ABOVE_ELEMENT:"ABOVE_ELEMENT",BELOW_CURSOR:"BELOW_CURSOR",BELOW_ELEMENT:"BELOW_ELEMENT"},Me=["border-bottom-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";"),Re=["border-top-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";");var Se=(0,W.forwardRef)((function(e,r){var t=e.children,n=e.theme,o=(0,W.useState)(null),i=oe()(o,2),a=i[0],c=i[1],_=function(e,r,t,n){return a&&function(e,r,t,n,o){var i,a,c,_,l,u=function(e){return{arrow:e.arrow.getBoundingClientRect(),container:e.container.getBoundingClientRect()}}(o),s=(a=(i=window).pageXOffset,c=i.pageYOffset,l=(_=document.documentElement).clientHeight,{left:a,right:a+_.clientWidth,top:c,bottom:c+l}),p=function(e,r,t){var n=t.arrow,o=t.container;return{arrowX:.5*(o.width-n.width),arrowY:o.height,containerX:e-o.width/2,containerY:r-o.height-n.height/1.5,baseArrowStyle:Me}}(e,r,u);if(p.containerX<s.left+6)p.containerX=s.left+6,p.arrowX=Math.max(6,e-p.containerX-u.arrow.width/2);else{var d=s.right-6-u.container.width;p.containerX>d&&(p.containerX=d,p.arrowX=Math.min(u.container.width-6,e-p.containerX-u.arrow.width/2))}p.containerY<s.top+6&&(p.containerY+=u.container.height+2*u.arrow.height,p.arrowY-=u.container.height+u.arrow.height,p.baseArrowStyle=Re);var f="left:".concat(p.containerX,"px;top:").concat(p.containerY,"px");o.container.setAttribute("style",f);var b="".concat(p.baseArrowStyle,";left:").concat(p.arrowX,"px;top:").concat(p.arrowY,"px");o.arrow.setAttribute("style",b)}(e,r,0,0,a)};return(0,W.useImperativeHandle)(r,(function(){return{pointTo:_}})),(0,W.useEffect)((function(){var e=function(e){var r=document.createElement("div");e.arrow&&r.setAttribute("class",e.arrow);var t=document.createElement("div");e.content&&t.setAttribute("class",e.content);var n=document.createElement("div");return e.container&&n.setAttribute("class",e.container),n.appendChild(r),n.appendChild(t),document.body.appendChild(n),{container:n,arrow:r,content:t}}(n);return c(e),function(){document.body.removeChild(e.container),c(null)}}),[n]),a?(0,$.createPortal)(t,a.content):null}));Se.propTypes={children:L().node,theme:L().shape().isRequired},Se.defaultProps={children:null};var Be=Se;function We(e){var r=e.children,t=e.placement,n=e.tip,o=e.theme,i=(0,W.useRef)(),a=(0,W.useRef)(),c=(0,W.useState)(!1),_=oe()(c,2),l=_[0],u=_[1];return(0,W.useEffect)((function(){if(l&&null!==n){var e=function(){return u(!1)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}}),[l,n]),(0,U.jsxs)("div",{className:o.wrapper,onMouseLeave:function(){return u(!1)},onMouseMove:function(e){return function(e,r){if(l){var n=a.current.getBoundingClientRect();e<n.left||e>n.right||r<n.top||r>n.bottom?u(!1):i.current&&i.current.pointTo(e+window.pageXOffset,r+window.pageYOffset,t,a.current)}else u(!0)}(e.clientX,e.clientY)},ref:a,children:[l&&null!==n?(0,U.jsx)(Be,{ref:i,theme:o,children:n}):null,r]})}var Ue=a()("WithTooltip",["appearance","arrow","container","content","wrapper"],{arrow:"M9gywF",ad:"_4xT7zE",hoc:"zd-vnH",context:"GdZucr",container:"f9gY8K",appearance:"L4ubm-",wrapper:"_4qDBRM"})(We);Ue.PLACEMENTS=De,We.propTypes={children:L().node,placement:L().oneOf(Object.values(De)),theme:Ue.themeType.isRequired,tip:L().node},We.defaultProps={children:null,placement:De.ABOVE_CURSOR,tip:null};var Xe=Ue,Ke=__webpack_require__(656),Ie=__webpack_require__.n(Ke),ze={container:"jTxmOX",context:"dzIcLh",ad:"_5a9XX1",hoc:"_7sH52O"};function Ye(e){var r=e.autoplay,t=e.src,n=e.theme,o=e.title,i=t.split("?"),a=oe()(i,2),c=a[0],_=a[1],l=(_=_?Ie().parse(_):{}).v||c.match(/\/([a-zA-Z0-9-_]*)$/)[1];return c="https://www.youtube.com/embed/".concat(l),delete _.v,_.autoplay=r?1:0,c+="?".concat(Ie().stringify(_)),(0,U.jsxs)(Ce,{className:n.container,ratio:"16:9",children:[(0,U.jsx)(Ne,{theme:ze}),(0,U.jsx)("iframe",{allow:"autoplay",allowFullScreen:!0,className:n.video,src:c,title:o})]})}var Ge=a()("YouTubeVideo",["container","video"],{container:"sXHM81",context:"veKyYi",ad:"r3ABzd",hoc:"YKcPnR",video:"SlV2zw"})(Ye);Ye.propTypes={autoplay:L().bool,src:L().string.isRequired,theme:Ge.themeType.isRequired,title:L().string},Ye.defaultProps={autoplay:!1,title:""};var He=Ge,Fe=null;if(l)try{var Ve=f.requireWeak("path");Fe=f.requireWeak(Ve.resolve("/","./server"))}catch(e){Fe=null}}(),__webpack_exports__}()}));
3
3
  //# sourceMappingURL=web.bundle.js.map
@@ -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,QAA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D,MAAOqE,GACPqM,GAAS","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/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/client/index.jsx","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/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 * 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};","/* global window */\n\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 * `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 * 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 * 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 * 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 * 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","/* 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) => {\n setTimeout(resolve, timeout);\n });\n};\n\nexport default dayjs;\n","import 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 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 webpack,\n};\n","/* global window */\n\nimport PT from 'prop-types';\nimport { createElement } from 'react';\n\nimport './style.scss';\n\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 * @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 * 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 * Implements themeable buttons, and button-line links (elements which look\n * like buttons, but behave as links) in the same uniform manner.\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 */\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\":\"E1FNQT\",\"context\":\"KM0v4f\",\"ad\":\"_3jm1-Q\",\"hoc\":\"_0plpDL\",\"active\":\"MAe9O6\",\"disabled\":\"Br9IWV\"};","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 * 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 * 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\":\"A-f8qJ\",\"context\":\"dNQcC6\",\"ad\":\"earXxa\",\"hoc\":\"qAPfQ6\",\"container\":\"Kr0g3M\",\"label\":\"_3dML-O\"};","// 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 * 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 (\n <GlobalStateProvider initialState={window.ISTATE}>\n <BrowserRouter>\n <Application />\n </BrowserRouter>\n </GlobalStateProvider>\n ), document.getElementById('react-view'),\n );\n}\n","import { isomorphy, webpack } from 'utils';\n\nimport ClientSide from './ClientSide';\n\nlet Component; // eslint-disable-line import/no-mutable-exports\n\ntry {\n Component = isomorphy.IS_SERVER_SIDE\n && webpack.requireWeak(`${__dirname}/ServerSide`);\n} catch (error) {\n Component = undefined;\n}\n\nif (!Component) Component = ClientSide;\n\nexport default Component;\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","import { isString } from 'lodash';\nimport PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport defaultTheme from './theme.scss';\n\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\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\":\"-zPK7Y\",\"context\":\"haRIry\",\"ad\":\"D4XHG2\",\"hoc\":\"N3nd34\",\"container\":\"_9CQpeA\",\"label\":\"Gv0kyu\",\"hiddenOption\":\"RdW3yR\",\"select\":\"JXK1uw\"};","import PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport defaultTheme from './theme.scss';\n\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\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\":\"Cxx397\",\"context\":\"X5WszA\",\"ad\":\"_8s7GCr\",\"hoc\":\"TVlBYc\",\"input\":\"M07d4s\",\"label\":\"gfbdq-\"};","import PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport baseTheme from './base-theme.scss';\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\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\":\"T3cuHB\",\"context\":\"m4mL-M\",\"ad\":\"m3-mdC\",\"hoc\":\"J15Z4H\",\"mainPanel\":\"pPlQO2\",\"sidePanel\":\"lqNh4h\"};","import PT from 'prop-types';\nimport { createContext, useMemo } from 'react';\nimport { Helmet } from 'react-helmet';\n\nconst Context = createContext();\n\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 */\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\n const context = useMemo(() => ({\n description,\n image,\n siteName,\n socialDescription,\n socialTitle,\n title,\n url,\n }), [\n description,\n image,\n siteName,\n socialDescription,\n socialTitle,\n title,\n url,\n ]);\n\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 value={context}>\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 * 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 */\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\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\":\"ye2BZo\",\"context\":\"Szmbbz\",\"ad\":\"Ah-Nsc\",\"hoc\":\"Wki41G\",\"container\":\"gyZ4rc\"};","import { NavLink as RrNavLink } from 'react-router-dom';\n\nimport GenericLink from './GenericLink';\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 * 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 * 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\nexport default themed('Throbber', [\n 'circle',\n 'container',\n], defaultTheme)(Throbber);\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"_7zdld4\",\"context\":\"uIObt7\",\"ad\":\"XIxe9o\",\"hoc\":\"YOyORH\",\"circle\":\"dBrB4g\",\"bouncing\":\"TJe-6j\"};","/**\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 * 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\":\"M9gywF\",\"ad\":\"_4xT7zE\",\"hoc\":\"zd-vnH\",\"context\":\"GdZucr\",\"container\":\"f9gY8K\",\"appearance\":\"L4ubm-\",\"wrapper\":\"_4qDBRM\"};","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"jTxmOX\",\"context\":\"dzIcLh\",\"ad\":\"_5a9XX1\",\"hoc\":\"_7sH52O\"};","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 * 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\":\"sXHM81\",\"context\":\"veKyYi\",\"ad\":\"r3ABzd\",\"hoc\":\"YKcPnR\",\"video\":\"SlV2zw\"};","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 try {\n const path = webpack.requireWeak('path');\n server = webpack.requireWeak(path.resolve(__dirname, './server'));\n } catch (error) {\n server = null;\n }\n}\n\nexport { default as api } from 'axios';\nexport * as PT from 'prop-types';\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","themed","COMPOSE","PRIORITY","JU","isomorphy","env","NODE_CONFIG_ENV","path","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","Launch","Application","ReactDom","GlobalStateProvider","initialState","ISTATE","BrowserRouter","document","getElementById","Component","error","chunkName","getComponentAsync","placeholder","heap","useRef","pendingStyles","renderInitialized","stylesInitialized","publicPath","CHUNK_GROUPS","asset","endsWith","link","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","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","context","useMemo","Helmet","content","Provider","BaseModal","onCancel","containerRef","overlayRef","portal","setPortal","body","classList","remove","focusLast","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":";C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,WCuB7E,SAASkB,GAAT,GAKG,IAJDC,EAIC,EAJDA,SACAC,EAGC,EAHDA,IACApN,EAEC,EAFDA,MACAmG,EACC,EADDA,MAEA,EAAmBiH,EAAIzV,MAAM,KAA7B,YAAKyO,EAAL,KAAUiH,EAAV,KAGMC,GAFND,EAAQA,EAAQE,KAAAA,MAASF,GAAS,IAEZG,GAAKpH,EAAI9G,MAAM,uBAAuB,GAU5D,OATA8G,EAAM,iCAAH,OAAoCkH,UAEhCD,EAAMG,EACbH,EAAMF,SAAWA,EAAW,EAAI,EAChC/G,GAAO,IAAJ,OAAQmH,KAAAA,UAAaF,KAMtB,UAACjF,GAAD,CAAcxJ,UAAWoB,EAAMc,UAAWwH,MAAM,OAAhD,WACE,SAAC,GAAD,CAAUtI,MAAOyN,MACjB,mBACEC,MAAM,WACNC,iBAAe,EACf/O,UAAWoB,EAAM4N,MACjBR,IAAKhH,EACLD,MAAOA,OAMf,IAAM0H,GAAqBrQ,GAAAA,CACzB,eACA,CACE,YACA,SC5DJ,CAAgB,UAAY,SAAS,QAAU,SAAS,GAAK,SAAS,IAAM,SAAS,MAAQ,UDwDlEA,CAOzB0P,IAEFA,GAAa7M,UAAY,CACvB8M,SAAU7M,IAAAA,KACV8M,IAAK9M,IAAAA,OAAAA,WACLN,MAAO6N,GAAmBrN,UAAUC,WACpC0F,MAAO7F,IAAAA,QAGT4M,GAAapT,aAAe,CAC1BqT,UAAU,EACVhH,MAAO,IAGT,UE1EI2H,GAAS,KACb,GAAIlQ,EACF,IACE,IAAMG,GAAOC,EAAQrI,YAAY,QACjCmY,GAAS9P,EAAQrI,YAAYoI,GAAKlB,YAAmB,aACrD,MAAO8E,GACPmM,GAAS","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/classCallCheck\"","webpack://@dr.pogodin/react-utils/external umd \"@babel/runtime/helpers/createClass\"","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/Emitter.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/client/index.jsx","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/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/classCallCheck\"), require(\"@babel/runtime/helpers/createClass\"), 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/classCallCheck\", \"@babel/runtime/helpers/createClass\", \"@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/classCallCheck\"), require(\"@babel/runtime/helpers/createClass\"), 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/classCallCheck\"], root[\"@babel/runtime/helpers/createClass\"], 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__162__, __WEBPACK_EXTERNAL_MODULE__111__, __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__386__, __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 * 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__162__;","module.exports = __WEBPACK_EXTERNAL_MODULE__111__;","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__386__;","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};","/* global window */\n\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 * `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 * 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 * 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 * 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 * 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","/* 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) => {\n setTimeout(resolve, timeout);\n });\n};\n\nexport default dayjs;\n","/**\n * Simple listeneable data Emitter.\n */\nexport default class Emitter {\n /**\n * Creates a new Emitter.\n */\n constructor() {\n this.listeners = [];\n }\n\n /**\n * Returns \"true\" if any listener is connected; \"false\" otherwise.\n * @return {boolean}\n */\n get hasListeners() {\n return !!this.listeners.length;\n }\n\n /**\n * Adds `listener` if it is not already connected.\n * @param {function} listener\n * @return {function} Unsubscribe function.\n */\n addListener(listener) {\n if (!this.listeners.includes(listener)) {\n this.listeners.push(listener);\n }\n return () => this.removeListener(listener);\n }\n\n /**\n * Calls every connected listener with the given arguments.\n * @param {...any} args\n */\n emit(...args) {\n const { listeners } = this;\n for (let i = 0; i < listeners.length; ++i) {\n listeners[i](...args);\n }\n }\n\n /**\n * Removes specified `listener`, if connected.\n * @param {function} listener\n */\n removeListener(listener) {\n const idx = this.listeners.indexOf(listener);\n if (idx >= 0) this.listeners.splice(idx, 1);\n }\n}\n","import 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 webpack from './webpack';\n\nexport { default as Emitter } from './Emitter';\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 webpack,\n};\n","/* global window */\n\nimport PT from 'prop-types';\nimport { createElement } from 'react';\n\nimport './style.scss';\n\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 * @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 * 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 * Implements themeable buttons, and button-line links (elements which look\n * like buttons, but behave as links) in the same uniform manner.\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 */\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\":\"E1FNQT\",\"context\":\"KM0v4f\",\"ad\":\"_3jm1-Q\",\"hoc\":\"_0plpDL\",\"active\":\"MAe9O6\",\"disabled\":\"Br9IWV\"};","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 * 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 * 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\":\"A-f8qJ\",\"context\":\"dNQcC6\",\"ad\":\"earXxa\",\"hoc\":\"qAPfQ6\",\"container\":\"Kr0g3M\",\"label\":\"_3dML-O\"};","// 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 * 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 (\n <GlobalStateProvider initialState={window.ISTATE}>\n <BrowserRouter>\n <Application />\n </BrowserRouter>\n </GlobalStateProvider>\n ), document.getElementById('react-view'),\n );\n}\n","import { isomorphy, webpack } from 'utils';\n\nimport ClientSide from './ClientSide';\n\nlet Component; // eslint-disable-line import/no-mutable-exports\n\ntry {\n Component = isomorphy.IS_SERVER_SIDE\n && webpack.requireWeak(`${__dirname}/ServerSide`);\n} catch (error) {\n Component = undefined;\n}\n\nif (!Component) Component = ClientSide;\n\nexport default Component;\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","import { isString } from 'lodash';\nimport PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport defaultTheme from './theme.scss';\n\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\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\":\"-zPK7Y\",\"context\":\"haRIry\",\"ad\":\"D4XHG2\",\"hoc\":\"N3nd34\",\"container\":\"_9CQpeA\",\"label\":\"Gv0kyu\",\"hiddenOption\":\"RdW3yR\",\"select\":\"JXK1uw\"};","import PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport defaultTheme from './theme.scss';\n\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\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\":\"Cxx397\",\"context\":\"X5WszA\",\"ad\":\"_8s7GCr\",\"hoc\":\"TVlBYc\",\"input\":\"M07d4s\",\"label\":\"gfbdq-\"};","import PT from 'prop-types';\n\nimport { themed } from 'utils';\n\nimport baseTheme from './base-theme.scss';\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\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\":\"T3cuHB\",\"context\":\"m4mL-M\",\"ad\":\"m3-mdC\",\"hoc\":\"J15Z4H\",\"mainPanel\":\"pPlQO2\",\"sidePanel\":\"lqNh4h\"};","import PT from 'prop-types';\nimport { createContext, useMemo } from 'react';\nimport { Helmet } from 'react-helmet';\n\nconst Context = createContext();\n\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 */\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\n const context = useMemo(() => ({\n description,\n image,\n siteName,\n socialDescription,\n socialTitle,\n title,\n url,\n }), [\n description,\n image,\n siteName,\n socialDescription,\n socialTitle,\n title,\n url,\n ]);\n\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 value={context}>\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 * 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 */\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\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\":\"ye2BZo\",\"context\":\"Szmbbz\",\"ad\":\"Ah-Nsc\",\"hoc\":\"Wki41G\",\"container\":\"gyZ4rc\"};","import { NavLink as RrNavLink } from 'react-router-dom';\n\nimport GenericLink from './GenericLink';\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 * 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 * 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\nexport default themed('Throbber', [\n 'circle',\n 'container',\n], defaultTheme)(Throbber);\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"_7zdld4\",\"context\":\"uIObt7\",\"ad\":\"XIxe9o\",\"hoc\":\"YOyORH\",\"circle\":\"dBrB4g\",\"bouncing\":\"TJe-6j\"};","/**\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 * 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\":\"M9gywF\",\"ad\":\"_4xT7zE\",\"hoc\":\"zd-vnH\",\"context\":\"GdZucr\",\"container\":\"f9gY8K\",\"appearance\":\"L4ubm-\",\"wrapper\":\"_4qDBRM\"};","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"jTxmOX\",\"context\":\"dzIcLh\",\"ad\":\"_5a9XX1\",\"hoc\":\"_7sH52O\"};","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 * 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\":\"sXHM81\",\"context\":\"veKyYi\",\"ad\":\"r3ABzd\",\"hoc\":\"YKcPnR\",\"video\":\"SlV2zw\"};","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 try {\n const path = webpack.requireWeak('path');\n server = webpack.requireWeak(path.resolve(__dirname, './server'));\n } catch (error) {\n server = null;\n }\n}\n\nexport { default as api } from 'axios';\nexport * as PT from 'prop-types';\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__162__","__WEBPACK_EXTERNAL_MODULE__111__","__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__386__","__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","Emitter","listeners","listener","includes","push","removeListener","idx","indexOf","splice","themed","COMPOSE","PRIORITY","JU","isomorphy","env","NODE_CONFIG_ENV","path","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","Launch","Application","ReactDom","GlobalStateProvider","initialState","ISTATE","BrowserRouter","document","getElementById","Component","error","chunkName","getComponentAsync","placeholder","heap","useRef","pendingStyles","renderInitialized","stylesInitialized","publicPath","CHUNK_GROUPS","asset","endsWith","link","querySelector","setAttribute","barrier","onload","appendChild","dependants","add","Set","data","useAsyncData","maxage","YEAR_MS","createRender","Scene","useState","dangerouslySetInnerHTML","__html","innerHTML","render","setRender","all","then","useEffect","item","delete","size","removeChild","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","context","useMemo","Helmet","content","Provider","BaseModal","onCancel","containerRef","overlayRef","portal","setPortal","body","classList","remove","focusLast","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","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":""}
package/package.json CHANGED
@@ -18,20 +18,20 @@
18
18
  "cookie-parser": "^1.4.6",
19
19
  "cross-env": "^7.0.3",
20
20
  "dayjs": "^1.10.7",
21
- "express": "^4.17.1",
21
+ "express": "^4.17.2",
22
22
  "helmet": "^4.6.0",
23
23
  "http-status-codes": "^2.1.4",
24
24
  "joi": "^17.5.0",
25
25
  "lodash": "^4.17.21",
26
26
  "morgan": "^1.10.0",
27
27
  "node-forge": "^0.10.0",
28
- "prop-types": "^15.7.2",
28
+ "prop-types": "^15.8.0",
29
29
  "qs": "^6.10.1",
30
30
  "raf": "^3.4.1",
31
31
  "react": "^17.0.2",
32
32
  "react-dom": "^17.0.2",
33
33
  "react-helmet": "^6.1.0",
34
- "react-router-dom": "^6.1.1",
34
+ "react-router-dom": "^6.2.1",
35
35
  "request-ip": "^2.1.3",
36
36
  "rimraf": "^3.0.2",
37
37
  "serialize-javascript": "^6.0.0",
@@ -56,21 +56,21 @@
56
56
  "@dr.pogodin/babel-plugin-css-modules-transform": "^1.10.0",
57
57
  "@dr.pogodin/babel-plugin-transform-assets": "^1.1.1",
58
58
  "@dr.pogodin/babel-preset-svgr": "^1.4.0",
59
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
59
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
60
60
  "autoprefixer": "^10.4.0",
61
61
  "babel-jest": "^27.4.5",
62
62
  "babel-loader": "^8.2.3",
63
63
  "babel-plugin-module-resolver": "^4.1.0",
64
- "core-js": "^3.19.3",
64
+ "core-js": "^3.20.1",
65
65
  "css-loader": "^6.5.1",
66
- "css-minimizer-webpack-plugin": "^3.2.0",
67
- "eslint": "^8.4.1",
66
+ "css-minimizer-webpack-plugin": "^3.3.1",
67
+ "eslint": "^8.5.0",
68
68
  "eslint-config-airbnb": "^19.0.2",
69
69
  "eslint-import-resolver-babel-module": "^5.3.1",
70
70
  "eslint-plugin-import": "^2.25.3",
71
71
  "eslint-plugin-jest": "^25.3.0",
72
72
  "eslint-plugin-jsx-a11y": "^6.5.1",
73
- "eslint-plugin-react": "^7.27.1",
73
+ "eslint-plugin-react": "^7.28.0",
74
74
  "eslint-plugin-react-hooks": "^4.3.0",
75
75
  "identity-obj-proxy": "^3.0.0",
76
76
  "jest": "^27.4.5",
@@ -85,14 +85,14 @@
85
85
  "react-test-renderer": "^17.0.2",
86
86
  "regenerator-runtime": "^0.13.9",
87
87
  "resolve-url-loader": "^4.0.0",
88
- "sass": "^1.45.0",
88
+ "sass": "^1.45.1",
89
89
  "sass-loader": "^12.4.0",
90
90
  "sitemap": "^7.0.0",
91
- "stylelint": "^14.1.0",
91
+ "stylelint": "^14.2.0",
92
92
  "stylelint-config-standard-scss": "^3.0.0",
93
93
  "supertest": "^6.1.6",
94
94
  "webpack": "^5.65.0",
95
- "webpack-dev-middleware": "^5.2.2",
95
+ "webpack-dev-middleware": "^5.3.0",
96
96
  "webpack-hot-middleware": "^2.25.1",
97
97
  "webpack-merge": "^5.8.0",
98
98
  "workbox-core": "^6.4.2",
@@ -131,5 +131,5 @@
131
131
  "lint:scss": "stylelint -- **/*.{css,scss}",
132
132
  "test": "npm run lint && npm run jest"
133
133
  },
134
- "version": "1.12.4"
134
+ "version": "1.12.5"
135
135
  }