gd-bs 5.7.5 → 5.7.8

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.
Files changed (39) hide show
  1. package/build/bs.js +1 -1
  2. package/build/components/checkboxGroup/index.js +1 -12
  3. package/build/components/checkboxGroup/item.js +3 -0
  4. package/build/components/checkboxGroup/templates.js +1 -1
  5. package/build/components/form/control.js +6 -0
  6. package/build/components/offcanvas/index.js +55 -7
  7. package/build/components/popover/index.js +1 -1
  8. package/build/components/tooltip/index.js +1 -1
  9. package/build/index-icons.js +1 -1
  10. package/build/index.js +1 -1
  11. package/clean.js +0 -9
  12. package/dist/gd-bs-icons.js +642 -37
  13. package/dist/gd-bs-icons.min.js +1 -2
  14. package/dist/gd-bs.d.ts +20 -0
  15. package/dist/gd-bs.js +675 -19
  16. package/dist/gd-bs.min.js +1 -2
  17. package/index.html +4 -1
  18. package/package.json +5 -5
  19. package/pnpm-lock.yaml +1 -1
  20. package/post-build.js +0 -6
  21. package/src/bs.scss +30 -0
  22. package/src/components/checkboxGroup/index.ts +1 -12
  23. package/src/components/checkboxGroup/item.ts +4 -0
  24. package/src/components/checkboxGroup/templates.ts +2 -2
  25. package/src/components/form/control.ts +6 -0
  26. package/src/components/form/controlTypes.d.ts +2 -0
  27. package/src/components/offcanvas/index.ts +56 -7
  28. package/src/components/offcanvas/types.d.ts +18 -0
  29. package/src/components/popover/index.ts +2 -2
  30. package/src/components/tooltip/index.ts +2 -2
  31. package/src/index-icons.ts +1 -1
  32. package/src/index.ts +1 -1
  33. package/build/tippy.js +0 -2
  34. package/dist/gd-bs-icons.min.js.LICENSE.txt +0 -5
  35. package/dist/gd-bs.min.js.LICENSE.txt +0 -1
  36. package/pre-build.js +0 -30
  37. package/src/tippy.js/index.ts +0 -15
  38. package/src/tippy.js/popper.js +0 -1991
  39. package/src/tippy.js/tippy.js +0 -2497
package/index.html CHANGED
@@ -64,6 +64,8 @@
64
64
  name: "cb",
65
65
  label: "My CB",
66
66
  items,
67
+ //renderRow: false,
68
+ //colSize: 3,
67
69
  type: 8
68
70
  }]
69
71
  });
@@ -976,7 +978,8 @@
976
978
  id: "offcanvas-demo",
977
979
  title: "Offcanvas Demo",
978
980
  body: "<h5>Hello Canvas</h5><input />",
979
- type: 2,
981
+ size: 5,
982
+ type: 3,
980
983
  options: {
981
984
  backdrop: true
982
985
  }
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "5.7.5",
3
+ "version": "5.7.8",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
7
7
  "scripts": {
8
- "all": "npm run clean && npm run generate-icons && npm run build && npm run build-icons && npm run prod && npm run prod-icons && npm run typings && npm run docs",
9
- "build": "tsc && npm run build-tippy && npm run build-bs && webpack --mode=development && npm run post-build",
8
+ "all": "npm run clean && npm run generate-icons && npm run build && npm run build-icons && npm run prod && npm run prod-icons && npm run typings",
9
+ "build": "tsc && npm run build-bs && webpack --mode=development && npm run post-build",
10
10
  "build-bs": "webpack --mode=production --config webpack.sass.js",
11
11
  "build-icons": "webpack --mode=development --config webpack.icons.js",
12
- "build-tippy": "node ./pre-build.js && webpack --mode=production --config webpack.tippy.js",
13
12
  "post-build": "node ./post-build",
14
13
  "clean": "node ./clean.js",
15
14
  "docs": "typedoc",
16
15
  "generate-icons": "node ./generateIcons",
16
+ "package": "npm run all && npm run docs",
17
17
  "prod": "webpack --mode=production",
18
18
  "prod-icons": "webpack --mode=production --config webpack.icons.js",
19
19
  "typings": "dts-bundle --configJson dts-bundle.json"
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@popperjs/core": "^2.11.5",
37
37
  "bootstrap": "^5.1.3",
38
- "bootstrap-icons": "^1.8.2",
38
+ "bootstrap-icons": "^1.9.1",
39
39
  "core-js": "^3.22.6",
40
40
  "tippy.js": "^6.3.7"
41
41
  },
package/pnpm-lock.yaml CHANGED
@@ -3307,7 +3307,7 @@ specifiers:
3307
3307
  autoprefixer: ^10.4.7
3308
3308
  babel-loader: ^8.2.5
3309
3309
  bootstrap: ^5.1.3
3310
- bootstrap-icons: ^1.8.2
3310
+ bootstrap-icons: ^1.9.1
3311
3311
  core-js: ^3.22.6
3312
3312
  css-loader: ^6.7.1
3313
3313
  dts-bundle: ^0.7.3
package/post-build.js CHANGED
@@ -1,11 +1,5 @@
1
1
  var fs = require('fs');
2
2
 
3
- // Delete the txt file
4
- fs.rmSync("./build/tippy.js.LICENSE.txt");
5
-
6
- // Log
7
- console.log("Successfully removed the webpack output txt file.");
8
-
9
3
  // Copy the type definition file
10
4
  fs.copyFileSync("src/icons/svgs/index.d.ts", "build/icons/svgs/index.d.ts");
11
5
 
package/src/bs.scss CHANGED
@@ -339,6 +339,36 @@
339
339
  margin: 0rem 0rem 0rem auto;
340
340
  padding: 1rem;
341
341
  }
342
+ /* Off-canvas sizes (Small 1) */
343
+ .offcanvas-start.offcanvas-size-sm1, .offcanvas-end.offcanvas-size-sm1 { width: 20vw; }
344
+ .offcanvas-top.offcanvas-size-sm1, .offcanvas-bottom.offcanvas-size-sm1 { height: 20vh; }
345
+ /* Off-canvas sizes (Small 2) */
346
+ .offcanvas-start.offcanvas-size-sm2, .offcanvas-end.offcanvas-size-sm2 { width: 25vw; }
347
+ .offcanvas-top.offcanvas-size-sm2, .offcanvas-bottom.offcanvas-size-sm2 { height: 25vh; }
348
+ /* Off-canvas sizes (Small 3) */
349
+ .offcanvas-start.offcanvas-size-sm3, .offcanvas-end.offcanvas-size-sm3 { width: 30vw; }
350
+ .offcanvas-top.offcanvas-size-sm3, .offcanvas-bottom.offcanvas-size-sm3 { height: 30vh; }
351
+ /* Off-canvas sizes (Medium 1) */
352
+ .offcanvas-start.offcanvas-size-md1, .offcanvas-end.offcanvas-size-md1 { width: 40vw; }
353
+ .offcanvas-top.offcanvas-size-md1, .offcanvas-bottom.offcanvas-size-md1 { height: 40vh; }
354
+ /* Off-canvas sizes (Medium 2) */
355
+ .offcanvas-start.offcanvas-size-md2, .offcanvas-end.offcanvas-size-md2 { width: 50vw; }
356
+ .offcanvas-top.offcanvas-size-md2, .offcanvas-bottom.offcanvas-size-md2 { height: 50vh; }
357
+ /* Off-canvas sizes (Medium 3) */
358
+ .offcanvas-start.offcanvas-size-md3, .offcanvas-end.offcanvas-size-md3 { width: 60vw; }
359
+ .offcanvas-top.offcanvas-size-md3, .offcanvas-bottom.offcanvas-size-md3 { height: 60vh; }
360
+ /* Off-canvas sizes (Large 1) */
361
+ .offcanvas-start.offcanvas-size-lg1, .offcanvas-end.offcanvas-size-lg1 { width: 75vw; }
362
+ .offcanvas-top.offcanvas-size-lg1, .offcanvas-bottom.offcanvas-size-lg1 { height: 75vh; }
363
+ /* Off-canvas sizes (Large 2) */
364
+ .offcanvas-start.offcanvas-size-lg2, .offcanvas-end.offcanvas-size-lg2 { width: 80vw; }
365
+ .offcanvas-top.offcanvas-size-lg2, .offcanvas-bottom.offcanvas-size-lg2 { height: 80vh; }
366
+ /* Off-canvas sizes (Large 3) */
367
+ .offcanvas-start.offcanvas-size-lg3, .offcanvas-end.offcanvas-size-lg3 { width: 90vw; }
368
+ .offcanvas-top.offcanvas-size-lg3, .offcanvas-bottom.offcanvas-size-lg3 { height: 90vh; }
369
+ /* Off-canvas sizes (Full) */
370
+ .offcanvas-start.offcanvas-size-full, .offcanvas-end.offcanvas-size-full { width: 100vw; }
371
+ .offcanvas-top.offcanvas-size-full, .offcanvas-bottom.offcanvas-size-full { height: 100vh; }
342
372
  /* Color match the pagination link color to 'SharePoint Blue' */
343
373
  .page-link {
344
374
  border-color: #6c757d;
@@ -35,21 +35,13 @@ class _CheckboxGroup extends Base<ICheckboxGroupProps> implements ICheckboxGroup
35
35
 
36
36
  // Configure the card group
37
37
  private configure(cbTemplate: string) {
38
- let colSize = this.props.colSize > 0 && this.props.colSize < 13 ? this.props.colSize : (this.props.label ? 10 : 12);
39
38
  let renderRow = typeof (this.props.renderRow) === "boolean" ? this.props.renderRow : true;
40
39
 
41
- // See if we are not rendering a row
42
- if (!renderRow) {
43
- // Remove the row class
44
- this.el.classList.remove("row");
45
- }
46
-
47
40
  // See if a label is defined
48
41
  let label = this.el.querySelector("legend");
49
42
  if (label) {
50
43
  if (this.props.label && this.props.hideLabel != true) {
51
44
  // Add the label
52
- renderRow ? label.classList.add("col-" + (12 - colSize)) : null;
53
45
  label.innerHTML = this.props.label;
54
46
  } else {
55
47
  // Remove the label
@@ -60,10 +52,7 @@ class _CheckboxGroup extends Base<ICheckboxGroupProps> implements ICheckboxGroup
60
52
  // Get the group and configure the size
61
53
  let group = this.el.querySelector("div");
62
54
  if (group) {
63
- if (renderRow) {
64
- // Set the class
65
- group.classList.add("col-" + colSize);
66
- } else {
55
+ if (!renderRow) {
67
56
  // Remove the group element
68
57
  this.el.removeChild(group);
69
58
  }
@@ -42,6 +42,10 @@ export class CheckboxItem {
42
42
  this._elCheckbox.title = this.props.label || this._parent.title || "";
43
43
  }
44
44
 
45
+ // Set the column size
46
+ let colSize = this._parent.colSize > 0 && this._parent.colSize < 13 ? this._parent.colSize : 12;
47
+ this._el.classList.add("col-" + colSize);
48
+
45
49
  // See if the title property is defined
46
50
  if (this._parent.title) {
47
51
  // Set the title
@@ -1,8 +1,8 @@
1
1
  // Checkbox
2
2
  export const HTML = `
3
- <div class="row">
3
+ <div>
4
4
  <legend class="col-form-label"></legend>
5
- <div></div>
5
+ <div class="row"></div>
6
6
  </div>`.trim();
7
7
 
8
8
  // Checkbox
@@ -117,6 +117,7 @@ export class FormControl implements IFormControl {
117
117
  isReadonly: this._props.isReadonly,
118
118
  items: cbProps.items,
119
119
  onChange: cbProps.onChange,
120
+ renderRow: cbProps.renderRow,
120
121
  title: this._props.title,
121
122
  type: CheckboxGroupTypes.Checkbox,
122
123
  value: this._props.value
@@ -224,6 +225,7 @@ export class FormControl implements IFormControl {
224
225
  items: cbMultiProps.items,
225
226
  multi: true,
226
227
  onChange: cbMultiProps.onChange,
228
+ renderRow: cbMultiProps.renderRow,
227
229
  title: this._props.title,
228
230
  type: CheckboxGroupTypes.Checkbox,
229
231
  value: this._props.value
@@ -270,6 +272,7 @@ export class FormControl implements IFormControl {
270
272
  items: (this._props as IFormControlPropsMultiCheckbox).items,
271
273
  multi: true,
272
274
  onChange: (this._props as IFormControlPropsMultiCheckbox).onChange,
275
+ renderRow: (this._props as IFormControlPropsMultiCheckbox).renderRow,
273
276
  title: this._props.title,
274
277
  type: CheckboxGroupTypes.Radio,
275
278
  value: this._props.value
@@ -287,6 +290,7 @@ export class FormControl implements IFormControl {
287
290
  items: (this._props as IFormControlPropsMultiCheckbox).items,
288
291
  multi: true,
289
292
  onChange: (this._props as IFormControlPropsMultiCheckbox).onChange,
293
+ renderRow: (this._props as IFormControlPropsMultiCheckbox).renderRow,
290
294
  title: this._props.title,
291
295
  type: CheckboxGroupTypes.Switch,
292
296
  value: this._props.value
@@ -318,6 +322,7 @@ export class FormControl implements IFormControl {
318
322
  isReadonly: this._props.isReadonly,
319
323
  items: (this._props as IFormControlPropsCheckbox).items,
320
324
  onChange: (this._props as IFormControlPropsCheckbox).onChange,
325
+ renderRow: (this._props as IFormControlPropsCheckbox).renderRow,
321
326
  title: this._props.title,
322
327
  type: CheckboxGroupTypes.Radio,
323
328
  value: this._props.value
@@ -366,6 +371,7 @@ export class FormControl implements IFormControl {
366
371
  isReadonly: this._props.isReadonly,
367
372
  items: (this._props as IFormControlPropsCheckbox).items,
368
373
  onChange: (this._props as IFormControlPropsCheckbox).onChange,
374
+ renderRow: (this._props as IFormControlPropsCheckbox).renderRow,
369
375
  title: this._props.title,
370
376
  type: CheckboxGroupTypes.Switch,
371
377
  value: this._props.value
@@ -103,6 +103,7 @@ export interface IFormControlPropsCheckbox extends IFormControlProps {
103
103
  onControlRendering?: (control: IFormControlPropsCheckbox) => void | PromiseLike<IFormControlPropsCheckbox>;
104
104
  onGetValue?: (control: IFormControlPropsCheckbox) => any;
105
105
  onValidate?: (control: IFormControlPropsCheckbox, value: IFormControlValidationResult) => boolean | IFormControlValidationResult;
106
+ renderRow?: boolean;
106
107
  }
107
108
 
108
109
  /**
@@ -142,6 +143,7 @@ export interface IFormControlPropsMultiCheckbox extends IFormControlProps {
142
143
  onControlRendering?: (control: IFormControlPropsCheckbox) => void | PromiseLike<IFormControlPropsCheckbox>;
143
144
  onGetValue?: (control: IFormControlPropsCheckbox) => any;
144
145
  onValidate?: (control: IFormControlPropsCheckbox, value: IFormControlValidationResult) => boolean | IFormControlValidationResult;
146
+ renderRow?: boolean;
145
147
  }
146
148
 
147
149
  /**
@@ -4,22 +4,57 @@ import { Base } from "../base";
4
4
  import { appendContent } from "../common";
5
5
  import { HTML } from "./templates";
6
6
 
7
+
8
+ /**
9
+ * Offcanvas Size
10
+ */
11
+ export enum OffcanvasSize {
12
+ Small1 = 1,
13
+ Small2 = 2,
14
+ Small3 = 3,
15
+ Medium1 = 4,
16
+ Medium2 = 5,
17
+ Medium3 = 6,
18
+ Large1 = 7,
19
+ Large2 = 8,
20
+ Large3 = 9,
21
+ Full = 10
22
+ }
23
+
24
+ /**
25
+ * Offcanvas Size Classes
26
+ */
27
+ export const OffcanvasSizeClassNames = new ClassNames([
28
+ "offcanvas-size-sm1",
29
+ "offcanvas-size-sm2",
30
+ "offcanvas-size-sm3",
31
+ "offcanvas-size-md1",
32
+ "offcanvas-size-md2",
33
+ "offcanvas-size-md3",
34
+ "offcanvas-size-lg1",
35
+ "offcanvas-size-lg2",
36
+ "offcanvas-size-lg3",
37
+ "offcanvas-size-full"
38
+ ]);
39
+
7
40
  /**
8
41
  * Offcanvas Types
9
42
  */
10
43
  export enum OffcanvasTypes {
11
44
  Bottom = 1,
12
45
  End = 2,
13
- Start = 3
46
+ Start = 3,
47
+ Top = 4
14
48
  }
15
49
 
16
50
  /**
17
- * Offcanvas Classes
51
+ * Offcanvas Types Classes
18
52
  */
19
- export const OffcanvasClassNames = new ClassNames([
53
+ export const OffcanvasTypesClassNames = new ClassNames([
20
54
  "offcanvas-bottom",
21
55
  "offcanvas-end",
22
- "offcanvas-start"
56
+ "offcanvas-start",
57
+ "offcanvas-top"
23
58
  ]);
24
59
 
25
60
  /**
@@ -49,7 +84,8 @@ class _Offcanvas extends Base<IOffcanvasProps> implements IOffcanvas {
49
84
  // Set the attributes
50
85
  this.props.id ? this.el.id = this.props.id : null;
51
86
 
52
- // Set the type
87
+ // Set the size & type
88
+ this.setSize(this.props.size);
53
89
  this.setType(this.props.type);
54
90
 
55
91
  // Get the options
@@ -174,16 +210,29 @@ class _Offcanvas extends Base<IOffcanvasProps> implements IOffcanvas {
174
210
  this._autoClose ? this.configureAutoCloseEvent() : null;
175
211
  }
176
212
 
213
+ // Sets the offcanvas size
214
+ setSize(offcanvasSize: number) {
215
+ // Parse the class names
216
+ OffcanvasSizeClassNames.parse(className => {
217
+ // Remove the class names
218
+ this.el.classList.remove(className);
219
+ });
220
+
221
+ // Set the class name
222
+ let className = OffcanvasSizeClassNames.getByType(offcanvasSize);
223
+ if (className) { this.el.classList.add(className); }
224
+ }
225
+
177
226
  // Sets the offcanvas type
178
227
  setType(offcanvasType: number) {
179
228
  // Parse the class names
180
- OffcanvasClassNames.parse(className => {
229
+ OffcanvasTypesClassNames.parse(className => {
181
230
  // Remove the class names
182
231
  this.el.classList.remove(className);
183
232
  });
184
233
 
185
234
  // Set the class name
186
- let className = OffcanvasClassNames.getByType(offcanvasType) || OffcanvasClassNames.getByType(OffcanvasTypes.End);
235
+ let className = OffcanvasTypesClassNames.getByType(offcanvasType) || OffcanvasTypesClassNames.getByType(OffcanvasTypes.End);
187
236
  this.el.classList.add(className);
188
237
  }
189
238
 
@@ -108,6 +108,7 @@ export interface IOffcanvasProps<T = Element> extends IBaseProps<IOffcanvas> {
108
108
  onRenderBody?: (el?: HTMLDivElement, props?: IOffcanvasProps) => void;
109
109
  onRenderHeader?: (el?: HTMLDivElement, props?: IOffcanvasProps) => void;
110
110
  options?: IOffcanvasOptions;
111
+ size?: number;
111
112
  title?: string | T;
112
113
  type?: number;
113
114
  }
@@ -135,6 +136,22 @@ export interface IOffcanvasOptions {
135
136
  visible?: boolean;
136
137
  }
137
138
 
139
+ /**
140
+ * Offcanvas Size
141
+ */
142
+ export type IOffcanvasSize = {
143
+ Small1: number;
144
+ Small2: number;
145
+ Small3: number;
146
+ Medium1: number;
147
+ Medium2: number;
148
+ Medium3: number;
149
+ Large1: number;
150
+ Large2: number;
151
+ Large3: number;
152
+ Full: number;
153
+ }
154
+
138
155
  /**
139
156
  * Offcanvas Types
140
157
  */
@@ -142,4 +159,5 @@ export type IOffcanvasTypes = {
142
159
  Bottom: number;
143
160
  End: number;
144
161
  Start: number;
162
+ Top: number;
145
163
  }
@@ -1,4 +1,4 @@
1
- import tippy, { animateFill, followCursor, inlinePositioning, sticky } from "../../tippy.js";
1
+ import tippy, { animateFill, followCursor, inlinePositioning, sticky } from "tippy.js";
2
2
  import { ITippyProps } from "../types";
3
3
  import { IPopover, IPopoverProps } from "./types";
4
4
  import { Button } from "../button";
@@ -243,7 +243,7 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
243
243
  }
244
244
 
245
245
  // Create the tippy
246
- this._tippy = tippy(this.el, options);
246
+ this._tippy = tippy(this.el, options as any);
247
247
  }
248
248
 
249
249
  /**
@@ -1,4 +1,4 @@
1
- import tippy, { animateFill, followCursor, inlinePositioning, sticky } from "../../tippy.js";
1
+ import tippy, { animateFill, followCursor, inlinePositioning, sticky } from "tippy.js";
2
2
  import { ITippyProps } from "../types";
3
3
  import { ITooltip, ITooltipProps } from "./types";
4
4
  import { IButton } from "../button/types";
@@ -294,7 +294,7 @@ class _Tooltip extends Base<ITooltipProps> {
294
294
  }
295
295
 
296
296
  // Create the tippy
297
- this._tippy = tippy(this.props.target || this.el, options);
297
+ this._tippy = tippy(this.props.target || this.el, options as any);
298
298
  }
299
299
 
300
300
  /**
@@ -9,7 +9,7 @@ import * as Components from "./components";
9
9
  export { Components }
10
10
 
11
11
  // TippyJS library
12
- import tippy from "./tippy.js";
12
+ import tippy from "tippy.js";
13
13
  export { tippy }
14
14
 
15
15
  // Icons
package/src/index.ts CHANGED
@@ -9,7 +9,7 @@ import * as Components from "./components";
9
9
  export { Components }
10
10
 
11
11
  // TippyJS library
12
- import tippy from "./tippy.js";
12
+ import tippy from "tippy.js";
13
13
  export { tippy }
14
14
 
15
15
  // Bootstrap Global library
package/build/tippy.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see tippy.js.LICENSE.txt */
2
- !function(){"use strict";var e,t={569:function(e,t){function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function r(e){return e instanceof n(e).Element||e instanceof Element}function o(e){return e instanceof n(e).HTMLElement||e instanceof HTMLElement}function i(e){return"undefined"!=typeof ShadowRoot&&(e instanceof n(e).ShadowRoot||e instanceof ShadowRoot)}Object.defineProperty(t,"__esModule",{value:!0});var a=Math.max,s=Math.min,c=Math.round;function u(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(o(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=c(n.width)/s||1),a>0&&(i=c(n.height)/a||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function f(e){var t=n(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function p(e){return e?(e.nodeName||"").toLowerCase():null}function l(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function d(e){return u(l(e)).left+f(e).scrollLeft}function v(e){return n(e).getComputedStyle(e)}function m(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function h(e,t,r){void 0===r&&(r=!1);var i,a,s=o(t),v=o(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),h=l(t),g=u(e,v),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(s||!s&&!r)&&(("body"!==p(t)||m(h))&&(y=(i=t)!==n(i)&&o(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:f(i)),o(t)?((b=u(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):h&&(b.x=d(h))),{x:g.left+y.scrollLeft-b.x,y:g.top+y.scrollTop-b.y,width:g.width,height:g.height}}function g(e){var t=u(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function y(e){return"html"===p(e)?e:e.assignedSlot||e.parentNode||(i(e)?e.host:null)||l(e)}function b(e){return["html","body","#document"].indexOf(p(e))>=0?e.ownerDocument.body:o(e)&&m(e)?e:b(y(e))}function w(e,t){var r;void 0===t&&(t=[]);var o=b(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=n(o),s=i?[a].concat(a.visualViewport||[],m(o)?o:[]):o,c=t.concat(s);return i?c:c.concat(w(y(s)))}function x(e){return["table","td","th"].indexOf(p(e))>=0}function O(e){return o(e)&&"fixed"!==v(e).position?e.offsetParent:null}function E(e){for(var t=n(e),r=O(e);r&&x(r)&&"static"===v(r).position;)r=O(r);return r&&("html"===p(r)||"body"===p(r)&&"static"===v(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&o(e)&&"fixed"===v(e).position)return null;var n=y(e);for(i(n)&&(n=n.host);o(n)&&["html","body"].indexOf(p(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var A="top",T="bottom",C="right",j="left",D="auto",L=[A,T,C,j],P="start",k="end",M="viewport",R="popper",S=L.reduce((function(e,t){return e.concat([t+"-"+P,t+"-"+k])}),[]),V=[].concat(L,[D]).reduce((function(e,t){return e.concat([t,t+"-"+P,t+"-"+k])}),[]),B=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function W(e){return e.split("-")[0]}function I(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&i(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function N(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function U(e,t){return t===M?N(function(e){var t=n(e),r=l(e),o=t.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;return o&&(i=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,c=o.offsetTop)),{width:i,height:a,x:s+d(e),y:c}}(e)):r(t)?function(e){var t=u(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):N(function(e){var t,n=l(e),r=f(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=a(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=a(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+d(e),u=-r.scrollTop;return"rtl"===v(o||n).direction&&(c+=a(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:c,y:u}}(l(e)))}function _(e){return e.split("-")[1]}function q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function F(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?W(o):null,a=o?_(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case A:t={x:s,y:n.y-r.height};break;case T:t={x:s,y:n.y+n.height};break;case C:t={x:n.x+n.width,y:c};break;case j:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=i?q(i):null;if(null!=u){var f="y"===u?"height":"width";switch(a){case P:t[u]=t[u]-(n[f]/2-r[f]/2);break;case k:t[u]=t[u]+(n[f]/2-r[f]/2)}}return t}function X(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Y(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function z(e,t){void 0===t&&(t={});var n=t,i=n.placement,c=void 0===i?e.placement:i,f=n.boundary,d=void 0===f?"clippingParents":f,m=n.rootBoundary,h=void 0===m?M:m,g=n.elementContext,b=void 0===g?R:g,x=n.altBoundary,O=void 0!==x&&x,j=n.padding,D=void 0===j?0:j,P=X("number"!=typeof D?D:Y(D,L)),k=b===R?"reference":R,S=e.rects.popper,V=e.elements[O?k:b],B=function(e,t,n){var i="clippingParents"===t?function(e){var t=w(y(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&o(e)?E(e):e;return r(n)?t.filter((function(e){return r(e)&&I(e,n)&&"body"!==p(e)})):[]}(e):[].concat(t),c=[].concat(i,[n]),u=c[0],f=c.reduce((function(t,n){var r=U(e,n);return t.top=a(r.top,t.top),t.right=s(r.right,t.right),t.bottom=s(r.bottom,t.bottom),t.left=a(r.left,t.left),t}),U(e,u));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}(r(V)?V:V.contextElement||l(e.elements.popper),d,h),H=u(e.elements.reference),W=F({reference:H,element:S,strategy:"absolute",placement:c}),_=N(Object.assign({},S,W)),q=b===R?_:H,z={top:B.top-q.top+P.top,bottom:q.bottom-B.bottom+P.bottom,left:B.left-q.left+P.left,right:q.right-B.right+P.right},$=e.modifiersData.offset;if(b===R&&$){var G=$[c];Object.keys(z).forEach((function(e){var t=[C,T].indexOf(e)>=0?1:-1,n=[A,T].indexOf(e)>=0?"y":"x";z[e]+=G[n]*t}))}return z}var $={placement:"bottom",modifiers:[],strategy:"absolute"};function G(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function J(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?$:i;return function(e,t,n){void 0===n&&(n=a);var i,s,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},$,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],f=!1,p={state:c,setOptions:function(n){var i="function"==typeof n?n(c.options):n;l(),c.options=Object.assign({},a,c.options,i),c.scrollParents={reference:r(e)?w(e):e.contextElement?w(e.contextElement):[],popper:w(t)};var s,f,d=function(e){var t=H(e);return B.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(o,c.options.modifiers),f=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(f).map((function(e){return f[e]}))));return c.orderedModifiers=d.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:c,name:t,instance:p,options:r});u.push(i||function(){})}})),p.update()},forceUpdate:function(){if(!f){var e=c.elements,t=e.reference,n=e.popper;if(G(t,n)){c.rects={reference:h(t,E(n),"fixed"===c.options.strategy),popper:g(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<c.orderedModifiers.length;r++)if(!0!==c.reset){var o=c.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,u=o.name;"function"==typeof i&&(c=i({state:c,options:s,name:u,instance:p})||c)}else c.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){p.forceUpdate(),e(c)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){l(),f=!0}};if(!G(e,t))return p;function l(){u.forEach((function(e){return e()})),u=[]}return p.setOptions(n).then((function(e){!f&&n.onFirstUpdate&&n.onFirstUpdate(e)})),p}}var K={passive:!0},Q={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,c=void 0===s||s,u=n(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach((function(e){e.addEventListener("scroll",r.update,K)})),c&&u.addEventListener("resize",r.update,K),function(){a&&f.forEach((function(e){e.removeEventListener("scroll",r.update,K)})),c&&u.removeEventListener("resize",r.update,K)}},data:{}},Z={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=F({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,u=e.position,f=e.gpuAcceleration,p=e.adaptive,d=e.roundOffsets,m=e.isFixed,h=s.x,g=void 0===h?0:h,y=s.y,b=void 0===y?0:y,w="function"==typeof d?d({x:g,y:b}):{x:g,y:b};g=w.x,b=w.y;var x=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),D=j,L=A,P=window;if(p){var M=E(r),R="clientHeight",S="clientWidth";M===n(r)&&"static"!==v(M=l(r)).position&&"absolute"===u&&(R="scrollHeight",S="scrollWidth"),(i===A||(i===j||i===C)&&a===k)&&(L=T,b-=(m&&M===P&&P.visualViewport?P.visualViewport.height:M[R])-o.height,b*=f?1:-1),i!==j&&(i!==A&&i!==T||a!==k)||(D=C,g-=(m&&M===P&&P.visualViewport?P.visualViewport.width:M[S])-o.width,g*=f?1:-1)}var V,B=Object.assign({position:u},p&&ee),H=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:c(t*r)/r||0,y:c(n*r)/r||0}}({x:g,y:b}):{x:g,y:b};return g=H.x,b=H.y,f?Object.assign({},B,((V={})[L]=O?"0":"",V[D]=x?"0":"",V.transform=(P.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",V)):Object.assign({},B,((t={})[L]=O?b+"px":"",t[D]=x?g+"px":"",t.transform="",t))}var ne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:W(t.placement),variation:_(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},re={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&p(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(r)&&p(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=V.reduce((function(e,n){return e[n]=function(e,t,n){var r=W(e),o=[j,A].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[j,C].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},ie={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(e){return e.replace(/left|right|bottom|top/g,(function(e){return ie[e]}))}var se={start:"end",end:"start"};function ce(e){return e.replace(/start|end/g,(function(e){return se[e]}))}function ue(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?V:c,f=_(r),p=f?s?S:S.filter((function(e){return _(e)===f})):L,l=p.filter((function(e){return u.indexOf(e)>=0}));0===l.length&&(l=p);var d=l.reduce((function(t,n){return t[n]=z(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[W(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var fe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,v=void 0===d||d,m=n.allowedAutoPlacements,h=t.options.placement,g=W(h),y=c||(g!==h&&v?function(e){if(W(e)===D)return[];var t=ae(e);return[ce(e),t,ce(t)]}(h):[ae(h)]),b=[h].concat(y).reduce((function(e,n){return e.concat(W(n)===D?ue(t,{placement:n,boundary:f,rootBoundary:p,padding:u,flipVariations:v,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,E=!0,L=b[0],k=0;k<b.length;k++){var M=b[k],R=W(M),S=_(M)===P,V=[A,T].indexOf(R)>=0,B=V?"width":"height",H=z(t,{placement:M,boundary:f,rootBoundary:p,altBoundary:l,padding:u}),I=V?S?C:j:S?T:A;w[B]>x[B]&&(I=ae(I));var N=ae(I),U=[];if(i&&U.push(H[R]<=0),s&&U.push(H[I]<=0,H[N]<=0),U.every((function(e){return e}))){L=M,E=!1;break}O.set(M,U)}if(E)for(var q=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},F=v?3:1;F>0&&"break"!==q(F);F--);t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pe(e,t,n){return a(e,s(t,n))}var le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,c=n.altAxis,u=void 0!==c&&c,f=n.boundary,p=n.rootBoundary,l=n.altBoundary,d=n.padding,v=n.tether,m=void 0===v||v,h=n.tetherOffset,y=void 0===h?0:h,b=z(t,{boundary:f,rootBoundary:p,padding:d,altBoundary:l}),w=W(t.placement),x=_(t.placement),O=!x,D=q(w),L="x"===D?"y":"x",k=t.modifiersData.popperOffsets,M=t.rects.reference,R=t.rects.popper,S="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,V="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(k){if(i){var I,N="y"===D?A:j,U="y"===D?T:C,F="y"===D?"height":"width",X=k[D],Y=X+b[N],$=X-b[U],G=m?-R[F]/2:0,J=x===P?M[F]:R[F],K=x===P?-R[F]:-M[F],Q=t.elements.arrow,Z=m&&Q?g(Q):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[N],ne=ee[U],re=pe(0,M[F],Z[F]),oe=O?M[F]/2-G-re-te-V.mainAxis:J-re-te-V.mainAxis,ie=O?-M[F]/2+G+re+ne+V.mainAxis:K+re+ne+V.mainAxis,ae=t.elements.arrow&&E(t.elements.arrow),se=ae?"y"===D?ae.clientTop||0:ae.clientLeft||0:0,ce=null!=(I=null==B?void 0:B[D])?I:0,ue=X+ie-ce,fe=pe(m?s(Y,X+oe-ce-se):Y,X,m?a($,ue):$);k[D]=fe,H[D]=fe-X}if(u){var le,de="x"===D?A:j,ve="x"===D?T:C,me=k[L],he="y"===L?"height":"width",ge=me+b[de],ye=me-b[ve],be=-1!==[A,j].indexOf(w),we=null!=(le=null==B?void 0:B[L])?le:0,xe=be?ge:me-M[he]-R[he]-we+V.altAxis,Oe=be?me+M[he]+R[he]-we-V.altAxis:ye,Ee=m&&be?function(e,t,n){var r=pe(e,t,n);return r>n?n:r}(xe,me,Oe):pe(m?xe:ge,me,m?Oe:ye);k[L]=Ee,H[L]=Ee-me}t.modifiersData[r]=H}},requiresIfExists:["offset"]},de={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=W(n.placement),c=q(s),u=[j,C].indexOf(s)>=0?"height":"width";if(i&&a){var f=function(e,t){return X("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Y(e,L))}(o.padding,n),p=g(i),l="y"===c?A:j,d="y"===c?T:C,v=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],h=E(i),y=h?"y"===c?h.clientHeight||0:h.clientWidth||0:0,b=v/2-m/2,w=f[l],x=y-p[u]-f[d],O=y/2-p[u]/2+b,D=pe(w,O,x),P=c;n.modifiersData[r]=((t={})[P]=D,t.centerOffset=D-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&I(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function me(e){return[A,C,T,j].some((function(t){return e[t]>=0}))}var he={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=z(t,{elementContext:"reference"}),s=z(t,{altBoundary:!0}),c=ve(a,r),u=ve(s,o,i),f=me(c),p=me(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}},ge=J({defaultModifiers:[Q,Z,ne,re]}),ye=[Q,Z,ne,re,oe,fe,le,de,he],be=J({defaultModifiers:ye});t.applyStyles=re,t.arrow=de,t.computeStyles=ne,t.createPopper=be,t.createPopperLite=ge,t.defaultModifiers=ye,t.detectOverflow=z,t.eventListeners=Q,t.flip=fe,t.hide=he,t.offset=oe,t.popperGenerator=J,t.popperOffsets=Z,t.preventOverflow=le},323:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(569),o="tippy-content",i="tippy-backdrop",a="tippy-arrow",s="tippy-svg-arrow",c={passive:!0,capture:!0},u=function(){return document.body};function f(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function p(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function l(e,t){return"function"==typeof e?e.apply(void 0,t):e}function d(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function v(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function m(e){return[].concat(e)}function h(e,t){-1===e.indexOf(t)&&e.push(t)}function g(e){return e.split("-")[0]}function y(e){return[].slice.call(e)}function b(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function w(){return document.createElement("div")}function x(e){return["Element","Fragment"].some((function(t){return p(e,t)}))}function O(e){return p(e,"MouseEvent")}function E(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function A(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function T(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function C(e){var t,n=m(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function j(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function D(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var L={isTouch:!1},P=0;function k(){L.isTouch||(L.isTouch=!0,window.performance&&document.addEventListener("mousemove",M))}function M(){var e=performance.now();e-P<20&&(L.isTouch=!1,document.removeEventListener("mousemove",M)),P=e}function R(){var e=document.activeElement;if(E(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var S=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),V=Object.assign({appendTo:u,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),B=Object.keys(V);function H(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=V[o])?r:i),t}),{});return Object.assign({},e,t)}function W(e,t){var n=Object.assign({},t,{content:l(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(H(Object.assign({},V,{plugins:t}))):B).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},V.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function I(e,t){e.innerHTML=t}function N(e){var t=w();return!0===e?t.className=a:(t.className=s,x(e)?t.appendChild(e):I(t,e)),t}function U(e,t){x(t.content)?(I(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?I(e,t.content):e.textContent=t.content)}function _(e){var t=e.firstElementChild,n=y(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(o)})),arrow:n.find((function(e){return e.classList.contains(a)||e.classList.contains(s)})),backdrop:n.find((function(e){return e.classList.contains(i)}))}}function q(e){var t=w(),n=w();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=w();function i(n,r){var o=_(t),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||U(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(N(r.arrow))):i.appendChild(N(r.arrow)):s&&i.removeChild(s)}return r.className=o,r.setAttribute("data-state","hidden"),U(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}q.$$tippy=!0;var F=1,X=[],Y=[];function z(e,t){var n,o,i,a,s,p,v,x,E=W(e,Object.assign({},V,H(b(t)))),P=!1,k=!1,M=!1,R=!1,B=[],I=d(we,E.interactiveDebounce),N=F++,U=(x=E.plugins).filter((function(e,t){return x.indexOf(e)===t})),q={id:N,reference:e,popper:w(),popperInstance:null,props:E,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:U,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(!q.state.isDestroyed){ae("onBeforeUpdate",[q,t]),ye();var n=q.props,r=W(e,Object.assign({},n,b(t),{ignoreAttributes:!0}));q.props=r,ge(),n.interactiveDebounce!==r.interactiveDebounce&&(ue(),I=d(we,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?m(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),ce(),ie(),G&&G(n,r),q.popperInstance&&(Ae(),Ce().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),ae("onAfterUpdate",[q,t])}},setContent:function(e){q.setProps({content:e})},show:function(){var e=q.state.isVisible,t=q.state.isDestroyed,n=!q.state.isEnabled,r=L.isTouch&&!q.props.touch,o=f(q.props.duration,0,V.duration);if(!(e||t||n||r||te().hasAttribute("disabled")||(ae("onShow",[q],!1),!1===q.props.onShow(q)))){if(q.state.isVisible=!0,ee()&&($.style.visibility="visible"),ie(),de(),q.state.isMounted||($.style.transition="none"),ee()){var i=re();A([i.box,i.content],0)}var a,s,c;p=function(){var e;if(q.state.isVisible&&!R){if(R=!0,$.offsetHeight,$.style.transition=q.props.moveTransition,ee()&&q.props.animation){var t=re(),n=t.box,r=t.content;A([n,r],o),T([n,r],"visible")}se(),ce(),h(Y,q),null==(e=q.popperInstance)||e.forceUpdate(),ae("onMount",[q]),q.props.animation&&ee()&&function(e,t){me(e,(function(){q.state.isShown=!0,ae("onShown",[q])}))}(o)}},s=q.props.appendTo,c=te(),(a=q.props.interactive&&s===u||"parent"===s?c.parentNode:l(s,[c])).contains($)||a.appendChild($),q.state.isMounted=!0,Ae()}},hide:function(){var e=!q.state.isVisible,t=q.state.isDestroyed,n=!q.state.isEnabled,r=f(q.props.duration,1,V.duration);if(!(e||t||n)&&(ae("onHide",[q],!1),!1!==q.props.onHide(q))){if(q.state.isVisible=!1,q.state.isShown=!1,R=!1,P=!1,ee()&&($.style.visibility="hidden"),ue(),ve(),ie(!0),ee()){var o=re(),i=o.box,a=o.content;q.props.animation&&(A([i,a],r),T([i,a],"hidden"))}se(),ce(),q.props.animation?ee()&&function(e,t){me(e,(function(){!q.state.isVisible&&$.parentNode&&$.parentNode.contains($)&&t()}))}(r,q.unmount):q.unmount()}},hideWithInteractivity:function(e){ne().addEventListener("mousemove",I),h(X,I),I(e)},enable:function(){q.state.isEnabled=!0},disable:function(){q.hide(),q.state.isEnabled=!1},unmount:function(){q.state.isVisible&&q.hide(),q.state.isMounted&&(Te(),Ce().forEach((function(e){e._tippy.unmount()})),$.parentNode&&$.parentNode.removeChild($),Y=Y.filter((function(e){return e!==q})),q.state.isMounted=!1,ae("onHidden",[q]))},destroy:function(){q.state.isDestroyed||(q.clearDelayTimeouts(),q.unmount(),ye(),delete e._tippy,q.state.isDestroyed=!0,ae("onDestroy",[q]))}};if(!E.render)return q;var z=E.render(q),$=z.popper,G=z.onUpdate;$.setAttribute("data-tippy-root",""),$.id="tippy-"+q.id,q.popper=$,e._tippy=q,$._tippy=q;var J=U.map((function(e){return e.fn(q)})),K=e.hasAttribute("aria-expanded");return ge(),ce(),ie(),ae("onCreate",[q]),E.showOnCreate&&je(),$.addEventListener("mouseenter",(function(){q.props.interactive&&q.state.isVisible&&q.clearDelayTimeouts()})),$.addEventListener("mouseleave",(function(){q.props.interactive&&q.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",I)})),q;function Q(){var e=q.props.touch;return Array.isArray(e)?e:[e,0]}function Z(){return"hold"===Q()[0]}function ee(){var e;return!(null==(e=q.props.render)||!e.$$tippy)}function te(){return v||e}function ne(){var e=te().parentNode;return e?C(e):document}function re(){return _($)}function oe(e){return q.state.isMounted&&!q.state.isVisible||L.isTouch||a&&"focus"===a.type?0:f(q.props.delay,e?0:1,V.delay)}function ie(e){void 0===e&&(e=!1),$.style.pointerEvents=q.props.interactive&&!e?"":"none",$.style.zIndex=""+q.props.zIndex}function ae(e,t,n){var r;void 0===n&&(n=!0),J.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(r=q.props)[e].apply(r,t)}function se(){var t=q.props.aria;if(t.content){var n="aria-"+t.content,r=$.id;m(q.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(q.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function ce(){!K&&q.props.aria.expanded&&m(q.props.triggerTarget||e).forEach((function(e){q.props.interactive?e.setAttribute("aria-expanded",q.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ue(){ne().removeEventListener("mousemove",I),X=X.filter((function(e){return e!==I}))}function fe(t){if(!L.isTouch||!M&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!q.props.interactive||!D($,n)){if(m(q.props.triggerTarget||e).some((function(e){return D(e,n)}))){if(L.isTouch)return;if(q.state.isVisible&&q.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[q,t]);!0===q.props.hideOnClick&&(q.clearDelayTimeouts(),q.hide(),k=!0,setTimeout((function(){k=!1})),q.state.isMounted||ve())}}}function pe(){M=!0}function le(){M=!1}function de(){var e=ne();e.addEventListener("mousedown",fe,!0),e.addEventListener("touchend",fe,c),e.addEventListener("touchstart",le,c),e.addEventListener("touchmove",pe,c)}function ve(){var e=ne();e.removeEventListener("mousedown",fe,!0),e.removeEventListener("touchend",fe,c),e.removeEventListener("touchstart",le,c),e.removeEventListener("touchmove",pe,c)}function me(e,t){var n=re().box;function r(e){e.target===n&&(j(n,"remove",r),t())}if(0===e)return t();j(n,"remove",s),j(n,"add",r),s=r}function he(t,n,r){void 0===r&&(r=!1),m(q.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),B.push({node:e,eventType:t,handler:n,options:r})}))}function ge(){var e;Z()&&(he("touchstart",be,{passive:!0}),he("touchend",xe,{passive:!0})),(e=q.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(he(e,be),e){case"mouseenter":he("mouseleave",xe);break;case"focus":he(S?"focusout":"blur",Oe);break;case"focusin":he("focusout",Oe)}}))}function ye(){B.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),B=[]}function be(e){var t,n=!1;if(q.state.isEnabled&&!Ee(e)&&!k){var r="focus"===(null==(t=a)?void 0:t.type);a=e,v=e.currentTarget,ce(),!q.state.isVisible&&O(e)&&X.forEach((function(t){return t(e)})),"click"===e.type&&(q.props.trigger.indexOf("mouseenter")<0||P)&&!1!==q.props.hideOnClick&&q.state.isVisible?n=!0:je(e),"click"===e.type&&(P=!n),n&&!r&&De(e)}}function we(e){var t=e.target,n=te().contains(t)||$.contains(t);if("mousemove"!==e.type||!n){var r=Ce().concat($).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:E}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=g(o.placement),s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,f="right"===a?s.left.x:0,p="left"===a?s.right.x:0,l=t.top-r+c>i,d=r-t.bottom-u>i,v=t.left-n+f>i,m=n-t.right-p>i;return l||d||v||m}))})(r,e)&&(ue(),De(e))}}function xe(e){Ee(e)||q.props.trigger.indexOf("click")>=0&&P||(q.props.interactive?q.hideWithInteractivity(e):De(e))}function Oe(e){q.props.trigger.indexOf("focusin")<0&&e.target!==te()||q.props.interactive&&e.relatedTarget&&$.contains(e.relatedTarget)||De(e)}function Ee(e){return!!L.isTouch&&Z()!==e.type.indexOf("touch")>=0}function Ae(){Te();var t=q.props,n=t.popperOptions,o=t.placement,i=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,c=ee()?_($).arrow:null,u=a?{getBoundingClientRect:a,contextElement:a.contextElement||te()}:e,f=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=re().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];ee()&&c&&f.push({name:"arrow",options:{element:c,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),q.popperInstance=r.createPopper(u,$,Object.assign({},n,{placement:o,onFirstUpdate:p,modifiers:f}))}function Te(){q.popperInstance&&(q.popperInstance.destroy(),q.popperInstance=null)}function Ce(){return y($.querySelectorAll("[data-tippy-root]"))}function je(e){q.clearDelayTimeouts(),e&&ae("onTrigger",[q,e]),de();var t=oe(!0),r=Q(),o=r[0],i=r[1];L.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){q.show()}),t):q.show()}function De(e){if(q.clearDelayTimeouts(),ae("onUntrigger",[q,e]),q.state.isVisible){if(!(q.props.trigger.indexOf("mouseenter")>=0&&q.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&P)){var t=oe(!1);t?o=setTimeout((function(){q.state.isVisible&&q.hide()}),t):i=requestAnimationFrame((function(){q.hide()}))}}else ve()}}function $(e,t){void 0===t&&(t={});var n=V.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",k,c),window.addEventListener("blur",R);var r,o=Object.assign({},t,{plugins:n}),i=(r=e,x(r)?[r]:function(e){return p(e,"NodeList")}(r)?y(r):Array.isArray(r)?r:y(document.querySelectorAll(r))).reduce((function(e,t){var n=t&&z(t,o);return n&&e.push(n),e}),[]);return x(e)?i[0]:i}$.defaultProps=V,$.setDefaultProps=function(e){Object.keys(e).forEach((function(t){V[t]=e[t]}))},$.currentInput=L;var G=Object.assign({},r.applyStyles,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),J={mouseover:"mouseenter",focusin:"focus",click:"click"},K={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=_(e.popper),r=n.box,o=n.content,a=e.props.animateFill?function(){var e=w();return e.className=i,T([e],"hidden"),e}():null;return{onCreate:function(){a&&(r.insertBefore(a,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(a){var e=r.style.transitionDuration,t=Number(e.replace("ms",""));o.style.transitionDelay=Math.round(t/10)+"ms",a.style.transitionDuration=e,T([a],"visible")}},onShow:function(){a&&(a.style.transitionDuration="0ms")},onHide:function(){a&&T([a],"hidden")}}}},Q={clientX:0,clientY:0},Z=[];function ee(e){var t=e.clientX,n=e.clientY;Q={clientX:t,clientY:n}}var te={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=C(e.props.triggerTarget||t),r=!1,o=!1,i=!0,a=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function c(){n.addEventListener("mousemove",p)}function u(){n.removeEventListener("mousemove",p)}function f(){r=!0,e.setProps({getReferenceClientRect:null}),r=!1}function p(n){var r=!n.target||t.contains(n.target),o=e.props.followCursor,i=n.clientX,a=n.clientY,s=t.getBoundingClientRect(),c=i-s.left,u=a-s.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,r=a;"initial"===o&&(n=e.left+c,r=e.top+u);var s="horizontal"===o?e.top:r,f="vertical"===o?e.right:n,p="horizontal"===o?e.bottom:r,l="vertical"===o?e.left:n;return{width:f-l,height:p-s,top:s,right:f,bottom:p,left:l}}})}function l(){e.props.followCursor&&(Z.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",ee)}(n))}function d(){0===(Z=Z.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",ee)}(n)}return{onCreate:l,onDestroy:d,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;r||void 0!==i&&a.followCursor!==i&&(d(),i?(l(),!e.state.isMounted||o||s()||c()):(u(),f()))},onMount:function(){e.props.followCursor&&!o&&(i&&(p(Q),i=!1),s()||c())},onTrigger:function(e,t){O(t)&&(Q={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){e.props.followCursor&&(f(),u(),i=!0)}}}},ne={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference,r=-1,o=!1,i=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(o){var a=o.state;e.props.inlinePositioning&&(-1!==i.indexOf(a.placement)&&(i=[]),t!==a.placement&&-1===i.indexOf(a.placement)&&(i.push(a.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,r){if(n.length<2||null===e)return t;if(2===n.length&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":var o=n[0],i=n[n.length-1],a="top"===e,s=o.top,c=i.bottom,u=a?o.left:i.left,f=a?o.right:i.right;return{top:s,bottom:c,left:u,right:f,width:f-u,height:c-s};case"left":case"right":var p=Math.min.apply(Math,n.map((function(e){return e.left}))),l=Math.max.apply(Math,n.map((function(e){return e.right}))),d=n.filter((function(t){return"left"===e?t.left===p:t.right===l})),v=d[0].top,m=d[d.length-1].bottom;return{top:v,bottom:m,left:p,right:l,width:l-p,height:m-v};default:return t}}(g(e),n.getBoundingClientRect(),y(n.getClientRects()),r)}(a.placement)}})),t=a.placement)}};function s(){var t;o||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,a),o=!0,e.setProps(t),o=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(O(n)){var o=y(e.reference.getClientRects()),i=o.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),a=o.indexOf(i);r=a>-1?a:r}},onHidden:function(){r=-1}}}},re={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function r(t){return!0===e.props.sticky||e.props.sticky===t}var o=null,i=null;function a(){var s=r("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,c=r("popper")?n.getBoundingClientRect():null;(s&&oe(o,s)||c&&oe(i,c))&&e.popperInstance&&e.popperInstance.update(),o=s,i=c,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function oe(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}$.setDefaultProps({render:q}),t.animateFill=K,t.createSingleton=function(e,t){var n;void 0===t&&(t={});var r,o=e,i=[],a=[],s=t.overrides,c=[],u=!1;function f(){a=o.map((function(e){return m(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function p(){i=o.map((function(e){return e.reference}))}function l(e){o.forEach((function(t){e?t.enable():t.disable()}))}function d(e){return o.map((function(t){var n=t.setProps;return t.setProps=function(o){n(o),t.reference===r&&e.setProps(o)},function(){t.setProps=n}}))}function h(e,t){var n=a.indexOf(t);if(t!==r){r=t;var c=(s||[]).concat("content").reduce((function(e,t){return e[t]=o[n].props[t],e}),{});e.setProps(Object.assign({},c,{getReferenceClientRect:"function"==typeof c.getReferenceClientRect?c.getReferenceClientRect:function(){var e;return null==(e=i[n])?void 0:e.getBoundingClientRect()}}))}}l(!1),p(),f();var g={fn:function(){return{onDestroy:function(){l(!0)},onHidden:function(){r=null},onClickOutside:function(e){e.props.showOnCreate&&!u&&(u=!0,r=null)},onShow:function(e){e.props.showOnCreate&&!u&&(u=!0,h(e,i[0]))},onTrigger:function(e,t){h(e,t.currentTarget)}}}},y=$(w(),Object.assign({},v(t,["overrides"]),{plugins:[g].concat(t.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[G])})})),b=y.show;y.show=function(e){if(b(),!r&&null==e)return h(y,i[0]);if(!r||null!=e){if("number"==typeof e)return i[e]&&h(y,i[e]);if(o.indexOf(e)>=0){var t=e.reference;return h(y,t)}return i.indexOf(e)>=0?h(y,e):void 0}},y.showNext=function(){var e=i[0];if(!r)return y.show(0);var t=i.indexOf(r);y.show(i[t+1]||e)},y.showPrevious=function(){var e=i[i.length-1];if(!r)return y.show(e);var t=i.indexOf(r),n=i[t-1]||e;y.show(n)};var x=y.setProps;return y.setProps=function(e){s=e.overrides||s,x(e)},y.setInstances=function(e){l(!0),c.forEach((function(e){return e()})),o=e,l(!1),p(),f(),c=d(y),y.setProps({triggerTarget:a})},c=d(y),y},t.default=$,t.delegate=function(e,t){var n=[],r=[],o=!1,i=t.target,a=v(t,["target"]),s=Object.assign({},a,{trigger:"manual",touch:!1}),u=Object.assign({touch:V.touch},a,{showOnCreate:!0}),f=$(e,s);function p(e){if(e.target&&!o){var n=e.target.closest(i);if(n){var a=n.getAttribute("data-tippy-trigger")||t.trigger||V.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof u.touch||"touchstart"!==e.type&&a.indexOf(J[e.type])<0)){var s=$(n,u);s&&(r=r.concat(s))}}}}function l(e,t,r,o){void 0===o&&(o=!1),e.addEventListener(t,r,o),n.push({node:e,eventType:t,handler:r,options:o})}return m(f).forEach((function(e){var t=e.destroy,i=e.enable,a=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&r.forEach((function(e){e.destroy()})),r=[],n.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),n=[],t()},e.enable=function(){i(),r.forEach((function(e){return e.enable()})),o=!1},e.disable=function(){a(),r.forEach((function(e){return e.disable()})),o=!0},function(e){var t=e.reference;l(t,"touchstart",p,c),l(t,"mouseover",p),l(t,"focusin",p),l(t,"click",p)}(e)})),f},t.followCursor=te,t.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;Y.forEach((function(e){var t=!1;if(n&&(t=E(n)?e.reference===n:e.popper===n.popper),!t){var o=e.props.duration;e.setProps({duration:r}),e.hide(),e.state.isDestroyed||e.setProps({duration:o})}}))},t.inlinePositioning=ne,t.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',t.sticky=re}},n={};e=function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}(323),e.default,e.animateFill,e.createSingleton,e.delegate,e.followCursor,e.hideAll,e.inlinePositioning,e.roundArrow,e.sticky}();
@@ -1,5 +0,0 @@
1
- /**!
2
- * tippy.js v6.3.7
3
- * (c) 2017-2021 atomiks
4
- * MIT License
5
- */
@@ -1 +0,0 @@
1
- /*! For license information please see tippy.js.LICENSE.txt */
package/pre-build.js DELETED
@@ -1,30 +0,0 @@
1
- var fs = require('fs');
2
-
3
- // Deletes a directory
4
- function deleteDirectory(src) {
5
- // Ensure the directory exists
6
- if (fs.existsSync(src) && fs.lstatSync(src).isDirectory()) {
7
- // Get each item in the directory
8
- fs.readdirSync(src).forEach(function(item) {
9
- var srcPath = src + "/" + item;
10
-
11
- // See if this is a directory
12
- if (fs.lstatSync(srcPath).isDirectory()) {
13
- // Delete the folder recursively
14
- deleteDirectory(srcPath);
15
- } else {
16
- // Delete the file
17
- fs.unlinkSync(srcPath);
18
- }
19
- });
20
-
21
- // Delete the directory
22
- fs.rmdirSync(src);
23
- }
24
- };
25
-
26
- // Log
27
- console.log("Removing the tippy.js build directory");
28
-
29
- // Delete the folders
30
- deleteDirectory("./build/tippy.js");
@@ -1,15 +0,0 @@
1
- const tippyJS = require("./tippy.js");
2
-
3
- // Plugins
4
- export const animateFill = tippyJS.animateFill;
5
- export const createSingleton = tippyJS.createSingleton;
6
- export const delegate = tippyJS.delegate;
7
- export const followCursor = tippyJS.followCursor;
8
- export const hideAll = tippyJS.hideAll;
9
- export const inlinePositioning = tippyJS.inlinePositioning;
10
- export const roundArrow = tippyJS.roundArrow;
11
- export const sticky = tippyJS.sticky;
12
-
13
- // Default
14
- const tippy = tippyJS.default || tippyJS;
15
- export default tippy;