@mmb-digital/ds-lilly 0.10.13 → 0.10.15

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,2966 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("react"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["react"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["${FILENAME}"] = factory(require("react"));
8
+ else
9
+ root["${FILENAME}"] = factory(root["React"]);
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__0__) {
11
+ return /******/ (function(modules) { // webpackBootstrap
12
+ /******/ // The module cache
13
+ /******/ var installedModules = {};
14
+ /******/
15
+ /******/ // The require function
16
+ /******/ function __webpack_require__(moduleId) {
17
+ /******/
18
+ /******/ // Check if module is in cache
19
+ /******/ if(installedModules[moduleId]) {
20
+ /******/ return installedModules[moduleId].exports;
21
+ /******/ }
22
+ /******/ // Create a new module (and put it into the cache)
23
+ /******/ var module = installedModules[moduleId] = {
24
+ /******/ i: moduleId,
25
+ /******/ l: false,
26
+ /******/ exports: {}
27
+ /******/ };
28
+ /******/
29
+ /******/ // Execute the module function
30
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
+ /******/
32
+ /******/ // Flag the module as loaded
33
+ /******/ module.l = true;
34
+ /******/
35
+ /******/ // Return the exports of the module
36
+ /******/ return module.exports;
37
+ /******/ }
38
+ /******/
39
+ /******/
40
+ /******/ // expose the modules object (__webpack_modules__)
41
+ /******/ __webpack_require__.m = modules;
42
+ /******/
43
+ /******/ // expose the module cache
44
+ /******/ __webpack_require__.c = installedModules;
45
+ /******/
46
+ /******/ // define getter function for harmony exports
47
+ /******/ __webpack_require__.d = function(exports, name, getter) {
48
+ /******/ if(!__webpack_require__.o(exports, name)) {
49
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
+ /******/ }
51
+ /******/ };
52
+ /******/
53
+ /******/ // define __esModule on exports
54
+ /******/ __webpack_require__.r = function(exports) {
55
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
+ /******/ }
58
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
59
+ /******/ };
60
+ /******/
61
+ /******/ // create a fake namespace object
62
+ /******/ // mode & 1: value is a module id, require it
63
+ /******/ // mode & 2: merge all properties of value into the ns
64
+ /******/ // mode & 4: return value when already ns object
65
+ /******/ // mode & 8|1: behave like require
66
+ /******/ __webpack_require__.t = function(value, mode) {
67
+ /******/ if(mode & 1) value = __webpack_require__(value);
68
+ /******/ if(mode & 8) return value;
69
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
+ /******/ var ns = Object.create(null);
71
+ /******/ __webpack_require__.r(ns);
72
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74
+ /******/ return ns;
75
+ /******/ };
76
+ /******/
77
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
78
+ /******/ __webpack_require__.n = function(module) {
79
+ /******/ var getter = module && module.__esModule ?
80
+ /******/ function getDefault() { return module['default']; } :
81
+ /******/ function getModuleExports() { return module; };
82
+ /******/ __webpack_require__.d(getter, 'a', getter);
83
+ /******/ return getter;
84
+ /******/ };
85
+ /******/
86
+ /******/ // Object.prototype.hasOwnProperty.call
87
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
+ /******/
89
+ /******/ // __webpack_public_path__
90
+ /******/ __webpack_require__.p = "";
91
+ /******/
92
+ /******/
93
+ /******/ // Load entry module and return exports
94
+ /******/ return __webpack_require__(__webpack_require__.s = 511);
95
+ /******/ })
96
+ /************************************************************************/
97
+ /******/ ({
98
+
99
+ /***/ 0:
100
+ /***/ (function(module, exports) {
101
+
102
+ module.exports = __WEBPACK_EXTERNAL_MODULE__0__;
103
+
104
+ /***/ }),
105
+
106
+ /***/ 10:
107
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
108
+
109
+ "use strict";
110
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _curry1; });
111
+ /* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
112
+
113
+ /**
114
+ * Optimized internal one-arity curry function.
115
+ *
116
+ * @private
117
+ * @category Function
118
+ * @param {Function} fn The function to curry.
119
+ * @return {Function} The curried function.
120
+ */
121
+
122
+ function _curry1(fn) {
123
+ return function f1(a) {
124
+ if (arguments.length === 0 || Object(_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(a)) {
125
+ return f1;
126
+ } else {
127
+ return fn.apply(this, arguments);
128
+ }
129
+ };
130
+ }
131
+
132
+ /***/ }),
133
+
134
+ /***/ 15:
135
+ /***/ (function(module, exports, __webpack_require__) {
136
+
137
+ // extracted by mini-css-extract-plugin
138
+
139
+ /***/ }),
140
+
141
+ /***/ 16:
142
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
143
+
144
+ "use strict";
145
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _isPlaceholder; });
146
+ function _isPlaceholder(a) {
147
+ return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
148
+ }
149
+
150
+ /***/ }),
151
+
152
+ /***/ 27:
153
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
154
+
155
+ "use strict";
156
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
157
+ function _objectWithoutPropertiesLoose(source, excluded) {
158
+ if (source == null) return {};
159
+ var target = {};
160
+ var sourceKeys = Object.keys(source);
161
+ var key, i;
162
+
163
+ for (i = 0; i < sourceKeys.length; i++) {
164
+ key = sourceKeys[i];
165
+ if (excluded.indexOf(key) >= 0) continue;
166
+ target[key] = source[key];
167
+ }
168
+
169
+ return target;
170
+ }
171
+
172
+ /***/ }),
173
+
174
+ /***/ 3:
175
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
176
+
177
+ "use strict";
178
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cx; });
179
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
180
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
181
+ /* harmony import */ var _scss_styles_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15);
182
+ /* harmony import */ var _scss_styles_scss__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_scss_styles_scss__WEBPACK_IMPORTED_MODULE_1__);
183
+
184
+
185
+ var cx = classnames__WEBPACK_IMPORTED_MODULE_0___default.a.bind(_scss_styles_scss__WEBPACK_IMPORTED_MODULE_1___default.a);
186
+
187
+
188
+ /***/ }),
189
+
190
+ /***/ 386:
191
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
192
+
193
+ "use strict";
194
+
195
+ // EXPORTS
196
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ usePopperTooltip; });
197
+
198
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
199
+ var objectWithoutPropertiesLoose = __webpack_require__(27);
200
+
201
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
202
+ var esm_extends = __webpack_require__(9);
203
+
204
+ // EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","umd":"react"}
205
+ var external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_ = __webpack_require__(0);
206
+
207
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
208
+ function getBoundingClientRect(element) {
209
+ var rect = element.getBoundingClientRect();
210
+ return {
211
+ width: rect.width,
212
+ height: rect.height,
213
+ top: rect.top,
214
+ right: rect.right,
215
+ bottom: rect.bottom,
216
+ left: rect.left,
217
+ x: rect.left,
218
+ y: rect.top
219
+ };
220
+ }
221
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js
222
+ function getWindow(node) {
223
+ if (node == null) {
224
+ return window;
225
+ }
226
+
227
+ if (node.toString() !== '[object Window]') {
228
+ var ownerDocument = node.ownerDocument;
229
+ return ownerDocument ? ownerDocument.defaultView || window : window;
230
+ }
231
+
232
+ return node;
233
+ }
234
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js
235
+
236
+ function getWindowScroll(node) {
237
+ var win = getWindow(node);
238
+ var scrollLeft = win.pageXOffset;
239
+ var scrollTop = win.pageYOffset;
240
+ return {
241
+ scrollLeft: scrollLeft,
242
+ scrollTop: scrollTop
243
+ };
244
+ }
245
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
246
+
247
+
248
+ function isElement(node) {
249
+ var OwnElement = getWindow(node).Element;
250
+ return node instanceof OwnElement || node instanceof Element;
251
+ }
252
+
253
+ function isHTMLElement(node) {
254
+ var OwnElement = getWindow(node).HTMLElement;
255
+ return node instanceof OwnElement || node instanceof HTMLElement;
256
+ }
257
+
258
+ function isShadowRoot(node) {
259
+ // IE 11 has no ShadowRoot
260
+ if (typeof ShadowRoot === 'undefined') {
261
+ return false;
262
+ }
263
+
264
+ var OwnElement = getWindow(node).ShadowRoot;
265
+ return node instanceof OwnElement || node instanceof ShadowRoot;
266
+ }
267
+
268
+
269
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js
270
+ function getHTMLElementScroll(element) {
271
+ return {
272
+ scrollLeft: element.scrollLeft,
273
+ scrollTop: element.scrollTop
274
+ };
275
+ }
276
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js
277
+
278
+
279
+
280
+
281
+ function getNodeScroll(node) {
282
+ if (node === getWindow(node) || !isHTMLElement(node)) {
283
+ return getWindowScroll(node);
284
+ } else {
285
+ return getHTMLElementScroll(node);
286
+ }
287
+ }
288
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
289
+ function getNodeName(element) {
290
+ return element ? (element.nodeName || '').toLowerCase() : null;
291
+ }
292
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
293
+
294
+ function getDocumentElement(element) {
295
+ // $FlowFixMe[incompatible-return]: assume body is always available
296
+ return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
297
+ element.document) || window.document).documentElement;
298
+ }
299
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
300
+
301
+
302
+
303
+ function getWindowScrollBarX(element) {
304
+ // If <html> has a CSS width greater than the viewport, then this will be
305
+ // incorrect for RTL.
306
+ // Popper 1 is broken in this case and never had a bug report so let's assume
307
+ // it's not an issue. I don't think anyone ever specifies width on <html>
308
+ // anyway.
309
+ // Browsers where the left scrollbar doesn't cause an issue report `0` for
310
+ // this (e.g. Edge 2019, IE11, Safari)
311
+ return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
312
+ }
313
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
314
+
315
+ function getComputedStyle(element) {
316
+ return getWindow(element).getComputedStyle(element);
317
+ }
318
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js
319
+
320
+ function isScrollParent(element) {
321
+ // Firefox wants us to check `-x` and `-y` variations as well
322
+ var _getComputedStyle = getComputedStyle(element),
323
+ overflow = _getComputedStyle.overflow,
324
+ overflowX = _getComputedStyle.overflowX,
325
+ overflowY = _getComputedStyle.overflowY;
326
+
327
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
328
+ }
329
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js
330
+
331
+
332
+
333
+
334
+
335
+
336
+ // Returns the composite rect of an element relative to its offsetParent.
337
+ // Composite means it takes into account transforms as well as layout.
338
+
339
+ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
340
+ if (isFixed === void 0) {
341
+ isFixed = false;
342
+ }
343
+
344
+ var documentElement = getDocumentElement(offsetParent);
345
+ var rect = getBoundingClientRect(elementOrVirtualElement);
346
+ var isOffsetParentAnElement = isHTMLElement(offsetParent);
347
+ var scroll = {
348
+ scrollLeft: 0,
349
+ scrollTop: 0
350
+ };
351
+ var offsets = {
352
+ x: 0,
353
+ y: 0
354
+ };
355
+
356
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
357
+ if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
358
+ isScrollParent(documentElement)) {
359
+ scroll = getNodeScroll(offsetParent);
360
+ }
361
+
362
+ if (isHTMLElement(offsetParent)) {
363
+ offsets = getBoundingClientRect(offsetParent);
364
+ offsets.x += offsetParent.clientLeft;
365
+ offsets.y += offsetParent.clientTop;
366
+ } else if (documentElement) {
367
+ offsets.x = getWindowScrollBarX(documentElement);
368
+ }
369
+ }
370
+
371
+ return {
372
+ x: rect.left + scroll.scrollLeft - offsets.x,
373
+ y: rect.top + scroll.scrollTop - offsets.y,
374
+ width: rect.width,
375
+ height: rect.height
376
+ };
377
+ }
378
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
379
+ // Returns the layout rect of an element relative to its offsetParent. Layout
380
+ // means it doesn't take into account transforms.
381
+
382
+ function getLayoutRect(element) {
383
+ var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
384
+ // Fixes https://github.com/popperjs/popper-core/issues/1223
385
+
386
+ var width = element.offsetWidth;
387
+ var height = element.offsetHeight;
388
+
389
+ if (Math.abs(clientRect.width - width) <= 1) {
390
+ width = clientRect.width;
391
+ }
392
+
393
+ if (Math.abs(clientRect.height - height) <= 1) {
394
+ height = clientRect.height;
395
+ }
396
+
397
+ return {
398
+ x: element.offsetLeft,
399
+ y: element.offsetTop,
400
+ width: width,
401
+ height: height
402
+ };
403
+ }
404
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js
405
+
406
+
407
+
408
+ function getParentNode(element) {
409
+ if (getNodeName(element) === 'html') {
410
+ return element;
411
+ }
412
+
413
+ return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
414
+ // $FlowFixMe[incompatible-return]
415
+ // $FlowFixMe[prop-missing]
416
+ element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
417
+ element.parentNode || ( // DOM Element detected
418
+ isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
419
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
420
+ getDocumentElement(element) // fallback
421
+
422
+ );
423
+ }
424
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js
425
+
426
+
427
+
428
+
429
+ function getScrollParent(node) {
430
+ if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
431
+ // $FlowFixMe[incompatible-return]: assume body is always available
432
+ return node.ownerDocument.body;
433
+ }
434
+
435
+ if (isHTMLElement(node) && isScrollParent(node)) {
436
+ return node;
437
+ }
438
+
439
+ return getScrollParent(getParentNode(node));
440
+ }
441
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
442
+
443
+
444
+
445
+
446
+ /*
447
+ given a DOM element, return the list of all scroll parents, up the list of ancesors
448
+ until we get to the top window object. This list is what we attach scroll listeners
449
+ to, because if any of these parent elements scroll, we'll need to re-calculate the
450
+ reference element's position.
451
+ */
452
+
453
+ function listScrollParents(element, list) {
454
+ var _element$ownerDocumen;
455
+
456
+ if (list === void 0) {
457
+ list = [];
458
+ }
459
+
460
+ var scrollParent = getScrollParent(element);
461
+ var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
462
+ var win = getWindow(scrollParent);
463
+ var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
464
+ var updatedList = list.concat(target);
465
+ return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
466
+ updatedList.concat(listScrollParents(getParentNode(target)));
467
+ }
468
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
469
+
470
+ function isTableElement(element) {
471
+ return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
472
+ }
473
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+ function getTrueOffsetParent(element) {
482
+ if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
483
+ getComputedStyle(element).position === 'fixed') {
484
+ return null;
485
+ }
486
+
487
+ return element.offsetParent;
488
+ } // `.offsetParent` reports `null` for fixed elements, while absolute elements
489
+ // return the containing block
490
+
491
+
492
+ function getContainingBlock(element) {
493
+ var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
494
+ var isIE = navigator.userAgent.indexOf('Trident') !== -1;
495
+
496
+ if (isIE && isHTMLElement(element)) {
497
+ // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
498
+ var elementCss = getComputedStyle(element);
499
+
500
+ if (elementCss.position === 'fixed') {
501
+ return null;
502
+ }
503
+ }
504
+
505
+ var currentNode = getParentNode(element);
506
+
507
+ while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
508
+ var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
509
+ // create a containing block.
510
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
511
+
512
+ if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
513
+ return currentNode;
514
+ } else {
515
+ currentNode = currentNode.parentNode;
516
+ }
517
+ }
518
+
519
+ return null;
520
+ } // Gets the closest ancestor positioned element. Handles some edge cases,
521
+ // such as table ancestors and cross browser bugs.
522
+
523
+
524
+ function getOffsetParent(element) {
525
+ var window = getWindow(element);
526
+ var offsetParent = getTrueOffsetParent(element);
527
+
528
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
529
+ offsetParent = getTrueOffsetParent(offsetParent);
530
+ }
531
+
532
+ if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
533
+ return window;
534
+ }
535
+
536
+ return offsetParent || getContainingBlock(element) || window;
537
+ }
538
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/enums.js
539
+ var enums_top = 'top';
540
+ var bottom = 'bottom';
541
+ var right = 'right';
542
+ var left = 'left';
543
+ var auto = 'auto';
544
+ var basePlacements = [enums_top, bottom, right, left];
545
+ var start = 'start';
546
+ var end = 'end';
547
+ var enums_clippingParents = 'clippingParents';
548
+ var viewport = 'viewport';
549
+ var enums_popper = 'popper';
550
+ var enums_reference = 'reference';
551
+ var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
552
+ return acc.concat([placement + "-" + start, placement + "-" + end]);
553
+ }, []);
554
+ var enums_placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
555
+ return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
556
+ }, []); // modifiers that need to read the DOM
557
+
558
+ var beforeRead = 'beforeRead';
559
+ var read = 'read';
560
+ var afterRead = 'afterRead'; // pure-logic modifiers
561
+
562
+ var beforeMain = 'beforeMain';
563
+ var main = 'main';
564
+ var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
565
+
566
+ var beforeWrite = 'beforeWrite';
567
+ var write = 'write';
568
+ var afterWrite = 'afterWrite';
569
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
570
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/orderModifiers.js
571
+ // source: https://stackoverflow.com/questions/49875255
572
+
573
+ function order(modifiers) {
574
+ var map = new Map();
575
+ var visited = new Set();
576
+ var result = [];
577
+ modifiers.forEach(function (modifier) {
578
+ map.set(modifier.name, modifier);
579
+ }); // On visiting object, check for its dependencies and visit them recursively
580
+
581
+ function sort(modifier) {
582
+ visited.add(modifier.name);
583
+ var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
584
+ requires.forEach(function (dep) {
585
+ if (!visited.has(dep)) {
586
+ var depModifier = map.get(dep);
587
+
588
+ if (depModifier) {
589
+ sort(depModifier);
590
+ }
591
+ }
592
+ });
593
+ result.push(modifier);
594
+ }
595
+
596
+ modifiers.forEach(function (modifier) {
597
+ if (!visited.has(modifier.name)) {
598
+ // check for visited object
599
+ sort(modifier);
600
+ }
601
+ });
602
+ return result;
603
+ }
604
+
605
+ function orderModifiers(modifiers) {
606
+ // order based on dependencies
607
+ var orderedModifiers = order(modifiers); // order based on phase
608
+
609
+ return modifierPhases.reduce(function (acc, phase) {
610
+ return acc.concat(orderedModifiers.filter(function (modifier) {
611
+ return modifier.phase === phase;
612
+ }));
613
+ }, []);
614
+ }
615
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/debounce.js
616
+ function debounce(fn) {
617
+ var pending;
618
+ return function () {
619
+ if (!pending) {
620
+ pending = new Promise(function (resolve) {
621
+ Promise.resolve().then(function () {
622
+ pending = undefined;
623
+ resolve(fn());
624
+ });
625
+ });
626
+ }
627
+
628
+ return pending;
629
+ };
630
+ }
631
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/mergeByName.js
632
+ function mergeByName(modifiers) {
633
+ var merged = modifiers.reduce(function (merged, current) {
634
+ var existing = merged[current.name];
635
+ merged[current.name] = existing ? Object.assign({}, existing, current, {
636
+ options: Object.assign({}, existing.options, current.options),
637
+ data: Object.assign({}, existing.data, current.data)
638
+ }) : current;
639
+ return merged;
640
+ }, {}); // IE11 does not support Object.values
641
+
642
+ return Object.keys(merged).map(function (key) {
643
+ return merged[key];
644
+ });
645
+ }
646
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/createPopper.js
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+ var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
662
+ var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
663
+ var DEFAULT_OPTIONS = {
664
+ placement: 'bottom',
665
+ modifiers: [],
666
+ strategy: 'absolute'
667
+ };
668
+
669
+ function areValidElements() {
670
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
671
+ args[_key] = arguments[_key];
672
+ }
673
+
674
+ return !args.some(function (element) {
675
+ return !(element && typeof element.getBoundingClientRect === 'function');
676
+ });
677
+ }
678
+
679
+ function popperGenerator(generatorOptions) {
680
+ if (generatorOptions === void 0) {
681
+ generatorOptions = {};
682
+ }
683
+
684
+ var _generatorOptions = generatorOptions,
685
+ _generatorOptions$def = _generatorOptions.defaultModifiers,
686
+ defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
687
+ _generatorOptions$def2 = _generatorOptions.defaultOptions,
688
+ defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
689
+ return function createPopper(reference, popper, options) {
690
+ if (options === void 0) {
691
+ options = defaultOptions;
692
+ }
693
+
694
+ var state = {
695
+ placement: 'bottom',
696
+ orderedModifiers: [],
697
+ options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
698
+ modifiersData: {},
699
+ elements: {
700
+ reference: reference,
701
+ popper: popper
702
+ },
703
+ attributes: {},
704
+ styles: {}
705
+ };
706
+ var effectCleanupFns = [];
707
+ var isDestroyed = false;
708
+ var instance = {
709
+ state: state,
710
+ setOptions: function setOptions(options) {
711
+ cleanupModifierEffects();
712
+ state.options = Object.assign({}, defaultOptions, state.options, options);
713
+ state.scrollParents = {
714
+ reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
715
+ popper: listScrollParents(popper)
716
+ }; // Orders the modifiers based on their dependencies and `phase`
717
+ // properties
718
+
719
+ var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
720
+
721
+ state.orderedModifiers = orderedModifiers.filter(function (m) {
722
+ return m.enabled;
723
+ }); // Validate the provided modifiers so that the consumer will get warned
724
+ // if one of the modifiers is invalid for any reason
725
+
726
+ if (false) { var _getComputedStyle, marginTop, marginRight, marginBottom, marginLeft, flipModifier, modifiers; }
727
+
728
+ runModifierEffects();
729
+ return instance.update();
730
+ },
731
+ // Sync update – it will always be executed, even if not necessary. This
732
+ // is useful for low frequency updates where sync behavior simplifies the
733
+ // logic.
734
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
735
+ // prefer the async Popper#update method
736
+ forceUpdate: function forceUpdate() {
737
+ if (isDestroyed) {
738
+ return;
739
+ }
740
+
741
+ var _state$elements = state.elements,
742
+ reference = _state$elements.reference,
743
+ popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
744
+ // anymore
745
+
746
+ if (!areValidElements(reference, popper)) {
747
+ if (false) {}
748
+
749
+ return;
750
+ } // Store the reference and popper rects to be read by modifiers
751
+
752
+
753
+ state.rects = {
754
+ reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
755
+ popper: getLayoutRect(popper)
756
+ }; // Modifiers have the ability to reset the current update cycle. The
757
+ // most common use case for this is the `flip` modifier changing the
758
+ // placement, which then needs to re-run all the modifiers, because the
759
+ // logic was previously ran for the previous placement and is therefore
760
+ // stale/incorrect
761
+
762
+ state.reset = false;
763
+ state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
764
+ // is filled with the initial data specified by the modifier. This means
765
+ // it doesn't persist and is fresh on each update.
766
+ // To ensure persistent data, use `${name}#persistent`
767
+
768
+ state.orderedModifiers.forEach(function (modifier) {
769
+ return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
770
+ });
771
+ var __debug_loops__ = 0;
772
+
773
+ for (var index = 0; index < state.orderedModifiers.length; index++) {
774
+ if (false) {}
775
+
776
+ if (state.reset === true) {
777
+ state.reset = false;
778
+ index = -1;
779
+ continue;
780
+ }
781
+
782
+ var _state$orderedModifie = state.orderedModifiers[index],
783
+ fn = _state$orderedModifie.fn,
784
+ _state$orderedModifie2 = _state$orderedModifie.options,
785
+ _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
786
+ name = _state$orderedModifie.name;
787
+
788
+ if (typeof fn === 'function') {
789
+ state = fn({
790
+ state: state,
791
+ options: _options,
792
+ name: name,
793
+ instance: instance
794
+ }) || state;
795
+ }
796
+ }
797
+ },
798
+ // Async and optimistically optimized update – it will not be executed if
799
+ // not necessary (debounced to run at most once-per-tick)
800
+ update: debounce(function () {
801
+ return new Promise(function (resolve) {
802
+ instance.forceUpdate();
803
+ resolve(state);
804
+ });
805
+ }),
806
+ destroy: function destroy() {
807
+ cleanupModifierEffects();
808
+ isDestroyed = true;
809
+ }
810
+ };
811
+
812
+ if (!areValidElements(reference, popper)) {
813
+ if (false) {}
814
+
815
+ return instance;
816
+ }
817
+
818
+ instance.setOptions(options).then(function (state) {
819
+ if (!isDestroyed && options.onFirstUpdate) {
820
+ options.onFirstUpdate(state);
821
+ }
822
+ }); // Modifiers have the ability to execute arbitrary code before the first
823
+ // update cycle runs. They will be executed in the same order as the update
824
+ // cycle. This is useful when a modifier adds some persistent data that
825
+ // other modifiers need to use, but the modifier is run after the dependent
826
+ // one.
827
+
828
+ function runModifierEffects() {
829
+ state.orderedModifiers.forEach(function (_ref3) {
830
+ var name = _ref3.name,
831
+ _ref3$options = _ref3.options,
832
+ options = _ref3$options === void 0 ? {} : _ref3$options,
833
+ effect = _ref3.effect;
834
+
835
+ if (typeof effect === 'function') {
836
+ var cleanupFn = effect({
837
+ state: state,
838
+ name: name,
839
+ instance: instance,
840
+ options: options
841
+ });
842
+
843
+ var noopFn = function noopFn() {};
844
+
845
+ effectCleanupFns.push(cleanupFn || noopFn);
846
+ }
847
+ });
848
+ }
849
+
850
+ function cleanupModifierEffects() {
851
+ effectCleanupFns.forEach(function (fn) {
852
+ return fn();
853
+ });
854
+ effectCleanupFns = [];
855
+ }
856
+
857
+ return instance;
858
+ };
859
+ }
860
+ var createPopper_createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules
861
+
862
+
863
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/eventListeners.js
864
+ // eslint-disable-next-line import/no-unused-modules
865
+
866
+ var passive = {
867
+ passive: true
868
+ };
869
+
870
+ function effect(_ref) {
871
+ var state = _ref.state,
872
+ instance = _ref.instance,
873
+ options = _ref.options;
874
+ var _options$scroll = options.scroll,
875
+ scroll = _options$scroll === void 0 ? true : _options$scroll,
876
+ _options$resize = options.resize,
877
+ resize = _options$resize === void 0 ? true : _options$resize;
878
+ var window = getWindow(state.elements.popper);
879
+ var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
880
+
881
+ if (scroll) {
882
+ scrollParents.forEach(function (scrollParent) {
883
+ scrollParent.addEventListener('scroll', instance.update, passive);
884
+ });
885
+ }
886
+
887
+ if (resize) {
888
+ window.addEventListener('resize', instance.update, passive);
889
+ }
890
+
891
+ return function () {
892
+ if (scroll) {
893
+ scrollParents.forEach(function (scrollParent) {
894
+ scrollParent.removeEventListener('scroll', instance.update, passive);
895
+ });
896
+ }
897
+
898
+ if (resize) {
899
+ window.removeEventListener('resize', instance.update, passive);
900
+ }
901
+ };
902
+ } // eslint-disable-next-line import/no-unused-modules
903
+
904
+
905
+ /* harmony default export */ var eventListeners = ({
906
+ name: 'eventListeners',
907
+ enabled: true,
908
+ phase: 'write',
909
+ fn: function fn() {},
910
+ effect: effect,
911
+ data: {}
912
+ });
913
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getBasePlacement.js
914
+
915
+ function getBasePlacement(placement) {
916
+ return placement.split('-')[0];
917
+ }
918
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getVariation.js
919
+ function getVariation(placement) {
920
+ return placement.split('-')[1];
921
+ }
922
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
923
+ function getMainAxisFromPlacement(placement) {
924
+ return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
925
+ }
926
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/computeOffsets.js
927
+
928
+
929
+
930
+
931
+ function computeOffsets(_ref) {
932
+ var reference = _ref.reference,
933
+ element = _ref.element,
934
+ placement = _ref.placement;
935
+ var basePlacement = placement ? getBasePlacement(placement) : null;
936
+ var variation = placement ? getVariation(placement) : null;
937
+ var commonX = reference.x + reference.width / 2 - element.width / 2;
938
+ var commonY = reference.y + reference.height / 2 - element.height / 2;
939
+ var offsets;
940
+
941
+ switch (basePlacement) {
942
+ case enums_top:
943
+ offsets = {
944
+ x: commonX,
945
+ y: reference.y - element.height
946
+ };
947
+ break;
948
+
949
+ case bottom:
950
+ offsets = {
951
+ x: commonX,
952
+ y: reference.y + reference.height
953
+ };
954
+ break;
955
+
956
+ case right:
957
+ offsets = {
958
+ x: reference.x + reference.width,
959
+ y: commonY
960
+ };
961
+ break;
962
+
963
+ case left:
964
+ offsets = {
965
+ x: reference.x - element.width,
966
+ y: commonY
967
+ };
968
+ break;
969
+
970
+ default:
971
+ offsets = {
972
+ x: reference.x,
973
+ y: reference.y
974
+ };
975
+ }
976
+
977
+ var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
978
+
979
+ if (mainAxis != null) {
980
+ var len = mainAxis === 'y' ? 'height' : 'width';
981
+
982
+ switch (variation) {
983
+ case start:
984
+ offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
985
+ break;
986
+
987
+ case end:
988
+ offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
989
+ break;
990
+
991
+ default:
992
+ }
993
+ }
994
+
995
+ return offsets;
996
+ }
997
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js
998
+
999
+
1000
+ function popperOffsets_popperOffsets(_ref) {
1001
+ var state = _ref.state,
1002
+ name = _ref.name;
1003
+ // Offsets are the actual position the popper needs to have to be
1004
+ // properly positioned near its reference element
1005
+ // This is the most basic placement, and will be adjusted by
1006
+ // the modifiers in the next step
1007
+ state.modifiersData[name] = computeOffsets({
1008
+ reference: state.rects.reference,
1009
+ element: state.rects.popper,
1010
+ strategy: 'absolute',
1011
+ placement: state.placement
1012
+ });
1013
+ } // eslint-disable-next-line import/no-unused-modules
1014
+
1015
+
1016
+ /* harmony default export */ var modifiers_popperOffsets = ({
1017
+ name: 'popperOffsets',
1018
+ enabled: true,
1019
+ phase: 'read',
1020
+ fn: popperOffsets_popperOffsets,
1021
+ data: {}
1022
+ });
1023
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/math.js
1024
+ var math_max = Math.max;
1025
+ var math_min = Math.min;
1026
+ var round = Math.round;
1027
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/computeStyles.js
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+ // eslint-disable-next-line import/no-unused-modules
1035
+
1036
+ var unsetSides = {
1037
+ top: 'auto',
1038
+ right: 'auto',
1039
+ bottom: 'auto',
1040
+ left: 'auto'
1041
+ }; // Round the offsets to the nearest suitable subpixel based on the DPR.
1042
+ // Zooming can change the DPR, but it seems to report a value that will
1043
+ // cleanly divide the values into the appropriate subpixels.
1044
+
1045
+ function roundOffsetsByDPR(_ref) {
1046
+ var x = _ref.x,
1047
+ y = _ref.y;
1048
+ var win = window;
1049
+ var dpr = win.devicePixelRatio || 1;
1050
+ return {
1051
+ x: round(round(x * dpr) / dpr) || 0,
1052
+ y: round(round(y * dpr) / dpr) || 0
1053
+ };
1054
+ }
1055
+
1056
+ function mapToStyles(_ref2) {
1057
+ var _Object$assign2;
1058
+
1059
+ var popper = _ref2.popper,
1060
+ popperRect = _ref2.popperRect,
1061
+ placement = _ref2.placement,
1062
+ offsets = _ref2.offsets,
1063
+ position = _ref2.position,
1064
+ gpuAcceleration = _ref2.gpuAcceleration,
1065
+ adaptive = _ref2.adaptive,
1066
+ roundOffsets = _ref2.roundOffsets;
1067
+
1068
+ var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
1069
+ _ref3$x = _ref3.x,
1070
+ x = _ref3$x === void 0 ? 0 : _ref3$x,
1071
+ _ref3$y = _ref3.y,
1072
+ y = _ref3$y === void 0 ? 0 : _ref3$y;
1073
+
1074
+ var hasX = offsets.hasOwnProperty('x');
1075
+ var hasY = offsets.hasOwnProperty('y');
1076
+ var sideX = left;
1077
+ var sideY = enums_top;
1078
+ var win = window;
1079
+
1080
+ if (adaptive) {
1081
+ var offsetParent = getOffsetParent(popper);
1082
+ var heightProp = 'clientHeight';
1083
+ var widthProp = 'clientWidth';
1084
+
1085
+ if (offsetParent === getWindow(popper)) {
1086
+ offsetParent = getDocumentElement(popper);
1087
+
1088
+ if (getComputedStyle(offsetParent).position !== 'static') {
1089
+ heightProp = 'scrollHeight';
1090
+ widthProp = 'scrollWidth';
1091
+ }
1092
+ } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
1093
+
1094
+
1095
+ offsetParent = offsetParent;
1096
+
1097
+ if (placement === enums_top) {
1098
+ sideY = bottom; // $FlowFixMe[prop-missing]
1099
+
1100
+ y -= offsetParent[heightProp] - popperRect.height;
1101
+ y *= gpuAcceleration ? 1 : -1;
1102
+ }
1103
+
1104
+ if (placement === left) {
1105
+ sideX = right; // $FlowFixMe[prop-missing]
1106
+
1107
+ x -= offsetParent[widthProp] - popperRect.width;
1108
+ x *= gpuAcceleration ? 1 : -1;
1109
+ }
1110
+ }
1111
+
1112
+ var commonStyles = Object.assign({
1113
+ position: position
1114
+ }, adaptive && unsetSides);
1115
+
1116
+ if (gpuAcceleration) {
1117
+ var _Object$assign;
1118
+
1119
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
1120
+ }
1121
+
1122
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
1123
+ }
1124
+
1125
+ function computeStyles(_ref4) {
1126
+ var state = _ref4.state,
1127
+ options = _ref4.options;
1128
+ var _options$gpuAccelerat = options.gpuAcceleration,
1129
+ gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
1130
+ _options$adaptive = options.adaptive,
1131
+ adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
1132
+ _options$roundOffsets = options.roundOffsets,
1133
+ roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
1134
+
1135
+ if (false) { var transitionProperty; }
1136
+
1137
+ var commonStyles = {
1138
+ placement: getBasePlacement(state.placement),
1139
+ popper: state.elements.popper,
1140
+ popperRect: state.rects.popper,
1141
+ gpuAcceleration: gpuAcceleration
1142
+ };
1143
+
1144
+ if (state.modifiersData.popperOffsets != null) {
1145
+ state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
1146
+ offsets: state.modifiersData.popperOffsets,
1147
+ position: state.options.strategy,
1148
+ adaptive: adaptive,
1149
+ roundOffsets: roundOffsets
1150
+ })));
1151
+ }
1152
+
1153
+ if (state.modifiersData.arrow != null) {
1154
+ state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
1155
+ offsets: state.modifiersData.arrow,
1156
+ position: 'absolute',
1157
+ adaptive: false,
1158
+ roundOffsets: roundOffsets
1159
+ })));
1160
+ }
1161
+
1162
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
1163
+ 'data-popper-placement': state.placement
1164
+ });
1165
+ } // eslint-disable-next-line import/no-unused-modules
1166
+
1167
+
1168
+ /* harmony default export */ var modifiers_computeStyles = ({
1169
+ name: 'computeStyles',
1170
+ enabled: true,
1171
+ phase: 'beforeWrite',
1172
+ fn: computeStyles,
1173
+ data: {}
1174
+ });
1175
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/applyStyles.js
1176
+
1177
+ // This modifier takes the styles prepared by the `computeStyles` modifier
1178
+ // and applies them to the HTMLElements such as popper and arrow
1179
+
1180
+ function applyStyles(_ref) {
1181
+ var state = _ref.state;
1182
+ Object.keys(state.elements).forEach(function (name) {
1183
+ var style = state.styles[name] || {};
1184
+ var attributes = state.attributes[name] || {};
1185
+ var element = state.elements[name]; // arrow is optional + virtual elements
1186
+
1187
+ if (!isHTMLElement(element) || !getNodeName(element)) {
1188
+ return;
1189
+ } // Flow doesn't support to extend this property, but it's the most
1190
+ // effective way to apply styles to an HTMLElement
1191
+ // $FlowFixMe[cannot-write]
1192
+
1193
+
1194
+ Object.assign(element.style, style);
1195
+ Object.keys(attributes).forEach(function (name) {
1196
+ var value = attributes[name];
1197
+
1198
+ if (value === false) {
1199
+ element.removeAttribute(name);
1200
+ } else {
1201
+ element.setAttribute(name, value === true ? '' : value);
1202
+ }
1203
+ });
1204
+ });
1205
+ }
1206
+
1207
+ function applyStyles_effect(_ref2) {
1208
+ var state = _ref2.state;
1209
+ var initialStyles = {
1210
+ popper: {
1211
+ position: state.options.strategy,
1212
+ left: '0',
1213
+ top: '0',
1214
+ margin: '0'
1215
+ },
1216
+ arrow: {
1217
+ position: 'absolute'
1218
+ },
1219
+ reference: {}
1220
+ };
1221
+ Object.assign(state.elements.popper.style, initialStyles.popper);
1222
+ state.styles = initialStyles;
1223
+
1224
+ if (state.elements.arrow) {
1225
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
1226
+ }
1227
+
1228
+ return function () {
1229
+ Object.keys(state.elements).forEach(function (name) {
1230
+ var element = state.elements[name];
1231
+ var attributes = state.attributes[name] || {};
1232
+ var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
1233
+
1234
+ var style = styleProperties.reduce(function (style, property) {
1235
+ style[property] = '';
1236
+ return style;
1237
+ }, {}); // arrow is optional + virtual elements
1238
+
1239
+ if (!isHTMLElement(element) || !getNodeName(element)) {
1240
+ return;
1241
+ }
1242
+
1243
+ Object.assign(element.style, style);
1244
+ Object.keys(attributes).forEach(function (attribute) {
1245
+ element.removeAttribute(attribute);
1246
+ });
1247
+ });
1248
+ };
1249
+ } // eslint-disable-next-line import/no-unused-modules
1250
+
1251
+
1252
+ /* harmony default export */ var modifiers_applyStyles = ({
1253
+ name: 'applyStyles',
1254
+ enabled: true,
1255
+ phase: 'write',
1256
+ fn: applyStyles,
1257
+ effect: applyStyles_effect,
1258
+ requires: ['computeStyles']
1259
+ });
1260
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/offset.js
1261
+
1262
+
1263
+ function distanceAndSkiddingToXY(placement, rects, offset) {
1264
+ var basePlacement = getBasePlacement(placement);
1265
+ var invertDistance = [left, enums_top].indexOf(basePlacement) >= 0 ? -1 : 1;
1266
+
1267
+ var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
1268
+ placement: placement
1269
+ })) : offset,
1270
+ skidding = _ref[0],
1271
+ distance = _ref[1];
1272
+
1273
+ skidding = skidding || 0;
1274
+ distance = (distance || 0) * invertDistance;
1275
+ return [left, right].indexOf(basePlacement) >= 0 ? {
1276
+ x: distance,
1277
+ y: skidding
1278
+ } : {
1279
+ x: skidding,
1280
+ y: distance
1281
+ };
1282
+ }
1283
+
1284
+ function offset_offset(_ref2) {
1285
+ var state = _ref2.state,
1286
+ options = _ref2.options,
1287
+ name = _ref2.name;
1288
+ var _options$offset = options.offset,
1289
+ offset = _options$offset === void 0 ? [0, 0] : _options$offset;
1290
+ var data = enums_placements.reduce(function (acc, placement) {
1291
+ acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
1292
+ return acc;
1293
+ }, {});
1294
+ var _data$state$placement = data[state.placement],
1295
+ x = _data$state$placement.x,
1296
+ y = _data$state$placement.y;
1297
+
1298
+ if (state.modifiersData.popperOffsets != null) {
1299
+ state.modifiersData.popperOffsets.x += x;
1300
+ state.modifiersData.popperOffsets.y += y;
1301
+ }
1302
+
1303
+ state.modifiersData[name] = data;
1304
+ } // eslint-disable-next-line import/no-unused-modules
1305
+
1306
+
1307
+ /* harmony default export */ var modifiers_offset = ({
1308
+ name: 'offset',
1309
+ enabled: true,
1310
+ phase: 'main',
1311
+ requires: ['popperOffsets'],
1312
+ fn: offset_offset
1313
+ });
1314
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js
1315
+ var hash = {
1316
+ left: 'right',
1317
+ right: 'left',
1318
+ bottom: 'top',
1319
+ top: 'bottom'
1320
+ };
1321
+ function getOppositePlacement(placement) {
1322
+ return placement.replace(/left|right|bottom|top/g, function (matched) {
1323
+ return hash[matched];
1324
+ });
1325
+ }
1326
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
1327
+ var getOppositeVariationPlacement_hash = {
1328
+ start: 'end',
1329
+ end: 'start'
1330
+ };
1331
+ function getOppositeVariationPlacement(placement) {
1332
+ return placement.replace(/start|end/g, function (matched) {
1333
+ return getOppositeVariationPlacement_hash[matched];
1334
+ });
1335
+ }
1336
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js
1337
+
1338
+
1339
+
1340
+ function getViewportRect(element) {
1341
+ var win = getWindow(element);
1342
+ var html = getDocumentElement(element);
1343
+ var visualViewport = win.visualViewport;
1344
+ var width = html.clientWidth;
1345
+ var height = html.clientHeight;
1346
+ var x = 0;
1347
+ var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
1348
+ // can be obscured underneath it.
1349
+ // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
1350
+ // if it isn't open, so if this isn't available, the popper will be detected
1351
+ // to overflow the bottom of the screen too early.
1352
+
1353
+ if (visualViewport) {
1354
+ width = visualViewport.width;
1355
+ height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
1356
+ // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
1357
+ // errors due to floating point numbers, so we need to check precision.
1358
+ // Safari returns a number <= 0, usually < -1 when pinch-zoomed
1359
+ // Feature detection fails in mobile emulation mode in Chrome.
1360
+ // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
1361
+ // 0.001
1362
+ // Fallback here: "Not Safari" userAgent
1363
+
1364
+ if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
1365
+ x = visualViewport.offsetLeft;
1366
+ y = visualViewport.offsetTop;
1367
+ }
1368
+ }
1369
+
1370
+ return {
1371
+ width: width,
1372
+ height: height,
1373
+ x: x + getWindowScrollBarX(element),
1374
+ y: y
1375
+ };
1376
+ }
1377
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js
1378
+
1379
+
1380
+
1381
+
1382
+ // Gets the entire size of the scrollable document area, even extending outside
1383
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable
1384
+
1385
+ function getDocumentRect(element) {
1386
+ var _element$ownerDocumen;
1387
+
1388
+ var html = getDocumentElement(element);
1389
+ var winScroll = getWindowScroll(element);
1390
+ var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
1391
+ var width = math_max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
1392
+ var height = math_max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
1393
+ var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
1394
+ var y = -winScroll.scrollTop;
1395
+
1396
+ if (getComputedStyle(body || html).direction === 'rtl') {
1397
+ x += math_max(html.clientWidth, body ? body.clientWidth : 0) - width;
1398
+ }
1399
+
1400
+ return {
1401
+ width: width,
1402
+ height: height,
1403
+ x: x,
1404
+ y: y
1405
+ };
1406
+ }
1407
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/contains.js
1408
+
1409
+ function contains(parent, child) {
1410
+ var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
1411
+
1412
+ if (parent.contains(child)) {
1413
+ return true;
1414
+ } // then fallback to custom implementation with Shadow DOM support
1415
+ else if (rootNode && isShadowRoot(rootNode)) {
1416
+ var next = child;
1417
+
1418
+ do {
1419
+ if (next && parent.isSameNode(next)) {
1420
+ return true;
1421
+ } // $FlowFixMe[prop-missing]: need a better way to handle this...
1422
+
1423
+
1424
+ next = next.parentNode || next.host;
1425
+ } while (next);
1426
+ } // Give up, the result is false
1427
+
1428
+
1429
+ return false;
1430
+ }
1431
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/rectToClientRect.js
1432
+ function rectToClientRect(rect) {
1433
+ return Object.assign({}, rect, {
1434
+ left: rect.x,
1435
+ top: rect.y,
1436
+ right: rect.x + rect.width,
1437
+ bottom: rect.y + rect.height
1438
+ });
1439
+ }
1440
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+ function getInnerBoundingClientRect(element) {
1457
+ var rect = getBoundingClientRect(element);
1458
+ rect.top = rect.top + element.clientTop;
1459
+ rect.left = rect.left + element.clientLeft;
1460
+ rect.bottom = rect.top + element.clientHeight;
1461
+ rect.right = rect.left + element.clientWidth;
1462
+ rect.width = element.clientWidth;
1463
+ rect.height = element.clientHeight;
1464
+ rect.x = rect.left;
1465
+ rect.y = rect.top;
1466
+ return rect;
1467
+ }
1468
+
1469
+ function getClientRectFromMixedType(element, clippingParent) {
1470
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
1471
+ } // A "clipping parent" is an overflowable container with the characteristic of
1472
+ // clipping (or hiding) overflowing elements with a position different from
1473
+ // `initial`
1474
+
1475
+
1476
+ function getClippingParents(element) {
1477
+ var clippingParents = listScrollParents(getParentNode(element));
1478
+ var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
1479
+ var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
1480
+
1481
+ if (!isElement(clipperElement)) {
1482
+ return [];
1483
+ } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
1484
+
1485
+
1486
+ return clippingParents.filter(function (clippingParent) {
1487
+ return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
1488
+ });
1489
+ } // Gets the maximum area that the element is visible in due to any number of
1490
+ // clipping parents
1491
+
1492
+
1493
+ function getClippingRect(element, boundary, rootBoundary) {
1494
+ var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
1495
+ var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
1496
+ var firstClippingParent = clippingParents[0];
1497
+ var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
1498
+ var rect = getClientRectFromMixedType(element, clippingParent);
1499
+ accRect.top = math_max(rect.top, accRect.top);
1500
+ accRect.right = math_min(rect.right, accRect.right);
1501
+ accRect.bottom = math_min(rect.bottom, accRect.bottom);
1502
+ accRect.left = math_max(rect.left, accRect.left);
1503
+ return accRect;
1504
+ }, getClientRectFromMixedType(element, firstClippingParent));
1505
+ clippingRect.width = clippingRect.right - clippingRect.left;
1506
+ clippingRect.height = clippingRect.bottom - clippingRect.top;
1507
+ clippingRect.x = clippingRect.left;
1508
+ clippingRect.y = clippingRect.top;
1509
+ return clippingRect;
1510
+ }
1511
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
1512
+ function getFreshSideObject() {
1513
+ return {
1514
+ top: 0,
1515
+ right: 0,
1516
+ bottom: 0,
1517
+ left: 0
1518
+ };
1519
+ }
1520
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js
1521
+
1522
+ function mergePaddingObject(paddingObject) {
1523
+ return Object.assign({}, getFreshSideObject(), paddingObject);
1524
+ }
1525
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/expandToHashMap.js
1526
+ function expandToHashMap(value, keys) {
1527
+ return keys.reduce(function (hashMap, key) {
1528
+ hashMap[key] = value;
1529
+ return hashMap;
1530
+ }, {});
1531
+ }
1532
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/detectOverflow.js
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+
1539
+
1540
+
1541
+ // eslint-disable-next-line import/no-unused-modules
1542
+
1543
+ function detectOverflow(state, options) {
1544
+ if (options === void 0) {
1545
+ options = {};
1546
+ }
1547
+
1548
+ var _options = options,
1549
+ _options$placement = _options.placement,
1550
+ placement = _options$placement === void 0 ? state.placement : _options$placement,
1551
+ _options$boundary = _options.boundary,
1552
+ boundary = _options$boundary === void 0 ? enums_clippingParents : _options$boundary,
1553
+ _options$rootBoundary = _options.rootBoundary,
1554
+ rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
1555
+ _options$elementConte = _options.elementContext,
1556
+ elementContext = _options$elementConte === void 0 ? enums_popper : _options$elementConte,
1557
+ _options$altBoundary = _options.altBoundary,
1558
+ altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
1559
+ _options$padding = _options.padding,
1560
+ padding = _options$padding === void 0 ? 0 : _options$padding;
1561
+ var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
1562
+ var altContext = elementContext === enums_popper ? enums_reference : enums_popper;
1563
+ var referenceElement = state.elements.reference;
1564
+ var popperRect = state.rects.popper;
1565
+ var element = state.elements[altBoundary ? altContext : elementContext];
1566
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
1567
+ var referenceClientRect = getBoundingClientRect(referenceElement);
1568
+ var popperOffsets = computeOffsets({
1569
+ reference: referenceClientRect,
1570
+ element: popperRect,
1571
+ strategy: 'absolute',
1572
+ placement: placement
1573
+ });
1574
+ var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
1575
+ var elementClientRect = elementContext === enums_popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
1576
+ // 0 or negative = within the clipping rect
1577
+
1578
+ var overflowOffsets = {
1579
+ top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
1580
+ bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
1581
+ left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
1582
+ right: elementClientRect.right - clippingClientRect.right + paddingObject.right
1583
+ };
1584
+ var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
1585
+
1586
+ if (elementContext === enums_popper && offsetData) {
1587
+ var offset = offsetData[placement];
1588
+ Object.keys(overflowOffsets).forEach(function (key) {
1589
+ var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
1590
+ var axis = [enums_top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
1591
+ overflowOffsets[key] += offset[axis] * multiply;
1592
+ });
1593
+ }
1594
+
1595
+ return overflowOffsets;
1596
+ }
1597
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js
1598
+
1599
+
1600
+
1601
+
1602
+ function computeAutoPlacement(state, options) {
1603
+ if (options === void 0) {
1604
+ options = {};
1605
+ }
1606
+
1607
+ var _options = options,
1608
+ placement = _options.placement,
1609
+ boundary = _options.boundary,
1610
+ rootBoundary = _options.rootBoundary,
1611
+ padding = _options.padding,
1612
+ flipVariations = _options.flipVariations,
1613
+ _options$allowedAutoP = _options.allowedAutoPlacements,
1614
+ allowedAutoPlacements = _options$allowedAutoP === void 0 ? enums_placements : _options$allowedAutoP;
1615
+ var variation = getVariation(placement);
1616
+ var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
1617
+ return getVariation(placement) === variation;
1618
+ }) : basePlacements;
1619
+ var allowedPlacements = placements.filter(function (placement) {
1620
+ return allowedAutoPlacements.indexOf(placement) >= 0;
1621
+ });
1622
+
1623
+ if (allowedPlacements.length === 0) {
1624
+ allowedPlacements = placements;
1625
+
1626
+ if (false) {}
1627
+ } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
1628
+
1629
+
1630
+ var overflows = allowedPlacements.reduce(function (acc, placement) {
1631
+ acc[placement] = detectOverflow(state, {
1632
+ placement: placement,
1633
+ boundary: boundary,
1634
+ rootBoundary: rootBoundary,
1635
+ padding: padding
1636
+ })[getBasePlacement(placement)];
1637
+ return acc;
1638
+ }, {});
1639
+ return Object.keys(overflows).sort(function (a, b) {
1640
+ return overflows[a] - overflows[b];
1641
+ });
1642
+ }
1643
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/flip.js
1644
+
1645
+
1646
+
1647
+
1648
+
1649
+
1650
+ // eslint-disable-next-line import/no-unused-modules
1651
+
1652
+ function getExpandedFallbackPlacements(placement) {
1653
+ if (getBasePlacement(placement) === auto) {
1654
+ return [];
1655
+ }
1656
+
1657
+ var oppositePlacement = getOppositePlacement(placement);
1658
+ return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
1659
+ }
1660
+
1661
+ function flip(_ref) {
1662
+ var state = _ref.state,
1663
+ options = _ref.options,
1664
+ name = _ref.name;
1665
+
1666
+ if (state.modifiersData[name]._skip) {
1667
+ return;
1668
+ }
1669
+
1670
+ var _options$mainAxis = options.mainAxis,
1671
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1672
+ _options$altAxis = options.altAxis,
1673
+ checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
1674
+ specifiedFallbackPlacements = options.fallbackPlacements,
1675
+ padding = options.padding,
1676
+ boundary = options.boundary,
1677
+ rootBoundary = options.rootBoundary,
1678
+ altBoundary = options.altBoundary,
1679
+ _options$flipVariatio = options.flipVariations,
1680
+ flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
1681
+ allowedAutoPlacements = options.allowedAutoPlacements;
1682
+ var preferredPlacement = state.options.placement;
1683
+ var basePlacement = getBasePlacement(preferredPlacement);
1684
+ var isBasePlacement = basePlacement === preferredPlacement;
1685
+ var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
1686
+ var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
1687
+ return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
1688
+ placement: placement,
1689
+ boundary: boundary,
1690
+ rootBoundary: rootBoundary,
1691
+ padding: padding,
1692
+ flipVariations: flipVariations,
1693
+ allowedAutoPlacements: allowedAutoPlacements
1694
+ }) : placement);
1695
+ }, []);
1696
+ var referenceRect = state.rects.reference;
1697
+ var popperRect = state.rects.popper;
1698
+ var checksMap = new Map();
1699
+ var makeFallbackChecks = true;
1700
+ var firstFittingPlacement = placements[0];
1701
+
1702
+ for (var i = 0; i < placements.length; i++) {
1703
+ var placement = placements[i];
1704
+
1705
+ var _basePlacement = getBasePlacement(placement);
1706
+
1707
+ var isStartVariation = getVariation(placement) === start;
1708
+ var isVertical = [enums_top, bottom].indexOf(_basePlacement) >= 0;
1709
+ var len = isVertical ? 'width' : 'height';
1710
+ var overflow = detectOverflow(state, {
1711
+ placement: placement,
1712
+ boundary: boundary,
1713
+ rootBoundary: rootBoundary,
1714
+ altBoundary: altBoundary,
1715
+ padding: padding
1716
+ });
1717
+ var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : enums_top;
1718
+
1719
+ if (referenceRect[len] > popperRect[len]) {
1720
+ mainVariationSide = getOppositePlacement(mainVariationSide);
1721
+ }
1722
+
1723
+ var altVariationSide = getOppositePlacement(mainVariationSide);
1724
+ var checks = [];
1725
+
1726
+ if (checkMainAxis) {
1727
+ checks.push(overflow[_basePlacement] <= 0);
1728
+ }
1729
+
1730
+ if (checkAltAxis) {
1731
+ checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
1732
+ }
1733
+
1734
+ if (checks.every(function (check) {
1735
+ return check;
1736
+ })) {
1737
+ firstFittingPlacement = placement;
1738
+ makeFallbackChecks = false;
1739
+ break;
1740
+ }
1741
+
1742
+ checksMap.set(placement, checks);
1743
+ }
1744
+
1745
+ if (makeFallbackChecks) {
1746
+ // `2` may be desired in some cases – research later
1747
+ var numberOfChecks = flipVariations ? 3 : 1;
1748
+
1749
+ var _loop = function _loop(_i) {
1750
+ var fittingPlacement = placements.find(function (placement) {
1751
+ var checks = checksMap.get(placement);
1752
+
1753
+ if (checks) {
1754
+ return checks.slice(0, _i).every(function (check) {
1755
+ return check;
1756
+ });
1757
+ }
1758
+ });
1759
+
1760
+ if (fittingPlacement) {
1761
+ firstFittingPlacement = fittingPlacement;
1762
+ return "break";
1763
+ }
1764
+ };
1765
+
1766
+ for (var _i = numberOfChecks; _i > 0; _i--) {
1767
+ var _ret = _loop(_i);
1768
+
1769
+ if (_ret === "break") break;
1770
+ }
1771
+ }
1772
+
1773
+ if (state.placement !== firstFittingPlacement) {
1774
+ state.modifiersData[name]._skip = true;
1775
+ state.placement = firstFittingPlacement;
1776
+ state.reset = true;
1777
+ }
1778
+ } // eslint-disable-next-line import/no-unused-modules
1779
+
1780
+
1781
+ /* harmony default export */ var modifiers_flip = ({
1782
+ name: 'flip',
1783
+ enabled: true,
1784
+ phase: 'main',
1785
+ fn: flip,
1786
+ requiresIfExists: ['offset'],
1787
+ data: {
1788
+ _skip: false
1789
+ }
1790
+ });
1791
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getAltAxis.js
1792
+ function getAltAxis(axis) {
1793
+ return axis === 'x' ? 'y' : 'x';
1794
+ }
1795
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/within.js
1796
+
1797
+ function within(min, value, max) {
1798
+ return math_max(min, math_min(value, max));
1799
+ }
1800
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
1801
+
1802
+
1803
+
1804
+
1805
+
1806
+
1807
+
1808
+
1809
+
1810
+
1811
+
1812
+
1813
+ function preventOverflow(_ref) {
1814
+ var state = _ref.state,
1815
+ options = _ref.options,
1816
+ name = _ref.name;
1817
+ var _options$mainAxis = options.mainAxis,
1818
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1819
+ _options$altAxis = options.altAxis,
1820
+ checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
1821
+ boundary = options.boundary,
1822
+ rootBoundary = options.rootBoundary,
1823
+ altBoundary = options.altBoundary,
1824
+ padding = options.padding,
1825
+ _options$tether = options.tether,
1826
+ tether = _options$tether === void 0 ? true : _options$tether,
1827
+ _options$tetherOffset = options.tetherOffset,
1828
+ tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
1829
+ var overflow = detectOverflow(state, {
1830
+ boundary: boundary,
1831
+ rootBoundary: rootBoundary,
1832
+ padding: padding,
1833
+ altBoundary: altBoundary
1834
+ });
1835
+ var basePlacement = getBasePlacement(state.placement);
1836
+ var variation = getVariation(state.placement);
1837
+ var isBasePlacement = !variation;
1838
+ var mainAxis = getMainAxisFromPlacement(basePlacement);
1839
+ var altAxis = getAltAxis(mainAxis);
1840
+ var popperOffsets = state.modifiersData.popperOffsets;
1841
+ var referenceRect = state.rects.reference;
1842
+ var popperRect = state.rects.popper;
1843
+ var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
1844
+ placement: state.placement
1845
+ })) : tetherOffset;
1846
+ var data = {
1847
+ x: 0,
1848
+ y: 0
1849
+ };
1850
+
1851
+ if (!popperOffsets) {
1852
+ return;
1853
+ }
1854
+
1855
+ if (checkMainAxis || checkAltAxis) {
1856
+ var mainSide = mainAxis === 'y' ? enums_top : left;
1857
+ var altSide = mainAxis === 'y' ? bottom : right;
1858
+ var len = mainAxis === 'y' ? 'height' : 'width';
1859
+ var offset = popperOffsets[mainAxis];
1860
+ var min = popperOffsets[mainAxis] + overflow[mainSide];
1861
+ var max = popperOffsets[mainAxis] - overflow[altSide];
1862
+ var additive = tether ? -popperRect[len] / 2 : 0;
1863
+ var minLen = variation === start ? referenceRect[len] : popperRect[len];
1864
+ var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
1865
+ // outside the reference bounds
1866
+
1867
+ var arrowElement = state.elements.arrow;
1868
+ var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
1869
+ width: 0,
1870
+ height: 0
1871
+ };
1872
+ var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
1873
+ var arrowPaddingMin = arrowPaddingObject[mainSide];
1874
+ var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
1875
+ // to include its full size in the calculation. If the reference is small
1876
+ // and near the edge of a boundary, the popper can overflow even if the
1877
+ // reference is not overflowing as well (e.g. virtual elements with no
1878
+ // width or height)
1879
+
1880
+ var arrowLen = within(0, referenceRect[len], arrowRect[len]);
1881
+ var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
1882
+ var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
1883
+ var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
1884
+ var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
1885
+ var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
1886
+ var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
1887
+ var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
1888
+
1889
+ if (checkMainAxis) {
1890
+ var preventedOffset = within(tether ? math_min(min, tetherMin) : min, offset, tether ? math_max(max, tetherMax) : max);
1891
+ popperOffsets[mainAxis] = preventedOffset;
1892
+ data[mainAxis] = preventedOffset - offset;
1893
+ }
1894
+
1895
+ if (checkAltAxis) {
1896
+ var _mainSide = mainAxis === 'x' ? enums_top : left;
1897
+
1898
+ var _altSide = mainAxis === 'x' ? bottom : right;
1899
+
1900
+ var _offset = popperOffsets[altAxis];
1901
+
1902
+ var _min = _offset + overflow[_mainSide];
1903
+
1904
+ var _max = _offset - overflow[_altSide];
1905
+
1906
+ var _preventedOffset = within(tether ? math_min(_min, tetherMin) : _min, _offset, tether ? math_max(_max, tetherMax) : _max);
1907
+
1908
+ popperOffsets[altAxis] = _preventedOffset;
1909
+ data[altAxis] = _preventedOffset - _offset;
1910
+ }
1911
+ }
1912
+
1913
+ state.modifiersData[name] = data;
1914
+ } // eslint-disable-next-line import/no-unused-modules
1915
+
1916
+
1917
+ /* harmony default export */ var modifiers_preventOverflow = ({
1918
+ name: 'preventOverflow',
1919
+ enabled: true,
1920
+ phase: 'main',
1921
+ fn: preventOverflow,
1922
+ requiresIfExists: ['offset']
1923
+ });
1924
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/arrow.js
1925
+
1926
+
1927
+
1928
+
1929
+
1930
+
1931
+
1932
+
1933
+
1934
+ // eslint-disable-next-line import/no-unused-modules
1935
+
1936
+ var arrow_toPaddingObject = function toPaddingObject(padding, state) {
1937
+ padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
1938
+ placement: state.placement
1939
+ })) : padding;
1940
+ return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
1941
+ };
1942
+
1943
+ function arrow(_ref) {
1944
+ var _state$modifiersData$;
1945
+
1946
+ var state = _ref.state,
1947
+ name = _ref.name,
1948
+ options = _ref.options;
1949
+ var arrowElement = state.elements.arrow;
1950
+ var popperOffsets = state.modifiersData.popperOffsets;
1951
+ var basePlacement = getBasePlacement(state.placement);
1952
+ var axis = getMainAxisFromPlacement(basePlacement);
1953
+ var isVertical = [left, right].indexOf(basePlacement) >= 0;
1954
+ var len = isVertical ? 'height' : 'width';
1955
+
1956
+ if (!arrowElement || !popperOffsets) {
1957
+ return;
1958
+ }
1959
+
1960
+ var paddingObject = arrow_toPaddingObject(options.padding, state);
1961
+ var arrowRect = getLayoutRect(arrowElement);
1962
+ var minProp = axis === 'y' ? enums_top : left;
1963
+ var maxProp = axis === 'y' ? bottom : right;
1964
+ var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
1965
+ var startDiff = popperOffsets[axis] - state.rects.reference[axis];
1966
+ var arrowOffsetParent = getOffsetParent(arrowElement);
1967
+ var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
1968
+ var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
1969
+ // outside of the popper bounds
1970
+
1971
+ var min = paddingObject[minProp];
1972
+ var max = clientSize - arrowRect[len] - paddingObject[maxProp];
1973
+ var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
1974
+ var offset = within(min, center, max); // Prevents breaking syntax highlighting...
1975
+
1976
+ var axisProp = axis;
1977
+ state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
1978
+ }
1979
+
1980
+ function arrow_effect(_ref2) {
1981
+ var state = _ref2.state,
1982
+ options = _ref2.options;
1983
+ var _options$element = options.element,
1984
+ arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
1985
+
1986
+ if (arrowElement == null) {
1987
+ return;
1988
+ } // CSS selector
1989
+
1990
+
1991
+ if (typeof arrowElement === 'string') {
1992
+ arrowElement = state.elements.popper.querySelector(arrowElement);
1993
+
1994
+ if (!arrowElement) {
1995
+ return;
1996
+ }
1997
+ }
1998
+
1999
+ if (false) {}
2000
+
2001
+ if (!contains(state.elements.popper, arrowElement)) {
2002
+ if (false) {}
2003
+
2004
+ return;
2005
+ }
2006
+
2007
+ state.elements.arrow = arrowElement;
2008
+ } // eslint-disable-next-line import/no-unused-modules
2009
+
2010
+
2011
+ /* harmony default export */ var modifiers_arrow = ({
2012
+ name: 'arrow',
2013
+ enabled: true,
2014
+ phase: 'main',
2015
+ fn: arrow,
2016
+ effect: arrow_effect,
2017
+ requires: ['popperOffsets'],
2018
+ requiresIfExists: ['preventOverflow']
2019
+ });
2020
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/hide.js
2021
+
2022
+
2023
+
2024
+ function getSideOffsets(overflow, rect, preventedOffsets) {
2025
+ if (preventedOffsets === void 0) {
2026
+ preventedOffsets = {
2027
+ x: 0,
2028
+ y: 0
2029
+ };
2030
+ }
2031
+
2032
+ return {
2033
+ top: overflow.top - rect.height - preventedOffsets.y,
2034
+ right: overflow.right - rect.width + preventedOffsets.x,
2035
+ bottom: overflow.bottom - rect.height + preventedOffsets.y,
2036
+ left: overflow.left - rect.width - preventedOffsets.x
2037
+ };
2038
+ }
2039
+
2040
+ function isAnySideFullyClipped(overflow) {
2041
+ return [enums_top, right, bottom, left].some(function (side) {
2042
+ return overflow[side] >= 0;
2043
+ });
2044
+ }
2045
+
2046
+ function hide(_ref) {
2047
+ var state = _ref.state,
2048
+ name = _ref.name;
2049
+ var referenceRect = state.rects.reference;
2050
+ var popperRect = state.rects.popper;
2051
+ var preventedOffsets = state.modifiersData.preventOverflow;
2052
+ var referenceOverflow = detectOverflow(state, {
2053
+ elementContext: 'reference'
2054
+ });
2055
+ var popperAltOverflow = detectOverflow(state, {
2056
+ altBoundary: true
2057
+ });
2058
+ var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
2059
+ var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
2060
+ var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
2061
+ var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
2062
+ state.modifiersData[name] = {
2063
+ referenceClippingOffsets: referenceClippingOffsets,
2064
+ popperEscapeOffsets: popperEscapeOffsets,
2065
+ isReferenceHidden: isReferenceHidden,
2066
+ hasPopperEscaped: hasPopperEscaped
2067
+ };
2068
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
2069
+ 'data-popper-reference-hidden': isReferenceHidden,
2070
+ 'data-popper-escaped': hasPopperEscaped
2071
+ });
2072
+ } // eslint-disable-next-line import/no-unused-modules
2073
+
2074
+
2075
+ /* harmony default export */ var modifiers_hide = ({
2076
+ name: 'hide',
2077
+ enabled: true,
2078
+ phase: 'main',
2079
+ requiresIfExists: ['preventOverflow'],
2080
+ fn: hide
2081
+ });
2082
+ // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/popper.js
2083
+
2084
+
2085
+
2086
+
2087
+
2088
+
2089
+
2090
+
2091
+
2092
+
2093
+ var popper_defaultModifiers = [eventListeners, modifiers_popperOffsets, modifiers_computeStyles, modifiers_applyStyles, modifiers_offset, modifiers_flip, modifiers_preventOverflow, modifiers_arrow, modifiers_hide];
2094
+ var popper_createPopper = /*#__PURE__*/popperGenerator({
2095
+ defaultModifiers: popper_defaultModifiers
2096
+ }); // eslint-disable-next-line import/no-unused-modules
2097
+
2098
+ // eslint-disable-next-line import/no-unused-modules
2099
+
2100
+ // eslint-disable-next-line import/no-unused-modules
2101
+
2102
+
2103
+ // EXTERNAL MODULE: ./node_modules/react-fast-compare/index.js
2104
+ var react_fast_compare = __webpack_require__(394);
2105
+ var react_fast_compare_default = /*#__PURE__*/__webpack_require__.n(react_fast_compare);
2106
+
2107
+ // CONCATENATED MODULE: ./node_modules/react-popper/lib/esm/utils.js
2108
+
2109
+
2110
+ /**
2111
+ * Takes an argument and if it's an array, returns the first item in the array,
2112
+ * otherwise returns the argument. Used for Preact compatibility.
2113
+ */
2114
+ var unwrapArray = function unwrapArray(arg) {
2115
+ return Array.isArray(arg) ? arg[0] : arg;
2116
+ };
2117
+ /**
2118
+ * Takes a maybe-undefined function and arbitrary args and invokes the function
2119
+ * only if it is defined.
2120
+ */
2121
+
2122
+ var safeInvoke = function safeInvoke(fn) {
2123
+ if (typeof fn === 'function') {
2124
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2125
+ args[_key - 1] = arguments[_key];
2126
+ }
2127
+
2128
+ return fn.apply(void 0, args);
2129
+ }
2130
+ };
2131
+ /**
2132
+ * Sets a ref using either a ref callback or a ref object
2133
+ */
2134
+
2135
+ var setRef = function setRef(ref, node) {
2136
+ // if its a function call it
2137
+ if (typeof ref === 'function') {
2138
+ return safeInvoke(ref, node);
2139
+ } // otherwise we should treat it as a ref object
2140
+ else if (ref != null) {
2141
+ ref.current = node;
2142
+ }
2143
+ };
2144
+ /**
2145
+ * Simple ponyfill for Object.fromEntries
2146
+ */
2147
+
2148
+ var fromEntries = function fromEntries(entries) {
2149
+ return entries.reduce(function (acc, _ref) {
2150
+ var key = _ref[0],
2151
+ value = _ref[1];
2152
+ acc[key] = value;
2153
+ return acc;
2154
+ }, {});
2155
+ };
2156
+ /**
2157
+ * Small wrapper around `useLayoutEffect` to get rid of the warning on SSR envs
2158
+ */
2159
+
2160
+ var useIsomorphicLayoutEffect = typeof window !== 'undefined' && window.document && window.document.createElement ? external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useLayoutEffect"] : external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"];
2161
+ // CONCATENATED MODULE: ./node_modules/react-popper/lib/esm/usePopper.js
2162
+
2163
+
2164
+
2165
+
2166
+ var EMPTY_MODIFIERS = [];
2167
+ var usePopper_usePopper = function usePopper(referenceElement, popperElement, options) {
2168
+ if (options === void 0) {
2169
+ options = {};
2170
+ }
2171
+
2172
+ var prevOptions = external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useRef"](null);
2173
+ var optionsWithDefaults = {
2174
+ onFirstUpdate: options.onFirstUpdate,
2175
+ placement: options.placement || 'bottom',
2176
+ strategy: options.strategy || 'absolute',
2177
+ modifiers: options.modifiers || EMPTY_MODIFIERS
2178
+ };
2179
+
2180
+ var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"]({
2181
+ styles: {
2182
+ popper: {
2183
+ position: optionsWithDefaults.strategy,
2184
+ left: '0',
2185
+ top: '0'
2186
+ },
2187
+ arrow: {
2188
+ position: 'absolute'
2189
+ }
2190
+ },
2191
+ attributes: {}
2192
+ }),
2193
+ state = _React$useState[0],
2194
+ setState = _React$useState[1];
2195
+
2196
+ var updateStateModifier = external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useMemo"](function () {
2197
+ return {
2198
+ name: 'updateState',
2199
+ enabled: true,
2200
+ phase: 'write',
2201
+ fn: function fn(_ref) {
2202
+ var state = _ref.state;
2203
+ var elements = Object.keys(state.elements);
2204
+ setState({
2205
+ styles: fromEntries(elements.map(function (element) {
2206
+ return [element, state.styles[element] || {}];
2207
+ })),
2208
+ attributes: fromEntries(elements.map(function (element) {
2209
+ return [element, state.attributes[element]];
2210
+ }))
2211
+ });
2212
+ },
2213
+ requires: ['computeStyles']
2214
+ };
2215
+ }, []);
2216
+ var popperOptions = external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useMemo"](function () {
2217
+ var newOptions = {
2218
+ onFirstUpdate: optionsWithDefaults.onFirstUpdate,
2219
+ placement: optionsWithDefaults.placement,
2220
+ strategy: optionsWithDefaults.strategy,
2221
+ modifiers: [].concat(optionsWithDefaults.modifiers, [updateStateModifier, {
2222
+ name: 'applyStyles',
2223
+ enabled: false
2224
+ }])
2225
+ };
2226
+
2227
+ if (react_fast_compare_default()(prevOptions.current, newOptions)) {
2228
+ return prevOptions.current || newOptions;
2229
+ } else {
2230
+ prevOptions.current = newOptions;
2231
+ return newOptions;
2232
+ }
2233
+ }, [optionsWithDefaults.onFirstUpdate, optionsWithDefaults.placement, optionsWithDefaults.strategy, optionsWithDefaults.modifiers, updateStateModifier]);
2234
+ var popperInstanceRef = external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useRef"]();
2235
+ useIsomorphicLayoutEffect(function () {
2236
+ if (popperInstanceRef.current) {
2237
+ popperInstanceRef.current.setOptions(popperOptions);
2238
+ }
2239
+ }, [popperOptions]);
2240
+ useIsomorphicLayoutEffect(function () {
2241
+ if (referenceElement == null || popperElement == null) {
2242
+ return;
2243
+ }
2244
+
2245
+ var createPopper = options.createPopper || popper_createPopper;
2246
+ var popperInstance = createPopper(referenceElement, popperElement, popperOptions);
2247
+ popperInstanceRef.current = popperInstance;
2248
+ return function () {
2249
+ popperInstance.destroy();
2250
+ popperInstanceRef.current = null;
2251
+ };
2252
+ }, [referenceElement, popperElement, options.createPopper]);
2253
+ return {
2254
+ state: popperInstanceRef.current ? popperInstanceRef.current.state : null,
2255
+ styles: state.styles,
2256
+ attributes: state.attributes,
2257
+ update: popperInstanceRef.current ? popperInstanceRef.current.update : null,
2258
+ forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null
2259
+ };
2260
+ };
2261
+ // CONCATENATED MODULE: ./node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js
2262
+
2263
+
2264
+
2265
+
2266
+
2267
+ function useGetLatest(val) {
2268
+ var ref = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useRef"])(val);
2269
+ ref.current = val;
2270
+ return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function () {
2271
+ return ref.current;
2272
+ }, []);
2273
+ }
2274
+
2275
+ var noop = function noop() {// do nothing
2276
+ };
2277
+
2278
+ function useControlledState(_ref) {
2279
+ var initial = _ref.initial,
2280
+ value = _ref.value,
2281
+ _ref$onChange = _ref.onChange,
2282
+ onChange = _ref$onChange === void 0 ? noop : _ref$onChange;
2283
+
2284
+ if (initial === undefined && value === undefined) {
2285
+ throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');
2286
+ }
2287
+
2288
+ var _React$useState = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(initial),
2289
+ state = _React$useState[0],
2290
+ setState = _React$useState[1];
2291
+
2292
+ var getLatest = useGetLatest(state);
2293
+ var set = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function (updater) {
2294
+ var state = getLatest();
2295
+ var updatedState = typeof updater === 'function' ? updater(state) : updater;
2296
+ if (typeof updatedState.persist === 'function') updatedState.persist();
2297
+ setState(updatedState);
2298
+ if (typeof onChange === 'function') onChange(updatedState);
2299
+ }, [getLatest, onChange]);
2300
+ var isControlled = value !== undefined;
2301
+ return [isControlled ? value : state, isControlled ? onChange : set];
2302
+ }
2303
+ function generateBoundingClientRect(x, y) {
2304
+ if (x === void 0) {
2305
+ x = 0;
2306
+ }
2307
+
2308
+ if (y === void 0) {
2309
+ y = 0;
2310
+ }
2311
+
2312
+ return function () {
2313
+ return {
2314
+ width: 0,
2315
+ height: 0,
2316
+ top: y,
2317
+ right: x,
2318
+ bottom: y,
2319
+ left: x
2320
+ };
2321
+ };
2322
+ }
2323
+
2324
+ var virtualElement = {
2325
+ getBoundingClientRect: generateBoundingClientRect()
2326
+ };
2327
+ var defaultConfig = {
2328
+ closeOnOutsideClick: true,
2329
+ closeOnTriggerHidden: false,
2330
+ defaultVisible: false,
2331
+ delayHide: 0,
2332
+ delayShow: 0,
2333
+ followCursor: false,
2334
+ interactive: false,
2335
+ mutationObserverOptions: {
2336
+ attributes: true,
2337
+ childList: true,
2338
+ subtree: true
2339
+ },
2340
+ offset: [0, 6],
2341
+ trigger: 'hover'
2342
+ };
2343
+ function usePopperTooltip(config, popperOptions) {
2344
+ var _popperProps$state, _popperProps$state$mo, _popperProps$state$mo2;
2345
+
2346
+ if (config === void 0) {
2347
+ config = {};
2348
+ }
2349
+
2350
+ if (popperOptions === void 0) {
2351
+ popperOptions = {};
2352
+ }
2353
+
2354
+ // Merging options with default options.
2355
+ // Keys with undefined values are replaced with the default ones if any.
2356
+ // Keys with other values pass through.
2357
+ var finalConfig = Object.keys(defaultConfig).reduce(function (config, key) {
2358
+ var _extends2;
2359
+
2360
+ return Object(esm_extends["a" /* default */])({}, config, (_extends2 = {}, _extends2[key] = config[key] !== undefined ? config[key] : defaultConfig[key], _extends2));
2361
+ }, config);
2362
+ var defaultModifiers = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useMemo"])(function () {
2363
+ return [{
2364
+ name: 'offset',
2365
+ options: {
2366
+ offset: finalConfig.offset
2367
+ }
2368
+ }];
2369
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
2370
+ Array.isArray(finalConfig.offset) ? finalConfig.offset : []);
2371
+
2372
+ var finalPopperOptions = Object(esm_extends["a" /* default */])({}, popperOptions, {
2373
+ placement: popperOptions.placement || finalConfig.placement,
2374
+ modifiers: popperOptions.modifiers || defaultModifiers
2375
+ });
2376
+
2377
+ var _React$useState = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(null),
2378
+ triggerRef = _React$useState[0],
2379
+ setTriggerRef = _React$useState[1];
2380
+
2381
+ var _React$useState2 = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(null),
2382
+ tooltipRef = _React$useState2[0],
2383
+ setTooltipRef = _React$useState2[1];
2384
+
2385
+ var _useControlledState = useControlledState({
2386
+ initial: finalConfig.defaultVisible,
2387
+ value: finalConfig.visible,
2388
+ onChange: finalConfig.onVisibleChange
2389
+ }),
2390
+ visible = _useControlledState[0],
2391
+ setVisible = _useControlledState[1];
2392
+
2393
+ var timer = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useRef"])();
2394
+ Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"])(function () {
2395
+ return function () {
2396
+ return clearTimeout(timer.current);
2397
+ };
2398
+ }, []);
2399
+
2400
+ var _usePopper = usePopper_usePopper(finalConfig.followCursor ? virtualElement : triggerRef, tooltipRef, finalPopperOptions),
2401
+ styles = _usePopper.styles,
2402
+ attributes = _usePopper.attributes,
2403
+ popperProps = Object(objectWithoutPropertiesLoose["a" /* default */])(_usePopper, ["styles", "attributes"]);
2404
+
2405
+ var update = popperProps.update;
2406
+ var getLatest = useGetLatest({
2407
+ visible: visible,
2408
+ triggerRef: triggerRef,
2409
+ tooltipRef: tooltipRef,
2410
+ finalConfig: finalConfig
2411
+ });
2412
+ var isTriggeredBy = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function (trigger) {
2413
+ return Array.isArray(finalConfig.trigger) ? finalConfig.trigger.includes(trigger) : finalConfig.trigger === trigger;
2414
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
2415
+ Array.isArray(finalConfig.trigger) ? finalConfig.trigger : [finalConfig.trigger]);
2416
+ var hideTooltip = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function () {
2417
+ clearTimeout(timer.current);
2418
+ timer.current = window.setTimeout(function () {
2419
+ return setVisible(false);
2420
+ }, finalConfig.delayHide);
2421
+ }, [finalConfig.delayHide, setVisible]);
2422
+ var showTooltip = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function () {
2423
+ clearTimeout(timer.current);
2424
+ timer.current = window.setTimeout(function () {
2425
+ return setVisible(true);
2426
+ }, finalConfig.delayShow);
2427
+ }, [finalConfig.delayShow, setVisible]);
2428
+ var toggleTooltip = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function () {
2429
+ if (getLatest().visible) {
2430
+ hideTooltip();
2431
+ } else {
2432
+ showTooltip();
2433
+ }
2434
+ }, [getLatest, hideTooltip, showTooltip]); // Handle click outside
2435
+
2436
+ Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"])(function () {
2437
+ if (!getLatest().finalConfig.closeOnOutsideClick) return;
2438
+
2439
+ var handleClickOutside = function handleClickOutside(event) {
2440
+ var _getLatest = getLatest(),
2441
+ tooltipRef = _getLatest.tooltipRef,
2442
+ triggerRef = _getLatest.triggerRef;
2443
+
2444
+ var target = event.target;
2445
+
2446
+ if (target instanceof Node) {
2447
+ if (tooltipRef != null && triggerRef != null && !tooltipRef.contains(target) && !triggerRef.contains(target)) {
2448
+ hideTooltip();
2449
+ }
2450
+ }
2451
+ };
2452
+
2453
+ document.addEventListener('mousedown', handleClickOutside);
2454
+ return function () {
2455
+ return document.removeEventListener('mousedown', handleClickOutside);
2456
+ };
2457
+ }, [getLatest, hideTooltip]); // Trigger: click
2458
+
2459
+ Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"])(function () {
2460
+ if (triggerRef == null || !isTriggeredBy('click')) return;
2461
+ triggerRef.addEventListener('click', toggleTooltip);
2462
+ return function () {
2463
+ return triggerRef.removeEventListener('click', toggleTooltip);
2464
+ };
2465
+ }, [triggerRef, isTriggeredBy, toggleTooltip]); // Trigger: right-click
2466
+
2467
+ Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"])(function () {
2468
+ if (triggerRef == null || !isTriggeredBy('right-click')) return;
2469
+
2470
+ var preventDefaultAndToggle = function preventDefaultAndToggle(event) {
2471
+ // Don't show the context menu
2472
+ event.preventDefault();
2473
+ toggleTooltip();
2474
+ };
2475
+
2476
+ triggerRef.addEventListener('contextmenu', preventDefaultAndToggle);
2477
+ return function () {
2478
+ return triggerRef.removeEventListener('contextmenu', preventDefaultAndToggle);
2479
+ };
2480
+ }, [triggerRef, isTriggeredBy, toggleTooltip]); // Trigger: focus
2481
+
2482
+ Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"])(function () {
2483
+ if (triggerRef == null || !isTriggeredBy('focus')) return;
2484
+ triggerRef.addEventListener('focus', showTooltip);
2485
+ triggerRef.addEventListener('blur', hideTooltip);
2486
+ return function () {
2487
+ triggerRef.removeEventListener('focus', showTooltip);
2488
+ triggerRef.removeEventListener('blur', hideTooltip);
2489
+ };
2490
+ }, [triggerRef, isTriggeredBy, showTooltip, hideTooltip]); // Trigger: hover on trigger
2491
+
2492
+ Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"])(function () {
2493
+ if (triggerRef == null || !isTriggeredBy('hover')) return;
2494
+ triggerRef.addEventListener('mouseenter', showTooltip);
2495
+ triggerRef.addEventListener('mouseleave', hideTooltip);
2496
+ return function () {
2497
+ triggerRef.removeEventListener('mouseenter', showTooltip);
2498
+ triggerRef.removeEventListener('mouseleave', hideTooltip);
2499
+ };
2500
+ }, [triggerRef, isTriggeredBy, showTooltip, hideTooltip]); // Trigger: hover on tooltip, keep it open if hovered
2501
+
2502
+ Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"])(function () {
2503
+ if (tooltipRef == null || !getLatest().finalConfig.interactive) return;
2504
+ tooltipRef.addEventListener('mouseenter', showTooltip);
2505
+ tooltipRef.addEventListener('mouseleave', hideTooltip);
2506
+ return function () {
2507
+ tooltipRef.removeEventListener('mouseenter', showTooltip);
2508
+ tooltipRef.removeEventListener('mouseleave', hideTooltip);
2509
+ };
2510
+ }, [tooltipRef, showTooltip, hideTooltip, getLatest]); // Handle closing tooltip if trigger hidden
2511
+
2512
+ var isReferenceHidden = popperProps == null ? void 0 : (_popperProps$state = popperProps.state) == null ? void 0 : (_popperProps$state$mo = _popperProps$state.modifiersData) == null ? void 0 : (_popperProps$state$mo2 = _popperProps$state$mo.hide) == null ? void 0 : _popperProps$state$mo2.isReferenceHidden;
2513
+ Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"])(function () {
2514
+ if (finalConfig.closeOnTriggerHidden && isReferenceHidden) hideTooltip();
2515
+ }, [finalConfig.closeOnTriggerHidden, hideTooltip, isReferenceHidden]); // Handle follow cursor
2516
+
2517
+ Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"])(function () {
2518
+ if (!finalConfig.followCursor || triggerRef == null) return;
2519
+
2520
+ function setMousePosition(_ref) {
2521
+ var clientX = _ref.clientX,
2522
+ clientY = _ref.clientY;
2523
+ virtualElement.getBoundingClientRect = generateBoundingClientRect(clientX, clientY);
2524
+ update == null ? void 0 : update();
2525
+ }
2526
+
2527
+ triggerRef.addEventListener('mousemove', setMousePosition);
2528
+ return function () {
2529
+ return triggerRef.removeEventListener('mousemove', setMousePosition);
2530
+ };
2531
+ }, [finalConfig.followCursor, triggerRef, update]); // Handle tooltip DOM mutation changes (aka mutation observer)
2532
+
2533
+ Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"])(function () {
2534
+ if (tooltipRef == null || update == null || finalConfig.mutationObserverOptions == null) return;
2535
+ var observer = new MutationObserver(update);
2536
+ observer.observe(tooltipRef, finalConfig.mutationObserverOptions);
2537
+ return function () {
2538
+ return observer.disconnect();
2539
+ };
2540
+ }, [finalConfig.mutationObserverOptions, tooltipRef, update]); // Tooltip props getter
2541
+
2542
+ var getTooltipProps = function getTooltipProps(args) {
2543
+ if (args === void 0) {
2544
+ args = {};
2545
+ }
2546
+
2547
+ return Object(esm_extends["a" /* default */])({}, args, {
2548
+ style: Object(esm_extends["a" /* default */])({}, args.style, styles.popper)
2549
+ }, attributes.popper, {
2550
+ 'data-popper-interactive': finalConfig.interactive
2551
+ });
2552
+ }; // Arrow props getter
2553
+
2554
+
2555
+ var getArrowProps = function getArrowProps(args) {
2556
+ if (args === void 0) {
2557
+ args = {};
2558
+ }
2559
+
2560
+ return Object(esm_extends["a" /* default */])({}, args, attributes.arrow, {
2561
+ style: Object(esm_extends["a" /* default */])({}, args.style, styles.arrow),
2562
+ 'data-popper-arrow': true
2563
+ });
2564
+ };
2565
+
2566
+ return Object(esm_extends["a" /* default */])({
2567
+ getArrowProps: getArrowProps,
2568
+ getTooltipProps: getTooltipProps,
2569
+ setTooltipRef: setTooltipRef,
2570
+ setTriggerRef: setTriggerRef,
2571
+ tooltipRef: tooltipRef,
2572
+ triggerRef: triggerRef,
2573
+ visible: visible
2574
+ }, popperProps);
2575
+ }
2576
+
2577
+
2578
+ //# sourceMappingURL=react-popper-tooltip.js.map
2579
+
2580
+
2581
+ /***/ }),
2582
+
2583
+ /***/ 394:
2584
+ /***/ (function(module, exports) {
2585
+
2586
+ /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
2587
+
2588
+ var hasElementType = typeof Element !== 'undefined';
2589
+ var hasMap = typeof Map === 'function';
2590
+ var hasSet = typeof Set === 'function';
2591
+ var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
2592
+
2593
+ // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
2594
+
2595
+ function equal(a, b) {
2596
+ // START: fast-deep-equal es6/index.js 3.1.1
2597
+ if (a === b) return true;
2598
+
2599
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
2600
+ if (a.constructor !== b.constructor) return false;
2601
+
2602
+ var length, i, keys;
2603
+ if (Array.isArray(a)) {
2604
+ length = a.length;
2605
+ if (length != b.length) return false;
2606
+ for (i = length; i-- !== 0;)
2607
+ if (!equal(a[i], b[i])) return false;
2608
+ return true;
2609
+ }
2610
+
2611
+ // START: Modifications:
2612
+ // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
2613
+ // to co-exist with es5.
2614
+ // 2. Replace `for of` with es5 compliant iteration using `for`.
2615
+ // Basically, take:
2616
+ //
2617
+ // ```js
2618
+ // for (i of a.entries())
2619
+ // if (!b.has(i[0])) return false;
2620
+ // ```
2621
+ //
2622
+ // ... and convert to:
2623
+ //
2624
+ // ```js
2625
+ // it = a.entries();
2626
+ // while (!(i = it.next()).done)
2627
+ // if (!b.has(i.value[0])) return false;
2628
+ // ```
2629
+ //
2630
+ // **Note**: `i` access switches to `i.value`.
2631
+ var it;
2632
+ if (hasMap && (a instanceof Map) && (b instanceof Map)) {
2633
+ if (a.size !== b.size) return false;
2634
+ it = a.entries();
2635
+ while (!(i = it.next()).done)
2636
+ if (!b.has(i.value[0])) return false;
2637
+ it = a.entries();
2638
+ while (!(i = it.next()).done)
2639
+ if (!equal(i.value[1], b.get(i.value[0]))) return false;
2640
+ return true;
2641
+ }
2642
+
2643
+ if (hasSet && (a instanceof Set) && (b instanceof Set)) {
2644
+ if (a.size !== b.size) return false;
2645
+ it = a.entries();
2646
+ while (!(i = it.next()).done)
2647
+ if (!b.has(i.value[0])) return false;
2648
+ return true;
2649
+ }
2650
+ // END: Modifications
2651
+
2652
+ if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
2653
+ length = a.length;
2654
+ if (length != b.length) return false;
2655
+ for (i = length; i-- !== 0;)
2656
+ if (a[i] !== b[i]) return false;
2657
+ return true;
2658
+ }
2659
+
2660
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
2661
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
2662
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
2663
+
2664
+ keys = Object.keys(a);
2665
+ length = keys.length;
2666
+ if (length !== Object.keys(b).length) return false;
2667
+
2668
+ for (i = length; i-- !== 0;)
2669
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
2670
+ // END: fast-deep-equal
2671
+
2672
+ // START: react-fast-compare
2673
+ // custom handling for DOM elements
2674
+ if (hasElementType && a instanceof Element) return false;
2675
+
2676
+ // custom handling for React/Preact
2677
+ for (i = length; i-- !== 0;) {
2678
+ if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
2679
+ // React-specific: avoid traversing React elements' _owner
2680
+ // Preact-specific: avoid traversing Preact elements' __v and __o
2681
+ // __v = $_original / $_vnode
2682
+ // __o = $_owner
2683
+ // These properties contain circular references and are not needed when
2684
+ // comparing the actual elements (and not their owners)
2685
+ // .$$typeof and ._store on just reasonable markers of elements
2686
+
2687
+ continue;
2688
+ }
2689
+
2690
+ // all other properties should be traversed as usual
2691
+ if (!equal(a[keys[i]], b[keys[i]])) return false;
2692
+ }
2693
+ // END: react-fast-compare
2694
+
2695
+ // START: fast-deep-equal
2696
+ return true;
2697
+ }
2698
+
2699
+ return a !== a && b !== b;
2700
+ }
2701
+ // end fast-deep-equal
2702
+
2703
+ module.exports = function isEqual(a, b) {
2704
+ try {
2705
+ return equal(a, b);
2706
+ } catch (error) {
2707
+ if (((error.message || '').match(/stack|recursion/i))) {
2708
+ // warn on circular references, don't crash
2709
+ // browsers give this different errors name and messages:
2710
+ // chrome/safari: "RangeError", "Maximum call stack size exceeded"
2711
+ // firefox: "InternalError", too much recursion"
2712
+ // edge: "Error", "Out of stack space"
2713
+ console.warn('react-fast-compare cannot handle circular refs');
2714
+ return false;
2715
+ }
2716
+ // some other error. we should definitely know about these
2717
+ throw error;
2718
+ }
2719
+ };
2720
+
2721
+
2722
+ /***/ }),
2723
+
2724
+ /***/ 397:
2725
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2726
+
2727
+ "use strict";
2728
+ /* harmony import */ var ramda_extension__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(413);
2729
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
2730
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
2731
+ /* harmony import */ var react_popper_tooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(386);
2732
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
2733
+ var __assign = (undefined && undefined.__assign) || function () {
2734
+ __assign = Object.assign || function(t) {
2735
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2736
+ s = arguments[i];
2737
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2738
+ t[p] = s[p];
2739
+ }
2740
+ return t;
2741
+ };
2742
+ return __assign.apply(this, arguments);
2743
+ };
2744
+
2745
+
2746
+
2747
+
2748
+ var Tooltip = function (_a) {
2749
+ var children = _a.children, content = _a.content, _b = _a.isArrowVisible, isArrowVisible = _b === void 0 ? true : _b, _c = _a.isShownByDefault, isShownByDefault = _c === void 0 ? false : _c, _d = _a.isUpperCased, isUpperCased = _d === void 0 ? false : _d, _e = _a.onTooltipVisibilityChange, onTooltipVisibilityChange = _e === void 0 ? ramda_extension__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"] : _e, _f = _a.placement, placement = _f === void 0 ? 'top' : _f, theme = _a.theme, _g = _a.trigger, trigger = _g === void 0 ? 'hover' : _g, _h = _a.type, type = _h === void 0 ? 'dark' : _h;
2750
+ var _j = Object(react_popper_tooltip__WEBPACK_IMPORTED_MODULE_2__[/* usePopperTooltip */ "a"])({
2751
+ defaultVisible: isShownByDefault,
2752
+ placement: placement,
2753
+ trigger: trigger,
2754
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2755
+ // @ts-ignore
2756
+ onVisibilityChange: onTooltipVisibilityChange
2757
+ }), getArrowProps = _j.getArrowProps, getTooltipProps = _j.getTooltipProps, setTooltipRef = _j.setTooltipRef, setTriggerRef = _j.setTriggerRef, visible = _j.visible;
2758
+ return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
2759
+ Object(react__WEBPACK_IMPORTED_MODULE_1__["cloneElement"])(children, { ref: setTriggerRef }),
2760
+ visible && (
2761
+ // Ignore coz some style object error
2762
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2763
+ // @ts-ignore
2764
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", __assign({ ref: setTooltipRef }, getTooltipProps({
2765
+ className: Object(_utils__WEBPACK_IMPORTED_MODULE_3__[/* cx */ "a"])('c-tooltip', "c-tooltip--" + type, "c-tooltip--" + placement, { 'upper-case': isUpperCased }, theme)
2766
+ })),
2767
+ isArrowVisible && (
2768
+ // Ignore coz some style object error
2769
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2770
+ // @ts-ignore
2771
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", __assign({}, getArrowProps({ className: 'c-tooltip-arrow', 'data-placement': placement })))),
2772
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "tooltip-body" }, content)))));
2773
+ };
2774
+ /* harmony default export */ __webpack_exports__["a"] = (Tooltip);
2775
+
2776
+
2777
+ /***/ }),
2778
+
2779
+ /***/ 413:
2780
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2781
+
2782
+ "use strict";
2783
+
2784
+ // EXTERNAL MODULE: ./node_modules/ramda/es/always.js
2785
+ var always = __webpack_require__(487);
2786
+
2787
+ // CONCATENATED MODULE: ./node_modules/ramda-extension/es/alwaysNull.js
2788
+
2789
+ /**
2790
+ * Always returns null.
2791
+ *
2792
+ * @func
2793
+ * @category Function
2794
+ *
2795
+ * @example
2796
+ *
2797
+ * R_.alwaysNull() // null
2798
+ *
2799
+ * @sig a -> Object
2800
+ */
2801
+
2802
+ var alwaysNull = /*#__PURE__*/Object(always["a" /* default */])(null);
2803
+ /* harmony default export */ var es_alwaysNull = (alwaysNull);
2804
+ // CONCATENATED MODULE: ./node_modules/ramda-extension/es/noop.js
2805
+
2806
+ /**
2807
+ * Alias for `alwaysNull`
2808
+ *
2809
+ * @func
2810
+ * @category Function
2811
+ *
2812
+ * @sig a -> Object
2813
+ *
2814
+ * @example
2815
+ *
2816
+ * R_.noop() // null
2817
+ *
2818
+ */
2819
+
2820
+ var noop = es_alwaysNull;
2821
+ /* harmony default export */ var es_noop = __webpack_exports__["a"] = (noop);
2822
+
2823
+ /***/ }),
2824
+
2825
+ /***/ 487:
2826
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2827
+
2828
+ "use strict";
2829
+ /* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
2830
+
2831
+ /**
2832
+ * Returns a function that always returns the given value. Note that for
2833
+ * non-primitives the value returned is a reference to the original value.
2834
+ *
2835
+ * This function is known as `const`, `constant`, or `K` (for K combinator) in
2836
+ * other languages and libraries.
2837
+ *
2838
+ * @func
2839
+ * @memberOf R
2840
+ * @since v0.1.0
2841
+ * @category Function
2842
+ * @sig a -> (* -> a)
2843
+ * @param {*} val The value to wrap in a function
2844
+ * @return {Function} A Function :: * -> val.
2845
+ * @example
2846
+ *
2847
+ * const t = R.always('Tee');
2848
+ * t(); //=> 'Tee'
2849
+ */
2850
+
2851
+ var always =
2852
+ /*#__PURE__*/
2853
+ Object(_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(function always(val) {
2854
+ return function () {
2855
+ return val;
2856
+ };
2857
+ });
2858
+
2859
+ /* harmony default export */ __webpack_exports__["a"] = (always);
2860
+
2861
+ /***/ }),
2862
+
2863
+ /***/ 511:
2864
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2865
+
2866
+ "use strict";
2867
+ __webpack_require__.r(__webpack_exports__);
2868
+ /* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(397);
2869
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return _Tooltip__WEBPACK_IMPORTED_MODULE_0__["a"]; });
2870
+
2871
+
2872
+
2873
+
2874
+ /***/ }),
2875
+
2876
+ /***/ 7:
2877
+ /***/ (function(module, exports, __webpack_require__) {
2878
+
2879
+ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
2880
+ Copyright (c) 2018 Jed Watson.
2881
+ Licensed under the MIT License (MIT), see
2882
+ http://jedwatson.github.io/classnames
2883
+ */
2884
+ /* global define */
2885
+
2886
+ (function () {
2887
+ 'use strict';
2888
+
2889
+ var hasOwn = {}.hasOwnProperty;
2890
+
2891
+ function classNames() {
2892
+ var classes = [];
2893
+
2894
+ for (var i = 0; i < arguments.length; i++) {
2895
+ var arg = arguments[i];
2896
+ if (!arg) continue;
2897
+
2898
+ var argType = typeof arg;
2899
+
2900
+ if (argType === 'string' || argType === 'number') {
2901
+ classes.push(arg);
2902
+ } else if (Array.isArray(arg)) {
2903
+ if (arg.length) {
2904
+ var inner = classNames.apply(null, arg);
2905
+ if (inner) {
2906
+ classes.push(inner);
2907
+ }
2908
+ }
2909
+ } else if (argType === 'object') {
2910
+ if (arg.toString === Object.prototype.toString) {
2911
+ for (var key in arg) {
2912
+ if (hasOwn.call(arg, key) && arg[key]) {
2913
+ classes.push(key);
2914
+ }
2915
+ }
2916
+ } else {
2917
+ classes.push(arg.toString());
2918
+ }
2919
+ }
2920
+ }
2921
+
2922
+ return classes.join(' ');
2923
+ }
2924
+
2925
+ if ( true && module.exports) {
2926
+ classNames.default = classNames;
2927
+ module.exports = classNames;
2928
+ } else if (true) {
2929
+ // register as 'classnames', consistent with npm package name
2930
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
2931
+ return classNames;
2932
+ }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
2933
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
2934
+ } else {}
2935
+ }());
2936
+
2937
+
2938
+ /***/ }),
2939
+
2940
+ /***/ 9:
2941
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2942
+
2943
+ "use strict";
2944
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
2945
+ function _extends() {
2946
+ _extends = Object.assign || function (target) {
2947
+ for (var i = 1; i < arguments.length; i++) {
2948
+ var source = arguments[i];
2949
+
2950
+ for (var key in source) {
2951
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2952
+ target[key] = source[key];
2953
+ }
2954
+ }
2955
+ }
2956
+
2957
+ return target;
2958
+ };
2959
+
2960
+ return _extends.apply(this, arguments);
2961
+ }
2962
+
2963
+ /***/ })
2964
+
2965
+ /******/ });
2966
+ });