forked from Akryum/floating-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathv-tooltip.min.js
1 lines (1 loc) · 53.2 KB
/
v-tooltip.min.js
1
var VTooltip=function(e){"use strict";for(var t="undefined"!=typeof window&&"undefined"!=typeof document,n=["Edge","Trident","Firefox"],o=0,r=0;r<n.length;r+=1)if(t&&navigator.userAgent.indexOf(n[r])>=0){o=1;break}var i=t&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},o))}};function s(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function p(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll)/.test(n+r+o)?e:u(p(e))}function f(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===a(t,"position")?f(t):t:e?e.ownerDocument.documentElement:document.documentElement}function l(e){return null!==e.parentNode?l(e.parentNode):e}function c(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var s,a,p=i.commonAncestorContainer;if(e!==p&&t!==p||o.contains(r))return"BODY"===(a=(s=p).nodeName)||"HTML"!==a&&f(s.firstElementChild)!==s?f(p):p;var u=l(e);return u.host?c(u.host,t):c(e,l(t).host)}function d(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[t]}return e[t]}function h(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+o+"Width"],10)}var v=void 0,m=function(){return void 0===v&&(v=-1!==navigator.appVersion.indexOf("MSIE 10")),v};function g(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],m()?n["offset"+e]+o["margin"+("Height"===e?"Top":"Left")]+o["margin"+("Height"===e?"Bottom":"Right")]:0)}function y(){var e=document.body,t=document.documentElement,n=m()&&getComputedStyle(t);return{height:g("Height",e,t,n),width:g("Width",e,t,n)}}var b=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},_=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),w=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function E(e){return O({},e,{right:e.left+e.width,bottom:e.top+e.height})}function C(e){var t={};if(m())try{t=e.getBoundingClientRect();var n=d(e,"top"),o=d(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}catch(e){}else t=e.getBoundingClientRect();var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?y():{},s=i.width||e.clientWidth||r.right-r.left,p=i.height||e.clientHeight||r.bottom-r.top,u=e.offsetWidth-s,f=e.offsetHeight-p;if(u||f){var l=a(e);u-=h(l,"x"),f-=h(l,"y"),r.width-=u,r.height-=f}return E(r)}function T(e,t){var n=m(),o="HTML"===t.nodeName,r=C(e),i=C(t),s=u(e),p=a(t),f=parseFloat(p.borderTopWidth,10),l=parseFloat(p.borderLeftWidth,10),c=E({top:r.top-i.top-f,left:r.left-i.left-l,width:r.width,height:r.height});if(c.marginTop=0,c.marginLeft=0,!n&&o){var h=parseFloat(p.marginTop,10),v=parseFloat(p.marginLeft,10);c.top-=f-h,c.bottom-=f-h,c.left-=l-v,c.right-=l-v,c.marginTop=h,c.marginLeft=v}return(n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=d(t,"top"),r=d(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}(c,t)),c}function $(e,t,n,o){var r={top:0,left:0},i=c(e,t);if("viewport"===o)r=function(e){var t=e.ownerDocument.documentElement,n=T(e,t),o=Math.max(t.clientWidth,window.innerWidth||0),r=Math.max(t.clientHeight,window.innerHeight||0),i=d(t),s=d(t,"left");return E({top:i-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:o,height:r})}(i);else{var s=void 0;"scrollParent"===o?"BODY"===(s=u(p(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===o?e.ownerDocument.documentElement:o;var f=T(s,i);if("HTML"!==s.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===a(t,"position")||e(p(t)))}(i))r=f;else{var l=y(),h=l.height,v=l.width;r.top+=f.top-f.marginTop,r.bottom=h+f.top,r.left+=f.left-f.marginLeft,r.right=v+f.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function L(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=$(n,o,i,r),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},p=Object.keys(a).map(function(e){return O({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),u=p.filter(function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight}),f=u.length>0?u[0].key:p[0].key,l=e.split("-")[1];return f+(l?"-"+l:"")}function j(e,t,n){return T(n,c(t,n))}function N(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),o=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function S(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function x(e,t,n){n=n.split("-")[0];var o=N(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),s=i?"top":"left",a=i?"left":"top",p=i?"height":"width",u=i?"width":"height";return r[s]=t[s]+t[p]/2-o[p]/2,r[a]=n===a?t[a]-o[u]:t[S(a)],r}function A(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function k(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var o=A(e,function(e){return e[t]===n});return e.indexOf(o)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&s(n)&&(t.offsets.popper=E(t.offsets.popper),t.offsets.reference=E(t.offsets.reference),t=n(t,e))}),t}function I(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function P(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length-1;o++){var r=t[o],i=r?""+r+n:e;if(void 0!==document.body.style[i])return i}return null}function D(e){var t=e.ownerDocument;return t?t.defaultView:window}function M(e,t,n,o){n.updateBound=o,D(e).addEventListener("resize",n.updateBound,{passive:!0});var r=u(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,s=i?t.ownerDocument.defaultView:t;s.addEventListener(n,o,{passive:!0}),i||e(u(s.parentNode),n,o,r),r.push(s)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function H(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,D(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function B(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function F(e,t){Object.keys(t).forEach(function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&B(t[n])&&(o="px"),e.style[n]=t[n]+o})}function W(e,t,n){var o=A(e,function(e){return e.name===t}),r=!!o&&e.some(function(e){return e.name===n&&e.enabled&&e.order<o.order});if(!r){var i="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}var z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],R=z.slice(3);function V(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=R.indexOf(e),o=R.slice(n+1).concat(R.slice(0,n));return t?o.reverse():o}var U={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function q(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(A(s,function(e){return-1!==e.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var p=/\s*,\s*|\s+/,u=-1!==a?[s.slice(0,a).concat([s[a].split(p)[0]]),[s[a].split(p)[1]].concat(s.slice(a+1))]:[s];return(u=u.map(function(e,o){var r=(1===o?!i:i)?"height":"width",s=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],s=r[2];if(!i)return e;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=o}return E(a)[t]/100*i}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,r,t,n)})})).forEach(function(e,t){e.forEach(function(n,o){B(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))})}),r}var G={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var r=e.offsets,i=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),p=a?"left":"top",u=a?"width":"height",f={start:w({},p,i[p]),end:w({},p,i[p]+i[u]-s[u])};e.offsets.popper=O({},s,f[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,r=e.offsets,i=r.popper,s=r.reference,a=o.split("-")[0],p=void 0;return p=B(+n)?[+n,0]:q(n,i,s,a),"left"===a?(i.top+=p[0],i.left-=p[1]):"right"===a?(i.top+=p[0],i.left+=p[1]):"top"===a?(i.left+=p[0],i.top-=p[1]):"bottom"===a&&(i.left+=p[0],i.top+=p[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||f(e.instance.popper);e.instance.reference===n&&(n=f(n));var o=$(e.instance.popper,e.instance.reference,t.padding,n);t.boundaries=o;var r=t.priority,i=e.offsets.popper,s={primary:function(e){var n=i[e];return i[e]<o[e]&&!t.escapeWithReference&&(n=Math.max(i[e],o[e])),w({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=i[n];return i[e]>o[e]&&!t.escapeWithReference&&(r=Math.min(i[n],o[e]-("right"===e?i.width:i.height))),w({},n,r)}};return r.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";i=O({},i,s[t](e))}),e.offsets.popper=i,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",p=s?"left":"top",u=s?"width":"height";return n[a]<i(o[p])&&(e.offsets.popper[p]=i(o[p])-n[u]),n[p]>i(o[a])&&(e.offsets.popper[p]=i(o[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!W(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,p=i.reference,u=-1!==["left","right"].indexOf(r),f=u?"height":"width",l=u?"Top":"Left",c=l.toLowerCase(),d=u?"left":"top",h=u?"bottom":"right",v=N(o)[f];p[h]-v<s[c]&&(e.offsets.popper[c]-=s[c]-(p[h]-v)),p[c]+v>s[h]&&(e.offsets.popper[c]+=p[c]+v-s[h]),e.offsets.popper=E(e.offsets.popper);var m=p[c]+p[f]/2-v/2,g=a(e.instance.popper),y=parseFloat(g["margin"+l],10),b=parseFloat(g["border"+l+"Width"],10),_=m-e.offsets.popper[c]-y-b;return _=Math.max(Math.min(s[f]-v,_),0),e.arrowElement=o,e.offsets.arrow=(w(n={},c,Math.round(_)),w(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(I(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=$(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),o=e.placement.split("-")[0],r=S(o),i=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case U.FLIP:s=[o,r];break;case U.CLOCKWISE:s=V(o);break;case U.COUNTERCLOCKWISE:s=V(o,!0);break;default:s=t.behavior}return s.forEach(function(a,p){if(o!==a||s.length===p+1)return e;o=e.placement.split("-")[0],r=S(o);var u=e.offsets.popper,f=e.offsets.reference,l=Math.floor,c="left"===o&&l(u.right)>l(f.left)||"right"===o&&l(u.left)<l(f.right)||"top"===o&&l(u.bottom)>l(f.top)||"bottom"===o&&l(u.top)<l(f.bottom),d=l(u.left)<l(n.left),h=l(u.right)>l(n.right),v=l(u.top)<l(n.top),m=l(u.bottom)>l(n.bottom),g="left"===o&&d||"right"===o&&h||"top"===o&&v||"bottom"===o&&m,y=-1!==["top","bottom"].indexOf(o),b=!!t.flipVariations&&(y&&"start"===i&&d||y&&"end"===i&&h||!y&&"start"===i&&v||!y&&"end"===i&&m);(c||g||b)&&(e.flipped=!0,(c||g)&&(o=s[p+1]),b&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=O({},e.offsets.popper,x(e.instance.popper,e.offsets.reference,e.placement)),e=k(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=i[n]-(a?r[s?"width":"height"]:0),e.placement=S(t),e.offsets.popper=E(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!W(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=A(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=A(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==i?i:t.gpuAcceleration,a=C(f(e.instance.popper)),p={position:r.position},u={left:Math.floor(r.left),top:Math.floor(r.top),bottom:Math.floor(r.bottom),right:Math.floor(r.right)},l="bottom"===n?"top":"bottom",c="right"===o?"left":"right",d=P("transform"),h=void 0,v=void 0;if(v="bottom"===l?-a.height+u.bottom:u.top,h="right"===c?-a.width+u.right:u.left,s&&d)p[d]="translate3d("+h+"px, "+v+"px, 0)",p[l]=0,p[c]=0,p.willChange="transform";else{var m="bottom"===l?-1:1,g="right"===c?-1:1;p[l]=v*m,p[c]=h*g,p.willChange=l+", "+c}var y={"x-placement":e.placement};return e.attributes=O({},y,e.attributes),e.styles=O({},p,e.styles),e.arrowStyles=O({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return F(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&F(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,r){var i=j(0,t,e),s=L(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),F(t,{position:"absolute"}),n},gpuAcceleration:void 0}}},Y=function(){function e(t,n){var o=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};b(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=i(this.update.bind(this)),this.options=O({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(O({},e.Defaults.modifiers,r.modifiers)).forEach(function(t){o.options.modifiers[t]=O({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return O({name:e},o.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&s(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return _(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=j(this.state,this.popper,this.reference),e.placement=L(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=x(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=k(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,I(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[P("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=M(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return H.call(this)}}]),e}();function K(e){return"string"==typeof e&&(e=e.split(" ")),e}function X(e,t){var n=K(t),o=void 0;o=e.className instanceof SVGAnimatedString?Array.from(e.className):K(e.className),n.forEach(function(e){-1===o.indexOf(e)&&o.push(e)}),e instanceof SVGElement?e.setAttribute("class",o.join(" ")):e.className=o.join(" ")}function J(e,t){var n=K(t),o=void 0;o=e.className instanceof SVGAnimatedString?Array.from(e.className):K(e.className),n.forEach(function(e){var t=o.indexOf(e);-1!==t&&o.splice(t,1)}),e instanceof SVGElement?e.setAttribute("class",o.join(" ")):e.className=o.join(" ")}Y.Utils=("undefined"!=typeof window?window:global).PopperUtils,Y.placements=z,Y.Defaults=G;var Q=!1;if("undefined"!=typeof window){Q=!1;try{var Z=Object.defineProperty({},"passive",{get:function(){Q=!0}});window.addEventListener("test",null,Z)}catch(e){}}var ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ne=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},re={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0},ie=[],se=function(){function e(t,n){te(this,e),ae.call(this),n=oe({},re,n),t.jquery&&(t=t[0]),this.reference=t,this.options=n,this._isOpen=!1,this._init()}return ne(e,[{key:"setClasses",value:function(e){this._classes=e}},{key:"setContent",value:function(e){this.options.title=e,this._tooltipNode&&this._setContent(e,this.options)}},{key:"setOptions",value:function(e){var t=!1,n=e&&e.classes||ge.options.defaultClass;this._classes!==n&&(this.setClasses(n),t=!0),e=le(e);var o=!1,r=!1;for(var i in this.options.offset===e.offset&&this.options.placement===e.placement||(o=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(r=!0),e)this.options[i]=e[i];if(this._tooltipNode)if(r){var s=this._isOpen;this.dispose(),this._init(),s&&this.show()}else o&&this.popperInstance.update()}},{key:"_init",value:function(){var e="string"==typeof this.options.trigger?this.options.trigger.split(" ").filter(function(e){return-1!==["click","hover","focus"].indexOf(e)}):[];this._isDisposed=!1,this._enableDocumentTouch=-1===e.indexOf("manual"),this._setEventListeners(this.reference,e,this.options)}},{key:"_create",value:function(e,t){var n=window.document.createElement("div");n.innerHTML=t.trim();var o=n.childNodes[0];return o.id="tooltip_"+Math.random().toString(36).substr(2,10),o.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(o.addEventListener("mouseenter",this.hide),o.addEventListener("click",this.hide)),o}},{key:"_setContent",value:function(e,t){var n=this;this.asyncContent=!1,this._applyContent(e,t).then(function(){n.popperInstance.update()})}},{key:"_applyContent",value:function(e,t){var n=this;return new Promise(function(o,r){var i=t.html,s=n._tooltipNode,a=s.querySelector(n.options.innerSelector);if(1===e.nodeType){if(i){for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(e)}}else{if("function"==typeof e){var p=e();return void(p&&"function"==typeof p.then?(n.asyncContent=!0,t.loadingClass&&X(s,t.loadingClass),t.loadingContent&&n._applyContent(t.loadingContent,t),p.then(function(e){return t.loadingClass&&J(s,t.loadingClass),n._applyContent(e,t)}).then(o).catch(r)):n._applyContent(p,t).then(o).catch(r))}i?a.innerHTML=e:a.innerText=e}o()})}},{key:"_show",value:function(e,t){if(t&&"string"==typeof t.container&&!document.querySelector(t.container))return;clearTimeout(this._disposeTimer),delete(t=Object.assign({},t)).offset;var n=!0;this._tooltipNode&&(X(this._tooltipNode,this._classes),n=!1);var o=this._ensureShown(e,t);return n&&this._tooltipNode&&X(this._tooltipNode,this._classes),o}},{key:"_ensureShown",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,ie.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(t.title,t),this;var o=e.getAttribute("title")||t.title;if(!o)return this;var r=this._create(e,t.template);this._tooltipNode=r,this._setContent(o,t),e.setAttribute("aria-describedby",r.id);var i=this._findContainer(t.container,e);this._append(r,i);var s=oe({},t.popperOptions,{placement:t.placement});return s.modifiers=oe({},s.modifiers,{arrow:{element:this.options.arrowSelector}}),t.boundariesElement&&(s.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new Y(e,r,s),requestAnimationFrame(function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame(function(){n._isDisposed?n.dispose():n._isOpen&&r.setAttribute("aria-hidden","false")})):n.dispose()}),this}},{key:"_noLongerOpen",value:function(){var e=ie.indexOf(this);-1!==e&&ie.splice(e,1)}},{key:"_hide",value:function(){var e=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var t=ge.options.disposeTimeout;return null!==t&&(this._disposeTimer=setTimeout(function(){e._tooltipNode&&(e._tooltipNode.removeEventListener("mouseenter",e.hide),e._tooltipNode.removeEventListener("click",e.hide),e._tooltipNode.parentNode.removeChild(e._tooltipNode),e._tooltipNode=null)},t)),this}},{key:"_dispose",value:function(){var e=this;return this._isDisposed=!0,this._events.forEach(function(t){var n=t.func,o=t.event;e.reference.removeEventListener(o,n)}),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)):this._noLongerOpen(),this}},{key:"_findContainer",value:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(e,t,n){var o=this,r=[],i=[];t.forEach(function(e){switch(e){case"hover":r.push("mouseenter"),i.push("mouseleave");break;case"focus":r.push("focus"),i.push("blur");break;case"click":r.push("click"),i.push("click")}}),r.forEach(function(t){var r=function(t){!0!==o._isOpen&&(t.usedByTooltip=!0,o._scheduleShow(e,n.delay,n,t))};o._events.push({event:t,func:r}),e.addEventListener(t,r)}),i.forEach(function(t){var r=function(t){!0!==t.usedByTooltip&&o._scheduleHide(e,n.delay,n,t)};o._events.push({event:t,func:r}),e.addEventListener(t,r)})}},{key:"_onDocumentTouch",value:function(e){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,e)}},{key:"_scheduleShow",value:function(e,t,n){var o=this,r=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout(function(){return o._show(e,n)},r)}},{key:"_scheduleHide",value:function(e,t,n,o){var r=this,i=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout(function(){if(!1!==r._isOpen&&document.body.contains(r._tooltipNode)){if("mouseleave"===o.type)if(r._setTooltipNodeEvent(o,e,t,n))return;r._hide(e,n)}},i)}}]),e}(),ae=function(){var e=this;this.show=function(){e._show(e.reference,e.options)},this.hide=function(){e._hide()},this.dispose=function(){e._dispose()},this.toggle=function(){return e._isOpen?e.hide():e.show()},this._events=[],this._setTooltipNodeEvent=function(t,n,o,r){var i=t.relatedreference||t.toElement;return!!e._tooltipNode.contains(i)&&(e._tooltipNode.addEventListener(t.type,function o(i){var s=i.relatedreference||i.toElement;e._tooltipNode.removeEventListener(t.type,o),n.contains(s)||e._scheduleHide(n,r.delay,r,i)}),!0)}};"undefined"!=typeof document&&document.addEventListener("touchstart",function(e){for(var t=0;t<ie.length;t++)ie[t]._onDocumentTouch(e)},!!Q&&{passive:!0});var pe={enabled:!0},ue=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],fe={defaultPlacement:"top",defaultClass:"vue-tooltip-theme",defaultTargetClass:"has-tooltip",defaultTemplate:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',defaultArrowSelector:".tooltip-arrow, .tooltip__arrow",defaultInnerSelector:".tooltip-inner, .tooltip__inner",defaultDelay:0,defaultTrigger:"hover focus",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:"tooltip-loading",defaultLoadingContent:"...",autoHide:!0,disposeTimeout:5e3,popover:{defaultPlacement:"bottom",defaultClass:"vue-popover-theme",defaultBaseClass:"tooltip popover",defaultWrapperClass:"wrapper",defaultInnerClass:"tooltip-inner popover-inner",defaultArrowClass:"tooltip-arrow popover-arrow",defaultDelay:0,defaultTrigger:"click",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function le(e){var t={placement:void 0!==e.placement?e.placement:ge.options.defaultPlacement,delay:void 0!==e.delay?e.delay:ge.options.defaultDelay,template:void 0!==e.template?e.template:ge.options.defaultTemplate,arrowSelector:void 0!==e.arrowSelector?e.arrowSelector:ge.options.defaultArrowSelector,innerSelector:void 0!==e.innerSelector?e.innerSelector:ge.options.defaultInnerSelector,trigger:void 0!==e.trigger?e.trigger:ge.options.defaultTrigger,offset:void 0!==e.offset?e.offset:ge.options.defaultOffset,container:void 0!==e.container?e.container:ge.options.defaultContainer,boundariesElement:void 0!==e.boundariesElement?e.boundariesElement:ge.options.defaultBoundariesElement,autoHide:void 0!==e.autoHide?e.autoHide:ge.options.autoHide,loadingClass:void 0!==e.loadingClass?e.loadingClass:ge.options.defaultLoadingClass,loadingContent:void 0!==e.loadingContent?e.loadingContent:ge.options.defaultLoadingContent,popperOptions:oe({},void 0!==e.popperOptions?e.popperOptions:ge.options.defaultPopperOptions)};if(t.offset){var n=ee(t.offset),o=t.offset;("number"===n||"string"===n&&-1===o.indexOf(","))&&(o="0, "+o),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:o}}return t}function ce(e,t){for(var n=e.placement,o=0;o<ue.length;o++){var r=ue[o];t[r]&&(n=r)}return n}function de(e){var t=void 0===e?"undefined":ee(e);return"string"===t?e:!(!e||"object"!==t)&&e.content}function he(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=de(t),r=void 0!==t.classes?t.classes:ge.options.defaultClass,i=oe({title:o,html:!0},le(oe({},t,{placement:ce(t,n)}))),s=e._tooltip=new se(e,i);s.setClasses(r),s._vueEl=e;var a=void 0!==t.targetClasses?t.targetClasses:ge.options.defaultTargetClass;return e._tooltipTargetClasses=a,X(e,a),s}function ve(e){e._tooltip&&(e._tooltip.dispose(),delete e._tooltip,delete e._tooltipOldShow),e._tooltipTargetClasses&&(J(e,e._tooltipTargetClasses),delete e._tooltipTargetClasses)}function me(e,t){var n=t.value,o=(t.oldValue,t.modifiers),r=de(n);if(r&&pe.enabled){var i=void 0;e._tooltip?((i=e._tooltip).setContent(r),i.setOptions(oe({},n,{placement:ce(n,o)}))):i=he(e,n,o),void 0!==n.show&&n.show!==e._tooltipOldShow&&(e._tooltipOldShow=n.show,n.show?i.show():i.hide())}else ve(e)}var ge={options:fe,bind:me,update:me,unbind:function(e){ve(e)}};function ye(e){e.addEventListener("click",_e),e.addEventListener("touchstart",we,!!Q&&{passive:!0})}function be(e){e.removeEventListener("click",_e),e.removeEventListener("touchstart",we),e.removeEventListener("touchend",Oe),e.removeEventListener("touchcancel",Ee)}function _e(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function we(e){if(1===e.changedTouches.length){var t=e.currentTarget;t.$_vclosepopover_touch=!0;var n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",Oe),t.addEventListener("touchcancel",Ee)}}function Oe(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-o.screenY)<20&&Math.abs(n.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Ee(e){e.currentTarget.$_vclosepopover_touch=!1}var Ce={bind:function(e,t){var n=t.value,o=t.modifiers;e.$_closePopoverModifiers=o,(void 0===n||n)&&ye(e)},update:function(e,t){var n=t.value,o=t.oldValue,r=t.modifiers;e.$_closePopoverModifiers=r,n!==o&&(void 0===n||n?ye(e):be(e))},unbind:function(e){be(e)}};var Te=void 0;function $e(){$e.init||($e.init=!0,Te=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}())}var Le={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{notify:function(){this.$emit("notify")},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.notify),this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||this.notify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!Te&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.notify),delete this._resizeObject.onload)}},mounted:function(){var e=this;$e(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("style","display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;"),t.setAttribute("aria-hidden","true"),t.onload=this.addResizeHandlers,t.type="text/html",Te&&this.$el.appendChild(t),t.data="about:blank",Te||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}};var je={version:"0.4.3",install:function(e){e.component("resize-observer",Le)}},Ne=null;function Se(e){var t=ge.options.popover[e];return void 0===t?ge.options[e]:t}"undefined"!=typeof window?Ne=window.Vue:"undefined"!=typeof global&&(Ne=global.Vue),Ne&&Ne.use(je);var xe=!1;"undefined"!=typeof window&&"undefined"!=typeof navigator&&(xe=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var Ae=[],ke={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-popover",class:e.cssClass},[n("span",{ref:"trigger",staticClass:"trigger",staticStyle:{display:"inline-block"},attrs:{"aria-describedby":e.popoverId}},[e._t("default")],2),e._v(" "),n("div",{ref:"popover",class:[e.popoverBaseClass,e.popoverClass,e.cssClass],style:{display:e.isOpen?"":"none"},attrs:{id:e.popoverId,"aria-hidden":e.isOpen?"false":"true"}},[n("div",{class:e.popoverWrapperClass},[n("div",{ref:"arrow",class:e.popoverArrowClass}),e._v(" "),n("div",{ref:"inner",class:e.popoverInnerClass,staticStyle:{position:"relative"}},[n("div",[e._t("popover")],2),e._v(" "),e.handleResize?n("ResizeObserver",{on:{notify:e.$_handleResize}}):e._e()],1)])])])},staticRenderFns:[],name:"VPopover",components:{ResizeObserver:Le},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return Se("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return Se("defaultDelay")}},offset:{type:[String,Number],default:function(){return Se("defaultOffset")}},trigger:{type:String,default:function(){return Se("defaultTrigger")}},container:{type:[String,Object,Element],default:function(){return Se("defaultContainer")}},boundariesElement:{type:Element,default:function(){return Se("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return Se("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return Se("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return ge.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return ge.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return ge.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return ge.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return ge.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return ge.options.popover.defaultHandleResize}},openGroup:{type:String,default:null}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return{open:this.isOpen}},popoverId:function(){return"popover_"+this.id}},watch:{open:function(e){e?this.show():this.hide()},disabled:function(e,t){e!==t&&(e?this.hide():this.open&&this.show())},container:function(e){if(this.isOpen&&this.popperInstance){var t=this.$refs.popover,n=this.$refs.trigger,o=this.$_findContainer(this.container,n);if(!o)return void console.warn("No container for popover",this);o.appendChild(t),this.popperInstance.update()}},trigger:function(e){this.$_removeEventListeners(),this.$_addEventListeners()},offset:function(e){var t=this;this.$_updatePopper(function(){if(e){var n=t.$_getOffset();t.popperInstance.options.modifiers.offset={offset:n}}else t.popperInstance.options.modifiers.offset=void 0})},placement:function(e){var t=this;this.$_updatePopper(function(){t.popperInstance.options.placement=e})},boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e),this.$_init(),this.open&&this.show()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event,n=(e.skipDelay,e.force);!(void 0!==n&&n)&&this.disabled||(this.$_scheduleShow(t),this.$emit("show")),this.$emit("update:open",!0)},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event;e.skipDelay;this.$_scheduleHide(t),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e)}this.$_mounted=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var e=this,t=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.update()),!this.$_mounted){var o=this.$_findContainer(this.container,t);if(!o)return void console.warn("No container for popover",this);o.appendChild(n),this.$_mounted=!0}if(!this.popperInstance){var r=oe({},this.popperOptions,{placement:this.placement});if(r.modifiers=oe({},r.modifiers,{arrow:{element:this.$refs.arrow}}),this.offset){var i=this.$_getOffset();r.modifiers.offset={offset:i}}this.boundariesElement&&(r.modifiers.preventOverflow={boundariesElement:this.boundariesElement}),this.popperInstance=new Y(t,n,r),requestAnimationFrame(function(){!e.$_isDisposed&&e.popperInstance?(e.popperInstance.update(),requestAnimationFrame(function(){e.$_isDisposed?e.dispose():e.isOpen=!0})):e.dispose()})}var s=this.openGroup;if(s)for(var a=void 0,p=0;p<Ae.length;p++)(a=Ae[p]).openGroup!==s&&(a.hide(),a.$emit("close-group"));Ae.push(this)}},$_hide:function(){var e=this;if(this.isOpen){var t=Ae.indexOf(this);-1!==t&&Ae.splice(t,1),this.isOpen=!1,this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this.$_disposeTimer);var n=ge.options.popover.disposeTimeout||ge.options.disposeTimeout;null!==n&&(this.$_disposeTimer=setTimeout(function(){var t=e.$refs.popover;t&&(t.parentNode&&t.parentNode.removeChild(t),e.$_mounted=!1)},n))}},$_findContainer:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e},$_getOffset:function(){var e=ee(this.offset),t=this.offset;return("number"===e||"string"===e&&-1===t.indexOf(","))&&(t="0, "+t),t},$_addEventListeners:function(){var e=this,t=this.$refs.trigger,n=[],o=[];("string"==typeof this.trigger?this.trigger.split(" ").filter(function(e){return-1!==["click","hover","focus"].indexOf(e)}):[]).forEach(function(e){switch(e){case"hover":n.push("mouseenter"),o.push("mouseleave");break;case"focus":n.push("focus"),o.push("blur");break;case"click":n.push("click"),o.push("click")}}),n.forEach(function(n){var o=function(t){e.isOpen||(t.usedByTooltip=!0,!e.$_preventOpen&&e.show({event:t}))};e.$_events.push({event:n,func:o}),t.addEventListener(n,o)}),o.forEach(function(n){var o=function(t){t.usedByTooltip||e.hide({event:t})};e.$_events.push({event:n,func:o}),t.addEventListener(n,o)})},$_scheduleShow:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),e)this.$_show();else{var t=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),t)}},$_scheduleHide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var o=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout(function(){if(e.isOpen){if(t&&"mouseleave"===t.type)if(e.$_setTooltipNodeEvent(t))return;e.$_hide()}},o)}},$_setTooltipNodeEvent:function(e){var t=this,n=this.$refs.trigger,o=this.$refs.popover,r=e.relatedreference||e.toElement;return!!o.contains(r)&&(o.addEventListener(e.type,function r(i){var s=i.relatedreference||i.toElement;o.removeEventListener(e.type,r),n.contains(s)||t.hide({event:i})}),!0)},$_removeEventListeners:function(){var e=this.$refs.trigger;this.$_events.forEach(function(t){var n=t.func,o=t.event;e.removeEventListener(o,n)}),this.$_events=[]},$_updatePopper:function(e){this.isOpen&&this.popperInstance&&(e(),this.popperInstance.update())},$_restartPopper:function(){if(this.popperInstance){var e=this.isOpen;this.dispose(),this.$_init(),e&&this.show()}},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventOpen=!0,setTimeout(function(){t.$_preventOpen=!1},300))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.update(),this.$emit("resize"))}}};function Ie(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=void 0,o=0;o<Ae.length;o++){var r=(n=Ae[o]).$refs.popover.contains(e.target);(e.closeAllPopover||e.closePopover&&r||n.autoHide&&!r)&&n.$_handleGlobalClose(e,t)}}"undefined"!=typeof document&&"undefined"!=typeof window&&(xe?document.addEventListener("touchend",function(e){Ie(e,!0)},!!Q&&{passive:!0}):window.addEventListener("click",function(e){Ie(e)}));var Pe="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var De,Me=(function(e,t){var n=200,o="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",s="[object Boolean]",a="[object Date]",p="[object Function]",u="[object GeneratorFunction]",f="[object Map]",l="[object Number]",c="[object Object]",d="[object RegExp]",h="[object Set]",v="[object String]",m="[object Symbol]",g="[object WeakMap]",y="[object ArrayBuffer]",b="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",T="[object Uint8Array]",$="[object Uint8ClampedArray]",L="[object Uint16Array]",j="[object Uint32Array]",N=/\w*$/,S=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,A={};A[_]=A[w]=A[O]=A[E]=A[C]=A[T]=A[$]=A[L]=A[j]=!0,A[i]=A["[object Array]"]=A[y]=A[s]=A[b]=A[a]=A["[object Error]"]=A[p]=A[f]=A[l]=A[c]=A[d]=A[h]=A[v]=A[g]=!1;var k={};k[i]=k["[object Array]"]=k[y]=k[b]=k[s]=k[a]=k[_]=k[w]=k[O]=k[E]=k[C]=k[f]=k[l]=k[c]=k[d]=k[h]=k[v]=k[m]=k[T]=k[$]=k[L]=k[j]=!0,k["[object Error]"]=k[p]=k[g]=!1;var I="object"==typeof Pe&&Pe&&Pe.Object===Object&&Pe,P="object"==typeof self&&self&&self.Object===Object&&self,D=I||P||Function("return this")(),M=t&&!t.nodeType&&t,H=M&&e&&!e.nodeType&&e,B=H&&H.exports===M,F=B&&I.process,W=function(){try{return F&&F.binding("util")}catch(e){}}(),z=W&&W.isTypedArray;function R(e,t){return e.set(t[0],t[1]),e}function V(e,t){return e.add(t),e}function U(e,t){for(var n=-1,o=e?e.length:0;++n<o&&!1!==t(e[n],n,e););return e}function q(e,t,n,o){var r=-1,i=e?e.length:0;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function G(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e,o){n[++t]=[o,e]}),n}function K(e,t){return function(n){return e(t(n))}}function X(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var J,Q=Array.prototype,Z=Function.prototype,ee=Object.prototype,te=D["__core-js_shared__"],ne=(J=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||""))?"Symbol(src)_1."+J:"",oe=Z.toString,re=ee.hasOwnProperty,ie=oe.call(Object),se=ee.toString,ae=RegExp("^"+oe.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pe=B?D.Buffer:void 0,ue=D.Symbol,fe=D.Uint8Array,le=K(Object.getPrototypeOf,Object),ce=Object.create,de=ee.propertyIsEnumerable,he=Q.splice,ve=Object.getOwnPropertySymbols,me=pe?pe.isBuffer:void 0,ge=K(Object.keys,Object),ye=Math.max,be=Ke(D,"DataView"),_e=Ke(D,"Map"),we=Ke(D,"Promise"),Oe=Ke(D,"Set"),Ee=Ke(D,"WeakMap"),Ce=Ke(Object,"create"),Te=et(be),$e=et(_e),Le=et(we),je=et(Oe),Ne=et(Ee),Se=ue?ue.prototype:void 0,xe=Se?Se.valueOf:void 0;function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function De(e){this.__data__=new ke(e)}function Me(e,t){var n=ot(e)||nt(e)?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],o=n.length,r=!!o;for(var i in e)!t&&!re.call(e,i)||r&&("length"==i||Qe(i,o))||n.push(i);return n}function He(e,t,n){(void 0===n||tt(e[t],n))&&("number"!=typeof t||void 0!==n||t in e)||(e[t]=n)}function Be(e,t,n){var o=e[t];re.call(e,t)&&tt(o,n)&&(void 0!==n||t in e)||(e[t]=n)}function Fe(e,t){for(var n=e.length;n--;)if(tt(e[n][0],t))return n;return-1}function We(e,t,n,o,r,g,S){var x;if(o&&(x=g?o(e,r,g,S):o(e)),void 0!==x)return x;if(!ut(e))return e;var A=ot(e);if(A){if(x=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return qe(e,x)}else{var I=Je(e),P=I==p||I==u;if(st(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(I==c||I==i||P&&!g){if(G(e))return g?e:{};if(x=function(e){return"function"!=typeof e.constructor||Ze(e)?{}:(t=le(e),ut(t)?ce(t):{});var t}(P?{}:e),!t)return function(e,t){return Ge(e,Xe(e),t)}(e,function(e,t){return e&&Ge(t,dt(t),e)}(x,e))}else{if(!k[I])return g?e:{};x=function(e,t,n,o){var r=e.constructor;switch(t){case y:return Ue(e);case s:case a:return new r(+e);case b:return function(e,t){var n=t?Ue(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,o);case _:case w:case O:case E:case C:case T:case $:case L:case j:return function(e,t){var n=t?Ue(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,o);case f:return function(e,t,n){return q(t?n(Y(e),!0):Y(e),R,new e.constructor)}(e,o,n);case l:case v:return new r(e);case d:return(u=new(p=e).constructor(p.source,N.exec(p))).lastIndex=p.lastIndex,u;case h:return function(e,t,n){return q(t?n(X(e),!0):X(e),V,new e.constructor)}(e,o,n);case m:return i=e,xe?Object(xe.call(i)):{}}var i;var p,u}(e,I,We,t)}}S||(S=new De);var D=S.get(e);if(D)return D;if(S.set(e,x),!A)var M=n?function(e){return function(e,t,n){var o=t(e);return ot(e)?o:function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}(o,n(e))}(e,dt,Xe)}(e):dt(e);return U(M||e,function(r,i){M&&(r=e[i=r]),Be(x,i,We(r,t,n,o,i,e,S))}),x}function ze(e){return!(!ut(e)||ne&&ne in e)&&(at(e)||G(e)?ae:S).test(et(e))}function Re(e){if(!ut(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Ze(e),n=[];for(var o in e)("constructor"!=o||!t&&re.call(e,o))&&n.push(o);return n}function Ve(e,t,n,o,r){if(e!==t){if(!ot(t)&&!ct(t))var i=Re(t);U(i||t,function(s,a){if(i&&(s=t[a=s]),ut(s))r||(r=new De),function(e,t,n,o,r,i,s){var a=e[n],p=t[n],u=s.get(p);if(u)return void He(e,n,u);var f=i?i(a,p,n+"",e,t,s):void 0,l=void 0===f;l&&(f=p,ot(p)||ct(p)?ot(a)?f=a:it(a)?f=qe(a):(l=!1,f=We(p,!0)):function(e){if(!ft(e)||se.call(e)!=c||G(e))return!1;var t=le(e);if(null===t)return!0;var n=re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&oe.call(n)==ie}(p)||nt(p)?nt(a)?f=function(e){return Ge(e,(t=e,rt(t)?Me(t,!0):Re(t)));var t}(a):!ut(a)||o&&at(a)?(l=!1,f=We(p,!0)):f=a:l=!1);l&&(s.set(p,f),r(f,p,o,i,s),s.delete(p));He(e,n,f)}(e,t,a,n,Ve,o,r);else{var p=o?o(e[a],s,a+"",e,t,r):void 0;void 0===p&&(p=s),He(e,a,p)}})}}function Ue(e){var t=new e.constructor(e.byteLength);return new fe(t).set(new fe(e)),t}function qe(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}function Ge(e,t,n,o){n||(n={});for(var r=-1,i=t.length;++r<i;){var s=t[r],a=o?o(n[s],e[s],s,n,e):void 0;Be(n,s,void 0===a?e[s]:a)}return n}function Ye(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Ke(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ze(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=Ce?Ce(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(Ce){var n=t[e];return n===o?void 0:n}return re.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return Ce?void 0!==t[e]:re.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=Ce&&void 0===t?o:t,this},ke.prototype.clear=function(){this.__data__=[]},ke.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0||(n==t.length-1?t.pop():he.call(t,n,1),0))},ke.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},ke.prototype.has=function(e){return Fe(this.__data__,e)>-1},ke.prototype.set=function(e,t){var n=this.__data__,o=Fe(n,e);return o<0?n.push([e,t]):n[o][1]=t,this},Ie.prototype.clear=function(){this.__data__={hash:new Ae,map:new(_e||ke),string:new Ae}},Ie.prototype.delete=function(e){return Ye(this,e).delete(e)},Ie.prototype.get=function(e){return Ye(this,e).get(e)},Ie.prototype.has=function(e){return Ye(this,e).has(e)},Ie.prototype.set=function(e,t){return Ye(this,e).set(e,t),this},De.prototype.clear=function(){this.__data__=new ke},De.prototype.delete=function(e){return this.__data__.delete(e)},De.prototype.get=function(e){return this.__data__.get(e)},De.prototype.has=function(e){return this.__data__.has(e)},De.prototype.set=function(e,t){var o=this.__data__;if(o instanceof ke){var r=o.__data__;if(!_e||r.length<n-1)return r.push([e,t]),this;o=this.__data__=new Ie(r)}return o.set(e,t),this};var Xe=ve?K(ve,Object):function(){return[]},Je=function(e){return se.call(e)};function Qe(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function Ze(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ee)}function et(e){if(null!=e){try{return oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tt(e,t){return e===t||e!=e&&t!=t}function nt(e){return it(e)&&re.call(e,"callee")&&(!de.call(e,"callee")||se.call(e)==i)}(be&&Je(new be(new ArrayBuffer(1)))!=b||_e&&Je(new _e)!=f||we&&"[object Promise]"!=Je(we.resolve())||Oe&&Je(new Oe)!=h||Ee&&Je(new Ee)!=g)&&(Je=function(e){var t=se.call(e),n=t==c?e.constructor:void 0,o=n?et(n):void 0;if(o)switch(o){case Te:return b;case $e:return f;case Le:return"[object Promise]";case je:return h;case Ne:return g}return t});var ot=Array.isArray;function rt(e){return null!=e&&pt(e.length)&&!at(e)}function it(e){return ft(e)&&rt(e)}var st=me||function(){return!1};function at(e){var t=ut(e)?se.call(e):"";return t==p||t==u}function pt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function ut(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ft(e){return!!e&&"object"==typeof e}var lt,ct=z?(lt=z,function(e){return lt(e)}):function(e){return ft(e)&&pt(e.length)&&!!A[se.call(e)]};function dt(e){return rt(e)?Me(e):function(e){if(!Ze(e))return ge(e);var t=[];for(var n in Object(e))re.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var ht=function(e){return t=function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,s&&function(e,t,n){if(!ut(n))return!1;var o=typeof t;return!!("number"==o?rt(n)&&Qe(t,n.length):"string"==o&&t in n)&&tt(n[t],e)}(n[0],n[1],s)&&(i=r<3?void 0:i,r=1),t=Object(t);++o<r;){var a=n[o];a&&e(t,a,o,i)}return t},n=ye(void 0===n?t.length-1:n,0),function(){for(var e=arguments,o=-1,r=ye(e.length-n,0),i=Array(r);++o<r;)i[o]=e[n+o];o=-1;for(var s=Array(n+1);++o<n;)s[o]=e[o];return s[n]=i,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(t,this,s)};var t,n}(function(e,t,n){Ve(e,t,n)});e.exports=ht}(De={exports:{}},De.exports),De.exports);function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!He.installed){He.installed=!0;var n={};Me(n,fe,t),ze.options=n,ge.options=n,e.directive("tooltip",ge),e.directive("close-popover",Ce),e.component("v-popover",ke)}}var Be=ge,Fe=Ce,We=ke,ze={install:He,get enabled(){return pe.enabled},set enabled(e){pe.enabled=e}},Re=null;return"undefined"!=typeof window?Re=window.Vue:"undefined"!=typeof global&&(Re=global.Vue),Re&&Re.use(ze),e.install=He,e.VTooltip=Be,e.VClosePopover=Fe,e.VPopover=We,e.default=ze,e.createTooltip=he,e.destroyTooltip=ve,e}({});