@aquera/nile-elements 1.6.0 → 1.6.1

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 (81) hide show
  1. package/README.md +3 -0
  2. package/dist/index.cjs.js +1 -1
  3. package/dist/index.esm.js +1 -1
  4. package/dist/index.js +301 -185
  5. package/dist/nile-floating-panel/index.cjs.js +1 -1
  6. package/dist/nile-floating-panel/index.esm.js +1 -1
  7. package/dist/nile-floating-panel/nile-floating-panel.cjs.js +1 -1
  8. package/dist/nile-floating-panel/nile-floating-panel.cjs.js.map +1 -1
  9. package/dist/nile-floating-panel/nile-floating-panel.css.cjs.js +1 -1
  10. package/dist/nile-floating-panel/nile-floating-panel.css.cjs.js.map +1 -1
  11. package/dist/nile-floating-panel/nile-floating-panel.css.esm.js +137 -21
  12. package/dist/nile-floating-panel/nile-floating-panel.esm.js +1 -1
  13. package/dist/nile-lite-tooltip/index.cjs.js +1 -1
  14. package/dist/nile-lite-tooltip/index.esm.js +1 -1
  15. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
  16. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js.map +1 -1
  17. package/dist/nile-lite-tooltip/nile-lite-tooltip.esm.js +1 -1
  18. package/dist/src/index.d.ts +1 -1
  19. package/dist/src/index.js +1 -1
  20. package/dist/src/index.js.map +1 -1
  21. package/dist/src/nile-floating-panel/index.js.map +1 -1
  22. package/dist/src/nile-floating-panel/nile-floating-panel.css.d.ts +1 -1
  23. package/dist/src/nile-floating-panel/nile-floating-panel.css.js +147 -20
  24. package/dist/src/nile-floating-panel/nile-floating-panel.css.js.map +1 -1
  25. package/dist/src/nile-floating-panel/nile-floating-panel.d.ts +90 -24
  26. package/dist/src/nile-floating-panel/nile-floating-panel.js +478 -159
  27. package/dist/src/nile-floating-panel/nile-floating-panel.js.map +1 -1
  28. package/dist/src/version.js +1 -1
  29. package/dist/src/version.js.map +1 -1
  30. package/dist/tippy.esm-57628c2b.esm.js +1 -0
  31. package/dist/tippy.esm-78baa8f2.cjs.js +2 -0
  32. package/dist/tippy.esm-78baa8f2.cjs.js.map +1 -0
  33. package/dist/tsconfig.tsbuildinfo +1 -1
  34. package/package.json +4 -3
  35. package/src/index.ts +2 -2
  36. package/src/nile-floating-panel/index.ts +0 -1
  37. package/src/nile-floating-panel/nile-floating-panel.css.ts +149 -21
  38. package/src/nile-floating-panel/nile-floating-panel.ts +489 -190
  39. package/vscode-html-custom-data.json +213 -23
  40. package/dist/nile-floating-panel/anchor-manager.cjs.js +0 -2
  41. package/dist/nile-floating-panel/anchor-manager.cjs.js.map +0 -1
  42. package/dist/nile-floating-panel/anchor-manager.esm.js +0 -1
  43. package/dist/nile-floating-panel/content-manager.cjs.js +0 -2
  44. package/dist/nile-floating-panel/content-manager.cjs.js.map +0 -1
  45. package/dist/nile-floating-panel/content-manager.esm.js +0 -1
  46. package/dist/nile-floating-panel/event-manager.cjs.js +0 -2
  47. package/dist/nile-floating-panel/event-manager.cjs.js.map +0 -1
  48. package/dist/nile-floating-panel/event-manager.esm.js +0 -1
  49. package/dist/nile-floating-panel/position-manager.cjs.js +0 -2
  50. package/dist/nile-floating-panel/position-manager.cjs.js.map +0 -1
  51. package/dist/nile-floating-panel/position-manager.esm.js +0 -1
  52. package/dist/nile-floating-panel/style-manager.cjs.js +0 -2
  53. package/dist/nile-floating-panel/style-manager.cjs.js.map +0 -1
  54. package/dist/nile-floating-panel/style-manager.esm.js +0 -1
  55. package/dist/nile-floating-panel/types.cjs.js +0 -2
  56. package/dist/nile-floating-panel/types.cjs.js.map +0 -1
  57. package/dist/nile-floating-panel/types.esm.js +0 -1
  58. package/dist/src/nile-floating-panel/anchor-manager.d.ts +0 -6
  59. package/dist/src/nile-floating-panel/anchor-manager.js +0 -27
  60. package/dist/src/nile-floating-panel/anchor-manager.js.map +0 -1
  61. package/dist/src/nile-floating-panel/content-manager.d.ts +0 -5
  62. package/dist/src/nile-floating-panel/content-manager.js +0 -44
  63. package/dist/src/nile-floating-panel/content-manager.js.map +0 -1
  64. package/dist/src/nile-floating-panel/event-manager.d.ts +0 -14
  65. package/dist/src/nile-floating-panel/event-manager.js +0 -52
  66. package/dist/src/nile-floating-panel/event-manager.js.map +0 -1
  67. package/dist/src/nile-floating-panel/position-manager.d.ts +0 -17
  68. package/dist/src/nile-floating-panel/position-manager.js +0 -72
  69. package/dist/src/nile-floating-panel/position-manager.js.map +0 -1
  70. package/dist/src/nile-floating-panel/style-manager.d.ts +0 -9
  71. package/dist/src/nile-floating-panel/style-manager.js +0 -44
  72. package/dist/src/nile-floating-panel/style-manager.js.map +0 -1
  73. package/dist/src/nile-floating-panel/types.d.ts +0 -11
  74. package/dist/src/nile-floating-panel/types.js +0 -2
  75. package/dist/src/nile-floating-panel/types.js.map +0 -1
  76. package/src/nile-floating-panel/anchor-manager.ts +0 -33
  77. package/src/nile-floating-panel/content-manager.ts +0 -54
  78. package/src/nile-floating-panel/event-manager.ts +0 -74
  79. package/src/nile-floating-panel/position-manager.ts +0 -102
  80. package/src/nile-floating-panel/style-manager.ts +0 -54
  81. package/src/nile-floating-panel/types.ts +0 -15
@@ -1 +1 @@
1
- {"version":3,"file":"nile-floating-panel.js","sourceRoot":"","sources":["../../../src/nile-floating-panel/nile-floating-panel.ts"],"names":[],"mappings":";;AAAA,OAAO,EAEL,IAAI,GAIL,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OA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D,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CAgQ7B;;AAED,eAAe,iBAAiB,CAAC","sourcesContent":["import {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n PropertyValues,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-floating-panel.css';\nimport NileElement from '../internal/nile-element';\nimport { PositionManager } from './position-manager';\nimport { StyleManager } from './style-manager';\nimport { ContentManager } from './content-manager';\nimport { AnchorManager } from './anchor-manager';\nimport { EventManager } from './event-manager';\nimport { VisibilityManager } from '../utilities/visibility-manager';\nimport type { FloatingPanelPosition, FloatingPanelAnchor } from './types';\n\n/**\n * Nile floating panel component.\n *\n * @tag nile-floating-panel\n * @event nile-show - Emitted when the panel opens.\n * @event nile-hide - Emitted when the panel closes.\n */\n@customElement('nile-floating-panel')\nexport class NileFloatingPanel extends NileElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property() anchor: FloatingPanelAnchor = null;\n\n @property() position: FloatingPanelPosition = 'bottom';\n\n @property({ type: Boolean, reflect: true, attribute: true }) open = false;\n\n @property({\n type: Boolean,\n reflect: true,\n attribute: 'close-on-outside-click',\n converter: {\n fromAttribute: (value: string | null) => (!value || value === 'false' ? false : true),\n toAttribute: (value: boolean) => (value ? 'true' : 'false'),\n },\n })\n closeOnOutsideClick = true;\n\n @property({ type: Boolean, reflect: true }) enableVisibilityEffect = true;\n\n @property({ type: Boolean, reflect: true }) enableTabClose = false;\n\n private panelContainer: HTMLElement | null = null;\n private positionManager: PositionManager | null = null;\n private styleManager: StyleManager = new StyleManager();\n private eventManager: EventManager = new EventManager(this);\n private visibilityManager?: VisibilityManager;\n\n connectedCallback() {\n super.connectedCallback();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.cleanupPanel();\n this.visibilityManager?.cleanup();\n }\n\n updated(changedProperties: Map<string, unknown>) {\n super.updated(changedProperties);\n\n if (changedProperties.has('open')) {\n if (this.open) {\n this.emit('nile-show');\n this.setupPanel();\n this.visibilityManager?.setup();\n } else {\n this.emit('nile-hide');\n this.visibilityManager?.cleanup();\n this.cleanupPanel();\n }\n }\n\n if (\n changedProperties.has('closeOnOutsideClick') &&\n this.open &&\n this.panelContainer\n ) {\n this.eventManager.updateOutsideClickHandler(\n this.panelContainer,\n this.closeOnOutsideClick,\n this.open\n );\n }\n\n if (changedProperties.has('anchor') && this.open) {\n this.cleanupPanel();\n this.setupPanel();\n }\n\n if (\n (changedProperties.has('enableVisibilityEffect') ||\n changedProperties.has('enableTabClose')) &&\n this.open\n ) {\n this.setupVisibilityManager();\n }\n\n if (\n changedProperties.has('position') &&\n this.open &&\n this.positionManager\n ) {\n this.positionManager.updatePosition(this.position);\n }\n\n if (changedProperties.has('open') && this.open && this.panelContainer) {\n this.updatePanelContent();\n }\n }\n\n private setupPanel() {\n if (this.panelContainer) {\n return;\n }\n\n const componentStyles = (this.constructor as typeof NileFloatingPanel)\n .styles;\n if (componentStyles) {\n this.styleManager.injectStyles(componentStyles);\n }\n\n this.panelContainer = document.createElement('div');\n this.panelContainer.setAttribute('part', 'panel');\n this.panelContainer.className = 'nile-floating-panel__container';\n\n this.updatePanelContent();\n\n const anchorElement = AnchorManager.resolveAnchor(this.anchor);\n AnchorManager.appendToAnchor(anchorElement, this.panelContainer);\n\n requestAnimationFrame(() => {\n this.setupPositionManager();\n this.setupEventHandlers();\n this.setupVisibilityManager();\n });\n }\n\n private setupEventHandlers() {\n if (!this.panelContainer) {\n return;\n }\n\n this.eventManager.setupOutsideClickHandler(\n this.panelContainer,\n this.closeOnOutsideClick,\n this.open,\n () => {\n this.open = false;\n }\n );\n }\n\n private setupPositionManager() {\n if (!this.panelContainer) {\n return;\n }\n\n const referenceElement = this.findTriggerElement() || this;\n this.positionManager = new PositionManager(\n referenceElement,\n this.panelContainer,\n this.position\n );\n\n this.positionManager.reposition();\n this.positionManager.setupAutoUpdate();\n }\n\n private findTriggerElement(): HTMLElement | null {\n // Try to find the next sibling element as the trigger\n let nextSibling = this.nextElementSibling;\n while (nextSibling) {\n if (nextSibling instanceof HTMLElement) {\n return nextSibling;\n }\n nextSibling = nextSibling.nextElementSibling;\n }\n\n // Try to find the previous sibling element\n let previousSibling = this.previousElementSibling;\n while (previousSibling) {\n if (previousSibling instanceof HTMLElement) {\n return previousSibling;\n }\n previousSibling = previousSibling.previousElementSibling;\n }\n\n return null;\n }\n\n private setupVisibilityManager(): void {\n if (!this.enableVisibilityEffect) {\n return;\n }\n\n const triggerElement = this.findTriggerElement();\n \n // Cleanup existing visibility manager if it exists\n if (this.visibilityManager) {\n this.visibilityManager.cleanup();\n }\n\n this.visibilityManager = new VisibilityManager({\n host: this,\n target: triggerElement || null,\n enableVisibilityEffect: this.enableVisibilityEffect,\n enableTabClose: this.enableTabClose,\n isOpen: () => this.open,\n onAnchorOutOfView: () => {\n this.open = false;\n this.emit('nile-visibility-change', {\n visible: false,\n reason: 'anchor-out-of-view',\n });\n },\n onDocumentHidden: () => {\n this.open = false;\n this.emit('nile-visibility-change', {\n visible: false,\n reason: 'document-hidden',\n });\n },\n emit: (event, detail) => this.emit(`nile-${event}`, detail),\n });\n\n if (this.open) {\n this.visibilityManager.setup();\n }\n }\n\n private updatePanelContent() {\n if (!this.panelContainer) {\n return;\n }\n\n const slot = this.shadowRoot?.querySelector('slot') || null;\n ContentManager.updatePanelContent(this.panelContainer, slot, '');\n }\n\n private reposition() {\n if (this.positionManager) {\n this.positionManager.reposition();\n }\n }\n\n private cleanupPanel() {\n this.eventManager.destroy();\n\n if (this.positionManager) {\n this.positionManager.destroy();\n this.positionManager = null;\n }\n\n if (this.panelContainer) {\n AnchorManager.removeFromAnchor(this.panelContainer);\n }\n\n this.panelContainer = null;\n\n this.styleManager.cleanupStyles();\n }\n\n public render(): TemplateResult {\n return html` <slot @slotchange=${this.handleSlotChange}></slot> `;\n }\n\n private handleSlotChange = () => {\n if (this.open && this.panelContainer) {\n this.updatePanelContent();\n }\n };\n}\n\nexport default NileFloatingPanel;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-floating-panel': NileFloatingPanel;\n }\n}\n"]}
1
+ {"version":3,"file":"nile-floating-panel.js","sourceRoot":"","sources":["../../../src/nile-floating-panel/nile-floating-panel.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;;AAGH,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,EAAE,EAGZ,UAAU,EACV,YAAY,IAAI,kBAAkB,GACnC,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,iBAAiB,EACjB,aAAa,GACd,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE;;;;;;;;;;;;;;;;;;GAkBG;AAEI,IAAM,iBAAiB,yBAAvB,MAAM,iBAAkB,SAAQ,WAAW;IAA3C;;QAqBL,yBAAyB;QAGzB,cAAS,GAeQ,QAAQ,CAAC;QAEE,YAAO,GAAW,OAAO,CAAC;QAE1B,aAAQ,GAAG,EAAE,CAAC;QAEd,aAAQ,GAAG,CAAC,CAAC;QAGzC,UAAK,GAAiC,OAAO,CAAC;QAEH,cAAS,GAAW,MAAM,CAAC;QAE3B,aAAQ,GAG5B,GAAG,CAAC;QAEgB,UAAK,GAEzB,CAAC,CAAC;QAEmB,gBAAW,GAAG,IAAI,CAAC;QAEpB,sBAAiB,GAAG,CAAC,CAAC;QAEtB,aAAQ,GAAoB,MAAM,CAAC;QAEnC,WAAM,GAAG,IAAI,CAAC;QAGzD,iBAAY,GAME,KAAK,CAAC;QAEwB,gBAAW,GAExC,IAAI,CAAC;QAEwB,YAAO,GAAG,KAAK,CAAC;QAEhB,cAAS,GAAG,KAAK,CAAC;QAElB,SAAI,GAAG,IAAI,CAAC;QAExD,6BAA6B;QA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IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAAiB;AAGhB;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAA6B;AAG3B;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wDAAsB;AAIrB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iEAAgC;AAE/B;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yDAAwB;AAlHxD,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CA0hB7B;;AAED,eAAe,iBAAiB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { CSSResultArray, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-floating-panel.css';\nimport NileElement from '../internal/nile-element';\nimport tippy, {\n Instance,\n Props,\n roundArrow,\n followCursor as followCursorPlugin,\n} from 'tippy.js';\nimport {\n parseFollowCursor,\n parseDuration,\n} from '../nile-lite-tooltip/utils';\nimport { VisibilityManager } from '../utilities/visibility-manager.js';\n\n/**\n * Nile floating-panel component.\n *\n * A popover that supports rich content (title, body, actions).\n *\n * **Wrapper mode** (default): first child element is the trigger.\n * **For mode**: set `for=\"elementId\"` to attach to an external element.\n *\n * @tag nile-floating-panel\n *\n * @fires nile-init - Component initialized.\n * @fires nile-destroy - Component destroyed.\n * @fires nile-show - Panel opened.\n * @fires nile-hide - Panel closed.\n * @fires nile-after-show - Panel fully visible after animation.\n * @fires nile-after-hide - Panel fully hidden after animation.\n * @fires nile-toggle - Open/close transition (detail.open).\n * @fires nile-visibility-change - Hidden by scroll/tab change.\n */\n@customElement('nile-floating-panel')\nexport class NileFloatingPanel extends NileElement {\n private static _groups = new Map<string, Set<NileFloatingPanel>>();\n\n private static _reducedMotionQuery: MediaQueryList | null = null;\n\n private static get prefersReducedMotion(): boolean {\n if (!NileFloatingPanel._reducedMotionQuery) {\n NileFloatingPanel._reducedMotionQuery =\n window.matchMedia('(prefers-reduced-motion: reduce)');\n }\n return NileFloatingPanel._reducedMotionQuery.matches;\n }\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n protected createRenderRoot() {\n return this;\n }\n\n // ─── Tippy.js props ───\n\n @property({ type: String })\n placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'\n | 'left-start'\n | 'left-end'\n | 'auto'\n | 'auto-start'\n | 'auto-end' = 'bottom';\n\n @property({ type: String }) trigger: string = 'click';\n\n @property({ type: Number }) distance = 12;\n\n @property({ type: Number }) skidding = 0;\n\n @property({ type: String, reflect: true })\n arrow: 'round' | 'default' | 'none' = 'round';\n\n @property({ type: String, reflect: true }) animation: string = 'fade';\n\n @property({ type: String, reflect: true }) duration:\n | string\n | number\n | [number, number] = 200;\n\n @property({ type: String, reflect: true }) delay:\n | number\n | [number, number] = 0;\n\n @property({ type: Boolean, reflect: true }) interactive = true;\n\n @property({ type: Number, reflect: true }) interactiveBorder = 2;\n\n @property({ type: String, reflect: true }) maxWidth: string | number = 'none';\n\n @property({ type: Number, reflect: true }) zIndex = 9999;\n\n @property({ type: String, reflect: true })\n followCursor:\n | boolean\n | 'initial'\n | 'horizontal'\n | 'vertical'\n | 'true'\n | 'false' = false;\n\n @property({ type: Boolean, reflect: true }) hideOnClick:\n | boolean\n | 'toggle' = true;\n\n @property({ type: Boolean, reflect: true }) inertia = false;\n\n @property({ type: Boolean, reflect: true }) allowHTML = false;\n\n @property({ type: Boolean, reflect: true }) flip = true;\n\n // ─── Popover-like props ───\n\n @property({ type: String, attribute: 'for' }) for: string | null = null;\n\n @property({ type: Boolean, reflect: true }) open = false;\n\n @property({ type: Boolean, reflect: true }) preventOverlayClose = false;\n\n @property({ type: String, reflect: true }) title = '';\n\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n @property({ type: String, reflect: true }) width?: string;\n\n @property({ type: String, reflect: true }) height?: string;\n\n /** When set, only one panel in the same group can be open at a time. */\n @property({ type: String, reflect: true }) group: string | null = null;\n\n /** Close the panel when Escape is pressed. */\n @property({ type: Boolean, reflect: true }) closeOnEscape = true;\n\n // ─── Visibility manager props ───\n\n @property({ type: Boolean, reflect: true }) enableVisibilityEffect = false;\n\n @property({ type: Boolean, reflect: true }) enableTabClose = false;\n\n // ─── Internal state ───\n\n private tippyInstance: Instance | null = null;\n private visibilityManager?: VisibilityManager;\n private panelContainer: HTMLElement | null = null;\n private anchorEl: HTMLElement | null = null;\n private _suppressOpenWatch = false;\n private _panelId = `nile-fp-${Math.random().toString(36).slice(2, 9)}`;\n private _boundEscHandler = this._handleEscapeKey.bind(this);\n private _pendingShowListener: (() => void) | null = null;\n private _pendingHideListener: (() => void) | null = null;\n\n // ─── Lifecycle ───\n\n protected firstUpdated(): void {\n this._buildDOM();\n this._attachTippy();\n this._joinGroup();\n\n this.visibilityManager = new VisibilityManager({\n host: this,\n target: this.anchorEl || null,\n enableVisibilityEffect: this.enableVisibilityEffect,\n enableTabClose: this.enableTabClose,\n isOpen: () => this.open,\n onAnchorOutOfView: () => {\n this._setOpen(false);\n this.tippyInstance?.hide();\n this.emit('nile-visibility-change', {\n visible: false,\n reason: 'anchor-out-of-view',\n });\n },\n onDocumentHidden: () => {\n this._setOpen(false);\n this.tippyInstance?.hide();\n this.emit('nile-visibility-change', {\n visible: false,\n reason: 'document-hidden',\n });\n },\n emit: (event, detail) => this.emit(`nile-${event}`, detail),\n });\n\n this.emit('nile-init');\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this._cleanupPendingShowListener();\n this._cleanupPendingHideListener();\n this.visibilityManager?.cleanup();\n this._leaveGroup();\n this._removeEscListener();\n this._destroyTippy();\n this.emit('nile-destroy');\n }\n\n updated(changed: PropertyValues): void {\n super.updated(changed);\n\n if (!this.panelContainer) return;\n\n if (changed.has('open') && !this._suppressOpenWatch) {\n if (this.open) {\n this.visibilityManager?.setup();\n queueMicrotask(() => this.tippyInstance?.show());\n } else {\n this.visibilityManager?.cleanup();\n this.tippyInstance?.hide();\n }\n }\n\n if (changed.has('group')) {\n this._leaveGroup(changed.get('group') as string | null);\n this._joinGroup();\n }\n\n const rebuildProps: string[] = [\n 'placement', 'trigger', 'distance', 'skidding', 'arrow',\n 'animation', 'duration', 'delay', 'interactive', 'interactiveBorder',\n 'maxWidth', 'zIndex', 'followCursor', 'hideOnClick', 'inertia',\n 'allowHTML', 'flip', 'preventOverlayClose', 'disabled', 'width', 'height',\n ];\n\n if (rebuildProps.some(p => changed.has(p))) {\n this._attachTippy();\n }\n }\n\n // ─── Public API ───\n\n /** Programmatically shows the panel. Returns a promise that resolves after the show animation. */\n public show(): Promise<void> {\n this.open = true;\n return new Promise<void>(resolve => {\n this._cleanupPendingShowListener();\n const handler = () => {\n this._pendingShowListener = null;\n resolve();\n };\n this._pendingShowListener = handler;\n this.addEventListener('nile-after-show', handler, { once: true });\n });\n }\n\n /** Programmatically hides the panel. Returns a promise that resolves after the hide animation. */\n public hide(): Promise<void> {\n this.open = false;\n return new Promise<void>(resolve => {\n this._cleanupPendingHideListener();\n const handler = () => {\n this._pendingHideListener = null;\n resolve();\n };\n this._pendingHideListener = handler;\n this.addEventListener('nile-after-hide', handler, { once: true });\n });\n }\n\n private _cleanupPendingShowListener(): void {\n if (this._pendingShowListener) {\n this.removeEventListener('nile-after-show', this._pendingShowListener);\n this._pendingShowListener = null;\n }\n }\n\n private _cleanupPendingHideListener(): void {\n if (this._pendingHideListener) {\n this.removeEventListener('nile-after-hide', this._pendingHideListener);\n this._pendingHideListener = null;\n }\n }\n\n public toggle(): void {\n this.open = !this.open;\n }\n\n public refresh(): void {\n this._attachTippy();\n }\n\n /** Returns the current resolved placement from Tippy/Popper. */\n public getCurrentPlacement(): string {\n const popper = this.tippyInstance?.popper;\n const box = popper?.querySelector('.tippy-box') as HTMLElement | null;\n return box?.dataset.placement ?? this.placement;\n }\n\n /** Returns true if the resolved placement matches the requested placement. */\n public isPositioningOptimal(): boolean {\n return this.getCurrentPlacement() === this.placement;\n }\n\n // ─── Group management ───\n\n private _joinGroup(): void {\n if (!this.group) return;\n let set = NileFloatingPanel._groups.get(this.group);\n if (!set) {\n set = new Set();\n NileFloatingPanel._groups.set(this.group, set);\n }\n set.add(this);\n }\n\n private _leaveGroup(oldGroup?: string | null): void {\n const key = oldGroup ?? this.group;\n if (!key) return;\n const set = NileFloatingPanel._groups.get(key);\n if (set) {\n set.delete(this);\n if (set.size === 0) NileFloatingPanel._groups.delete(key);\n }\n }\n\n private _hideGroupSiblings(): void {\n if (!this.group) return;\n const set = NileFloatingPanel._groups.get(this.group);\n if (!set) return;\n set.forEach(panel => {\n if (panel !== this && panel.open) {\n panel._setOpen(false);\n panel.tippyInstance?.hide();\n }\n });\n }\n\n // ─── Escape key ───\n\n private _addEscListener(): void {\n if (this.closeOnEscape) {\n document.addEventListener('keydown', this._boundEscHandler);\n }\n }\n\n private _removeEscListener(): void {\n document.removeEventListener('keydown', this._boundEscHandler);\n }\n\n private _handleEscapeKey(e: KeyboardEvent): void {\n if (e.key === 'Escape' && this.open) {\n this._setOpen(false);\n this.tippyInstance?.hide();\n }\n }\n\n // ─── ARIA ───\n\n private _applyAria(): void {\n if (!this.anchorEl || !this.panelContainer) return;\n this.panelContainer.setAttribute('role', 'dialog');\n this.panelContainer.id = this._panelId;\n this.anchorEl.setAttribute('aria-haspopup', 'dialog');\n this._syncAriaExpanded();\n }\n\n private _syncAriaExpanded(): void {\n this.anchorEl?.setAttribute('aria-expanded', String(this.open));\n if (this.open) {\n this.anchorEl?.setAttribute('aria-describedby', this._panelId);\n } else {\n this.anchorEl?.removeAttribute('aria-describedby');\n }\n }\n\n // ─── DOM construction ───\n\n private _buildDOM(): void {\n const children = Array.from(this.childNodes);\n\n this.anchorEl = null;\n const titleNodes: Node[] = [];\n const actionNodes: Node[] = [];\n const bodyNodes: Node[] = [];\n let firstElementSeen = false;\n\n for (const child of children) {\n if (child instanceof HTMLElement) {\n const slot = child.getAttribute('slot');\n if (slot === 'title') {\n child.removeAttribute('slot');\n titleNodes.push(child);\n continue;\n }\n if (slot === 'action') {\n child.removeAttribute('slot');\n actionNodes.push(child);\n continue;\n }\n if (!firstElementSeen && !this.for) {\n this.anchorEl = child;\n firstElementSeen = true;\n continue;\n }\n }\n bodyNodes.push(child);\n }\n\n if (this.for) {\n const anchor = document.getElementById(this.for);\n if (anchor) {\n this.anchorEl = anchor;\n }\n }\n\n while (this.firstChild) {\n this.removeChild(this.firstChild);\n }\n\n if (this.anchorEl && !this.for) {\n this.appendChild(this.anchorEl);\n }\n\n this.panelContainer = document.createElement('div');\n this.panelContainer.className = 'nile-floating-panel__content';\n this.panelContainer.style.display = 'none';\n\n const body = document.createElement('div');\n body.className = 'nile-floating-panel__body';\n\n if (titleNodes.length > 0 || this.title) {\n const titleDiv = document.createElement('div');\n titleDiv.className = 'nile-floating-panel__title';\n if (this.title) {\n titleDiv.textContent = this.title;\n } else {\n titleNodes.forEach(n => titleDiv.appendChild(n));\n }\n body.appendChild(titleDiv);\n }\n\n if (bodyNodes.length > 0) {\n const mainDiv = document.createElement('div');\n mainDiv.className = 'nile-floating-panel__main';\n bodyNodes.forEach(n => mainDiv.appendChild(n));\n body.appendChild(mainDiv);\n }\n\n if (actionNodes.length > 0) {\n const actionDiv = document.createElement('div');\n actionDiv.className = 'nile-floating-panel__action';\n actionNodes.forEach(n => actionDiv.appendChild(n));\n body.appendChild(actionDiv);\n }\n\n this.panelContainer.appendChild(body);\n this.appendChild(this.panelContainer);\n\n this._applyAria();\n }\n\n // ─── Tippy management ───\n\n private _resolveArrow() {\n switch (this.arrow) {\n case 'round': return roundArrow;\n case 'none': return false as const;\n default: return true as const;\n }\n }\n\n private _setOpen(value: boolean): void {\n this._suppressOpenWatch = true;\n this.open = value;\n this._syncAriaExpanded();\n this._suppressOpenWatch = false;\n }\n\n private _getEffectiveDuration(): number | [number, number] {\n if (NileFloatingPanel.prefersReducedMotion) return 0;\n return parseDuration(this.duration);\n }\n\n private _getEffectiveAnimation(): string | false {\n if (NileFloatingPanel.prefersReducedMotion) return false;\n return this.animation;\n }\n\n private _attachTippy(): void {\n this._destroyTippy();\n\n if (this.disabled || !this.anchorEl || !this.panelContainer) return;\n\n const resolvedFollowCursor = parseFollowCursor(this.followCursor);\n const effectiveHideOnClick = this.preventOverlayClose ? false : this.hideOnClick;\n\n const options: Partial<Props> = {\n content: this.panelContainer,\n placement: this.placement,\n trigger: this.trigger,\n offset: [this.skidding, this.distance],\n theme: 'floating-panel',\n animation: this._getEffectiveAnimation(),\n interactive: this.interactive,\n arrow: this._resolveArrow(),\n duration: this._getEffectiveDuration(),\n allowHTML: this.allowHTML,\n delay: this.delay as any,\n maxWidth: this.maxWidth,\n zIndex: this.zIndex,\n hideOnClick: effectiveHideOnClick,\n inertia: NileFloatingPanel.prefersReducedMotion ? false : this.inertia,\n interactiveBorder: this.interactiveBorder,\n appendTo: document.body,\n followCursor: resolvedFollowCursor,\n plugins: resolvedFollowCursor ? [followCursorPlugin] : [],\n popperOptions: {\n modifiers: [{ name: 'flip', enabled: this.flip }],\n },\n onMount: () => {\n if (this.panelContainer) this.panelContainer.style.display = '';\n },\n onShow: (instance) => {\n if (this.panelContainer) this.panelContainer.style.display = '';\n const tc = instance.popper.querySelector('.tippy-content') as HTMLElement | null;\n if (tc) {\n if (this.width) tc.style.width = this.width;\n if (this.height) { tc.style.height = this.height; tc.style.overflow = 'auto'; }\n }\n this._hideGroupSiblings();\n this._setOpen(true);\n this._addEscListener();\n this.dispatchEvent(new CustomEvent('nile-show', { detail: { instance, target: instance.reference } }));\n this.dispatchEvent(new CustomEvent('nile-toggle', { detail: { open: true, instance, target: instance.reference } }));\n return undefined;\n },\n onShown: (instance) => {\n this.dispatchEvent(new CustomEvent('nile-after-show', { detail: { instance, target: instance.reference } }));\n },\n onHide: (instance) => {\n this._setOpen(false);\n this._removeEscListener();\n this.dispatchEvent(new CustomEvent('nile-hide', { detail: { instance, target: instance.reference } }));\n this.dispatchEvent(new CustomEvent('nile-toggle', { detail: { open: false, instance, target: instance.reference } }));\n return undefined;\n },\n onHidden: (instance) => {\n if (this.panelContainer) this.panelContainer.style.display = 'none';\n this.dispatchEvent(new CustomEvent('nile-after-hide', { detail: { instance, target: instance.reference } }));\n },\n };\n\n this.tippyInstance = tippy(this.anchorEl, options);\n\n if (this.open) {\n queueMicrotask(() => this.tippyInstance?.show());\n }\n }\n\n private _destroyTippy(): void {\n if (this.tippyInstance) {\n this.tippyInstance.destroy();\n this.tippyInstance = null;\n }\n if (this.panelContainer) {\n this.panelContainer.style.display = 'none';\n if (this.panelContainer.parentElement !== this) {\n this.appendChild(this.panelContainer);\n }\n }\n }\n}\n\nexport default NileFloatingPanel;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-floating-panel': NileFloatingPanel;\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  // Version utility - placeholders will be replaced during build
2
- export const NILE_ELEMENTS_VERSION = '1.6.0';
2
+ export const NILE_ELEMENTS_VERSION = '1.6.1';
3
3
  export const NILE_VERSION = '1.2.2';
4
4
  // Set global versions for runtime access
5
5
  if (typeof window !== 'undefined') {
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AACjE,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC;AAE/C,yCAAyC;AACzC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IACjC,MAAc,CAAC,mBAAmB,GAAG,qBAAqB,CAAC;IAC3D,MAAc,CAAC,WAAW,GAAG,YAAY,CAAC;IAC3C,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,CAAC;AACzE,CAAC","sourcesContent":["// Version utility - placeholders will be replaced during build\nexport const NILE_ELEMENTS_VERSION = '1.6.0';\nexport const NILE_VERSION = '1.2.2';\n\n// Set global versions for runtime access\nif (typeof window !== 'undefined') {\n (window as any).nileElementsVersion = NILE_ELEMENTS_VERSION;\n (window as any).nileVersion = NILE_VERSION;\n window.process = window.process || { env: { NODE_ENV: 'production' } };\n}\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AACjE,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC;AAE/C,yCAAyC;AACzC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IACjC,MAAc,CAAC,mBAAmB,GAAG,qBAAqB,CAAC;IAC3D,MAAc,CAAC,WAAW,GAAG,YAAY,CAAC;IAC3C,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,CAAC;AACzE,CAAC","sourcesContent":["// Version utility - placeholders will be replaced during build\nexport const NILE_ELEMENTS_VERSION = '1.6.1';\nexport const NILE_VERSION = '1.2.2';\n\n// Set global versions for runtime access\nif (typeof window !== 'undefined') {\n (window as any).nileElementsVersion = NILE_ELEMENTS_VERSION;\n (window as any).nileVersion = NILE_VERSION;\n window.process = window.process || { env: { NODE_ENV: 'production' } };\n}\n"]}
@@ -0,0 +1 @@
1
+ var n="top",t="bottom",e="right",r="left",o="auto",i=[n,t,e,r],u="start",a="end",f="viewport",c="popper",d=i.reduce((function(n,t){return n.concat([t+"-"+u,t+"-"+a])}),[]),l=[].concat(i,[o]).reduce((function(n,t){return n.concat([t,t+"-"+u,t+"-"+a])}),[]),s=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function v(n){return n?(n.nodeName||"").toLowerCase():null}function p(n){if(null==n)return window;if("[object Window]"!==n.toString()){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function m(n){return n instanceof p(n).Element||n instanceof Element}function b(n){return n instanceof p(n).HTMLElement||n instanceof HTMLElement}function h(n){return"undefined"!=typeof ShadowRoot&&(n instanceof p(n).ShadowRoot||n instanceof ShadowRoot)}var y={name:"applyStyles",enabled:!0,phase:"write",fn:function(n){var t=n.state;Object.keys(t.elements).forEach((function(n){var e=t.styles[n]||{},r=t.attributes[n]||{},o=t.elements[n];b(o)&&v(o)&&(Object.assign(o.style,e),Object.keys(r).forEach((function(n){var t=r[n];!1===t?o.removeAttribute(n):o.setAttribute(n,!0===t?"":t)})))}))},effect:function(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach((function(n){var r=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:e[n]).reduce((function(n,t){return n[t]="",n}),{});b(r)&&v(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(n){r.removeAttribute(n)})))}))}},requires:["computeStyles"]};function g(n){return n.split("-")[0]}var w=Math.max,O=Math.min,x=Math.round;function j(){var n=navigator.userAgentData;return null!=n&&n.brands&&Array.isArray(n.brands)?n.brands.map((function(n){return n.brand+"/"+n.version})).join(" "):navigator.userAgent}function T(){return!/^((?!chrome|android).)*safari/i.test(j())}function k(n,t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var r=n.getBoundingClientRect(),o=1,i=1;t&&b(n)&&(o=n.offsetWidth>0&&x(r.width)/n.offsetWidth||1,i=n.offsetHeight>0&&x(r.height)/n.offsetHeight||1);var u=(m(n)?p(n):window).visualViewport,a=!T()&&e,f=(r.left+(a&&u?u.offsetLeft:0))/o,c=(r.top+(a&&u?u.offsetTop:0))/i,d=r.width/o,l=r.height/i;return{width:d,height:l,top:c,right:f+d,bottom:c+l,left:f,x:f,y:c}}function A(n){var t=k(n),e=n.offsetWidth,r=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:r}}function C(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&h(e)){var r=t;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function M(n){return p(n).getComputedStyle(n)}function R(n){return["table","td","th"].indexOf(v(n))>=0}function S(n){return((m(n)?n.ownerDocument:n.document)||window.document).documentElement}function B(n){return"html"===v(n)?n:n.assignedSlot||n.parentNode||(h(n)?n.host:null)||S(n)}function E(n){return b(n)&&"fixed"!==M(n).position?n.offsetParent:null}function H(n){for(var t=p(n),e=E(n);e&&R(e)&&"static"===M(e).position;)e=E(e);return e&&("html"===v(e)||"body"===v(e)&&"static"===M(e).position)?t:e||function(n){var t=/firefox/i.test(j());if(/Trident/i.test(j())&&b(n)&&"fixed"===M(n).position)return null;var e=B(n);for(h(e)&&(e=e.host);b(e)&&["html","body"].indexOf(v(e))<0;){var r=M(e);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 e;e=e.parentNode}return null}(n)||t}function U(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function q(n,t,e){return w(n,O(t,e))}function P(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function W(n,t){return t.reduce((function(t,e){return t[e]=n,t}),{})}var D={name:"arrow",enabled:!0,phase:"main",fn:function(o){var u,a=o.state,f=o.name,c=o.options,d=a.elements.arrow,l=a.modifiersData.popperOffsets,s=g(a.placement),v=U(s),p=[r,e].indexOf(s)>=0?"height":"width";if(d&&l){var m=function(n,t){return P("number"!=typeof(n="function"==typeof n?n(Object.assign({},t.rects,{placement:t.placement})):n)?n:W(n,i))}(c.padding,a),b=A(d),h="y"===v?n:r,y="y"===v?t:e,w=a.rects.reference[p]+a.rects.reference[v]-l[v]-a.rects.popper[p],O=l[v]-a.rects.reference[v],x=H(d),j=x?"y"===v?x.clientHeight||0:x.clientWidth||0:0,T=w/2-O/2,k=m[h],C=j-b[p]-m[y],M=j/2-b[p]/2+T,R=q(k,M,C),S=v;a.modifiersData[f]=((u={})[S]=R,u.centerOffset=R-M,u)}},effect:function(n){var t=n.state,e=n.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&C(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function L(n){return n.split("-")[1]}var F={top:"auto",right:"auto",bottom:"auto",left:"auto"};function I(o){var i,u=o.popper,f=o.popperRect,c=o.placement,d=o.variation,l=o.offsets,s=o.position,v=o.gpuAcceleration,m=o.adaptive,b=o.roundOffsets,h=o.isFixed,y=l.x,g=void 0===y?0:y,w=l.y,O=void 0===w?0:w,j="function"==typeof b?b({x:g,y:O}):{x:g,y:O};g=j.x,O=j.y;var T=l.hasOwnProperty("x"),k=l.hasOwnProperty("y"),A=r,C=n,R=window;if(m){var B=H(u),E="clientHeight",U="clientWidth";if(B===p(u)&&"static"!==M(B=S(u)).position&&"absolute"===s&&(E="scrollHeight",U="scrollWidth"),c===n||(c===r||c===e)&&d===a)C=t,O-=(h&&B===R&&R.visualViewport?R.visualViewport.height:B[E])-f.height,O*=v?1:-1;if(c===r||(c===n||c===t)&&d===a)A=e,g-=(h&&B===R&&R.visualViewport?R.visualViewport.width:B[U])-f.width,g*=v?1:-1}var q,P=Object.assign({position:s},m&&F),W=!0===b?function(n,t){var e=n.x,r=n.y,o=t.devicePixelRatio||1;return{x:x(e*o)/o||0,y:x(r*o)/o||0}}({x:g,y:O},p(u)):{x:g,y:O};return g=W.x,O=W.y,v?Object.assign({},P,((q={})[C]=k?"0":"",q[A]=T?"0":"",q.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+O+"px)":"translate3d("+g+"px, "+O+"px, 0)",q)):Object.assign({},P,((i={})[C]=k?O+"px":"",i[A]=T?g+"px":"",i.transform="",i))}var z={passive:!0};var V={left:"right",right:"left",bottom:"top",top:"bottom"};function X(n){return n.replace(/left|right|bottom|top/g,(function(n){return V[n]}))}var Y={start:"end",end:"start"};function N(n){return n.replace(/start|end/g,(function(n){return Y[n]}))}function $(n){var t=p(n);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function J(n){return k(S(n)).left+$(n).scrollLeft}function _(n){var t=M(n),e=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+o+r)}function G(n){return["html","body","#document"].indexOf(v(n))>=0?n.ownerDocument.body:b(n)&&_(n)?n:G(B(n))}function K(n,t){var e;void 0===t&&(t=[]);var r=G(n),o=r===(null==(e=n.ownerDocument)?void 0:e.body),i=p(r),u=o?[i].concat(i.visualViewport||[],_(r)?r:[]):r,a=t.concat(u);return o?a:a.concat(K(B(u)))}function Q(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Z(n,t,e){return t===f?Q(function(n,t){var e=p(n),r=S(n),o=e.visualViewport,i=r.clientWidth,u=r.clientHeight,a=0,f=0;if(o){i=o.width,u=o.height;var c=T();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,f=o.offsetTop)}return{width:i,height:u,x:a+J(n),y:f}}(n,e)):m(t)?function(n,t){var e=k(n,!1,"fixed"===t);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}(t,e):Q(function(n){var t,e=S(n),r=$(n),o=null==(t=n.ownerDocument)?void 0:t.body,i=w(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=w(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+J(n),f=-r.scrollTop;return"rtl"===M(o||e).direction&&(a+=w(e.clientWidth,o?o.clientWidth:0)-i),{width:i,height:u,x:a,y:f}}(S(n)))}function nn(n,t,e,r){var o="clippingParents"===t?function(n){var t=K(B(n)),e=["absolute","fixed"].indexOf(M(n).position)>=0&&b(n)?H(n):n;return m(e)?t.filter((function(n){return m(n)&&C(n,e)&&"body"!==v(n)})):[]}(n):[].concat(t),i=[].concat(o,[e]),u=i[0],a=i.reduce((function(t,e){var o=Z(n,e,r);return t.top=w(o.top,t.top),t.right=O(o.right,t.right),t.bottom=O(o.bottom,t.bottom),t.left=w(o.left,t.left),t}),Z(n,u,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function tn(o){var i,f=o.reference,c=o.element,d=o.placement,l=d?g(d):null,s=d?L(d):null,v=f.x+f.width/2-c.width/2,p=f.y+f.height/2-c.height/2;switch(l){case n:i={x:v,y:f.y-c.height};break;case t:i={x:v,y:f.y+f.height};break;case e:i={x:f.x+f.width,y:p};break;case r:i={x:f.x-c.width,y:p};break;default:i={x:f.x,y:f.y}}var m=l?U(l):null;if(null!=m){var b="y"===m?"height":"width";switch(s){case u:i[m]=i[m]-(f[b]/2-c[b]/2);break;case a:i[m]=i[m]+(f[b]/2-c[b]/2)}}return i}function en(r,o){void 0===o&&(o={});var u=o,a=u.placement,d=void 0===a?r.placement:a,l=u.strategy,s=void 0===l?r.strategy:l,v=u.boundary,p=void 0===v?"clippingParents":v,b=u.rootBoundary,h=void 0===b?f:b,y=u.elementContext,g=void 0===y?c:y,w=u.altBoundary,O=void 0!==w&&w,x=u.padding,j=void 0===x?0:x,T=P("number"!=typeof j?j:W(j,i)),A=g===c?"reference":c,C=r.rects.popper,M=r.elements[O?A:g],R=nn(m(M)?M:M.contextElement||S(r.elements.popper),p,h,s),B=k(r.elements.reference),E=tn({reference:B,element:C,strategy:"absolute",placement:d}),H=Q(Object.assign({},C,E)),U=g===c?H:B,q={top:R.top-U.top+T.top,bottom:U.bottom-R.bottom+T.bottom,left:R.left-U.left+T.left,right:U.right-R.right+T.right},D=r.modifiersData.offset;if(g===c&&D){var L=D[d];Object.keys(q).forEach((function(r){var o=[e,t].indexOf(r)>=0?1:-1,i=[n,t].indexOf(r)>=0?"y":"x";q[r]+=L[i]*o}))}return q}function rn(n,t){void 0===t&&(t={});var e=t,r=e.placement,o=e.boundary,u=e.rootBoundary,a=e.padding,f=e.flipVariations,c=e.allowedAutoPlacements,s=void 0===c?l:c,v=L(r),p=v?f?d:d.filter((function(n){return L(n)===v})):i,m=p.filter((function(n){return s.indexOf(n)>=0}));0===m.length&&(m=p);var b=m.reduce((function(t,e){return t[e]=en(n,{placement:e,boundary:o,rootBoundary:u,padding:a})[g(e)],t}),{});return Object.keys(b).sort((function(n,t){return b[n]-b[t]}))}var on={name:"flip",enabled:!0,phase:"main",fn:function(i){var a=i.state,f=i.options,c=i.name;if(!a.modifiersData[c]._skip){for(var d=f.mainAxis,l=void 0===d||d,s=f.altAxis,v=void 0===s||s,p=f.fallbackPlacements,m=f.padding,b=f.boundary,h=f.rootBoundary,y=f.altBoundary,w=f.flipVariations,O=void 0===w||w,x=f.allowedAutoPlacements,j=a.options.placement,T=g(j),k=p||(T===j||!O?[X(j)]:function(n){if(g(n)===o)return[];var t=X(n);return[N(n),t,N(t)]}(j)),A=[j].concat(k).reduce((function(n,t){return n.concat(g(t)===o?rn(a,{placement:t,boundary:b,rootBoundary:h,padding:m,flipVariations:O,allowedAutoPlacements:x}):t)}),[]),C=a.rects.reference,M=a.rects.popper,R=new Map,S=!0,B=A[0],E=0;E<A.length;E++){var H=A[E],U=g(H),q=L(H)===u,P=[n,t].indexOf(U)>=0,W=P?"width":"height",D=en(a,{placement:H,boundary:b,rootBoundary:h,altBoundary:y,padding:m}),F=P?q?e:r:q?t:n;C[W]>M[W]&&(F=X(F));var I=X(F),z=[];if(l&&z.push(D[U]<=0),v&&z.push(D[F]<=0,D[I]<=0),z.every((function(n){return n}))){B=H,S=!1;break}R.set(H,z)}if(S)for(var V=function(n){var t=A.find((function(t){var e=R.get(t);if(e)return e.slice(0,n).every((function(n){return n}))}));if(t)return B=t,"break"},Y=O?3:1;Y>0;Y--){if("break"===V(Y))break}a.placement!==B&&(a.modifiersData[c]._skip=!0,a.placement=B,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function un(n,t,e){return void 0===e&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function an(o){return[n,e,t,r].some((function(n){return o[n]>=0}))}var fn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var o=t.state,i=t.options,u=t.name,a=i.offset,f=void 0===a?[0,0]:a,c=l.reduce((function(t,i){return t[i]=function(t,o,i){var u=g(t),a=[r,n].indexOf(u)>=0?-1:1,f="function"==typeof i?i(Object.assign({},o,{placement:t})):i,c=f[0],d=f[1];return c=c||0,d=(d||0)*a,[r,e].indexOf(u)>=0?{x:d,y:c}:{x:c,y:d}}(i,o.rects,f),t}),{}),d=c[o.placement],s=d.x,v=d.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=s,o.modifiersData.popperOffsets.y+=v),o.modifiersData[u]=c}};var cn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var i=o.state,a=o.options,f=o.name,c=a.mainAxis,d=void 0===c||c,l=a.altAxis,s=void 0!==l&&l,v=a.boundary,p=a.rootBoundary,m=a.altBoundary,b=a.padding,h=a.tether,y=void 0===h||h,x=a.tetherOffset,j=void 0===x?0:x,T=en(i,{boundary:v,rootBoundary:p,padding:b,altBoundary:m}),k=g(i.placement),C=L(i.placement),M=!C,R=U(k),S="x"===R?"y":"x",B=i.modifiersData.popperOffsets,E=i.rects.reference,P=i.rects.popper,W="function"==typeof j?j(Object.assign({},i.rects,{placement:i.placement})):j,D="number"==typeof W?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),F=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,I={x:0,y:0};if(B){if(d){var z,V="y"===R?n:r,X="y"===R?t:e,Y="y"===R?"height":"width",N=B[R],$=N+T[V],J=N-T[X],_=y?-P[Y]/2:0,G=C===u?E[Y]:P[Y],K=C===u?-P[Y]:-E[Y],Q=i.elements.arrow,Z=y&&Q?A(Q):{width:0,height:0},nn=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},tn=nn[V],rn=nn[X],on=q(0,E[Y],Z[Y]),un=M?E[Y]/2-_-on-tn-D.mainAxis:G-on-tn-D.mainAxis,an=M?-E[Y]/2+_+on+rn+D.mainAxis:K+on+rn+D.mainAxis,fn=i.elements.arrow&&H(i.elements.arrow),cn=fn?"y"===R?fn.clientTop||0:fn.clientLeft||0:0,dn=null!=(z=null==F?void 0:F[R])?z:0,ln=N+an-dn,sn=q(y?O($,N+un-dn-cn):$,N,y?w(J,ln):J);B[R]=sn,I[R]=sn-N}if(s){var vn,pn="x"===R?n:r,mn="x"===R?t:e,bn=B[S],hn="y"===S?"height":"width",yn=bn+T[pn],gn=bn-T[mn],wn=-1!==[n,r].indexOf(k),On=null!=(vn=null==F?void 0:F[S])?vn:0,xn=wn?yn:bn-E[hn]-P[hn]-On+D.altAxis,jn=wn?bn+E[hn]+P[hn]-On-D.altAxis:gn,Tn=y&&wn?function(n,t,e){var r=q(n,t,e);return r>e?e:r}(xn,bn,jn):q(y?xn:yn,bn,y?jn:gn);B[S]=Tn,I[S]=Tn-bn}i.modifiersData[f]=I}},requiresIfExists:["offset"]};function dn(n,t,e){void 0===e&&(e=!1);var r,o,i=b(t),u=b(t)&&function(n){var t=n.getBoundingClientRect(),e=x(t.width)/n.offsetWidth||1,r=x(t.height)/n.offsetHeight||1;return 1!==e||1!==r}(t),a=S(t),f=k(n,u,e),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!e)&&(("body"!==v(t)||_(a))&&(c=(r=t)!==p(r)&&b(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:$(r)),b(t)?((d=k(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=J(a))),{x:f.left+c.scrollLeft-d.x,y:f.top+c.scrollTop-d.y,width:f.width,height:f.height}}function ln(n){var t=new Map,e=new Set,r=[];function o(n){e.add(n.name),[].concat(n.requires||[],n.requiresIfExists||[]).forEach((function(n){if(!e.has(n)){var r=t.get(n);r&&o(r)}})),r.push(n)}return n.forEach((function(n){t.set(n.name,n)})),n.forEach((function(n){e.has(n.name)||o(n)})),r}var sn={placement:"bottom",modifiers:[],strategy:"absolute"};function vn(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];return!t.some((function(n){return!(n&&"function"==typeof n.getBoundingClientRect)}))}function pn(n){void 0===n&&(n={});var t=n,e=t.defaultModifiers,r=void 0===e?[]:e,o=t.defaultOptions,i=void 0===o?sn:o;return function(n,t,e){void 0===e&&(e=i);var o,u,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},sn,i),modifiersData:{},elements:{reference:n,popper:t},attributes:{},styles:{}},f=[],c=!1,d={state:a,setOptions:function(e){var o="function"==typeof e?e(a.options):e;l(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:m(n)?K(n):n.contextElement?K(n.contextElement):[],popper:K(t)};var u,c,v=function(n){var t=ln(n);return s.reduce((function(n,e){return n.concat(t.filter((function(n){return n.phase===e})))}),[])}((u=[].concat(r,a.options.modifiers),c=u.reduce((function(n,t){var e=n[t.name];return n[t.name]=e?Object.assign({},e,t,{options:Object.assign({},e.options,t.options),data:Object.assign({},e.data,t.data)}):t,n}),{}),Object.keys(c).map((function(n){return c[n]}))));return a.orderedModifiers=v.filter((function(n){return n.enabled})),a.orderedModifiers.forEach((function(n){var t=n.name,e=n.options,r=void 0===e?{}:e,o=n.effect;if("function"==typeof o){var i=o({state:a,name:t,instance:d,options:r}),u=function(){};f.push(i||u)}})),d.update()},forceUpdate:function(){if(!c){var n=a.elements,t=n.reference,e=n.popper;if(vn(t,e)){a.rects={reference:dn(t,H(e),"fixed"===a.options.strategy),popper:A(e)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(n){return a.modifiersData[n.name]=Object.assign({},n.data)}));for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var o=a.orderedModifiers[r],i=o.fn,u=o.options,f=void 0===u?{}:u,l=o.name;"function"==typeof i&&(a=i({state:a,options:f,name:l,instance:d})||a)}else a.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(n){d.forceUpdate(),n(a)}))},function(){return u||(u=new Promise((function(n){Promise.resolve().then((function(){u=void 0,n(o())}))}))),u}),destroy:function(){l(),c=!0}};if(!vn(n,t))return d;function l(){f.forEach((function(n){return n()})),f=[]}return d.setOptions(e).then((function(n){!c&&e.onFirstUpdate&&e.onFirstUpdate(n)})),d}}var mn=pn({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(n){var t=n.state,e=n.instance,r=n.options,o=r.scroll,i=void 0===o||o,u=r.resize,a=void 0===u||u,f=p(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(n){n.addEventListener("scroll",e.update,z)})),a&&f.addEventListener("resize",e.update,z),function(){i&&c.forEach((function(n){n.removeEventListener("scroll",e.update,z)})),a&&f.removeEventListener("resize",e.update,z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(n){var t=n.state,e=n.name;t.modifiersData[e]=tn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(n){var t=n.state,e=n.options,r=e.gpuAcceleration,o=void 0===r||r,i=e.adaptive,u=void 0===i||i,a=e.roundOffsets,f=void 0===a||a,c={placement:g(t.placement),variation:L(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,I(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,I(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},y,fn,on,cn,D,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(n){var t=n.state,e=n.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,u=en(t,{elementContext:"reference"}),a=en(t,{altBoundary:!0}),f=un(u,r),c=un(a,o,i),d=an(f),l=an(c);t.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":l})}}]}),bn='<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>',hn="tippy-content",yn="tippy-arrow",gn="tippy-svg-arrow",wn={passive:!0,capture:!0},On=function(){return document.body};function xn(n,t,e){if(Array.isArray(n)){var r=n[t];return null==r?Array.isArray(e)?e[t]:e:r}return n}function jn(n,t){var e={}.toString.call(n);return 0===e.indexOf("[object")&&e.indexOf(t+"]")>-1}function Tn(n,t){return"function"==typeof n?n.apply(void 0,t):n}function kn(n,t){return 0===t?n:function(r){clearTimeout(e),e=setTimeout((function(){n(r)}),t)};var e}function An(n){return[].concat(n)}function Cn(n,t){-1===n.indexOf(t)&&n.push(t)}function Mn(n){return[].slice.call(n)}function Rn(n){return Object.keys(n).reduce((function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t}),{})}function Sn(){return document.createElement("div")}function Bn(n){return["Element","Fragment"].some((function(t){return jn(n,t)}))}function En(n){return jn(n,"MouseEvent")}function Hn(n){return Bn(n)?[n]:function(n){return jn(n,"NodeList")}(n)?Mn(n):Array.isArray(n)?n:Mn(document.querySelectorAll(n))}function Un(n,t){n.forEach((function(n){n&&(n.style.transitionDuration=t+"ms")}))}function qn(n,t){n.forEach((function(n){n&&n.setAttribute("data-state",t)}))}function Pn(n){var t,e=An(n)[0];return null!=e&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document}function Wn(n,t,e){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){n[r](t,e)}))}function Dn(n,t){for(var e=t;e;){var r;if(n.contains(e))return!0;e=null==e.getRootNode||null==(r=e.getRootNode())?void 0:r.host}return!1}var Ln={isTouch:!1},Fn=0;function In(){Ln.isTouch||(Ln.isTouch=!0,window.performance&&document.addEventListener("mousemove",zn))}function zn(){var n=performance.now();n-Fn<20&&(Ln.isTouch=!1,document.removeEventListener("mousemove",zn)),Fn=n}function Vn(){var n,t=document.activeElement;if((n=t)&&n._tippy&&n._tippy.reference===n){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var Xn=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Yn=Object.assign({appendTo:On,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}),Nn=Object.keys(Yn);function $n(n){var t=(n.plugins||[]).reduce((function(t,e){var r,o=e.name,i=e.defaultValue;o&&(t[o]=void 0!==n[o]?n[o]:null!=(r=Yn[o])?r:i);return t}),{});return Object.assign({},n,t)}function Jn(n,t){var e=Object.assign({},t,{content:Tn(t.content,[n])},t.ignoreAttributes?{}:function(n,t){return(t?Object.keys($n(Object.assign({},Yn,{plugins:t}))):Nn).reduce((function(t,e){var r=(n.getAttribute("data-tippy-"+e)||"").trim();if(!r)return t;if("content"===e)t[e]=r;else try{t[e]=JSON.parse(r)}catch(n){t[e]=r}return t}),{})}(n,t.plugins));return e.aria=Object.assign({},Yn.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}function _n(n,t){n.innerHTML=t}function Gn(n){var t=Sn();return!0===n?t.className=yn:(t.className=gn,Bn(n)?t.appendChild(n):_n(t,n)),t}function Kn(n,t){Bn(t.content)?(_n(n,""),n.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?_n(n,t.content):n.textContent=t.content)}function Qn(n){var t=n.firstElementChild,e=Mn(t.children);return{box:t,content:e.find((function(n){return n.classList.contains(hn)})),arrow:e.find((function(n){return n.classList.contains(yn)||n.classList.contains(gn)})),backdrop:e.find((function(n){return n.classList.contains("tippy-backdrop")}))}}function Zn(n){var t=Sn(),e=Sn();e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var r=Sn();function o(e,r){var o=Qn(t),i=o.box,u=o.content,a=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"),e.content===r.content&&e.allowHTML===r.allowHTML||Kn(u,n.props),r.arrow?a?e.arrow!==r.arrow&&(i.removeChild(a),i.appendChild(Gn(r.arrow))):i.appendChild(Gn(r.arrow)):a&&i.removeChild(a)}return r.className=hn,r.setAttribute("data-state","hidden"),Kn(r,n.props),t.appendChild(e),e.appendChild(r),o(n.props,n.props),{popper:t,onUpdate:o}}Zn.$$tippy=!0;var nt=1,tt=[],et=[];function rt(n,t){var e,r,o,i,u,a,f,c,d=Jn(n,Object.assign({},Yn,$n(Rn(t)))),l=!1,s=!1,v=!1,p=!1,m=[],b=kn($,d.interactiveDebounce),h=nt++,y=(c=d.plugins).filter((function(n,t){return c.indexOf(n)===t})),g={id:h,reference:n,popper:Sn(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(e),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){if(g.state.isDestroyed)return;H("onBeforeUpdate",[g,t]),Y();var e=g.props,r=Jn(n,Object.assign({},e,Rn(t),{ignoreAttributes:!0}));g.props=r,X(),e.interactiveDebounce!==r.interactiveDebounce&&(P(),b=kn($,r.interactiveDebounce));e.triggerTarget&&!r.triggerTarget?An(e.triggerTarget).forEach((function(n){n.removeAttribute("aria-expanded")})):r.triggerTarget&&n.removeAttribute("aria-expanded");q(),E(),x&&x(e,r);g.popperInstance&&(K(),Z().forEach((function(n){requestAnimationFrame(n._tippy.popperInstance.forceUpdate)})));H("onAfterUpdate",[g,t])},setContent:function(n){g.setProps({content:n})},show:function(){var n=g.state.isVisible,t=g.state.isDestroyed,e=!g.state.isEnabled,r=Ln.isTouch&&!g.props.touch,o=xn(g.props.duration,0,Yn.duration);if(n||t||e||r)return;if(M().hasAttribute("disabled"))return;if(H("onShow",[g],!1),!1===g.props.onShow(g))return;g.state.isVisible=!0,C()&&(O.style.visibility="visible");E(),F(),g.state.isMounted||(O.style.transition="none");if(C()){var i=S();Un([i.box,i.content],0)}a=function(){var n;if(g.state.isVisible&&!p){if(p=!0,O.offsetHeight,O.style.transition=g.props.moveTransition,C()&&g.props.animation){var t=S(),e=t.box,r=t.content;Un([e,r],o),qn([e,r],"visible")}U(),q(),Cn(et,g),null==(n=g.popperInstance)||n.forceUpdate(),H("onMount",[g]),g.props.animation&&C()&&function(n,t){z(n,t)}(o,(function(){g.state.isShown=!0,H("onShown",[g])}))}},function(){var n,t=g.props.appendTo,e=M();n=g.props.interactive&&t===On||"parent"===t?e.parentNode:Tn(t,[e]);n.contains(O)||n.appendChild(O);g.state.isMounted=!0,K()}()},hide:function(){var n=!g.state.isVisible,t=g.state.isDestroyed,e=!g.state.isEnabled,r=xn(g.props.duration,1,Yn.duration);if(n||t||e)return;if(H("onHide",[g],!1),!1===g.props.onHide(g))return;g.state.isVisible=!1,g.state.isShown=!1,p=!1,l=!1,C()&&(O.style.visibility="hidden");if(P(),I(),E(!0),C()){var o=S(),i=o.box,u=o.content;g.props.animation&&(Un([i,u],r),qn([i,u],"hidden"))}U(),q(),g.props.animation?C()&&function(n,t){z(n,(function(){!g.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&t()}))}(r,g.unmount):g.unmount()},hideWithInteractivity:function(n){R().addEventListener("mousemove",b),Cn(tt,b),b(n)},enable:function(){g.state.isEnabled=!0},disable:function(){g.hide(),g.state.isEnabled=!1},unmount:function(){g.state.isVisible&&g.hide();if(!g.state.isMounted)return;Q(),Z().forEach((function(n){n._tippy.unmount()})),O.parentNode&&O.parentNode.removeChild(O);et=et.filter((function(n){return n!==g})),g.state.isMounted=!1,H("onHidden",[g])},destroy:function(){if(g.state.isDestroyed)return;g.clearDelayTimeouts(),g.unmount(),Y(),delete n._tippy,g.state.isDestroyed=!0,H("onDestroy",[g])}};if(!d.render)return g;var w=d.render(g),O=w.popper,x=w.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+g.id,g.popper=O,n._tippy=g,O._tippy=g;var j=y.map((function(n){return n.fn(g)})),T=n.hasAttribute("aria-expanded");return X(),q(),E(),H("onCreate",[g]),d.showOnCreate&&nn(),O.addEventListener("mouseenter",(function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()})),O.addEventListener("mouseleave",(function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&R().addEventListener("mousemove",b)})),g;function k(){var n=g.props.touch;return Array.isArray(n)?n:[n,0]}function A(){return"hold"===k()[0]}function C(){var n;return!(null==(n=g.props.render)||!n.$$tippy)}function M(){return f||n}function R(){var n=M().parentNode;return n?Pn(n):document}function S(){return Qn(O)}function B(n){return g.state.isMounted&&!g.state.isVisible||Ln.isTouch||i&&"focus"===i.type?0:xn(g.props.delay,n?0:1,Yn.delay)}function E(n){void 0===n&&(n=!1),O.style.pointerEvents=g.props.interactive&&!n?"":"none",O.style.zIndex=""+g.props.zIndex}function H(n,t,e){var r;(void 0===e&&(e=!0),j.forEach((function(e){e[n]&&e[n].apply(e,t)})),e)&&(r=g.props)[n].apply(r,t)}function U(){var t=g.props.aria;if(t.content){var e="aria-"+t.content,r=O.id;An(g.props.triggerTarget||n).forEach((function(n){var t=n.getAttribute(e);if(g.state.isVisible)n.setAttribute(e,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?n.setAttribute(e,o):n.removeAttribute(e)}}))}}function q(){!T&&g.props.aria.expanded&&An(g.props.triggerTarget||n).forEach((function(n){g.props.interactive?n.setAttribute("aria-expanded",g.state.isVisible&&n===M()?"true":"false"):n.removeAttribute("aria-expanded")}))}function P(){R().removeEventListener("mousemove",b),tt=tt.filter((function(n){return n!==b}))}function W(t){if(!Ln.isTouch||!v&&"mousedown"!==t.type){var e=t.composedPath&&t.composedPath()[0]||t.target;if(!g.props.interactive||!Dn(O,e)){if(An(g.props.triggerTarget||n).some((function(n){return Dn(n,e)}))){if(Ln.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else H("onClickOutside",[g,t]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),s=!0,setTimeout((function(){s=!1})),g.state.isMounted||I())}}}function D(){v=!0}function L(){v=!1}function F(){var n=R();n.addEventListener("mousedown",W,!0),n.addEventListener("touchend",W,wn),n.addEventListener("touchstart",L,wn),n.addEventListener("touchmove",D,wn)}function I(){var n=R();n.removeEventListener("mousedown",W,!0),n.removeEventListener("touchend",W,wn),n.removeEventListener("touchstart",L,wn),n.removeEventListener("touchmove",D,wn)}function z(n,t){var e=S().box;function r(n){n.target===e&&(Wn(e,"remove",r),t())}if(0===n)return t();Wn(e,"remove",u),Wn(e,"add",r),u=r}function V(t,e,r){void 0===r&&(r=!1),An(g.props.triggerTarget||n).forEach((function(n){n.addEventListener(t,e,r),m.push({node:n,eventType:t,handler:e,options:r})}))}function X(){var n;A()&&(V("touchstart",N,{passive:!0}),V("touchend",J,{passive:!0})),(n=g.props.trigger,n.split(/\s+/).filter(Boolean)).forEach((function(n){if("manual"!==n)switch(V(n,N),n){case"mouseenter":V("mouseleave",J);break;case"focus":V(Xn?"focusout":"blur",_);break;case"focusin":V("focusout",_)}}))}function Y(){m.forEach((function(n){var t=n.node,e=n.eventType,r=n.handler,o=n.options;t.removeEventListener(e,r,o)})),m=[]}function N(n){var t,e=!1;if(g.state.isEnabled&&!G(n)&&!s){var r="focus"===(null==(t=i)?void 0:t.type);i=n,f=n.currentTarget,q(),!g.state.isVisible&&En(n)&&tt.forEach((function(t){return t(n)})),"click"===n.type&&(g.props.trigger.indexOf("mouseenter")<0||l)&&!1!==g.props.hideOnClick&&g.state.isVisible?e=!0:nn(n),"click"===n.type&&(l=!e),e&&!r&&tn(n)}}function $(n){var t=n.target,e=M().contains(t)||O.contains(t);if("mousemove"!==n.type||!e){var r=Z().concat(O).map((function(n){var t,e=null==(t=n._tippy.popperInstance)?void 0:t.state;return e?{popperRect:n.getBoundingClientRect(),popperState:e,props:d}:null})).filter(Boolean);(function(n,t){var e=t.clientX,r=t.clientY;return n.every((function(n){var t=n.popperRect,o=n.popperState,i=n.props.interactiveBorder,u=o.placement.split("-")[0],a=o.modifiersData.offset;if(!a)return!0;var f="bottom"===u?a.top.y:0,c="top"===u?a.bottom.y:0,d="right"===u?a.left.x:0,l="left"===u?a.right.x:0,s=t.top-r+f>i,v=r-t.bottom-c>i,p=t.left-e+d>i,m=e-t.right-l>i;return s||v||p||m}))})(r,n)&&(P(),tn(n))}}function J(n){G(n)||g.props.trigger.indexOf("click")>=0&&l||(g.props.interactive?g.hideWithInteractivity(n):tn(n))}function _(n){g.props.trigger.indexOf("focusin")<0&&n.target!==M()||g.props.interactive&&n.relatedTarget&&O.contains(n.relatedTarget)||tn(n)}function G(n){return!!Ln.isTouch&&A()!==n.type.indexOf("touch")>=0}function K(){Q();var t=g.props,e=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,u=t.moveTransition,f=C()?Qn(O).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||M()}:n,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(n){var t=n.state;if(C()){var e=S().box;["placement","reference-hidden","escaped"].forEach((function(n){"placement"===n?e.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+n]?e.setAttribute("data-"+n,""):e.removeAttribute("data-"+n)})),t.attributes.popper={}}}},l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!u}},d];C()&&f&&l.push({name:"arrow",options:{element:f,padding:3}}),l.push.apply(l,(null==e?void 0:e.modifiers)||[]),g.popperInstance=mn(c,O,Object.assign({},e,{placement:r,onFirstUpdate:a,modifiers:l}))}function Q(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Z(){return Mn(O.querySelectorAll("[data-tippy-root]"))}function nn(n){g.clearDelayTimeouts(),n&&H("onTrigger",[g,n]),F();var t=B(!0),r=k(),o=r[0],i=r[1];Ln.isTouch&&"hold"===o&&i&&(t=i),t?e=setTimeout((function(){g.show()}),t):g.show()}function tn(n){if(g.clearDelayTimeouts(),H("onUntrigger",[g,n]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(n.type)>=0&&l)){var t=B(!1);t?r=setTimeout((function(){g.state.isVisible&&g.hide()}),t):o=requestAnimationFrame((function(){g.hide()}))}}else I()}}function ot(n,t){void 0===t&&(t={});var e=Yn.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",In,wn),window.addEventListener("blur",Vn);var r=Object.assign({},t,{plugins:e}),o=Hn(n).reduce((function(n,t){var e=t&&rt(t,r);return e&&n.push(e),n}),[]);return Bn(n)?o[0]:o}ot.defaultProps=Yn,ot.setDefaultProps=function(n){Object.keys(n).forEach((function(t){Yn[t]=n[t]}))},ot.currentInput=Ln;var it=Object.assign({},y,{effect:function(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow)}}),ut=function(n,t){var e;void 0===t&&(t={});var r,o=n,i=[],u=[],a=t.overrides,f=[],c=!1;function d(){u=o.map((function(n){return An(n.props.triggerTarget||n.reference)})).reduce((function(n,t){return n.concat(t)}),[])}function l(){i=o.map((function(n){return n.reference}))}function s(n){o.forEach((function(t){n?t.enable():t.disable()}))}function v(n){return o.map((function(t){var e=t.setProps;return t.setProps=function(o){e(o),t.reference===r&&n.setProps(o)},function(){t.setProps=e}}))}function p(n,t){var e=u.indexOf(t);if(t!==r){r=t;var f=(a||[]).concat("content").reduce((function(n,t){return n[t]=o[e].props[t],n}),{});n.setProps(Object.assign({},f,{getReferenceClientRect:"function"==typeof f.getReferenceClientRect?f.getReferenceClientRect:function(){var n;return null==(n=i[e])?void 0:n.getBoundingClientRect()}}))}}s(!1),l(),d();var m,b,h,y={fn:function(){return{onDestroy:function(){s(!0)},onHidden:function(){r=null},onClickOutside:function(n){n.props.showOnCreate&&!c&&(c=!0,r=null)},onShow:function(n){n.props.showOnCreate&&!c&&(c=!0,p(n,i[0]))},onTrigger:function(n,t){p(n,t.currentTarget)}}}},g=ot(Sn(),Object.assign({},(m=t,b=["overrides"],h=Object.assign({},m),b.forEach((function(n){delete h[n]})),h),{plugins:[y].concat(t.plugins||[]),triggerTarget:u,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(e=t.popperOptions)?void 0:e.modifiers)||[],[it])})})),w=g.show;g.show=function(n){if(w(),!r&&null==n)return p(g,i[0]);if(!r||null!=n){if("number"==typeof n)return i[n]&&p(g,i[n]);if(o.indexOf(n)>=0){var t=n.reference;return p(g,t)}return i.indexOf(n)>=0?p(g,n):void 0}},g.showNext=function(){var n=i[0];if(!r)return g.show(0);var t=i.indexOf(r);g.show(i[t+1]||n)},g.showPrevious=function(){var n=i[i.length-1];if(!r)return g.show(n);var t=i.indexOf(r),e=i[t-1]||n;g.show(e)};var O=g.setProps;return g.setProps=function(n){a=n.overrides||a,O(n)},g.setInstances=function(n){s(!0),f.forEach((function(n){return n()})),o=n,s(!1),l(),d(),f=v(g),g.setProps({triggerTarget:u})},f=v(g),g},at={clientX:0,clientY:0},ft=[];function ct(n){var t=n.clientX,e=n.clientY;at={clientX:t,clientY:e}}var dt={name:"followCursor",defaultValue:!1,fn:function(n){var t=n.reference,e=Pn(n.props.triggerTarget||t),r=!1,o=!1,i=!0,u=n.props;function a(){return"initial"===n.props.followCursor&&n.state.isVisible}function f(){e.addEventListener("mousemove",l)}function c(){e.removeEventListener("mousemove",l)}function d(){r=!0,n.setProps({getReferenceClientRect:null}),r=!1}function l(e){var r=!e.target||t.contains(e.target),o=n.props.followCursor,i=e.clientX,u=e.clientY,a=t.getBoundingClientRect(),f=i-a.left,c=u-a.top;!r&&n.props.interactive||n.setProps({getReferenceClientRect:function(){var n=t.getBoundingClientRect(),e=i,r=u;"initial"===o&&(e=n.left+f,r=n.top+c);var a="horizontal"===o?n.top:r,d="vertical"===o?n.right:e,l="horizontal"===o?n.bottom:r,s="vertical"===o?n.left:e;return{width:d-s,height:l-a,top:a,right:d,bottom:l,left:s}}})}function s(){n.props.followCursor&&(ft.push({instance:n,doc:e}),function(n){n.addEventListener("mousemove",ct)}(e))}function v(){0===(ft=ft.filter((function(t){return t.instance!==n}))).filter((function(n){return n.doc===e})).length&&function(n){n.removeEventListener("mousemove",ct)}(e)}return{onCreate:s,onDestroy:v,onBeforeUpdate:function(){u=n.props},onAfterUpdate:function(t,e){var i=e.followCursor;r||void 0!==i&&u.followCursor!==i&&(v(),i?(s(),!n.state.isMounted||o||a()||f()):(c(),d()))},onMount:function(){n.props.followCursor&&!o&&(i&&(l(at),i=!1),a()||f())},onTrigger:function(n,t){En(t)&&(at={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){n.props.followCursor&&(d(),c(),i=!0)}}}};ot.setDefaultProps({render:Zn});export{bn as R,ut as c,dt as f,ot as t};
@@ -0,0 +1,2 @@
1
+ System.register([],function(_export,_context){"use strict";var n,t,e,r,o,i,u,a,f,c,d,l,s,y,w,O,x,D,F,z,V,Y,on,fn,cn,sn,mn,bn,hn,yn,gn,wn,On,Ln,Fn,Xn,Yn,Nn,nt,tt,et,it,ut,at,ft,dt;function v(n){return n?(n.nodeName||"").toLowerCase():null;}function p(n){if(null==n)return window;if("[object Window]"!==n.toString()){var t=n.ownerDocument;return t&&t.defaultView||window;}return n;}function m(n){return n instanceof p(n).Element||n instanceof Element;}function b(n){return n instanceof p(n).HTMLElement||n instanceof HTMLElement;}function h(n){return"undefined"!=typeof ShadowRoot&&(n instanceof p(n).ShadowRoot||n instanceof ShadowRoot);}function g(n){return n.split("-")[0];}function j(){var n=navigator.userAgentData;return null!=n&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(n){return n.brand+"/"+n.version;}).join(" "):navigator.userAgent;}function T(){return!/^((?!chrome|android).)*safari/i.test(j());}function k(n,t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var r=n.getBoundingClientRect(),o=1,i=1;t&&b(n)&&(o=n.offsetWidth>0&&x(r.width)/n.offsetWidth||1,i=n.offsetHeight>0&&x(r.height)/n.offsetHeight||1);var u=(m(n)?p(n):window).visualViewport,a=!T()&&e,f=(r.left+(a&&u?u.offsetLeft:0))/o,c=(r.top+(a&&u?u.offsetTop:0))/i,d=r.width/o,l=r.height/i;return{width:d,height:l,top:c,right:f+d,bottom:c+l,left:f,x:f,y:c};}function A(n){var t=k(n),e=n.offsetWidth,r=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:r};}function C(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&h(e)){var r=t;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host;}while(r);}return!1;}function M(n){return p(n).getComputedStyle(n);}function R(n){return["table","td","th"].indexOf(v(n))>=0;}function S(n){return((m(n)?n.ownerDocument:n.document)||window.document).documentElement;}function B(n){return"html"===v(n)?n:n.assignedSlot||n.parentNode||(h(n)?n.host:null)||S(n);}function E(n){return b(n)&&"fixed"!==M(n).position?n.offsetParent:null;}function H(n){for(var t=p(n),e=E(n);e&&R(e)&&"static"===M(e).position;)e=E(e);return e&&("html"===v(e)||"body"===v(e)&&"static"===M(e).position)?t:e||function(n){var t=/firefox/i.test(j());if(/Trident/i.test(j())&&b(n)&&"fixed"===M(n).position)return null;var e=B(n);for(h(e)&&(e=e.host);b(e)&&["html","body"].indexOf(v(e))<0;){var r=M(e);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 e;e=e.parentNode;}return null;}(n)||t;}function U(n){return["top","bottom"].indexOf(n)>=0?"x":"y";}function q(n,t,e){return w(n,O(t,e));}function P(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n);}function W(n,t){return t.reduce(function(t,e){return t[e]=n,t;},{});}function L(n){return n.split("-")[1];}function I(o){var i,u=o.popper,f=o.popperRect,c=o.placement,d=o.variation,l=o.offsets,s=o.position,v=o.gpuAcceleration,m=o.adaptive,b=o.roundOffsets,h=o.isFixed,y=l.x,g=void 0===y?0:y,w=l.y,O=void 0===w?0:w,j="function"==typeof b?b({x:g,y:O}):{x:g,y:O};g=j.x,O=j.y;var T=l.hasOwnProperty("x"),k=l.hasOwnProperty("y"),A=r,C=n,R=window;if(m){var B=H(u),E="clientHeight",U="clientWidth";if(B===p(u)&&"static"!==M(B=S(u)).position&&"absolute"===s&&(E="scrollHeight",U="scrollWidth"),c===n||(c===r||c===e)&&d===a)C=t,O-=(h&&B===R&&R.visualViewport?R.visualViewport.height:B[E])-f.height,O*=v?1:-1;if(c===r||(c===n||c===t)&&d===a)A=e,g-=(h&&B===R&&R.visualViewport?R.visualViewport.width:B[U])-f.width,g*=v?1:-1;}var q,P=Object.assign({position:s},m&&F),W=!0===b?function(n,t){var e=n.x,r=n.y,o=t.devicePixelRatio||1;return{x:x(e*o)/o||0,y:x(r*o)/o||0};}({x:g,y:O},p(u)):{x:g,y:O};return g=W.x,O=W.y,v?Object.assign({},P,((q={})[C]=k?"0":"",q[A]=T?"0":"",q.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+O+"px)":"translate3d("+g+"px, "+O+"px, 0)",q)):Object.assign({},P,((i={})[C]=k?O+"px":"",i[A]=T?g+"px":"",i.transform="",i));}function X(n){return n.replace(/left|right|bottom|top/g,function(n){return V[n];});}function N(n){return n.replace(/start|end/g,function(n){return Y[n];});}function $(n){var t=p(n);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset};}function J(n){return k(S(n)).left+$(n).scrollLeft;}function _(n){var t=M(n),e=t.overflow,r=t.overflowX,o=t.overflowY;return /auto|scroll|overlay|hidden/.test(e+o+r);}function G(n){return["html","body","#document"].indexOf(v(n))>=0?n.ownerDocument.body:b(n)&&_(n)?n:G(B(n));}function K(n,t){var e;void 0===t&&(t=[]);var r=G(n),o=r===(null==(e=n.ownerDocument)?void 0:e.body),i=p(r),u=o?[i].concat(i.visualViewport||[],_(r)?r:[]):r,a=t.concat(u);return o?a:a.concat(K(B(u)));}function Q(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height});}function Z(n,t,e){return t===f?Q(function(n,t){var e=p(n),r=S(n),o=e.visualViewport,i=r.clientWidth,u=r.clientHeight,a=0,f=0;if(o){i=o.width,u=o.height;var c=T();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,f=o.offsetTop);}return{width:i,height:u,x:a+J(n),y:f};}(n,e)):m(t)?function(n,t){var e=k(n,!1,"fixed"===t);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e;}(t,e):Q(function(n){var t,e=S(n),r=$(n),o=null==(t=n.ownerDocument)?void 0:t.body,i=w(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=w(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+J(n),f=-r.scrollTop;return"rtl"===M(o||e).direction&&(a+=w(e.clientWidth,o?o.clientWidth:0)-i),{width:i,height:u,x:a,y:f};}(S(n)));}function nn(n,t,e,r){var o="clippingParents"===t?function(n){var t=K(B(n)),e=["absolute","fixed"].indexOf(M(n).position)>=0&&b(n)?H(n):n;return m(e)?t.filter(function(n){return m(n)&&C(n,e)&&"body"!==v(n);}):[];}(n):[].concat(t),i=[].concat(o,[e]),u=i[0],a=i.reduce(function(t,e){var o=Z(n,e,r);return t.top=w(o.top,t.top),t.right=O(o.right,t.right),t.bottom=O(o.bottom,t.bottom),t.left=w(o.left,t.left),t;},Z(n,u,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a;}function tn(o){var i,f=o.reference,c=o.element,d=o.placement,l=d?g(d):null,s=d?L(d):null,v=f.x+f.width/2-c.width/2,p=f.y+f.height/2-c.height/2;switch(l){case n:i={x:v,y:f.y-c.height};break;case t:i={x:v,y:f.y+f.height};break;case e:i={x:f.x+f.width,y:p};break;case r:i={x:f.x-c.width,y:p};break;default:i={x:f.x,y:f.y};}var m=l?U(l):null;if(null!=m){var b="y"===m?"height":"width";switch(s){case u:i[m]=i[m]-(f[b]/2-c[b]/2);break;case a:i[m]=i[m]+(f[b]/2-c[b]/2);}}return i;}function en(r,o){void 0===o&&(o={});var u=o,a=u.placement,d=void 0===a?r.placement:a,l=u.strategy,s=void 0===l?r.strategy:l,v=u.boundary,p=void 0===v?"clippingParents":v,b=u.rootBoundary,h=void 0===b?f:b,y=u.elementContext,g=void 0===y?c:y,w=u.altBoundary,O=void 0!==w&&w,x=u.padding,j=void 0===x?0:x,T=P("number"!=typeof j?j:W(j,i)),A=g===c?"reference":c,C=r.rects.popper,M=r.elements[O?A:g],R=nn(m(M)?M:M.contextElement||S(r.elements.popper),p,h,s),B=k(r.elements.reference),E=tn({reference:B,element:C,strategy:"absolute",placement:d}),H=Q(Object.assign({},C,E)),U=g===c?H:B,q={top:R.top-U.top+T.top,bottom:U.bottom-R.bottom+T.bottom,left:R.left-U.left+T.left,right:U.right-R.right+T.right},D=r.modifiersData.offset;if(g===c&&D){var L=D[d];Object.keys(q).forEach(function(r){var o=[e,t].indexOf(r)>=0?1:-1,i=[n,t].indexOf(r)>=0?"y":"x";q[r]+=L[i]*o;});}return q;}function rn(n,t){void 0===t&&(t={});var e=t,r=e.placement,o=e.boundary,u=e.rootBoundary,a=e.padding,f=e.flipVariations,c=e.allowedAutoPlacements,s=void 0===c?l:c,v=L(r),p=v?f?d:d.filter(function(n){return L(n)===v;}):i,m=p.filter(function(n){return s.indexOf(n)>=0;});0===m.length&&(m=p);var b=m.reduce(function(t,e){return t[e]=en(n,{placement:e,boundary:o,rootBoundary:u,padding:a})[g(e)],t;},{});return Object.keys(b).sort(function(n,t){return b[n]-b[t];});}function un(n,t,e){return void 0===e&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x};}function an(o){return[n,e,t,r].some(function(n){return o[n]>=0;});}function dn(n,t,e){void 0===e&&(e=!1);var r,o,i=b(t),u=b(t)&&function(n){var t=n.getBoundingClientRect(),e=x(t.width)/n.offsetWidth||1,r=x(t.height)/n.offsetHeight||1;return 1!==e||1!==r;}(t),a=S(t),f=k(n,u,e),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!e)&&(("body"!==v(t)||_(a))&&(c=(r=t)!==p(r)&&b(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:$(r)),b(t)?((d=k(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=J(a))),{x:f.left+c.scrollLeft-d.x,y:f.top+c.scrollTop-d.y,width:f.width,height:f.height};}function ln(n){var t=new Map(),e=new Set(),r=[];function o(n){e.add(n.name),[].concat(n.requires||[],n.requiresIfExists||[]).forEach(function(n){if(!e.has(n)){var r=t.get(n);r&&o(r);}}),r.push(n);}return n.forEach(function(n){t.set(n.name,n);}),n.forEach(function(n){e.has(n.name)||o(n);}),r;}function vn(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];return!t.some(function(n){return!(n&&"function"==typeof n.getBoundingClientRect);});}function pn(n){void 0===n&&(n={});var t=n,e=t.defaultModifiers,r=void 0===e?[]:e,o=t.defaultOptions,i=void 0===o?sn:o;return function(n,t,e){void 0===e&&(e=i);var o,u,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},sn,i),modifiersData:{},elements:{reference:n,popper:t},attributes:{},styles:{}},f=[],c=!1,d={state:a,setOptions:function setOptions(e){var o="function"==typeof e?e(a.options):e;l(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:m(n)?K(n):n.contextElement?K(n.contextElement):[],popper:K(t)};var u,c,v=function(n){var t=ln(n);return s.reduce(function(n,e){return n.concat(t.filter(function(n){return n.phase===e;}));},[]);}((u=[].concat(r,a.options.modifiers),c=u.reduce(function(n,t){var e=n[t.name];return n[t.name]=e?Object.assign({},e,t,{options:Object.assign({},e.options,t.options),data:Object.assign({},e.data,t.data)}):t,n;},{}),Object.keys(c).map(function(n){return c[n];})));return a.orderedModifiers=v.filter(function(n){return n.enabled;}),a.orderedModifiers.forEach(function(n){var t=n.name,e=n.options,r=void 0===e?{}:e,o=n.effect;if("function"==typeof o){var i=o({state:a,name:t,instance:d,options:r}),u=function u(){};f.push(i||u);}}),d.update();},forceUpdate:function forceUpdate(){if(!c){var n=a.elements,t=n.reference,e=n.popper;if(vn(t,e)){a.rects={reference:dn(t,H(e),"fixed"===a.options.strategy),popper:A(e)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(n){return a.modifiersData[n.name]=Object.assign({},n.data);});for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var o=a.orderedModifiers[r],i=o.fn,u=o.options,f=void 0===u?{}:u,l=o.name;"function"==typeof i&&(a=i({state:a,options:f,name:l,instance:d})||a);}else a.reset=!1,r=-1;}}},update:(o=function o(){return new Promise(function(n){d.forceUpdate(),n(a);});},function(){return u||(u=new Promise(function(n){Promise.resolve().then(function(){u=void 0,n(o());});})),u;}),destroy:function destroy(){l(),c=!0;}};if(!vn(n,t))return d;function l(){f.forEach(function(n){return n();}),f=[];}return d.setOptions(e).then(function(n){!c&&e.onFirstUpdate&&e.onFirstUpdate(n);}),d;};}function xn(n,t,e){if(Array.isArray(n)){var r=n[t];return null==r?Array.isArray(e)?e[t]:e:r;}return n;}function jn(n,t){var e={}.toString.call(n);return 0===e.indexOf("[object")&&e.indexOf(t+"]")>-1;}function Tn(n,t){return"function"==typeof n?n.apply(void 0,t):n;}function kn(n,t){return 0===t?n:function(r){clearTimeout(e),e=setTimeout(function(){n(r);},t);};var e;}function An(n){return[].concat(n);}function Cn(n,t){-1===n.indexOf(t)&&n.push(t);}function Mn(n){return[].slice.call(n);}function Rn(n){return Object.keys(n).reduce(function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t;},{});}function Sn(){return document.createElement("div");}function Bn(n){return["Element","Fragment"].some(function(t){return jn(n,t);});}function En(n){return jn(n,"MouseEvent");}function Hn(n){return Bn(n)?[n]:function(n){return jn(n,"NodeList");}(n)?Mn(n):Array.isArray(n)?n:Mn(document.querySelectorAll(n));}function Un(n,t){n.forEach(function(n){n&&(n.style.transitionDuration=t+"ms");});}function qn(n,t){n.forEach(function(n){n&&n.setAttribute("data-state",t);});}function Pn(n){var t,e=An(n)[0];return null!=e&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document;}function Wn(n,t,e){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){n[r](t,e);});}function Dn(n,t){for(var e=t;e;){var r;if(n.contains(e))return!0;e=null==e.getRootNode||null==(r=e.getRootNode())?void 0:r.host;}return!1;}function In(){Ln.isTouch||(Ln.isTouch=!0,window.performance&&document.addEventListener("mousemove",zn));}function zn(){var n=performance.now();n-Fn<20&&(Ln.isTouch=!1,document.removeEventListener("mousemove",zn)),Fn=n;}function Vn(){var n,t=document.activeElement;if((n=t)&&n._tippy&&n._tippy.reference===n){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur();}}function $n(n){var t=(n.plugins||[]).reduce(function(t,e){var r,o=e.name,i=e.defaultValue;o&&(t[o]=void 0!==n[o]?n[o]:null!=(r=Yn[o])?r:i);return t;},{});return Object.assign({},n,t);}function Jn(n,t){var e=Object.assign({},t,{content:Tn(t.content,[n])},t.ignoreAttributes?{}:function(n,t){return(t?Object.keys($n(Object.assign({},Yn,{plugins:t}))):Nn).reduce(function(t,e){var r=(n.getAttribute("data-tippy-"+e)||"").trim();if(!r)return t;if("content"===e)t[e]=r;else try{t[e]=JSON.parse(r);}catch(n){t[e]=r;}return t;},{});}(n,t.plugins));return e.aria=Object.assign({},Yn.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e;}function _n(n,t){n.innerHTML=t;}function Gn(n){var t=Sn();return!0===n?t.className=yn:(t.className=gn,Bn(n)?t.appendChild(n):_n(t,n)),t;}function Kn(n,t){Bn(t.content)?(_n(n,""),n.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?_n(n,t.content):n.textContent=t.content);}function Qn(n){var t=n.firstElementChild,e=Mn(t.children);return{box:t,content:e.find(function(n){return n.classList.contains(hn);}),arrow:e.find(function(n){return n.classList.contains(yn)||n.classList.contains(gn);}),backdrop:e.find(function(n){return n.classList.contains("tippy-backdrop");})};}function Zn(n){var t=Sn(),e=Sn();e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var r=Sn();function o(e,r){var o=Qn(t),i=o.box,u=o.content,a=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"),e.content===r.content&&e.allowHTML===r.allowHTML||Kn(u,n.props),r.arrow?a?e.arrow!==r.arrow&&(i.removeChild(a),i.appendChild(Gn(r.arrow))):i.appendChild(Gn(r.arrow)):a&&i.removeChild(a);}return r.className=hn,r.setAttribute("data-state","hidden"),Kn(r,n.props),t.appendChild(e),e.appendChild(r),o(n.props,n.props),{popper:t,onUpdate:o};}function rt(n,t){var e,r,o,i,u,a,f,c,d=Jn(n,Object.assign({},Yn,$n(Rn(t)))),l=!1,s=!1,v=!1,p=!1,m=[],b=kn($,d.interactiveDebounce),h=nt++,y=(c=d.plugins).filter(function(n,t){return c.indexOf(n)===t;}),g={id:h,reference:n,popper:Sn(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function clearDelayTimeouts(){clearTimeout(e),clearTimeout(r),cancelAnimationFrame(o);},setProps:function setProps(t){if(g.state.isDestroyed)return;H("onBeforeUpdate",[g,t]),Y();var e=g.props,r=Jn(n,Object.assign({},e,Rn(t),{ignoreAttributes:!0}));g.props=r,X(),e.interactiveDebounce!==r.interactiveDebounce&&(P(),b=kn($,r.interactiveDebounce));e.triggerTarget&&!r.triggerTarget?An(e.triggerTarget).forEach(function(n){n.removeAttribute("aria-expanded");}):r.triggerTarget&&n.removeAttribute("aria-expanded");q(),E(),x&&x(e,r);g.popperInstance&&(K(),Z().forEach(function(n){requestAnimationFrame(n._tippy.popperInstance.forceUpdate);}));H("onAfterUpdate",[g,t]);},setContent:function setContent(n){g.setProps({content:n});},show:function show(){var n=g.state.isVisible,t=g.state.isDestroyed,e=!g.state.isEnabled,r=Ln.isTouch&&!g.props.touch,o=xn(g.props.duration,0,Yn.duration);if(n||t||e||r)return;if(M().hasAttribute("disabled"))return;if(H("onShow",[g],!1),!1===g.props.onShow(g))return;g.state.isVisible=!0,C()&&(O.style.visibility="visible");E(),F(),g.state.isMounted||(O.style.transition="none");if(C()){var i=S();Un([i.box,i.content],0);}a=function a(){var n;if(g.state.isVisible&&!p){if(p=!0,O.offsetHeight,O.style.transition=g.props.moveTransition,C()&&g.props.animation){var t=S(),e=t.box,r=t.content;Un([e,r],o),qn([e,r],"visible");}U(),q(),Cn(et,g),null==(n=g.popperInstance)||n.forceUpdate(),H("onMount",[g]),g.props.animation&&C()&&function(n,t){z(n,t);}(o,function(){g.state.isShown=!0,H("onShown",[g]);});}},function(){var n,t=g.props.appendTo,e=M();n=g.props.interactive&&t===On||"parent"===t?e.parentNode:Tn(t,[e]);n.contains(O)||n.appendChild(O);g.state.isMounted=!0,K();}();},hide:function hide(){var n=!g.state.isVisible,t=g.state.isDestroyed,e=!g.state.isEnabled,r=xn(g.props.duration,1,Yn.duration);if(n||t||e)return;if(H("onHide",[g],!1),!1===g.props.onHide(g))return;g.state.isVisible=!1,g.state.isShown=!1,p=!1,l=!1,C()&&(O.style.visibility="hidden");if(P(),I(),E(!0),C()){var o=S(),i=o.box,u=o.content;g.props.animation&&(Un([i,u],r),qn([i,u],"hidden"));}U(),q(),g.props.animation?C()&&function(n,t){z(n,function(){!g.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&t();});}(r,g.unmount):g.unmount();},hideWithInteractivity:function hideWithInteractivity(n){R().addEventListener("mousemove",b),Cn(tt,b),b(n);},enable:function enable(){g.state.isEnabled=!0;},disable:function disable(){g.hide(),g.state.isEnabled=!1;},unmount:function unmount(){g.state.isVisible&&g.hide();if(!g.state.isMounted)return;Q(),Z().forEach(function(n){n._tippy.unmount();}),O.parentNode&&O.parentNode.removeChild(O);et=et.filter(function(n){return n!==g;}),g.state.isMounted=!1,H("onHidden",[g]);},destroy:function destroy(){if(g.state.isDestroyed)return;g.clearDelayTimeouts(),g.unmount(),Y(),delete n._tippy,g.state.isDestroyed=!0,H("onDestroy",[g]);}};if(!d.render)return g;var w=d.render(g),O=w.popper,x=w.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+g.id,g.popper=O,n._tippy=g,O._tippy=g;var j=y.map(function(n){return n.fn(g);}),T=n.hasAttribute("aria-expanded");return X(),q(),E(),H("onCreate",[g]),d.showOnCreate&&nn(),O.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts();}),O.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&R().addEventListener("mousemove",b);}),g;function k(){var n=g.props.touch;return Array.isArray(n)?n:[n,0];}function A(){return"hold"===k()[0];}function C(){var n;return!(null==(n=g.props.render)||!n.$$tippy);}function M(){return f||n;}function R(){var n=M().parentNode;return n?Pn(n):document;}function S(){return Qn(O);}function B(n){return g.state.isMounted&&!g.state.isVisible||Ln.isTouch||i&&"focus"===i.type?0:xn(g.props.delay,n?0:1,Yn.delay);}function E(n){void 0===n&&(n=!1),O.style.pointerEvents=g.props.interactive&&!n?"":"none",O.style.zIndex=""+g.props.zIndex;}function H(n,t,e){var r;(void 0===e&&(e=!0),j.forEach(function(e){e[n]&&e[n].apply(e,t);}),e)&&(r=g.props)[n].apply(r,t);}function U(){var t=g.props.aria;if(t.content){var e="aria-"+t.content,r=O.id;An(g.props.triggerTarget||n).forEach(function(n){var t=n.getAttribute(e);if(g.state.isVisible)n.setAttribute(e,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?n.setAttribute(e,o):n.removeAttribute(e);}});}}function q(){!T&&g.props.aria.expanded&&An(g.props.triggerTarget||n).forEach(function(n){g.props.interactive?n.setAttribute("aria-expanded",g.state.isVisible&&n===M()?"true":"false"):n.removeAttribute("aria-expanded");});}function P(){R().removeEventListener("mousemove",b),tt=tt.filter(function(n){return n!==b;});}function W(t){if(!Ln.isTouch||!v&&"mousedown"!==t.type){var e=t.composedPath&&t.composedPath()[0]||t.target;if(!g.props.interactive||!Dn(O,e)){if(An(g.props.triggerTarget||n).some(function(n){return Dn(n,e);})){if(Ln.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return;}else H("onClickOutside",[g,t]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),s=!0,setTimeout(function(){s=!1;}),g.state.isMounted||I());}}}function D(){v=!0;}function L(){v=!1;}function F(){var n=R();n.addEventListener("mousedown",W,!0),n.addEventListener("touchend",W,wn),n.addEventListener("touchstart",L,wn),n.addEventListener("touchmove",D,wn);}function I(){var n=R();n.removeEventListener("mousedown",W,!0),n.removeEventListener("touchend",W,wn),n.removeEventListener("touchstart",L,wn),n.removeEventListener("touchmove",D,wn);}function z(n,t){var e=S().box;function r(n){n.target===e&&(Wn(e,"remove",r),t());}if(0===n)return t();Wn(e,"remove",u),Wn(e,"add",r),u=r;}function V(t,e,r){void 0===r&&(r=!1),An(g.props.triggerTarget||n).forEach(function(n){n.addEventListener(t,e,r),m.push({node:n,eventType:t,handler:e,options:r});});}function X(){var n;A()&&(V("touchstart",N,{passive:!0}),V("touchend",J,{passive:!0})),(n=g.props.trigger,n.split(/\s+/).filter(Boolean)).forEach(function(n){if("manual"!==n)switch(V(n,N),n){case"mouseenter":V("mouseleave",J);break;case"focus":V(Xn?"focusout":"blur",_);break;case"focusin":V("focusout",_);}});}function Y(){m.forEach(function(n){var t=n.node,e=n.eventType,r=n.handler,o=n.options;t.removeEventListener(e,r,o);}),m=[];}function N(n){var t,e=!1;if(g.state.isEnabled&&!G(n)&&!s){var r="focus"===(null==(t=i)?void 0:t.type);i=n,f=n.currentTarget,q(),!g.state.isVisible&&En(n)&&tt.forEach(function(t){return t(n);}),"click"===n.type&&(g.props.trigger.indexOf("mouseenter")<0||l)&&!1!==g.props.hideOnClick&&g.state.isVisible?e=!0:nn(n),"click"===n.type&&(l=!e),e&&!r&&tn(n);}}function $(n){var t=n.target,e=M().contains(t)||O.contains(t);if("mousemove"!==n.type||!e){var r=Z().concat(O).map(function(n){var t,e=null==(t=n._tippy.popperInstance)?void 0:t.state;return e?{popperRect:n.getBoundingClientRect(),popperState:e,props:d}:null;}).filter(Boolean);(function(n,t){var e=t.clientX,r=t.clientY;return n.every(function(n){var t=n.popperRect,o=n.popperState,i=n.props.interactiveBorder,u=o.placement.split("-")[0],a=o.modifiersData.offset;if(!a)return!0;var f="bottom"===u?a.top.y:0,c="top"===u?a.bottom.y:0,d="right"===u?a.left.x:0,l="left"===u?a.right.x:0,s=t.top-r+f>i,v=r-t.bottom-c>i,p=t.left-e+d>i,m=e-t.right-l>i;return s||v||p||m;});})(r,n)&&(P(),tn(n));}}function J(n){G(n)||g.props.trigger.indexOf("click")>=0&&l||(g.props.interactive?g.hideWithInteractivity(n):tn(n));}function _(n){g.props.trigger.indexOf("focusin")<0&&n.target!==M()||g.props.interactive&&n.relatedTarget&&O.contains(n.relatedTarget)||tn(n);}function G(n){return!!Ln.isTouch&&A()!==n.type.indexOf("touch")>=0;}function K(){Q();var t=g.props,e=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,u=t.moveTransition,f=C()?Qn(O).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||M()}:n,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function fn(n){var t=n.state;if(C()){var e=S().box;["placement","reference-hidden","escaped"].forEach(function(n){"placement"===n?e.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+n]?e.setAttribute("data-"+n,""):e.removeAttribute("data-"+n);}),t.attributes.popper={};}}},l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!u}},d];C()&&f&&l.push({name:"arrow",options:{element:f,padding:3}}),l.push.apply(l,(null==e?void 0:e.modifiers)||[]),g.popperInstance=mn(c,O,Object.assign({},e,{placement:r,onFirstUpdate:a,modifiers:l}));}function Q(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null);}function Z(){return Mn(O.querySelectorAll("[data-tippy-root]"));}function nn(n){g.clearDelayTimeouts(),n&&H("onTrigger",[g,n]),F();var t=B(!0),r=k(),o=r[0],i=r[1];Ln.isTouch&&"hold"===o&&i&&(t=i),t?e=setTimeout(function(){g.show();},t):g.show();}function tn(n){if(g.clearDelayTimeouts(),H("onUntrigger",[g,n]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(n.type)>=0&&l)){var t=B(!1);t?r=setTimeout(function(){g.state.isVisible&&g.hide();},t):o=requestAnimationFrame(function(){g.hide();});}}else I();}}function ot(n,t){void 0===t&&(t={});var e=Yn.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",In,wn),window.addEventListener("blur",Vn);var r=Object.assign({},t,{plugins:e}),o=Hn(n).reduce(function(n,t){var e=t&&rt(t,r);return e&&n.push(e),n;},[]);return Bn(n)?o[0]:o;}function ct(n){var t=n.clientX,e=n.clientY;at={clientX:t,clientY:e};}_export("t",ot);return{setters:[],execute:function execute(){n="top",t="bottom",e="right",r="left",o="auto",i=[n,t,e,r],u="start",a="end",f="viewport",c="popper",d=i.reduce(function(n,t){return n.concat([t+"-"+u,t+"-"+a]);},[]),l=[].concat(i,[o]).reduce(function(n,t){return n.concat([t,t+"-"+u,t+"-"+a]);},[]),s=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];y={name:"applyStyles",enabled:!0,phase:"write",fn:function fn(n){var t=n.state;Object.keys(t.elements).forEach(function(n){var e=t.styles[n]||{},r=t.attributes[n]||{},o=t.elements[n];b(o)&&v(o)&&(Object.assign(o.style,e),Object.keys(r).forEach(function(n){var t=r[n];!1===t?o.removeAttribute(n):o.setAttribute(n,!0===t?"":t);}));});},effect:function effect(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:e[n]).reduce(function(n,t){return n[t]="",n;},{});b(r)&&v(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(n){r.removeAttribute(n);}));});};},requires:["computeStyles"]};w=Math.max,O=Math.min,x=Math.round;D={name:"arrow",enabled:!0,phase:"main",fn:function fn(o){var u,a=o.state,f=o.name,c=o.options,d=a.elements.arrow,l=a.modifiersData.popperOffsets,s=g(a.placement),v=U(s),p=[r,e].indexOf(s)>=0?"height":"width";if(d&&l){var m=function(n,t){return P("number"!=typeof(n="function"==typeof n?n(Object.assign({},t.rects,{placement:t.placement})):n)?n:W(n,i));}(c.padding,a),b=A(d),h="y"===v?n:r,y="y"===v?t:e,w=a.rects.reference[p]+a.rects.reference[v]-l[v]-a.rects.popper[p],O=l[v]-a.rects.reference[v],x=H(d),j=x?"y"===v?x.clientHeight||0:x.clientWidth||0:0,T=w/2-O/2,k=m[h],C=j-b[p]-m[y],M=j/2-b[p]/2+T,R=q(k,M,C),S=v;a.modifiersData[f]=((u={})[S]=R,u.centerOffset=R-M,u);}},effect:function effect(n){var t=n.state,e=n.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&C(t.elements.popper,r)&&(t.elements.arrow=r);},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};F={top:"auto",right:"auto",bottom:"auto",left:"auto"};z={passive:!0};V={left:"right",right:"left",bottom:"top",top:"bottom"};Y={start:"end",end:"start"};on={name:"flip",enabled:!0,phase:"main",fn:function fn(i){var a=i.state,f=i.options,c=i.name;if(!a.modifiersData[c]._skip){for(var d=f.mainAxis,l=void 0===d||d,s=f.altAxis,v=void 0===s||s,p=f.fallbackPlacements,m=f.padding,b=f.boundary,h=f.rootBoundary,y=f.altBoundary,w=f.flipVariations,O=void 0===w||w,x=f.allowedAutoPlacements,j=a.options.placement,T=g(j),k=p||(T===j||!O?[X(j)]:function(n){if(g(n)===o)return[];var t=X(n);return[N(n),t,N(t)];}(j)),A=[j].concat(k).reduce(function(n,t){return n.concat(g(t)===o?rn(a,{placement:t,boundary:b,rootBoundary:h,padding:m,flipVariations:O,allowedAutoPlacements:x}):t);},[]),C=a.rects.reference,M=a.rects.popper,R=new Map(),S=!0,B=A[0],E=0;E<A.length;E++){var H=A[E],U=g(H),q=L(H)===u,P=[n,t].indexOf(U)>=0,W=P?"width":"height",D=en(a,{placement:H,boundary:b,rootBoundary:h,altBoundary:y,padding:m}),F=P?q?e:r:q?t:n;C[W]>M[W]&&(F=X(F));var I=X(F),z=[];if(l&&z.push(D[U]<=0),v&&z.push(D[F]<=0,D[I]<=0),z.every(function(n){return n;})){B=H,S=!1;break;}R.set(H,z);}if(S)for(var V=function V(n){var t=A.find(function(t){var e=R.get(t);if(e)return e.slice(0,n).every(function(n){return n;});});if(t)return B=t,"break";},Y=O?3:1;Y>0;Y--){if("break"===V(Y))break;}a.placement!==B&&(a.modifiersData[c]._skip=!0,a.placement=B,a.reset=!0);}},requiresIfExists:["offset"],data:{_skip:!1}};fn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function fn(t){var o=t.state,i=t.options,u=t.name,a=i.offset,f=void 0===a?[0,0]:a,c=l.reduce(function(t,i){return t[i]=function(t,o,i){var u=g(t),a=[r,n].indexOf(u)>=0?-1:1,f="function"==typeof i?i(Object.assign({},o,{placement:t})):i,c=f[0],d=f[1];return c=c||0,d=(d||0)*a,[r,e].indexOf(u)>=0?{x:d,y:c}:{x:c,y:d};}(i,o.rects,f),t;},{}),d=c[o.placement],s=d.x,v=d.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=s,o.modifiersData.popperOffsets.y+=v),o.modifiersData[u]=c;}};cn={name:"preventOverflow",enabled:!0,phase:"main",fn:function fn(o){var i=o.state,a=o.options,f=o.name,c=a.mainAxis,d=void 0===c||c,l=a.altAxis,s=void 0!==l&&l,v=a.boundary,p=a.rootBoundary,m=a.altBoundary,b=a.padding,h=a.tether,y=void 0===h||h,x=a.tetherOffset,j=void 0===x?0:x,T=en(i,{boundary:v,rootBoundary:p,padding:b,altBoundary:m}),k=g(i.placement),C=L(i.placement),M=!C,R=U(k),S="x"===R?"y":"x",B=i.modifiersData.popperOffsets,E=i.rects.reference,P=i.rects.popper,W="function"==typeof j?j(Object.assign({},i.rects,{placement:i.placement})):j,D="number"==typeof W?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),F=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,I={x:0,y:0};if(B){if(d){var z,V="y"===R?n:r,X="y"===R?t:e,Y="y"===R?"height":"width",N=B[R],$=N+T[V],J=N-T[X],_=y?-P[Y]/2:0,G=C===u?E[Y]:P[Y],K=C===u?-P[Y]:-E[Y],Q=i.elements.arrow,Z=y&&Q?A(Q):{width:0,height:0},nn=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},tn=nn[V],rn=nn[X],on=q(0,E[Y],Z[Y]),un=M?E[Y]/2-_-on-tn-D.mainAxis:G-on-tn-D.mainAxis,an=M?-E[Y]/2+_+on+rn+D.mainAxis:K+on+rn+D.mainAxis,fn=i.elements.arrow&&H(i.elements.arrow),cn=fn?"y"===R?fn.clientTop||0:fn.clientLeft||0:0,dn=null!=(z=null==F?void 0:F[R])?z:0,ln=N+an-dn,sn=q(y?O($,N+un-dn-cn):$,N,y?w(J,ln):J);B[R]=sn,I[R]=sn-N;}if(s){var vn,pn="x"===R?n:r,mn="x"===R?t:e,bn=B[S],hn="y"===S?"height":"width",yn=bn+T[pn],gn=bn-T[mn],wn=-1!==[n,r].indexOf(k),On=null!=(vn=null==F?void 0:F[S])?vn:0,xn=wn?yn:bn-E[hn]-P[hn]-On+D.altAxis,jn=wn?bn+E[hn]+P[hn]-On-D.altAxis:gn,Tn=y&&wn?function(n,t,e){var r=q(n,t,e);return r>e?e:r;}(xn,bn,jn):q(y?xn:yn,bn,y?jn:gn);B[S]=Tn,I[S]=Tn-bn;}i.modifiersData[f]=I;}},requiresIfExists:["offset"]};sn={placement:"bottom",modifiers:[],strategy:"absolute"};mn=pn({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function effect(n){var t=n.state,e=n.instance,r=n.options,o=r.scroll,i=void 0===o||o,u=r.resize,a=void 0===u||u,f=p(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(n){n.addEventListener("scroll",e.update,z);}),a&&f.addEventListener("resize",e.update,z),function(){i&&c.forEach(function(n){n.removeEventListener("scroll",e.update,z);}),a&&f.removeEventListener("resize",e.update,z);};},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function fn(n){var t=n.state,e=n.name;t.modifiersData[e]=tn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement});},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function fn(n){var t=n.state,e=n.options,r=e.gpuAcceleration,o=void 0===r||r,i=e.adaptive,u=void 0===i||i,a=e.roundOffsets,f=void 0===a||a,c={placement:g(t.placement),variation:L(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,I(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,I(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement});},data:{}},y,fn,on,cn,D,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function fn(n){var t=n.state,e=n.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,u=en(t,{elementContext:"reference"}),a=en(t,{altBoundary:!0}),f=un(u,r),c=un(a,o,i),d=an(f),l=an(c);t.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":l});}}]}),_export("R",bn='<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>'),hn="tippy-content",yn="tippy-arrow",gn="tippy-svg-arrow",wn={passive:!0,capture:!0},On=function On(){return document.body;};Ln={isTouch:!1},Fn=0;Xn=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Yn=Object.assign({appendTo:On,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 onAfterUpdate(){},onBeforeUpdate:function onBeforeUpdate(){},onCreate:function onCreate(){},onDestroy:function onDestroy(){},onHidden:function onHidden(){},onHide:function onHide(){},onMount:function onMount(){},onShow:function onShow(){},onShown:function onShown(){},onTrigger:function onTrigger(){},onUntrigger:function onUntrigger(){},onClickOutside:function onClickOutside(){},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}),Nn=Object.keys(Yn);Zn.$$tippy=!0;nt=1,tt=[],et=[];ot.defaultProps=Yn,ot.setDefaultProps=function(n){Object.keys(n).forEach(function(t){Yn[t]=n[t];});},ot.currentInput=Ln;it=Object.assign({},y,{effect:function effect(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow);}}),_export("c",ut=function ut(n,t){var e;void 0===t&&(t={});var r,o=n,i=[],u=[],a=t.overrides,f=[],c=!1;function d(){u=o.map(function(n){return An(n.props.triggerTarget||n.reference);}).reduce(function(n,t){return n.concat(t);},[]);}function l(){i=o.map(function(n){return n.reference;});}function s(n){o.forEach(function(t){n?t.enable():t.disable();});}function v(n){return o.map(function(t){var e=t.setProps;return t.setProps=function(o){e(o),t.reference===r&&n.setProps(o);},function(){t.setProps=e;};});}function p(n,t){var e=u.indexOf(t);if(t!==r){r=t;var f=(a||[]).concat("content").reduce(function(n,t){return n[t]=o[e].props[t],n;},{});n.setProps(Object.assign({},f,{getReferenceClientRect:"function"==typeof f.getReferenceClientRect?f.getReferenceClientRect:function(){var n;return null==(n=i[e])?void 0:n.getBoundingClientRect();}}));}}s(!1),l(),d();var m,b,h,y={fn:function fn(){return{onDestroy:function onDestroy(){s(!0);},onHidden:function onHidden(){r=null;},onClickOutside:function onClickOutside(n){n.props.showOnCreate&&!c&&(c=!0,r=null);},onShow:function onShow(n){n.props.showOnCreate&&!c&&(c=!0,p(n,i[0]));},onTrigger:function onTrigger(n,t){p(n,t.currentTarget);}};}},g=ot(Sn(),Object.assign({},(m=t,b=["overrides"],h=Object.assign({},m),b.forEach(function(n){delete h[n];}),h),{plugins:[y].concat(t.plugins||[]),triggerTarget:u,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(e=t.popperOptions)?void 0:e.modifiers)||[],[it])})})),w=g.show;g.show=function(n){if(w(),!r&&null==n)return p(g,i[0]);if(!r||null!=n){if("number"==typeof n)return i[n]&&p(g,i[n]);if(o.indexOf(n)>=0){var t=n.reference;return p(g,t);}return i.indexOf(n)>=0?p(g,n):void 0;}},g.showNext=function(){var n=i[0];if(!r)return g.show(0);var t=i.indexOf(r);g.show(i[t+1]||n);},g.showPrevious=function(){var n=i[i.length-1];if(!r)return g.show(n);var t=i.indexOf(r),e=i[t-1]||n;g.show(e);};var O=g.setProps;return g.setProps=function(n){a=n.overrides||a,O(n);},g.setInstances=function(n){s(!0),f.forEach(function(n){return n();}),o=n,s(!1),l(),d(),f=v(g),g.setProps({triggerTarget:u});},f=v(g),g;}),at={clientX:0,clientY:0},ft=[];_export("f",dt={name:"followCursor",defaultValue:!1,fn:function fn(n){var t=n.reference,e=Pn(n.props.triggerTarget||t),r=!1,o=!1,i=!0,u=n.props;function a(){return"initial"===n.props.followCursor&&n.state.isVisible;}function f(){e.addEventListener("mousemove",l);}function c(){e.removeEventListener("mousemove",l);}function d(){r=!0,n.setProps({getReferenceClientRect:null}),r=!1;}function l(e){var r=!e.target||t.contains(e.target),o=n.props.followCursor,i=e.clientX,u=e.clientY,a=t.getBoundingClientRect(),f=i-a.left,c=u-a.top;!r&&n.props.interactive||n.setProps({getReferenceClientRect:function getReferenceClientRect(){var n=t.getBoundingClientRect(),e=i,r=u;"initial"===o&&(e=n.left+f,r=n.top+c);var a="horizontal"===o?n.top:r,d="vertical"===o?n.right:e,l="horizontal"===o?n.bottom:r,s="vertical"===o?n.left:e;return{width:d-s,height:l-a,top:a,right:d,bottom:l,left:s};}});}function s(){n.props.followCursor&&(ft.push({instance:n,doc:e}),function(n){n.addEventListener("mousemove",ct);}(e));}function v(){0===(ft=ft.filter(function(t){return t.instance!==n;})).filter(function(n){return n.doc===e;}).length&&function(n){n.removeEventListener("mousemove",ct);}(e);}return{onCreate:s,onDestroy:v,onBeforeUpdate:function onBeforeUpdate(){u=n.props;},onAfterUpdate:function onAfterUpdate(t,e){var i=e.followCursor;r||void 0!==i&&u.followCursor!==i&&(v(),i?(s(),!n.state.isMounted||o||a()||f()):(c(),d()));},onMount:function onMount(){n.props.followCursor&&!o&&(i&&(l(at),i=!1),a()||f());},onTrigger:function onTrigger(n,t){En(t)&&(at={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type;},onHidden:function onHidden(){n.props.followCursor&&(d(),c(),i=!0);}};}});ot.setDefaultProps({render:Zn});}};});
2
+ //# sourceMappingURL=tippy.esm-78baa8f2.cjs.js.map