import{a as w}from"./chunk-FRDKXMO3.js";import{a as v}from"./chunk-56YV7ASQ.js";import{e as g,j as p}from"./chunk-AFBR3FKX.js";var h=g((u,o)=>{p();(function(_,i){_===void 0&&window!==void 0&&(_=window),typeof define=="function"&&define.amd?define(["tooltipster"],function(e){return i(e)}):typeof o=="object"&&o.exports?o.exports=i(w()):i(_.jQuery)})(u,function(_){(function(i,e){i===void 0&&window!==void 0&&(i=window),typeof define=="function"&&define.amd?define(["jquery"],function(n){return e(n)}):typeof o=="object"&&o.exports?o.exports=e(v()):e(i.jQuery)})(this,function(i){var e="tooltipster.SVG";return i.tooltipster._plugin({name:e,core:{__init:function(){i.tooltipster._on("init",function(n){var t=i.tooltipster._env.window;t.SVGElement&&n.origin instanceof t.SVGElement&&n.instance._plug(e)})}},instance:{__init:function(n){var t=this;if(t.__hadTitleTag=!1,t.__instance=n,!t.__instance._$origin.hasClass("tooltipstered")){var r=t.__instance._$origin.attr("class")||"";r.indexOf("tooltipstered")==-1&&t.__instance._$origin.attr("class",r+" tooltipstered")}if(t.__instance.content()===null){var c=t.__instance._$origin.find(">title");if(c[0]){var f=c.text();t.__hadTitleTag=!0,t.__instance._$origin.data("tooltipster-initialTitle",f),t.__instance.content(f),c.remove()}}t.__instance._on("geometry."+t.namespace,function(l){var s=i.tooltipster._env.window;if(s.SVG.svgjs){s.SVG.parser||s.SVG.prepare();var d=s.SVG.adopt(l.origin);if(d&&d.screenBBox){var a=d.screenBBox();l.edit({height:a.height,left:a.x,top:a.y,width:a.width})}}})._on("destroy."+t.namespace,function(){t.__destroy()})},__destroy:function(){var n=this;if(!n.__instance._$origin.hasClass("tooltipstered")){var t=n.__instance._$origin.attr("class").replace("tooltipstered","");n.__instance._$origin.attr("class",t)}n.__instance._off("."+n.namespace),n.__hadTitleTag&&n.__instance.one("destroyed",function(){var r=n.__instance._$origin.attr("title");r&&(i(document.createElementNS("http://www.w3.org/2000/svg","title")).text(r).appendTo(n.__instance._$origin),n.__instance._$origin.removeAttr("title"))})}}}),i})})});export default h();
