2 lines
45 KiB
JavaScript
2 lines
45 KiB
JavaScript
function e(){return(e=Object.assign||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}).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=()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e: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=new Map;var p={set(e,t,n){l.has(e)||l.set(e,new Map);const r=l.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)=>l.has(e)&&l.get(e).get(t)||null,remove(e,t){if(!l.has(e))return;const n=l.get(e);n.delete(t),0===n.size&&l.delete(e)}};const f=/[^.]*(?=\..*)\.|.*/,d=/\..*/,h=/::\d+$/,m={};let g=1;const v={mouseenter:"mouseover",mouseleave:"mouseout"},b=/^(mouseenter|mouseleave)/i,y=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 w(e,t){return t&&`${t}::${g++}`||e.uidEvent||g++}function O(e){const t=w(e);return e.uidEvent=t,m[t]=m[t]||{},m[t]}function E(e,t,n=null){const r=Object.keys(e);for(let o=0,i=r.length;o<i;o++){const i=e[r[o]];if(i.originalHandler===t&&i.delegationSelector===n)return i}return null}function x(e,t,n){const r="string"==typeof t,o=r?n:t;let i=_(e);return y.has(i)||(i=e),[r,o,i]}function A(e,t,n,r,o){if("string"!=typeof t||!e)return;if(n||(n=r,r=null),b.test(t)){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};r?r=e(r):n=e(n)}const[i,a,s]=x(t,n,r),c=O(e),u=c[s]||(c[s]={}),l=E(u,a,i?n:null);if(l)return void(l.oneOff=l.oneOff&&o);const p=w(a,t.replace(f,"")),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(let s=i.length;s--;)if(i[s]===a)return o.delegateTarget=a,r.oneOff&&L.off(e,o.type,t,n),n.apply(a,[o]);return null}}(e,n,r):function(e,t){return function n(r){return r.delegateTarget=e,n.oneOff&&L.off(e,r.type,t),t.apply(e,[r])}}(e,n);d.delegationSelector=i?n:null,d.originalHandler=a,d.oneOff=o,d.uidEvent=p,u[p]=d,e.addEventListener(s,d,i)}function T(e,t,n,r,o){const i=E(t[n],r,o);i&&(e.removeEventListener(n,i,Boolean(o)),delete t[n][i.uidEvent])}function _(e){return e=e.replace(d,""),v[e]||e}const L={on(e,t,n,r){A(e,t,n,r,!1)},one(e,t,n,r){A(e,t,n,r,!0)},off(e,t,n,r){if("string"!=typeof t||!e)return;const[o,i,a]=x(t,n,r),s=a!==t,c=O(e),u=t.startsWith(".");if(void 0!==i){if(!c||!c[a])return;return void T(e,c,a,i,o?n:null)}u&&Object.keys(c).forEach((n=>{!function(e,t,n,r){const o=t[n]||{};Object.keys(o).forEach((i=>{if(i.includes(r)){const r=o[i];T(e,t,n,r.originalHandler,r.delegationSelector)}}))}(e,c,n,t.slice(1))}));const l=c[a]||{};Object.keys(l).forEach((n=>{const r=n.replace(h,"");if(!s||t.includes(r)){const t=l[n];T(e,c,a,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,n){if("string"!=typeof t||!e)return null;const r=a(),o=_(t),i=t!==o,s=y.has(o);let c,u=!0,l=!0,p=!1,f=null;return i&&r&&(c=r.Event(t,n),r(e).trigger(c),u=!c.isPropagationStopped(),l=!c.isImmediatePropagationStopped(),p=c.isDefaultPrevented()),s?(f=document.createEvent("HTMLEvents"),f.initEvent(o,u,!0)):f=new CustomEvent(t,{bubbles:u,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(f,e,{get:()=>n[e]})})),p&&f.preventDefault(),l&&e.dispatchEvent(f),f.defaultPrevented&&void 0!==c&&c.preventDefault(),f}};function D(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function C(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const j={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${C(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${C(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=D(e.dataset[n])})),t},getDataAttribute:(e,t)=>D(e.getAttribute(`data-bs-${C(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},S={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;for(;r&&r.nodeType===Node.ELEMENT_NODE&&3!==r.nodeType;)r.matches(t)&&n.push(r),r=r.parentNode;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=>!(!o(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"))(e)))}};const k={toggle:!0,parent:null},M={toggle:"boolean",parent:"(null|element)"};class N extends class{constructor(e){(e=i(e))&&(this._element=e,p.set(this._element,this.constructor.DATA_KEY,this))}dispose(){p.remove(this._element,this.constructor.DATA_KEY),L.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((e=>{this[e]=null}))}_queueCallback(e,t,n=!0){u(e,t,n)}static getInstance(e){return p.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.1.0"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}{constructor(e,t){super(e),this._isTransitioning=!1,this._config=this._getConfig(t),this._triggerArray=[];const r=S.find('[data-bs-toggle="collapse"]');for(let e=0,t=r.length;e<t;e++){const t=r[e],o=n(t),i=S.find(o).filter((e=>e===this._element));null!==o&&i.length&&(this._selector=o,this._triggerArray.push(t))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return k}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e,t=[];if(this._config.parent){const e=S.find(".collapse .collapse",this._config.parent);t=S.find(".show, .collapsing",this._config.parent).filter((t=>!e.includes(t)))}const n=S.findOne(this._selector);if(t.length){const r=t.find((e=>n!==e));if(e=r?N.getInstance(r):null,e&&e._isTransitioning)return}if(L.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t.forEach((t=>{n!==t&&N.getOrCreateInstance(t,{toggle:!1}).hide(),e||p.set(t,"bs.collapse",null)}));const r=this._getDimension();this._element.classList.remove("collapse"),this._element.classList.add("collapsing"),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove("collapsing"),this._element.classList.add("collapse","show"),this._element.style[r]="",L.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[r]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(L.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");const t=this._triggerArray.length;for(let e=0;e<t;e++){const t=this._triggerArray[e],n=r(t);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove("collapsing"),this._element.classList.add("collapse"),L.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains("show")}_getConfig(t){return(t=e({},k,j.getDataAttributes(this._element),t)).toggle=Boolean(t.toggle),t.parent=i(t.parent),((e,t,n)=>{Object.keys(n).forEach((r=>{const i=n[r],a=t[r],s=a&&o(a)?"element":null==(c=a)?`${c}`:{}.toString.call(c).match(/\s([a-z]+)/i)[1].toLowerCase();var c;if(!new RegExp(i).test(s))throw new TypeError(`${e.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${i}".`)}))})("collapse",t,M),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=S.find(".collapse .collapse",this._config.parent);S.find('[data-bs-toggle="collapse"]',this._config.parent).filter((t=>!e.includes(t))).forEach((e=>{const t=r(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}))}_addAriaAndCollapsedClass(e,t){e.length&&e.forEach((e=>{t?e.classList.remove("collapsed"):e.classList.add("collapsed"),e.setAttribute("aria-expanded",t)}))}static jQueryInterface(e){return this.each((function(){const t={};"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1);const n=N.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}var H,P;L.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);S.find(t).forEach((e=>{N.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),H=N,P=()=>{const e=a();if(e){const t=H.NAME,n=e.fn[t];e.fn[t]=H.jQueryInterface,e.fn[t].Constructor=H,e.fn[t].noConflict=()=>(e.fn[t]=n,H.jQueryInterface)}},"loading"===document.readyState?(s.length||document.addEventListener("DOMContentLoaded",(()=>{s.forEach((e=>e()))})),s.push(P)):P();var I="top",B="bottom",W="right",V="left",q=[I,B,W,V],R=q.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),$=[].concat(q,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),U=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function z(e){return e?(e.nodeName||"").toLowerCase():null}function F(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Y(e){return e instanceof F(e).Element||e instanceof Element}function K(e){return e instanceof F(e).HTMLElement||e instanceof HTMLElement}function Q(e){return"undefined"!=typeof ShadowRoot&&(e instanceof F(e).ShadowRoot||e instanceof ShadowRoot)}var X={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];K(o)&&z(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}),{});K(r)&&z(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function J(e){return e.split("-")[0]}var Z=Math.round;function G(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;return K(e)&&t&&(r=n.width/e.offsetWidth||1,o=n.height/e.offsetHeight||1),{width:Z(n.width/r),height:Z(n.height/o),top:Z(n.top/o),right:Z(n.right/r),bottom:Z(n.bottom/o),left:Z(n.left/r),x:Z(n.left/r),y:Z(n.top/o)}}function ee(e){var t=G(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 te(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Q(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ne(e){return F(e).getComputedStyle(e)}function re(e){return["table","td","th"].indexOf(z(e))>=0}function oe(e){return((Y(e)?e.ownerDocument:e.document)||window.document).documentElement}function ie(e){return"html"===z(e)?e:e.assignedSlot||e.parentNode||(Q(e)?e.host:null)||oe(e)}function ae(e){return K(e)&&"fixed"!==ne(e).position?e.offsetParent:null}function se(e){for(var t=F(e),n=ae(e);n&&re(n)&&"static"===ne(n).position;)n=ae(n);return n&&("html"===z(n)||"body"===z(n)&&"static"===ne(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&K(e)&&"fixed"===ne(e).position)return null;for(var n=ie(e);K(n)&&["html","body"].indexOf(z(n))<0;){var r=ne(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 ce(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var ue=Math.max,le=Math.min,pe=Math.round;function fe(e,t,n){return ue(e,le(t,n))}function de(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function he(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var me={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ge(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,l=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:pe(pe(t*r)/r)||0,y:pe(pe(n*r)/r)||0}}(i):"function"==typeof u?u(i):i,p=l.x,f=void 0===p?0:p,d=l.y,h=void 0===d?0:d,m=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),v=V,b=I,y=window;if(c){var w=se(n),O="clientHeight",E="clientWidth";w===F(n)&&"static"!==ne(w=oe(n)).position&&(O="scrollHeight",E="scrollWidth"),w=w,o===I&&(b=B,h-=w[O]-r.height,h*=s?1:-1),o===V&&(v=W,f-=w[E]-r.width,f*=s?1:-1)}var x,A=Object.assign({position:a},c&&me);return s?Object.assign({},A,((x={})[b]=g?"0":"",x[v]=m?"0":"",x.transform=(y.devicePixelRatio||1)<2?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",x)):Object.assign({},A,((t={})[b]=g?h+"px":"",t[v]=m?f+"px":"",t.transform="",t))}var ve={passive:!0};var be={left:"right",right:"left",bottom:"top",top:"bottom"};function ye(e){return e.replace(/left|right|bottom|top/g,(function(e){return be[e]}))}var we={start:"end",end:"start"};function Oe(e){return e.replace(/start|end/g,(function(e){return we[e]}))}function Ee(e){var t=F(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xe(e){return G(oe(e)).left+Ee(e).scrollLeft}function Ae(e){var t=ne(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Te(e){return["html","body","#document"].indexOf(z(e))>=0?e.ownerDocument.body:K(e)&&Ae(e)?e:Te(ie(e))}function _e(e,t){var n;void 0===t&&(t=[]);var r=Te(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=F(r),a=o?[i].concat(i.visualViewport||[],Ae(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(_e(ie(a)))}function Le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function De(e,t){return"viewport"===t?Le(function(e){var t=F(e),n=oe(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+xe(e),y:s}}(e)):K(t)?function(e){var t=G(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Le(function(e){var t,n=oe(e),r=Ee(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ue(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ue(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+xe(e),c=-r.scrollTop;return"rtl"===ne(o||n).direction&&(s+=ue(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(oe(e)))}function Ce(e,t,n){var r="clippingParents"===t?function(e){var t=_e(ie(e)),n=["absolute","fixed"].indexOf(ne(e).position)>=0&&K(e)?se(e):e;return Y(n)?t.filter((function(e){return Y(e)&&te(e,n)&&"body"!==z(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=De(e,n);return t.top=ue(r.top,t.top),t.right=le(r.right,t.right),t.bottom=le(r.bottom,t.bottom),t.left=ue(r.left,t.left),t}),De(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function je(e){return e.split("-")[1]}function Se(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?J(o):null,a=o?je(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case I:t={x:s,y:n.y-r.height};break;case B:t={x:s,y:n.y+n.height};break;case W:t={x:n.x+n.width,y:c};break;case V:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=i?ce(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 ke(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,c=void 0===s?"viewport":s,u=n.elementContext,l=void 0===u?"popper":u,p=n.altBoundary,f=void 0!==p&&p,d=n.padding,h=void 0===d?0:d,m=de("number"!=typeof h?h:he(h,q)),g="popper"===l?"reference":"popper",v=e.elements.reference,b=e.rects.popper,y=e.elements[f?g:l],w=Ce(Y(y)?y:y.contextElement||oe(e.elements.popper),a,c),O=G(v),E=Se({reference:O,element:b,strategy:"absolute",placement:o}),x=Le(Object.assign({},b,E)),A="popper"===l?x:O,T={top:w.top-A.top+m.top,bottom:A.bottom-w.bottom+m.bottom,left:w.left-A.left+m.left,right:A.right-w.right+m.right},_=e.modifiersData.offset;if("popper"===l&&_){var L=_[o];Object.keys(T).forEach((function(e){var t=[W,B].indexOf(e)>=0?1:-1,n=[I,B].indexOf(e)>=0?"y":"x";T[e]+=L[n]*t}))}return T}function Me(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?$:c,l=je(r),p=l?s?R:R.filter((function(e){return je(e)===l})):q,f=p.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,n){return t[n]=ke(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[J(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}function Ne(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 He(e){return[I,W,B,V].some((function(t){return e[t]>=0}))}function Pe(e,t,n){void 0===n&&(n=!1);var r,o,i=K(t),a=K(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),s=oe(t),c=G(e,a),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==z(t)||Ae(s))&&(u=(r=t)!==F(r)&&K(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Ee(r)),K(t)?((l=G(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=xe(s))),{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function Ie(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 Be={placement:"bottom",modifiers:[],strategy:"absolute"};function We(){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 Ve(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Be:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Be,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:s,setOptions:function(n){p(),s.options=Object.assign({},i,s.options,n),s.scrollParents={reference:Y(e)?_e(e):e.contextElement?_e(e.contextElement):[],popper:_e(t)};var o,a,u=function(e){var t=Ie(e);return U.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((o=[].concat(r,s.options.modifiers),a=o.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(a).map((function(e){return a[e]}))));return s.orderedModifiers=u.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(We(t,n)){s.rects={reference:Pe(t,se(n),"fixed"===s.options.strategy),popper:ee(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,p=o.name;"function"==typeof i&&(s=i({state:s,options:c,name:p,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(){p(),u=!0}};if(!We(e,t))return l;function p(){c.forEach((function(e){return e()})),c=[]}return l.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var qe=Ve({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=F(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,ve)})),s&&c.addEventListener("resize",n.update,ve),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,ve)})),s&&c.removeEventListener("resize",n.update,ve)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Se({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:J(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ge(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,ge(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:{}},X,{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=$.reduce((function(e,n){return e[n]=function(e,t,n){var r=J(e),o=[V,I].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,[V,W].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}},{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,p=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,g=t.options.placement,v=J(g),b=c||(v===g||!h?[ye(g)]:function(e){if("auto"===J(e))return[];var t=ye(e);return[Oe(e),t,Oe(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat("auto"===J(n)?Me(t,{placement:n,boundary:l,rootBoundary:p,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,O=t.rects.popper,E=new Map,x=!0,A=y[0],T=0;T<y.length;T++){var _=y[T],L=J(_),D="start"===je(_),C=[I,B].indexOf(L)>=0,j=C?"width":"height",S=ke(t,{placement:_,boundary:l,rootBoundary:p,altBoundary:f,padding:u}),k=C?D?W:V:D?B:I;w[j]>O[j]&&(k=ye(k));var M=ye(k),N=[];if(i&&N.push(S[L]<=0),s&&N.push(S[k]<=0,S[M]<=0),N.every((function(e){return e}))){A=_,x=!1;break}E.set(_,N)}if(x)for(var H=function(e){var t=y.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},P=h?3:1;P>0;P--){if("break"===H(P))break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{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,p=n.padding,f=n.tether,d=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=ke(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:l}),v=J(t.placement),b=je(t.placement),y=!b,w=ce(v),O="x"===w?"y":"x",E=t.modifiersData.popperOffsets,x=t.rects.reference,A=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,_={x:0,y:0};if(E){if(i||s){var L="y"===w?I:V,D="y"===w?B:W,C="y"===w?"height":"width",j=E[w],S=E[w]+g[L],k=E[w]-g[D],M=d?-A[C]/2:0,N="start"===b?x[C]:A[C],H="start"===b?-A[C]:-x[C],P=t.elements.arrow,q=d&&P?ee(P):{width:0,height:0},R=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=R[L],U=R[D],z=fe(0,x[C],q[C]),F=y?x[C]/2-M-z-$-T:N-z-$-T,Y=y?-x[C]/2+M+z+U+T:H+z+U+T,K=t.elements.arrow&&se(t.elements.arrow),Q=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,X=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,Z=E[w]+F-X-Q,G=E[w]+Y-X;if(i){var te=fe(d?le(S,Z):S,j,d?ue(k,G):k);E[w]=te,_[w]=te-j}if(s){var ne="x"===w?I:V,re="x"===w?B:W,oe=E[O],ie=oe+g[ne],ae=oe-g[re],pe=fe(d?le(ie,Z):ie,oe,d?ue(ae,G):ae);E[O]=pe,_[O]=pe-oe}}t.modifiersData[r]=_}},requiresIfExists:["offset"]},{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=J(n.placement),c=ce(s),u=[V,W].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return de("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:he(e,q))}(o.padding,n),p=ee(i),f="y"===c?I:V,d="y"===c?B:W,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],g=se(i),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=l[f],w=v-p[u]-l[d],O=v/2-p[u]/2+b,E=fe(y,O,w),x=c;n.modifiersData[r]=((t={})[x]=E,t.centerOffset=E-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&te(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{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=ke(t,{elementContext:"reference"}),s=ke(t,{altBoundary:!0}),c=Ne(a,r),u=Ne(s,o,i),l=He(c),p=He(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}}]}),Re={passive:!0,capture:!0};function $e(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ue(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ze(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Fe(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Ye(e){return[].concat(e)}function Ke(e,t){-1===e.indexOf(t)&&e.push(t)}function Qe(e){return[].slice.call(e)}function Xe(){return document.createElement("div")}function Je(e){return["Element","Fragment"].some((function(t){return Ue(e,t)}))}function Ze(e){return Je(e)?[e]:function(e){return Ue(e,"NodeList")}(e)?Qe(e):Array.isArray(e)?e:Qe(document.querySelectorAll(e))}function Ge(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function et(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function tt(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var nt={isTouch:!1},rt=0;function ot(){nt.isTouch||(nt.isTouch=!0,window.performance&&document.addEventListener("mousemove",it))}function it(){var e=performance.now();e-rt<20&&(nt.isTouch=!1,document.removeEventListener("mousemove",it)),rt=e}function at(){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 st="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",ct=/MSIE |Trident\//.test(st),ut=Object.assign({appendTo:function(){return document.body},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}),lt=Object.keys(ut);function pt(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function ft(e,t){var n=Object.assign({},t,{content:ze(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(pt(Object.assign({},ut,{plugins:t}))):lt).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({},ut.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 dt(e,t){e.innerHTML=t}function ht(e){var t=Xe();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",Je(e)?t.appendChild(e):dt(t,e)),t}function mt(e,t){Je(t.content)?(dt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?dt(e,t.content):e.textContent=t.content)}function gt(e){var t=e.firstElementChild,n=Qe(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 vt(e){var t=Xe(),n=Xe();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Xe();function o(n,r){var o=gt(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||mt(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(ht(r.arrow))):i.appendChild(ht(r.arrow)):s&&i.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),mt(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}vt.$$tippy=!0;var bt=1,yt=[],wt=[];function Ot(e,t){var n,r,o,i,a,s,c,u,l,p=ft(e,Object.assign({},ut,{},pt((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),f=!1,d=!1,h=!1,m=!1,g=[],v=Fe(K,p.interactiveDebounce),b=bt++,y=(l=p.plugins).filter((function(e,t){return l.indexOf(e)===t})),w={id:b,reference:e,popper:Xe(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(w.state.isDestroyed)return;N("onBeforeUpdate",[w,t]),F();var n=w.props,r=ft(e,Object.assign({},w.props,{},t,{ignoreAttributes:!0}));w.props=r,z(),n.interactiveDebounce!==r.interactiveDebounce&&(I(),v=Fe(K,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Ye(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");P(),M(),x&&x(n,r);w.popperInstance&&(Z(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));N("onAfterUpdate",[w,t])},setContent:function(e){w.setProps({content:e})},show:function(){var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=nt.isTouch&&!w.props.touch,o=$e(w.props.duration,0,ut.duration);if(e||t||n||r)return;if(C().hasAttribute("disabled"))return;if(N("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,D()&&(E.style.visibility="visible");M(),q(),w.state.isMounted||(E.style.transition="none");if(D()){var i=S(),a=i.box,s=i.content;Ge([a,s],0)}c=function(){var e;if(w.state.isVisible&&!m){if(m=!0,E.offsetHeight,E.style.transition=w.props.moveTransition,D()&&w.props.animation){var t=S(),n=t.box,r=t.content;Ge([n,r],o),et([n,r],"visible")}H(),P(),Ke(wt,w),null==(e=w.popperInstance)||e.forceUpdate(),w.state.isMounted=!0,N("onMount",[w]),w.props.animation&&D()&&function(e,t){$(e,t)}(o,(function(){w.state.isShown=!0,N("onShown",[w])}))}},function(){var e,t=w.props.appendTo,n=C();e=w.props.interactive&&t===ut.appendTo||"parent"===t?n.parentNode:ze(t,[n]);e.contains(E)||e.appendChild(E);Z()}()},hide:function(){var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=$e(w.props.duration,1,ut.duration);if(e||t||n)return;if(N("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,m=!1,f=!1,D()&&(E.style.visibility="hidden");if(I(),R(),M(),D()){var o=S(),i=o.box,a=o.content;w.props.animation&&(Ge([i,a],r),et([i,a],"hidden"))}H(),P(),w.props.animation?D()&&function(e,t){$(e,(function(){!w.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&t()}))}(r,w.unmount):w.unmount()},hideWithInteractivity:function(e){j().addEventListener("mousemove",v),Ke(yt,v),v(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){w.state.isVisible&&w.hide();if(!w.state.isMounted)return;G(),ee().forEach((function(e){e._tippy.unmount()})),E.parentNode&&E.parentNode.removeChild(E);wt=wt.filter((function(e){return e!==w})),w.state.isMounted=!1,N("onHidden",[w])},destroy:function(){if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),F(),delete e._tippy,w.state.isDestroyed=!0,N("onDestroy",[w])}};if(!p.render)return w;var O=p.render(w),E=O.popper,x=O.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+w.id,w.popper=E,e._tippy=w,E._tippy=w;var A=y.map((function(e){return e.fn(w)})),T=e.hasAttribute("aria-expanded");return z(),P(),M(),N("onCreate",[w]),p.showOnCreate&&te(),E.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),E.addEventListener("mouseleave",(function(e){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(j().addEventListener("mousemove",v),v(e))})),w;function _(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function L(){return"hold"===_()[0]}function D(){var e;return!!(null==(e=w.props.render)?void 0:e.$$tippy)}function C(){return u||e}function j(){var e,t,n=C().parentNode;return n?(null==(t=Ye(n)[0])||null==(e=t.ownerDocument)?void 0:e.body)?t.ownerDocument:document:document}function S(){return gt(E)}function k(e){return w.state.isMounted&&!w.state.isVisible||nt.isTouch||a&&"focus"===a.type?0:$e(w.props.delay,e?0:1,ut.delay)}function M(){E.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",E.style.zIndex=""+w.props.zIndex}function N(e,t,n){var r;(void 0===n&&(n=!0),A.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=w.props)[e].apply(r,t)}function H(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,r=E.id;Ye(w.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(w.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(){!T&&w.props.aria.expanded&&Ye(w.props.triggerTarget||e).forEach((function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===C()?"true":"false"):e.removeAttribute("aria-expanded")}))}function I(){j().removeEventListener("mousemove",v),yt=yt.filter((function(e){return e!==v}))}function B(e){if(!(nt.isTouch&&(h||"mousedown"===e.type)||w.props.interactive&&E.contains(e.target))){if(C().contains(e.target)){if(nt.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[w,e]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),d=!0,setTimeout((function(){d=!1})),w.state.isMounted||R())}}function W(){h=!0}function V(){h=!1}function q(){var e=j();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,Re),e.addEventListener("touchstart",V,Re),e.addEventListener("touchmove",W,Re)}function R(){var e=j();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,Re),e.removeEventListener("touchstart",V,Re),e.removeEventListener("touchmove",W,Re)}function $(e,t){var n=S().box;function r(e){e.target===n&&(tt(n,"remove",r),t())}if(0===e)return t();tt(n,"remove",s),tt(n,"add",r),s=r}function U(t,n,r){void 0===r&&(r=!1),Ye(w.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),g.push({node:e,eventType:t,handler:n,options:r})}))}function z(){var e;L()&&(U("touchstart",Y,{passive:!0}),U("touchend",Q,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(U(e,Y),e){case"mouseenter":U("mouseleave",Q);break;case"focus":U(ct?"focusout":"blur",X);break;case"focusin":U("focusout",X)}}))}function F(){g.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),g=[]}function Y(e){var t,n=!1;if(w.state.isEnabled&&!J(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,u=e.currentTarget,P(),!w.state.isVisible&&Ue(e,"MouseEvent")&&yt.forEach((function(t){return t(e)})),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||f)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:te(e),"click"===e.type&&(f=!n),n&&!r&&ne(e)}}function K(e){var t=e.target,n=C().contains(t)||E.contains(t);"mousemove"===e.type&&n||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,p="left"===a?s.right.x:0,f=t.top-r+c>i,d=r-t.bottom-u>i,h=t.left-n+l>i,m=n-t.right-p>i;return f||d||h||m}))}(ee().concat(E).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:p}:null})).filter(Boolean),e)&&(I(),ne(e))}function Q(e){J(e)||w.props.trigger.indexOf("click")>=0&&f||(w.props.interactive?w.hideWithInteractivity(e):ne(e))}function X(e){w.props.trigger.indexOf("focusin")<0&&e.target!==C()||w.props.interactive&&e.relatedTarget&&E.contains(e.relatedTarget)||ne(e)}function J(e){return!!nt.isTouch&&L()!==e.type.indexOf("touch")>=0}function Z(){G();var t=w.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,s=D()?gt(E).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||C()}:e,l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(D()){var n=S().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={}}}}];D()&&s&&l.push({name:"arrow",options:{element:s,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),w.popperInstance=qe(u,E,Object.assign({},n,{placement:r,onFirstUpdate:c,modifiers:l}))}function G(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ee(){return Qe(E.querySelectorAll("[data-tippy-root]"))}function te(e){w.clearDelayTimeouts(),e&&N("onTrigger",[w,e]),q();var t=k(!0),n=_(),o=n[0],i=n[1];nt.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){w.show()}),t):w.show()}function ne(e){if(w.clearDelayTimeouts(),N("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=k(!1);t?o=setTimeout((function(){w.state.isVisible&&w.hide()}),t):i=requestAnimationFrame((function(){w.hide()}))}}else R()}}function Et(e,t){void 0===t&&(t={});var n=ut.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",ot,Re),window.addEventListener("blur",at);var r=Object.assign({},t,{plugins:n}),o=Ze(e).reduce((function(e,t){var n=t&&Ot(t,r);return n&&e.push(n),e}),[]);return Je(e)?o[0]:o}Et.defaultProps=ut,Et.setDefaultProps=function(e){Object.keys(e).forEach((function(t){ut[t]=e[t]}))},Et.currentInput=nt,Object.assign({},X,{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)}}),Et.setDefaultProps({render:vt});Et(".mytooltip",{allowHTML:!0,theme:"light-border",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)}}};
|