vue-tippy 6.0.0-alpha.48 → 6.0.0-alpha.51

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.48
2
+ * vue-tippy v6.0.0-alpha.51
3
3
  * (c) 2022
4
4
  * @license MIT
5
5
  */
@@ -4530,7 +4530,7 @@ let props = {};
4530
4530
  Object.keys(tippy.defaultProps).forEach((prop) => {
4531
4531
  if (booleanProps.includes(prop)) {
4532
4532
  props[prop] = {
4533
- type: Boolean,
4533
+ type: prop === 'arrow' ? [String, Boolean, SVGElement, DocumentFragment] : Boolean,
4534
4534
  default: function () {
4535
4535
  return tippy.defaultProps[prop];
4536
4536
  },
@@ -4557,7 +4557,7 @@ props['contentClass'] = {
4557
4557
  const TippyComponent = vue.defineComponent({
4558
4558
  props,
4559
4559
  emits: ['state'],
4560
- setup(props, { slots, emit }) {
4560
+ setup(props, { slots, emit, expose }) {
4561
4561
  const elem = vue.ref();
4562
4562
  const contentElem = vue.ref();
4563
4563
  const mounted = vue.ref(false);
@@ -4591,14 +4591,24 @@ const TippyComponent = vue.defineComponent({
4591
4591
  vue.watch(props, () => {
4592
4592
  tippy.setProps(props);
4593
4593
  });
4594
- return { elem, contentElem, mounted, ...tippy };
4595
- },
4596
- render(vm) {
4597
- let slot = this.$slots.default ? this.$slots.default(vm) : [];
4598
- return vue.h(this.tag, { ref: 'elem', 'data-v-tippy': '' }, this.$slots.content ? [
4599
- slot,
4600
- vue.h(this.contentTag, { ref: 'contentElem', style: { display: this.mounted ? 'inherit' : 'none' }, class: this.contentClass }, this.$slots.content(vm)),
4601
- ] : slot);
4594
+ let exposed = {
4595
+ elem,
4596
+ contentElem,
4597
+ mounted,
4598
+ ...tippy
4599
+ };
4600
+ expose(exposed);
4601
+ const slot = slots.default ? slots.default(exposed) : [];
4602
+ return () => {
4603
+ return vue.h(props.tag, { ref: elem, 'data-v-tippy': '' }, slots.content ? [
4604
+ slot,
4605
+ vue.h(props.contentTag, {
4606
+ ref: contentElem,
4607
+ style: { display: mounted.value ? 'inherit' : 'none' },
4608
+ class: props.contentClass
4609
+ }, slots.content(exposed)),
4610
+ ] : slot);
4611
+ };
4602
4612
  },
4603
4613
  });
4604
4614
 
@@ -21,33 +21,9 @@ export { roundArrow }
21
21
 
22
22
  export declare const setDefaultProps: (partialProps: Partial<import("tippy.js").DefaultProps>) => void;
23
23
 
24
- export declare const Tippy: import("vue").DefineComponent<ComponentObjectPropsOptions<Record<string, unknown>>, {
25
- tippy: import("vue").Ref<import("tippy.js").Instance<import("tippy.js").Props> | undefined>;
26
- refresh: () => void;
27
- refreshContent: () => void;
28
- setContent: (value: import("../types").TippyContent) => void;
29
- setProps: (value: Partial<Pick<import("tippy.js").Props, "animateFill" | "appendTo" | "aria" | "delay" | "duration" | "followCursor" | "getReferenceClientRect" | "hideOnClick" | "ignoreAttributes" | "inlinePositioning" | "interactive" | "interactiveBorder" | "interactiveDebounce" | "moveTransition" | "offset" | "placement" | "plugins" | "popperOptions" | "render" | "showOnCreate" | "sticky" | "touch" | "trigger" | "onAfterUpdate" | "onBeforeUpdate" | "onCreate" | "onDestroy" | "onHidden" | "onHide" | "onMount" | "onShow" | "onShown" | "onTrigger" | "onUntrigger" | "onClickOutside" | "allowHTML" | "animation" | "arrow" | "inertia" | "maxWidth" | "role" | "theme" | "zIndex"> & {
30
- content: import("../types").TippyContent;
31
- triggerTarget: import("../types").TippyTarget;
32
- }>) => void;
33
- destroy: () => void;
34
- hide: () => void;
35
- show: () => void;
36
- disable: () => void;
37
- enable: () => void;
38
- unmount: () => void;
39
- mount: () => void;
40
- state: import("vue").Ref<{
41
- isEnabled: boolean;
42
- isVisible: boolean;
43
- isDestroyed: boolean;
44
- isMounted: boolean;
45
- isShown: boolean;
46
- }>;
47
- elem: import("vue").Ref<Element | undefined>;
48
- contentElem: import("vue").Ref<Element | undefined>;
49
- mounted: import("vue").Ref<boolean>;
50
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "state"[], "state", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {
24
+ export declare const Tippy: import("vue").DefineComponent<ComponentObjectPropsOptions<Record<string, unknown>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
25
+ [key: string]: any;
26
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "state"[], "state", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {
51
27
  [x: string]: any;
52
28
  }>, {}>;
53
29
  export { tippy }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.48
2
+ * vue-tippy v6.0.0-alpha.51
3
3
  * (c) 2022
4
4
  * @license MIT
5
5
  */
@@ -4210,7 +4210,7 @@ let props = {};
4210
4210
  Object.keys(tippy.defaultProps).forEach((prop) => {
4211
4211
  if (booleanProps.includes(prop)) {
4212
4212
  props[prop] = {
4213
- type: Boolean,
4213
+ type: prop === 'arrow' ? [String, Boolean, SVGElement, DocumentFragment] : Boolean,
4214
4214
  default: function () {
4215
4215
  return tippy.defaultProps[prop];
4216
4216
  },
@@ -4237,7 +4237,7 @@ props['contentClass'] = {
4237
4237
  const TippyComponent = defineComponent({
4238
4238
  props,
4239
4239
  emits: ['state'],
4240
- setup(props, { slots, emit }) {
4240
+ setup(props, { slots, emit, expose }) {
4241
4241
  const elem = ref();
4242
4242
  const contentElem = ref();
4243
4243
  const mounted = ref(false);
@@ -4271,14 +4271,24 @@ const TippyComponent = defineComponent({
4271
4271
  watch(props, () => {
4272
4272
  tippy.setProps(props);
4273
4273
  });
4274
- return { elem, contentElem, mounted, ...tippy };
4275
- },
4276
- render(vm) {
4277
- let slot = this.$slots.default ? this.$slots.default(vm) : [];
4278
- return h(this.tag, { ref: 'elem', 'data-v-tippy': '' }, this.$slots.content ? [
4279
- slot,
4280
- h(this.contentTag, { ref: 'contentElem', style: { display: this.mounted ? 'inherit' : 'none' }, class: this.contentClass }, this.$slots.content(vm)),
4281
- ] : slot);
4274
+ let exposed = {
4275
+ elem,
4276
+ contentElem,
4277
+ mounted,
4278
+ ...tippy
4279
+ };
4280
+ expose(exposed);
4281
+ const slot = slots.default ? slots.default(exposed) : [];
4282
+ return () => {
4283
+ return h(props.tag, { ref: elem, 'data-v-tippy': '' }, slots.content ? [
4284
+ slot,
4285
+ h(props.contentTag, {
4286
+ ref: contentElem,
4287
+ style: { display: mounted.value ? 'inherit' : 'none' },
4288
+ class: props.contentClass
4289
+ }, slots.content(exposed)),
4290
+ ] : slot);
4291
+ };
4282
4292
  },
4283
4293
  });
4284
4294
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.48
2
+ * vue-tippy v6.0.0-alpha.51
3
3
  * (c) 2022
4
4
  * @license MIT
5
5
  */
@@ -4527,7 +4527,7 @@ var VueTippy = (function (exports, vue) {
4527
4527
  Object.keys(tippy.defaultProps).forEach((prop) => {
4528
4528
  if (booleanProps.includes(prop)) {
4529
4529
  props[prop] = {
4530
- type: Boolean,
4530
+ type: prop === 'arrow' ? [String, Boolean, SVGElement, DocumentFragment] : Boolean,
4531
4531
  default: function () {
4532
4532
  return tippy.defaultProps[prop];
4533
4533
  },
@@ -4554,7 +4554,7 @@ var VueTippy = (function (exports, vue) {
4554
4554
  const TippyComponent = vue.defineComponent({
4555
4555
  props,
4556
4556
  emits: ['state'],
4557
- setup(props, { slots, emit }) {
4557
+ setup(props, { slots, emit, expose }) {
4558
4558
  const elem = vue.ref();
4559
4559
  const contentElem = vue.ref();
4560
4560
  const mounted = vue.ref(false);
@@ -4588,14 +4588,24 @@ var VueTippy = (function (exports, vue) {
4588
4588
  vue.watch(props, () => {
4589
4589
  tippy.setProps(props);
4590
4590
  });
4591
- return { elem, contentElem, mounted, ...tippy };
4592
- },
4593
- render(vm) {
4594
- let slot = this.$slots.default ? this.$slots.default(vm) : [];
4595
- return vue.h(this.tag, { ref: 'elem', 'data-v-tippy': '' }, this.$slots.content ? [
4596
- slot,
4597
- vue.h(this.contentTag, { ref: 'contentElem', style: { display: this.mounted ? 'inherit' : 'none' }, class: this.contentClass }, this.$slots.content(vm)),
4598
- ] : slot);
4591
+ let exposed = {
4592
+ elem,
4593
+ contentElem,
4594
+ mounted,
4595
+ ...tippy
4596
+ };
4597
+ expose(exposed);
4598
+ const slot = slots.default ? slots.default(exposed) : [];
4599
+ return () => {
4600
+ return vue.h(props.tag, { ref: elem, 'data-v-tippy': '' }, slots.content ? [
4601
+ slot,
4602
+ vue.h(props.contentTag, {
4603
+ ref: contentElem,
4604
+ style: { display: mounted.value ? 'inherit' : 'none' },
4605
+ class: props.contentClass
4606
+ }, slots.content(exposed)),
4607
+ ] : slot);
4608
+ };
4599
4609
  },
4600
4610
  });
4601
4611
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.48
2
+ * vue-tippy v6.0.0-alpha.51
3
3
  * (c) 2022
4
4
  * @license MIT
5
5
  */
6
- var VueTippy=function(e,t){"use strict";var n="top",o="bottom",r="right",i="left",a=[n,o,r,i],s=a.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),u=[].concat(a,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),c=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function p(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 l(e){return e instanceof f(e).Element||e instanceof Element}function d(e){return e instanceof f(e).HTMLElement||e instanceof HTMLElement}function v(e){return"undefined"!=typeof ShadowRoot&&(e instanceof f(e).ShadowRoot||e instanceof ShadowRoot)}var m={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]||{},o=t.attributes[e]||{},r=t.elements[e];d(r)&&p(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.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 o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});d(o)&&p(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function h(e){return e.split("-")[0]}var g=Math.max,y=Math.min,b=Math.round;function w(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(d(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(o=b(n.width)/a||1),i>0&&(r=b(n.height)/i||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function x(e){var t=w(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function O(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&v(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function T(e){return f(e).getComputedStyle(e)}function E(e){return["table","td","th"].indexOf(p(e))>=0}function A(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function C(e){return"html"===p(e)?e:e.assignedSlot||e.parentNode||(v(e)?e.host:null)||A(e)}function D(e){return d(e)&&"fixed"!==T(e).position?e.offsetParent:null}function M(e){for(var t=f(e),n=D(e);n&&E(n)&&"static"===T(n).position;)n=D(n);return n&&("html"===p(n)||"body"===p(n)&&"static"===T(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&d(e)&&"fixed"===T(e).position)return null;for(var n=C(e);d(n)&&["html","body"].indexOf(p(n))<0;){var o=T(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function P(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function j(e,t,n){return g(e,y(t,n))}function L(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function R(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function k(e){return e.split("-")[1]}var S={top:"auto",right:"auto",bottom:"auto",left:"auto"};function H(e){var t,a=e.popper,s=e.popperRect,u=e.placement,c=e.variation,p=e.offsets,l=e.position,d=e.gpuAcceleration,v=e.adaptive,m=e.roundOffsets,h=e.isFixed,g=!0===m?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:b(e.x*n)/n||0,y:b(t*n)/n||0}}(p):"function"==typeof m?m(p):p,y=g.x,w=void 0===y?0:y,x=g.y,O=void 0===x?0:x,E=p.hasOwnProperty("x"),C=p.hasOwnProperty("y"),D=i,P=n,j=window;if(v){var L=M(a),R="clientHeight",k="clientWidth";if(L===f(a)&&"static"!==T(L=A(a)).position&&"absolute"===l&&(R="scrollHeight",k="scrollWidth"),L=L,u===n||(u===i||u===r)&&"end"===c)P=o,O-=(h&&j.visualViewport?j.visualViewport.height:L[R])-s.height,O*=d?1:-1;if(u===i||(u===n||u===o)&&"end"===c)D=r,w-=(h&&j.visualViewport?j.visualViewport.width:L[k])-s.width,w*=d?1:-1}var H,V=Object.assign({position:l},v&&S);return Object.assign({},V,d?((H={})[P]=C?"0":"",H[D]=E?"0":"",H.transform=(j.devicePixelRatio||1)<=1?"translate("+w+"px, "+O+"px)":"translate3d("+w+"px, "+O+"px, 0)",H):((t={})[P]=C?O+"px":"",t[D]=E?w+"px":"",t.transform="",t))}var V={passive:!0};var B={left:"right",right:"left",bottom:"top",top:"bottom"};function I(e){return e.replace(/left|right|bottom|top/g,(function(e){return B[e]}))}var W={start:"end",end:"start"};function N(e){return e.replace(/start|end/g,(function(e){return W[e]}))}function U(e){var t=f(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function $(e){return w(A(e)).left+U(e).scrollLeft}function _(e){var t=T(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function q(e,t){var n;void 0===t&&(t=[]);var o=function e(t){return["html","body","#document"].indexOf(p(t))>=0?t.ownerDocument.body:d(t)&&_(t)?t:e(C(t))}(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=f(o),a=r?[i].concat(i.visualViewport||[],_(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(q(C(a)))}function F(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function z(e,t){return"viewport"===t?F(function(e){var t=f(e),n=A(e),o=t.visualViewport,r=n.clientWidth,i=n.clientHeight,a=0,s=0;return o&&(r=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=o.offsetLeft,s=o.offsetTop)),{width:r,height:i,x:a+$(e),y:s}}(e)):l(t)?function(e){var t=w(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):F(function(e){var t,n=A(e),o=U(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=g(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=g(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+$(e),u=-o.scrollTop;return"rtl"===T(r||n).direction&&(s+=g(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(A(e)))}function X(e,t,n){var o="clippingParents"===t?function(e){var t=q(C(e)),n=["absolute","fixed"].indexOf(T(e).position)>=0,o=n&&d(e)?M(e):e;return l(o)?t.filter((function(e){return l(e)&&O(e,o)&&"body"!==p(e)&&(!n||"static"!==T(e).position)})):[]}(e):[].concat(t),r=[].concat(o,[n]),i=r.reduce((function(t,n){var o=z(e,n);return t.top=g(o.top,t.top),t.right=y(o.right,t.right),t.bottom=y(o.bottom,t.bottom),t.left=g(o.left,t.left),t}),z(e,r[0]));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Y(e){var t,a=e.reference,s=e.element,u=e.placement,c=u?h(u):null,p=u?k(u):null,f=a.x+a.width/2-s.width/2,l=a.y+a.height/2-s.height/2;switch(c){case n:t={x:f,y:a.y-s.height};break;case o:t={x:f,y:a.y+a.height};break;case r:t={x:a.x+a.width,y:l};break;case i:t={x:a.x-s.width,y:l};break;default:t={x:a.x,y:a.y}}var d=c?P(c):null;if(null!=d){var v="y"===d?"height":"width";switch(p){case"start":t[d]=t[d]-(a[v]/2-s[v]/2);break;case"end":t[d]=t[d]+(a[v]/2-s[v]/2)}}return t}function J(e,t){void 0===t&&(t={});var i=t.placement,s=void 0===i?e.placement:i,u=t.boundary,c=void 0===u?"clippingParents":u,p=t.rootBoundary,f=void 0===p?"viewport":p,d=t.elementContext,v=void 0===d?"popper":d,m=t.altBoundary,h=void 0!==m&&m,g=t.padding,y=void 0===g?0:g,b=L("number"!=typeof y?y:R(y,a)),x=e.rects.popper,O=e.elements[h?"popper"===v?"reference":"popper":v],T=X(l(O)?O:O.contextElement||A(e.elements.popper),c,f),E=w(e.elements.reference),C=Y({reference:E,element:x,strategy:"absolute",placement:s}),D=F(Object.assign({},x,C)),M="popper"===v?D:E,P={top:T.top-M.top+b.top,bottom:M.bottom-T.bottom+b.bottom,left:T.left-M.left+b.left,right:M.right-T.right+b.right},j=e.modifiersData.offset;if("popper"===v&&j){var k=j[s];Object.keys(P).forEach((function(e){var t=[r,o].indexOf(e)>=0?1:-1,i=[n,o].indexOf(e)>=0?"y":"x";P[e]+=k[i]*t}))}return P}function G(e,t){void 0===t&&(t={});var n=t.boundary,o=t.rootBoundary,r=t.padding,i=t.flipVariations,c=t.allowedAutoPlacements,p=void 0===c?u:c,f=k(t.placement),l=f?i?s:s.filter((function(e){return k(e)===f})):a,d=l.filter((function(e){return p.indexOf(e)>=0}));0===d.length&&(d=l);var v=d.reduce((function(t,i){return t[i]=J(e,{placement:i,boundary:n,rootBoundary:o,padding:r})[h(i)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}function K(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 Q(e){return[n,r,o,i].some((function(t){return e[t]>=0}))}function Z(e,t,n){void 0===n&&(n=!1);var o,r,i=d(t),a=d(t)&&function(e){var t=e.getBoundingClientRect(),n=b(t.width)/e.offsetWidth||1,o=b(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),s=A(t),u=w(e,a),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==p(t)||_(s))&&(c=(o=t)!==f(o)&&d(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:U(o)),d(t)?((l=w(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=$(s))),{x:u.left+c.scrollLeft-l.x,y:u.top+c.scrollTop-l.y,width:u.width,height:u.height}}function ee(e){var t=new Map,n=new Set,o=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(o){if(!n.has(o)){var r=t.get(o);r&&e(r)}})),o.push(r)}(e)})),o}var te={placement:"bottom",modifiers:[],strategy:"absolute"};function ne(){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 oe(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,o=e.defaultOptions,r=void 0===o?te:o;return function(e,t,o){void 0===o&&(o=r);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},te,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],p=!1,f={state:s,setOptions:function(o){var i="function"==typeof o?o(s.options):o;d(),s.options=Object.assign({},r,s.options,i),s.scrollParents={reference:l(e)?q(e):e.contextElement?q(e.contextElement):[],popper:q(t)};var a,p,v=function(e){var t=ee(e);return c.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(n,s.options.modifiers),p=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(p).map((function(e){return p[e]}))));return s.orderedModifiers=v.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.options,n=e.effect;if("function"==typeof n){var o=n({state:s,name:e.name,instance:f,options:void 0===t?{}:t});u.push(o||function(){})}})),f.update()},forceUpdate:function(){if(!p){var e=s.elements,t=e.reference,n=e.popper;if(ne(t,n)){s.rects={reference:Z(t,M(n),"fixed"===s.options.strategy),popper:x(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 o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var r=s.orderedModifiers[o],i=r.fn,a=r.options;"function"==typeof i&&(s=i({state:s,options:void 0===a?{}:a,name:r.name,instance:f})||s)}else s.reset=!1,o=-1}}},update:(i=function(){return new Promise((function(e){f.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){d(),p=!0}};if(!ne(e,t))return f;function d(){u.forEach((function(e){return e()})),u=[]}return f.setOptions(o).then((function(e){!p&&o.onFirstUpdate&&o.onFirstUpdate(e)})),f}}var re=oe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,a=o.resize,s=void 0===a||a,u=f(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,V)})),s&&u.addEventListener("resize",n.update,V),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,V)})),s&&u.removeEventListener("resize",n.update,V)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=Y({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,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s,c={placement:h(t.placement),variation:k(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,H(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,H(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},m,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.name,a=e.options.offset,s=void 0===a?[0,0]:a,c=u.reduce((function(e,o){return e[o]=function(e,t,o){var a=h(e),s=[i,n].indexOf(a)>=0?-1:1,u="function"==typeof o?o(Object.assign({},t,{placement:e})):o,c=u[0],p=u[1];return c=c||0,p=(p||0)*s,[i,r].indexOf(a)>=0?{x:p,y:c}:{x:c,y:p}}(o,t.rects,s),e}),{}),p=c[t.placement],f=p.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=p.x,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var u=a.mainAxis,c=void 0===u||u,p=a.altAxis,f=void 0===p||p,l=a.fallbackPlacements,d=a.padding,v=a.boundary,m=a.rootBoundary,g=a.altBoundary,y=a.flipVariations,b=void 0===y||y,w=a.allowedAutoPlacements,x=t.options.placement,O=h(x),T=l||(O===x||!b?[I(x)]:function(e){if("auto"===h(e))return[];var t=I(e);return[N(e),t,N(t)]}(x)),E=[x].concat(T).reduce((function(e,n){return e.concat("auto"===h(n)?G(t,{placement:n,boundary:v,rootBoundary:m,padding:d,flipVariations:b,allowedAutoPlacements:w}):n)}),[]),A=t.rects.reference,C=t.rects.popper,D=new Map,M=!0,P=E[0],j=0;j<E.length;j++){var L=E[j],R=h(L),S="start"===k(L),H=[n,o].indexOf(R)>=0,V=H?"width":"height",B=J(t,{placement:L,boundary:v,rootBoundary:m,altBoundary:g,padding:d}),W=H?S?r:i:S?o:n;A[V]>C[V]&&(W=I(W));var U=I(W),$=[];if(c&&$.push(B[R]<=0),f&&$.push(B[W]<=0,B[U]<=0),$.every((function(e){return e}))){P=L,M=!1;break}D.set(L,$)}if(M)for(var _=function(e){var t=E.find((function(t){var n=D.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},q=b?3:1;q>0;q--){if("break"===_(q))break}t.placement!==P&&(t.modifiersData[s]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,s=e.name,u=a.mainAxis,c=void 0===u||u,p=a.altAxis,f=void 0!==p&&p,l=a.tether,d=void 0===l||l,v=a.tetherOffset,m=void 0===v?0:v,b=J(t,{boundary:a.boundary,rootBoundary:a.rootBoundary,padding:a.padding,altBoundary:a.altBoundary}),w=h(t.placement),O=k(t.placement),T=!O,E=P(w),A="x"===E?"y":"x",C=t.modifiersData.popperOffsets,D=t.rects.reference,L=t.rects.popper,R="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,S="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(C){if(c){var B,I="y"===E?n:i,W="y"===E?o:r,N="y"===E?"height":"width",U=C[E],$=U+b[I],_=U-b[W],q=d?-L[N]/2:0,F="start"===O?D[N]:L[N],z="start"===O?-L[N]:-D[N],X=t.elements.arrow,Y=d&&X?x(X):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=G[I],Q=G[W],Z=j(0,D[N],Y[N]),ee=T?D[N]/2-q-Z-K-S.mainAxis:F-Z-K-S.mainAxis,te=T?-D[N]/2+q+Z+Q+S.mainAxis:z+Z+Q+S.mainAxis,ne=t.elements.arrow&&M(t.elements.arrow),oe=null!=(B=null==H?void 0:H[E])?B:0,re=U+te-oe,ie=j(d?y($,U+ee-oe-(ne?"y"===E?ne.clientTop||0:ne.clientLeft||0:0)):$,U,d?g(_,re):_);C[E]=ie,V[E]=ie-U}if(f){var ae,se=C[A],ue="y"===A?"height":"width",ce=se+b["x"===E?n:i],pe=se-b["x"===E?o:r],fe=-1!==[n,i].indexOf(w),le=null!=(ae=null==H?void 0:H[A])?ae:0,de=fe?ce:se-D[ue]-L[ue]-le+S.altAxis,ve=fe?se+D[ue]+L[ue]-le-S.altAxis:pe,me=d&&fe?function(e,t,n){var o=j(e,t,n);return o>n?n:o}(de,se,ve):j(d?de:ce,se,d?ve:pe);C[A]=me,V[A]=me-se}t.modifiersData[s]=V}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,s=e.state,u=e.name,c=e.options,p=s.elements.arrow,f=s.modifiersData.popperOffsets,l=h(s.placement),d=P(l),v=[i,r].indexOf(l)>=0?"height":"width";if(p&&f){var m=function(e,t){return L("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:R(e,a))}(c.padding,s),g=x(p),y="y"===d?n:i,b="y"===d?o:r,w=s.rects.reference[v]+s.rects.reference[d]-f[d]-s.rects.popper[v],O=f[d]-s.rects.reference[d],T=M(p),E=T?"y"===d?T.clientHeight||0:T.clientWidth||0:0,A=E/2-g[v]/2+(w/2-O/2),C=j(m[y],A,E-g[v]-m[b]);s.modifiersData[u]=((t={})[d]=C,t.centerOffset=C-A,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&O(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=J(t,{elementContext:"reference"}),s=J(t,{altBoundary:!0}),u=K(a,o),c=K(s,r,i),p=Q(u),f=Q(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}}]}),ie={passive:!0,capture:!0},ae=function(){return document.body};function se(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function ue(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ce(e,t){return"function"==typeof e?e.apply(void 0,t):e}function pe(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function fe(e){return[].concat(e)}function le(e,t){-1===e.indexOf(t)&&e.push(t)}function de(e){return e.split("-")[0]}function ve(e){return[].slice.call(e)}function me(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function he(){return document.createElement("div")}function ge(e){return["Element","Fragment"].some((function(t){return ue(e,t)}))}function ye(e){return ue(e,"MouseEvent")}function be(e){return ge(e)?[e]:function(e){return ue(e,"NodeList")}(e)?ve(e):Array.isArray(e)?e:ve(document.querySelectorAll(e))}function we(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function xe(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Oe(e){var t,n=fe(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Te(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function Ee(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var Ae={isTouch:!1},Ce=0;function De(){Ae.isTouch||(Ae.isTouch=!0,window.performance&&document.addEventListener("mousemove",Me))}function Me(){var e=performance.now();e-Ce<20&&(Ae.isTouch=!1,document.removeEventListener("mousemove",Me)),Ce=e}function Pe(){var e,t=document.activeElement;(e=t)&&e._tippy&&e._tippy.reference===e&&(t.blur&&!t._tippy.state.isVisible&&t.blur())}var je=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Le=Object.assign({appendTo:ae,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}),Re=Object.keys(Le);function ke(e){var t=(e.plugins||[]).reduce((function(t,n){var o,r=n.name;r&&(t[r]=void 0!==e[r]?e[r]:null!=(o=Le[r])?o:n.defaultValue);return t}),{});return Object.assign({},e,t)}function Se(e,t){var n=Object.assign({},t,{content:ce(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(ke(Object.assign({},Le,{plugins:t}))):Re).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Le.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 He(e,t){e.innerHTML=t}function Ve(e){var t=he();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",ge(e)?t.appendChild(e):He(t,e)),t}function Be(e,t){ge(t.content)?(He(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?He(e,t.content):e.textContent=t.content)}function Ie(e){var t=e.firstElementChild,n=ve(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 We(e){var t=he(),n=he();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=he();function r(n,o){var r=Ie(t),i=r.box,a=r.content,s=r.arrow;o.theme?i.setAttribute("data-theme",o.theme):i.removeAttribute("data-theme"),"string"==typeof o.animation?i.setAttribute("data-animation",o.animation):i.removeAttribute("data-animation"),o.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?i.setAttribute("role",o.role):i.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||Be(a,e.props),o.arrow?s?n.arrow!==o.arrow&&(i.removeChild(s),i.appendChild(Ve(o.arrow))):i.appendChild(Ve(o.arrow)):s&&i.removeChild(s)}return o.className="tippy-content",o.setAttribute("data-state","hidden"),Be(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}We.$$tippy=!0;var Ne=1,Ue=[],$e=[];function _e(e,t){var n,o,r,i,a,s,u,c,p=Se(e,Object.assign({},Le,ke(me(t)))),f=!1,l=!1,d=!1,v=!1,m=[],h=pe(X,p.interactiveDebounce),g=Ne++,y=(c=p.plugins).filter((function(e,t){return c.indexOf(e)===t})),b={id:g,reference:e,popper:he(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){if(b.state.isDestroyed)return;k("onBeforeUpdate",[b,t]),F();var n=b.props,o=Se(e,Object.assign({},n,me(t),{ignoreAttributes:!0}));b.props=o,q(),n.interactiveDebounce!==o.interactiveDebounce&&(V(),h=pe(X,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?fe(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");H(),R(),O&&O(n,o);b.popperInstance&&(K(),Z().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));k("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,o=Ae.isTouch&&!b.props.touch,r=se(b.props.duration,0,Le.duration);if(e||t||n||o)return;if(M().hasAttribute("disabled"))return;if(k("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,D()&&(x.style.visibility="visible");R(),N(),b.state.isMounted||(x.style.transition="none");if(D()){var i=j();we([i.box,i.content],0)}s=function(){var e;if(b.state.isVisible&&!v){if(v=!0,x.style.transition=b.props.moveTransition,D()&&b.props.animation){var t=j(),n=t.box,o=t.content;we([n,o],r),xe([n,o],"visible")}S(),H(),le($e,b),null==(e=b.popperInstance)||e.forceUpdate(),k("onMount",[b]),b.props.animation&&D()&&function(e,t){$(e,t)}(r,(function(){b.state.isShown=!0,k("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=M();e=b.props.interactive&&t===ae||"parent"===t?n.parentNode:ce(t,[n]);e.contains(x)||e.appendChild(x);b.state.isMounted=!0,K()}()},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,o=se(b.props.duration,1,Le.duration);if(e||t||n)return;if(k("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,v=!1,f=!1,D()&&(x.style.visibility="hidden");if(V(),U(),R(!0),D()){var r=j(),i=r.box,a=r.content;b.props.animation&&(we([i,a],o),xe([i,a],"hidden"))}S(),H(),b.props.animation?D()&&function(e,t){$(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(o,b.unmount):b.unmount()},hideWithInteractivity:function(e){P().addEventListener("mousemove",h),le(Ue,h),h(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Q(),Z().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);$e=$e.filter((function(e){return e!==b})),b.state.isMounted=!1,k("onHidden",[b])},destroy:function(){if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),F(),delete e._tippy,b.state.isDestroyed=!0,k("onDestroy",[b])}};if(!p.render)return b;var w=p.render(b),x=w.popper,O=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var T=y.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return q(),H(),R(),k("onCreate",[b]),p.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",h)})),b;function A(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===A()[0]}function D(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function M(){return u||e}function P(){var e=M().parentNode;return e?Oe(e):document}function j(){return Ie(x)}function L(e){return b.state.isMounted&&!b.state.isVisible||Ae.isTouch||i&&"focus"===i.type?0:se(b.props.delay,e?0:1,Le.delay)}function R(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function k(e,t,n){var o;(void 0===n&&(n=!0),T.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(o=b.props)[e].apply(o,t)}function S(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,o=x.id;fe(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function H(){!E&&b.props.aria.expanded&&fe(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")}))}function V(){P().removeEventListener("mousemove",h),Ue=Ue.filter((function(e){return e!==h}))}function B(t){if(!Ae.isTouch||!d&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Ee(x,n)){if(fe(b.props.triggerTarget||e).some((function(e){return Ee(e,n)}))){if(Ae.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else k("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout((function(){l=!1})),b.state.isMounted||U())}}}function I(){d=!0}function W(){d=!1}function N(){var e=P();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,ie),e.addEventListener("touchstart",W,ie),e.addEventListener("touchmove",I,ie)}function U(){var e=P();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,ie),e.removeEventListener("touchstart",W,ie),e.removeEventListener("touchmove",I,ie)}function $(e,t){var n=j().box;function o(e){e.target===n&&(Te(n,"remove",o),t())}if(0===e)return t();Te(n,"remove",a),Te(n,"add",o),a=o}function _(t,n,o){void 0===o&&(o=!1),fe(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})}))}function q(){var e;C()&&(_("touchstart",z,{passive:!0}),_("touchend",Y,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(_(e,z),e){case"mouseenter":_("mouseleave",Y);break;case"focus":_(je?"focusout":"blur",J);break;case"focusin":_("focusout",J)}}))}function F(){m.forEach((function(e){e.node.removeEventListener(e.eventType,e.handler,e.options)})),m=[]}function z(e){var t,n=!1;if(b.state.isEnabled&&!G(e)&&!l){var o="focus"===(null==(t=i)?void 0:t.type);i=e,u=e.currentTarget,H(),!b.state.isVisible&&ye(e)&&Ue.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!o&&te(e)}}function X(e){var t=e.target,n=M().contains(t)||x.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,i=e.props.interactiveBorder,a=de(r.placement),s=r.modifiersData.offset;return!s||(t.top-o+("bottom"===a?s.top.y:0)>i||o-t.bottom-("top"===a?s.bottom.y:0)>i||t.left-n+("right"===a?s.left.x:0)>i||n-t.right-("left"===a?s.right.x:0)>i)}))}(Z().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:p}:null})).filter(Boolean),e)&&(V(),te(e))}function Y(e){G(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function J(e){b.props.trigger.indexOf("focusin")<0&&e.target!==M()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function G(e){return!!Ae.isTouch&&C()!==e.type.indexOf("touch")>=0}function K(){Q();var t=b.props,n=t.popperOptions,o=t.placement,r=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,u=D()?Ie(x).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||M()}:e,p=[{name:"offset",options:{offset:r}},{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=j().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()&&u&&p.push({name:"arrow",options:{element:u,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),b.popperInstance=re(c,x,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:p}))}function Q(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Z(){return ve(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&k("onTrigger",[b,e]),N();var t=L(!0),o=A(),r=o[1];Ae.isTouch&&"hold"===o[0]&&r&&(t=r),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),k("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=L(!1);t?o=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else U()}}function qe(e,t){void 0===t&&(t={});var n=Le.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",De,ie),window.addEventListener("blur",Pe);var o=Object.assign({},t,{plugins:n}),r=be(e).reduce((function(e,t){var n=t&&_e(t,o);return n&&e.push(n),e}),[]);return ge(e)?r[0]:r}qe.defaultProps=Le,qe.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Le[t]=e[t]}))},qe.currentInput=Ae;var Fe=Object.assign({},m,{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)}}),ze=function(e,t){var n;void 0===t&&(t={});var o,r=e,i=[],a=[],s=t.overrides,u=[],c=!1;function p(){a=r.map((function(e){return fe(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function f(){i=r.map((function(e){return e.reference}))}function l(e){r.forEach((function(t){e?t.enable():t.disable()}))}function d(e){return r.map((function(t){var n=t.setProps;return t.setProps=function(r){n(r),t.reference===o&&e.setProps(r)},function(){t.setProps=n}}))}function v(e,t){var n=a.indexOf(t);if(t!==o){o=t;var u=(s||[]).concat("content").reduce((function(e,t){return e[t]=r[n].props[t],e}),{});e.setProps(Object.assign({},u,{getReferenceClientRect:"function"==typeof u.getReferenceClientRect?u.getReferenceClientRect:function(){var e;return null==(e=i[n])?void 0:e.getBoundingClientRect()}}))}}l(!1),f(),p();var m,h,g={fn:function(){return{onDestroy:function(){l(!0)},onHidden:function(){o=null},onClickOutside:function(e){e.props.showOnCreate&&!c&&(c=!0,o=null)},onShow:function(e){e.props.showOnCreate&&!c&&(c=!0,v(e,i[0]))},onTrigger:function(e,t){v(e,t.currentTarget)}}}},y=qe(he(),Object.assign({},(m=["overrides"],h=Object.assign({},t),m.forEach((function(e){delete h[e]})),h),{plugins:[g].concat(t.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[Fe])})})),b=y.show;y.show=function(e){return b(),o||null!=e?o&&null==e?void 0:"number"==typeof e?i[e]&&v(y,i[e]):r.indexOf(e)>=0?v(y,e.reference):i.indexOf(e)>=0?v(y,e):void 0:v(y,i[0])},y.showNext=function(){var e=i[0];if(!o)return y.show(0);var t=i.indexOf(o);y.show(i[t+1]||e)},y.showPrevious=function(){var e=i[i.length-1];if(!o)return y.show(e);var t=i.indexOf(o);y.show(i[t-1]||e)};var w=y.setProps;return y.setProps=function(e){s=e.overrides||s,w(e)},y.setInstances=function(e){l(!0),u.forEach((function(e){return e()})),r=e,l(!1),f(),p(),u=d(y),y.setProps({triggerTarget:a})},u=d(y),y},Xe={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=Ie(e.popper),o=n.box,r=n.content,i=e.props.animateFill?function(){var e=he();return e.className="tippy-backdrop",xe([e],"hidden"),e}():null;return{onCreate:function(){i&&(o.insertBefore(i,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var e=o.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",i.style.transitionDuration=e,xe([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&xe([i],"hidden")}}}};var Ye={clientX:0,clientY:0},Je=[];function Ge(e){Ye={clientX:e.clientX,clientY:e.clientY}}var Ke={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=Oe(e.props.triggerTarget||t),o=!1,r=!1,i=!0,a=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function u(){n.addEventListener("mousemove",f)}function c(){n.removeEventListener("mousemove",f)}function p(){o=!0,e.setProps({getReferenceClientRect:null}),o=!1}function f(n){var o=!n.target||t.contains(n.target),r=e.props.followCursor,i=n.clientX,a=n.clientY,s=t.getBoundingClientRect(),u=i-s.left,c=a-s.top;!o&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,o=a;"initial"===r&&(n=e.left+u,o=e.top+c);var s="horizontal"===r?e.top:o,p="vertical"===r?e.right:n,f="horizontal"===r?e.bottom:o,l="vertical"===r?e.left:n;return{width:p-l,height:f-s,top:s,right:p,bottom:f,left:l}}})}function l(){e.props.followCursor&&(Je.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",Ge)}(n))}function d(){0===(Je=Je.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",Ge)}(n)}return{onCreate:l,onDestroy:d,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;o||void 0!==i&&a.followCursor!==i&&(d(),i?(l(),!e.state.isMounted||r||s()||u()):(c(),p()))},onMount:function(){e.props.followCursor&&!r&&(i&&(f(Ye),i=!1),s()||u())},onTrigger:function(e,t){ye(t)&&(Ye={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(p(),c(),i=!0)}}}};var Qe={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var o=-1,r=!1,i=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var a=r.state;e.props.inlinePositioning&&(-1!==i.indexOf(a.placement)&&(i=[]),t!==a.placement&&-1===i.indexOf(a.placement)&&(i.push(a.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,o){if(n.length<2||null===e)return t;if(2===n.length&&o>=0&&n[0].left>n[1].right)return n[o]||t;switch(e){case"top":case"bottom":var r=n[0],i=n[n.length-1],a="top"===e,s=r.top,u=i.bottom,c=a?r.left:i.left,p=a?r.right:i.right;return{top:s,bottom:u,left:c,right:p,width:p-c,height:u-s};case"left":case"right":var f=Math.min.apply(Math,n.map((function(e){return e.left}))),l=Math.max.apply(Math,n.map((function(e){return e.right}))),d=n.filter((function(t){return"left"===e?t.left===f:t.right===l})),v=d[0].top,m=d[d.length-1].bottom;return{top:v,bottom:m,left:f,right:l,width:l-f,height:m-v};default:return t}}(de(e),n.getBoundingClientRect(),ve(n.getClientRects()),o)}(a.placement)}})),t=a.placement)}};function s(){var t;r||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,a),r=!0,e.setProps(t),r=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(ye(n)){var r=ve(e.reference.getClientRects()),i=r.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),a=r.indexOf(i);o=a>-1?a:o}},onHidden:function(){o=-1}}}};var Ze={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function o(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,i=null;function a(){var s=o("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,u=o("popper")?n.getBoundingClientRect():null;(s&&et(r,s)||u&&et(i,u))&&e.popperInstance&&e.popperInstance.update(),r=s,i=u,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function et(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}function tt(e,n={},o={mount:!0}){const r=t.getCurrentInstance(),i=t.ref(),a=t.ref({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1});let s=null;const u=()=>s||(s=document.createDocumentFragment(),s),c=e=>{let n,o=t.isRef(e)?e.value:e;if(t.isVNode(o))r&&(o.appContext=r.appContext),t.render(o,u()),n=()=>u();else if("object"==typeof o){let e=t.h(o);r&&(e.appContext=r.appContext),t.render(e,u()),n=()=>u()}else n=o;return n},p=e=>{let n={};return n=t.isRef(e)?e.value||{}:(t.isReactive(e),{...e}),n.content&&(n.content=c(n.content)),n.triggerTarget&&(n.triggerTarget=t.isRef(n.triggerTarget)?n.triggerTarget.value:n.triggerTarget),n.plugins&&Array.isArray(n.plugins)||(n.plugins=[]),n.plugins=n.plugins.filter(e=>"vueTippyReactiveState"!==e.name),n.plugins.push({name:"vueTippyReactiveState",fn:()=>({onCreate(){a.value.isEnabled=!0},onMount(){a.value.isMounted=!0},onShow(){a.value.isMounted=!0,a.value.isVisible=!0},onShown(){a.value.isShown=!0},onHide(){a.value.isMounted=!1,a.value.isVisible=!1},onHidden(){a.value.isShown=!1},onUnmounted(){a.value.isMounted=!1},onDestroy(){a.value.isDestroyed=!0}})}),n},f=()=>{i.value&&i.value.setProps(p(n))},l=()=>{i.value&&n.content&&i.value.setContent(c(n.content))},d=()=>{i.value&&(i.value.destroy(),i.value=void 0),s=null},v=()=>{if(!e)return;let o=t.isRef(e)?e.value:e;"function"==typeof o&&(o=o()),o&&(i.value=qe(o,p(n)),o.$tippy=m)},m={tippy:i,refresh:f,refreshContent:l,setContent:e=>{var t;null===(t=i.value)||void 0===t||t.setContent(c(e))},setProps:e=>{var t;null===(t=i.value)||void 0===t||t.setProps(p(e))},destroy:d,hide:()=>{var e;null===(e=i.value)||void 0===e||e.hide()},show:()=>{var e;null===(e=i.value)||void 0===e||e.show()},disable:()=>{var e;null===(e=i.value)||void 0===e||e.disable(),a.value.isEnabled=!1},enable:()=>{var e;null===(e=i.value)||void 0===e||e.enable(),a.value.isEnabled=!0},unmount:()=>{var e;null===(e=i.value)||void 0===e||e.unmount()},mount:v,state:a};return o.mount&&(r?(r.isMounted?v():t.onMounted(v),t.onUnmounted(()=>{d()})):v()),t.isRef(n)||t.isReactive(n)?t.watch(n,f,{immediate:!1}):t.isRef(n.content)&&t.watch(n.content,l,{immediate:!1}),m}function nt(e,n){const o=t.ref();return t.onMounted(()=>{const t=(Array.isArray(e)?e.map(e=>e.value):"function"==typeof e?e():e.value).map(e=>e instanceof Element?e._tippy:e).filter(Boolean);o.value=ze(t,n?{allowHTML:!0,...n}:{allowHTML:!0})}),{singleton:o}}qe.setDefaultProps({render:We}),qe.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});const ot=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let rt={};Object.keys(qe.defaultProps).forEach(e=>{rt[e]=ot.includes(e)?{type:Boolean,default:function(){return qe.defaultProps[e]}}:{default:function(){return qe.defaultProps[e]}}}),rt.to={},rt.tag={default:"span"},rt.contentTag={default:"span"},rt.contentClass={default:null};const it=t.defineComponent({props:rt,emits:["state"],setup(e,{slots:n,emit:o}){const r=t.ref(),i=t.ref(),a=t.ref(!1);let s={...e};for(const e of["to","tag","contentTag","contentClass"])s.hasOwnProperty(e)&&delete s[e];let u=r;e.to&&("undefined"!=typeof Element&&e.to instanceof Element?u=()=>e.to:("string"==typeof e.to||e.to instanceof String)&&(u=()=>document.querySelector(e.to)));const c=tt(u,s);return t.onMounted(()=>{a.value=!0,t.nextTick(()=>{n.content&&c.setContent(()=>i.value)})}),t.watch(c.state,()=>{o("state",t.unref(c.state))},{immediate:!0,deep:!0}),t.watch(e,()=>{c.setProps(e)}),{elem:r,contentElem:i,mounted:a,...c}},render(e){let n=this.$slots.default?this.$slots.default(e):[];return t.h(this.tag,{ref:"elem","data-v-tippy":""},this.$slots.content?[n,t.h(this.contentTag,{ref:"contentElem",style:{display:this.mounted?"inherit":"none"},class:this.contentClass},this.$slots.content(e))]:n)}}),at=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let st={};Object.keys(qe.defaultProps).forEach(e=>{st[e]=at.includes(e)?{type:Boolean,default:function(){return qe.defaultProps[e]}}:{default:function(){return qe.defaultProps[e]}}});const ut=t.defineComponent({props:st,setup(e){const n=t.ref([]),{singleton:o}=nt(n,e);return{instances:n,singleton:o}},mounted(){var e;const t=this.$el.parentElement.querySelectorAll("[data-v-tippy]");this.instances=Array.from(t).map(e=>e._tippy).filter(Boolean),null===(e=this.singleton)||void 0===e||e.setInstances(this.instances)},render(){let e=this.$slots.default?this.$slots.default():[];return t.h(()=>e)}}),ct={mounted(e,t,n){const o="string"==typeof t.value?{content:t.value}:t.value||{},r=Object.keys(t.modifiers||{}),i=r.find(e=>"arrow"!==e),a=-1!==r.findIndex(e=>"arrow"===e);i&&(o.placement=o.placement||i),a&&(o.arrow=void 0===o.arrow||o.arrow),n.props&&n.props.onTippyShow&&(o.onShow=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyShow(...e)}),n.props&&n.props.onTippyShown&&(o.onShown=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyShown(...e)}),n.props&&n.props.onTippyHidden&&(o.onHidden=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyHidden(...e)}),n.props&&n.props.onTippyHide&&(o.onHide=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyHide(...e)}),n.props&&n.props.onTippyMount&&(o.onMount=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyMount(...e)}),e.getAttribute("title")&&!o.content&&(o.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!o.content&&(o.content=e.getAttribute("content")),tt(e,o)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const n="string"==typeof t.value?{content:t.value}:t.value||{};e.getAttribute("title")&&!n.content&&(n.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!n.content&&(n.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(n||{}):e._tippy&&e._tippy.setProps(n||{})}},pt={install(e,t={}){qe.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",ct),e.component(t.component||"tippy",it),e.component(t.componentSingleton||"tippy-singleton",ut)}},ft=qe.setDefaultProps;return ft({ignoreAttributes:!0,plugins:[Ze,Qe,Ke,Xe]}),e.Tippy=it,e.TippySingleton=ut,e.default=pt,e.directive=ct,e.plugin=pt,e.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',e.setDefaultProps=ft,e.tippy=qe,e.useSingleton=nt,e.useTippy=tt,e.useTippyComponent=function(e={},n){const o=t.ref();return{instance:o,TippyComponent:t.h(it,{...e,onVnodeMounted:e=>{o.value=e.component.ctx}},n)}},Object.defineProperty(e,"__esModule",{value:!0}),e}({},Vue);
6
+ var VueTippy=function(e,t){"use strict";var n="top",o="bottom",r="right",i="left",a=[n,o,r,i],s=a.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),u=[].concat(a,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),c=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function p(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 l(e){return e instanceof f(e).Element||e instanceof Element}function d(e){return e instanceof f(e).HTMLElement||e instanceof HTMLElement}function v(e){return"undefined"!=typeof ShadowRoot&&(e instanceof f(e).ShadowRoot||e instanceof ShadowRoot)}var m={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]||{},o=t.attributes[e]||{},r=t.elements[e];d(r)&&p(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.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 o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});d(o)&&p(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function h(e){return e.split("-")[0]}var g=Math.max,y=Math.min,b=Math.round;function w(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(d(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(o=b(n.width)/a||1),i>0&&(r=b(n.height)/i||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function x(e){var t=w(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function O(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&v(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function T(e){return f(e).getComputedStyle(e)}function E(e){return["table","td","th"].indexOf(p(e))>=0}function A(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function C(e){return"html"===p(e)?e:e.assignedSlot||e.parentNode||(v(e)?e.host:null)||A(e)}function D(e){return d(e)&&"fixed"!==T(e).position?e.offsetParent:null}function M(e){for(var t=f(e),n=D(e);n&&E(n)&&"static"===T(n).position;)n=D(n);return n&&("html"===p(n)||"body"===p(n)&&"static"===T(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&d(e)&&"fixed"===T(e).position)return null;for(var n=C(e);d(n)&&["html","body"].indexOf(p(n))<0;){var o=T(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function P(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function j(e,t,n){return g(e,y(t,n))}function L(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function R(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function k(e){return e.split("-")[1]}var S={top:"auto",right:"auto",bottom:"auto",left:"auto"};function H(e){var t,a=e.popper,s=e.popperRect,u=e.placement,c=e.variation,p=e.offsets,l=e.position,d=e.gpuAcceleration,v=e.adaptive,m=e.roundOffsets,h=e.isFixed,g=!0===m?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:b(e.x*n)/n||0,y:b(t*n)/n||0}}(p):"function"==typeof m?m(p):p,y=g.x,w=void 0===y?0:y,x=g.y,O=void 0===x?0:x,E=p.hasOwnProperty("x"),C=p.hasOwnProperty("y"),D=i,P=n,j=window;if(v){var L=M(a),R="clientHeight",k="clientWidth";if(L===f(a)&&"static"!==T(L=A(a)).position&&"absolute"===l&&(R="scrollHeight",k="scrollWidth"),L=L,u===n||(u===i||u===r)&&"end"===c)P=o,O-=(h&&j.visualViewport?j.visualViewport.height:L[R])-s.height,O*=d?1:-1;if(u===i||(u===n||u===o)&&"end"===c)D=r,w-=(h&&j.visualViewport?j.visualViewport.width:L[k])-s.width,w*=d?1:-1}var H,V=Object.assign({position:l},v&&S);return Object.assign({},V,d?((H={})[P]=C?"0":"",H[D]=E?"0":"",H.transform=(j.devicePixelRatio||1)<=1?"translate("+w+"px, "+O+"px)":"translate3d("+w+"px, "+O+"px, 0)",H):((t={})[P]=C?O+"px":"",t[D]=E?w+"px":"",t.transform="",t))}var V={passive:!0};var B={left:"right",right:"left",bottom:"top",top:"bottom"};function I(e){return e.replace(/left|right|bottom|top/g,(function(e){return B[e]}))}var W={start:"end",end:"start"};function N(e){return e.replace(/start|end/g,(function(e){return W[e]}))}function U(e){var t=f(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _(e){return w(A(e)).left+U(e).scrollLeft}function q(e){var t=T(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function $(e,t){var n;void 0===t&&(t=[]);var o=function e(t){return["html","body","#document"].indexOf(p(t))>=0?t.ownerDocument.body:d(t)&&q(t)?t:e(C(t))}(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=f(o),a=r?[i].concat(i.visualViewport||[],q(o)?o:[]):o,s=t.concat(a);return r?s:s.concat($(C(a)))}function F(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function z(e,t){return"viewport"===t?F(function(e){var t=f(e),n=A(e),o=t.visualViewport,r=n.clientWidth,i=n.clientHeight,a=0,s=0;return o&&(r=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=o.offsetLeft,s=o.offsetTop)),{width:r,height:i,x:a+_(e),y:s}}(e)):l(t)?function(e){var t=w(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):F(function(e){var t,n=A(e),o=U(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=g(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=g(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+_(e),u=-o.scrollTop;return"rtl"===T(r||n).direction&&(s+=g(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(A(e)))}function X(e,t,n){var o="clippingParents"===t?function(e){var t=$(C(e)),n=["absolute","fixed"].indexOf(T(e).position)>=0,o=n&&d(e)?M(e):e;return l(o)?t.filter((function(e){return l(e)&&O(e,o)&&"body"!==p(e)&&(!n||"static"!==T(e).position)})):[]}(e):[].concat(t),r=[].concat(o,[n]),i=r.reduce((function(t,n){var o=z(e,n);return t.top=g(o.top,t.top),t.right=y(o.right,t.right),t.bottom=y(o.bottom,t.bottom),t.left=g(o.left,t.left),t}),z(e,r[0]));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Y(e){var t,a=e.reference,s=e.element,u=e.placement,c=u?h(u):null,p=u?k(u):null,f=a.x+a.width/2-s.width/2,l=a.y+a.height/2-s.height/2;switch(c){case n:t={x:f,y:a.y-s.height};break;case o:t={x:f,y:a.y+a.height};break;case r:t={x:a.x+a.width,y:l};break;case i:t={x:a.x-s.width,y:l};break;default:t={x:a.x,y:a.y}}var d=c?P(c):null;if(null!=d){var v="y"===d?"height":"width";switch(p){case"start":t[d]=t[d]-(a[v]/2-s[v]/2);break;case"end":t[d]=t[d]+(a[v]/2-s[v]/2)}}return t}function G(e,t){void 0===t&&(t={});var i=t.placement,s=void 0===i?e.placement:i,u=t.boundary,c=void 0===u?"clippingParents":u,p=t.rootBoundary,f=void 0===p?"viewport":p,d=t.elementContext,v=void 0===d?"popper":d,m=t.altBoundary,h=void 0!==m&&m,g=t.padding,y=void 0===g?0:g,b=L("number"!=typeof y?y:R(y,a)),x=e.rects.popper,O=e.elements[h?"popper"===v?"reference":"popper":v],T=X(l(O)?O:O.contextElement||A(e.elements.popper),c,f),E=w(e.elements.reference),C=Y({reference:E,element:x,strategy:"absolute",placement:s}),D=F(Object.assign({},x,C)),M="popper"===v?D:E,P={top:T.top-M.top+b.top,bottom:M.bottom-T.bottom+b.bottom,left:T.left-M.left+b.left,right:M.right-T.right+b.right},j=e.modifiersData.offset;if("popper"===v&&j){var k=j[s];Object.keys(P).forEach((function(e){var t=[r,o].indexOf(e)>=0?1:-1,i=[n,o].indexOf(e)>=0?"y":"x";P[e]+=k[i]*t}))}return P}function J(e,t){void 0===t&&(t={});var n=t.boundary,o=t.rootBoundary,r=t.padding,i=t.flipVariations,c=t.allowedAutoPlacements,p=void 0===c?u:c,f=k(t.placement),l=f?i?s:s.filter((function(e){return k(e)===f})):a,d=l.filter((function(e){return p.indexOf(e)>=0}));0===d.length&&(d=l);var v=d.reduce((function(t,i){return t[i]=G(e,{placement:i,boundary:n,rootBoundary:o,padding:r})[h(i)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}function K(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 Q(e){return[n,r,o,i].some((function(t){return e[t]>=0}))}function Z(e,t,n){void 0===n&&(n=!1);var o,r,i=d(t),a=d(t)&&function(e){var t=e.getBoundingClientRect(),n=b(t.width)/e.offsetWidth||1,o=b(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),s=A(t),u=w(e,a),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==p(t)||q(s))&&(c=(o=t)!==f(o)&&d(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:U(o)),d(t)?((l=w(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=_(s))),{x:u.left+c.scrollLeft-l.x,y:u.top+c.scrollTop-l.y,width:u.width,height:u.height}}function ee(e){var t=new Map,n=new Set,o=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(o){if(!n.has(o)){var r=t.get(o);r&&e(r)}})),o.push(r)}(e)})),o}var te={placement:"bottom",modifiers:[],strategy:"absolute"};function ne(){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 oe(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,o=e.defaultOptions,r=void 0===o?te:o;return function(e,t,o){void 0===o&&(o=r);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},te,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],p=!1,f={state:s,setOptions:function(o){var i="function"==typeof o?o(s.options):o;d(),s.options=Object.assign({},r,s.options,i),s.scrollParents={reference:l(e)?$(e):e.contextElement?$(e.contextElement):[],popper:$(t)};var a,p,v=function(e){var t=ee(e);return c.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(n,s.options.modifiers),p=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(p).map((function(e){return p[e]}))));return s.orderedModifiers=v.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.options,n=e.effect;if("function"==typeof n){var o=n({state:s,name:e.name,instance:f,options:void 0===t?{}:t});u.push(o||function(){})}})),f.update()},forceUpdate:function(){if(!p){var e=s.elements,t=e.reference,n=e.popper;if(ne(t,n)){s.rects={reference:Z(t,M(n),"fixed"===s.options.strategy),popper:x(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 o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var r=s.orderedModifiers[o],i=r.fn,a=r.options;"function"==typeof i&&(s=i({state:s,options:void 0===a?{}:a,name:r.name,instance:f})||s)}else s.reset=!1,o=-1}}},update:(i=function(){return new Promise((function(e){f.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){d(),p=!0}};if(!ne(e,t))return f;function d(){u.forEach((function(e){return e()})),u=[]}return f.setOptions(o).then((function(e){!p&&o.onFirstUpdate&&o.onFirstUpdate(e)})),f}}var re=oe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,a=o.resize,s=void 0===a||a,u=f(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,V)})),s&&u.addEventListener("resize",n.update,V),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,V)})),s&&u.removeEventListener("resize",n.update,V)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=Y({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,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s,c={placement:h(t.placement),variation:k(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,H(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,H(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},m,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.name,a=e.options.offset,s=void 0===a?[0,0]:a,c=u.reduce((function(e,o){return e[o]=function(e,t,o){var a=h(e),s=[i,n].indexOf(a)>=0?-1:1,u="function"==typeof o?o(Object.assign({},t,{placement:e})):o,c=u[0],p=u[1];return c=c||0,p=(p||0)*s,[i,r].indexOf(a)>=0?{x:p,y:c}:{x:c,y:p}}(o,t.rects,s),e}),{}),p=c[t.placement],f=p.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=p.x,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var u=a.mainAxis,c=void 0===u||u,p=a.altAxis,f=void 0===p||p,l=a.fallbackPlacements,d=a.padding,v=a.boundary,m=a.rootBoundary,g=a.altBoundary,y=a.flipVariations,b=void 0===y||y,w=a.allowedAutoPlacements,x=t.options.placement,O=h(x),T=l||(O===x||!b?[I(x)]:function(e){if("auto"===h(e))return[];var t=I(e);return[N(e),t,N(t)]}(x)),E=[x].concat(T).reduce((function(e,n){return e.concat("auto"===h(n)?J(t,{placement:n,boundary:v,rootBoundary:m,padding:d,flipVariations:b,allowedAutoPlacements:w}):n)}),[]),A=t.rects.reference,C=t.rects.popper,D=new Map,M=!0,P=E[0],j=0;j<E.length;j++){var L=E[j],R=h(L),S="start"===k(L),H=[n,o].indexOf(R)>=0,V=H?"width":"height",B=G(t,{placement:L,boundary:v,rootBoundary:m,altBoundary:g,padding:d}),W=H?S?r:i:S?o:n;A[V]>C[V]&&(W=I(W));var U=I(W),_=[];if(c&&_.push(B[R]<=0),f&&_.push(B[W]<=0,B[U]<=0),_.every((function(e){return e}))){P=L,M=!1;break}D.set(L,_)}if(M)for(var q=function(e){var t=E.find((function(t){var n=D.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},$=b?3:1;$>0;$--){if("break"===q($))break}t.placement!==P&&(t.modifiersData[s]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,s=e.name,u=a.mainAxis,c=void 0===u||u,p=a.altAxis,f=void 0!==p&&p,l=a.tether,d=void 0===l||l,v=a.tetherOffset,m=void 0===v?0:v,b=G(t,{boundary:a.boundary,rootBoundary:a.rootBoundary,padding:a.padding,altBoundary:a.altBoundary}),w=h(t.placement),O=k(t.placement),T=!O,E=P(w),A="x"===E?"y":"x",C=t.modifiersData.popperOffsets,D=t.rects.reference,L=t.rects.popper,R="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,S="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(C){if(c){var B,I="y"===E?n:i,W="y"===E?o:r,N="y"===E?"height":"width",U=C[E],_=U+b[I],q=U-b[W],$=d?-L[N]/2:0,F="start"===O?D[N]:L[N],z="start"===O?-L[N]:-D[N],X=t.elements.arrow,Y=d&&X?x(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=J[I],Q=J[W],Z=j(0,D[N],Y[N]),ee=T?D[N]/2-$-Z-K-S.mainAxis:F-Z-K-S.mainAxis,te=T?-D[N]/2+$+Z+Q+S.mainAxis:z+Z+Q+S.mainAxis,ne=t.elements.arrow&&M(t.elements.arrow),oe=null!=(B=null==H?void 0:H[E])?B:0,re=U+te-oe,ie=j(d?y(_,U+ee-oe-(ne?"y"===E?ne.clientTop||0:ne.clientLeft||0:0)):_,U,d?g(q,re):q);C[E]=ie,V[E]=ie-U}if(f){var ae,se=C[A],ue="y"===A?"height":"width",ce=se+b["x"===E?n:i],pe=se-b["x"===E?o:r],fe=-1!==[n,i].indexOf(w),le=null!=(ae=null==H?void 0:H[A])?ae:0,de=fe?ce:se-D[ue]-L[ue]-le+S.altAxis,ve=fe?se+D[ue]+L[ue]-le-S.altAxis:pe,me=d&&fe?function(e,t,n){var o=j(e,t,n);return o>n?n:o}(de,se,ve):j(d?de:ce,se,d?ve:pe);C[A]=me,V[A]=me-se}t.modifiersData[s]=V}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,s=e.state,u=e.name,c=e.options,p=s.elements.arrow,f=s.modifiersData.popperOffsets,l=h(s.placement),d=P(l),v=[i,r].indexOf(l)>=0?"height":"width";if(p&&f){var m=function(e,t){return L("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:R(e,a))}(c.padding,s),g=x(p),y="y"===d?n:i,b="y"===d?o:r,w=s.rects.reference[v]+s.rects.reference[d]-f[d]-s.rects.popper[v],O=f[d]-s.rects.reference[d],T=M(p),E=T?"y"===d?T.clientHeight||0:T.clientWidth||0:0,A=E/2-g[v]/2+(w/2-O/2),C=j(m[y],A,E-g[v]-m[b]);s.modifiersData[u]=((t={})[d]=C,t.centerOffset=C-A,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&O(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=G(t,{elementContext:"reference"}),s=G(t,{altBoundary:!0}),u=K(a,o),c=K(s,r,i),p=Q(u),f=Q(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}}]}),ie={passive:!0,capture:!0},ae=function(){return document.body};function se(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function ue(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ce(e,t){return"function"==typeof e?e.apply(void 0,t):e}function pe(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function fe(e){return[].concat(e)}function le(e,t){-1===e.indexOf(t)&&e.push(t)}function de(e){return e.split("-")[0]}function ve(e){return[].slice.call(e)}function me(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function he(){return document.createElement("div")}function ge(e){return["Element","Fragment"].some((function(t){return ue(e,t)}))}function ye(e){return ue(e,"MouseEvent")}function be(e){return ge(e)?[e]:function(e){return ue(e,"NodeList")}(e)?ve(e):Array.isArray(e)?e:ve(document.querySelectorAll(e))}function we(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function xe(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Oe(e){var t,n=fe(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Te(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function Ee(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var Ae={isTouch:!1},Ce=0;function De(){Ae.isTouch||(Ae.isTouch=!0,window.performance&&document.addEventListener("mousemove",Me))}function Me(){var e=performance.now();e-Ce<20&&(Ae.isTouch=!1,document.removeEventListener("mousemove",Me)),Ce=e}function Pe(){var e,t=document.activeElement;(e=t)&&e._tippy&&e._tippy.reference===e&&(t.blur&&!t._tippy.state.isVisible&&t.blur())}var je=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Le=Object.assign({appendTo:ae,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}),Re=Object.keys(Le);function ke(e){var t=(e.plugins||[]).reduce((function(t,n){var o,r=n.name;r&&(t[r]=void 0!==e[r]?e[r]:null!=(o=Le[r])?o:n.defaultValue);return t}),{});return Object.assign({},e,t)}function Se(e,t){var n=Object.assign({},t,{content:ce(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(ke(Object.assign({},Le,{plugins:t}))):Re).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Le.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 He(e,t){e.innerHTML=t}function Ve(e){var t=he();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",ge(e)?t.appendChild(e):He(t,e)),t}function Be(e,t){ge(t.content)?(He(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?He(e,t.content):e.textContent=t.content)}function Ie(e){var t=e.firstElementChild,n=ve(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 We(e){var t=he(),n=he();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=he();function r(n,o){var r=Ie(t),i=r.box,a=r.content,s=r.arrow;o.theme?i.setAttribute("data-theme",o.theme):i.removeAttribute("data-theme"),"string"==typeof o.animation?i.setAttribute("data-animation",o.animation):i.removeAttribute("data-animation"),o.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?i.setAttribute("role",o.role):i.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||Be(a,e.props),o.arrow?s?n.arrow!==o.arrow&&(i.removeChild(s),i.appendChild(Ve(o.arrow))):i.appendChild(Ve(o.arrow)):s&&i.removeChild(s)}return o.className="tippy-content",o.setAttribute("data-state","hidden"),Be(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}We.$$tippy=!0;var Ne=1,Ue=[],_e=[];function qe(e,t){var n,o,r,i,a,s,u,c,p=Se(e,Object.assign({},Le,ke(me(t)))),f=!1,l=!1,d=!1,v=!1,m=[],h=pe(X,p.interactiveDebounce),g=Ne++,y=(c=p.plugins).filter((function(e,t){return c.indexOf(e)===t})),b={id:g,reference:e,popper:he(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){if(b.state.isDestroyed)return;k("onBeforeUpdate",[b,t]),F();var n=b.props,o=Se(e,Object.assign({},n,me(t),{ignoreAttributes:!0}));b.props=o,$(),n.interactiveDebounce!==o.interactiveDebounce&&(V(),h=pe(X,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?fe(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");H(),R(),O&&O(n,o);b.popperInstance&&(K(),Z().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));k("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,o=Ae.isTouch&&!b.props.touch,r=se(b.props.duration,0,Le.duration);if(e||t||n||o)return;if(M().hasAttribute("disabled"))return;if(k("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,D()&&(x.style.visibility="visible");R(),N(),b.state.isMounted||(x.style.transition="none");if(D()){var i=j();we([i.box,i.content],0)}s=function(){var e;if(b.state.isVisible&&!v){if(v=!0,x.style.transition=b.props.moveTransition,D()&&b.props.animation){var t=j(),n=t.box,o=t.content;we([n,o],r),xe([n,o],"visible")}S(),H(),le(_e,b),null==(e=b.popperInstance)||e.forceUpdate(),k("onMount",[b]),b.props.animation&&D()&&function(e,t){_(e,t)}(r,(function(){b.state.isShown=!0,k("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=M();e=b.props.interactive&&t===ae||"parent"===t?n.parentNode:ce(t,[n]);e.contains(x)||e.appendChild(x);b.state.isMounted=!0,K()}()},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,o=se(b.props.duration,1,Le.duration);if(e||t||n)return;if(k("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,v=!1,f=!1,D()&&(x.style.visibility="hidden");if(V(),U(),R(!0),D()){var r=j(),i=r.box,a=r.content;b.props.animation&&(we([i,a],o),xe([i,a],"hidden"))}S(),H(),b.props.animation?D()&&function(e,t){_(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(o,b.unmount):b.unmount()},hideWithInteractivity:function(e){P().addEventListener("mousemove",h),le(Ue,h),h(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Q(),Z().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);_e=_e.filter((function(e){return e!==b})),b.state.isMounted=!1,k("onHidden",[b])},destroy:function(){if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),F(),delete e._tippy,b.state.isDestroyed=!0,k("onDestroy",[b])}};if(!p.render)return b;var w=p.render(b),x=w.popper,O=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var T=y.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return $(),H(),R(),k("onCreate",[b]),p.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",h)})),b;function A(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===A()[0]}function D(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function M(){return u||e}function P(){var e=M().parentNode;return e?Oe(e):document}function j(){return Ie(x)}function L(e){return b.state.isMounted&&!b.state.isVisible||Ae.isTouch||i&&"focus"===i.type?0:se(b.props.delay,e?0:1,Le.delay)}function R(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function k(e,t,n){var o;(void 0===n&&(n=!0),T.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(o=b.props)[e].apply(o,t)}function S(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,o=x.id;fe(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function H(){!E&&b.props.aria.expanded&&fe(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")}))}function V(){P().removeEventListener("mousemove",h),Ue=Ue.filter((function(e){return e!==h}))}function B(t){if(!Ae.isTouch||!d&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Ee(x,n)){if(fe(b.props.triggerTarget||e).some((function(e){return Ee(e,n)}))){if(Ae.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else k("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout((function(){l=!1})),b.state.isMounted||U())}}}function I(){d=!0}function W(){d=!1}function N(){var e=P();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,ie),e.addEventListener("touchstart",W,ie),e.addEventListener("touchmove",I,ie)}function U(){var e=P();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,ie),e.removeEventListener("touchstart",W,ie),e.removeEventListener("touchmove",I,ie)}function _(e,t){var n=j().box;function o(e){e.target===n&&(Te(n,"remove",o),t())}if(0===e)return t();Te(n,"remove",a),Te(n,"add",o),a=o}function q(t,n,o){void 0===o&&(o=!1),fe(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})}))}function $(){var e;C()&&(q("touchstart",z,{passive:!0}),q("touchend",Y,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(q(e,z),e){case"mouseenter":q("mouseleave",Y);break;case"focus":q(je?"focusout":"blur",G);break;case"focusin":q("focusout",G)}}))}function F(){m.forEach((function(e){e.node.removeEventListener(e.eventType,e.handler,e.options)})),m=[]}function z(e){var t,n=!1;if(b.state.isEnabled&&!J(e)&&!l){var o="focus"===(null==(t=i)?void 0:t.type);i=e,u=e.currentTarget,H(),!b.state.isVisible&&ye(e)&&Ue.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!o&&te(e)}}function X(e){var t=e.target,n=M().contains(t)||x.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,i=e.props.interactiveBorder,a=de(r.placement),s=r.modifiersData.offset;return!s||(t.top-o+("bottom"===a?s.top.y:0)>i||o-t.bottom-("top"===a?s.bottom.y:0)>i||t.left-n+("right"===a?s.left.x:0)>i||n-t.right-("left"===a?s.right.x:0)>i)}))}(Z().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:p}:null})).filter(Boolean),e)&&(V(),te(e))}function Y(e){J(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function G(e){b.props.trigger.indexOf("focusin")<0&&e.target!==M()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function J(e){return!!Ae.isTouch&&C()!==e.type.indexOf("touch")>=0}function K(){Q();var t=b.props,n=t.popperOptions,o=t.placement,r=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,u=D()?Ie(x).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||M()}:e,p=[{name:"offset",options:{offset:r}},{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=j().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()&&u&&p.push({name:"arrow",options:{element:u,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),b.popperInstance=re(c,x,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:p}))}function Q(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Z(){return ve(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&k("onTrigger",[b,e]),N();var t=L(!0),o=A(),r=o[1];Ae.isTouch&&"hold"===o[0]&&r&&(t=r),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),k("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=L(!1);t?o=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else U()}}function $e(e,t){void 0===t&&(t={});var n=Le.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",De,ie),window.addEventListener("blur",Pe);var o=Object.assign({},t,{plugins:n}),r=be(e).reduce((function(e,t){var n=t&&qe(t,o);return n&&e.push(n),e}),[]);return ge(e)?r[0]:r}$e.defaultProps=Le,$e.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Le[t]=e[t]}))},$e.currentInput=Ae;var Fe=Object.assign({},m,{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)}}),ze=function(e,t){var n;void 0===t&&(t={});var o,r=e,i=[],a=[],s=t.overrides,u=[],c=!1;function p(){a=r.map((function(e){return fe(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function f(){i=r.map((function(e){return e.reference}))}function l(e){r.forEach((function(t){e?t.enable():t.disable()}))}function d(e){return r.map((function(t){var n=t.setProps;return t.setProps=function(r){n(r),t.reference===o&&e.setProps(r)},function(){t.setProps=n}}))}function v(e,t){var n=a.indexOf(t);if(t!==o){o=t;var u=(s||[]).concat("content").reduce((function(e,t){return e[t]=r[n].props[t],e}),{});e.setProps(Object.assign({},u,{getReferenceClientRect:"function"==typeof u.getReferenceClientRect?u.getReferenceClientRect:function(){var e;return null==(e=i[n])?void 0:e.getBoundingClientRect()}}))}}l(!1),f(),p();var m,h,g={fn:function(){return{onDestroy:function(){l(!0)},onHidden:function(){o=null},onClickOutside:function(e){e.props.showOnCreate&&!c&&(c=!0,o=null)},onShow:function(e){e.props.showOnCreate&&!c&&(c=!0,v(e,i[0]))},onTrigger:function(e,t){v(e,t.currentTarget)}}}},y=$e(he(),Object.assign({},(m=["overrides"],h=Object.assign({},t),m.forEach((function(e){delete h[e]})),h),{plugins:[g].concat(t.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[Fe])})})),b=y.show;y.show=function(e){return b(),o||null!=e?o&&null==e?void 0:"number"==typeof e?i[e]&&v(y,i[e]):r.indexOf(e)>=0?v(y,e.reference):i.indexOf(e)>=0?v(y,e):void 0:v(y,i[0])},y.showNext=function(){var e=i[0];if(!o)return y.show(0);var t=i.indexOf(o);y.show(i[t+1]||e)},y.showPrevious=function(){var e=i[i.length-1];if(!o)return y.show(e);var t=i.indexOf(o);y.show(i[t-1]||e)};var w=y.setProps;return y.setProps=function(e){s=e.overrides||s,w(e)},y.setInstances=function(e){l(!0),u.forEach((function(e){return e()})),r=e,l(!1),f(),p(),u=d(y),y.setProps({triggerTarget:a})},u=d(y),y},Xe={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=Ie(e.popper),o=n.box,r=n.content,i=e.props.animateFill?function(){var e=he();return e.className="tippy-backdrop",xe([e],"hidden"),e}():null;return{onCreate:function(){i&&(o.insertBefore(i,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var e=o.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",i.style.transitionDuration=e,xe([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&xe([i],"hidden")}}}};var Ye={clientX:0,clientY:0},Ge=[];function Je(e){Ye={clientX:e.clientX,clientY:e.clientY}}var Ke={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=Oe(e.props.triggerTarget||t),o=!1,r=!1,i=!0,a=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function u(){n.addEventListener("mousemove",f)}function c(){n.removeEventListener("mousemove",f)}function p(){o=!0,e.setProps({getReferenceClientRect:null}),o=!1}function f(n){var o=!n.target||t.contains(n.target),r=e.props.followCursor,i=n.clientX,a=n.clientY,s=t.getBoundingClientRect(),u=i-s.left,c=a-s.top;!o&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,o=a;"initial"===r&&(n=e.left+u,o=e.top+c);var s="horizontal"===r?e.top:o,p="vertical"===r?e.right:n,f="horizontal"===r?e.bottom:o,l="vertical"===r?e.left:n;return{width:p-l,height:f-s,top:s,right:p,bottom:f,left:l}}})}function l(){e.props.followCursor&&(Ge.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",Je)}(n))}function d(){0===(Ge=Ge.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",Je)}(n)}return{onCreate:l,onDestroy:d,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;o||void 0!==i&&a.followCursor!==i&&(d(),i?(l(),!e.state.isMounted||r||s()||u()):(c(),p()))},onMount:function(){e.props.followCursor&&!r&&(i&&(f(Ye),i=!1),s()||u())},onTrigger:function(e,t){ye(t)&&(Ye={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(p(),c(),i=!0)}}}};var Qe={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var o=-1,r=!1,i=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var a=r.state;e.props.inlinePositioning&&(-1!==i.indexOf(a.placement)&&(i=[]),t!==a.placement&&-1===i.indexOf(a.placement)&&(i.push(a.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,o){if(n.length<2||null===e)return t;if(2===n.length&&o>=0&&n[0].left>n[1].right)return n[o]||t;switch(e){case"top":case"bottom":var r=n[0],i=n[n.length-1],a="top"===e,s=r.top,u=i.bottom,c=a?r.left:i.left,p=a?r.right:i.right;return{top:s,bottom:u,left:c,right:p,width:p-c,height:u-s};case"left":case"right":var f=Math.min.apply(Math,n.map((function(e){return e.left}))),l=Math.max.apply(Math,n.map((function(e){return e.right}))),d=n.filter((function(t){return"left"===e?t.left===f:t.right===l})),v=d[0].top,m=d[d.length-1].bottom;return{top:v,bottom:m,left:f,right:l,width:l-f,height:m-v};default:return t}}(de(e),n.getBoundingClientRect(),ve(n.getClientRects()),o)}(a.placement)}})),t=a.placement)}};function s(){var t;r||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,a),r=!0,e.setProps(t),r=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(ye(n)){var r=ve(e.reference.getClientRects()),i=r.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),a=r.indexOf(i);o=a>-1?a:o}},onHidden:function(){o=-1}}}};var Ze={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function o(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,i=null;function a(){var s=o("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,u=o("popper")?n.getBoundingClientRect():null;(s&&et(r,s)||u&&et(i,u))&&e.popperInstance&&e.popperInstance.update(),r=s,i=u,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function et(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}function tt(e,n={},o={mount:!0}){const r=t.getCurrentInstance(),i=t.ref(),a=t.ref({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1});let s=null;const u=()=>s||(s=document.createDocumentFragment(),s),c=e=>{let n,o=t.isRef(e)?e.value:e;if(t.isVNode(o))r&&(o.appContext=r.appContext),t.render(o,u()),n=()=>u();else if("object"==typeof o){let e=t.h(o);r&&(e.appContext=r.appContext),t.render(e,u()),n=()=>u()}else n=o;return n},p=e=>{let n={};return n=t.isRef(e)?e.value||{}:(t.isReactive(e),{...e}),n.content&&(n.content=c(n.content)),n.triggerTarget&&(n.triggerTarget=t.isRef(n.triggerTarget)?n.triggerTarget.value:n.triggerTarget),n.plugins&&Array.isArray(n.plugins)||(n.plugins=[]),n.plugins=n.plugins.filter(e=>"vueTippyReactiveState"!==e.name),n.plugins.push({name:"vueTippyReactiveState",fn:()=>({onCreate(){a.value.isEnabled=!0},onMount(){a.value.isMounted=!0},onShow(){a.value.isMounted=!0,a.value.isVisible=!0},onShown(){a.value.isShown=!0},onHide(){a.value.isMounted=!1,a.value.isVisible=!1},onHidden(){a.value.isShown=!1},onUnmounted(){a.value.isMounted=!1},onDestroy(){a.value.isDestroyed=!0}})}),n},f=()=>{i.value&&i.value.setProps(p(n))},l=()=>{i.value&&n.content&&i.value.setContent(c(n.content))},d=()=>{i.value&&(i.value.destroy(),i.value=void 0),s=null},v=()=>{if(!e)return;let o=t.isRef(e)?e.value:e;"function"==typeof o&&(o=o()),o&&(i.value=$e(o,p(n)),o.$tippy=m)},m={tippy:i,refresh:f,refreshContent:l,setContent:e=>{var t;null===(t=i.value)||void 0===t||t.setContent(c(e))},setProps:e=>{var t;null===(t=i.value)||void 0===t||t.setProps(p(e))},destroy:d,hide:()=>{var e;null===(e=i.value)||void 0===e||e.hide()},show:()=>{var e;null===(e=i.value)||void 0===e||e.show()},disable:()=>{var e;null===(e=i.value)||void 0===e||e.disable(),a.value.isEnabled=!1},enable:()=>{var e;null===(e=i.value)||void 0===e||e.enable(),a.value.isEnabled=!0},unmount:()=>{var e;null===(e=i.value)||void 0===e||e.unmount()},mount:v,state:a};return o.mount&&(r?(r.isMounted?v():t.onMounted(v),t.onUnmounted(()=>{d()})):v()),t.isRef(n)||t.isReactive(n)?t.watch(n,f,{immediate:!1}):t.isRef(n.content)&&t.watch(n.content,l,{immediate:!1}),m}function nt(e,n){const o=t.ref();return t.onMounted(()=>{const t=(Array.isArray(e)?e.map(e=>e.value):"function"==typeof e?e():e.value).map(e=>e instanceof Element?e._tippy:e).filter(Boolean);o.value=ze(t,n?{allowHTML:!0,...n}:{allowHTML:!0})}),{singleton:o}}$e.setDefaultProps({render:We}),$e.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});const ot=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let rt={};Object.keys($e.defaultProps).forEach(e=>{rt[e]=ot.includes(e)?{type:"arrow"===e?[String,Boolean,SVGElement,DocumentFragment]:Boolean,default:function(){return $e.defaultProps[e]}}:{default:function(){return $e.defaultProps[e]}}}),rt.to={},rt.tag={default:"span"},rt.contentTag={default:"span"},rt.contentClass={default:null};const it=t.defineComponent({props:rt,emits:["state"],setup(e,{slots:n,emit:o,expose:r}){const i=t.ref(),a=t.ref(),s=t.ref(!1);let u={...e};for(const e of["to","tag","contentTag","contentClass"])u.hasOwnProperty(e)&&delete u[e];let c=i;e.to&&("undefined"!=typeof Element&&e.to instanceof Element?c=()=>e.to:("string"==typeof e.to||e.to instanceof String)&&(c=()=>document.querySelector(e.to)));const p=tt(c,u);t.onMounted(()=>{s.value=!0,t.nextTick(()=>{n.content&&p.setContent(()=>a.value)})}),t.watch(p.state,()=>{o("state",t.unref(p.state))},{immediate:!0,deep:!0}),t.watch(e,()=>{p.setProps(e)});let f={elem:i,contentElem:a,mounted:s,...p};r(f);const l=n.default?n.default(f):[];return()=>t.h(e.tag,{ref:i,"data-v-tippy":""},n.content?[l,t.h(e.contentTag,{ref:a,style:{display:s.value?"inherit":"none"},class:e.contentClass},n.content(f))]:l)}}),at=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let st={};Object.keys($e.defaultProps).forEach(e=>{st[e]=at.includes(e)?{type:Boolean,default:function(){return $e.defaultProps[e]}}:{default:function(){return $e.defaultProps[e]}}});const ut=t.defineComponent({props:st,setup(e){const n=t.ref([]),{singleton:o}=nt(n,e);return{instances:n,singleton:o}},mounted(){var e;const t=this.$el.parentElement.querySelectorAll("[data-v-tippy]");this.instances=Array.from(t).map(e=>e._tippy).filter(Boolean),null===(e=this.singleton)||void 0===e||e.setInstances(this.instances)},render(){let e=this.$slots.default?this.$slots.default():[];return t.h(()=>e)}}),ct={mounted(e,t,n){const o="string"==typeof t.value?{content:t.value}:t.value||{},r=Object.keys(t.modifiers||{}),i=r.find(e=>"arrow"!==e),a=-1!==r.findIndex(e=>"arrow"===e);i&&(o.placement=o.placement||i),a&&(o.arrow=void 0===o.arrow||o.arrow),n.props&&n.props.onTippyShow&&(o.onShow=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyShow(...e)}),n.props&&n.props.onTippyShown&&(o.onShown=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyShown(...e)}),n.props&&n.props.onTippyHidden&&(o.onHidden=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyHidden(...e)}),n.props&&n.props.onTippyHide&&(o.onHide=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyHide(...e)}),n.props&&n.props.onTippyMount&&(o.onMount=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyMount(...e)}),e.getAttribute("title")&&!o.content&&(o.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!o.content&&(o.content=e.getAttribute("content")),tt(e,o)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const n="string"==typeof t.value?{content:t.value}:t.value||{};e.getAttribute("title")&&!n.content&&(n.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!n.content&&(n.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(n||{}):e._tippy&&e._tippy.setProps(n||{})}},pt={install(e,t={}){$e.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",ct),e.component(t.component||"tippy",it),e.component(t.componentSingleton||"tippy-singleton",ut)}},ft=$e.setDefaultProps;return ft({ignoreAttributes:!0,plugins:[Ze,Qe,Ke,Xe]}),e.Tippy=it,e.TippySingleton=ut,e.default=pt,e.directive=ct,e.plugin=pt,e.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',e.setDefaultProps=ft,e.tippy=$e,e.useSingleton=nt,e.useTippy=tt,e.useTippyComponent=function(e={},n){const o=t.ref();return{instance:o,TippyComponent:t.h(it,{...e,onVnodeMounted:e=>{o.value=e.component.ctx}},n)}},Object.defineProperty(e,"__esModule",{value:!0}),e}({},Vue);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.48
2
+ * vue-tippy v6.0.0-alpha.51
3
3
  * (c) 2022
4
4
  * @license MIT
5
5
  */
@@ -4210,7 +4210,7 @@ let props = {};
4210
4210
  Object.keys(tippy.defaultProps).forEach((prop) => {
4211
4211
  if (booleanProps.includes(prop)) {
4212
4212
  props[prop] = {
4213
- type: Boolean,
4213
+ type: prop === 'arrow' ? [String, Boolean, SVGElement, DocumentFragment] : Boolean,
4214
4214
  default: function () {
4215
4215
  return tippy.defaultProps[prop];
4216
4216
  },
@@ -4237,7 +4237,7 @@ props['contentClass'] = {
4237
4237
  const TippyComponent = defineComponent({
4238
4238
  props,
4239
4239
  emits: ['state'],
4240
- setup(props, { slots, emit }) {
4240
+ setup(props, { slots, emit, expose }) {
4241
4241
  const elem = ref();
4242
4242
  const contentElem = ref();
4243
4243
  const mounted = ref(false);
@@ -4271,14 +4271,24 @@ const TippyComponent = defineComponent({
4271
4271
  watch(props, () => {
4272
4272
  tippy.setProps(props);
4273
4273
  });
4274
- return { elem, contentElem, mounted, ...tippy };
4275
- },
4276
- render(vm) {
4277
- let slot = this.$slots.default ? this.$slots.default(vm) : [];
4278
- return h(this.tag, { ref: 'elem', 'data-v-tippy': '' }, this.$slots.content ? [
4279
- slot,
4280
- h(this.contentTag, { ref: 'contentElem', style: { display: this.mounted ? 'inherit' : 'none' }, class: this.contentClass }, this.$slots.content(vm)),
4281
- ] : slot);
4274
+ let exposed = {
4275
+ elem,
4276
+ contentElem,
4277
+ mounted,
4278
+ ...tippy
4279
+ };
4280
+ expose(exposed);
4281
+ const slot = slots.default ? slots.default(exposed) : [];
4282
+ return () => {
4283
+ return h(props.tag, { ref: elem, 'data-v-tippy': '' }, slots.content ? [
4284
+ slot,
4285
+ h(props.contentTag, {
4286
+ ref: contentElem,
4287
+ style: { display: mounted.value ? 'inherit' : 'none' },
4288
+ class: props.contentClass
4289
+ }, slots.content(exposed)),
4290
+ ] : slot);
4291
+ };
4282
4292
  },
4283
4293
  });
4284
4294
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.48
2
+ * vue-tippy v6.0.0-alpha.51
3
3
  * (c) 2022
4
4
  * @license MIT
5
5
  */
@@ -4214,7 +4214,7 @@ let props = {};
4214
4214
  Object.keys(tippy.defaultProps).forEach((prop) => {
4215
4215
  if (booleanProps.includes(prop)) {
4216
4216
  props[prop] = {
4217
- type: Boolean,
4217
+ type: prop === 'arrow' ? [String, Boolean, SVGElement, DocumentFragment] : Boolean,
4218
4218
  default: function () {
4219
4219
  return tippy.defaultProps[prop];
4220
4220
  },
@@ -4241,7 +4241,7 @@ props['contentClass'] = {
4241
4241
  const TippyComponent = vue.defineComponent({
4242
4242
  props,
4243
4243
  emits: ['state'],
4244
- setup(props, { slots, emit }) {
4244
+ setup(props, { slots, emit, expose }) {
4245
4245
  const elem = vue.ref();
4246
4246
  const contentElem = vue.ref();
4247
4247
  const mounted = vue.ref(false);
@@ -4275,14 +4275,24 @@ const TippyComponent = vue.defineComponent({
4275
4275
  vue.watch(props, () => {
4276
4276
  tippy.setProps(props);
4277
4277
  });
4278
- return { elem, contentElem, mounted, ...tippy };
4279
- },
4280
- render(vm) {
4281
- let slot = this.$slots.default ? this.$slots.default(vm) : [];
4282
- return vue.h(this.tag, { ref: 'elem', 'data-v-tippy': '' }, this.$slots.content ? [
4283
- slot,
4284
- vue.h(this.contentTag, { ref: 'contentElem', style: { display: this.mounted ? 'inherit' : 'none' }, class: this.contentClass }, this.$slots.content(vm)),
4285
- ] : slot);
4278
+ let exposed = {
4279
+ elem,
4280
+ contentElem,
4281
+ mounted,
4282
+ ...tippy
4283
+ };
4284
+ expose(exposed);
4285
+ const slot = slots.default ? slots.default(exposed) : [];
4286
+ return () => {
4287
+ return vue.h(props.tag, { ref: elem, 'data-v-tippy': '' }, slots.content ? [
4288
+ slot,
4289
+ vue.h(props.contentTag, {
4290
+ ref: contentElem,
4291
+ style: { display: mounted.value ? 'inherit' : 'none' },
4292
+ class: props.contentClass
4293
+ }, slots.content(exposed)),
4294
+ ] : slot);
4295
+ };
4286
4296
  },
4287
4297
  });
4288
4298
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-tippy",
3
- "version": "6.0.0-alpha.48",
3
+ "version": "6.0.0-alpha.51",
4
4
  "main": "index.js",
5
5
  "module": "dist/vue-tippy.mjs",
6
6
  "unpkg": "dist/vue-tippy.iife.js",
@@ -29,6 +29,7 @@
29
29
  "sideEffects": false,
30
30
  "license": "MIT",
31
31
  "files": [
32
+ "src/**/*",
32
33
  "dist/*.js",
33
34
  "dist/*.mjs",
34
35
  "dist/*.cjs",
@@ -36,6 +37,7 @@
36
37
  "index.js",
37
38
  "index.cjs",
38
39
  "vetur/*.json",
40
+ "tsconfig.json",
39
41
  "LICENSE",
40
42
  "README.md"
41
43
  ],