"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!
 * matrix 3.13.0
 * https://gsap.com
 *
 * Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var g,b,M,x,w,y,C,v,h="transform",N=h+"Origin",m,D=function(t){var o=t.ownerDocument||t;for(!(h in t.style)&&("msTransform"in t.style)&&(h="msTransform",N=h+"Origin");o.parentNode&&(o=o.parentNode););if(b=window,C=new _,o){g=o,M=o.documentElement,x=o.body,v=g.createElementNS("http://www.w3.org/2000/svg","g"),v.style.transform="none";var e=o.createElement("div"),s=o.createElement("div"),a=o&&(o.body||o.firstElementChild);a&&a.appendChild&&(a.appendChild(e),e.appendChild(s),e.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),m=s.offsetParent!==e,a.removeChild(e))}return o},G=function(t){for(var o,e;t&&t!==x;)e=t._gsap,e&&e.uncache&&e.get(t,"x"),e&&!e.scaleX&&!e.scaleY&&e.renderTransform&&(e.scaleX=e.scaleY=1e-4,e.renderTransform(1,e),o?o.push(e):o=[e]),t=t.parentNode;return o},B=[],A=[],P=function(){return b.pageYOffset||g.scrollTop||M.scrollTop||x.scrollTop||0},R=function(){return b.pageXOffset||g.scrollLeft||M.scrollLeft||x.scrollLeft||0},E=function(t){return t.ownerSVGElement||((t.tagName+"").toLowerCase()==="svg"?t:null)},I=function c(t){if(b.getComputedStyle(t).position==="fixed")return!0;if(t=t.parentNode,t&&t.nodeType===1)return c(t)},T=function c(t,o){if(t.parentNode&&(g||D(t))){var e=E(t),s=e?e.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=e?o?"rect":"g":"div",r=o!==2?0:100,l=o===3?100:0,f="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",i=g.createElementNS?g.createElementNS(s.replace(/^https/,"http"),a):g.createElement(a);return o&&(e?(y||(y=c(t)),i.setAttribute("width",.01),i.setAttribute("height",.01),i.setAttribute("transform","translate("+r+","+l+")"),y.appendChild(i)):(w||(w=c(t),w.style.cssText=f),i.style.cssText=f+"width:0.1px;height:0.1px;top:"+l+"px;left:"+r+"px",w.appendChild(i))),i}throw"Need document and parent."},X=function(t){for(var o=new _,e=0;e<t.numberOfItems;e++)o.multiply(t.getItem(e).matrix);return o},F=function(t){var o=t.getCTM(),e;return o||(e=t.style[h],t.style[h]="none",t.appendChild(v),o=v.getCTM(),t.removeChild(v),e?t.style[h]=e:t.style.removeProperty(h.replace(/([A-Z])/g,"-$1").toLowerCase())),o||C.clone()},Y=function(t,o){var e=E(t),s=t===e,a=e?B:A,r=t.parentNode,l=r&&!e&&r.shadowRoot&&r.shadowRoot.appendChild?r.shadowRoot:r,f,i,n,d,p,u;if(t===b)return t;if(a.length||a.push(T(t,1),T(t,2),T(t,3)),f=e?y:w,e)s?(n=F(t),d=-n.e/n.a,p=-n.f/n.d,i=C):t.getBBox?(n=t.getBBox(),i=t.transform?t.transform.baseVal:{},i=i.numberOfItems?i.numberOfItems>1?X(i):i.getItem(0).matrix:C,d=i.a*n.x+i.c*n.y,p=i.b*n.x+i.d*n.y):(i=new _,d=p=0),o&&t.tagName.toLowerCase()==="g"&&(d=p=0),(s?e:r).appendChild(f),f.setAttribute("transform","matrix("+i.a+","+i.b+","+i.c+","+i.d+","+(i.e+d)+","+(i.f+p)+")");else{if(d=p=0,m)for(i=t.offsetParent,n=t;n&&(n=n.parentNode)&&n!==i&&n.parentNode;)(b.getComputedStyle(n)[h]+"").length>4&&(d=n.offsetLeft,p=n.offsetTop,n=0);if(u=b.getComputedStyle(t),u.position!=="absolute"&&u.position!=="fixed")for(i=t.offsetParent;r&&r!==i;)d+=r.scrollLeft||0,p+=r.scrollTop||0,r=r.parentNode;n=f.style,n.top=t.offsetTop-p+"px",n.left=t.offsetLeft-d+"px",n[h]=u[h],n[N]=u[N],n.position=u.position==="fixed"?"fixed":"absolute",l.appendChild(f)}return f},S=function(t,o,e,s,a,r,l){return t.a=o,t.b=e,t.c=s,t.d=a,t.e=r,t.f=l,t},_=(function(){function c(o,e,s,a,r,l){o===void 0&&(o=1),e===void 0&&(e=0),s===void 0&&(s=0),a===void 0&&(a=1),r===void 0&&(r=0),l===void 0&&(l=0),S(this,o,e,s,a,r,l)}var t=c.prototype;return t.inverse=function(){var e=this.a,s=this.b,a=this.c,r=this.d,l=this.e,f=this.f,i=e*r-s*a||1e-10;return S(this,r/i,-s/i,-a/i,e/i,(a*f-r*l)/i,-(e*f-s*l)/i)},t.multiply=function(e){var s=this.a,a=this.b,r=this.c,l=this.d,f=this.e,i=this.f,n=e.a,d=e.c,p=e.b,u=e.d,L=e.e,O=e.f;return S(this,n*s+p*r,n*a+p*l,d*s+u*r,d*a+u*l,f+L*s+O*r,i+L*a+O*l)},t.clone=function(){return new c(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var s=this.a,a=this.b,r=this.c,l=this.d,f=this.e,i=this.f;return s===e.a&&a===e.b&&r===e.c&&l===e.d&&f===e.e&&i===e.f},t.apply=function(e,s){s===void 0&&(s={});var a=e.x,r=e.y,l=this.a,f=this.b,i=this.c,n=this.d,d=this.e,p=this.f;return s.x=a*l+r*i+d||0,s.y=a*f+r*n+p||0,s},c})();function V(c,t,o,e){if(!c||!c.parentNode||(g||D(c)).documentElement===c)return new _;var s=G(c),a=E(c),r=a?B:A,l=Y(c,o),f=r[0].getBoundingClientRect(),i=r[1].getBoundingClientRect(),n=r[2].getBoundingClientRect(),d=l.parentNode,p=!e&&I(c),u=new _((i.left-f.left)/100,(i.top-f.top)/100,(n.left-f.left)/100,(n.top-f.top)/100,f.left+(p?0:R()),f.top+(p?0:P()));if(d.removeChild(l),s)for(f=s.length;f--;)i=s[f],i.scaleX=i.scaleY=0,i.renderTransform(1,i);return t?u.inverse():u}exports.Matrix2D=_;exports._getCTM=F;exports._getDocScrollLeft=R;exports._getDocScrollTop=P;exports._isFixed=I;exports._setDoc=D;exports.getGlobalMatrix=V;
