var __decorate=this&&this.__decorate||function(t,e,o,n){var i,s=arguments.length,r=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(r=(s<3?i(r):s>3?i(e,o,r):i(e,o))||r);return s>3&&r&&Object.defineProperty(e,o,r),r},__metadata=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};define("ngx-tooltip/TooltipContent",["require","exports","@angular/core"],function(t,e,o){"use strict";var n=function(){function t(t,e){this.element=t,this.cdr=e,this.placement="bottom",this.animation=!0,this.top=-1e5,this.left=-1e5,this.isIn=!1,this.isFade=!1}return t.prototype.ngAfterViewInit=function(){this.show(),this.cdr.detectChanges()},t.prototype.show=function(){if(this.hostElement){var t=this.positionElements(this.hostElement,this.element.nativeElement.children[0],this.placement);this.top=t.top,this.left=t.left,this.isIn=!0,this.animation&&(this.isFade=!0)}},t.prototype.hide=function(){this.top=-1e5,this.left=-1e5,this.isIn=!0,this.animation&&(this.isFade=!1)},t.prototype.positionElements=function(t,e,o,n){void 0===n&&(n=!1);var i,s=o.split("-"),r=s[0],a=s[1]||"center",p=n?this.offset(t):this.position(t),l=e.offsetWidth,c=e.offsetHeight,d={center:function(){return p.left+p.width/2-l/2},left:function(){return p.left},right:function(){return p.left+p.width}},f={center:function(){return p.top+p.height/2-c/2},top:function(){return p.top},bottom:function(){return p.top+p.height}};switch(r){case"right":i={top:f[a](),left:d[r]()};break;case"left":i={top:f[a](),left:p.left-l};break;case"bottom":i={top:f[r](),left:d[a]()};break;default:i={top:p.top-c,left:d[a]()}}return i},t.prototype.position=function(t){var e={top:0,left:0},o=this.offset(t),n=this.parentOffsetEl(t);n!==window.document&&(e=this.offset(n),e.top+=n.clientTop-n.scrollTop,e.left+=n.clientLeft-n.scrollLeft);var i=t.getBoundingClientRect();return{width:i.width||t.offsetWidth,height:i.height||t.offsetHeight,top:o.top-e.top,left:o.left-e.left}},t.prototype.offset=function(t){var e=t.getBoundingClientRect();return{width:e.width||t.offsetWidth,height:e.height||t.offsetHeight,top:e.top+(window.pageYOffset||window.document.documentElement.scrollTop),left:e.left+(window.pageXOffset||window.document.documentElement.scrollLeft)}},t.prototype.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:window.getComputedStyle?window.getComputedStyle(t)[e]:t.style[e]},t.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},t.prototype.parentOffsetEl=function(t){for(var e=t.offsetParent||window.document;e&&e!==window.document&&this.isStaticPositioned(e);)e=e.offsetParent;return e||window.document},t}();__decorate([o.Input(),__metadata("design:type",HTMLElement)],n.prototype,"hostElement",void 0),__decorate([o.Input(),__metadata("design:type",String)],n.prototype,"content",void 0),__decorate([o.Input(),__metadata("design:type",String)],n.prototype,"placement",void 0),__decorate([o.Input(),__metadata("design:type",Boolean)],n.prototype,"animation",void 0),n=__decorate([o.Component({selector:"tooltip-content",template:'\n