/*! * DrawSVGPlugin 3.10.4 * https://greensock.com * * @license Copyright 2022, GreenSock. All rights reserved. * This plugin is a membership benefit of Club GreenSock and is only authorized for use in sites/apps/products developed by individuals/companies with an active Club GreenSock membership. See https://greensock.com/club * @author: Jack Doyle, jack@greensock.com */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function j(){return"undefined"!=typeof window}function k(){return r||j()&&(r=window.gsap)&&r.registerPlugin&&r}function n(e){return Math.round(1e4*e)/1e4}function o(e){return parseFloat(e)||0}function p(e,t){var n=o(e);return~e.indexOf("%")?n/100*t:n}function q(e,t){return o(e.getAttribute(t))}function s(e,t,n,r,i,s){return M(Math.pow((o(n)-o(e))*i,2)+Math.pow((o(r)-o(t))*s,2))}function t(e){return console.warn(e)}function u(e){return"non-scaling-stroke"===e.getAttribute("vector-effect")}function x(e){if(!(e=v(e)[0]))return 0;var r,i,o,a,f,h,d,l=e.tagName.toLowerCase(),c=e.style,g=1,p=1;u(e)&&(p=e.getScreenCTM(),g=M(p.a*p.a+p.b*p.b),p=M(p.d*p.d+p.c*p.c));try{i=e.getBBox()}catch(e){t("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var _=i||{x:0,y:0,width:0,height:0},y=_.x,x=_.y,w=_.width,k=_.height;if(i&&(w||k)||!P[l]||(w=q(e,P[l][0]),k=q(e,P[l][1]),"rect"!==l&&"line"!==l&&(w*=2,k*=2),"line"===l&&(y=q(e,"x1"),x=q(e,"y1"),w=Math.abs(w-y),k=Math.abs(k-x))),"path"===l)a=c.strokeDasharray,c.strokeDasharray="none",r=e.getTotalLength()||0,n(g)!==n(p)&&!b&&(b=1)&&t("Warning: length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),r*=(g+p)/2,c.strokeDasharray=a;else if("rect"===l)r=2*w*g+2*k*p;else if("line"===l)r=s(y,x,y+w,x+k,g,p);else if("polyline"===l||"polygon"===l)for(o=e.getAttribute("points").match(m)||[],"polygon"===l&&o.push(o[0],o[1]),r=0,f=2;ft._length-.2&&(s+=s<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=i?s:s+.001,a.strokeDasharray=n<.2?"none":i?i+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}},getLength:x,getPosition:y};k()&&r.registerPlugin(i),e.DrawSVGPlugin=i,e.default=i;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}});