New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@abtasty/tooltip

Package Overview
Dependencies
Maintainers
12
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtasty/tooltip - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9-0

2

dist/main.js

@@ -1,1 +0,1 @@

!function(){"use strict";function t(t){return t&&"[object Function]"==={}.toString.call(t)}function e(t,e){if(1!==t.nodeType)return[];var o=getComputedStyle(t,null);return e?o[e]:o}function o(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function n(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var r=e(t),i=r.overflow,a=r.overflowX,s=r.overflowY;return/(auto|scroll)/.test(i+s+a)?t:n(o(t))}function r(t){var o=t&&t.offsetParent,n=o&&o.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(o.nodeName)&&"static"===e(o,"position")?r(o):o:t?t.ownerDocument.documentElement:document.documentElement}function i(t){return null!==t.parentNode?i(t.parentNode):t}function a(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var o=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?t:e,s=o?e:t,l=document.createRange();l.setStart(n,0),l.setEnd(s,0);var p=l.commonAncestorContainer;if(t!==p&&e!==p||n.contains(s))return function(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||r(t.firstElementChild)===t)}(p)?p:r(p);var f=i(t);return f.host?a(f.host,e):a(t,i(e).host)}function s(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",o=t.nodeName;if("BODY"===o||"HTML"===o){var n=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||n)[e]}return t[e]}function l(t,e){var o="x"===e?"Left":"Top",n="Left"===o?"Right":"Bottom";return parseFloat(t["border"+o+"Width"],10)+parseFloat(t["border"+n+"Width"],10)}function p(t,e,o,n){return Math.max(e["offset"+t],e["scroll"+t],o["client"+t],o["offset"+t],o["scroll"+t],F()?o["offset"+t]+n["margin"+("Height"===t?"Top":"Left")]+n["margin"+("Height"===t?"Bottom":"Right")]:0)}function f(){var t=document.body,e=document.documentElement,o=F()&&getComputedStyle(e);return{height:p("Height",t,e,o),width:p("Width",t,e,o)}}function d(t){return U({},t,{right:t.left+t.width,bottom:t.top+t.height})}function c(t){var o={};if(F())try{o=t.getBoundingClientRect();var n=s(t,"top"),r=s(t,"left");o.top+=n,o.left+=r,o.bottom+=n,o.right+=r}catch(t){}else o=t.getBoundingClientRect();var i={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},a="HTML"===t.nodeName?f():{},p=a.width||t.clientWidth||i.right-i.left,c=a.height||t.clientHeight||i.bottom-i.top,u=t.offsetWidth-p,h=t.offsetHeight-c;if(u||h){var m=e(t);u-=l(m,"x"),h-=l(m,"y"),i.width-=u,i.height-=h}return d(i)}function u(t,o){var r=F(),i="HTML"===o.nodeName,a=c(t),l=c(o),p=n(t),f=e(o),u=parseFloat(f.borderTopWidth,10),h=parseFloat(f.borderLeftWidth,10),m=d({top:a.top-l.top-u,left:a.left-l.left-h,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var v=parseFloat(f.marginTop,10),b=parseFloat(f.marginLeft,10);m.top-=u-v,m.bottom-=u-v,m.left-=h-b,m.right-=h-b,m.marginTop=v,m.marginLeft=b}return(r?o.contains(p):o===p&&"BODY"!==p.nodeName)&&(m=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=s(e,"top"),r=s(e,"left"),i=o?-1:1;return t.top+=n*i,t.bottom+=n*i,t.left+=r*i,t.right+=r*i,t}(m,o)),m}function h(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===e(t,"position")||h(o(t)))}function m(t,e,r,i){var l={top:0,left:0},p=a(t,e);if("viewport"===i)l=function(t){var e=t.ownerDocument.documentElement,o=u(t,e),n=Math.max(e.clientWidth,window.innerWidth||0),r=Math.max(e.clientHeight,window.innerHeight||0),i=s(e),a=s(e,"left");return d({top:i-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:n,height:r})}(p);else{var c=void 0;"scrollParent"===i?"BODY"===(c=n(o(e))).nodeName&&(c=t.ownerDocument.documentElement):c="window"===i?t.ownerDocument.documentElement:i;var m=u(c,p);if("HTML"!==c.nodeName||h(p))l=m;else{var v=f(),b=v.height,g=v.width;l.top+=m.top-m.marginTop,l.bottom=b+m.top,l.left+=m.left-m.marginLeft,l.right=g+m.left}}return l.left+=r,l.top+=r,l.right-=r,l.bottom-=r,l}function v(t,e,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=m(o,n,i,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map(function(t){return U({key:t},s[t],{area:function(t){return t.width*t.height}(s[t])})}).sort(function(t,e){return e.area-t.area}),p=l.filter(function(t){var e=t.width,n=t.height;return e>=o.clientWidth&&n>=o.clientHeight}),f=p.length>0?p[0].key:l[0].key,d=t.split("-")[1];return f+(d?"-"+d:"")}function b(t,e,o){return u(o,a(e,o))}function g(t){var e=getComputedStyle(t),o=parseFloat(e.marginTop)+parseFloat(e.marginBottom),n=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+n,height:t.offsetHeight+o}}function y(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function w(t,e,o){o=o.split("-")[0];var n=g(t),r={width:n.width,height:n.height},i=-1!==["right","left"].indexOf(o),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",p=i?"width":"height";return r[a]=e[a]+e[l]/2-n[l]/2,r[s]=o===s?e[s]-n[p]:e[y(s)],r}function O(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function E(e,o,n){return(void 0===n?e:e.slice(0,function(t,e,o){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===o});var n=O(t,function(t){return t[e]===o});return t.indexOf(n)}(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&&t(n)&&(o.offsets.popper=d(o.offsets.popper),o.offsets.reference=d(o.offsets.reference),o=n(o,e))}),o}function x(t,e){return t.some(function(t){var o=t.name;return t.enabled&&o===e})}function _(t){for(var e=[!1,"ms","Webkit","Moz","O"],o=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length-1;n++){var r=e[n],i=r?""+r+o:t;if(void 0!==document.body.style[i])return i}return null}function C(t){var e=t.ownerDocument;return e?e.defaultView:window}function T(t,e,o,r){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(e,o,{passive:!0}),i||T(n(a.parentNode),e,o,r),r.push(a)}function S(){this.state.eventsEnabled||(this.state=function(t,e,o,r){o.updateBound=r,C(t).addEventListener("resize",o.updateBound,{passive:!0});var i=n(t);return T(i,"scroll",o.updateBound,o.scrollParents),o.scrollElement=i,o.eventsEnabled=!0,o}(this.reference,this.options,this.state,this.scheduleUpdate))}function N(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(t,e){return C(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function L(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function k(t,e){Object.keys(e).forEach(function(o){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(o)&&L(e[o])&&(n="px"),t.style[o]=e[o]+n})}function D(t,e,o){var n=O(t,function(t){return t.name===e}),r=!!n&&t.some(function(t){return t.name===o&&t.enabled&&t.order<n.order});if(!r){var i="`"+e+"`",a="`"+o+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}function A(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=G.indexOf(t),n=G.slice(o+1).concat(G.slice(0,o));return e?n.reverse():n}function M(t,e,o,n){var r=[0,0],i=-1!==["right","left"].indexOf(n),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=a.indexOf(O(a,function(t){return-1!==t.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,p=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(p=p.map(function(t,n){var r=(1===n?!i:i)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,o,n){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],a=r[2];if(!i)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=o;break;case"%":case"%r":default:s=n}return d(s)[e]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(t,r,e,o)})})).forEach(function(t,e){t.forEach(function(o,n){L(o)&&(r[e]+=o*("-"===t[n-1]?-1:1))})}),r}for(var W="undefined"!=typeof window&&"undefined"!=typeof document,I=["Edge","Trident","Firefox"],P=0,B=0;B<I.length;B+=1)if(W&&navigator.userAgent.indexOf(I[B])>=0){P=1;break}var H=W&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},P))}},j=void 0,F=function(){return void 0===j&&(j=-1!==navigator.appVersion.indexOf("MSIE 10")),j},R=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},q=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),Y=function(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t},U=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},K=["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"],G=K.slice(3),z={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},V={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,o=e.split("-")[0],n=e.split("-")[1];if(n){var r=t.offsets,i=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(o),l=s?"left":"top",p=s?"width":"height",f={start:Y({},l,i[l]),end:Y({},l,i[l]+i[p]-a[p])};t.offsets.popper=U({},a,f[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var o=e.offset,n=t.placement,r=t.offsets,i=r.popper,a=r.reference,s=n.split("-")[0],l=void 0;return l=L(+o)?[+o,0]:M(o,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),t.popper=i,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var o=e.boundariesElement||r(t.instance.popper);t.instance.reference===o&&(o=r(o));var n=m(t.instance.popper,t.instance.reference,e.padding,o);e.boundaries=n;var i=e.priority,a=t.offsets.popper,s={primary:function(t){var o=a[t];return a[t]<n[t]&&!e.escapeWithReference&&(o=Math.max(a[t],n[t])),Y({},t,o)},secondary:function(t){var o="right"===t?"left":"top",r=a[o];return a[t]>n[t]&&!e.escapeWithReference&&(r=Math.min(a[o],n[t]-("right"===t?a.width:a.height))),Y({},o,r)}};return i.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";a=U({},a,s[e](t))}),t.offsets.popper=a,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,o=e.popper,n=e.reference,r=t.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",p=a?"width":"height";return o[s]<i(n[l])&&(t.offsets.popper[l]=i(n[l])-o[p]),o[l]>i(n[s])&&(t.offsets.popper[l]=i(n[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,o){var n;if(!D(t.instance.modifiers,"arrow","keepTogether"))return t;var r=o.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],a=t.offsets,s=a.popper,l=a.reference,p=-1!==["left","right"].indexOf(i),f=p?"height":"width",c=p?"Top":"Left",u=c.toLowerCase(),h=p?"left":"top",m=p?"bottom":"right",v=g(r)[f];l[m]-v<s[u]&&(t.offsets.popper[u]-=s[u]-(l[m]-v)),l[u]+v>s[m]&&(t.offsets.popper[u]+=l[u]+v-s[m]),t.offsets.popper=d(t.offsets.popper);var b=l[u]+l[f]/2-v/2,y=e(t.instance.popper),w=parseFloat(y["margin"+c],10),O=parseFloat(y["border"+c+"Width"],10),E=b-t.offsets.popper[u]-w-O;return E=Math.max(Math.min(s[f]-v,E),0),t.arrowElement=r,t.offsets.arrow=(n={},Y(n,u,Math.round(E)),Y(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(x(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var o=m(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),n=t.placement.split("-")[0],r=y(n),i=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case z.FLIP:a=[n,r];break;case z.CLOCKWISE:a=A(n);break;case z.COUNTERCLOCKWISE:a=A(n,!0);break;default:a=e.behavior}return a.forEach(function(s,l){if(n!==s||a.length===l+1)return t;n=t.placement.split("-")[0],r=y(n);var p=t.offsets.popper,f=t.offsets.reference,d=Math.floor,c="left"===n&&d(p.right)>d(f.left)||"right"===n&&d(p.left)<d(f.right)||"top"===n&&d(p.bottom)>d(f.top)||"bottom"===n&&d(p.top)<d(f.bottom),u=d(p.left)<d(o.left),h=d(p.right)>d(o.right),m=d(p.top)<d(o.top),v=d(p.bottom)>d(o.bottom),b="left"===n&&u||"right"===n&&h||"top"===n&&m||"bottom"===n&&v,g=-1!==["top","bottom"].indexOf(n),O=!!e.flipVariations&&(g&&"start"===i&&u||g&&"end"===i&&h||!g&&"start"===i&&m||!g&&"end"===i&&v);(c||b||O)&&(t.flipped=!0,(c||b)&&(n=a[l+1]),O&&(i=function(t){return"end"===t?"start":"start"===t?"end":t}(i)),t.placement=n+(i?"-"+i:""),t.offsets.popper=U({},t.offsets.popper,w(t.instance.popper,t.offsets.reference,t.placement)),t=E(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,o=e.split("-")[0],n=t.offsets,r=n.popper,i=n.reference,a=-1!==["left","right"].indexOf(o),s=-1===["top","left"].indexOf(o);return r[a?"left":"top"]=i[o]-(s?r[a?"width":"height"]:0),t.placement=y(e),t.offsets.popper=d(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!D(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,o=O(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<o.top||e.left>o.right||e.top>o.bottom||e.right<o.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var o=e.x,n=e.y,i=t.offsets.popper,a=O(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==a?a:e.gpuAcceleration,l=c(r(t.instance.popper)),p={position:i.position},f={left:Math.floor(i.left),top:Math.floor(i.top),bottom:Math.floor(i.bottom),right:Math.floor(i.right)},d="bottom"===o?"top":"bottom",u="right"===n?"left":"right",h=_("transform"),m=void 0,v=void 0;if(v="bottom"===d?-l.height+f.bottom:f.top,m="right"===u?-l.width+f.right:f.left,s&&h)p[h]="translate3d("+m+"px, "+v+"px, 0)",p[d]=0,p[u]=0,p.willChange="transform";else{var b="bottom"===d?-1:1,g="right"===u?-1:1;p[d]=v*b,p[u]=m*g,p.willChange=d+", "+u}var y={"x-placement":t.placement};return t.attributes=U({},y,t.attributes),t.styles=U({},p,t.styles),t.arrowStyles=U({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return k(t.instance.popper,t.styles),function(t,e){Object.keys(e).forEach(function(o){!1!==e[o]?t.setAttribute(o,e[o]):t.removeAttribute(o)})}(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&k(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,o,n,r){var i=b(0,e,t),a=v(o.placement,i,e,t,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return e.setAttribute("x-placement",a),k(e,{position:"absolute"}),o},gpuAcceleration:void 0}}},J=function(){function e(o,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};R(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=H(this.update.bind(this)),this.options=U({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(U({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=U({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return U({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(e){e.enabled&&t(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return q(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=b(this.state,this.popper,this.reference),t.placement=v(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=w(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=E(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,x(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[_("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return S.call(this)}},{key:"disableEventListeners",value:function(){return N.call(this)}}]),e}();J.Utils=("undefined"!=typeof window?window:global).PopperUtils,J.placements=K,J.Defaults=V;var X=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Q=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),Z=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},$={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},tt=function(){function t(e,o){X(this,t),et.call(this),o=Z({},$,o),e.jquery&&(e=e[0]),this.reference=e,this.options=o;var n="string"==typeof o.trigger?o.trigger.split(" ").filter(function(t){return-1!==["click","hover","focus"].indexOf(t)}):[];this._isOpen=!1,this._popperOptions={},this._setEventListeners(e,n,o)}return Q(t,[{key:"_create",value:function(t,e,o,n){var r=window.document.createElement("div");r.innerHTML=e.trim();var i=r.childNodes[0];i.id="tooltip_"+Math.random().toString(36).substr(2,10),i.setAttribute("aria-hidden","false");var a=r.querySelector(this.innerSelector);if(1===o.nodeType||11===o.nodeType)n&&a.appendChild(o);else if(function(t){return t&&"[object Function]"==={}.toString.call(t)}(o)){var s=o.call(t);n?a.innerHTML=s:a.innerText=s}else n?a.innerHTML=o:a.innerText=o;return i}},{key:"_show",value:function(t,e){if(this._isOpen&&!this._isOpening)return this;if(this._isOpen=!0,this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.update(),this;var o=t.getAttribute("title")||e.title;if(!o)return this;var n=this._create(t,e.template,o,e.html);t.setAttribute("aria-describedby",n.id);var r=this._findContainer(e.container,t);return this._append(n,r),this._popperOptions=Z({},e.popperOptions,{placement:e.placement}),this._popperOptions.modifiers=Z({},this._popperOptions.modifiers,{arrow:{element:this.arrowSelector},offset:{offset:e.offset}}),e.boundariesElement&&(this._popperOptions.modifiers.preventOverflow={boundariesElement:e.boundariesElement}),this.popperInstance=new J(t,n,this._popperOptions),this._tooltipNode=n,this}},{key:"_hide",value:function(){return this._isOpen?(this._isOpen=!1,this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this):this}},{key:"_dispose",value:function(){var t=this;return this._events.forEach(function(e){var o=e.func,n=e.event;t.reference.removeEventListener(n,o)}),this._events=[],this._tooltipNode&&(this._hide(),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)),this}},{key:"_findContainer",value:function(t,e){return"string"==typeof t?t=window.document.querySelector(t):!1===t&&(t=e.parentNode),t}},{key:"_append",value:function(t,e){e.appendChild(t)}},{key:"_setEventListeners",value:function(t,e,o){var n=this,r=[],i=[];e.forEach(function(t){switch(t){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(e){var r=function(e){!0!==n._isOpening&&(e.usedByTooltip=!0,n._scheduleShow(t,o.delay,o,e))};n._events.push({event:e,func:r}),t.addEventListener(e,r)}),i.forEach(function(e){var r=function(e){!0!==e.usedByTooltip&&n._scheduleHide(t,o.delay,o,e)};n._events.push({event:e,func:r}),t.addEventListener(e,r)})}},{key:"_scheduleShow",value:function(t,e,o){var n=this;this._isOpening=!0;var r=e&&e.show||e||0;this._showTimeout=window.setTimeout(function(){return n._show(t,o)},r)}},{key:"_scheduleHide",value:function(t,e,o,n){var r=this;this._isOpening=!1;var i=e&&e.hide||e||0;window.setTimeout(function(){if(window.clearTimeout(r._showTimeout),!1!==r._isOpen&&document.body.contains(r._tooltipNode)){if("mouseleave"===n.type){if(r._setTooltipNodeEvent(n,t,e,o))return}r._hide(t,o)}},i)}}]),t}(),et=function(){var t=this;this.show=function(){return t._show(t.reference,t.options)},this.hide=function(){return t._hide()},this.dispose=function(){return t._dispose()},this.toggle=function(){return t._isOpen?t.hide():t.show()},this.arrowSelector=".tooltip-arrow, .tooltip__arrow",this.innerSelector=".tooltip-inner, .tooltip__inner",this._events=[],this._setTooltipNodeEvent=function(e,o,n,r){var i=e.relatedreference||e.toElement||e.relatedTarget;return!!t._tooltipNode.contains(i)&&(t._tooltipNode.addEventListener(e.type,function n(i){var a=i.relatedreference||i.toElement||i.relatedTarget;t._tooltipNode.removeEventListener(e.type,n),o.contains(a)||t._scheduleHide(o,r.delay,r,i)}),!0)}},ot=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];t.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,t)},nt=function(t){function e(t,o){if(1===arguments.length){for(var r=t[0],i=1;i<t.length;i++)r=e(r,t[i]);return r}for(var a in o)if("class"===a){var s=t[a]||[];t[a]=(Array.isArray(s)?s:[s]).concat(o[a]||[])}else if("style"===a){s=n(t[a]);var l=n(o[a]);t[a]=s+l}else t[a]=o[a];return t}function o(t,e){return Array.isArray(t)?function(t,e){for(var n,r="",a="",s=Array.isArray(e),l=0;l<t.length;l++)(n=o(t[l]))&&(s&&e[l]&&(n=i(n)),r=r+a+n,a=" ");return r}(t,e):t&&"object"==typeof t?function(t){var e="",o="";for(var n in t)n&&t[n]&&s.call(t,n)&&(e=e+o+n,o=" ");return e}(t):t||""}function n(t){if(!t)return"";if("object"==typeof t){var e="";for(var o in t)s.call(t,o)&&(e=e+o+":"+t[o]+";");return e}return";"!==(t+="")[t.length-1]?t+";":t}function r(t,e,o,n){return!1!==e&&null!=e&&(e||"class"!==t&&"style"!==t)?!0===e?" "+(n?t:t+'="'+t+'"'):("function"==typeof e.toJSON&&(e=e.toJSON()),"string"==typeof e||(e=JSON.stringify(e),o||-1===e.indexOf('"'))?(o&&(e=i(e))," "+t+'="'+e+'"'):" "+t+"='"+e.replace(/'/g,"&#39;")+"'"):""}function i(t){var e=""+t,o=l.exec(e);if(!o)return t;var n,r,i,a="";for(n=o.index,r=0;n<e.length;n++){switch(e.charCodeAt(n)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}r!==n&&(a+=e.substring(r,n)),r=n+1,a+=i}return r!==n?a+e.substring(r,n):a}function a(t,e,o,n){if(!(t instanceof Error))throw t;if(!("undefined"==typeof window&&e||n))throw t.message+=" on line "+o,t;try{n=n||require("fs").readFileSync(e,"utf8")}catch(e){a(t,null,o)}var r=3,i=n.split("\n"),s=Math.max(o-r,0),l=Math.min(i.length,o+r);r=i.slice(s,l).map(function(t,e){var n=e+s+1;return(n==o?" > ":" ")+n+"| "+t}).join("\n");throw t.path=e,t.message=(e||"Pug")+":"+o+"\n"+r+"\n\n"+t.message,t}var s=Object.prototype.hasOwnProperty;t.merge=e,t.classes=o,t.style=n,t.attr=r,t.attrs=function(t,e){var i="";for(var a in t)if(s.call(t,a)){var l=t[a];if("class"===a){i=r(a,l=o(l),!1,e)+i;continue}"style"===a&&(l=n(l)),i+=r(a,l,!1,e)}return i};var l=/["&<>]/;return t.escape=i,t.rethrow=a,t}({});!function(t,e){if("undefined"==typeof document)return e;t=t||"";var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",o.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}('.abtasty-tooltip.tooltip{opacity:1;margin:0;margin:initial;border:medium none currentColor;border:initial;height:auto;width:auto;font-size:medium;color:#000;color:initial;cursor:auto}.abtasty-tooltip-container p{margin:0;margin:initial}.abtasty-tooltip.tooltip .abtasty-tooltip-inner.tooltip-inner{max-width:none;padding:0;padding:initial;color:#000;color:initial;text-align:center;text-decoration:none;text-decoration:initial;background-color:transparent;background-color:initial;border-radius:0;border-radius:initial}.abtasty-tooltip.tooltip{position:absolute;padding:10px;min-width:150px;text-align:center;border-style:solid;display:inline;display:initial}.abtasty-tooltip.tooltip:after,.abtasty-tooltip.tooltip:before{border:solid transparent;content:"";height:0;width:0;position:absolute;pointer-events:none;border-width:8px}.abtasty-tooltip.tooltip[x-placement^=bottom]:after,.abtasty-tooltip.tooltip[x-placement^=bottom]:before{bottom:100%;left:50%}.abtasty-tooltip.tooltip[x-placement^=top]:after,.abtasty-tooltip.tooltip[x-placement^=top]:before{top:100%;left:50%}.abtasty-tooltip.tooltip[x-placement^=bottom]:after,.abtasty-tooltip.tooltip[x-placement^=top]:after{margin-left:-8px}.abtasty-tooltip.tooltip[x-placement^=left]:after,.abtasty-tooltip.tooltip[x-placement^=left]:before{left:100%;top:50%}.abtasty-tooltip.tooltip[x-placement^=right]:after,.abtasty-tooltip.tooltip[x-placement^=right]:before{right:100%;top:50%}.abtasty-tooltip.tooltip[x-placement^=left]:after,.abtasty-tooltip.tooltip[x-placement^=right]:after{margin-top:-8px}',void 0);var rt=DATA,it=rt.layout,at=rt.selector,st=rt.content,lt=rt.titleContent,pt=rt.position,ft=rt.fontColor,dt=rt.backgroundColor,ct=rt.borderColor,ut=rt.borderWidth,ht=rt.borderRadius,mt=rt.dropShadow,vt=rt.dropShadowOpacity,bt=rt.trigger,gt=rt.pageLoad,yt=rt.showOnlyOnce,wt=void 0!==window.ABTastyEditor,Ot="true"===sessionStorage.getItem(PACKAGE+"_DISPLAYED_ON_"+TEST_ID),Et=function(t,e,o,n){var r=document.head||document.getElementsByTagName("head")[0],i=document.getElementById(t)||document.createElement("style");i.id=t,i.innerHTML+=["."+t,""+e,n?":"+n:"","{"+o.join(";")+"}"].join(""),r.appendChild(i)};yt&&Ot&&!wt||function(t,e,o){var n=0,r=0;try{document.querySelector(t)}catch(e){var i='Selector "'+t+'" not valid.';return ot(i),"function"==typeof o&&o(i)}n=setTimeout(function(){clearInterval(r);var e="Can't find element \""+t+'".';return ot(e),"function"==typeof o&&o(e)},1e4),r=setInterval(function(){var o=document.querySelector(t);if(null!==o)return clearTimeout(n),clearInterval(r),"function"==typeof e&&e(o)},200)}(at,function(){var t=setInterval(function(){if(null!==document.querySelector(at).offsetParent||"BODY"===document.querySelector(at).tagName){clearInterval(t);var e=window.top.ABTastyWidgetForm||!1,o=e?"click":bt,n=function(){var t="widget-tooltip-"+Math.round(1e4*Math.random());return[{placement:"top",marginDirection:"left",borderDirection:"top"},{placement:"bottom",marginDirection:"left",borderDirection:"bottom"},{placement:"left",marginDirection:"top",borderDirection:"left"},{placement:"right",marginDirection:"top",borderDirection:"right"}].forEach(function(e){var o=e.placement,n=e.marginDirection,r=e.borderDirection;Et(t,'.abtasty-tooltip.tooltip[x-placement^="'+o+'"]',["border-"+r+"-color: "+ct,"margin-"+n+": -"+(8+ut)+"px","border-width: "+(8+ut)+"px"],"before"),Et(t,'.abtasty-tooltip.tooltip[x-placement^="'+o+'"]',["border-"+r+"-color: "+dt],"after")}),t}();Et(n,".abtasty-tooltip .abtasty-tooltip-inner p",["color: "+ft+"!important"]);var r=new tt(document.querySelector(at),{container:"body",placement:pt,title:lt,html:!0,trigger:o,template:function(t){var e,o="";try{var n={},r=t||{};(function(t,n,r,i,a,s,l,p,f,d,c){o=o+"<div"+nt.attr("class",nt.classes(["abtasty-tooltip tooltip "+f],[!0]),!1,!0)+' role="tooltip"'+nt.attr("style",nt.style({background:t,"z-index":2147483647,"box-shadow":"0 0 "+(s?l:"0")+"px rgba(0,0,0,0.5)","border-width":i+"px","border-color":n,"border-radius":r+"px"}),!0,!0)+">",o=(o=(o+='<div class="abtasty-tooltip-container">')+'<div class="abtasty-tooltip-inner tooltip-inner"'+nt.attr("style",nt.style({color:p}),!0,!0)+">")+(null==(e=c)?"":e)+"</div>","rich"===d&&(o=(o=o+'<div class="abtasty-tooltip-inner tooltip-inner-content"'+nt.attr("style",nt.style({color:p}),!0,!0)+">")+(null==(e=a)?"":e)+"</div>"),o+="</div></div>"}).call(this,"backgroundColor"in r?r.backgroundColor:"undefined"!=typeof backgroundColor?backgroundColor:void 0,"borderColor"in r?r.borderColor:"undefined"!=typeof borderColor?borderColor:void 0,"borderRadius"in r?r.borderRadius:"undefined"!=typeof borderRadius?borderRadius:void 0,"borderWidth"in r?r.borderWidth:"undefined"!=typeof borderWidth?borderWidth:void 0,"content"in r?r.content:"undefined"!=typeof content?content:void 0,"dropShadow"in r?r.dropShadow:"undefined"!=typeof dropShadow?dropShadow:void 0,"dropShadowOpacity"in r?r.dropShadowOpacity:"undefined"!=typeof dropShadowOpacity?dropShadowOpacity:void 0,"fontColor"in r?r.fontColor:"undefined"!=typeof fontColor?fontColor:void 0,"identifier"in r?r.identifier:"undefined"!=typeof identifier?identifier:void 0,"layout"in r?r.layout:"undefined"!=typeof layout?layout:void 0,"titleContent"in r?r.titleContent:"undefined"!=typeof titleContent?titleContent:void 0)}catch(t){nt.rethrow(t,void 0,void 0,n[void 0])}return o}({identifier:n,layout:it,content:st,titleContent:lt,fontColor:ft,backgroundColor:dt,borderColor:ct,borderWidth:ut,borderRadius:ht,dropShadow:mt,dropShadowOpacity:vt})});(e||gt)&&r.show(),sessionStorage.setItem(PACKAGE+"_DISPLAYED_ON_"+TEST_ID,!0)}},1e3)})}();
!function(){"use strict";function t(t){return t&&"[object Function]"==={}.toString.call(t)}function e(t,e){if(1!==t.nodeType)return[];var o=getComputedStyle(t,null);return e?o[e]:o}function o(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function n(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var r=e(t),i=r.overflow,a=r.overflowX,s=r.overflowY;return/(auto|scroll)/.test(i+s+a)?t:n(o(t))}function r(t){var o=t&&t.offsetParent,n=o&&o.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(o.nodeName)&&"static"===e(o,"position")?r(o):o:t?t.ownerDocument.documentElement:document.documentElement}function i(t){return null!==t.parentNode?i(t.parentNode):t}function a(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var o=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?t:e,s=o?e:t,l=document.createRange();l.setStart(n,0),l.setEnd(s,0);var p=l.commonAncestorContainer;if(t!==p&&e!==p||n.contains(s))return function(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||r(t.firstElementChild)===t)}(p)?p:r(p);var f=i(t);return f.host?a(f.host,e):a(t,i(e).host)}function s(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",o=t.nodeName;if("BODY"===o||"HTML"===o){var n=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||n)[e]}return t[e]}function l(t,e){var o="x"===e?"Left":"Top",n="Left"===o?"Right":"Bottom";return parseFloat(t["border"+o+"Width"],10)+parseFloat(t["border"+n+"Width"],10)}function p(t,e,o,n){return Math.max(e["offset"+t],e["scroll"+t],o["client"+t],o["offset"+t],o["scroll"+t],F()?o["offset"+t]+n["margin"+("Height"===t?"Top":"Left")]+n["margin"+("Height"===t?"Bottom":"Right")]:0)}function f(){var t=document.body,e=document.documentElement,o=F()&&getComputedStyle(e);return{height:p("Height",t,e,o),width:p("Width",t,e,o)}}function d(t){return U({},t,{right:t.left+t.width,bottom:t.top+t.height})}function c(t){var o={};if(F())try{o=t.getBoundingClientRect();var n=s(t,"top"),r=s(t,"left");o.top+=n,o.left+=r,o.bottom+=n,o.right+=r}catch(t){}else o=t.getBoundingClientRect();var i={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},a="HTML"===t.nodeName?f():{},p=a.width||t.clientWidth||i.right-i.left,c=a.height||t.clientHeight||i.bottom-i.top,u=t.offsetWidth-p,h=t.offsetHeight-c;if(u||h){var m=e(t);u-=l(m,"x"),h-=l(m,"y"),i.width-=u,i.height-=h}return d(i)}function u(t,o){var r=F(),i="HTML"===o.nodeName,a=c(t),l=c(o),p=n(t),f=e(o),u=parseFloat(f.borderTopWidth,10),h=parseFloat(f.borderLeftWidth,10),m=d({top:a.top-l.top-u,left:a.left-l.left-h,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var v=parseFloat(f.marginTop,10),b=parseFloat(f.marginLeft,10);m.top-=u-v,m.bottom-=u-v,m.left-=h-b,m.right-=h-b,m.marginTop=v,m.marginLeft=b}return(r?o.contains(p):o===p&&"BODY"!==p.nodeName)&&(m=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=s(e,"top"),r=s(e,"left"),i=o?-1:1;return t.top+=n*i,t.bottom+=n*i,t.left+=r*i,t.right+=r*i,t}(m,o)),m}function h(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===e(t,"position")||h(o(t)))}function m(t,e,r,i){var l={top:0,left:0},p=a(t,e);if("viewport"===i)l=function(t){var e=t.ownerDocument.documentElement,o=u(t,e),n=Math.max(e.clientWidth,window.innerWidth||0),r=Math.max(e.clientHeight,window.innerHeight||0),i=s(e),a=s(e,"left");return d({top:i-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:n,height:r})}(p);else{var c=void 0;"scrollParent"===i?"BODY"===(c=n(o(e))).nodeName&&(c=t.ownerDocument.documentElement):c="window"===i?t.ownerDocument.documentElement:i;var m=u(c,p);if("HTML"!==c.nodeName||h(p))l=m;else{var v=f(),b=v.height,g=v.width;l.top+=m.top-m.marginTop,l.bottom=b+m.top,l.left+=m.left-m.marginLeft,l.right=g+m.left}}return l.left+=r,l.top+=r,l.right-=r,l.bottom-=r,l}function v(t,e,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=m(o,n,i,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map(function(t){return U({key:t},s[t],{area:function(t){return t.width*t.height}(s[t])})}).sort(function(t,e){return e.area-t.area}),p=l.filter(function(t){var e=t.width,n=t.height;return e>=o.clientWidth&&n>=o.clientHeight}),f=p.length>0?p[0].key:l[0].key,d=t.split("-")[1];return f+(d?"-"+d:"")}function b(t,e,o){return u(o,a(e,o))}function g(t){var e=getComputedStyle(t),o=parseFloat(e.marginTop)+parseFloat(e.marginBottom),n=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+n,height:t.offsetHeight+o}}function y(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function w(t,e,o){o=o.split("-")[0];var n=g(t),r={width:n.width,height:n.height},i=-1!==["right","left"].indexOf(o),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",p=i?"width":"height";return r[a]=e[a]+e[l]/2-n[l]/2,r[s]=o===s?e[s]-n[p]:e[y(s)],r}function O(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function E(e,o,n){return(void 0===n?e:e.slice(0,function(t,e,o){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===o});var n=O(t,function(t){return t[e]===o});return t.indexOf(n)}(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&&t(n)&&(o.offsets.popper=d(o.offsets.popper),o.offsets.reference=d(o.offsets.reference),o=n(o,e))}),o}function x(t,e){return t.some(function(t){var o=t.name;return t.enabled&&o===e})}function _(t){for(var e=[!1,"ms","Webkit","Moz","O"],o=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length-1;n++){var r=e[n],i=r?""+r+o:t;if(void 0!==document.body.style[i])return i}return null}function C(t){var e=t.ownerDocument;return e?e.defaultView:window}function T(t,e,o,r){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(e,o,{passive:!0}),i||T(n(a.parentNode),e,o,r),r.push(a)}function S(){this.state.eventsEnabled||(this.state=function(t,e,o,r){o.updateBound=r,C(t).addEventListener("resize",o.updateBound,{passive:!0});var i=n(t);return T(i,"scroll",o.updateBound,o.scrollParents),o.scrollElement=i,o.eventsEnabled=!0,o}(this.reference,this.options,this.state,this.scheduleUpdate))}function N(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(t,e){return C(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function L(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function k(t,e){Object.keys(e).forEach(function(o){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(o)&&L(e[o])&&(n="px"),t.style[o]=e[o]+n})}function D(t,e,o){var n=O(t,function(t){return t.name===e}),r=!!n&&t.some(function(t){return t.name===o&&t.enabled&&t.order<n.order});if(!r){var i="`"+e+"`",a="`"+o+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}function A(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=G.indexOf(t),n=G.slice(o+1).concat(G.slice(0,o));return e?n.reverse():n}function M(t,e,o,n){var r=[0,0],i=-1!==["right","left"].indexOf(n),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=a.indexOf(O(a,function(t){return-1!==t.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,p=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(p=p.map(function(t,n){var r=(1===n?!i:i)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,o,n){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],a=r[2];if(!i)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=o;break;case"%":case"%r":default:s=n}return d(s)[e]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(t,r,e,o)})})).forEach(function(t,e){t.forEach(function(o,n){L(o)&&(r[e]+=o*("-"===t[n-1]?-1:1))})}),r}for(var W="undefined"!=typeof window&&"undefined"!=typeof document,I=["Edge","Trident","Firefox"],P=0,B=0;B<I.length;B+=1)if(W&&navigator.userAgent.indexOf(I[B])>=0){P=1;break}var H=W&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},P))}},j=void 0,F=function(){return void 0===j&&(j=-1!==navigator.appVersion.indexOf("MSIE 10")),j},R=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},q=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),Y=function(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t},U=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},K=["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"],G=K.slice(3),z={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},V={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,o=e.split("-")[0],n=e.split("-")[1];if(n){var r=t.offsets,i=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(o),l=s?"left":"top",p=s?"width":"height",f={start:Y({},l,i[l]),end:Y({},l,i[l]+i[p]-a[p])};t.offsets.popper=U({},a,f[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var o=e.offset,n=t.placement,r=t.offsets,i=r.popper,a=r.reference,s=n.split("-")[0],l=void 0;return l=L(+o)?[+o,0]:M(o,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),t.popper=i,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var o=e.boundariesElement||r(t.instance.popper);t.instance.reference===o&&(o=r(o));var n=m(t.instance.popper,t.instance.reference,e.padding,o);e.boundaries=n;var i=e.priority,a=t.offsets.popper,s={primary:function(t){var o=a[t];return a[t]<n[t]&&!e.escapeWithReference&&(o=Math.max(a[t],n[t])),Y({},t,o)},secondary:function(t){var o="right"===t?"left":"top",r=a[o];return a[t]>n[t]&&!e.escapeWithReference&&(r=Math.min(a[o],n[t]-("right"===t?a.width:a.height))),Y({},o,r)}};return i.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";a=U({},a,s[e](t))}),t.offsets.popper=a,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,o=e.popper,n=e.reference,r=t.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",p=a?"width":"height";return o[s]<i(n[l])&&(t.offsets.popper[l]=i(n[l])-o[p]),o[l]>i(n[s])&&(t.offsets.popper[l]=i(n[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,o){var n;if(!D(t.instance.modifiers,"arrow","keepTogether"))return t;var r=o.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],a=t.offsets,s=a.popper,l=a.reference,p=-1!==["left","right"].indexOf(i),f=p?"height":"width",c=p?"Top":"Left",u=c.toLowerCase(),h=p?"left":"top",m=p?"bottom":"right",v=g(r)[f];l[m]-v<s[u]&&(t.offsets.popper[u]-=s[u]-(l[m]-v)),l[u]+v>s[m]&&(t.offsets.popper[u]+=l[u]+v-s[m]),t.offsets.popper=d(t.offsets.popper);var b=l[u]+l[f]/2-v/2,y=e(t.instance.popper),w=parseFloat(y["margin"+c],10),O=parseFloat(y["border"+c+"Width"],10),E=b-t.offsets.popper[u]-w-O;return E=Math.max(Math.min(s[f]-v,E),0),t.arrowElement=r,t.offsets.arrow=(n={},Y(n,u,Math.round(E)),Y(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(x(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var o=m(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),n=t.placement.split("-")[0],r=y(n),i=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case z.FLIP:a=[n,r];break;case z.CLOCKWISE:a=A(n);break;case z.COUNTERCLOCKWISE:a=A(n,!0);break;default:a=e.behavior}return a.forEach(function(s,l){if(n!==s||a.length===l+1)return t;n=t.placement.split("-")[0],r=y(n);var p=t.offsets.popper,f=t.offsets.reference,d=Math.floor,c="left"===n&&d(p.right)>d(f.left)||"right"===n&&d(p.left)<d(f.right)||"top"===n&&d(p.bottom)>d(f.top)||"bottom"===n&&d(p.top)<d(f.bottom),u=d(p.left)<d(o.left),h=d(p.right)>d(o.right),m=d(p.top)<d(o.top),v=d(p.bottom)>d(o.bottom),b="left"===n&&u||"right"===n&&h||"top"===n&&m||"bottom"===n&&v,g=-1!==["top","bottom"].indexOf(n),O=!!e.flipVariations&&(g&&"start"===i&&u||g&&"end"===i&&h||!g&&"start"===i&&m||!g&&"end"===i&&v);(c||b||O)&&(t.flipped=!0,(c||b)&&(n=a[l+1]),O&&(i=function(t){return"end"===t?"start":"start"===t?"end":t}(i)),t.placement=n+(i?"-"+i:""),t.offsets.popper=U({},t.offsets.popper,w(t.instance.popper,t.offsets.reference,t.placement)),t=E(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,o=e.split("-")[0],n=t.offsets,r=n.popper,i=n.reference,a=-1!==["left","right"].indexOf(o),s=-1===["top","left"].indexOf(o);return r[a?"left":"top"]=i[o]-(s?r[a?"width":"height"]:0),t.placement=y(e),t.offsets.popper=d(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!D(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,o=O(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<o.top||e.left>o.right||e.top>o.bottom||e.right<o.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var o=e.x,n=e.y,i=t.offsets.popper,a=O(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==a?a:e.gpuAcceleration,l=c(r(t.instance.popper)),p={position:i.position},f={left:Math.floor(i.left),top:Math.floor(i.top),bottom:Math.floor(i.bottom),right:Math.floor(i.right)},d="bottom"===o?"top":"bottom",u="right"===n?"left":"right",h=_("transform"),m=void 0,v=void 0;if(v="bottom"===d?-l.height+f.bottom:f.top,m="right"===u?-l.width+f.right:f.left,s&&h)p[h]="translate3d("+m+"px, "+v+"px, 0)",p[d]=0,p[u]=0,p.willChange="transform";else{var b="bottom"===d?-1:1,g="right"===u?-1:1;p[d]=v*b,p[u]=m*g,p.willChange=d+", "+u}var y={"x-placement":t.placement};return t.attributes=U({},y,t.attributes),t.styles=U({},p,t.styles),t.arrowStyles=U({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return k(t.instance.popper,t.styles),function(t,e){Object.keys(e).forEach(function(o){!1!==e[o]?t.setAttribute(o,e[o]):t.removeAttribute(o)})}(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&k(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,o,n,r){var i=b(0,e,t),a=v(o.placement,i,e,t,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return e.setAttribute("x-placement",a),k(e,{position:"absolute"}),o},gpuAcceleration:void 0}}},J=function(){function e(o,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};R(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=H(this.update.bind(this)),this.options=U({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(U({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=U({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return U({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(e){e.enabled&&t(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return q(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=b(this.state,this.popper,this.reference),t.placement=v(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=w(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=E(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,x(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[_("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return S.call(this)}},{key:"disableEventListeners",value:function(){return N.call(this)}}]),e}();J.Utils=("undefined"!=typeof window?window:global).PopperUtils,J.placements=K,J.Defaults=V;var X=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Q=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),Z=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},$={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},tt=function(){function t(e,o){X(this,t),et.call(this),o=Z({},$,o),e.jquery&&(e=e[0]),this.reference=e,this.options=o;var n="string"==typeof o.trigger?o.trigger.split(" ").filter(function(t){return-1!==["click","hover","focus"].indexOf(t)}):[];this._isOpen=!1,this._popperOptions={},this._setEventListeners(e,n,o)}return Q(t,[{key:"_create",value:function(t,e,o,n){var r=window.document.createElement("div");r.innerHTML=e.trim();var i=r.childNodes[0];i.id="tooltip_"+Math.random().toString(36).substr(2,10),i.setAttribute("aria-hidden","false");var a=r.querySelector(this.innerSelector);if(1===o.nodeType||11===o.nodeType)n&&a.appendChild(o);else if(function(t){return t&&"[object Function]"==={}.toString.call(t)}(o)){var s=o.call(t);n?a.innerHTML=s:a.innerText=s}else n?a.innerHTML=o:a.innerText=o;return i}},{key:"_show",value:function(t,e){if(this._isOpen&&!this._isOpening)return this;if(this._isOpen=!0,this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.update(),this;var o=t.getAttribute("title")||e.title;if(!o)return this;var n=this._create(t,e.template,o,e.html);t.setAttribute("aria-describedby",n.id);var r=this._findContainer(e.container,t);return this._append(n,r),this._popperOptions=Z({},e.popperOptions,{placement:e.placement}),this._popperOptions.modifiers=Z({},this._popperOptions.modifiers,{arrow:{element:this.arrowSelector},offset:{offset:e.offset}}),e.boundariesElement&&(this._popperOptions.modifiers.preventOverflow={boundariesElement:e.boundariesElement}),this.popperInstance=new J(t,n,this._popperOptions),this._tooltipNode=n,this}},{key:"_hide",value:function(){return this._isOpen?(this._isOpen=!1,this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this):this}},{key:"_dispose",value:function(){var t=this;return this._events.forEach(function(e){var o=e.func,n=e.event;t.reference.removeEventListener(n,o)}),this._events=[],this._tooltipNode&&(this._hide(),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)),this}},{key:"_findContainer",value:function(t,e){return"string"==typeof t?t=window.document.querySelector(t):!1===t&&(t=e.parentNode),t}},{key:"_append",value:function(t,e){e.appendChild(t)}},{key:"_setEventListeners",value:function(t,e,o){var n=this,r=[],i=[];e.forEach(function(t){switch(t){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(e){var r=function(e){!0!==n._isOpening&&(e.usedByTooltip=!0,n._scheduleShow(t,o.delay,o,e))};n._events.push({event:e,func:r}),t.addEventListener(e,r)}),i.forEach(function(e){var r=function(e){!0!==e.usedByTooltip&&n._scheduleHide(t,o.delay,o,e)};n._events.push({event:e,func:r}),t.addEventListener(e,r)})}},{key:"_scheduleShow",value:function(t,e,o){var n=this;this._isOpening=!0;var r=e&&e.show||e||0;this._showTimeout=window.setTimeout(function(){return n._show(t,o)},r)}},{key:"_scheduleHide",value:function(t,e,o,n){var r=this;this._isOpening=!1;var i=e&&e.hide||e||0;window.setTimeout(function(){if(window.clearTimeout(r._showTimeout),!1!==r._isOpen&&document.body.contains(r._tooltipNode)){if("mouseleave"===n.type){if(r._setTooltipNodeEvent(n,t,e,o))return}r._hide(t,o)}},i)}}]),t}(),et=function(){var t=this;this.show=function(){return t._show(t.reference,t.options)},this.hide=function(){return t._hide()},this.dispose=function(){return t._dispose()},this.toggle=function(){return t._isOpen?t.hide():t.show()},this.arrowSelector=".tooltip-arrow, .tooltip__arrow",this.innerSelector=".tooltip-inner, .tooltip__inner",this._events=[],this._setTooltipNodeEvent=function(e,o,n,r){var i=e.relatedreference||e.toElement||e.relatedTarget;return!!t._tooltipNode.contains(i)&&(t._tooltipNode.addEventListener(e.type,function n(i){var a=i.relatedreference||i.toElement||i.relatedTarget;t._tooltipNode.removeEventListener(e.type,n),o.contains(a)||t._scheduleHide(o,r.delay,r,i)}),!0)}},ot=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];t.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,t)},nt=function(t){function e(t,o){if(1===arguments.length){for(var r=t[0],i=1;i<t.length;i++)r=e(r,t[i]);return r}for(var a in o)if("class"===a){var s=t[a]||[];t[a]=(Array.isArray(s)?s:[s]).concat(o[a]||[])}else if("style"===a){s=n(t[a]);var l=n(o[a]);t[a]=s+l}else t[a]=o[a];return t}function o(t,e){return Array.isArray(t)?function(t,e){for(var n,r="",a="",s=Array.isArray(e),l=0;l<t.length;l++)(n=o(t[l]))&&(s&&e[l]&&(n=i(n)),r=r+a+n,a=" ");return r}(t,e):t&&"object"==typeof t?function(t){var e="",o="";for(var n in t)n&&t[n]&&s.call(t,n)&&(e=e+o+n,o=" ");return e}(t):t||""}function n(t){if(!t)return"";if("object"==typeof t){var e="";for(var o in t)s.call(t,o)&&(e=e+o+":"+t[o]+";");return e}return";"!==(t+="")[t.length-1]?t+";":t}function r(t,e,o,n){return!1!==e&&null!=e&&(e||"class"!==t&&"style"!==t)?!0===e?" "+(n?t:t+'="'+t+'"'):("function"==typeof e.toJSON&&(e=e.toJSON()),"string"==typeof e||(e=JSON.stringify(e),o||-1===e.indexOf('"'))?(o&&(e=i(e))," "+t+'="'+e+'"'):" "+t+"='"+e.replace(/'/g,"&#39;")+"'"):""}function i(t){var e=""+t,o=l.exec(e);if(!o)return t;var n,r,i,a="";for(n=o.index,r=0;n<e.length;n++){switch(e.charCodeAt(n)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}r!==n&&(a+=e.substring(r,n)),r=n+1,a+=i}return r!==n?a+e.substring(r,n):a}function a(t,e,o,n){if(!(t instanceof Error))throw t;if(!("undefined"==typeof window&&e||n))throw t.message+=" on line "+o,t;try{n=n||require("fs").readFileSync(e,"utf8")}catch(e){a(t,null,o)}var r=3,i=n.split("\n"),s=Math.max(o-r,0),l=Math.min(i.length,o+r);r=i.slice(s,l).map(function(t,e){var n=e+s+1;return(n==o?" > ":" ")+n+"| "+t}).join("\n");throw t.path=e,t.message=(e||"Pug")+":"+o+"\n"+r+"\n\n"+t.message,t}var s=Object.prototype.hasOwnProperty;t.merge=e,t.classes=o,t.style=n,t.attr=r,t.attrs=function(t,e){var i="";for(var a in t)if(s.call(t,a)){var l=t[a];if("class"===a){i=r(a,l=o(l),!1,e)+i;continue}"style"===a&&(l=n(l)),i+=r(a,l,!1,e)}return i};var l=/["&<>]/;return t.escape=i,t.rethrow=a,t}({});!function(t,e){if("undefined"==typeof document)return e;t=t||"";var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",o.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}('.abtasty-tooltip.tooltip{opacity:1;margin:0;margin:initial;border:medium none currentColor;border:initial;height:auto;width:auto;font-size:medium;color:#000;color:initial;cursor:auto}.abtasty-tooltip-container p{margin:0;margin:initial}.abtasty-tooltip.tooltip .abtasty-tooltip-inner.tooltip-inner{max-width:none;padding:0;padding:initial;color:#000;color:initial;text-align:center;text-decoration:none;text-decoration:initial;background-color:transparent;background-color:initial;border-radius:0;border-radius:initial}.abtasty-tooltip.tooltip{position:absolute;padding:10px;min-width:150px;text-align:center;border-style:solid;display:inline;display:initial}.abtasty-tooltip.tooltip:after,.abtasty-tooltip.tooltip:before{border:solid transparent;content:"";height:0;width:0;position:absolute;pointer-events:none;border-width:8px}.abtasty-tooltip.tooltip[x-placement^=bottom]:after,.abtasty-tooltip.tooltip[x-placement^=bottom]:before{bottom:100%;left:50%}.abtasty-tooltip.tooltip[x-placement^=top]:after,.abtasty-tooltip.tooltip[x-placement^=top]:before{top:100%;left:50%}.abtasty-tooltip.tooltip[x-placement^=bottom]:after,.abtasty-tooltip.tooltip[x-placement^=top]:after{margin-left:-8px}.abtasty-tooltip.tooltip[x-placement^=left]:after,.abtasty-tooltip.tooltip[x-placement^=left]:before{left:100%;top:50%}.abtasty-tooltip.tooltip[x-placement^=right]:after,.abtasty-tooltip.tooltip[x-placement^=right]:before{right:100%;top:50%}.abtasty-tooltip.tooltip[x-placement^=left]:after,.abtasty-tooltip.tooltip[x-placement^=right]:after{margin-top:-8px}',void 0);var rt=DATA,it=rt.layout,at=rt.selector,st=rt.content,lt=rt.titleContent,pt=rt.position,ft=rt.fontColor,dt=rt.backgroundColor,ct=rt.borderColor,ut=rt.borderWidth,ht=rt.borderRadius,mt=rt.dropShadow,vt=rt.dropShadowOpacity,bt=rt.trigger,gt=rt.pageLoad,yt=rt.showOnlyOnce,wt=void 0!==window.ABTastyEditor,Ot="true"===sessionStorage.getItem(PACKAGE+"_DISPLAYED_ON_"+TEST_ID),Et=function(t,e,o,n){var r=document.head||document.getElementsByTagName("head")[0],i=document.getElementById(t)||document.createElement("style");i.id=t,i.innerHTML+=["."+t,""+e,n?":"+n:"","{"+o.join(";")+"}"].join(""),r.appendChild(i)};yt&&Ot&&!wt||function(t,e,o){var n=0,r=0;try{document.querySelector(t)}catch(e){var i='Selector "'+t+'" not valid.';return ot(i),"function"==typeof o&&o(i)}n=setTimeout(function(){clearInterval(r);var e="Can't find element \""+t+'".';return ot(e),"function"==typeof o&&o(e)},1e4),r=setInterval(function(){var o=document.querySelector(t);if(null!==o)return clearTimeout(n),clearInterval(r),"function"==typeof e&&e(o)},200)}(at,function(){var t=setInterval(function(){if(null!==document.querySelector(at).offsetParent||"BODY"===document.querySelector(at).tagName){clearInterval(t);var e=window.top.ABTastyWidgetForm||!1,o=e?"click":bt,n=function(){var t="widget-tooltip-"+Math.round(1e4*Math.random());return[{placement:"top",marginDirection:"left",borderDirection:"top"},{placement:"bottom",marginDirection:"left",borderDirection:"bottom"},{placement:"left",marginDirection:"top",borderDirection:"left"},{placement:"right",marginDirection:"top",borderDirection:"right"}].forEach(function(e){var o=e.placement,n=e.marginDirection,r=e.borderDirection;Et(t,'.abtasty-tooltip.tooltip[x-placement^="'+o+'"]',["border-"+r+"-color: "+ct,"margin-"+n+": -"+(8+ut)+"px","border-width: "+(8+ut)+"px"],"before"),Et(t,'.abtasty-tooltip.tooltip[x-placement^="'+o+'"]',["border-"+r+"-color: "+dt],"after")}),t}();Et(n,".abtasty-tooltip .abtasty-tooltip-inner p",["color: "+ft+"!important"]);var r=new tt(document.querySelector(at),{container:"body",placement:pt,title:lt,html:!0,trigger:o,template:function(t){var e,o="";try{var n={},r=t||{};(function(t,n,r,i,a,s,l,p,f,d,c){o=o+"<div"+nt.attr("class",nt.classes(["abtasty-tooltip tooltip "+f],[!0]),!1,!0)+' role="tooltip"'+nt.attr("style",nt.style({background:t,"z-index":2147483647,"box-shadow":"0 0 "+(s?l:"0")+"px rgba(0,0,0,0.5)","border-width":i+"px","border-color":n,"border-radius":r+"px"}),!0,!0)+">",o=(o=(o+='<div class="abtasty-tooltip-container">')+'<div class="abtasty-tooltip-inner tooltip-inner"'+nt.attr("style",nt.style({color:p}),!0,!0)+">")+(null==(e=c)?"":e)+"</div>","rich"===d&&(o=(o=o+'<div class="abtasty-tooltip-inner tooltip-inner-content"'+nt.attr("style",nt.style({color:p}),!0,!0)+">")+(null==(e=a)?"":e)+"</div>"),o+="</div></div>"}).call(this,"backgroundColor"in r?r.backgroundColor:"undefined"!=typeof backgroundColor?backgroundColor:void 0,"borderColor"in r?r.borderColor:"undefined"!=typeof borderColor?borderColor:void 0,"borderRadius"in r?r.borderRadius:"undefined"!=typeof borderRadius?borderRadius:void 0,"borderWidth"in r?r.borderWidth:"undefined"!=typeof borderWidth?borderWidth:void 0,"content"in r?r.content:"undefined"!=typeof content?content:void 0,"dropShadow"in r?r.dropShadow:"undefined"!=typeof dropShadow?dropShadow:void 0,"dropShadowOpacity"in r?r.dropShadowOpacity:"undefined"!=typeof dropShadowOpacity?dropShadowOpacity:void 0,"fontColor"in r?r.fontColor:"undefined"!=typeof fontColor?fontColor:void 0,"identifier"in r?r.identifier:"undefined"!=typeof identifier?identifier:void 0,"layout"in r?r.layout:"undefined"!=typeof layout?layout:void 0,"titleContent"in r?r.titleContent:"undefined"!=typeof titleContent?titleContent:void 0)}catch(t){nt.rethrow(t,void 0,void 0,n[void 0])}return o}({identifier:n,layout:it,content:st,titleContent:lt,fontColor:ft,backgroundColor:dt,borderColor:ct,borderWidth:ut,borderRadius:ht,dropShadow:mt,dropShadowOpacity:vt})});(e||gt)&&r.show(),window.addEventListener("hashchange",function(){r.dispose()}),sessionStorage.setItem(PACKAGE+"_DISPLAYED_ON_"+TEST_ID,!0)}},1e3)})}();
{
"name": "@abtasty/tooltip",
"description": "Widget for AB Tasty",
"version": "1.0.8",
"version": "1.0.9-0",
"icon": "icon.png",

@@ -6,0 +6,0 @@ "form": "dist/form.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc