@aquera/nile-elements 1.2.8-beta-1.8 → 1.2.8-beta-1.9
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.
- package/demo/index.html +34 -19
- package/dist/index.js +2 -2
- package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js.map +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.esm.js +1 -1
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.js +58 -32
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-lite-tooltip/nile-lite-tooltip.ts +63 -38
package/demo/index.html
CHANGED
|
@@ -21,30 +21,45 @@
|
|
|
21
21
|
|
|
22
22
|
<body>
|
|
23
23
|
|
|
24
|
+
<nile-lite-tooltip content=" Tooltip on SVG" followCursor="true">
|
|
25
|
+
<svg height="150" width="150"><line x1="0" y1="0" x2="150" y2="150" style="stroke: blue; stroke-width: 5;"></line></svg>
|
|
26
|
+
</nile-lite-tooltip>
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
|
|
29
|
+
<nile-lite-tooltip singleton placement="top">
|
|
30
|
+
<div class="variant-example" style=" display: flex; flex-direction: row; gap: 16px;">
|
|
31
|
+
<div content="Tooltip 1" class="square">Tooltip 1</div>
|
|
32
|
+
<div content="Tooltip 2" class="square">Tooltip 2</div>
|
|
33
|
+
<div content="Tooltip 3" class="square">Tooltip 3</div>
|
|
34
|
+
</div>
|
|
35
|
+
</nile-lite-tooltip>
|
|
36
|
+
|
|
37
|
+
<div id="toolbar" style="display: flex; flex-direction: row; gap: 16px;">
|
|
38
|
+
<nile-button content="Copy">Copy</nile-button>
|
|
39
|
+
<nile-button content="Paste">Paste</nile-button>
|
|
40
|
+
<nile-button content="Delete">Delete</nile-button>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<nile-lite-tooltip for="toolbar" singleton></nile-lite-tooltip>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<nile-button class="toolbar2" content="Copy1">Copy1</nile-button>
|
|
47
|
+
<nile-button class="toolbar2" content="Paste1">Paste1</nile-button>
|
|
48
|
+
<nile-button class="toolbar2" content="Delete1">Delete1</nile-button>
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
<nile-lite-tooltip for="toolbar2" singleton></nile-lite-tooltip>
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
<nile-chip id="chip-with-tooltips" acceptUserInput showTooltip></nile-chip>
|
|
55
|
+
<nile-chip id="chip-without-tooltips" acceptUserInput></nile-chip>
|
|
56
|
+
|
|
57
|
+
<nile-auto-complete showTooltips allMenuItems='["Apple", "Banana", "Grapes", "Mango", "Orange"]' placeholder="Type a fruit"></nile-auto-complete>
|
|
43
58
|
|
|
44
59
|
<script>
|
|
45
60
|
|
|
46
61
|
const optionsWithTooltips = [
|
|
47
|
-
{ id: 1, name: "<
|
|
62
|
+
{ id: 1, name: "<span style='color: red;'> Birat </span>", tooltip: { content: "<b>React</b> — UI library by Meta", for: "menu" } },
|
|
48
63
|
{ id: 2, name: "Angular", tooltip: { content: "<b>Angular</b> — Framework by Google", for: "tag" } },
|
|
49
64
|
{ id: 3, name: "Vue", tooltip: { content: "<b>Vue</b> — Lightweight & reactive" } },
|
|
50
65
|
{ id: 4, name: "Tailwind", tooltip: { content: "<b>Tailwind</b> — Utility-first CSS", for: "menu" } },
|
package/dist/index.js
CHANGED
|
@@ -14317,7 +14317,7 @@ nile-rte-toolbar-item nile-button[data-active]::part(base):hover {
|
|
|
14317
14317
|
|
|
14318
14318
|
|
|
14319
14319
|
|
|
14320
|
-
`,xS={bold:"format_bold",italic:"format_italic",underline:"format_underline",link:"link_2",left:"format_align_left",center:"format_align_middle",right:"format_align_right",justify:"format_align_justify",ul:"format_list_bulleted",ol:"format_list_numbered",clear:"format_clear"};let pS=class extends ae{constructor(){super(...arguments),this.value="",this.noStyles=!1,this.singleLineEditor=!1,this.placeholder="",this.mentions={},this.content="",this.previewEl=null,this.toolbarEl=null,this.lastRange=null,this.buttonMap=new Map,this.headingSelect=null,this.fontSelect=null,this.colorInput=null,this.bgColorInput=null,this.colorSwatchEl=null,this.bgSwatchEl=null,this.containerEl=null,this.mentionsEl=null,this.onEditorKeydown=e=>{if(this.singleLineEditor&&"Enter"===e.key&&e.shiftKey)return void e.preventDefault();if(e.ctrlKey&&"i"===e.key.toLowerCase()&&(e.preventDefault(),IS(this.editorEl,"em"),this.updateContent(),this.updateToolbarState()),this.singleLineEditor&&"Enter"===e.key)return void e.preventDefault();if("Tab"!==e.key)return;e.preventDefault(),this.focusAndRestore();const t=window.getSelection();if(!t||0===t.rangeCount)return;const i=t.getRangeAt(0);if(e.shiftKey){if(i.collapsed&&i.startContainer.nodeType===Node.TEXT_NODE){const e=i.startContainer,M=i.startOffset,n=e.data.slice(0,M),o=n.replace(/(\t|[ \u00a0]{2})$/,"");if(o.length!==n.length){e.data=o+e.data.slice(M);const i=document.createRange();i.setStart(e,o.length),i.collapse(!0),t.removeAllRanges(),t.addRange(i),this.updateContent(),this.updateToolbarState()}}return}i.deleteContents();const M=document.createTextNode("\t");i.insertNode(M);const n=document.createRange();n.setStartAfter(M),n.collapse(!0),t.removeAllRanges(),t.addRange(n),this.updateContent(),this.updateToolbarState()},this.onSelectionChange=()=>{if(!this.editorEl)return;const e=document.getSelection();if(!e||0===e.rangeCount)return;const t=e.getRangeAt(0);this.editorEl.contains(t.commonAncestorContainer)&&(this.lastRange=t.cloneRange(),this.updateToolbarState())}}createRenderRoot(){return this}injectCss(e){if(this.querySelector("style[data-rte-style]"))return;const t=document.createElement("style");t.setAttribute("data-rte-style","true"),t.textContent=e,this.insertBefore(t,this.firstChild)}connectedCallback(){super.connectedCallback(),this.injectCss(LS.cssText),this.ensureStructure(),this.placeholder&&this.editorEl&&(this.editorEl.dataset.placeholder=this.placeholder),this.value&&!this.editorEl.innerHTML.trim()&&(this.editorEl.innerHTML=this.value),this.content=this.editorEl.innerHTML,this.toolbarEl&&this.wireAuthoredToolbar(this.toolbarEl),this.mentionsEl=this.querySelector("nile-rte-mentions"),this.mentionsEl&&(this.mentionsEl.attach?.(this.editorEl,this),this.mentionsEl.setExternalConfig?.(this.mentions)),this.wireEditor(),document.addEventListener("selectionchange",this.onSelectionChange,{passive:!0}),this.updateToolbarState(),this.syncPreview()}ensureStructure(){this.toolbarEl=this.querySelector("nile-rte-toolbar"),this.previewEl=this.querySelector("nile-rte-preview"),this.containerEl=this.querySelector(".rte-container"),this.containerEl||(this.containerEl=document.createElement("div"),this.containerEl.className="rte-container",this.appendChild(this.containerEl)),this.ensureEditor(),this.toolbarEl&&this.toolbarEl.parentElement!==this.containerEl&&this.containerEl.appendChild(this.toolbarEl),this.editorEl.parentElement!==this.containerEl&&this.containerEl.appendChild(this.editorEl),this.previewEl&&(this.previewEl.parentElement!==this&&this.appendChild(this.previewEl),this.previewEl.previousElementSibling!==this.containerEl&&this.insertBefore(this.previewEl,this.containerEl.nextSibling))}updateContentWithMention(e){this.updateContent(),this.dispatchEvent(new CustomEvent("nile-change",{detail:{content:this.content,mention:e},bubbles:!0,composed:!0}))}disconnectedCallback(){document.removeEventListener("selectionchange",this.onSelectionChange),this.mentionsEl&&this.mentionsEl.detach&&this.mentionsEl.detach(),super.disconnectedCallback()}updated(e){e.has("value")&&this.editorEl&&this.value!==this.editorEl.innerHTML&&(this.editorEl.innerHTML=this.value||"<p><br></p>",this.content=this.editorEl.innerHTML,this.syncPreview()),e.has("singleLineEditor")&&(this.editorEl&&this.editorEl.classList.toggle("single-line",this.singleLineEditor),this.previewEl&&this.previewEl.classList.toggle("single-line",this.singleLineEditor))}ensureEditor(){if(this.editorEl=this.querySelector(".editor"),!this.editorEl){const e=document.createElement("article");e.className="editor",e.setAttribute("contenteditable","true"),this.editorEl=e}this.placeholder&&(this.editorEl.dataset.placeholder=this.placeholder),this.editorEl.innerHTML.trim()||(this.editorEl.innerHTML="<p><br></p>")}unwrapMention(e,t=!0){const i=e.parentNode;if(!i)return;const M=t?(e.textContent??"").replace(/\u200B/g,""):"",n=document.createTextNode(M);i.insertBefore(n,e),i.removeChild(e);const o=document.createRange();o.setStartAfter(n),o.collapse(!0);const r=window.getSelection();r?.removeAllRanges(),r?.addRange(o)}scrubBrokenMentions(){if(!this.editorEl)return;this.editorEl.querySelectorAll("span.mention").forEach((e=>{const t=e,i=t.getAttribute("data-mention-key"),M=t.getAttribute("data-mention-label"),n=t.getAttribute("data-mention-trigger")||"",o=(t.textContent??"").replace(/\u200B/g,"").trim(),r=!!i&&!!M&&o.length>0&&o.startsWith(n)&&o.includes(M);o&&r||this.unwrapMention(t,!0)}))}wireEditor(){this.editorEl.addEventListener("input",(()=>{this.ensureAtLeastOneParagraph(),this.scrubBrokenMentions(),this.updateContent(),this.updateToolbarState()})),this.editorEl.addEventListener("mouseup",(()=>{this.saveSelection(),this.updateToolbarState()})),this.editorEl.addEventListener("keyup",(e=>{this.saveSelection(),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)&&this.updateToolbarState()})),this.editorEl.addEventListener("keydown",this.onEditorKeydown)}wireAuthoredToolbar(e){this.buttonMap.clear(),this.headingSelect=null,this.fontSelect=null,this.colorInput=null,Array.from(e.children).forEach((e=>{const t=e.tagName.toLowerCase();if("nile-rte-select"!==t||"align"!==e.getAttribute("type")){if("nile-rte-link"===t)return e.editorEl=this.editorEl,void e.addEventListener("link-changed",(()=>{this.updateContent(),this.updateToolbarState()}));if("nile-rte-toolbar-item"===t){let t=e.querySelector(":scope > nile-button");const i=e.getAttribute("name")||"",M=e.getAttribute("label")||i,n=e.getAttribute("icon"),o=e.innerHTML.trim().length>0;if(t||(t=document.createElement("nile-button"),t.variant="tertiary",t.size="small"),n)t.innerHTML=`<nile-icon name="${n}" aria-label="${M}"></nile-icon>`,e.innerHTML="";else if(o)t.innerHTML=e.innerHTML,e.innerHTML="";else{const n=xS[i];n?t.innerHTML=`<nile-icon name="${n}" size="20" color="black" aria-label="${M}"></nile-icon>`:t.textContent=M||i,e.innerHTML=""}if(!t.isConnected){const i=document.createElement("nile-tooltip");i.setAttribute("content",M),i.appendChild(t),e.appendChild(i)}t.setAttribute("aria-label",M),t.addEventListener("mousedown",(e=>e.preventDefault())),t.addEventListener("click",(()=>this.onToolbarCommand(i)));const r=this.buttonMap.get(i)??[];return r.push(t),void this.buttonMap.set(i,r)}if("nile-rte-select"!==t)"nile-rte-color"!==t||e.addEventListener("change",(e=>{this.focusAndRestore();const{mode:t,value:i}=e.detail;"backColor"===t?hS(this.editorEl,"backgroundColor",i,"data-rte-bg"):function(e,t){hS(e,"color",t,"data-rte-color")}(this.editorEl,i),this.updateContent(),this.updateToolbarState()}));else{const t=e.getAttribute("type")||"";e.addEventListener("change",(e=>{this.focusAndRestore();const i=e.detail;"heading"===t?function(e,t){const i=document.getSelection();if(!i||0===i.rangeCount)return;const M=cS(i.getRangeAt(0).startContainer,e);if(!M)return;if(M.tagName.toLowerCase()===t)return;const n=document.createElement(t);for(;M.firstChild;)n.appendChild(M.firstChild);M.replaceWith(n);const o=document.createRange();o.selectNodeContents(n),o.collapse(!0),i.removeAllRanges(),i.addRange(o)}(this.editorEl,i):"font"===t&&dS(this.editorEl,i),this.updateContent(),this.updateToolbarState()}))}}else e.addEventListener("change",(e=>{this.focusAndRestore();const t=e.detail;jS(this.editorEl,t),this.updateContent(),this.updateToolbarState()}))}))}saveSelection(){const e=window.getSelection();e&&e.rangeCount&&(this.lastRange=e.getRangeAt(0).cloneRange())}restoreSelection(){if(!this.lastRange)return;const e=document.getSelection();e&&(e.removeAllRanges(),e.addRange(this.lastRange))}focusAndRestore(){this.editorEl?.focus(),this.restoreSelection()}getCleanContent(){const e=this.editorEl.cloneNode(!0);return e.querySelectorAll("*").forEach((e=>{e.removeAttribute("style")})),e.innerHTML}insertList(e){if(this.restoreSelection(),!this.lastRange)return;const t=document.createElement(e),i=this.lastRange.extractContents(),M=document.createElement("div");M.appendChild(i),Array.from(M.childNodes).forEach((e=>{if(e.nodeType===Node.TEXT_NODE&&!e.textContent?.trim())return;const i=document.createElement("li");i.appendChild(e),t.appendChild(i)})),this.lastRange.insertNode(t),this.afterListEdit(t)}afterListEdit(e){const t=document.createRange();t.setStartAfter(e),t.collapse(!0);const i=window.getSelection();i?.removeAllRanges(),i?.addRange(t),this.saveSelection(),this.updateContent(),this.updateToolbarState()}ensureAtLeastOneParagraph(){const e=this.editorEl;if(!e)return;const t=""===(e.textContent??"").replace(/\u200B/g,"").trim();if(0===e.childNodes.length||t)return void(e.innerHTML="<p><br></p>");if(!e.querySelector("p,h1,h2,h3,h4,h5,h6,ul,ol,table,blockquote,pre")){const t=document.createElement("p");for(;e.firstChild;)t.appendChild(e.firstChild);return t.hasChildNodes()||t.appendChild(document.createElement("br")),void e.appendChild(t)}e.querySelectorAll("p").forEach((e=>{""===(e.textContent??"").replace(/\u200B/g,"")&&(e.innerHTML.toLowerCase().includes("<br")||(e.innerHTML="<br>"))}))}onToolbarCommand(e){switch(this.focusAndRestore(),e){case"bold":IS(this.editorEl,"strong");break;case"italic":IS(this.editorEl,"em");break;case"underline":IS(this.editorEl,"u");break;case"left":jS(this.editorEl,"left");break;case"center":jS(this.editorEl,"center");break;case"right":jS(this.editorEl,"right");break;case"justify":jS(this.editorEl,"justify");break;case"ul":OS(this.editorEl,"ul"),this.updateContent(),this.updateToolbarState();break;case"ol":OS(this.editorEl,"ol"),this.updateContent(),this.updateToolbarState();break;case"link":break;case"clear":const e=document.createTreeWalker(this.editorEl,NodeFilter.SHOW_ELEMENT),t=[];for(;e.nextNode();){const i=e.currentNode;i.removeAttribute("style"),["B","STRONG","I","EM","U","SPAN","FONT"].includes(i.tagName)&&t.push(i)}for(const e of t){for(;e.firstChild;)e.parentNode?.insertBefore(e.firstChild,e);e.remove()}this.ensureAtLeastOneParagraph()}this.updateContent(),this.updateToolbarState()}setBtnActive(e,t){const i=this.buttonMap.get(e);if(i)for(const e of i)e.toggleAttribute("data-active",!!t)}updateToolbarState(){if(!this.editorEl)return;const e=document.getSelection();if(!e||0===e.rangeCount)return;const t=e.getRangeAt(0);if(!this.editorEl.contains(t.commonAncestorContainer))return;const i=function(e){for(;e&&!(e instanceof HTMLElement);)e=e.parentNode;return e}(t.startContainer)||this.editorEl,M=getComputedStyle(i),n=cS(t.startContainer,this.editorEl)||this.editorEl,o=(()=>{let e=i;for(;e&&e!==this.editorEl;){if(e instanceof HTMLElement){const t=e.tagName.toLowerCase();if("strong"===t||"b"===t)return!0;const i=getComputedStyle(e).fontWeight;if(parseInt(i,10)>=600)return!0}e=e.parentNode}return!1})(),r=(()=>{let e=i;for(;e&&e!==this.editorEl;){if(e instanceof HTMLElement){const t=e.tagName.toLowerCase();if("em"===t||"i"===t)return!0;if("italic"===getComputedStyle(e).fontStyle)return!0}e=e.parentNode}return!1})(),s=(()=>{let e=i;for(;e&&e!==this.editorEl;){if(e instanceof HTMLElement){const t=getComputedStyle(e).textDecorationLine;if(t&&t.includes("underline"))return!0;if("u"===e.tagName.toLowerCase())return!0}e=e.parentNode}return!1})(),a=!!i.closest("a"),l=n.style.textAlign||getComputedStyle(n).textAlign||"start",N="start"===l?"left":l,g=!!i.closest("li")&&i.closest("ul,ol")?.tagName.toLowerCase()||"";if(this.setBtnActive("bold",o),this.setBtnActive("italic",r),this.setBtnActive("underline",s),this.setBtnActive("link",a),this.setBtnActive("left","left"===N&&!["center","right","justify"].includes(N)),this.setBtnActive("center","center"===N),this.setBtnActive("right","right"===N),this.setBtnActive("justify","justify"===N),this.setBtnActive("ul","ul"===g),this.setBtnActive("ol","ol"===g),this.headingSelect){const e=n.tagName.toLowerCase(),t=["h1","h2","h3"].includes(e)?e:"p";this.headingSelect.value!==t&&(this.headingSelect.value=t)}if(this.fontSelect){const e=(M.fontFamily||"").replace(/["']/g,"").split(",")[0].trim().toLowerCase();if(e)for(const t of Array.from(this.fontSelect.options))if(t.value.toLowerCase()===e){this.fontSelect.value=t.value;break}}if(this.colorInput){const e=zS(M.color);e&&this.colorInput.value.toLowerCase()!==e.toLowerCase()&&(this.colorInput.value=e),this.colorSwatchEl&&(this.colorSwatchEl.style.backgroundColor=this.colorInput.value)}if(this.bgColorInput){const e=getComputedStyle(i).backgroundColor;if(e&&!/transparent|rgba\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(e)){const t=zS(e);t&&this.bgColorInput.value.toLowerCase()!==t.toLowerCase()&&(this.bgColorInput.value=t)}this.bgSwatchEl&&(this.bgSwatchEl.style.backgroundColor=this.bgColorInput.value)}}syncPreview(){this.updateContent()}updateContent(){if(!this.editorEl)return;this.ensureAtLeastOneParagraph();const e=""===(this.editorEl.textContent??"").trim();this.editorEl.classList.toggle("empty",e);const t=this.editorEl.cloneNode(!0);if(this.noStyles)t.querySelectorAll("[style]").forEach((e=>e.removeAttribute("style")));else{const e=document.createTreeWalker(this.editorEl,NodeFilter.SHOW_ELEMENT),i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),M=["font-weight","font-style","text-decoration","color","background-color","font-size","font-family","text-align","line-height","letter-spacing","white-space","vertical-align","list-style-position","padding-inline-start"];for(;e.nextNode()&&i.nextNode();){const t=e.currentNode,n=i.currentNode,o=window.getComputedStyle(t),r=M.map((e=>`${e}:${o.getPropertyValue(e)}`)).join(";");r.trim()&&n.setAttribute("style",r)}}this.content=t.innerHTML,this.previewEl&&(this.previewEl.innerHTML=this.content),this.dispatchEvent(new CustomEvent("nile-change",{detail:{content:this.content},bubbles:!0,composed:!0}))}};e([De({type:String,attribute:!0,reflect:!0})],pS.prototype,"value",void 0),e([De({type:Boolean,attribute:!0,reflect:!0})],pS.prototype,"noStyles",void 0),e([De({type:Boolean,attribute:"singlelineeditor",reflect:!0})],pS.prototype,"singleLineEditor",void 0),e([De({type:String})],pS.prototype,"placeholder",void 0),e([De({attribute:"mentions",reflect:!0,converter:{fromAttribute:e=>{try{const t=JSON.parse(e),i={};for(const e of Object.keys(t)){const M=t[e];Array.isArray(M)&&(i[e]=M.filter((e=>e&&"string"==typeof e.key&&"string"==typeof e.label)).map((e=>({key:e.key,label:e.label}))))}return i}catch{return{}}},toAttribute:e=>JSON.stringify(e)}})],pS.prototype,"mentions",void 0),e([ce()],pS.prototype,"content",void 0),pS=e([Ne("nile-rich-text-editor")],pS);"undefined"!=typeof window&&(window.nileElementsVersion='"1.2.8-beta-1.8"',window.nileVersion="__NILE_VERSION__",window.process=window.process||{env:{NODE_ENV:"production"}});const SS=r`
|
|
14320
|
+
`,xS={bold:"format_bold",italic:"format_italic",underline:"format_underline",link:"link_2",left:"format_align_left",center:"format_align_middle",right:"format_align_right",justify:"format_align_justify",ul:"format_list_bulleted",ol:"format_list_numbered",clear:"format_clear"};let pS=class extends ae{constructor(){super(...arguments),this.value="",this.noStyles=!1,this.singleLineEditor=!1,this.placeholder="",this.mentions={},this.content="",this.previewEl=null,this.toolbarEl=null,this.lastRange=null,this.buttonMap=new Map,this.headingSelect=null,this.fontSelect=null,this.colorInput=null,this.bgColorInput=null,this.colorSwatchEl=null,this.bgSwatchEl=null,this.containerEl=null,this.mentionsEl=null,this.onEditorKeydown=e=>{if(this.singleLineEditor&&"Enter"===e.key&&e.shiftKey)return void e.preventDefault();if(e.ctrlKey&&"i"===e.key.toLowerCase()&&(e.preventDefault(),IS(this.editorEl,"em"),this.updateContent(),this.updateToolbarState()),this.singleLineEditor&&"Enter"===e.key)return void e.preventDefault();if("Tab"!==e.key)return;e.preventDefault(),this.focusAndRestore();const t=window.getSelection();if(!t||0===t.rangeCount)return;const i=t.getRangeAt(0);if(e.shiftKey){if(i.collapsed&&i.startContainer.nodeType===Node.TEXT_NODE){const e=i.startContainer,M=i.startOffset,n=e.data.slice(0,M),o=n.replace(/(\t|[ \u00a0]{2})$/,"");if(o.length!==n.length){e.data=o+e.data.slice(M);const i=document.createRange();i.setStart(e,o.length),i.collapse(!0),t.removeAllRanges(),t.addRange(i),this.updateContent(),this.updateToolbarState()}}return}i.deleteContents();const M=document.createTextNode("\t");i.insertNode(M);const n=document.createRange();n.setStartAfter(M),n.collapse(!0),t.removeAllRanges(),t.addRange(n),this.updateContent(),this.updateToolbarState()},this.onSelectionChange=()=>{if(!this.editorEl)return;const e=document.getSelection();if(!e||0===e.rangeCount)return;const t=e.getRangeAt(0);this.editorEl.contains(t.commonAncestorContainer)&&(this.lastRange=t.cloneRange(),this.updateToolbarState())}}createRenderRoot(){return this}injectCss(e){if(this.querySelector("style[data-rte-style]"))return;const t=document.createElement("style");t.setAttribute("data-rte-style","true"),t.textContent=e,this.insertBefore(t,this.firstChild)}connectedCallback(){super.connectedCallback(),this.injectCss(LS.cssText),this.ensureStructure(),this.placeholder&&this.editorEl&&(this.editorEl.dataset.placeholder=this.placeholder),this.value&&!this.editorEl.innerHTML.trim()&&(this.editorEl.innerHTML=this.value),this.content=this.editorEl.innerHTML,this.toolbarEl&&this.wireAuthoredToolbar(this.toolbarEl),this.mentionsEl=this.querySelector("nile-rte-mentions"),this.mentionsEl&&(this.mentionsEl.attach?.(this.editorEl,this),this.mentionsEl.setExternalConfig?.(this.mentions)),this.wireEditor(),document.addEventListener("selectionchange",this.onSelectionChange,{passive:!0}),this.updateToolbarState(),this.syncPreview()}ensureStructure(){this.toolbarEl=this.querySelector("nile-rte-toolbar"),this.previewEl=this.querySelector("nile-rte-preview"),this.containerEl=this.querySelector(".rte-container"),this.containerEl||(this.containerEl=document.createElement("div"),this.containerEl.className="rte-container",this.appendChild(this.containerEl)),this.ensureEditor(),this.toolbarEl&&this.toolbarEl.parentElement!==this.containerEl&&this.containerEl.appendChild(this.toolbarEl),this.editorEl.parentElement!==this.containerEl&&this.containerEl.appendChild(this.editorEl),this.previewEl&&(this.previewEl.parentElement!==this&&this.appendChild(this.previewEl),this.previewEl.previousElementSibling!==this.containerEl&&this.insertBefore(this.previewEl,this.containerEl.nextSibling))}updateContentWithMention(e){this.updateContent(),this.dispatchEvent(new CustomEvent("nile-change",{detail:{content:this.content,mention:e},bubbles:!0,composed:!0}))}disconnectedCallback(){document.removeEventListener("selectionchange",this.onSelectionChange),this.mentionsEl&&this.mentionsEl.detach&&this.mentionsEl.detach(),super.disconnectedCallback()}updated(e){e.has("value")&&this.editorEl&&this.value!==this.editorEl.innerHTML&&(this.editorEl.innerHTML=this.value||"<p><br></p>",this.content=this.editorEl.innerHTML,this.syncPreview()),e.has("singleLineEditor")&&(this.editorEl&&this.editorEl.classList.toggle("single-line",this.singleLineEditor),this.previewEl&&this.previewEl.classList.toggle("single-line",this.singleLineEditor))}ensureEditor(){if(this.editorEl=this.querySelector(".editor"),!this.editorEl){const e=document.createElement("article");e.className="editor",e.setAttribute("contenteditable","true"),this.editorEl=e}this.placeholder&&(this.editorEl.dataset.placeholder=this.placeholder),this.editorEl.innerHTML.trim()||(this.editorEl.innerHTML="<p><br></p>")}unwrapMention(e,t=!0){const i=e.parentNode;if(!i)return;const M=t?(e.textContent??"").replace(/\u200B/g,""):"",n=document.createTextNode(M);i.insertBefore(n,e),i.removeChild(e);const o=document.createRange();o.setStartAfter(n),o.collapse(!0);const r=window.getSelection();r?.removeAllRanges(),r?.addRange(o)}scrubBrokenMentions(){if(!this.editorEl)return;this.editorEl.querySelectorAll("span.mention").forEach((e=>{const t=e,i=t.getAttribute("data-mention-key"),M=t.getAttribute("data-mention-label"),n=t.getAttribute("data-mention-trigger")||"",o=(t.textContent??"").replace(/\u200B/g,"").trim(),r=!!i&&!!M&&o.length>0&&o.startsWith(n)&&o.includes(M);o&&r||this.unwrapMention(t,!0)}))}wireEditor(){this.editorEl.addEventListener("input",(()=>{this.ensureAtLeastOneParagraph(),this.scrubBrokenMentions(),this.updateContent(),this.updateToolbarState()})),this.editorEl.addEventListener("mouseup",(()=>{this.saveSelection(),this.updateToolbarState()})),this.editorEl.addEventListener("keyup",(e=>{this.saveSelection(),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)&&this.updateToolbarState()})),this.editorEl.addEventListener("keydown",this.onEditorKeydown)}wireAuthoredToolbar(e){this.buttonMap.clear(),this.headingSelect=null,this.fontSelect=null,this.colorInput=null,Array.from(e.children).forEach((e=>{const t=e.tagName.toLowerCase();if("nile-rte-select"!==t||"align"!==e.getAttribute("type")){if("nile-rte-link"===t)return e.editorEl=this.editorEl,void e.addEventListener("link-changed",(()=>{this.updateContent(),this.updateToolbarState()}));if("nile-rte-toolbar-item"===t){let t=e.querySelector(":scope > nile-button");const i=e.getAttribute("name")||"",M=e.getAttribute("label")||i,n=e.getAttribute("icon"),o=e.innerHTML.trim().length>0;if(t||(t=document.createElement("nile-button"),t.variant="tertiary",t.size="small"),n)t.innerHTML=`<nile-icon name="${n}" aria-label="${M}"></nile-icon>`,e.innerHTML="";else if(o)t.innerHTML=e.innerHTML,e.innerHTML="";else{const n=xS[i];n?t.innerHTML=`<nile-icon name="${n}" size="20" color="black" aria-label="${M}"></nile-icon>`:t.textContent=M||i,e.innerHTML=""}if(!t.isConnected){const i=document.createElement("nile-tooltip");i.setAttribute("content",M),i.appendChild(t),e.appendChild(i)}t.setAttribute("aria-label",M),t.addEventListener("mousedown",(e=>e.preventDefault())),t.addEventListener("click",(()=>this.onToolbarCommand(i)));const r=this.buttonMap.get(i)??[];return r.push(t),void this.buttonMap.set(i,r)}if("nile-rte-select"!==t)"nile-rte-color"!==t||e.addEventListener("change",(e=>{this.focusAndRestore();const{mode:t,value:i}=e.detail;"backColor"===t?hS(this.editorEl,"backgroundColor",i,"data-rte-bg"):function(e,t){hS(e,"color",t,"data-rte-color")}(this.editorEl,i),this.updateContent(),this.updateToolbarState()}));else{const t=e.getAttribute("type")||"";e.addEventListener("change",(e=>{this.focusAndRestore();const i=e.detail;"heading"===t?function(e,t){const i=document.getSelection();if(!i||0===i.rangeCount)return;const M=cS(i.getRangeAt(0).startContainer,e);if(!M)return;if(M.tagName.toLowerCase()===t)return;const n=document.createElement(t);for(;M.firstChild;)n.appendChild(M.firstChild);M.replaceWith(n);const o=document.createRange();o.selectNodeContents(n),o.collapse(!0),i.removeAllRanges(),i.addRange(o)}(this.editorEl,i):"font"===t&&dS(this.editorEl,i),this.updateContent(),this.updateToolbarState()}))}}else e.addEventListener("change",(e=>{this.focusAndRestore();const t=e.detail;jS(this.editorEl,t),this.updateContent(),this.updateToolbarState()}))}))}saveSelection(){const e=window.getSelection();e&&e.rangeCount&&(this.lastRange=e.getRangeAt(0).cloneRange())}restoreSelection(){if(!this.lastRange)return;const e=document.getSelection();e&&(e.removeAllRanges(),e.addRange(this.lastRange))}focusAndRestore(){this.editorEl?.focus(),this.restoreSelection()}getCleanContent(){const e=this.editorEl.cloneNode(!0);return e.querySelectorAll("*").forEach((e=>{e.removeAttribute("style")})),e.innerHTML}insertList(e){if(this.restoreSelection(),!this.lastRange)return;const t=document.createElement(e),i=this.lastRange.extractContents(),M=document.createElement("div");M.appendChild(i),Array.from(M.childNodes).forEach((e=>{if(e.nodeType===Node.TEXT_NODE&&!e.textContent?.trim())return;const i=document.createElement("li");i.appendChild(e),t.appendChild(i)})),this.lastRange.insertNode(t),this.afterListEdit(t)}afterListEdit(e){const t=document.createRange();t.setStartAfter(e),t.collapse(!0);const i=window.getSelection();i?.removeAllRanges(),i?.addRange(t),this.saveSelection(),this.updateContent(),this.updateToolbarState()}ensureAtLeastOneParagraph(){const e=this.editorEl;if(!e)return;const t=""===(e.textContent??"").replace(/\u200B/g,"").trim();if(0===e.childNodes.length||t)return void(e.innerHTML="<p><br></p>");if(!e.querySelector("p,h1,h2,h3,h4,h5,h6,ul,ol,table,blockquote,pre")){const t=document.createElement("p");for(;e.firstChild;)t.appendChild(e.firstChild);return t.hasChildNodes()||t.appendChild(document.createElement("br")),void e.appendChild(t)}e.querySelectorAll("p").forEach((e=>{""===(e.textContent??"").replace(/\u200B/g,"")&&(e.innerHTML.toLowerCase().includes("<br")||(e.innerHTML="<br>"))}))}onToolbarCommand(e){switch(this.focusAndRestore(),e){case"bold":IS(this.editorEl,"strong");break;case"italic":IS(this.editorEl,"em");break;case"underline":IS(this.editorEl,"u");break;case"left":jS(this.editorEl,"left");break;case"center":jS(this.editorEl,"center");break;case"right":jS(this.editorEl,"right");break;case"justify":jS(this.editorEl,"justify");break;case"ul":OS(this.editorEl,"ul"),this.updateContent(),this.updateToolbarState();break;case"ol":OS(this.editorEl,"ol"),this.updateContent(),this.updateToolbarState();break;case"link":break;case"clear":const e=document.createTreeWalker(this.editorEl,NodeFilter.SHOW_ELEMENT),t=[];for(;e.nextNode();){const i=e.currentNode;i.removeAttribute("style"),["B","STRONG","I","EM","U","SPAN","FONT"].includes(i.tagName)&&t.push(i)}for(const e of t){for(;e.firstChild;)e.parentNode?.insertBefore(e.firstChild,e);e.remove()}this.ensureAtLeastOneParagraph()}this.updateContent(),this.updateToolbarState()}setBtnActive(e,t){const i=this.buttonMap.get(e);if(i)for(const e of i)e.toggleAttribute("data-active",!!t)}updateToolbarState(){if(!this.editorEl)return;const e=document.getSelection();if(!e||0===e.rangeCount)return;const t=e.getRangeAt(0);if(!this.editorEl.contains(t.commonAncestorContainer))return;const i=function(e){for(;e&&!(e instanceof HTMLElement);)e=e.parentNode;return e}(t.startContainer)||this.editorEl,M=getComputedStyle(i),n=cS(t.startContainer,this.editorEl)||this.editorEl,o=(()=>{let e=i;for(;e&&e!==this.editorEl;){if(e instanceof HTMLElement){const t=e.tagName.toLowerCase();if("strong"===t||"b"===t)return!0;const i=getComputedStyle(e).fontWeight;if(parseInt(i,10)>=600)return!0}e=e.parentNode}return!1})(),r=(()=>{let e=i;for(;e&&e!==this.editorEl;){if(e instanceof HTMLElement){const t=e.tagName.toLowerCase();if("em"===t||"i"===t)return!0;if("italic"===getComputedStyle(e).fontStyle)return!0}e=e.parentNode}return!1})(),s=(()=>{let e=i;for(;e&&e!==this.editorEl;){if(e instanceof HTMLElement){const t=getComputedStyle(e).textDecorationLine;if(t&&t.includes("underline"))return!0;if("u"===e.tagName.toLowerCase())return!0}e=e.parentNode}return!1})(),a=!!i.closest("a"),l=n.style.textAlign||getComputedStyle(n).textAlign||"start",N="start"===l?"left":l,g=!!i.closest("li")&&i.closest("ul,ol")?.tagName.toLowerCase()||"";if(this.setBtnActive("bold",o),this.setBtnActive("italic",r),this.setBtnActive("underline",s),this.setBtnActive("link",a),this.setBtnActive("left","left"===N&&!["center","right","justify"].includes(N)),this.setBtnActive("center","center"===N),this.setBtnActive("right","right"===N),this.setBtnActive("justify","justify"===N),this.setBtnActive("ul","ul"===g),this.setBtnActive("ol","ol"===g),this.headingSelect){const e=n.tagName.toLowerCase(),t=["h1","h2","h3"].includes(e)?e:"p";this.headingSelect.value!==t&&(this.headingSelect.value=t)}if(this.fontSelect){const e=(M.fontFamily||"").replace(/["']/g,"").split(",")[0].trim().toLowerCase();if(e)for(const t of Array.from(this.fontSelect.options))if(t.value.toLowerCase()===e){this.fontSelect.value=t.value;break}}if(this.colorInput){const e=zS(M.color);e&&this.colorInput.value.toLowerCase()!==e.toLowerCase()&&(this.colorInput.value=e),this.colorSwatchEl&&(this.colorSwatchEl.style.backgroundColor=this.colorInput.value)}if(this.bgColorInput){const e=getComputedStyle(i).backgroundColor;if(e&&!/transparent|rgba\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(e)){const t=zS(e);t&&this.bgColorInput.value.toLowerCase()!==t.toLowerCase()&&(this.bgColorInput.value=t)}this.bgSwatchEl&&(this.bgSwatchEl.style.backgroundColor=this.bgColorInput.value)}}syncPreview(){this.updateContent()}updateContent(){if(!this.editorEl)return;this.ensureAtLeastOneParagraph();const e=""===(this.editorEl.textContent??"").trim();this.editorEl.classList.toggle("empty",e);const t=this.editorEl.cloneNode(!0);if(this.noStyles)t.querySelectorAll("[style]").forEach((e=>e.removeAttribute("style")));else{const e=document.createTreeWalker(this.editorEl,NodeFilter.SHOW_ELEMENT),i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),M=["font-weight","font-style","text-decoration","color","background-color","font-size","font-family","text-align","line-height","letter-spacing","white-space","vertical-align","list-style-position","padding-inline-start"];for(;e.nextNode()&&i.nextNode();){const t=e.currentNode,n=i.currentNode,o=window.getComputedStyle(t),r=M.map((e=>`${e}:${o.getPropertyValue(e)}`)).join(";");r.trim()&&n.setAttribute("style",r)}}this.content=t.innerHTML,this.previewEl&&(this.previewEl.innerHTML=this.content),this.dispatchEvent(new CustomEvent("nile-change",{detail:{content:this.content},bubbles:!0,composed:!0}))}};e([De({type:String,attribute:!0,reflect:!0})],pS.prototype,"value",void 0),e([De({type:Boolean,attribute:!0,reflect:!0})],pS.prototype,"noStyles",void 0),e([De({type:Boolean,attribute:"singlelineeditor",reflect:!0})],pS.prototype,"singleLineEditor",void 0),e([De({type:String})],pS.prototype,"placeholder",void 0),e([De({attribute:"mentions",reflect:!0,converter:{fromAttribute:e=>{try{const t=JSON.parse(e),i={};for(const e of Object.keys(t)){const M=t[e];Array.isArray(M)&&(i[e]=M.filter((e=>e&&"string"==typeof e.key&&"string"==typeof e.label)).map((e=>({key:e.key,label:e.label}))))}return i}catch{return{}}},toAttribute:e=>JSON.stringify(e)}})],pS.prototype,"mentions",void 0),e([ce()],pS.prototype,"content",void 0),pS=e([Ne("nile-rich-text-editor")],pS);"undefined"!=typeof window&&(window.nileElementsVersion='"1.2.8-beta-1.9"',window.nileVersion="__NILE_VERSION__",window.process=window.process||{env:{NODE_ENV:"production"}});const SS=r`
|
|
14321
14321
|
:host {
|
|
14322
14322
|
--sidebar-width: 240px;
|
|
14323
14323
|
--sidebar-collapsed-width: 70px;
|
|
@@ -15594,7 +15594,7 @@ a {
|
|
|
15594
15594
|
.tippy-svg-arrow > svg {
|
|
15595
15595
|
position: absolute;
|
|
15596
15596
|
}
|
|
15597
|
-
`;!function(){const e="nile-lite-tooltip-styles";if(document.getElementById(e))return;const t=document.createElement("style");t.id=e,t.textContent=sE.cssText,document.head.appendChild(t)}();var aE="top",lE="bottom",NE="right",gE="left",uE="auto",DE=[aE,lE,NE,gE],cE="start",jE="end",IE="viewport",zE="popper",dE=DE.reduce((function(e,t){return e.concat([t+"-"+cE,t+"-"+jE])}),[]),TE=[].concat(DE,[uE]).reduce((function(e,t){return e.concat([t,t+"-"+cE,t+"-"+jE])}),[]),hE=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function yE(e){return e?(e.nodeName||"").toLowerCase():null}function AE(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function OE(e){return e instanceof AE(e).Element||e instanceof Element}function LE(e){return e instanceof AE(e).HTMLElement||e instanceof HTMLElement}function xE(e){return"undefined"!=typeof ShadowRoot&&(e instanceof AE(e).ShadowRoot||e instanceof ShadowRoot)}var pE={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},M=t.attributes[e]||{},n=t.elements[e];LE(n)&&yE(n)&&(Object.assign(n.style,i),Object.keys(M).forEach((function(e){var t=M[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var M=t.elements[e],n=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});LE(M)&&yE(M)&&(Object.assign(M.style,o),Object.keys(n).forEach((function(e){M.removeAttribute(e)})))}))}},requires:["computeStyles"]};function SE(e){return e.split("-")[0]}var EE=Math.max,mE=Math.min,wE=Math.round;function QE(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function kE(){return!/^((?!chrome|android).)*safari/i.test(QE())}function CE(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var M=e.getBoundingClientRect(),n=1,o=1;t&&LE(e)&&(n=e.offsetWidth>0&&wE(M.width)/e.offsetWidth||1,o=e.offsetHeight>0&&wE(M.height)/e.offsetHeight||1);var r=(OE(e)?AE(e):window).visualViewport,s=!kE()&&i,a=(M.left+(s&&r?r.offsetLeft:0))/n,l=(M.top+(s&&r?r.offsetTop:0))/o,N=M.width/n,g=M.height/o;return{width:N,height:g,top:l,right:a+N,bottom:l+g,left:a,x:a,y:l}}function bE(e){var t=CE(e),i=e.offsetWidth,M=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-M)<=1&&(M=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:M}}function fE(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&xE(i)){var M=t;do{if(M&&e.isSameNode(M))return!0;M=M.parentNode||M.host}while(M)}return!1}function UE(e){return AE(e).getComputedStyle(e)}function vE(e){return["table","td","th"].indexOf(yE(e))>=0}function YE(e){return((OE(e)?e.ownerDocument:e.document)||window.document).documentElement}function ZE(e){return"html"===yE(e)?e:e.assignedSlot||e.parentNode||(xE(e)?e.host:null)||YE(e)}function VE(e){return LE(e)&&"fixed"!==UE(e).position?e.offsetParent:null}function WE(e){for(var t=AE(e),i=VE(e);i&&vE(i)&&"static"===UE(i).position;)i=VE(i);return i&&("html"===yE(i)||"body"===yE(i)&&"static"===UE(i).position)?t:i||function(e){var t=/firefox/i.test(QE());if(/Trident/i.test(QE())&&LE(e)&&"fixed"===UE(e).position)return null;var i=ZE(e);for(xE(i)&&(i=i.host);LE(i)&&["html","body"].indexOf(yE(i))<0;){var M=UE(i);if("none"!==M.transform||"none"!==M.perspective||"paint"===M.contain||-1!==["transform","perspective"].indexOf(M.willChange)||t&&"filter"===M.willChange||t&&M.filter&&"none"!==M.filter)return i;i=i.parentNode}return null}(e)||t}function PE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function RE(e,t,i){return EE(e,mE(t,i))}function GE(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function BE(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var _E={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,M=e.name,n=e.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,s=SE(i.placement),a=PE(s),l=[gE,NE].indexOf(s)>=0?"height":"width";if(o&&r){var N=function(e,t){return GE("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:BE(e,DE))}(n.padding,i),g=bE(o),u="y"===a?aE:gE,D="y"===a?lE:NE,c=i.rects.reference[l]+i.rects.reference[a]-r[a]-i.rects.popper[l],j=r[a]-i.rects.reference[a],I=WE(o),z=I?"y"===a?I.clientHeight||0:I.clientWidth||0:0,d=c/2-j/2,T=N[u],h=z-g[l]-N[D],y=z/2-g[l]/2+d,A=RE(T,y,h),O=a;i.modifiersData[M]=((t={})[O]=A,t.centerOffset=A-y,t)}},effect:function(e){var t=e.state,i=e.options.element,M=void 0===i?"[data-popper-arrow]":i;null!=M&&("string"!=typeof M||(M=t.elements.popper.querySelector(M)))&&fE(t.elements.popper,M)&&(t.elements.arrow=M)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function FE(e){return e.split("-")[1]}var HE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function JE(e){var t,i=e.popper,M=e.popperRect,n=e.placement,o=e.variation,r=e.offsets,s=e.position,a=e.gpuAcceleration,l=e.adaptive,N=e.roundOffsets,g=e.isFixed,u=r.x,D=void 0===u?0:u,c=r.y,j=void 0===c?0:c,I="function"==typeof N?N({x:D,y:j}):{x:D,y:j};D=I.x,j=I.y;var z=r.hasOwnProperty("x"),d=r.hasOwnProperty("y"),T=gE,h=aE,y=window;if(l){var A=WE(i),O="clientHeight",L="clientWidth";if(A===AE(i)&&"static"!==UE(A=YE(i)).position&&"absolute"===s&&(O="scrollHeight",L="scrollWidth"),n===aE||(n===gE||n===NE)&&o===jE)h=lE,j-=(g&&A===y&&y.visualViewport?y.visualViewport.height:A[O])-M.height,j*=a?1:-1;if(n===gE||(n===aE||n===lE)&&o===jE)T=NE,D-=(g&&A===y&&y.visualViewport?y.visualViewport.width:A[L])-M.width,D*=a?1:-1}var x,p=Object.assign({position:s},l&&HE),S=!0===N?function(e,t){var i=e.x,M=e.y,n=t.devicePixelRatio||1;return{x:wE(i*n)/n||0,y:wE(M*n)/n||0}}({x:D,y:j},AE(i)):{x:D,y:j};return D=S.x,j=S.y,a?Object.assign({},p,((x={})[h]=d?"0":"",x[T]=z?"0":"",x.transform=(y.devicePixelRatio||1)<=1?"translate("+D+"px, "+j+"px)":"translate3d("+D+"px, "+j+"px, 0)",x)):Object.assign({},p,((t={})[h]=d?j+"px":"",t[T]=z?D+"px":"",t.transform="",t))}var $E={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,M=i.gpuAcceleration,n=void 0===M||M,o=i.adaptive,r=void 0===o||o,s=i.roundOffsets,a=void 0===s||s,l={placement:SE(t.placement),variation:FE(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,JE(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,JE(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},XE={passive:!0};var qE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,M=e.options,n=M.scroll,o=void 0===n||n,r=M.resize,s=void 0===r||r,a=AE(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach((function(e){e.addEventListener("scroll",i.update,XE)})),s&&a.addEventListener("resize",i.update,XE),function(){o&&l.forEach((function(e){e.removeEventListener("scroll",i.update,XE)})),s&&a.removeEventListener("resize",i.update,XE)}},data:{}},KE={left:"right",right:"left",bottom:"top",top:"bottom"};function em(e){return e.replace(/left|right|bottom|top/g,(function(e){return KE[e]}))}var tm={start:"end",end:"start"};function im(e){return e.replace(/start|end/g,(function(e){return tm[e]}))}function Mm(e){var t=AE(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function nm(e){return CE(YE(e)).left+Mm(e).scrollLeft}function om(e){var t=UE(e),i=t.overflow,M=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+M)}function rm(e){return["html","body","#document"].indexOf(yE(e))>=0?e.ownerDocument.body:LE(e)&&om(e)?e:rm(ZE(e))}function sm(e,t){var i;void 0===t&&(t=[]);var M=rm(e),n=M===(null==(i=e.ownerDocument)?void 0:i.body),o=AE(M),r=n?[o].concat(o.visualViewport||[],om(M)?M:[]):M,s=t.concat(r);return n?s:s.concat(sm(ZE(r)))}function am(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lm(e,t,i){return t===IE?am(function(e,t){var i=AE(e),M=YE(e),n=i.visualViewport,o=M.clientWidth,r=M.clientHeight,s=0,a=0;if(n){o=n.width,r=n.height;var l=kE();(l||!l&&"fixed"===t)&&(s=n.offsetLeft,a=n.offsetTop)}return{width:o,height:r,x:s+nm(e),y:a}}(e,i)):OE(t)?function(e,t){var i=CE(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):am(function(e){var t,i=YE(e),M=Mm(e),n=null==(t=e.ownerDocument)?void 0:t.body,o=EE(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=EE(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-M.scrollLeft+nm(e),a=-M.scrollTop;return"rtl"===UE(n||i).direction&&(s+=EE(i.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:s,y:a}}(YE(e)))}function Nm(e,t,i,M){var n="clippingParents"===t?function(e){var t=sm(ZE(e)),i=["absolute","fixed"].indexOf(UE(e).position)>=0&&LE(e)?WE(e):e;return OE(i)?t.filter((function(e){return OE(e)&&fE(e,i)&&"body"!==yE(e)})):[]}(e):[].concat(t),o=[].concat(n,[i]),r=o[0],s=o.reduce((function(t,i){var n=lm(e,i,M);return t.top=EE(n.top,t.top),t.right=mE(n.right,t.right),t.bottom=mE(n.bottom,t.bottom),t.left=EE(n.left,t.left),t}),lm(e,r,M));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function gm(e){var t,i=e.reference,M=e.element,n=e.placement,o=n?SE(n):null,r=n?FE(n):null,s=i.x+i.width/2-M.width/2,a=i.y+i.height/2-M.height/2;switch(o){case aE:t={x:s,y:i.y-M.height};break;case lE:t={x:s,y:i.y+i.height};break;case NE:t={x:i.x+i.width,y:a};break;case gE:t={x:i.x-M.width,y:a};break;default:t={x:i.x,y:i.y}}var l=o?PE(o):null;if(null!=l){var N="y"===l?"height":"width";switch(r){case cE:t[l]=t[l]-(i[N]/2-M[N]/2);break;case jE:t[l]=t[l]+(i[N]/2-M[N]/2)}}return t}function um(e,t){void 0===t&&(t={});var i=t,M=i.placement,n=void 0===M?e.placement:M,o=i.strategy,r=void 0===o?e.strategy:o,s=i.boundary,a=void 0===s?"clippingParents":s,l=i.rootBoundary,N=void 0===l?IE:l,g=i.elementContext,u=void 0===g?zE:g,D=i.altBoundary,c=void 0!==D&&D,j=i.padding,I=void 0===j?0:j,z=GE("number"!=typeof I?I:BE(I,DE)),d=u===zE?"reference":zE,T=e.rects.popper,h=e.elements[c?d:u],y=Nm(OE(h)?h:h.contextElement||YE(e.elements.popper),a,N,r),A=CE(e.elements.reference),O=gm({reference:A,element:T,strategy:"absolute",placement:n}),L=am(Object.assign({},T,O)),x=u===zE?L:A,p={top:y.top-x.top+z.top,bottom:x.bottom-y.bottom+z.bottom,left:y.left-x.left+z.left,right:x.right-y.right+z.right},S=e.modifiersData.offset;if(u===zE&&S){var E=S[n];Object.keys(p).forEach((function(e){var t=[NE,lE].indexOf(e)>=0?1:-1,i=[aE,lE].indexOf(e)>=0?"y":"x";p[e]+=E[i]*t}))}return p}function Dm(e,t){void 0===t&&(t={});var i=t,M=i.placement,n=i.boundary,o=i.rootBoundary,r=i.padding,s=i.flipVariations,a=i.allowedAutoPlacements,l=void 0===a?TE:a,N=FE(M),g=N?s?dE:dE.filter((function(e){return FE(e)===N})):DE,u=g.filter((function(e){return l.indexOf(e)>=0}));0===u.length&&(u=g);var D=u.reduce((function(t,i){return t[i]=um(e,{placement:i,boundary:n,rootBoundary:o,padding:r})[SE(i)],t}),{});return Object.keys(D).sort((function(e,t){return D[e]-D[t]}))}var cm={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,M=e.name;if(!t.modifiersData[M]._skip){for(var n=i.mainAxis,o=void 0===n||n,r=i.altAxis,s=void 0===r||r,a=i.fallbackPlacements,l=i.padding,N=i.boundary,g=i.rootBoundary,u=i.altBoundary,D=i.flipVariations,c=void 0===D||D,j=i.allowedAutoPlacements,I=t.options.placement,z=SE(I),d=a||(z===I||!c?[em(I)]:function(e){if(SE(e)===uE)return[];var t=em(e);return[im(e),t,im(t)]}(I)),T=[I].concat(d).reduce((function(e,i){return e.concat(SE(i)===uE?Dm(t,{placement:i,boundary:N,rootBoundary:g,padding:l,flipVariations:c,allowedAutoPlacements:j}):i)}),[]),h=t.rects.reference,y=t.rects.popper,A=new Map,O=!0,L=T[0],x=0;x<T.length;x++){var p=T[x],S=SE(p),E=FE(p)===cE,m=[aE,lE].indexOf(S)>=0,w=m?"width":"height",Q=um(t,{placement:p,boundary:N,rootBoundary:g,altBoundary:u,padding:l}),k=m?E?NE:gE:E?lE:aE;h[w]>y[w]&&(k=em(k));var C=em(k),b=[];if(o&&b.push(Q[S]<=0),s&&b.push(Q[k]<=0,Q[C]<=0),b.every((function(e){return e}))){L=p,O=!1;break}A.set(p,b)}if(O)for(var f=function(e){var t=T.find((function(t){var i=A.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},U=c?3:1;U>0;U--){if("break"===f(U))break}t.placement!==L&&(t.modifiersData[M]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function jm(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Im(e){return[aE,NE,lE,gE].some((function(t){return e[t]>=0}))}var zm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,M=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,r=um(t,{elementContext:"reference"}),s=um(t,{altBoundary:!0}),a=jm(r,M),l=jm(s,n,o),N=Im(a),g=Im(l);t.modifiersData[i]={referenceClippingOffsets:a,popperEscapeOffsets:l,isReferenceHidden:N,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":N,"data-popper-escaped":g})}};var dm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,M=e.name,n=i.offset,o=void 0===n?[0,0]:n,r=TE.reduce((function(e,i){return e[i]=function(e,t,i){var M=SE(e),n=[gE,aE].indexOf(M)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=o[0],s=o[1];return r=r||0,s=(s||0)*n,[gE,NE].indexOf(M)>=0?{x:s,y:r}:{x:r,y:s}}(i,t.rects,o),e}),{}),s=r[t.placement],a=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=l),t.modifiersData[M]=r}};var Tm={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=gm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var hm={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,M=e.name,n=i.mainAxis,o=void 0===n||n,r=i.altAxis,s=void 0!==r&&r,a=i.boundary,l=i.rootBoundary,N=i.altBoundary,g=i.padding,u=i.tether,D=void 0===u||u,c=i.tetherOffset,j=void 0===c?0:c,I=um(t,{boundary:a,rootBoundary:l,padding:g,altBoundary:N}),z=SE(t.placement),d=FE(t.placement),T=!d,h=PE(z),y="x"===h?"y":"x",A=t.modifiersData.popperOffsets,O=t.rects.reference,L=t.rects.popper,x="function"==typeof j?j(Object.assign({},t.rects,{placement:t.placement})):j,p="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(A){if(o){var m,w="y"===h?aE:gE,Q="y"===h?lE:NE,k="y"===h?"height":"width",C=A[h],b=C+I[w],f=C-I[Q],U=D?-L[k]/2:0,v=d===cE?O[k]:L[k],Y=d===cE?-L[k]:-O[k],Z=t.elements.arrow,V=D&&Z?bE(Z):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},P=W[w],R=W[Q],G=RE(0,O[k],V[k]),B=T?O[k]/2-U-G-P-p.mainAxis:v-G-P-p.mainAxis,_=T?-O[k]/2+U+G+R+p.mainAxis:Y+G+R+p.mainAxis,F=t.elements.arrow&&WE(t.elements.arrow),H=F?"y"===h?F.clientTop||0:F.clientLeft||0:0,J=null!=(m=null==S?void 0:S[h])?m:0,$=C+_-J,X=RE(D?mE(b,C+B-J-H):b,C,D?EE(f,$):f);A[h]=X,E[h]=X-C}if(s){var q,K="x"===h?aE:gE,ee="x"===h?lE:NE,te=A[y],ie="y"===y?"height":"width",Me=te+I[K],ne=te-I[ee],oe=-1!==[aE,gE].indexOf(z),re=null!=(q=null==S?void 0:S[y])?q:0,se=oe?Me:te-O[ie]-L[ie]-re+p.altAxis,ae=oe?te+O[ie]+L[ie]-re-p.altAxis:ne,le=D&&oe?function(e,t,i){var M=RE(e,t,i);return M>i?i:M}(se,te,ae):RE(D?se:Me,te,D?ae:ne);A[y]=le,E[y]=le-te}t.modifiersData[M]=E}},requiresIfExists:["offset"]};function ym(e,t,i){void 0===i&&(i=!1);var M,n,o=LE(t),r=LE(t)&&function(e){var t=e.getBoundingClientRect(),i=wE(t.width)/e.offsetWidth||1,M=wE(t.height)/e.offsetHeight||1;return 1!==i||1!==M}(t),s=YE(t),a=CE(e,r,i),l={scrollLeft:0,scrollTop:0},N={x:0,y:0};return(o||!o&&!i)&&(("body"!==yE(t)||om(s))&&(l=(M=t)!==AE(M)&&LE(M)?{scrollLeft:(n=M).scrollLeft,scrollTop:n.scrollTop}:Mm(M)),LE(t)?((N=CE(t,!0)).x+=t.clientLeft,N.y+=t.clientTop):s&&(N.x=nm(s))),{x:a.left+l.scrollLeft-N.x,y:a.top+l.scrollTop-N.y,width:a.width,height:a.height}}function Am(e){var t=new Map,i=new Set,M=[];function n(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var M=t.get(e);M&&n(M)}})),M.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||n(e)})),M}var Om={placement:"bottom",modifiers:[],strategy:"absolute"};function Lm(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function xm(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,M=void 0===i?[]:i,n=t.defaultOptions,o=void 0===n?Om:n;return function(e,t,i){void 0===i&&(i=o);var n,r,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Om,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,N={state:s,setOptions:function(i){var n="function"==typeof i?i(s.options):i;g(),s.options=Object.assign({},o,s.options,n),s.scrollParents={reference:OE(e)?sm(e):e.contextElement?sm(e.contextElement):[],popper:sm(t)};var r=function(e){var t=Am(e);return hE.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}(function(e){var t=e.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(M,s.options.modifiers)));return s.orderedModifiers=r.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,M=void 0===i?{}:i,n=e.effect;if("function"==typeof n){var o=n({state:s,name:t,instance:N,options:M}),r=function(){};a.push(o||r)}})),N.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,i=e.popper;if(Lm(t,i)){s.rects={reference:ym(t,WE(i),"fixed"===s.options.strategy),popper:bE(i)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var M=0;M<s.orderedModifiers.length;M++)if(!0!==s.reset){var n=s.orderedModifiers[M],o=n.fn,r=n.options,a=void 0===r?{}:r,g=n.name;"function"==typeof o&&(s=o({state:s,options:a,name:g,instance:N})||s)}else s.reset=!1,M=-1}}},update:(n=function(){return new Promise((function(e){N.forceUpdate(),e(s)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(n())}))}))),r}),destroy:function(){g(),l=!0}};if(!Lm(e,t))return N;function g(){a.forEach((function(e){return e()})),a=[]}return N.setOptions(i).then((function(e){!l&&i.onFirstUpdate&&i.onFirstUpdate(e)})),N}}var pm=xm({defaultModifiers:[qE,Tm,$E,pE,dm,cm,hm,_E,zm]}),Sm='<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>',Em="tippy-content",mm="tippy-arrow",wm="tippy-svg-arrow",Qm={passive:!0,capture:!0},km=function(){return document.body};function Cm(e,t,i){if(Array.isArray(e)){var M=e[t];return null==M?Array.isArray(i)?i[t]:i:M}return e}function bm(e,t){var i={}.toString.call(e);return 0===i.indexOf("[object")&&i.indexOf(t+"]")>-1}function fm(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Um(e,t){return 0===t?e:function(M){clearTimeout(i),i=setTimeout((function(){e(M)}),t)};var i}function vm(e,t){var i=Object.assign({},e);return t.forEach((function(e){delete i[e]})),i}function Ym(e){return[].concat(e)}function Zm(e,t){-1===e.indexOf(t)&&e.push(t)}function Vm(e){return[].slice.call(e)}function Wm(e){return Object.keys(e).reduce((function(t,i){return void 0!==e[i]&&(t[i]=e[i]),t}),{})}function Pm(){return document.createElement("div")}function Rm(e){return["Element","Fragment"].some((function(t){return bm(e,t)}))}function Gm(e){return bm(e,"MouseEvent")}function Bm(e){return Rm(e)?[e]:function(e){return bm(e,"NodeList")}(e)?Vm(e):Array.isArray(e)?e:Vm(document.querySelectorAll(e))}function _m(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Fm(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Hm(e){var t,i=Ym(e)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}function Jm(e,t,i){var M=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[M](t,i)}))}function $m(e,t){for(var i=t;i;){var M;if(e.contains(i))return!0;i=null==i.getRootNode||null==(M=i.getRootNode())?void 0:M.host}return!1}var Xm={isTouch:!1},qm=0;function Km(){Xm.isTouch||(Xm.isTouch=!0,window.performance&&document.addEventListener("mousemove",ew))}function ew(){var e=performance.now();e-qm<20&&(Xm.isTouch=!1,document.removeEventListener("mousemove",ew)),qm=e}function tw(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var i=t._tippy;t.blur&&!i.state.isVisible&&t.blur()}}var iw,Mw=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function nw(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function ow(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function rw(e){return ow("\n %ctippy.js\n\n %c"+ow(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function sw(e){return[rw(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function aw(e,t){var i;e&&!iw.has(t)&&(iw.add(t),(i=console).warn.apply(i,sw(t)))}function lw(e,t){var i;e&&!iw.has(t)&&(iw.add(t),(i=console).error.apply(i,sw(t)))}"production"!==process.env.NODE_ENV&&(iw=new Set);var Nw={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},gw=Object.assign({appendTo:km,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},Nw,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),uw=Object.keys(gw);function Dw(e){var t=(e.plugins||[]).reduce((function(t,i){var M,n=i.name,o=i.defaultValue;n&&(t[n]=void 0!==e[n]?e[n]:null!=(M=gw[n])?M:o);return t}),{});return Object.assign({},e,t)}function cw(e,t){var i=Object.assign({},t,{content:fm(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Dw(Object.assign({},gw,{plugins:t}))):uw).reduce((function(t,i){var M=(e.getAttribute("data-tippy-"+i)||"").trim();if(!M)return t;if("content"===i)t[i]=M;else try{t[i]=JSON.parse(M)}catch(e){t[i]=M}return t}),{})}(e,t.plugins));return i.aria=Object.assign({},gw.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?t.interactive:i.aria.expanded,content:"auto"===i.aria.content?t.interactive?null:"describedby":i.aria.content},i}function jw(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var i,M,n=vm(gw,Object.keys(Nw)),o=(i=n,M=e,!{}.hasOwnProperty.call(i,M));o&&(o=0===t.filter((function(t){return t.name===e})).length),aw(o,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}function Iw(e,t){e.innerHTML=t}function zw(e){var t=Pm();return!0===e?t.className=mm:(t.className=wm,Rm(e)?t.appendChild(e):Iw(t,e)),t}function dw(e,t){Rm(t.content)?(Iw(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Iw(e,t.content):e.textContent=t.content)}function Tw(e){var t=e.firstElementChild,i=Vm(t.children);return{box:t,content:i.find((function(e){return e.classList.contains(Em)})),arrow:i.find((function(e){return e.classList.contains(mm)||e.classList.contains(wm)})),backdrop:i.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function hw(e){var t=Pm(),i=Pm();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var M=Pm();function n(i,M){var n=Tw(t),o=n.box,r=n.content,s=n.arrow;M.theme?o.setAttribute("data-theme",M.theme):o.removeAttribute("data-theme"),"string"==typeof M.animation?o.setAttribute("data-animation",M.animation):o.removeAttribute("data-animation"),M.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof M.maxWidth?M.maxWidth+"px":M.maxWidth,M.role?o.setAttribute("role",M.role):o.removeAttribute("role"),i.content===M.content&&i.allowHTML===M.allowHTML||dw(r,e.props),M.arrow?s?i.arrow!==M.arrow&&(o.removeChild(s),o.appendChild(zw(M.arrow))):o.appendChild(zw(M.arrow)):s&&o.removeChild(s)}return M.className=Em,M.setAttribute("data-state","hidden"),dw(M,e.props),t.appendChild(i),i.appendChild(M),n(e.props,e.props),{popper:t,onUpdate:n}}hw.$$tippy=!0;var yw=1,Aw=[],Ow=[];function Lw(e,t){var i,M,n,o,r,s,a,l,N=cw(e,Object.assign({},gw,Dw(Wm(t)))),g=!1,u=!1,D=!1,c=!1,j=[],I=Um(F,N.interactiveDebounce),z=yw++,d=(l=N.plugins).filter((function(e,t){return l.indexOf(e)===t})),T={id:z,reference:e,popper:Pm(),popperInstance:null,props:N,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:d,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(M),cancelAnimationFrame(n)},setProps:function(t){"production"!==process.env.NODE_ENV&&aw(T.state.isDestroyed,nw("setProps"));if(T.state.isDestroyed)return;C("onBeforeUpdate",[T,t]),B();var i=T.props,M=cw(e,Object.assign({},i,Wm(t),{ignoreAttributes:!0}));T.props=M,G(),i.interactiveDebounce!==M.interactiveDebounce&&(U(),I=Um(F,M.interactiveDebounce));i.triggerTarget&&!M.triggerTarget?Ym(i.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):M.triggerTarget&&e.removeAttribute("aria-expanded");f(),k(),A&&A(i,M);T.popperInstance&&(X(),K().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));C("onAfterUpdate",[T,t])},setContent:function(e){T.setProps({content:e})},show:function(){"production"!==process.env.NODE_ENV&&aw(T.state.isDestroyed,nw("show"));var e=T.state.isVisible,t=T.state.isDestroyed,i=!T.state.isEnabled,M=Xm.isTouch&&!T.props.touch,n=Cm(T.props.duration,0,gw.duration);if(e||t||i||M)return;if(E().hasAttribute("disabled"))return;if(C("onShow",[T],!1),!1===T.props.onShow(T))return;T.state.isVisible=!0,S()&&(y.style.visibility="visible");k(),V(),T.state.isMounted||(y.style.transition="none");if(S()){var o=w();_m([o.box,o.content],0)}s=function(){var e;if(T.state.isVisible&&!c){if(c=!0,y.offsetHeight,y.style.transition=T.props.moveTransition,S()&&T.props.animation){var t=w(),i=t.box,M=t.content;_m([i,M],n),Fm([i,M],"visible")}b(),f(),Zm(Ow,T),null==(e=T.popperInstance)||e.forceUpdate(),C("onMount",[T]),T.props.animation&&S()&&function(e,t){P(e,t)}(n,(function(){T.state.isShown=!0,C("onShown",[T])}))}},function(){var e,t=T.props.appendTo,i=E();e=T.props.interactive&&t===km||"parent"===t?i.parentNode:fm(t,[i]);e.contains(y)||e.appendChild(y);T.state.isMounted=!0,X(),"production"!==process.env.NODE_ENV&&aw(T.props.interactive&&t===gw.appendTo&&i.nextElementSibling!==y,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){"production"!==process.env.NODE_ENV&&aw(T.state.isDestroyed,nw("hide"));var e=!T.state.isVisible,t=T.state.isDestroyed,i=!T.state.isEnabled,M=Cm(T.props.duration,1,gw.duration);if(e||t||i)return;if(C("onHide",[T],!1),!1===T.props.onHide(T))return;T.state.isVisible=!1,T.state.isShown=!1,c=!1,g=!1,S()&&(y.style.visibility="hidden");if(U(),W(),k(!0),S()){var n=w(),o=n.box,r=n.content;T.props.animation&&(_m([o,r],M),Fm([o,r],"hidden"))}b(),f(),T.props.animation?S()&&function(e,t){P(e,(function(){!T.state.isVisible&&y.parentNode&&y.parentNode.contains(y)&&t()}))}(M,T.unmount):T.unmount()},hideWithInteractivity:function(e){"production"!==process.env.NODE_ENV&&aw(T.state.isDestroyed,nw("hideWithInteractivity"));m().addEventListener("mousemove",I),Zm(Aw,I),I(e)},enable:function(){T.state.isEnabled=!0},disable:function(){T.hide(),T.state.isEnabled=!1},unmount:function(){"production"!==process.env.NODE_ENV&&aw(T.state.isDestroyed,nw("unmount"));T.state.isVisible&&T.hide();if(!T.state.isMounted)return;q(),K().forEach((function(e){e._tippy.unmount()})),y.parentNode&&y.parentNode.removeChild(y);Ow=Ow.filter((function(e){return e!==T})),T.state.isMounted=!1,C("onHidden",[T])},destroy:function(){"production"!==process.env.NODE_ENV&&aw(T.state.isDestroyed,nw("destroy"));if(T.state.isDestroyed)return;T.clearDelayTimeouts(),T.unmount(),B(),delete e._tippy,T.state.isDestroyed=!0,C("onDestroy",[T])}};if(!N.render)return"production"!==process.env.NODE_ENV&&lw(!0,"render() function has not been supplied."),T;var h=N.render(T),y=h.popper,A=h.onUpdate;y.setAttribute("data-tippy-root",""),y.id="tippy-"+T.id,T.popper=y,e._tippy=T,y._tippy=T;var O=d.map((function(e){return e.fn(T)})),L=e.hasAttribute("aria-expanded");return G(),f(),k(),C("onCreate",[T]),N.showOnCreate&&ee(),y.addEventListener("mouseenter",(function(){T.props.interactive&&T.state.isVisible&&T.clearDelayTimeouts()})),y.addEventListener("mouseleave",(function(){T.props.interactive&&T.props.trigger.indexOf("mouseenter")>=0&&m().addEventListener("mousemove",I)})),T;function x(){var e=T.props.touch;return Array.isArray(e)?e:[e,0]}function p(){return"hold"===x()[0]}function S(){var e;return!(null==(e=T.props.render)||!e.$$tippy)}function E(){return a||e}function m(){var e=E().parentNode;return e?Hm(e):document}function w(){return Tw(y)}function Q(e){return T.state.isMounted&&!T.state.isVisible||Xm.isTouch||o&&"focus"===o.type?0:Cm(T.props.delay,e?0:1,gw.delay)}function k(e){void 0===e&&(e=!1),y.style.pointerEvents=T.props.interactive&&!e?"":"none",y.style.zIndex=""+T.props.zIndex}function C(e,t,i){var M;(void 0===i&&(i=!0),O.forEach((function(i){i[e]&&i[e].apply(i,t)})),i)&&(M=T.props)[e].apply(M,t)}function b(){var t=T.props.aria;if(t.content){var i="aria-"+t.content,M=y.id;Ym(T.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(i);if(T.state.isVisible)e.setAttribute(i,t?t+" "+M:M);else{var n=t&&t.replace(M,"").trim();n?e.setAttribute(i,n):e.removeAttribute(i)}}))}}function f(){!L&&T.props.aria.expanded&&Ym(T.props.triggerTarget||e).forEach((function(e){T.props.interactive?e.setAttribute("aria-expanded",T.state.isVisible&&e===E()?"true":"false"):e.removeAttribute("aria-expanded")}))}function U(){m().removeEventListener("mousemove",I),Aw=Aw.filter((function(e){return e!==I}))}function v(t){if(!Xm.isTouch||!D&&"mousedown"!==t.type){var i=t.composedPath&&t.composedPath()[0]||t.target;if(!T.props.interactive||!$m(y,i)){if(Ym(T.props.triggerTarget||e).some((function(e){return $m(e,i)}))){if(Xm.isTouch)return;if(T.state.isVisible&&T.props.trigger.indexOf("click")>=0)return}else C("onClickOutside",[T,t]);!0===T.props.hideOnClick&&(T.clearDelayTimeouts(),T.hide(),u=!0,setTimeout((function(){u=!1})),T.state.isMounted||W())}}}function Y(){D=!0}function Z(){D=!1}function V(){var e=m();e.addEventListener("mousedown",v,!0),e.addEventListener("touchend",v,Qm),e.addEventListener("touchstart",Z,Qm),e.addEventListener("touchmove",Y,Qm)}function W(){var e=m();e.removeEventListener("mousedown",v,!0),e.removeEventListener("touchend",v,Qm),e.removeEventListener("touchstart",Z,Qm),e.removeEventListener("touchmove",Y,Qm)}function P(e,t){var i=w().box;function M(e){e.target===i&&(Jm(i,"remove",M),t())}if(0===e)return t();Jm(i,"remove",r),Jm(i,"add",M),r=M}function R(t,i,M){void 0===M&&(M=!1),Ym(T.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,i,M),j.push({node:e,eventType:t,handler:i,options:M})}))}function G(){var e;p()&&(R("touchstart",_,{passive:!0}),R("touchend",H,{passive:!0})),(e=T.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(R(e,_),e){case"mouseenter":R("mouseleave",H);break;case"focus":R(Mw?"focusout":"blur",J);break;case"focusin":R("focusout",J)}}))}function B(){j.forEach((function(e){var t=e.node,i=e.eventType,M=e.handler,n=e.options;t.removeEventListener(i,M,n)})),j=[]}function _(e){var t,i=!1;if(T.state.isEnabled&&!$(e)&&!u){var M="focus"===(null==(t=o)?void 0:t.type);o=e,a=e.currentTarget,f(),!T.state.isVisible&&Gm(e)&&Aw.forEach((function(t){return t(e)})),"click"===e.type&&(T.props.trigger.indexOf("mouseenter")<0||g)&&!1!==T.props.hideOnClick&&T.state.isVisible?i=!0:ee(e),"click"===e.type&&(g=!i),i&&!M&&te(e)}}function F(e){var t=e.target,i=E().contains(t)||y.contains(t);if("mousemove"!==e.type||!i){var M=K().concat(y).map((function(e){var t,i=null==(t=e._tippy.popperInstance)?void 0:t.state;return i?{popperRect:e.getBoundingClientRect(),popperState:i,props:N}:null})).filter(Boolean);(function(e,t){var i=t.clientX,M=t.clientY;return e.every((function(e){var t=e.popperRect,n=e.popperState,o=e.props.interactiveBorder,r=n.placement.split("-")[0],s=n.modifiersData.offset;if(!s)return!0;var a="bottom"===r?s.top.y:0,l="top"===r?s.bottom.y:0,N="right"===r?s.left.x:0,g="left"===r?s.right.x:0,u=t.top-M+a>o,D=M-t.bottom-l>o,c=t.left-i+N>o,j=i-t.right-g>o;return u||D||c||j}))})(M,e)&&(U(),te(e))}}function H(e){$(e)||T.props.trigger.indexOf("click")>=0&&g||(T.props.interactive?T.hideWithInteractivity(e):te(e))}function J(e){T.props.trigger.indexOf("focusin")<0&&e.target!==E()||T.props.interactive&&e.relatedTarget&&y.contains(e.relatedTarget)||te(e)}function $(e){return!!Xm.isTouch&&p()!==e.type.indexOf("touch")>=0}function X(){q();var t=T.props,i=t.popperOptions,M=t.placement,n=t.offset,o=t.getReferenceClientRect,r=t.moveTransition,a=S()?Tw(y).arrow:null,l=o?{getBoundingClientRect:o,contextElement:o.contextElement||E()}:e,N={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var i=w().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?i.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?i.setAttribute("data-"+e,""):i.removeAttribute("data-"+e)})),t.attributes.popper={}}}},g=[{name:"offset",options:{offset:n}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!r}},N];S()&&a&&g.push({name:"arrow",options:{element:a,padding:3}}),g.push.apply(g,(null==i?void 0:i.modifiers)||[]),T.popperInstance=pm(l,y,Object.assign({},i,{placement:M,onFirstUpdate:s,modifiers:g}))}function q(){T.popperInstance&&(T.popperInstance.destroy(),T.popperInstance=null)}function K(){return Vm(y.querySelectorAll("[data-tippy-root]"))}function ee(e){T.clearDelayTimeouts(),e&&C("onTrigger",[T,e]),V();var t=Q(!0),M=x(),n=M[0],o=M[1];Xm.isTouch&&"hold"===n&&o&&(t=o),t?i=setTimeout((function(){T.show()}),t):T.show()}function te(e){if(T.clearDelayTimeouts(),C("onUntrigger",[T,e]),T.state.isVisible){if(!(T.props.trigger.indexOf("mouseenter")>=0&&T.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&g)){var t=Q(!1);t?M=setTimeout((function(){T.state.isVisible&&T.hide()}),t):n=requestAnimationFrame((function(){T.hide()}))}}else W()}}function xw(e,t){void 0===t&&(t={});var i=gw.plugins.concat(t.plugins||[]);"production"!==process.env.NODE_ENV&&(!function(e){var t=!e,i="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;lw(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),lw(i,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),jw(t,i)),document.addEventListener("touchstart",Km,Qm),window.addEventListener("blur",tw);var M=Object.assign({},t,{plugins:i}),n=Bm(e);if("production"!==process.env.NODE_ENV){var o=Rm(M.content),r=n.length>1;aw(o&&r,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var s=n.reduce((function(e,t){var i=t&&Lw(t,M);return i&&e.push(i),e}),[]);return Rm(e)?s[0]:s}xw.defaultProps=gw,xw.setDefaultProps=function(e){"production"!==process.env.NODE_ENV&&jw(e,[]),Object.keys(e).forEach((function(t){gw[t]=e[t]}))},xw.currentInput=Xm;var pw=Object.assign({},pE,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}}),Sw=function(e,t){var i;void 0===t&&(t={}),"production"!==process.env.NODE_ENV&&lw(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var M,n=e,o=[],r=[],s=t.overrides,a=[],l=!1;function N(){r=n.map((function(e){return Ym(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function g(){o=n.map((function(e){return e.reference}))}function u(e){n.forEach((function(t){e?t.enable():t.disable()}))}function D(e){return n.map((function(t){var i=t.setProps;return t.setProps=function(n){i(n),t.reference===M&&e.setProps(n)},function(){t.setProps=i}}))}function c(e,t){var i=r.indexOf(t);if(t!==M){M=t;var a=(s||[]).concat("content").reduce((function(e,t){return e[t]=n[i].props[t],e}),{});e.setProps(Object.assign({},a,{getReferenceClientRect:"function"==typeof a.getReferenceClientRect?a.getReferenceClientRect:function(){var e;return null==(e=o[i])?void 0:e.getBoundingClientRect()}}))}}u(!1),g(),N();var j={fn:function(){return{onDestroy:function(){u(!0)},onHidden:function(){M=null},onClickOutside:function(e){e.props.showOnCreate&&!l&&(l=!0,M=null)},onShow:function(e){e.props.showOnCreate&&!l&&(l=!0,c(e,o[0]))},onTrigger:function(e,t){c(e,t.currentTarget)}}}},I=xw(Pm(),Object.assign({},vm(t,["overrides"]),{plugins:[j].concat(t.plugins||[]),triggerTarget:r,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(i=t.popperOptions)?void 0:i.modifiers)||[],[pw])})})),z=I.show;I.show=function(e){if(z(),!M&&null==e)return c(I,o[0]);if(!M||null!=e){if("number"==typeof e)return o[e]&&c(I,o[e]);if(n.indexOf(e)>=0){var t=e.reference;return c(I,t)}return o.indexOf(e)>=0?c(I,e):void 0}},I.showNext=function(){var e=o[0];if(!M)return I.show(0);var t=o.indexOf(M);I.show(o[t+1]||e)},I.showPrevious=function(){var e=o[o.length-1];if(!M)return I.show(e);var t=o.indexOf(M),i=o[t-1]||e;I.show(i)};var d=I.setProps;return I.setProps=function(e){s=e.overrides||s,d(e)},I.setInstances=function(e){u(!0),a.forEach((function(e){return e()})),n=e,u(!1),g(),N(),a=D(I),I.setProps({triggerTarget:r})},a=D(I),I},Ew={clientX:0,clientY:0},mw=[];function ww(e){var t=e.clientX,i=e.clientY;Ew={clientX:t,clientY:i}}var Qw={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,i=Hm(e.props.triggerTarget||t),M=!1,n=!1,o=!0,r=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function a(){i.addEventListener("mousemove",g)}function l(){i.removeEventListener("mousemove",g)}function N(){M=!0,e.setProps({getReferenceClientRect:null}),M=!1}function g(i){var M=!i.target||t.contains(i.target),n=e.props.followCursor,o=i.clientX,r=i.clientY,s=t.getBoundingClientRect(),a=o-s.left,l=r-s.top;!M&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),i=o,M=r;"initial"===n&&(i=e.left+a,M=e.top+l);var s="horizontal"===n?e.top:M,N="vertical"===n?e.right:i,g="horizontal"===n?e.bottom:M,u="vertical"===n?e.left:i;return{width:N-u,height:g-s,top:s,right:N,bottom:g,left:u}}})}function u(){e.props.followCursor&&(mw.push({instance:e,doc:i}),function(e){e.addEventListener("mousemove",ww)}(i))}function D(){0===(mw=mw.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===i})).length&&function(e){e.removeEventListener("mousemove",ww)}(i)}return{onCreate:u,onDestroy:D,onBeforeUpdate:function(){r=e.props},onAfterUpdate:function(t,i){var o=i.followCursor;M||void 0!==o&&r.followCursor!==o&&(D(),o?(u(),!e.state.isMounted||n||s()||a()):(l(),N()))},onMount:function(){e.props.followCursor&&!n&&(o&&(g(Ew),o=!1),s()||a())},onTrigger:function(e,t){Gm(t)&&(Ew={clientX:t.clientX,clientY:t.clientY}),n="focus"===t.type},onHidden:function(){e.props.followCursor&&(N(),l(),o=!0)}}}};function kw(e){return!0===e||"true"===e||!1!==e&&"false"!==e&&(!!["initial","horizontal","vertical"].includes(String(e))&&e)}function Cw(e){if(Array.isArray(e))return e;if("number"==typeof e)return e;if("string"==typeof e){if(e.includes(",")){const t=e.split(",").map((e=>parseInt(e.trim(),10)));return t}const t=parseInt(e,10);if(!isNaN(t))return t}return 200}xw.setDefaultProps({render:hw});let bw=class extends Re{static get styles(){return[sE]}createRenderRoot(){return this}constructor(){super(),this.for=null,this.content="",this.size="small",this.duration=200,this.interactive=!1,this.placement="top",this.disabled=!1,this.distance=8,this.skidding=0,this.open=!1,this.trigger="mouseenter focus",this.allowHTML=!1,this.followCursor=!1,this.arrow="default",this.singleton=!1,this.delay=0,this.maxWidth="auto",this.zIndex=9999,this.hideOnClick=!0,this.inertia=!1,this.interactiveBorder=2}firstUpdated(){this.attachTooltip()}refresh(){this.attachTooltip()}attachTooltip(){if(this.destroyTooltips(),this.disabled)return;const e={content:this.content||this.getAttribute("data-tippy-content")||void 0,placement:this.placement,trigger:this.trigger,offset:[this.skidding,this.distance],theme:"lite",animation:"fade",interactive:this.interactive,arrow:Sm,duration:Cw(this.duration),allowHTML:this.allowHTML,delay:this.delay,maxWidth:this.maxWidth,zIndex:this.zIndex,hideOnClick:!1,inertia:this.inertia,interactiveBorder:this.interactiveBorder,appendTo:document.body,followCursor:kw(this.followCursor),plugins:kw(this.followCursor)?[Qw]:[],onShow:e=>{this.open=!0,this.dispatchEvent(new CustomEvent("nile-show",{detail:{instance:e,target:e.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!0,instance:e,target:e.reference}}))},onHide:e=>{this.open=!1,this.dispatchEvent(new CustomEvent("nile-hide",{detail:{instance:e,target:e.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!1,instance:e,target:e.reference}}))}};let t=[];if(this.for){const i=this.for.trim();try{t=Array.from(document.querySelectorAll(i))}catch{t=Array.from(document.querySelectorAll(`.${this.for}`))}if(t.length>0)return this.tooltipInstances=t.map((t=>{const i=xw(t,{...e,content:t.getAttribute("content")||this.content});return i.popper.querySelector(".tippy-box")?.classList.add(this.size),i})),this.singleton&&this.tooltipInstances.length>1&&(this.singletonInstance=Sw(this.tooltipInstances,{delay:[75,0],arrow:Sm,moveTransition:"transform 0.15s ease-out"})),void(this.open&&queueMicrotask((()=>{this.singletonInstance?.show(),this.tooltipInstances?.forEach((e=>e.show()))})));const M=document.getElementById(this.for);if(M)return this.singleInstance=xw(M,e),this.singleInstance.popper.querySelector(".tippy-box")?.classList.add(this.size),void(this.open&&queueMicrotask((()=>this.singleInstance?.show())))}const i=Array.from(this.querySelectorAll("*"));i.length>0&&(this.tooltipInstances=i.map((t=>{const i=t,M=i.getAttribute("content")||this.content,n=xw(i,{...e,content:M});return n.popper.querySelector(".tippy-box")?.classList.add(this.size),n})),this.singleton&&this.tooltipInstances.length>1&&(this.singletonInstance=Sw(this.tooltipInstances,{delay:[75,0],arrow:Sm,moveTransition:"transform 0.15s ease-out"})),this.open&&queueMicrotask((()=>{this.singletonInstance?.show(),this.tooltipInstances?.forEach((e=>e.show()))})))}destroyTooltips(){if(this.tooltipInstances?.forEach((e=>e.destroy())),this.singleInstance?.destroy(),this.singletonInstance?.destroy(),this.tooltipInstances=void 0,this.singleInstance=void 0,this.singletonInstance=void 0,this.targetEl&&this.id){const e=this.targetEl.getAttribute("aria-describedby")?.split(" ").filter((e=>e!==this.id)).join(" ").trim();e?this.targetEl.setAttribute("aria-describedby",e):this.targetEl.removeAttribute("aria-describedby")}}disconnectedCallback(){super.disconnectedCallback(),this.destroyTooltips()}updated(e){super.updated(e),["for","content","placement","distance","skidding","trigger","disabled","hoist","size","arrow","singleton"].some((t=>e.has(t)))&&this.attachTooltip(),e.has("open")&&(this.open?(this.singleInstance?.show(),this.singletonInstance?.show(),this.tooltipInstances?.forEach((e=>e.show()))):(this.singleInstance?.hide(),this.singletonInstance?.hide(),this.tooltipInstances?.forEach((e=>e.hide()))))}};e([De({type:String,attribute:"for"})],bw.prototype,"for",void 0),e([De({type:String,reflect:!0})],bw.prototype,"content",void 0),e([De({type:String,reflect:!0})],bw.prototype,"size",void 0),e([De({type:String,reflect:!0})],bw.prototype,"duration",void 0),e([De({type:Boolean,reflect:!0})],bw.prototype,"interactive",void 0),e([De({type:String})],bw.prototype,"placement",void 0),e([De({type:Boolean})],bw.prototype,"disabled",void 0),e([De({type:Number})],bw.prototype,"distance",void 0),e([De({type:Number})],bw.prototype,"skidding",void 0),e([De({type:Boolean,reflect:!0})],bw.prototype,"open",void 0),e([De({type:String})],bw.prototype,"trigger",void 0),e([De({type:Boolean,reflect:!0})],bw.prototype,"allowHTML",void 0),e([De({type:String,reflect:!0,attribute:!0})],bw.prototype,"followCursor",void 0),e([De({type:String,reflect:!0,attribute:!0})],bw.prototype,"arrow",void 0),e([De({type:Boolean,reflect:!0})],bw.prototype,"singleton",void 0),e([De({type:String,reflect:!0})],bw.prototype,"delay",void 0),e([De({type:String,reflect:!0})],bw.prototype,"maxWidth",void 0),e([De({type:Number})],bw.prototype,"zIndex",void 0),e([De({type:[Boolean,String],reflect:!0})],bw.prototype,"hideOnClick",void 0),e([De({type:Boolean,reflect:!0})],bw.prototype,"inertia",void 0),e([De({type:Number})],bw.prototype,"interactiveBorder",void 0),bw=e([Ne("nile-lite-tooltip")],bw);
|
|
15597
|
+
`;!function(){const e="nile-lite-tooltip-styles";if(document.getElementById(e))return;const t=document.createElement("style");t.id=e,t.textContent=sE.cssText,document.head.appendChild(t)}();var aE="top",lE="bottom",NE="right",gE="left",uE="auto",DE=[aE,lE,NE,gE],cE="start",jE="end",IE="viewport",zE="popper",dE=DE.reduce((function(e,t){return e.concat([t+"-"+cE,t+"-"+jE])}),[]),TE=[].concat(DE,[uE]).reduce((function(e,t){return e.concat([t,t+"-"+cE,t+"-"+jE])}),[]),hE=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function yE(e){return e?(e.nodeName||"").toLowerCase():null}function AE(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function OE(e){return e instanceof AE(e).Element||e instanceof Element}function LE(e){return e instanceof AE(e).HTMLElement||e instanceof HTMLElement}function xE(e){return"undefined"!=typeof ShadowRoot&&(e instanceof AE(e).ShadowRoot||e instanceof ShadowRoot)}var pE={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},M=t.attributes[e]||{},n=t.elements[e];LE(n)&&yE(n)&&(Object.assign(n.style,i),Object.keys(M).forEach((function(e){var t=M[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var M=t.elements[e],n=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});LE(M)&&yE(M)&&(Object.assign(M.style,o),Object.keys(n).forEach((function(e){M.removeAttribute(e)})))}))}},requires:["computeStyles"]};function SE(e){return e.split("-")[0]}var EE=Math.max,mE=Math.min,wE=Math.round;function QE(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function kE(){return!/^((?!chrome|android).)*safari/i.test(QE())}function CE(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var M=e.getBoundingClientRect(),n=1,o=1;t&&LE(e)&&(n=e.offsetWidth>0&&wE(M.width)/e.offsetWidth||1,o=e.offsetHeight>0&&wE(M.height)/e.offsetHeight||1);var r=(OE(e)?AE(e):window).visualViewport,s=!kE()&&i,a=(M.left+(s&&r?r.offsetLeft:0))/n,l=(M.top+(s&&r?r.offsetTop:0))/o,N=M.width/n,g=M.height/o;return{width:N,height:g,top:l,right:a+N,bottom:l+g,left:a,x:a,y:l}}function bE(e){var t=CE(e),i=e.offsetWidth,M=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-M)<=1&&(M=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:M}}function fE(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&xE(i)){var M=t;do{if(M&&e.isSameNode(M))return!0;M=M.parentNode||M.host}while(M)}return!1}function UE(e){return AE(e).getComputedStyle(e)}function vE(e){return["table","td","th"].indexOf(yE(e))>=0}function YE(e){return((OE(e)?e.ownerDocument:e.document)||window.document).documentElement}function ZE(e){return"html"===yE(e)?e:e.assignedSlot||e.parentNode||(xE(e)?e.host:null)||YE(e)}function VE(e){return LE(e)&&"fixed"!==UE(e).position?e.offsetParent:null}function WE(e){for(var t=AE(e),i=VE(e);i&&vE(i)&&"static"===UE(i).position;)i=VE(i);return i&&("html"===yE(i)||"body"===yE(i)&&"static"===UE(i).position)?t:i||function(e){var t=/firefox/i.test(QE());if(/Trident/i.test(QE())&&LE(e)&&"fixed"===UE(e).position)return null;var i=ZE(e);for(xE(i)&&(i=i.host);LE(i)&&["html","body"].indexOf(yE(i))<0;){var M=UE(i);if("none"!==M.transform||"none"!==M.perspective||"paint"===M.contain||-1!==["transform","perspective"].indexOf(M.willChange)||t&&"filter"===M.willChange||t&&M.filter&&"none"!==M.filter)return i;i=i.parentNode}return null}(e)||t}function PE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function RE(e,t,i){return EE(e,mE(t,i))}function GE(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function BE(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var _E={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,M=e.name,n=e.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,s=SE(i.placement),a=PE(s),l=[gE,NE].indexOf(s)>=0?"height":"width";if(o&&r){var N=function(e,t){return GE("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:BE(e,DE))}(n.padding,i),g=bE(o),u="y"===a?aE:gE,D="y"===a?lE:NE,c=i.rects.reference[l]+i.rects.reference[a]-r[a]-i.rects.popper[l],j=r[a]-i.rects.reference[a],I=WE(o),z=I?"y"===a?I.clientHeight||0:I.clientWidth||0:0,d=c/2-j/2,T=N[u],h=z-g[l]-N[D],y=z/2-g[l]/2+d,A=RE(T,y,h),O=a;i.modifiersData[M]=((t={})[O]=A,t.centerOffset=A-y,t)}},effect:function(e){var t=e.state,i=e.options.element,M=void 0===i?"[data-popper-arrow]":i;null!=M&&("string"!=typeof M||(M=t.elements.popper.querySelector(M)))&&fE(t.elements.popper,M)&&(t.elements.arrow=M)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function FE(e){return e.split("-")[1]}var HE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function JE(e){var t,i=e.popper,M=e.popperRect,n=e.placement,o=e.variation,r=e.offsets,s=e.position,a=e.gpuAcceleration,l=e.adaptive,N=e.roundOffsets,g=e.isFixed,u=r.x,D=void 0===u?0:u,c=r.y,j=void 0===c?0:c,I="function"==typeof N?N({x:D,y:j}):{x:D,y:j};D=I.x,j=I.y;var z=r.hasOwnProperty("x"),d=r.hasOwnProperty("y"),T=gE,h=aE,y=window;if(l){var A=WE(i),O="clientHeight",L="clientWidth";if(A===AE(i)&&"static"!==UE(A=YE(i)).position&&"absolute"===s&&(O="scrollHeight",L="scrollWidth"),n===aE||(n===gE||n===NE)&&o===jE)h=lE,j-=(g&&A===y&&y.visualViewport?y.visualViewport.height:A[O])-M.height,j*=a?1:-1;if(n===gE||(n===aE||n===lE)&&o===jE)T=NE,D-=(g&&A===y&&y.visualViewport?y.visualViewport.width:A[L])-M.width,D*=a?1:-1}var x,p=Object.assign({position:s},l&&HE),S=!0===N?function(e,t){var i=e.x,M=e.y,n=t.devicePixelRatio||1;return{x:wE(i*n)/n||0,y:wE(M*n)/n||0}}({x:D,y:j},AE(i)):{x:D,y:j};return D=S.x,j=S.y,a?Object.assign({},p,((x={})[h]=d?"0":"",x[T]=z?"0":"",x.transform=(y.devicePixelRatio||1)<=1?"translate("+D+"px, "+j+"px)":"translate3d("+D+"px, "+j+"px, 0)",x)):Object.assign({},p,((t={})[h]=d?j+"px":"",t[T]=z?D+"px":"",t.transform="",t))}var $E={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,M=i.gpuAcceleration,n=void 0===M||M,o=i.adaptive,r=void 0===o||o,s=i.roundOffsets,a=void 0===s||s,l={placement:SE(t.placement),variation:FE(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,JE(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,JE(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},XE={passive:!0};var qE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,M=e.options,n=M.scroll,o=void 0===n||n,r=M.resize,s=void 0===r||r,a=AE(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach((function(e){e.addEventListener("scroll",i.update,XE)})),s&&a.addEventListener("resize",i.update,XE),function(){o&&l.forEach((function(e){e.removeEventListener("scroll",i.update,XE)})),s&&a.removeEventListener("resize",i.update,XE)}},data:{}},KE={left:"right",right:"left",bottom:"top",top:"bottom"};function em(e){return e.replace(/left|right|bottom|top/g,(function(e){return KE[e]}))}var tm={start:"end",end:"start"};function im(e){return e.replace(/start|end/g,(function(e){return tm[e]}))}function Mm(e){var t=AE(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function nm(e){return CE(YE(e)).left+Mm(e).scrollLeft}function om(e){var t=UE(e),i=t.overflow,M=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+M)}function rm(e){return["html","body","#document"].indexOf(yE(e))>=0?e.ownerDocument.body:LE(e)&&om(e)?e:rm(ZE(e))}function sm(e,t){var i;void 0===t&&(t=[]);var M=rm(e),n=M===(null==(i=e.ownerDocument)?void 0:i.body),o=AE(M),r=n?[o].concat(o.visualViewport||[],om(M)?M:[]):M,s=t.concat(r);return n?s:s.concat(sm(ZE(r)))}function am(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lm(e,t,i){return t===IE?am(function(e,t){var i=AE(e),M=YE(e),n=i.visualViewport,o=M.clientWidth,r=M.clientHeight,s=0,a=0;if(n){o=n.width,r=n.height;var l=kE();(l||!l&&"fixed"===t)&&(s=n.offsetLeft,a=n.offsetTop)}return{width:o,height:r,x:s+nm(e),y:a}}(e,i)):OE(t)?function(e,t){var i=CE(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):am(function(e){var t,i=YE(e),M=Mm(e),n=null==(t=e.ownerDocument)?void 0:t.body,o=EE(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=EE(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-M.scrollLeft+nm(e),a=-M.scrollTop;return"rtl"===UE(n||i).direction&&(s+=EE(i.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:s,y:a}}(YE(e)))}function Nm(e,t,i,M){var n="clippingParents"===t?function(e){var t=sm(ZE(e)),i=["absolute","fixed"].indexOf(UE(e).position)>=0&&LE(e)?WE(e):e;return OE(i)?t.filter((function(e){return OE(e)&&fE(e,i)&&"body"!==yE(e)})):[]}(e):[].concat(t),o=[].concat(n,[i]),r=o[0],s=o.reduce((function(t,i){var n=lm(e,i,M);return t.top=EE(n.top,t.top),t.right=mE(n.right,t.right),t.bottom=mE(n.bottom,t.bottom),t.left=EE(n.left,t.left),t}),lm(e,r,M));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function gm(e){var t,i=e.reference,M=e.element,n=e.placement,o=n?SE(n):null,r=n?FE(n):null,s=i.x+i.width/2-M.width/2,a=i.y+i.height/2-M.height/2;switch(o){case aE:t={x:s,y:i.y-M.height};break;case lE:t={x:s,y:i.y+i.height};break;case NE:t={x:i.x+i.width,y:a};break;case gE:t={x:i.x-M.width,y:a};break;default:t={x:i.x,y:i.y}}var l=o?PE(o):null;if(null!=l){var N="y"===l?"height":"width";switch(r){case cE:t[l]=t[l]-(i[N]/2-M[N]/2);break;case jE:t[l]=t[l]+(i[N]/2-M[N]/2)}}return t}function um(e,t){void 0===t&&(t={});var i=t,M=i.placement,n=void 0===M?e.placement:M,o=i.strategy,r=void 0===o?e.strategy:o,s=i.boundary,a=void 0===s?"clippingParents":s,l=i.rootBoundary,N=void 0===l?IE:l,g=i.elementContext,u=void 0===g?zE:g,D=i.altBoundary,c=void 0!==D&&D,j=i.padding,I=void 0===j?0:j,z=GE("number"!=typeof I?I:BE(I,DE)),d=u===zE?"reference":zE,T=e.rects.popper,h=e.elements[c?d:u],y=Nm(OE(h)?h:h.contextElement||YE(e.elements.popper),a,N,r),A=CE(e.elements.reference),O=gm({reference:A,element:T,strategy:"absolute",placement:n}),L=am(Object.assign({},T,O)),x=u===zE?L:A,p={top:y.top-x.top+z.top,bottom:x.bottom-y.bottom+z.bottom,left:y.left-x.left+z.left,right:x.right-y.right+z.right},S=e.modifiersData.offset;if(u===zE&&S){var E=S[n];Object.keys(p).forEach((function(e){var t=[NE,lE].indexOf(e)>=0?1:-1,i=[aE,lE].indexOf(e)>=0?"y":"x";p[e]+=E[i]*t}))}return p}function Dm(e,t){void 0===t&&(t={});var i=t,M=i.placement,n=i.boundary,o=i.rootBoundary,r=i.padding,s=i.flipVariations,a=i.allowedAutoPlacements,l=void 0===a?TE:a,N=FE(M),g=N?s?dE:dE.filter((function(e){return FE(e)===N})):DE,u=g.filter((function(e){return l.indexOf(e)>=0}));0===u.length&&(u=g);var D=u.reduce((function(t,i){return t[i]=um(e,{placement:i,boundary:n,rootBoundary:o,padding:r})[SE(i)],t}),{});return Object.keys(D).sort((function(e,t){return D[e]-D[t]}))}var cm={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,M=e.name;if(!t.modifiersData[M]._skip){for(var n=i.mainAxis,o=void 0===n||n,r=i.altAxis,s=void 0===r||r,a=i.fallbackPlacements,l=i.padding,N=i.boundary,g=i.rootBoundary,u=i.altBoundary,D=i.flipVariations,c=void 0===D||D,j=i.allowedAutoPlacements,I=t.options.placement,z=SE(I),d=a||(z===I||!c?[em(I)]:function(e){if(SE(e)===uE)return[];var t=em(e);return[im(e),t,im(t)]}(I)),T=[I].concat(d).reduce((function(e,i){return e.concat(SE(i)===uE?Dm(t,{placement:i,boundary:N,rootBoundary:g,padding:l,flipVariations:c,allowedAutoPlacements:j}):i)}),[]),h=t.rects.reference,y=t.rects.popper,A=new Map,O=!0,L=T[0],x=0;x<T.length;x++){var p=T[x],S=SE(p),E=FE(p)===cE,m=[aE,lE].indexOf(S)>=0,w=m?"width":"height",Q=um(t,{placement:p,boundary:N,rootBoundary:g,altBoundary:u,padding:l}),k=m?E?NE:gE:E?lE:aE;h[w]>y[w]&&(k=em(k));var C=em(k),b=[];if(o&&b.push(Q[S]<=0),s&&b.push(Q[k]<=0,Q[C]<=0),b.every((function(e){return e}))){L=p,O=!1;break}A.set(p,b)}if(O)for(var f=function(e){var t=T.find((function(t){var i=A.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},U=c?3:1;U>0;U--){if("break"===f(U))break}t.placement!==L&&(t.modifiersData[M]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function jm(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Im(e){return[aE,NE,lE,gE].some((function(t){return e[t]>=0}))}var zm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,M=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,r=um(t,{elementContext:"reference"}),s=um(t,{altBoundary:!0}),a=jm(r,M),l=jm(s,n,o),N=Im(a),g=Im(l);t.modifiersData[i]={referenceClippingOffsets:a,popperEscapeOffsets:l,isReferenceHidden:N,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":N,"data-popper-escaped":g})}};var dm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,M=e.name,n=i.offset,o=void 0===n?[0,0]:n,r=TE.reduce((function(e,i){return e[i]=function(e,t,i){var M=SE(e),n=[gE,aE].indexOf(M)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=o[0],s=o[1];return r=r||0,s=(s||0)*n,[gE,NE].indexOf(M)>=0?{x:s,y:r}:{x:r,y:s}}(i,t.rects,o),e}),{}),s=r[t.placement],a=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=l),t.modifiersData[M]=r}};var Tm={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=gm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var hm={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,M=e.name,n=i.mainAxis,o=void 0===n||n,r=i.altAxis,s=void 0!==r&&r,a=i.boundary,l=i.rootBoundary,N=i.altBoundary,g=i.padding,u=i.tether,D=void 0===u||u,c=i.tetherOffset,j=void 0===c?0:c,I=um(t,{boundary:a,rootBoundary:l,padding:g,altBoundary:N}),z=SE(t.placement),d=FE(t.placement),T=!d,h=PE(z),y="x"===h?"y":"x",A=t.modifiersData.popperOffsets,O=t.rects.reference,L=t.rects.popper,x="function"==typeof j?j(Object.assign({},t.rects,{placement:t.placement})):j,p="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(A){if(o){var m,w="y"===h?aE:gE,Q="y"===h?lE:NE,k="y"===h?"height":"width",C=A[h],b=C+I[w],f=C-I[Q],U=D?-L[k]/2:0,v=d===cE?O[k]:L[k],Y=d===cE?-L[k]:-O[k],Z=t.elements.arrow,V=D&&Z?bE(Z):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},P=W[w],R=W[Q],G=RE(0,O[k],V[k]),B=T?O[k]/2-U-G-P-p.mainAxis:v-G-P-p.mainAxis,_=T?-O[k]/2+U+G+R+p.mainAxis:Y+G+R+p.mainAxis,F=t.elements.arrow&&WE(t.elements.arrow),H=F?"y"===h?F.clientTop||0:F.clientLeft||0:0,J=null!=(m=null==S?void 0:S[h])?m:0,$=C+_-J,X=RE(D?mE(b,C+B-J-H):b,C,D?EE(f,$):f);A[h]=X,E[h]=X-C}if(s){var q,K="x"===h?aE:gE,ee="x"===h?lE:NE,te=A[y],ie="y"===y?"height":"width",Me=te+I[K],ne=te-I[ee],oe=-1!==[aE,gE].indexOf(z),re=null!=(q=null==S?void 0:S[y])?q:0,se=oe?Me:te-O[ie]-L[ie]-re+p.altAxis,ae=oe?te+O[ie]+L[ie]-re-p.altAxis:ne,le=D&&oe?function(e,t,i){var M=RE(e,t,i);return M>i?i:M}(se,te,ae):RE(D?se:Me,te,D?ae:ne);A[y]=le,E[y]=le-te}t.modifiersData[M]=E}},requiresIfExists:["offset"]};function ym(e,t,i){void 0===i&&(i=!1);var M,n,o=LE(t),r=LE(t)&&function(e){var t=e.getBoundingClientRect(),i=wE(t.width)/e.offsetWidth||1,M=wE(t.height)/e.offsetHeight||1;return 1!==i||1!==M}(t),s=YE(t),a=CE(e,r,i),l={scrollLeft:0,scrollTop:0},N={x:0,y:0};return(o||!o&&!i)&&(("body"!==yE(t)||om(s))&&(l=(M=t)!==AE(M)&&LE(M)?{scrollLeft:(n=M).scrollLeft,scrollTop:n.scrollTop}:Mm(M)),LE(t)?((N=CE(t,!0)).x+=t.clientLeft,N.y+=t.clientTop):s&&(N.x=nm(s))),{x:a.left+l.scrollLeft-N.x,y:a.top+l.scrollTop-N.y,width:a.width,height:a.height}}function Am(e){var t=new Map,i=new Set,M=[];function n(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var M=t.get(e);M&&n(M)}})),M.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||n(e)})),M}var Om={placement:"bottom",modifiers:[],strategy:"absolute"};function Lm(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function xm(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,M=void 0===i?[]:i,n=t.defaultOptions,o=void 0===n?Om:n;return function(e,t,i){void 0===i&&(i=o);var n,r,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Om,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,N={state:s,setOptions:function(i){var n="function"==typeof i?i(s.options):i;g(),s.options=Object.assign({},o,s.options,n),s.scrollParents={reference:OE(e)?sm(e):e.contextElement?sm(e.contextElement):[],popper:sm(t)};var r=function(e){var t=Am(e);return hE.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}(function(e){var t=e.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(M,s.options.modifiers)));return s.orderedModifiers=r.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,M=void 0===i?{}:i,n=e.effect;if("function"==typeof n){var o=n({state:s,name:t,instance:N,options:M}),r=function(){};a.push(o||r)}})),N.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,i=e.popper;if(Lm(t,i)){s.rects={reference:ym(t,WE(i),"fixed"===s.options.strategy),popper:bE(i)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var M=0;M<s.orderedModifiers.length;M++)if(!0!==s.reset){var n=s.orderedModifiers[M],o=n.fn,r=n.options,a=void 0===r?{}:r,g=n.name;"function"==typeof o&&(s=o({state:s,options:a,name:g,instance:N})||s)}else s.reset=!1,M=-1}}},update:(n=function(){return new Promise((function(e){N.forceUpdate(),e(s)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(n())}))}))),r}),destroy:function(){g(),l=!0}};if(!Lm(e,t))return N;function g(){a.forEach((function(e){return e()})),a=[]}return N.setOptions(i).then((function(e){!l&&i.onFirstUpdate&&i.onFirstUpdate(e)})),N}}var pm=xm({defaultModifiers:[qE,Tm,$E,pE,dm,cm,hm,_E,zm]}),Sm='<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>',Em="tippy-content",mm="tippy-arrow",wm="tippy-svg-arrow",Qm={passive:!0,capture:!0},km=function(){return document.body};function Cm(e,t,i){if(Array.isArray(e)){var M=e[t];return null==M?Array.isArray(i)?i[t]:i:M}return e}function bm(e,t){var i={}.toString.call(e);return 0===i.indexOf("[object")&&i.indexOf(t+"]")>-1}function fm(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Um(e,t){return 0===t?e:function(M){clearTimeout(i),i=setTimeout((function(){e(M)}),t)};var i}function vm(e,t){var i=Object.assign({},e);return t.forEach((function(e){delete i[e]})),i}function Ym(e){return[].concat(e)}function Zm(e,t){-1===e.indexOf(t)&&e.push(t)}function Vm(e){return[].slice.call(e)}function Wm(e){return Object.keys(e).reduce((function(t,i){return void 0!==e[i]&&(t[i]=e[i]),t}),{})}function Pm(){return document.createElement("div")}function Rm(e){return["Element","Fragment"].some((function(t){return bm(e,t)}))}function Gm(e){return bm(e,"MouseEvent")}function Bm(e){return Rm(e)?[e]:function(e){return bm(e,"NodeList")}(e)?Vm(e):Array.isArray(e)?e:Vm(document.querySelectorAll(e))}function _m(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Fm(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Hm(e){var t,i=Ym(e)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}function Jm(e,t,i){var M=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[M](t,i)}))}function $m(e,t){for(var i=t;i;){var M;if(e.contains(i))return!0;i=null==i.getRootNode||null==(M=i.getRootNode())?void 0:M.host}return!1}var Xm={isTouch:!1},qm=0;function Km(){Xm.isTouch||(Xm.isTouch=!0,window.performance&&document.addEventListener("mousemove",ew))}function ew(){var e=performance.now();e-qm<20&&(Xm.isTouch=!1,document.removeEventListener("mousemove",ew)),qm=e}function tw(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var i=t._tippy;t.blur&&!i.state.isVisible&&t.blur()}}var iw,Mw=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function nw(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function ow(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function rw(e){return ow("\n %ctippy.js\n\n %c"+ow(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function sw(e){return[rw(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function aw(e,t){var i;e&&!iw.has(t)&&(iw.add(t),(i=console).warn.apply(i,sw(t)))}function lw(e,t){var i;e&&!iw.has(t)&&(iw.add(t),(i=console).error.apply(i,sw(t)))}"production"!==process.env.NODE_ENV&&(iw=new Set);var Nw={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},gw=Object.assign({appendTo:km,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},Nw,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),uw=Object.keys(gw);function Dw(e){var t=(e.plugins||[]).reduce((function(t,i){var M,n=i.name,o=i.defaultValue;n&&(t[n]=void 0!==e[n]?e[n]:null!=(M=gw[n])?M:o);return t}),{});return Object.assign({},e,t)}function cw(e,t){var i=Object.assign({},t,{content:fm(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Dw(Object.assign({},gw,{plugins:t}))):uw).reduce((function(t,i){var M=(e.getAttribute("data-tippy-"+i)||"").trim();if(!M)return t;if("content"===i)t[i]=M;else try{t[i]=JSON.parse(M)}catch(e){t[i]=M}return t}),{})}(e,t.plugins));return i.aria=Object.assign({},gw.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?t.interactive:i.aria.expanded,content:"auto"===i.aria.content?t.interactive?null:"describedby":i.aria.content},i}function jw(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var i,M,n=vm(gw,Object.keys(Nw)),o=(i=n,M=e,!{}.hasOwnProperty.call(i,M));o&&(o=0===t.filter((function(t){return t.name===e})).length),aw(o,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}function Iw(e,t){e.innerHTML=t}function zw(e){var t=Pm();return!0===e?t.className=mm:(t.className=wm,Rm(e)?t.appendChild(e):Iw(t,e)),t}function dw(e,t){Rm(t.content)?(Iw(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Iw(e,t.content):e.textContent=t.content)}function Tw(e){var t=e.firstElementChild,i=Vm(t.children);return{box:t,content:i.find((function(e){return e.classList.contains(Em)})),arrow:i.find((function(e){return e.classList.contains(mm)||e.classList.contains(wm)})),backdrop:i.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function hw(e){var t=Pm(),i=Pm();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var M=Pm();function n(i,M){var n=Tw(t),o=n.box,r=n.content,s=n.arrow;M.theme?o.setAttribute("data-theme",M.theme):o.removeAttribute("data-theme"),"string"==typeof M.animation?o.setAttribute("data-animation",M.animation):o.removeAttribute("data-animation"),M.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof M.maxWidth?M.maxWidth+"px":M.maxWidth,M.role?o.setAttribute("role",M.role):o.removeAttribute("role"),i.content===M.content&&i.allowHTML===M.allowHTML||dw(r,e.props),M.arrow?s?i.arrow!==M.arrow&&(o.removeChild(s),o.appendChild(zw(M.arrow))):o.appendChild(zw(M.arrow)):s&&o.removeChild(s)}return M.className=Em,M.setAttribute("data-state","hidden"),dw(M,e.props),t.appendChild(i),i.appendChild(M),n(e.props,e.props),{popper:t,onUpdate:n}}hw.$$tippy=!0;var yw=1,Aw=[],Ow=[];function Lw(e,t){var i,M,n,o,r,s,a,l,N=cw(e,Object.assign({},gw,Dw(Wm(t)))),g=!1,u=!1,D=!1,c=!1,j=[],I=Um(F,N.interactiveDebounce),z=yw++,d=(l=N.plugins).filter((function(e,t){return l.indexOf(e)===t})),T={id:z,reference:e,popper:Pm(),popperInstance:null,props:N,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:d,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(M),cancelAnimationFrame(n)},setProps:function(t){"production"!==process.env.NODE_ENV&&aw(T.state.isDestroyed,nw("setProps"));if(T.state.isDestroyed)return;C("onBeforeUpdate",[T,t]),B();var i=T.props,M=cw(e,Object.assign({},i,Wm(t),{ignoreAttributes:!0}));T.props=M,G(),i.interactiveDebounce!==M.interactiveDebounce&&(U(),I=Um(F,M.interactiveDebounce));i.triggerTarget&&!M.triggerTarget?Ym(i.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):M.triggerTarget&&e.removeAttribute("aria-expanded");f(),k(),A&&A(i,M);T.popperInstance&&(X(),K().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));C("onAfterUpdate",[T,t])},setContent:function(e){T.setProps({content:e})},show:function(){"production"!==process.env.NODE_ENV&&aw(T.state.isDestroyed,nw("show"));var e=T.state.isVisible,t=T.state.isDestroyed,i=!T.state.isEnabled,M=Xm.isTouch&&!T.props.touch,n=Cm(T.props.duration,0,gw.duration);if(e||t||i||M)return;if(E().hasAttribute("disabled"))return;if(C("onShow",[T],!1),!1===T.props.onShow(T))return;T.state.isVisible=!0,S()&&(y.style.visibility="visible");k(),V(),T.state.isMounted||(y.style.transition="none");if(S()){var o=w();_m([o.box,o.content],0)}s=function(){var e;if(T.state.isVisible&&!c){if(c=!0,y.offsetHeight,y.style.transition=T.props.moveTransition,S()&&T.props.animation){var t=w(),i=t.box,M=t.content;_m([i,M],n),Fm([i,M],"visible")}b(),f(),Zm(Ow,T),null==(e=T.popperInstance)||e.forceUpdate(),C("onMount",[T]),T.props.animation&&S()&&function(e,t){P(e,t)}(n,(function(){T.state.isShown=!0,C("onShown",[T])}))}},function(){var e,t=T.props.appendTo,i=E();e=T.props.interactive&&t===km||"parent"===t?i.parentNode:fm(t,[i]);e.contains(y)||e.appendChild(y);T.state.isMounted=!0,X(),"production"!==process.env.NODE_ENV&&aw(T.props.interactive&&t===gw.appendTo&&i.nextElementSibling!==y,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){"production"!==process.env.NODE_ENV&&aw(T.state.isDestroyed,nw("hide"));var e=!T.state.isVisible,t=T.state.isDestroyed,i=!T.state.isEnabled,M=Cm(T.props.duration,1,gw.duration);if(e||t||i)return;if(C("onHide",[T],!1),!1===T.props.onHide(T))return;T.state.isVisible=!1,T.state.isShown=!1,c=!1,g=!1,S()&&(y.style.visibility="hidden");if(U(),W(),k(!0),S()){var n=w(),o=n.box,r=n.content;T.props.animation&&(_m([o,r],M),Fm([o,r],"hidden"))}b(),f(),T.props.animation?S()&&function(e,t){P(e,(function(){!T.state.isVisible&&y.parentNode&&y.parentNode.contains(y)&&t()}))}(M,T.unmount):T.unmount()},hideWithInteractivity:function(e){"production"!==process.env.NODE_ENV&&aw(T.state.isDestroyed,nw("hideWithInteractivity"));m().addEventListener("mousemove",I),Zm(Aw,I),I(e)},enable:function(){T.state.isEnabled=!0},disable:function(){T.hide(),T.state.isEnabled=!1},unmount:function(){"production"!==process.env.NODE_ENV&&aw(T.state.isDestroyed,nw("unmount"));T.state.isVisible&&T.hide();if(!T.state.isMounted)return;q(),K().forEach((function(e){e._tippy.unmount()})),y.parentNode&&y.parentNode.removeChild(y);Ow=Ow.filter((function(e){return e!==T})),T.state.isMounted=!1,C("onHidden",[T])},destroy:function(){"production"!==process.env.NODE_ENV&&aw(T.state.isDestroyed,nw("destroy"));if(T.state.isDestroyed)return;T.clearDelayTimeouts(),T.unmount(),B(),delete e._tippy,T.state.isDestroyed=!0,C("onDestroy",[T])}};if(!N.render)return"production"!==process.env.NODE_ENV&&lw(!0,"render() function has not been supplied."),T;var h=N.render(T),y=h.popper,A=h.onUpdate;y.setAttribute("data-tippy-root",""),y.id="tippy-"+T.id,T.popper=y,e._tippy=T,y._tippy=T;var O=d.map((function(e){return e.fn(T)})),L=e.hasAttribute("aria-expanded");return G(),f(),k(),C("onCreate",[T]),N.showOnCreate&&ee(),y.addEventListener("mouseenter",(function(){T.props.interactive&&T.state.isVisible&&T.clearDelayTimeouts()})),y.addEventListener("mouseleave",(function(){T.props.interactive&&T.props.trigger.indexOf("mouseenter")>=0&&m().addEventListener("mousemove",I)})),T;function x(){var e=T.props.touch;return Array.isArray(e)?e:[e,0]}function p(){return"hold"===x()[0]}function S(){var e;return!(null==(e=T.props.render)||!e.$$tippy)}function E(){return a||e}function m(){var e=E().parentNode;return e?Hm(e):document}function w(){return Tw(y)}function Q(e){return T.state.isMounted&&!T.state.isVisible||Xm.isTouch||o&&"focus"===o.type?0:Cm(T.props.delay,e?0:1,gw.delay)}function k(e){void 0===e&&(e=!1),y.style.pointerEvents=T.props.interactive&&!e?"":"none",y.style.zIndex=""+T.props.zIndex}function C(e,t,i){var M;(void 0===i&&(i=!0),O.forEach((function(i){i[e]&&i[e].apply(i,t)})),i)&&(M=T.props)[e].apply(M,t)}function b(){var t=T.props.aria;if(t.content){var i="aria-"+t.content,M=y.id;Ym(T.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(i);if(T.state.isVisible)e.setAttribute(i,t?t+" "+M:M);else{var n=t&&t.replace(M,"").trim();n?e.setAttribute(i,n):e.removeAttribute(i)}}))}}function f(){!L&&T.props.aria.expanded&&Ym(T.props.triggerTarget||e).forEach((function(e){T.props.interactive?e.setAttribute("aria-expanded",T.state.isVisible&&e===E()?"true":"false"):e.removeAttribute("aria-expanded")}))}function U(){m().removeEventListener("mousemove",I),Aw=Aw.filter((function(e){return e!==I}))}function v(t){if(!Xm.isTouch||!D&&"mousedown"!==t.type){var i=t.composedPath&&t.composedPath()[0]||t.target;if(!T.props.interactive||!$m(y,i)){if(Ym(T.props.triggerTarget||e).some((function(e){return $m(e,i)}))){if(Xm.isTouch)return;if(T.state.isVisible&&T.props.trigger.indexOf("click")>=0)return}else C("onClickOutside",[T,t]);!0===T.props.hideOnClick&&(T.clearDelayTimeouts(),T.hide(),u=!0,setTimeout((function(){u=!1})),T.state.isMounted||W())}}}function Y(){D=!0}function Z(){D=!1}function V(){var e=m();e.addEventListener("mousedown",v,!0),e.addEventListener("touchend",v,Qm),e.addEventListener("touchstart",Z,Qm),e.addEventListener("touchmove",Y,Qm)}function W(){var e=m();e.removeEventListener("mousedown",v,!0),e.removeEventListener("touchend",v,Qm),e.removeEventListener("touchstart",Z,Qm),e.removeEventListener("touchmove",Y,Qm)}function P(e,t){var i=w().box;function M(e){e.target===i&&(Jm(i,"remove",M),t())}if(0===e)return t();Jm(i,"remove",r),Jm(i,"add",M),r=M}function R(t,i,M){void 0===M&&(M=!1),Ym(T.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,i,M),j.push({node:e,eventType:t,handler:i,options:M})}))}function G(){var e;p()&&(R("touchstart",_,{passive:!0}),R("touchend",H,{passive:!0})),(e=T.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(R(e,_),e){case"mouseenter":R("mouseleave",H);break;case"focus":R(Mw?"focusout":"blur",J);break;case"focusin":R("focusout",J)}}))}function B(){j.forEach((function(e){var t=e.node,i=e.eventType,M=e.handler,n=e.options;t.removeEventListener(i,M,n)})),j=[]}function _(e){var t,i=!1;if(T.state.isEnabled&&!$(e)&&!u){var M="focus"===(null==(t=o)?void 0:t.type);o=e,a=e.currentTarget,f(),!T.state.isVisible&&Gm(e)&&Aw.forEach((function(t){return t(e)})),"click"===e.type&&(T.props.trigger.indexOf("mouseenter")<0||g)&&!1!==T.props.hideOnClick&&T.state.isVisible?i=!0:ee(e),"click"===e.type&&(g=!i),i&&!M&&te(e)}}function F(e){var t=e.target,i=E().contains(t)||y.contains(t);if("mousemove"!==e.type||!i){var M=K().concat(y).map((function(e){var t,i=null==(t=e._tippy.popperInstance)?void 0:t.state;return i?{popperRect:e.getBoundingClientRect(),popperState:i,props:N}:null})).filter(Boolean);(function(e,t){var i=t.clientX,M=t.clientY;return e.every((function(e){var t=e.popperRect,n=e.popperState,o=e.props.interactiveBorder,r=n.placement.split("-")[0],s=n.modifiersData.offset;if(!s)return!0;var a="bottom"===r?s.top.y:0,l="top"===r?s.bottom.y:0,N="right"===r?s.left.x:0,g="left"===r?s.right.x:0,u=t.top-M+a>o,D=M-t.bottom-l>o,c=t.left-i+N>o,j=i-t.right-g>o;return u||D||c||j}))})(M,e)&&(U(),te(e))}}function H(e){$(e)||T.props.trigger.indexOf("click")>=0&&g||(T.props.interactive?T.hideWithInteractivity(e):te(e))}function J(e){T.props.trigger.indexOf("focusin")<0&&e.target!==E()||T.props.interactive&&e.relatedTarget&&y.contains(e.relatedTarget)||te(e)}function $(e){return!!Xm.isTouch&&p()!==e.type.indexOf("touch")>=0}function X(){q();var t=T.props,i=t.popperOptions,M=t.placement,n=t.offset,o=t.getReferenceClientRect,r=t.moveTransition,a=S()?Tw(y).arrow:null,l=o?{getBoundingClientRect:o,contextElement:o.contextElement||E()}:e,N={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var i=w().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?i.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?i.setAttribute("data-"+e,""):i.removeAttribute("data-"+e)})),t.attributes.popper={}}}},g=[{name:"offset",options:{offset:n}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!r}},N];S()&&a&&g.push({name:"arrow",options:{element:a,padding:3}}),g.push.apply(g,(null==i?void 0:i.modifiers)||[]),T.popperInstance=pm(l,y,Object.assign({},i,{placement:M,onFirstUpdate:s,modifiers:g}))}function q(){T.popperInstance&&(T.popperInstance.destroy(),T.popperInstance=null)}function K(){return Vm(y.querySelectorAll("[data-tippy-root]"))}function ee(e){T.clearDelayTimeouts(),e&&C("onTrigger",[T,e]),V();var t=Q(!0),M=x(),n=M[0],o=M[1];Xm.isTouch&&"hold"===n&&o&&(t=o),t?i=setTimeout((function(){T.show()}),t):T.show()}function te(e){if(T.clearDelayTimeouts(),C("onUntrigger",[T,e]),T.state.isVisible){if(!(T.props.trigger.indexOf("mouseenter")>=0&&T.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&g)){var t=Q(!1);t?M=setTimeout((function(){T.state.isVisible&&T.hide()}),t):n=requestAnimationFrame((function(){T.hide()}))}}else W()}}function xw(e,t){void 0===t&&(t={});var i=gw.plugins.concat(t.plugins||[]);"production"!==process.env.NODE_ENV&&(!function(e){var t=!e,i="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;lw(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),lw(i,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),jw(t,i)),document.addEventListener("touchstart",Km,Qm),window.addEventListener("blur",tw);var M=Object.assign({},t,{plugins:i}),n=Bm(e);if("production"!==process.env.NODE_ENV){var o=Rm(M.content),r=n.length>1;aw(o&&r,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var s=n.reduce((function(e,t){var i=t&&Lw(t,M);return i&&e.push(i),e}),[]);return Rm(e)?s[0]:s}xw.defaultProps=gw,xw.setDefaultProps=function(e){"production"!==process.env.NODE_ENV&&jw(e,[]),Object.keys(e).forEach((function(t){gw[t]=e[t]}))},xw.currentInput=Xm;var pw=Object.assign({},pE,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}}),Sw=function(e,t){var i;void 0===t&&(t={}),"production"!==process.env.NODE_ENV&&lw(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var M,n=e,o=[],r=[],s=t.overrides,a=[],l=!1;function N(){r=n.map((function(e){return Ym(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function g(){o=n.map((function(e){return e.reference}))}function u(e){n.forEach((function(t){e?t.enable():t.disable()}))}function D(e){return n.map((function(t){var i=t.setProps;return t.setProps=function(n){i(n),t.reference===M&&e.setProps(n)},function(){t.setProps=i}}))}function c(e,t){var i=r.indexOf(t);if(t!==M){M=t;var a=(s||[]).concat("content").reduce((function(e,t){return e[t]=n[i].props[t],e}),{});e.setProps(Object.assign({},a,{getReferenceClientRect:"function"==typeof a.getReferenceClientRect?a.getReferenceClientRect:function(){var e;return null==(e=o[i])?void 0:e.getBoundingClientRect()}}))}}u(!1),g(),N();var j={fn:function(){return{onDestroy:function(){u(!0)},onHidden:function(){M=null},onClickOutside:function(e){e.props.showOnCreate&&!l&&(l=!0,M=null)},onShow:function(e){e.props.showOnCreate&&!l&&(l=!0,c(e,o[0]))},onTrigger:function(e,t){c(e,t.currentTarget)}}}},I=xw(Pm(),Object.assign({},vm(t,["overrides"]),{plugins:[j].concat(t.plugins||[]),triggerTarget:r,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(i=t.popperOptions)?void 0:i.modifiers)||[],[pw])})})),z=I.show;I.show=function(e){if(z(),!M&&null==e)return c(I,o[0]);if(!M||null!=e){if("number"==typeof e)return o[e]&&c(I,o[e]);if(n.indexOf(e)>=0){var t=e.reference;return c(I,t)}return o.indexOf(e)>=0?c(I,e):void 0}},I.showNext=function(){var e=o[0];if(!M)return I.show(0);var t=o.indexOf(M);I.show(o[t+1]||e)},I.showPrevious=function(){var e=o[o.length-1];if(!M)return I.show(e);var t=o.indexOf(M),i=o[t-1]||e;I.show(i)};var d=I.setProps;return I.setProps=function(e){s=e.overrides||s,d(e)},I.setInstances=function(e){u(!0),a.forEach((function(e){return e()})),n=e,u(!1),g(),N(),a=D(I),I.setProps({triggerTarget:r})},a=D(I),I},Ew={clientX:0,clientY:0},mw=[];function ww(e){var t=e.clientX,i=e.clientY;Ew={clientX:t,clientY:i}}var Qw={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,i=Hm(e.props.triggerTarget||t),M=!1,n=!1,o=!0,r=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function a(){i.addEventListener("mousemove",g)}function l(){i.removeEventListener("mousemove",g)}function N(){M=!0,e.setProps({getReferenceClientRect:null}),M=!1}function g(i){var M=!i.target||t.contains(i.target),n=e.props.followCursor,o=i.clientX,r=i.clientY,s=t.getBoundingClientRect(),a=o-s.left,l=r-s.top;!M&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),i=o,M=r;"initial"===n&&(i=e.left+a,M=e.top+l);var s="horizontal"===n?e.top:M,N="vertical"===n?e.right:i,g="horizontal"===n?e.bottom:M,u="vertical"===n?e.left:i;return{width:N-u,height:g-s,top:s,right:N,bottom:g,left:u}}})}function u(){e.props.followCursor&&(mw.push({instance:e,doc:i}),function(e){e.addEventListener("mousemove",ww)}(i))}function D(){0===(mw=mw.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===i})).length&&function(e){e.removeEventListener("mousemove",ww)}(i)}return{onCreate:u,onDestroy:D,onBeforeUpdate:function(){r=e.props},onAfterUpdate:function(t,i){var o=i.followCursor;M||void 0!==o&&r.followCursor!==o&&(D(),o?(u(),!e.state.isMounted||n||s()||a()):(l(),N()))},onMount:function(){e.props.followCursor&&!n&&(o&&(g(Ew),o=!1),s()||a())},onTrigger:function(e,t){Gm(t)&&(Ew={clientX:t.clientX,clientY:t.clientY}),n="focus"===t.type},onHidden:function(){e.props.followCursor&&(N(),l(),o=!0)}}}};function kw(e){return!0===e||"true"===e||!1!==e&&"false"!==e&&(!!["initial","horizontal","vertical"].includes(String(e))&&e)}function Cw(e){if(Array.isArray(e))return e;if("number"==typeof e)return e;if("string"==typeof e){if(e.includes(",")){const t=e.split(",").map((e=>parseInt(e.trim(),10)));return t}const t=parseInt(e,10);if(!isNaN(t))return t}return 200}xw.setDefaultProps({render:hw});let bw=class extends Re{static get styles(){return[sE]}createRenderRoot(){return this}constructor(){super(),this.for=null,this.content="",this.size="small",this.duration=200,this.interactive=!1,this.placement="top",this.disabled=!1,this.distance=8,this.skidding=0,this.open=!1,this.trigger="mouseenter focus",this.allowHTML=!1,this.followCursor=!1,this.arrow="default",this.singleton=!1,this.delay=0,this.maxWidth="auto",this.zIndex=9999,this.hideOnClick=!0,this.inertia=!1,this.interactiveBorder=2}firstUpdated(){this.attachTooltip()}refresh(){this.attachTooltip()}attachTooltip(){if(this.destroyTooltips(),this.disabled)return;const e={content:this.content||this.getAttribute("data-tippy-content")||void 0,placement:this.placement,trigger:this.trigger,offset:[this.skidding,this.distance],theme:"lite",animation:"fade",interactive:this.interactive,arrow:Sm,duration:Cw(this.duration),allowHTML:this.allowHTML,delay:this.delay,maxWidth:this.maxWidth,zIndex:this.zIndex,hideOnClick:!1,inertia:this.inertia,interactiveBorder:this.interactiveBorder,appendTo:document.body,followCursor:kw(this.followCursor),plugins:kw(this.followCursor)?[Qw]:[],onShow:e=>{this.open=!0,this.dispatchEvent(new CustomEvent("nile-show",{detail:{instance:e,target:e.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!0,instance:e,target:e.reference}}))},onHide:e=>{this.open=!1,this.dispatchEvent(new CustomEvent("nile-hide",{detail:{instance:e,target:e.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!1,instance:e,target:e.reference}}))}};if(this.for){if(this.singleton&&!this.for.startsWith("#")&&!document.getElementById(this.for)){const t=Array.from(document.querySelectorAll(`.${this.for}`));if(t.length>0)return this.tooltipInstances=t.map((t=>{const i=xw(t,{...e,content:t.getAttribute("content")||this.content});return i.popper.querySelector(".tippy-box")?.classList.add(this.size),i})),this.singletonInstance=Sw(this.tooltipInstances,{delay:[75,0],arrow:Sm,moveTransition:"transform 0.15s ease-out"}),void(this.open&&queueMicrotask((()=>this.singletonInstance?.show())))}const t=document.getElementById(this.for);if(this.singleton&&t){const i=Array.from(t.querySelectorAll("[content]"));if(i.length>0)return this.tooltipInstances=i.map((t=>{const i=xw(t,{...e,content:t.getAttribute("content")||this.content});return i.popper.querySelector(".tippy-box")?.classList.add(this.size),i})),this.singletonInstance=Sw(this.tooltipInstances,{delay:[75,0],arrow:Sm,moveTransition:"transform 0.15s ease-out"}),void(this.open&&queueMicrotask((()=>this.singletonInstance?.show())))}if(this.targetEl=document.getElementById(this.for),!this.targetEl)return;this.id||(this.generatedId=`nile-tooltip-${Math.random().toString(36).slice(2,9)}`,this.id=this.generatedId),this.prevDescribedby=this.targetEl.getAttribute("aria-describedby");const i=this.prevDescribedby?`${this.prevDescribedby} ${this.id}`:this.id;return this.targetEl.setAttribute("aria-describedby",i),this.singleInstance=xw(this.targetEl,e),this.size&&this.singleInstance.popper.querySelector(".tippy-box")?.classList.add(this.size),void(this.open&&queueMicrotask((()=>this.singleInstance?.show())))}const t=Array.from(this.querySelectorAll("*"));t.length>0&&(this.tooltipInstances=t.map((t=>{const i=t,M=i.getAttribute("content")||this.content,n=xw(i,{...e,content:M});return n.popper.querySelector(".tippy-box")?.classList.add(this.size),n})),this.singleton&&this.tooltipInstances.length>1&&(this.singletonInstance=Sw(this.tooltipInstances,{delay:[75,0],arrow:Sm,moveTransition:"transform 0.15s ease-out"})),this.open&&(this.singletonInstance?this.singletonInstance.show():this.tooltipInstances.forEach((e=>e.show()))))}destroyTooltips(){if(this.tooltipInstances?.forEach((e=>e.destroy())),this.singleInstance?.destroy(),this.singletonInstance?.destroy(),this.tooltipInstances=void 0,this.singleInstance=void 0,this.singletonInstance=void 0,this.targetEl&&this.id){const e=this.targetEl.getAttribute("aria-describedby")?.split(" ").filter((e=>e!==this.id)).join(" ").trim();e?this.targetEl.setAttribute("aria-describedby",e):this.targetEl.removeAttribute("aria-describedby")}}disconnectedCallback(){super.disconnectedCallback(),this.destroyTooltips()}updated(e){super.updated(e),["for","content","placement","distance","skidding","trigger","disabled","hoist","size","arrow","singleton"].some((t=>e.has(t)))&&this.attachTooltip(),e.has("open")&&(this.open?(this.singleInstance?.show(),this.singletonInstance?.show(),this.tooltipInstances?.forEach((e=>e.show()))):(this.singleInstance?.hide(),this.singletonInstance?.hide(),this.tooltipInstances?.forEach((e=>e.hide()))))}};e([De({type:String,attribute:"for"})],bw.prototype,"for",void 0),e([De({type:String,reflect:!0})],bw.prototype,"content",void 0),e([De({type:String,reflect:!0})],bw.prototype,"size",void 0),e([De({type:String,reflect:!0})],bw.prototype,"duration",void 0),e([De({type:Boolean,reflect:!0})],bw.prototype,"interactive",void 0),e([De({type:String})],bw.prototype,"placement",void 0),e([De({type:Boolean})],bw.prototype,"disabled",void 0),e([De({type:Number})],bw.prototype,"distance",void 0),e([De({type:Number})],bw.prototype,"skidding",void 0),e([De({type:Boolean,reflect:!0})],bw.prototype,"open",void 0),e([De({type:String})],bw.prototype,"trigger",void 0),e([De({type:Boolean,reflect:!0})],bw.prototype,"allowHTML",void 0),e([De({type:String,reflect:!0,attribute:!0})],bw.prototype,"followCursor",void 0),e([De({type:String,reflect:!0,attribute:!0})],bw.prototype,"arrow",void 0),e([De({type:Boolean,reflect:!0})],bw.prototype,"singleton",void 0),e([De({type:String,reflect:!0})],bw.prototype,"delay",void 0),e([De({type:String,reflect:!0})],bw.prototype,"maxWidth",void 0),e([De({type:Number})],bw.prototype,"zIndex",void 0),e([De({type:[Boolean,String],reflect:!0})],bw.prototype,"hideOnClick",void 0),e([De({type:Boolean,reflect:!0})],bw.prototype,"inertia",void 0),e([De({type:Number})],bw.prototype,"interactiveBorder",void 0),bw=e([Ne("nile-lite-tooltip")],bw);
|
|
15598
15598
|
/**
|
|
15599
15599
|
* @license
|
|
15600
15600
|
* Copyright 2021 Google LLC
|