msys2-web/app/static/index.js
2022-11-17 18:19:04 +01:00

2 lines
47 KiB
JavaScript

function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.apply(this,arguments)}const t=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t},n=e=>{const n=t(e);return n&&document.querySelector(n)?n:null},r=e=>{const n=t(e);return n?document.querySelector(n):null},o=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),i=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,a=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,s=[],c=e=>{"function"==typeof e&&e()},u=(e,t,n=!0)=>{if(!n)return void c(e);const r=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),o=Number.parseFloat(n);return r||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let o=!1;const i=({target:n})=>{n===t&&(o=!0,t.removeEventListener("transitionend",i),c(e))};t.addEventListener("transitionend",i),setTimeout((()=>{o||t.dispatchEvent(new Event("transitionend"))}),r)},l=/[^.]*(?=\..*)\.|.*/,f=/\..*/,p=/::\d+$/,d={};let h=1;const m={mouseenter:"mouseover",mouseleave:"mouseout"},g=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function v(e,t){return t&&`${t}::${h++}`||e.uidEvent||h++}function b(e){const t=v(e);return e.uidEvent=t,d[t]=d[t]||{},d[t]}function y(e,t,n=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===n))}function w(e,t,n){const r="string"==typeof t,o=r?n:t||n;let i=A(e);return g.has(i)||(i=e),[r,o,i]}function x(e,t,n,r,o){if("string"!=typeof t||!e)return;let[i,a,s]=w(t,n,r);if(t in m){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};a=e(a)}const c=b(e),u=c[s]||(c[s]={}),f=y(u,a,i?n:null);if(f)return void(f.oneOff=f.oneOff&&o);const p=v(a,t.replace(l,"")),d=i?function(e,t,n){return function r(o){const i=e.querySelectorAll(t);for(let{target:a}=o;a&&a!==this;a=a.parentNode)for(const s of i)if(s===a)return _(o,{delegateTarget:a}),r.oneOff&&T.off(e,o.type,t,n),n.apply(a,[o])}}(e,n,a):function(e,t){return function n(r){return _(r,{delegateTarget:e}),n.oneOff&&T.off(e,r.type,t),t.apply(e,[r])}}(e,a);d.delegationSelector=i?n:null,d.callable=a,d.oneOff=o,d.uidEvent=p,u[p]=d,e.addEventListener(s,d,i)}function O(e,t,n,r,o){const i=y(t[n],r,o);i&&(e.removeEventListener(n,i,Boolean(o)),delete t[n][i.uidEvent])}function E(e,t,n,r){const o=t[n]||{};for(const i of Object.keys(o))if(i.includes(r)){const r=o[i];O(e,t,n,r.callable,r.delegationSelector)}}function A(e){return e=e.replace(f,""),m[e]||e}const T={on(e,t,n,r){x(e,t,n,r,!1)},one(e,t,n,r){x(e,t,n,r,!0)},off(e,t,n,r){if("string"!=typeof t||!e)return;const[o,i,a]=w(t,n,r),s=a!==t,c=b(e),u=c[a]||{},l=t.startsWith(".");if(void 0===i){if(l)for(const n of Object.keys(c))E(e,c,n,t.slice(1));for(const n of Object.keys(u)){const r=n.replace(p,"");if(!s||t.includes(r)){const t=u[n];O(e,c,a,t.callable,t.delegationSelector)}}}else{if(!Object.keys(u).length)return;O(e,c,a,i,o?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const r=a();let o=null,i=!0,s=!0,c=!1;t!==A(t)&&r&&(o=r.Event(t,n),r(e).trigger(o),i=!o.isPropagationStopped(),s=!o.isImmediatePropagationStopped(),c=o.isDefaultPrevented());let u=new Event(t,{bubbles:i,cancelable:!0});return u=_(u,n),c&&u.preventDefault(),s&&e.dispatchEvent(u),u.defaultPrevented&&o&&o.preventDefault(),u}};function _(e,t){for(const[n,r]of Object.entries(t||{}))try{e[n]=r}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>r})}return e}const C={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!(e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")))(e)&&(e=>{if(!o(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t})(e)))}},D=new Map;var j={set(e,t,n){D.has(e)||D.set(e,new Map);const r=D.get(e);r.has(t)||0===r.size?r.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>D.has(e)&&D.get(e).get(t)||null,remove(e,t){if(!D.has(e))return;const n=D.get(e);n.delete(t),0===n.size&&D.delete(e)}};function L(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function k(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const S={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${k(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${k(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const r of n){let n=r.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=L(e.dataset[r])}return t},getDataAttribute:(e,t)=>L(e.getAttribute(`data-bs-${k(t)}`))};class M{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(t,n){const r=o(n)?S.getDataAttribute(n,"config"):{};return e({},this.constructor.Default,"object"==typeof r?r:{},o(n)?S.getDataAttributes(n):{},"object"==typeof t?t:{})}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const r of Object.keys(t)){const i=t[r],a=e[r],s=o(a)?"element":null==(n=a)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(i).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${i}".`)}var n}}class N extends M{constructor(e,t){super(),(e=i(e))&&(this._element=e,this._config=this._getConfig(t),j.set(this._element,this.constructor.DATA_KEY,this))}dispose(){j.remove(this._element,this.constructor.DATA_KEY),T.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){u(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return j.get(i(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.2.2"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const P={parent:null,toggle:!0},V={parent:"(null|element)",toggle:"boolean"};class H extends N{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=C.find('[data-bs-toggle="collapse"]');for(const e of r){const t=n(e),r=C.find(t).filter((e=>e===this._element));null!==t&&r.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return P}static get DefaultType(){return V}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>H.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(T.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove("collapse"),this._element.classList.add("collapsing"),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove("collapsing"),this._element.classList.add("collapse","show"),this._element.style[t]="",T.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(T.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,this._element.offsetHeight,this._element.classList.add("collapsing"),this._element.classList.remove("collapse","show");for(const e of this._triggerArray){const t=r(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove("collapsing"),this._element.classList.add("collapse"),T.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains("show")}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=i(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren('[data-bs-toggle="collapse"]');for(const t of e){const e=r(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=C.find(":scope .collapse .collapse",this._config.parent);return C.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=H.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}var W,I;T.on(document,"click.bs.collapse.data-api",'[data-bs-toggle="collapse"]',(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=n(this),r=C.find(t);for(const e of r)H.getOrCreateInstance(e,{toggle:!1}).toggle()})),W=H,I=()=>{const e=a();if(e){const t=W.NAME,n=e.fn[t];e.fn[t]=W.jQueryInterface,e.fn[t].Constructor=W,e.fn[t].noConflict=()=>(e.fn[t]=n,W.jQueryInterface)}},"loading"===document.readyState?(s.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of s)e()})),s.push(I)):I();var B="top",R="bottom",$="right",q="left",U=[B,R,$,q],F=U.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),z=[].concat(U,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),Y=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function K(e){return e?(e.nodeName||"").toLowerCase():null}function Q(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function X(e){return e instanceof Q(e).Element||e instanceof Element}function J(e){return e instanceof Q(e).HTMLElement||e instanceof HTMLElement}function Z(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Q(e).ShadowRoot||e instanceof ShadowRoot)}var G={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];J(o)&&K(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});J(r)&&K(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ee(e){return e.split("-")[0]}var te=Math.max,ne=Math.min,re=Math.round;function oe(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function ie(){return!/^((?!chrome|android).)*safari/i.test(oe())}function ae(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&J(e)&&(o=e.offsetWidth>0&&re(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&re(r.height)/e.offsetHeight||1);var a=(X(e)?Q(e):window).visualViewport,s=!ie()&&n,c=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,l=r.width/o,f=r.height/i;return{width:l,height:f,top:u,right:c+l,bottom:u+f,left:c,x:c,y:u}}function se(e){var t=ae(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ce(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Z(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ue(e){return Q(e).getComputedStyle(e)}function le(e){return["table","td","th"].indexOf(K(e))>=0}function fe(e){return((X(e)?e.ownerDocument:e.document)||window.document).documentElement}function pe(e){return"html"===K(e)?e:e.assignedSlot||e.parentNode||(Z(e)?e.host:null)||fe(e)}function de(e){return J(e)&&"fixed"!==ue(e).position?e.offsetParent:null}function he(e){for(var t=Q(e),n=de(e);n&&le(n)&&"static"===ue(n).position;)n=de(n);return n&&("html"===K(n)||"body"===K(n)&&"static"===ue(n).position)?t:n||function(e){var t=/firefox/i.test(oe());if(/Trident/i.test(oe())&&J(e)&&"fixed"===ue(e).position)return null;var n=pe(e);for(Z(n)&&(n=n.host);J(n)&&["html","body"].indexOf(K(n))<0;){var r=ue(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ge(e,t,n){return te(e,ne(t,n))}function ve(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function be(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var ye={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ee(n.placement),c=me(s),u=[q,$].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return ve("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:be(e,U))}(o.padding,n),f=se(i),p="y"===c?B:q,d="y"===c?R:$,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],g=he(i),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=l[p],w=v-f[u]-l[d],x=v/2-f[u]/2+b,O=ge(y,x,w),E=c;n.modifiersData[r]=((t={})[E]=O,t.centerOffset=O-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ce(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function we(e){return e.split("-")[1]}var xe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Oe(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,f=e.isFixed,p=a.x,d=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof l?l({x:d,y:m}):{x:d,y:m};d=g.x,m=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=q,w=B,x=window;if(u){var O=he(n),E="clientHeight",A="clientWidth";if(O===Q(n)&&"static"!==ue(O=fe(n)).position&&"absolute"===s&&(E="scrollHeight",A="scrollWidth"),o===B||(o===q||o===$)&&"end"===i)w=R,m-=(f&&O===x&&x.visualViewport?x.visualViewport.height:O[E])-r.height,m*=c?1:-1;if(o===q||(o===B||o===R)&&"end"===i)y=$,d-=(f&&O===x&&x.visualViewport?x.visualViewport.width:O[A])-r.width,d*=c?1:-1}var T,_=Object.assign({position:s},u&&xe),C=!0===l?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:re(t*r)/r||0,y:re(n*r)/r||0}}({x:d,y:m}):{x:d,y:m};return d=C.x,m=C.y,c?Object.assign({},_,((T={})[w]=b?"0":"",T[y]=v?"0":"",T.transform=(x.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",T)):Object.assign({},_,((t={})[w]=b?m+"px":"",t[y]=v?d+"px":"",t.transform="",t))}var Ee={passive:!0};var Ae={left:"right",right:"left",bottom:"top",top:"bottom"};function Te(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ae[e]}))}var _e={start:"end",end:"start"};function Ce(e){return e.replace(/start|end/g,(function(e){return _e[e]}))}function De(e){var t=Q(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function je(e){return ae(fe(e)).left+De(e).scrollLeft}function Le(e){var t=ue(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ke(e){return["html","body","#document"].indexOf(K(e))>=0?e.ownerDocument.body:J(e)&&Le(e)?e:ke(pe(e))}function Se(e,t){var n;void 0===t&&(t=[]);var r=ke(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Q(r),a=o?[i].concat(i.visualViewport||[],Le(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Se(pe(a)))}function Me(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ne(e,t,n){return"viewport"===t?Me(function(e,t){var n=Q(e),r=fe(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=ie();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+je(e),y:c}}(e,n)):X(t)?function(e,t){var n=ae(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Me(function(e){var t,n=fe(e),r=De(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=te(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=te(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+je(e),c=-r.scrollTop;return"rtl"===ue(o||n).direction&&(s+=te(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(fe(e)))}function Pe(e,t,n,r){var o="clippingParents"===t?function(e){var t=Se(pe(e)),n=["absolute","fixed"].indexOf(ue(e).position)>=0&&J(e)?he(e):e;return X(n)?t.filter((function(e){return X(e)&&ce(e,n)&&"body"!==K(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=Ne(e,n,r);return t.top=te(o.top,t.top),t.right=ne(o.right,t.right),t.bottom=ne(o.bottom,t.bottom),t.left=te(o.left,t.left),t}),Ne(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ve(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?ee(o):null,a=o?we(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case B:t={x:s,y:n.y-r.height};break;case R:t={x:s,y:n.y+n.height};break;case $:t={x:n.x+n.width,y:c};break;case q:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=i?me(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case"start":t[u]=t[u]-(n[l]/2-r[l]/2);break;case"end":t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}function He(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,c=void 0===s?"clippingParents":s,u=n.rootBoundary,l=void 0===u?"viewport":u,f=n.elementContext,p=void 0===f?"popper":f,d=n.altBoundary,h=void 0!==d&&d,m=n.padding,g=void 0===m?0:m,v=ve("number"!=typeof g?g:be(g,U)),b="popper"===p?"reference":"popper",y=e.rects.popper,w=e.elements[h?b:p],x=Pe(X(w)?w:w.contextElement||fe(e.elements.popper),c,l,a),O=ae(e.elements.reference),E=Ve({reference:O,element:y,strategy:"absolute",placement:o}),A=Me(Object.assign({},y,E)),T="popper"===p?A:O,_={top:x.top-T.top+v.top,bottom:T.bottom-x.bottom+v.bottom,left:x.left-T.left+v.left,right:T.right-x.right+v.right},C=e.modifiersData.offset;if("popper"===p&&C){var D=C[o];Object.keys(_).forEach((function(e){var t=[$,R].indexOf(e)>=0?1:-1,n=[B,R].indexOf(e)>=0?"y":"x";_[e]+=D[n]*t}))}return _}function We(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?z:c,l=we(r),f=l?s?F:F.filter((function(e){return we(e)===l})):U,p=f.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=f);var d=p.reduce((function(t,n){return t[n]=He(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ee(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var Ie={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,g=t.options.placement,v=ee(g),b=c||(v===g||!h?[Te(g)]:function(e){if("auto"===ee(e))return[];var t=Te(e);return[Ce(e),t,Ce(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat("auto"===ee(n)?We(t,{placement:n,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,E=!0,A=y[0],T=0;T<y.length;T++){var _=y[T],C=ee(_),D="start"===we(_),j=[B,R].indexOf(C)>=0,L=j?"width":"height",k=He(t,{placement:_,boundary:l,rootBoundary:f,altBoundary:p,padding:u}),S=j?D?$:q:D?R:B;w[L]>x[L]&&(S=Te(S));var M=Te(S),N=[];if(i&&N.push(k[C]<=0),s&&N.push(k[S]<=0,k[M]<=0),N.every((function(e){return e}))){A=_,E=!1;break}O.set(_,N)}if(E)for(var P=function(e){var t=y.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},V=h?3:1;V>0;V--){if("break"===P(V))break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Be(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Re(e){return[B,$,R,q].some((function(t){return e[t]>=0}))}var $e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=z.reduce((function(e,n){return e[n]=function(e,t,n){var r=ee(e),o=[q,B].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[q,$].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var qe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,f=n.padding,p=n.tether,d=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=He(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:l}),v=ee(t.placement),b=we(t.placement),y=!b,w=me(v),x="x"===w?"y":"x",O=t.modifiersData.popperOffsets,E=t.rects.reference,A=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,_="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(O){if(i){var j,L="y"===w?B:q,k="y"===w?R:$,S="y"===w?"height":"width",M=O[w],N=M+g[L],P=M-g[k],V=d?-A[S]/2:0,H="start"===b?E[S]:A[S],W="start"===b?-A[S]:-E[S],I=t.elements.arrow,U=d&&I?se(I):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=F[L],Y=F[k],K=ge(0,E[S],U[S]),Q=y?E[S]/2-V-K-z-_.mainAxis:H-K-z-_.mainAxis,X=y?-E[S]/2+V+K+Y+_.mainAxis:W+K+Y+_.mainAxis,J=t.elements.arrow&&he(t.elements.arrow),Z=J?"y"===w?J.clientTop||0:J.clientLeft||0:0,G=null!=(j=null==C?void 0:C[w])?j:0,re=M+X-G,oe=ge(d?ne(N,M+Q-G-Z):N,M,d?te(P,re):P);O[w]=oe,D[w]=oe-M}if(s){var ie,ae="x"===w?B:q,ce="x"===w?R:$,ue=O[x],le="y"===x?"height":"width",fe=ue+g[ae],pe=ue-g[ce],de=-1!==[B,q].indexOf(v),ve=null!=(ie=null==C?void 0:C[x])?ie:0,be=de?fe:ue-E[le]-A[le]-ve+_.altAxis,ye=de?ue+E[le]+A[le]-ve-_.altAxis:pe,xe=d&&de?function(e,t,n){var r=ge(e,t,n);return r>n?n:r}(be,ue,ye):ge(d?be:fe,ue,d?ye:pe);O[x]=xe,D[x]=xe-ue}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function Ue(e,t,n){void 0===n&&(n=!1);var r,o,i=J(t),a=J(t)&&function(e){var t=e.getBoundingClientRect(),n=re(t.width)/e.offsetWidth||1,r=re(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=fe(t),c=ae(e,a,n),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==K(t)||Le(s))&&(u=(r=t)!==Q(r)&&J(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:De(r)),J(t)?((l=ae(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=je(s))),{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function Fe(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ze={placement:"bottom",modifiers:[],strategy:"absolute"};function Ye(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Ke(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ze:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ze,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;f(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:X(e)?Se(e):e.contextElement?Se(e.contextElement):[],popper:Se(t)};var a,u,p=function(e){var t=Fe(e);return Y.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),u=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return s.orderedModifiers=p.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:l,options:r}),a=function(){};c.push(i||a)}})),l.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(Ye(t,n)){s.rects={reference:Ue(t,he(n),"fixed"===s.options.strategy),popper:se(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,c=void 0===a?{}:a,f=o.name;"function"==typeof i&&(s=i({state:s,options:c,name:f,instance:l})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){l.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){f(),u=!0}};if(!Ye(e,t))return l;function f(){c.forEach((function(e){return e()})),c=[]}return l.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var Qe=Ke({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=Q(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Ee)})),s&&c.addEventListener("resize",n.update,Ee),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Ee)})),s&&c.removeEventListener("resize",n.update,Ee)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ve({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:ee(t.placement),variation:we(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Oe(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Oe(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},G,$e,Ie,qe,ye,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=He(t,{elementContext:"reference"}),s=He(t,{altBoundary:!0}),c=Be(a,r),u=Be(s,o,i),l=Re(c),f=Re(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),Xe={passive:!0,capture:!0},Je=function(){return document.body};function Ze(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ge(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function et(e,t){return"function"==typeof e?e.apply(void 0,t):e}function tt(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function nt(e){return[].concat(e)}function rt(e,t){-1===e.indexOf(t)&&e.push(t)}function ot(e){return[].slice.call(e)}function it(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function at(){return document.createElement("div")}function st(e){return["Element","Fragment"].some((function(t){return Ge(e,t)}))}function ct(e){return st(e)?[e]:function(e){return Ge(e,"NodeList")}(e)?ot(e):Array.isArray(e)?e:ot(document.querySelectorAll(e))}function ut(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function lt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ft(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function pt(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var dt={isTouch:!1},ht=0;function mt(){dt.isTouch||(dt.isTouch=!0,window.performance&&document.addEventListener("mousemove",gt))}function gt(){var e=performance.now();e-ht<20&&(dt.isTouch=!1,document.removeEventListener("mousemove",gt)),ht=e}function vt(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var bt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,yt=Object.assign({appendTo:Je,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),wt=Object.keys(yt);function xt(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=yt[o])?r:i);return t}),{});return Object.assign({},e,t)}function Ot(e,t){var n=Object.assign({},t,{content:et(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(xt(Object.assign({},yt,{plugins:t}))):wt).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},yt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Et(e,t){e.innerHTML=t}function At(e){var t=at();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",st(e)?t.appendChild(e):Et(t,e)),t}function Tt(e,t){st(t.content)?(Et(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Et(e,t.content):e.textContent=t.content)}function _t(e){var t=e.firstElementChild,n=ot(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function Ct(e){var t=at(),n=at();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=at();function o(n,r){var o=_t(t),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Tt(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(At(r.arrow))):i.appendChild(At(r.arrow)):s&&i.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),Tt(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}Ct.$$tippy=!0;var Dt=1,jt=[],Lt=[];function kt(e,t){var n,r,o,i,a,s,c,u,l=Ot(e,Object.assign({},yt,xt(it(t)))),f=!1,p=!1,d=!1,h=!1,m=[],g=tt(Y,l.interactiveDebounce),v=Dt++,b=(u=l.plugins).filter((function(e,t){return u.indexOf(e)===t})),y={id:v,reference:e,popper:at(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){if(y.state.isDestroyed)return;M("onBeforeUpdate",[y,t]),F();var n=y.props,r=Ot(e,Object.assign({},n,it(t),{ignoreAttributes:!0}));y.props=r,U(),n.interactiveDebounce!==r.interactiveDebounce&&(V(),g=tt(Y,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?nt(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");P(),S(),O&&O(n,r);y.popperInstance&&(J(),G().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));M("onAfterUpdate",[y,t])},setContent:function(e){y.setProps({content:e})},show:function(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=dt.isTouch&&!y.props.touch,o=Ze(y.props.duration,0,yt.duration);if(e||t||n||r)return;if(D().hasAttribute("disabled"))return;if(M("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,C()&&(x.style.visibility="visible");S(),B(),y.state.isMounted||(x.style.transition="none");if(C()){var i=L(),a=i.box,c=i.content;ut([a,c],0)}s=function(){var e;if(y.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=y.props.moveTransition,C()&&y.props.animation){var t=L(),n=t.box,r=t.content;ut([n,r],o),lt([n,r],"visible")}N(),P(),rt(Lt,y),null==(e=y.popperInstance)||e.forceUpdate(),M("onMount",[y]),y.props.animation&&C()&&function(e,t){$(e,t)}(o,(function(){y.state.isShown=!0,M("onShown",[y])}))}},function(){var e,t=y.props.appendTo,n=D();e=y.props.interactive&&t===Je||"parent"===t?n.parentNode:et(t,[n]);e.contains(x)||e.appendChild(x);y.state.isMounted=!0,J()}()},hide:function(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=Ze(y.props.duration,1,yt.duration);if(e||t||n)return;if(M("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,h=!1,f=!1,C()&&(x.style.visibility="hidden");if(V(),R(),S(!0),C()){var o=L(),i=o.box,a=o.content;y.props.animation&&(ut([i,a],r),lt([i,a],"hidden"))}N(),P(),y.props.animation?C()&&function(e,t){$(e,(function(){!y.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(r,y.unmount):y.unmount()},hideWithInteractivity:function(e){j().addEventListener("mousemove",g),rt(jt,g),g(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){y.state.isVisible&&y.hide();if(!y.state.isMounted)return;Z(),G().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);Lt=Lt.filter((function(e){return e!==y})),y.state.isMounted=!1,M("onHidden",[y])},destroy:function(){if(y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),F(),delete e._tippy,y.state.isDestroyed=!0,M("onDestroy",[y])}};if(!l.render)return y;var w=l.render(y),x=w.popper,O=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+y.id,y.popper=x,e._tippy=y,x._tippy=y;var E=b.map((function(e){return e.fn(y)})),A=e.hasAttribute("aria-expanded");return U(),P(),S(),M("onCreate",[y]),l.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&j().addEventListener("mousemove",g)})),y;function T(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function _(){return"hold"===T()[0]}function C(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function D(){return c||e}function j(){var e,t,n=D().parentNode;return n?null!=(t=nt(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function L(){return _t(x)}function k(e){return y.state.isMounted&&!y.state.isVisible||dt.isTouch||i&&"focus"===i.type?0:Ze(y.props.delay,e?0:1,yt.delay)}function S(e){void 0===e&&(e=!1),x.style.pointerEvents=y.props.interactive&&!e?"":"none",x.style.zIndex=""+y.props.zIndex}function M(e,t,n){var r;(void 0===n&&(n=!0),E.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=y.props)[e].apply(r,t)}function N(){var t=y.props.aria;if(t.content){var n="aria-"+t.content,r=x.id;nt(y.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function P(){!A&&y.props.aria.expanded&&nt(y.props.triggerTarget||e).forEach((function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===D()?"true":"false"):e.removeAttribute("aria-expanded")}))}function V(){j().removeEventListener("mousemove",g),jt=jt.filter((function(e){return e!==g}))}function H(t){if(!dt.isTouch||!d&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!pt(x,n)){if(nt(y.props.triggerTarget||e).some((function(e){return pt(e,n)}))){if(dt.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),p=!0,setTimeout((function(){p=!1})),y.state.isMounted||R())}}}function W(){d=!0}function I(){d=!1}function B(){var e=j();e.addEventListener("mousedown",H,!0),e.addEventListener("touchend",H,Xe),e.addEventListener("touchstart",I,Xe),e.addEventListener("touchmove",W,Xe)}function R(){var e=j();e.removeEventListener("mousedown",H,!0),e.removeEventListener("touchend",H,Xe),e.removeEventListener("touchstart",I,Xe),e.removeEventListener("touchmove",W,Xe)}function $(e,t){var n=L().box;function r(e){e.target===n&&(ft(n,"remove",r),t())}if(0===e)return t();ft(n,"remove",a),ft(n,"add",r),a=r}function q(t,n,r){void 0===r&&(r=!1),nt(y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function U(){var e;_()&&(q("touchstart",z,{passive:!0}),q("touchend",K,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(q(e,z),e){case"mouseenter":q("mouseleave",K);break;case"focus":q(bt?"focusout":"blur",Q);break;case"focusin":q("focusout",Q)}}))}function F(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function z(e){var t,n=!1;if(y.state.isEnabled&&!X(e)&&!p){var r="focus"===(null==(t=i)?void 0:t.type);i=e,c=e.currentTarget,P(),!y.state.isVisible&&Ge(e,"MouseEvent")&&jt.forEach((function(t){return t(e)})),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||f)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function Y(e){var t=e.target,n=D().contains(t)||x.contains(t);if("mousemove"!==e.type||!n){var r=G().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:l}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=o.placement.split("-")[0],s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,l="right"===a?s.left.x:0,f="left"===a?s.right.x:0,p=t.top-r+c>i,d=r-t.bottom-u>i,h=t.left-n+l>i,m=n-t.right-f>i;return p||d||h||m}))})(r,e)&&(V(),te(e))}}function K(e){X(e)||y.props.trigger.indexOf("click")>=0&&f||(y.props.interactive?y.hideWithInteractivity(e):te(e))}function Q(e){y.props.trigger.indexOf("focusin")<0&&e.target!==D()||y.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function X(e){return!!dt.isTouch&&_()!==e.type.indexOf("touch")>=0}function J(){Z();var t=y.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,c=C()?_t(x).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||D()}:e,l={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(C()){var n=L().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},f=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},l];C()&&c&&f.push({name:"arrow",options:{element:c,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),y.popperInstance=Qe(u,x,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:f}))}function Z(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function G(){return ot(x.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&M("onTrigger",[y,e]),B();var t=k(!0),r=T(),o=r[0],i=r[1];dt.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){y.show()}),t):y.show()}function te(e){if(y.clearDelayTimeouts(),M("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=k(!1);t?r=setTimeout((function(){y.state.isVisible&&y.hide()}),t):o=requestAnimationFrame((function(){y.hide()}))}}else R()}}function St(e,t){void 0===t&&(t={});var n=yt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",mt,Xe),window.addEventListener("blur",vt);var r=Object.assign({},t,{plugins:n}),o=ct(e).reduce((function(e,t){var n=t&&kt(t,r);return n&&e.push(n),e}),[]);return st(e)?o[0]:o}St.defaultProps=yt,St.setDefaultProps=function(e){Object.keys(e).forEach((function(t){yt[t]=e[t]}))},St.currentInput=dt,Object.assign({},G,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),St.setDefaultProps({render:Ct});St(".mytooltip",{allowHTML:!0,theme:"light-border",placement:"top",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top","bottom","left"]}}]},content:e=>e.querySelector(".mytooltip-content").innerHTML}),window.App=class{static copyToClipboard(e){let t=e.parentNode.getElementsByTagName("code")[0].innerText;if(navigator.clipboard){navigator.clipboard.writeText(t);let n=e.innerHTML;e.innerHTML="✅",setTimeout((()=>e.innerHTML=n),1e3)}}};