@pixodesk/svg-animator-web 1.0.35 → 1.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";var PixodeskAnimator=(()=>{var t=Object.defineProperty,n=Object.defineProperties,e=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(n,e,r)=>e in n?t(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,c=(t,n)=>{for(var e in n||(n={}))l.call(n,e)&&u(t,e,n[e]);if(i)for(var e of i(n))s.call(n,e)&&u(t,e,n[e]);return t},a=(t,e)=>n(t,r(e)),f=(t,n)=>{var e={};for(var r in t)l.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&i)for(var r of i(t))n.indexOf(r)<0&&s.call(t,r)&&(e[r]=t[r]);return e},d={};function v(t,n=!1){var e,r,o,i;const l=t.v,s=t.i,u=t.o,c=t.c;if(!l.length)return"";const a=[],f=l.length;a.push("M"+l[0][0]+","+l[0][1]);for(let t=1;t<f;t++){const o=l[t-1],i=null!=(e=null==u?void 0:u[t-1])?e:o,c=null!=(r=null==s?void 0:s[t])?r:l[t],f=l[t];n||i[0]!==o[0]||i[1]!==o[1]||c[0]!==f[0]||c[1]!==f[1]?a.push("C"+i[0]+","+i[1]+","+c[0]+","+c[1]+","+f[0]+","+f[1]):a.push("L"+f[0]+","+f[1])}if(c&&f>0){const t=l[f-1],e=null!=(o=null==u?void 0:u[f-1])?o:t,r=null!=(i=null==s?void 0:s[0])?i:l[0],c=l[0];!n&&e[0]===t[0]&&e[1]===t[1]&&r[0]===c[0]&&r[1]===c[1]||a.push("C"+e[0]+","+e[1]+","+r[0]+","+r[1]+","+c[0]+","+c[1]),a.push("z")}return a.join("")}function h(t,n,e){return t+(n-t)*e}function p(t,n,e){const r=[],o=Math.max(t.length,n.length);for(let i=0;i<o;i++)r[i]=h(t[i]||0,n[i]||0,e);return r}function m(t,n,e){return[h(t[0]||0,n[0]||0,e),h(t[1]||0,n[1]||0,e),h(t[2]||0,n[2]||0,e),h(void 0===t[3]?1:t[3],void 0===n[3]?1:n[3],e)]}function y(t,n,e){const r=Math.max(t.length,n.length),o=[];for(let i=0;i<r;i++)o.push(b(t[i],n[i],e));return o}function b(t,n,e){var r,o,i,l,s,u,c,a,f;if(!t||!n)return t||n||{v:[]};const d=Math.min(Math.max(e,0),1),v=Math.min(t.v.length,n.v.length),h=[],m=[],y=[];for(let e=0;e<v;e++){const f=t.v[e],v=n.v[e];h.push(p(f,v,d));const b=null!=(o=null==(r=t.i)?void 0:r[e])?o:f,g=null!=(l=null==(i=n.i)?void 0:i[e])?l:v;m.push(p(b,g,d));const w=null!=(u=null==(s=t.o)?void 0:s[e])?u:f,A=null!=(a=null==(c=n.o)?void 0:c[e])?a:v;y.push(p(w,A,d))}return{v:h,i:m.length?m:void 0,o:y.length?y:void 0,c:null!=(f=t.c)?f:n.c}}function g(t,n,e){if(e<=0)return 0;if(e>=1)return 1;const r=3*t,o=3*(n-t)-r,i=1-r-o;function l(t){return((i*t+o)*t+r)*t}function s(t){return(3*i*t+2*o)*t+r}let u=e,c=0,a=1;for(let t=0;t<8;t++){const t=l(u)-e;if(Math.abs(t)<1e-6)return u;const n=s(u);if(Math.abs(n)<1e-6)break;u-=t/n}for(u=e;c<a;){const t=l(u);if(Math.abs(t-e)<1e-6)return u;e>t?c=u:a=u,u=(a+c)/2}return u}function w(t){const[n,e,r,o]=t,i=3*e,l=3*(o-e)-i,s=1-i-l;return function(t){return e=g(n,r,t),((s*e+l)*e+i)*e;var e}}function A(t,n,e){return[t[0]+(n[0]-t[0])*e,t[1]+(n[1]-t[1])*e]}function j(t,n){if(!t)return{left:void 0,right:void 0};if(n<=0)return{left:void 0,right:t};if(n>=1)return{left:t,right:void 0};const[e,r,o,i]=t,l=g(e,o,n),s=[e,r],u=[o,i],{left:c,right:a}=function(t,n,e,r,o){const i=A(t,n,o),l=A(n,e,o),s=A(e,r,o),u=A(i,l,o),c=A(l,s,o),a=A(u,c,o);return{left:[t,i,u,a],right:[a,c,s,r]}}([0,0],s,u,[1,1],l),f=c[3][0],d=c[3][1];let v,h;f>1e-9&&Math.abs(d)>1e-9&&(v=[c[1][0]/f,c[1][1]/d,c[2][0]/f,c[2][1]/d]);const p=1-f,m=1-d;return p>1e-9&&Math.abs(m)>1e-9&&(h=[(a[1][0]-f)/p,(a[1][1]-d)/m,(a[2][0]-f)/p,(a[2][1]-d)/m]),{left:v,right:h}}function M(t){if(t)return[1-t[2],1-t[3],1-t[0],1-t[1]]}function k(t){const n=Math.round(255*t[0]),e=Math.round(255*t[1]),r=Math.round(255*t[2]);return 4===t.length?"rgba("+n+","+e+","+r+","+t[3]+")":"rgb("+n+","+e+","+r+")"}function x(t){if(t){if(Array.isArray(t))return t;if("string"==typeof t)return t.startsWith("#")?function(t){const n=t.slice(1),e=n.length<=4,r=e?n[0]+n[0]:n.slice(0,2),o=e?n[1]+n[1]:n.slice(2,4),i=e?n[2]+n[2]:n.slice(4,6),l=4===n.length?n[3]+n[3]:8===n.length?n.slice(6,8):null,s=[parseInt(r,16)/255,parseInt(o,16)/255,parseInt(i,16)/255];return null!==l&&s.push(parseInt(l,16)/255),s}(t):t.startsWith("rgb")?function(t){var n;const e=null==(n=t.match(/rgba?\((.*)\)/))?void 0:n[1];if(!e)throw new Error("Invalid rgb/rgba format");const r=e.split(",").map(t=>+t.trim());return[r[0]/255,r[1]/255,r[2]/255,...void 0!==r[3]?[r[3]]:[]]}(t):void console.warn("Unsupported color format: "+t)}}((n,e)=>{for(var r in e)t(n,r,{get:e[r],enumerable:!0})})(d,{PX_ANIMATOR_DATA_KEY:()=>Ae,createAnimator:()=>ge,setupAnimationTriggers:()=>oe});var O=new Set(["color","fill","flood-color","lighting-color","stop-color","stroke"]),z=new Set(["translate","rotate","scale","skew"]),S=new Set(["offset-distance","offsetDistance"]);function N(t,n){var e;if(!t)return"";const r=null==(e=null==n?void 0:n.l)||e,o=[],i=t.translate,l=t.origin,s=t.rotate,u=t.skew,c=t.scale,a=r?"px":"",f=r?"deg":"";return i&&o.push("translate("+i[0]+a+","+i[1]+a+")"),l&&o.push("translate("+l[0]+a+","+l[1]+a+")"),null!=s&&o.push("rotate("+s+f+")"),null!=u&&o.push("skewX("+u+f+")"),c&&o.push("scale("+c[0]+","+c[1]+")"),l&&o.push("translate("+-l[0]+a+","+-l[1]+a+")"),o.join("")}var T=new Set(["offset-distance","offsetDistance"]),V=1e3;function C(t){return!t.includes("-")&&/[a-z][A-Z]/.test(t)}var U=new Set(["viewBox","preserveAspectRatio","gradientUnits","gradientTransform","spreadMethod","patternUnits","patternContentUnits","patternTransform","clipPathUnits","maskUnits","maskContentUnits","markerUnits","markerWidth","markerHeight","refX","refY","textLength","lengthAdjust","startOffset","filterUnits","primitiveUnits","tableValues","stdDeviation","baseFrequency","numOctaves","surfaceScale","diffuseConstant","specularConstant","specularExponent","kernelMatrix","kernelUnitLength","edgeMode","preserveAlpha","targetX","targetY"]);function _(t){return U.has(t)?t:t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function P(t,n,e){return Math.max(n,Math.min(t,e))}function F(t,n,e,r,o){if(o<=0)return[t[0],t[1]];if(o>=1)return[r[0],r[1]];const i=1-o,l=i*i,s=o*o,u=l*i,c=3*o*l,a=3*s*i,f=s*o;return[u*t[0]+c*n[0]+a*e[0]+f*r[0],u*t[1]+c*n[1]+a*e[1]+f*r[1]]}var I=1e-4;function R(t,n,e,r,o){const i=D(t,n,e,r,o);return 0===i[0]&&0===i[1]?D(t,n,e,r,o<.5?o+I:o-I):i}function D(t,n,e,r,o){const i=1-o,l=3*i*i,s=6*o*i,u=3*o*o;return[l*(n[0]-t[0])+s*(e[0]-n[0])+u*(r[0]-e[0]),l*(n[1]-t[1])+s*(e[1]-n[1])+u*(r[1]-e[1])]}function E(t,n){const{ts:e,ds:r}=t,o=e.length-1;if(n<=e[0])return r[0];if(n>=e[o])return r[o];let i=1,l=o;for(;i<l;){const t=i+l>>>1;e[t]<n?i=t+1:l=t}const s=e[l-1],u=e[l]-s,c=u>0?(n-s)/u:0;return r[l-1]+c*(r[l]-r[l-1])}function L(t){return"scroll"===(null==t?void 0:t.timelineSource)}var B="cover";function Z(t,n,e,r){var o;const[i,l]=function(t,n,e){const r=n,o=e;switch(t){case"cover":return[0,r+o];case"entry":return[0,Math.min(r,o)];case"contain":return[Math.min(r,o),Math.max(r,o)];case"exit":return[Math.max(r,o),r+o];case"entry-crossing":return[0,r];case"exit-crossing":return[o,r+o]}}(null!=(o=null==t?void 0:t.phase)?o:B,e,r);return i+("number"==typeof(null==t?void 0:t.fraction)?t.fraction:n)*(l-i)}function q(t){if(!t.length)return".";let n="";for(const e of t)e.startsWith("[")?n+=e:n+=(n?".":"")+e;return n}var G=class{_canSanitize(t){return this.isValid(t)}optional(){return new J(this)}},J=class extends G{constructor(t){super(),this.inner=t,this._default=void 0}sanitize(t){if(null!=t)return this.inner._canSanitize(t)?this.inner.sanitize(t):void 0}isValid(t,n,e){return null==t||this.inner.isValid(t,n,e)}_canSanitize(t){return null==t||this.inner._canSanitize(t)}},W=class extends G{constructor(t=""){super(),this._default=t}sanitize(t){return"string"==typeof t?t:this._default}isValid(t,n,e){return"string"==typeof t||(null==n||n.errors.push(q(null!=e?e:[])+": expected string, got "+typeof t),!1)}},K=class extends G{constructor(t=0){super(),this._default=t}sanitize(t){return"number"==typeof t&&isFinite(t)?t:this._default}isValid(t,n,e){return!("number"!=typeof t||!isFinite(t))||(null==n||n.errors.push(q(null!=e?e:[])+": expected finite number, got "+JSON.stringify(t)),!1)}},X=class extends G{constructor(t=!1){super(),this._default=t}sanitize(t){return"boolean"==typeof t?t:this._default}isValid(t,n,e){return"boolean"==typeof t||(null==n||n.errors.push(q(null!=e?e:[])+": expected boolean, got "+typeof t),!1)}},Y=class extends G{constructor(t){super(),this.value=t,this._default=t}sanitize(t){return t===this.value?this.value:this._default}isValid(t,n,e){return t===this.value||(null==n||n.errors.push(q(null!=e?e:[])+": expected "+JSON.stringify(this.value)+", got "+JSON.stringify(t)),!1)}},H=class extends G{constructor(t,n){super(),this.values=t,this._default=null!=n?n:t[0]}sanitize(t){return this.values.includes(t)?t:this._default}isValid(t,n,e){return!!this.values.includes(t)||(null==n||n.errors.push(q(null!=e?e:[])+": expected one of "+this.values.map(t=>JSON.stringify(t)).join(" | ")+", got "+JSON.stringify(t)),!1)}},$=class extends G{constructor(t,n){super(),this.h=t,this.m="union",this._default=null!=n?n:t[0]._default}sanitize(t){for(const n of this.h)if(n.isValid(t))return n.sanitize(t);return this._default}isValid(t,n,e){var r;const o=n&&{errors:[],warnings:[],strict:n.strict};return!!this.h.some(n=>n.isValid(t,o,e?[...e]:void 0))||(null==n||n.errors.push(q(null!=e?e:[])+": no union member matched for value "+(null!=(r=JSON.stringify(t))?r:"").slice(0,240)),!1)}_canSanitize(t){return this.h.some(n=>n._canSanitize(t))}},Q=class extends G{constructor(t){super(),this._shape=t;const n={};for(const e of Object.keys(t))n[e]=t[e]._default;this._default=n}sanitize(t){const n=t&&"object"==typeof t&&!Array.isArray(t)?t:{},e={};for(const t of Object.keys(this._shape)){const r=this._shape[t].sanitize(n[t]);void 0!==r&&(e[t]=r)}return e}isValid(t,n,e){if(!t||"object"!=typeof t||Array.isArray(t))return null==n||n.errors.push(q(null!=e?e:[])+": expected object, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=t,o=null!=e?e:[];let i=!0;for(const t of Object.keys(this._shape))o.push(t),this._shape[t].isValid(r[t],n,o)||(i=!1),o.pop();if(null==n?void 0:n.strict)for(const t of Object.keys(r))t in this._shape||void 0!==r[t]&&(o.push(t),n.errors.push(q(o)+": unexpected extra key"),o.pop(),i=!1);return i}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},tt=class extends G{constructor(t,n){super(),this._shape=t,this.A=n;const e={};for(const n of Object.keys(t))e[n]=t[n]._default;this._default=e}sanitize(t){const n=t&&"object"==typeof t&&!Array.isArray(t)?t:{},e=c({},n);for(const t of Object.keys(this._shape)){const r=this._shape[t].sanitize(n[t]);void 0!==r&&(e[t]=r)}if(this.A)for(const t of Object.keys(n))t in this._shape||(e[t]=this.A.sanitize(n[t]));return e}isValid(t,n,e){if(!t||"object"!=typeof t||Array.isArray(t))return null==n||n.errors.push(q(null!=e?e:[])+": expected object, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=t,o=null!=e?e:[];let i=!0;for(const t of Object.keys(this._shape))o.push(t),this._shape[t].isValid(r[t],n,o)||(i=!1),o.pop();if(this.A)for(const t of Object.keys(r))t in this._shape||(o.push(t),this.A.isValid(r[t],n,o)||(i=!1),o.pop());return i}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},nt=class extends G{constructor(t){super(),this.item=t,this._default=[]}sanitize(t){if(!Array.isArray(t))return[];const n=[];for(const e of t)this.item._canSanitize(e)&&n.push(this.item.sanitize(e));return n}isValid(t,n,e){if(!Array.isArray(t))return null==n||n.errors.push(q(null!=e?e:[])+": expected array, got "+typeof t),!1;const r=null!=e?e:[];let o=!0;for(let e=0;e<t.length;e++)r.push("["+e+"]"),this.item.isValid(t[e],n,r)||(o=!1),r.pop();return o}_canSanitize(t){return Array.isArray(t)}},et=class extends G{constructor(t){super(),this.value=t,this.m="record",this._default={}}sanitize(t){if(!t||"object"!=typeof t||Array.isArray(t))return{};const n={};for(const[e,r]of Object.entries(t))this.value._canSanitize(r)&&(n[e]=this.value.sanitize(r));return n}isValid(t,n,e){if(!t||"object"!=typeof t||Array.isArray(t))return null==n||n.errors.push(q(null!=e?e:[])+": expected object/record, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=null!=e?e:[];let o=!0;for(const[e,i]of Object.entries(t))r.push(e),this.value.isValid(i,n,r)||(o=!1),r.pop();return o}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},rt=class extends G{constructor(t,n){super(),this.fn=t,this._default=n,this.resolved=null}get schema(){var t;return null!=(t=this.resolved)?t:this.resolved=this.fn()}sanitize(t){return this.schema.sanitize(t)}isValid(t,n,e){return this.schema.isValid(t,n,e)}_canSanitize(t){return this.schema._canSanitize(t)}},ot=class extends G{constructor(t){super(),this.h=t,this.m="tuple",this._default=t.map(t=>t._default)}sanitize(t){return Array.isArray(t)&&t.length===this.h.length?this.h.map((n,e)=>n.sanitize(t[e])):this._default}isValid(t,n,e){if(!Array.isArray(t)||t.length!==this.h.length)return null==n||n.errors.push(q(null!=e?e:[])+": expected tuple of length "+this.h.length+", got "+(Array.isArray(t)?"array["+t.length+"]":typeof t)),!1;const r=null!=e?e:[];let o=!0;for(let e=0;e<this.h.length;e++)r.push("["+e+"]"),this.h[e].isValid(t[e],n,r)||(o=!1),r.pop();return o}_canSanitize(t){return Array.isArray(t)&&t.length===this.h.length}},it=(t="")=>new W(t),lt=(t=0)=>new K(t),st=(t=!1)=>new X(t),ut=t=>new Y(t),ct=(t,n)=>new H(t,n),at=(t,n)=>new $(t,n),ft=t=>new Q(t),dt=(t,n)=>new tt(t,n),vt=t=>new nt(t),ht=t=>new et(t),pt=t=>new ot(t),mt=(t,n)=>new rt(t,n),yt={native:"native",js:"js"},bt=a(c({},yt),{auto:"auto"});function gt(t){return t===bt.native}var wt={start:"start",end:"end"},At={normal:"normal",alternate:"alternate"},jt="userSpaceOnUse",Mt="objectBoundingBox",kt="transform";function xt(t){var n;const e=(null==t?void 0:t.animator)||(null==(n=null==t?void 0:t.meta)?void 0:n.animator);return e?function(t){const n=t.timeline;if(null==n||"object"!=typeof n)return t;const e=zt.get(t);if(e)return e;const r=t,{timeline:o}=r,i=f(r,["timeline"]);if(void 0!==n.engine&&(i.engine=n.engine),void 0!==n.frameRate&&(i.frameRate=n.frameRate),"scroll"===n.type||"view"===n.type){i.timelineSource="scroll",void 0!==n.duration&&(i.duration=n.duration),void 0!==n.iterations&&(i.iterations=n.iterations);const t=c({},i.scroll||{});t.kind=n.type,void 0!==n.axis&&(t.axis=n.axis),void 0!==n.source&&(t.source=n.source),void 0!==n.subject&&(t.subject=n.subject),void 0!==n.smoothing&&(t.smoothing=n.smoothing),void 0!==n.range&&(t.range=n.range);const e=n.pin;"boolean"==typeof e?t.pin=e:e&&"object"==typeof e&&(t.pin=!0,void 0!==e.align&&(t.pinAlign=e.align),void 0!==e.top&&(t.pinTop=e.top),void 0!==e.distance&&(t.pinDistance=e.distance)),i.scroll=t}else{if(void 0!==n.duration&&(i.duration=n.duration),void 0!==n.trigger){const t=n.trigger,{finishAction:e}=t,r=f(t,["finishAction"]);Object.keys(r).length&&(i.trigger=r),void 0!==e&&(i.resetOnFinish="reset"===e)}void 0!==n.delay&&(i.delay=n.delay),void 0!==n.iterations&&(i.iterations=n.iterations),void 0!==n.direction&&(i.direction=n.direction),void 0!==n.fillMode&&(i.fill=n.fillMode)}return zt.set(t,i),i}(e):void 0}var Ot,zt=new WeakMap,St=at([it(),pt([lt(),lt(),lt(),lt()])]),Nt=at([it(),lt(),vt(lt()),ft({path:it()}),mt(()=>ft({paths:vt(An)}),{paths:[]}),mt(()=>vt(fn),[]),mt(()=>Rt,{})]),Tt=ft({time:lt().optional(),value:Nt.optional(),easing:St.optional(),tangentOut:pt([lt(),lt()]).optional(),tangentIn:pt([lt(),lt()]).optional()}),Vt=t=>{var n,e;return null!=(e=null!=(n=t.time)?n:t.t)?e:0},Ct=t=>{var n;return null!=(n=t.value)?n:t.v},Ut=t=>{var n;return null!=(n=t.easing)?n:t.e},_t=t=>t.tangentIn,Pt=t=>t.tangentOut,Ft=ft({segmentCount:lt().optional(),repeatAt:ct([wt.start,wt.end]).optional(),direction:ct([At.normal,At.alternate]).optional()}),It=ft({value:Nt.optional(),keyframes:vt(Tt).optional(),loop:at([Ft,st()]).optional(),autoOrient:st().optional(),alongPathMode:ct(["sampled","offsetPath"]).optional()}),Rt=ft({translate:pt([lt(),lt()]).optional(),rotate:lt().optional(),skew:lt().optional(),scale:pt([lt(),lt()]).optional(),origin:pt([lt(),lt()]).optional()}),Dt=(at([it(),Rt,ft({value:Rt}),It]),ht(It)),Et=at([it(),vt(at([it(),Dt])),Dt]),Lt=ft({startOn:ct(["load","mouseOver","click","scrollIntoView","programmatic"]).optional(),outAction:ct(["continue","pause","reset","reverse"]).optional(),finishAction:ct(["hold","reset"]).optional(),scrollIntoViewThreshold:lt().optional()}),Bt=ft({width:lt(),d:it()}),Zt=ft({fontFamily:it(),fontStyle:it(),ascent:lt(),unitsPerEm:lt(),glyphs:ht(Bt)}),qt=ft({easings:ht(pt([lt(),lt(),lt(),lt()])).optional(),animations:ht(Dt).optional(),styles:ht(ht(at([it(),lt()]))).optional(),fonts:ht(Zt).optional()}),Gt=ft({phase:ct(["cover","contain","entry","exit","entry-crossing","exit-crossing"]).optional(),fraction:lt().optional()}),Jt=ft({start:Gt.optional(),end:Gt.optional()}),Wt=(ft({kind:ct(["view","scroll"]).optional(),axis:ct(["block","inline","x","y"]).optional(),source:ct(["nearest","root"]).optional(),subject:it().optional(),smoothing:lt().optional(),pin:st().optional(),pinAlign:ct(["top","center","bottom"]).optional(),pinTop:lt().optional(),pinDistance:lt().optional(),range:Jt.optional()}),ft({align:ct(["top","center","bottom"]).optional(),top:lt().optional(),distance:lt().optional()})),Kt=ct([bt.auto,bt.native,bt.js]).optional(),Xt=ft({type:ut("time").optional(),engine:Kt,frameRate:lt().optional(),duration:lt().optional(),trigger:Lt.optional(),delay:lt().optional(),iterations:at([lt(),ut("infinite")]).optional(),fillMode:ct(["forwards","backwards","both","none"]).optional(),direction:ct(["normal","reverse","alternate","alternate-reverse"]).optional()}),Yt={duration:lt().optional(),iterations:lt().optional(),engine:Kt,frameRate:lt().optional(),axis:ct(["block","inline","x","y"]).optional(),source:ct(["nearest","root"]).optional(),subject:it().optional(),smoothing:lt().optional(),pin:at([st(),Wt]).optional(),range:Jt.optional()},Ht=(Ot=[Xt,ft(c({type:ut("scroll")},Yt)),ft(c({type:ut("view")},Yt))],new class extends G{constructor(t,n,e){var r;super(),this.j=t,this.M=n,this.m="discriminatedUnion",this._default=null!=e?e:n[0]._default,this.O=new Map;for(const e of n){const n=e._shape[t];if(!n)continue;const o=null!=(r=n.inner)?r:n;this.O.set(o._default,e),n.inner&&(this.S=e)}}N(t){if(null===t||"object"!=typeof t||Array.isArray(t))return;const n=t[this.j];return null==n?this.S:this.O.get(n)}sanitize(t){var n;return(null!=(n=this.N(t))?n:this.M[0]).sanitize(t)}isValid(t,n,e){const r=this.N(t);if(!r){const r=null===t||"object"!=typeof t||Array.isArray(t)?void 0:t[this.j];return null==n||n.errors.push(q(null!=e?e:[])+": no discriminated union member matched "+this.j+"="+JSON.stringify(r)),!1}return r.isValid(t,n,e)}_canSanitize(t){if(null===t||"object"!=typeof t||Array.isArray(t))return!1;const n=this.N(t);return n?n._canSanitize(t):this.M[0]._canSanitize(t)}}("type",Ot)),$t=ft({timeline:Ht.optional(),definitions:qt.optional(),animateById:ht(Et).optional(),debugGlobalName:it().optional(),version:it().optional()}),Qt=(ft({id:it(),animate:Et}),at([it(),lt(),vt(lt()),ft({value:new class extends G{constructor(){super(...arguments),this._default=void 0}sanitize(t){return t}isValid(t,n,e){return void 0!==t||(null==n||n.errors.push(q(null!=e?e:[])+": required value is missing"),!1)}_canSanitize(t){return void 0!==t}}}),Rt])),tn=at([lt(),It,ft({value:lt()})]),nn=at([pt([lt(),lt()]),It,ft({value:pt([lt(),lt()])})]),en=at([it(),It,ft({value:it()})]),rn=ft({translate:nn.optional(),rotate:tn.optional(),scale:nn.optional(),skew:tn.optional(),origin:nn.optional()}),on=ft({copies:lt().optional(),translate:nn.optional(),rotate:tn.optional(),skew:tn.optional(),scale:nn.optional(),origin:nn.optional()}),ln=ft({source:it().optional(),maskType:ct(["luminance","alpha"]).optional(),maskUnits:ct([jt,Mt]).optional(),maskContentUnits:ct([jt,Mt]).optional(),x:lt().optional(),y:lt().optional(),width:lt().optional(),height:lt().optional()}),sn=ft({d:en.optional()}),un=ft({offset:tn.optional(),range:nn.optional(),subPaths:ct(["separate","combined"]).optional()}),cn=ft({start:lt().optional(),stretch:lt().optional(),timeCrop:pt([lt(),lt()]).optional()}),an=ft({without:ct(["translate"]).optional(),source:it().optional(),retime:cn.optional()}),fn=ft({offset:lt(),color:it()}),dn=at([vt(fn),ft({value:vt(fn)}),It]),vn=ft({type:ct(["linear","radial"]),start:nn.optional(),end:nn.optional(),center:nn.optional(),radius:tn.optional(),focal:nn.optional(),stops:dn.optional(),gradientUnits:ct(["userSpaceOnUse","objectBoundingBox"]).optional(),spreadMethod:ct(["pad","reflect","repeat"]).optional(),gradientTransform:it().optional()}),hn=vn,pn=ft({pathData:it(),pathOverflow:ct(["clip","extend"]).optional(),lengthAdjust:ct(["spacing","spacingAndGlyphs"]).optional(),method:ct(["align","stretch"]).optional(),spacing:ct(["auto","exact"]).optional(),startOffset:tn.optional(),textLength:tn.optional()}),mn=ft({useGlyphs:st().optional()}),yn=ft({transformBy:rn.optional(),repeater:on.optional(),maskedBy:ln.optional(),clipPath:sn.optional(),strokeTrim:un.optional(),clone:an.optional(),fillGradient:vn.optional(),strokeGradient:hn.optional(),textPath:pn.optional(),text:mn.optional()}),bn=dt({type:it(),domType:it().optional(),id:it().optional(),meta:(new class extends G{constructor(){super(...arguments),this._default=void 0}sanitize(t){return t}isValid(t,n,e){return!0}_canSanitize(t){return!0}}).optional(),effects:yn.optional(),animate:Et.optional(),style:at([it(),ht(at([it(),lt()]))]).optional()},Qt),gn=dt(a(c({},bn._shape),{children:mt(()=>vt(gn),[]).optional()}),Qt),wn=ft({width:at([lt(),it()]).optional(),height:at([lt(),it()]).optional(),viewBox:it().optional(),animator:$t.optional()}),An=(dt(a(c(c({},bn._shape),wn._shape),{type:ut("svg"),children:vt(gn).optional()}),Qt),ft({v:vt(vt(lt())),i:vt(vt(lt())).optional(),o:vt(vt(lt())).optional(),c:st().optional()}));function jn(t){const n=Ct(t);if(!n)return;if(Array.isArray(n)&&n.length>=2&&"number"==typeof n[0]&&"number"==typeof n[1])return[n[0],n[1]];const e=n.translate;return Array.isArray(e)&&e.length>=2?[e[0],e[1]]:void 0}function Mn(t){return Vt(t)}function kn(t){return Ut(t)}function xn(t){const n=t.keyframes;if(!Array.isArray(n))return!1;if(t.autoOrient)return!0;for(const t of n)if(_t(t)||Pt(t))return!0;return!1}var On=new WeakMap;function zn(t,n,e,r){let o=On.get(t);const i=null==o?void 0:o.get(n);if(i)return i;const l=Pt(t),s=_t(n),u=[e[0]+(l?l[0]:0),e[1]+(l?l[1]:0)],c=[r[0]+(s?s[0]:0),r[1]+(s?s[1]:0)],a=function(t,n,e,r,o=100){const i=o+1,l=new Float64Array(i),s=new Float64Array(i);let u=F(t,n,e,r,0);l[0]=0,s[0]=0;let c=0;for(let a=1;a<i;a++){const i=a/o,f=F(t,n,e,r,i),d=f[0]-u[0],v=f[1]-u[1];c+=Math.sqrt(d*d+v*v),l[a]=i,s[a]=c,u=f}return{ts:l,ds:s}}(e,u,c,r),f={P0:e,P1:u,P2:c,P3:r,T:a,V:a.ds[a.ds.length-1]};return o||(o=new WeakMap,On.set(t,o)),o.set(n,f),f}var Sn=.5,Nn=5,Tn=32;function Vn(t,n){var e,r,o;if(!xn(t))return t;const i=t.keyframes;if(!Array.isArray(i)||i.length<2)return t;const l=!!t.autoOrient,s=null!=(e=null==n?void 0:n.flatnessTolerance)?e:Sn,u=null!=(r=null==n?void 0:n.rotationTolerance)?r:Nn,c=null!=(o=null==n?void 0:n.maxSamplesPerSegment)?o:Tn,a=[],f=jn(i[0]);if(!f)return t;const d=l?function(t,n){const e=jn(t),r=jn(n);if(!e||!r)return 0;const o=zn(t,n,e,r),i=R(o.P0,o.P1,o.P2,o.P3,0);return 180*Math.atan2(i[1],i[0])/Math.PI}(i[0],i[1]):void 0;a.push(Cn(Mn(i[0]),Pn(Un(i[0]),Un(i[0]),0,f,d,l)));for(let t=0;t<i.length-1;t++){const n=i[t],e=i[t+1],r=jn(n),o=jn(e);r&&o?(l&&t>0&&In(a,n,e,r,o,u),Dn(a,n,e,r,o,l,s,u,c)):a.push(Cn(Mn(e),Pn(Un(e),Un(e),1,null!=o?o:[0,0],void 0,l)))}const v=kn(i[i.length-1]);v&&(a[a.length-1].e=v),l&&function(t){let n;for(const e of t){const t=Ct(e);if(!t||"number"!=typeof t.rotate)continue;if(void 0===n){n=t.rotate;continue}let r=t.rotate;for(;r-n>180;)r-=360;for(;r-n<-180;)r+=360;t.rotate=r,n=r}}(a);const h={keyframes:a};return void 0!==t.loop&&(h.loop=t.loop),h}function Cn(t,n){return{t:t,v:n}}function Un(t){const n=Ct(t);if(n&&"object"==typeof n&&!Array.isArray(n))return n}function _n(t,n,e){if(void 0===t)return n;if(void 0===n)return t;if("number"==typeof t&&"number"==typeof n)return t+(n-t)*e;if(Array.isArray(t)&&Array.isArray(n)&&t.length===n.length){const r=new Array(t.length);for(let o=0;o<t.length;o++){const i="number"==typeof t[o]?t[o]:0,l="number"==typeof n[o]?n[o]:0;r[o]=i+(l-i)*e}return r}return e<.5?t:n}function Pn(t,n,e,r,o,i){const l={translate:r},s=new Set;if(t)for(const n of Object.keys(t))s.add(n);if(n)for(const t of Object.keys(n))s.add(t);for(const r of s){if("translate"===r)continue;if("rotate"===r&&i)continue;const o=null==t?void 0:t[r],s=null==n?void 0:n[r];void 0===o&&void 0===s||(l[r]=_n(o,s,e))}return void 0!==o&&(l.rotate=o+Fn(t,n,e)),l}function Fn(t,n,e){const r="number"==typeof(null==t?void 0:t.rotate)?t.rotate:void 0,o="number"==typeof(null==n?void 0:n.rotate)?n.rotate:void 0;if(void 0===r&&void 0===o)return 0;const i=_n(r,o,e);return"number"==typeof i?i:0}function In(t,n,e,r,o,i){const l=t[t.length-1],s=Ct(l),u=null==s?void 0:s.rotate;if("number"!=typeof u)return;const c=Un(n),a=u-Fn(c,c,0),f=zn(n,e,r,o),d=R(f.P0,f.P1,f.P2,f.P3,0),v=180*Math.atan2(d[1],d[0])/Math.PI,h=function(t,n){let e=t-n;for(;e>180;)e-=360;for(;e<-180;)e+=360;return e}(v,a);if(Math.abs(h)<=i)return;const p=Mn(n),m=Math.min(p+Rn,(p+Mn(e))/2),y=Pn(Un(n),Un(n),0,r,v,!0);t.push(Cn(m,y))}var Rn=.05;function Dn(t,n,e,r,o,i,l,s,u){const c=zn(n,e,r,o),a=Mn(n),f=Mn(e),d=kn(n),v=(h=d)?w([h[1],h[0],h[3],h[2]]):t=>t;var h;const p=Un(n),m=Un(e),y=function(t,n,e,r,o){const i=[];En(t.P0[0],t.P1[0],t.P2[0],t.P3[0],i),En(t.P0[1],t.P1[1],t.P2[1],t.P3[1],i),i.sort((t,n)=>t-n);const l=[0];for(const t of i)t>l[l.length-1]+1e-6&&t<.999999&&l.push(t);l.push(1);const s=[],u={C:o-l.length};for(let o=0;o<l.length-1;o++)Ln(l[o],l[o+1],s,t,n,e,r,u);return s}(c,i,l,s,u),b=[];for(const t of y){const n=E(c.T,t),e=P(c.V>0?n/c.V:t,0,1),r={u:P(v(e),0,1),p:e,U:F(c.P0,c.P1,c.P2,c.P3,t)};if(i){const n=R(c.P0,c.P1,c.P2,c.P3,t);r.rotateDeg=180*Math.atan2(n[1],n[0])/Math.PI}b.push(r)}let g=d,A=0;const M=t.length-1;for(let n=0;n<b.length;n++){const e=b[n],r=A<1?P((e.u-A)/(1-A),0,1):1,{left:o,right:l}=j(g,r),s=0===n?M:t.length-1;o?t[s].e=o:delete t[s].e;const u=a+e.u*(f-a),c=Pn(p,m,e.p,e.U,e.rotateDeg,i);t.push(Cn(u,c)),g=l,A=e.u}}function En(t,n,e,r,o){const i=n-t,l=e-n,s=i-2*l+(r-e),u=2*(l-i),c=i;if(Math.abs(s)<1e-10){if(Math.abs(u)>1e-10){const t=-c/u;t>1e-6&&t<.999999&&o.push(t)}return}const a=u*u-4*s*c;if(a<0)return;const f=Math.sqrt(a),d=(-u-f)/(2*s),v=(-u+f)/(2*s);d>1e-6&&d<.999999&&o.push(d),v>1e-6&&v<.999999&&o.push(v)}function Ln(t,n,e,r,o,i,l,s){const u=(t+n)/2,c=F(r.P0,r.P1,r.P2,r.P3,t),a=F(r.P0,r.P1,r.P2,r.P3,n),f=n-t,d=F(r.P0,r.P1,r.P2,r.P3,t+.25*f),v=F(r.P0,r.P1,r.P2,r.P3,u),h=F(r.P0,r.P1,r.P2,r.P3,t+.75*f),p=Math.max(Bn(d,c,a),Bn(v,c,a),Bn(h,c,a));let m=!0;if(o){const e=R(r.P0,r.P1,r.P2,r.P3,t),o=R(r.P0,r.P1,r.P2,r.P3,n),i=180*Math.atan2(e[1],e[0])/Math.PI,s=180*Math.atan2(o[1],o[0])/Math.PI;let u=Math.abs(i-s);u>180&&(u=360-u),u>l&&(m=!1)}p<=i&&m||s.C<=0||f<1e-6?e.push(n):(s.C-=1,Ln(t,u,e,r,o,i,l,s),Ln(u,n,e,r,o,i,l,s))}function Bn(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=r*r+o*o;if(i<1e-20){const e=t[0]-n[0],r=t[1]-n[1];return Math.sqrt(e*e+r*r)}const l=(t[0]-n[0])*o-(t[1]-n[1])*r;return Math.abs(l)/Math.sqrt(i)}var Zn=1;function qn(t,n){if(t===n)return!0;if(typeof t!=typeof n||null===t||null===n||"object"!=typeof t)return!1;if(Array.isArray(t)!==Array.isArray(n))return!1;const e=Object.keys(t),r=Object.keys(n);return e.length===r.length&&e.every(e=>qn(t[e],n[e]))}function Gn(t){const n=[];let e;const r=function(t){const n=t.split(/([MLCZmlcz]|[\s,]+)/).map(t=>t.trim()).filter(t=>t&&","!==t),e=[];let r=null;for(const t of n)if(/[MLCZmlcz]/.test(t))r={type:t,values:[]},e.push(r);else if(r){const n=+t;r.values.push(Number.isNaN(n)?0:n)}return e}(t);for(const t of r){const r=t.type,o=t.values;if("M"===r||"m"===r){const t=o[0]||0,r=o[1]||0;e={v:[[t,r]],i:[[t,r]],o:[[t,r]],c:!1},n.push(e);continue}if(e||(e={v:[[0,0]],i:[[0,0]],o:[[0,0]],c:!1},n.push(e)),"L"===r){const t=o[0]||0,n=o[1]||0;e.v.push([t,n]),e.i.push([t,n]),e.o.push([t,n])}else if("C"===r){const t=o[0]||0,n=o[1]||0,r=o[2]||0,i=o[3]||0,l=o[4]||0,s=o[5]||0;e.o[e.o.length-1]=[t,n],e.v.push([l,s]),e.i.push([r,i]),e.o.push([l,s])}else"Z"===r||"z"===r?e.c=!0:console.warn('Unsupported path command "'+r+'"')}return n}function Jn(t){return t.startsWith("path(")&&t.endsWith(")")?t.slice(5,-1):/^[MmZzLlHhVvCcSsQqTtAa]/.test(t)?t:void 0}function Wn(t){return"string"==typeof t&&void 0!==Jn(t)}function Kn(t){if(t&&"object"==typeof t&&"string"==typeof t.path){const n=Jn(t.path);return n?{paths:Gn(n)}:t}if(t&&"object"==typeof t&&"paths"in t){const n=t.paths;if(Array.isArray(n)&&n.length>0&&Wn(n[0])){const t=[];for(const e of n){const n=Jn(e);n&&t.push(...Gn(n))}return{paths:t}}return t}if(Array.isArray(t)){if(t.length>0&&Wn(t[0])){const n=[];for(const e of t){const t=Jn(e);t&&n.push(...Gn(t))}return{paths:n}}return{paths:t}}return Wn(t)?{paths:Gn(Jn(t))}:t}function Xn(t,n){var e;if(t)return Array.isArray(t)?t:(null==(e=null==n?void 0:n.easings)?void 0:e[t])?n.easings[t]:void console.warn("Unknown easing name: "+t)}function Yn(t,n){var e;if("string"==typeof t){const r=null==(e=null==n?void 0:n.animations)?void 0:e[t];return r||console.warn("Unknown animation name: "+t),r}return t}function Hn(t,n,e,r){var o,i;return"d"===t?{paths:y(null!=(o=null==n?void 0:n.paths)?o:Array.isArray(n)?n:[],null!=(i=null==e?void 0:e.paths)?i:Array.isArray(e)?e:[],r)}:O.has(t)?m(n||[0,0,0,1],e||[0,0,0,1],r):"transform"!==t||"object"!=typeof n||null===n||Array.isArray(n)||"object"!=typeof e||null===e||Array.isArray(e)?"rotate"===t&&"number"==typeof n&&"number"==typeof e?h(n,e,r):z.has(t)||"stroke-dasharray"===t||"strokeDasharray"===t?p(n||[],e||[],r):h(+(n||0),+(e||0),r):function(t,n,e){const r=new Set([...Object.keys(null!=t?t:{}),...Object.keys(null!=n?n:{})]),o={};for(const i of r){const r=null==t?void 0:t[i],l=null==n?void 0:n[i];if("rotate"===i||"skew"===i)o[i]=h(+(null!=r?r:0),+(null!=l?l:0),e);else if("translate"===i||"scale"===i||"origin"===i){const t="scale"===i?[1,1]:[0,0];o[i]=p(r||t,l||t,e)}else o[i]=null!=l?l:r}return o}(n,e,r)}function $n(t,n,e,r){var o;const i=n.keyframes||[],l=[];for(const n of i){const e=Vt(n);let i=Ct(n);const s=Ut(n);"d"===t&&(i=Kn(i));const u=C(t)?_(t):t;O.has(u)&&(i=null!=(o=x(i))?o:i);const c={t:e,v:i,e:Xn(s,r)},a=_t(n),f=Pt(n);a&&(c.tangentIn=a),f&&(c.tangentOut=f),l.push(c)}l.sort((t,n)=>{var e,r;return(null!=(e=t.t)?e:0)-(null!=(r=n.t)?r:0)});const s=n.loop,u=!0===s?{}:s||void 0;return u&&l.length>=2?function(t,n,e,r){var o,i,l,s,u;const f=n.length-1,d=P(null!=(o=e.segmentCount)?o:f,1,f);let v;v=e.repeatAt===wt.start?n.slice(0,d+1):n.slice(f-d);const h=null!=(i=n[0].t)?i:0,p=null!=(l=n[n.length-1].t)?l:0;let m,y;e.repeatAt===wt.start?(m=0,y=h):(m=p,y=r);const b=y-m;if(b<=0)return n;const g=null!=(s=v[0].t)?s:0,A=(null!=(u=v[v.length-1].t)?u:0)-g;if(A<=0)return n;const k=v.map(t=>({_:(t.t-g)/A,v:t.v,e:t.e,tangentIn:_t(t),tangentOut:Pt(t)})),x=Math.floor(b/A),O=b-x*A,z=O/A,S=[],N=e.repeatAt!==wt.start,T=n[n.length-1];let V,C=!1;function U(n,e,r){var o;let i;if(e){i=[];for(let t=k.length-1;t>=0;t--)i.push({_:1-k[t]._,v:k[t].v,e:t>0?M(k[t-1].e):void 0,tangentIn:k[t].tangentOut,tangentOut:k[t].tangentIn})}else i=k;const l=void 0!==r?r:1;for(let e=0;e<i.length;e++){const r=i[e];if(r._>l+1e-9){const o=i[e-1],s=r._-o._,u=(l-o._)/s,c=o.e?w(o.e)(u):u,a=Hn(t,o.v,r.v,c),{left:f}=j(o.e,u);return S.length>0&&o._<=l&&(S[S.length-1].e=f),void S.push({t:n+l*A,v:a,e:void 0})}const s=S.length>0?S[S.length-1]:T,u=N&&0===e&&void 0!==s&&Math.abs((null!=(o=s.t)?o:0)-(n+r._*A))<1e-9;if(u){if(qn(s.v,r.v)){S.length>0?(s.e=r.e,s.tangentOut=r.tangentOut):(V=r.e,C=!0);continue}S.length>0&&(delete s.tangentIn,delete s.tangentOut)}const c={t:n+r._*A+(u?Zn:0),v:r.v,e:e<i.length-1?r.e:void 0};r.tangentIn&&(c.tangentIn=r.tangentIn),r.tangentOut&&(c.tangentOut=r.tangentOut),S.push(c)}}if(e.repeatAt===wt.start){z>1e-9&&function(n,e,r){let o;if(e){o=[];for(let t=k.length-1;t>=0;t--)o.push({_:1-k[t]._,v:k[t].v,e:t>0?M(k[t-1].e):void 0,tangentIn:k[t].tangentOut,tangentOut:k[t].tangentIn})}else o=k;const i=1-r;for(let e=0;e<o.length;e++){const r=o[e];if(r._<i-1e-9)continue;const l=o[e-1];if(l&&l._<i-1e-9&&r._>i+1e-9){const e=r._-l._,o=(i-l._)/e,s=l.e?w(l.e)(o):o,u=Hn(t,l.v,r.v,s),{right:c}=j(l.e,o);S.push({t:n,v:u,e:c})}const s={t:n+(r._-i)*A,v:r.v,e:e<o.length-1?r.e:void 0};r.tangentIn&&(s.tangentIn=r.tangentIn),r.tangentOut&&(s.tangentOut=r.tangentOut),S.push(s)}}(m,e.direction===At.alternate&&x%2==0,z);for(let t=0;t<x;t++){const n=x-1-t,r=e.direction===At.alternate&&n%2==0;U(m+O+t*A,r)}}else{for(let t=0;t<x;t++){const n=e.direction===At.alternate&&t%2==0;U(m+t*A,n)}if(z>1e-9){const t=e.direction===At.alternate&&x%2==0;U(m+x*A,t,z)}}return e.repeatAt===wt.start?[...S,...n]:C&&n.length>0?[...n.slice(0,-1),a(c({},n[n.length-1]),{e:V}),...S]:[...n,...S]}(t,l,u,e):l}var Qn=0;function te(t,n=yt.native){const e=xt(t)||{},r=function(t){var n;if(t)return null==(n=xt(t))?void 0:n.definitions}(t),o=e.duration||1e3,i=[],l=(t,e,i)=>{if(!e)return null;const l=function(t,n){if(!t)return[];const e=[];if("string"==typeof t){const r=Yn(t,n);r&&e.push(r)}else if(Array.isArray(t))for(const r of t){const t=Yn(r,n);t&&e.push(t)}else e.push(t);return e}(e,r);if(0===l.length)return null;const s=function(t,n,e,r=yt.native){const o={};for(const[i,l]of Object.entries(t)){if("transform"===i&&"offsetPath"===l.alongPathMode&&void 0!==t.offsetDistance)continue;const s=$n(i,l,n,e);if(s.length>0){const t={keyframes:s};void 0!==l.autoOrient&&(t.autoOrient=l.autoOrient),void 0!==l.loop&&(t.loop=l.loop),o[i]=r===yt.native&&"transform"===i?Vn(t):t}}return o}(function(t,n){if(!t)return t;const e=n&&"object"==typeof n&&!Array.isArray(n)?n:function(t){var n,e;if(!t||"string"!=typeof t)return;const r={},o=/([a-zA-Z]+)\s*\(([^)]*)\)/g,i=["translate","rotate","skewX","scale"];let l,s=-1;for(;null!==(l=o.exec(t));){const t=l[1],o=i.indexOf(t);if(o<0||o<=s)return;s=o;const u=l[2].split(/[\s,]+/).filter(Boolean).map(Number);if(u.some(t=>Number.isNaN(t)))return;if("translate"===t){if(u.length<1||u.length>2)return;r.translate=[u[0],null!=(n=u[1])?n:0]}else if("rotate"===t){if(1!==u.length)return;r.rotate=u[0]}else if("skewX"===t){if(1!==u.length)return;r.skew=u[0]}else{if(u.length<1||u.length>2)return;r.scale=[u[0],null!=(e=u[1])?e:u[0]]}}return t.replace(/([a-zA-Z]+)\s*\(([^)]*)\)/g,"").replace(/[\s,]/g,"").length?void 0:Object.keys(r).length?r:void 0}(n);if(!e||!Object.keys(e).length)return t;const r=t=>t&&"object"==typeof t&&!Array.isArray(t)?c(c({},e),t):t,o=t[kt];if(o&&"object"==typeof o){const n=o;if(Array.isArray(n.keyframes)){const e=a(c({},n),{keyframes:n.keyframes.map(t=>a(c({},t),{value:r(t.value)}))});return void 0!==e.value&&(e.value=r(e.value)),a(c({},t),{transform:e})}return t}const i=Object.keys(t).filter(t=>z.has(t));if(1!==i.length)return t;const l=i[0],s=t[l];if(!s||"object"!=typeof s||!Array.isArray(s.keyframes))return t;const u=a(c({},s),{keyframes:s.keyframes.map(t=>a(c({},t),{value:a(c({},e),{[l]:t.value})}))});void 0!==u.value&&(u.value=a(c({},e),{[l]:u.value}));const f=c({},t);return delete f[l],a(c({},f),{transform:u})}(function(t){const n={};for(const e of t)for(const[t,r]of Object.entries(e))n[t]=r;return n}(l),i),o,r,n);return 0===Object.keys(s).length?null:{id:t,animate:s}},s=function(t){var n;if(!t)return;const e=null==(n=xt(t))?void 0:n.animateById;return e?Object.entries(e).map(([t,n])=>({id:t.startsWith("#")?t.slice(1):t,animate:n})):void 0}(t);if(s)for(const t of s){const n=l(t.id,t.animate);n&&i.push(n)}const u=t=>{const n=t.animate;if(n&&Object.keys(n).length>0){const e=t.id||"_px_el_"+ ++Qn;t.id=e;const r=l(e,n,t.transform);r&&i.push(r)}if(t.children)for(let n=0;n<t.children.length;n++)u(t.children[n])};if(t.children)for(let n=0;n<t.children.length;n++)u(t.children[n]);return i}function ne(t,n,e){var r,o,i,l;const s=n.keyframes||[];if(0===s.length)return null;const{P:u,F:c}=function(t,n){var e,r;const o=t.length-1;let i=t[0],l=t[o>0?1:0];for(let s=0;s<o;s++){const u=null!=(e=t[s].t)?e:0,c=null!=(r=t[s+1].t)?r:0;if(u<=n&&n<=c){i=t[s],l=t[s+1];break}n>c&&s===o-1&&(i=t[o>0?o-1:0],l=t[o])}return{P:i,F:l}}(s,e);let a=u===c?0:(f=e,d=null!=(r=u.t)?r:0,(b=null!=(o=c.t)?o:0)===d?0:0+(f-d)/(b-d)*1);var f,d,b;a=P(a,0,1);const g=Ut(u);if(g&&Array.isArray(g))try{a=w(g)(a)}catch(t){}let A=C(t)?_(t):t,j=null;const M=null==u?void 0:u.v,x=null==c?void 0:c.v;if("d"===A)j=y(null!=(i=null==M?void 0:M.paths)?i:Array.isArray(M)?M:[],null!=(l=null==x?void 0:x.paths)?l:Array.isArray(x)?x:[],a).map(t=>v(t)).join("");else if(O.has(A))j=k(m(M||[0,0,0,1],x||[0,0,0,1],a)),A=t;else if("stroke-dasharray"===A)j=p(M||[],x||[],a).join(" "),A=t;else if("transform"!==A||null===M||"object"!=typeof M||Array.isArray(M))"translate"===A?(j="translate("+p(M||[0,0],x||[0,0],a).join(",")+")",A="transform"):"rotate"===A?(j="rotate("+h(+(M||0),+(x||0),a)+")",A="transform"):"scale"===A?(j="scale("+p(M||[1,1],x||[1,1],a).join(",")+")",A="transform"):j=h(+(M||0),+(x||0),a);else{const t=new Set([...M?Object.keys(M):[],...x?Object.keys(x):[]]),e={};for(const n of t){const t=null==M?void 0:M[n],r=null==x?void 0:x[n];if("rotate"===n||"skew"===n)e[n]=h(+(null!=t?t:0),+(null!=r?r:0),a);else if("translate"===n||"scale"===n||"origin"===n){const o="scale"===n?[1,1]:[0,0],i=p(t||o,r||o,a);e[n]=i}}if(xn(n)){const t=M.translate,r=x.translate;if(Array.isArray(t)&&Array.isArray(r)){const o=function(t,n,e,r,o,i){const l=zn(t,n,e,r),s=0===l.V?o:function(t,n){const e=n*t.ds[t.ds.length-1],{ts:r,ds:o}=t,i=o.length-1;if(e<=0)return r[0];if(e>=o[i])return r[i];let l=1,s=i;for(;l<s;){const t=l+s>>>1;o[t]<e?l=t+1:s=t}const u=o[s-1],c=o[s]-u,a=c>0?(e-u)/c:0;return r[s-1]+a*(r[s]-r[s-1])}(l.T,o),u=F(l.P0,l.P1,l.P2,l.P3,s);if(!i)return{translate:u};const c=R(l.P0,l.P1,l.P2,l.P3,s);return{translate:u,rotateDeg:180*Math.atan2(c[1],c[0])/Math.PI}}(u,c,[+t[0],+t[1]],[+r[0],+r[1]],a,!!n.autoOrient);e.translate=[o.translate[0],o.translate[1]],void 0!==o.rotateDeg&&(e.rotate=o.rotateDeg)}}j=N(e,{l:!1}),A="transform"}return S.has(A)&&"number"==typeof j&&(j=100*j+"%"),{k:A,v:null===j?"":""+j}}function ee(t,n){const e={};for(const[r,o]of Object.entries(t)){const t=ne(r,o,n);t&&(e[t.k]=t.v)}return e}function re(t){const n=globalThis;"function"!=typeof n.cancelAnimationFrame?n.clearTimeout(t):n.cancelAnimationFrame(t)}function oe(t,n){const{startOn:e,outAction:r="continue",scrollIntoViewThreshold:o=0}=n,i=t.getRootElement();if(!i)return console.warn("setupAnimationTriggers: No root element found for animation."),t;let l=!1;const s=()=>{l&&(l=!1,t.setPlaybackRate(1)),t.play()},u=()=>{switch(r){case"pause":t.pause();break;case"reset":t.cancel();break;case"reverse":l=!0,t.setPlaybackRate(-1),t.play()}};switch(e){case"load":{const t=()=>s();"complete"===document.readyState?t():window.addEventListener("load",t,{once:!0});break}case"mouseOver":{let t=!1;const n=()=>{t=!0,s()},e=()=>{t&&u()};i.addEventListener("mouseenter",n),i.addEventListener("mouseleave",e);break}case"click":{const n=()=>{t.isPlaying()?u():s()};i.addEventListener("click",n);break}case"scrollIntoView":{const t=t=>{var n,e;const r=t.boundingClientRect,o=t.intersectionRect;if(!(null==r?void 0:r.height)||!o)return t.intersectionRatio;const i="undefined"!=typeof window&&window.innerHeight?window.innerHeight:1/0,l=null!=(e=null==(n=t.rootBounds)?void 0:n.height)?e:1/0,s=Math.min(i,l),u=Math.min(r.height,Number.isFinite(s)?s:r.height);return u>0?o.height/u:t.intersectionRatio},n=Array.from({length:21},(t,n)=>n/20);let e=!1;new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting&&t(n)>=o?(e=!0,s()):e&&(e=!1,u())})},{threshold:n}).observe(i);break}}return t}function ie(t){return"#"+t}function le(t,n,e,r){const o=xt(t)||{};if(!r)if(t.id){const n=ie(t.id);(r=document.querySelector(n))||console.warn("createFrameLoopAnimator: No root element found for selector: ",n)}else console.warn("createFrameLoopAnimator: No root element provided");const i=function(t,n,e){var r;const o=xt(t)||{},i=te(t,yt.js),l=o.iterations;let s=1;"number"==typeof l&&(s=l||1),"infinite"===l&&(s=1/0),s<1&&(s=1);const u=+(o.duration||V),c=u&&s?u*(s===1/0?1/0:s):u?(null!=s?s:1)*u:0,a=o.direction||"normal",f=null!=(r=o.fill)?r:"forwards",d="forwards"===f||"both"===f,v="backwards"===f||"both"===f;let h=null,p=!1,m=-(o.delay||0),y=0,b=1,g=!1;const w=o.frameRate,A=w&&w>0?1e3/w:0;let j=0;const M=()=>{const t=y?(Date.now()-y)*b:0;return m+t},k=()=>{let t=M();return Number.isFinite(c)&&t>c&&(t=c),t<0&&(t=0),t};function x(t){let e=function(){const n=u>0?u:1;let e=0,r=0;u>0?(t=P(t,0,s*n),r=Math.max(0,Math.ceil(t/n)-1),r=Math.min(r,s-1),e=P((t-r*n)/n,0,1)):e=t;const o=a||"normal";let i=e;return"reverse"===o?i=1-e:"alternate"===o?r%2==1&&(i=1-e):"alternate-reverse"===o&&r%2==0&&(i=1-e),i}();for(const t of i||[]){const r=t.animate;if(!r||"object"!=typeof r||Array.isArray(r)){console.warn("Empty or unresolved binding",t);continue}const o=ee(r,e*u);for(const[e,r]of Object.entries(o))n.setAttribute(t.id,e,r)}}o.delay&&(o.delay<0?x(k()):v&&x(0));const O=()=>!!p&&!!n.isConnected()&&(b<0?M()>0:!(Number.isFinite(c)&&k()>=c)),z=t=>{null!==h&&(re(h),h=null),(t||O())&&(h=function(t){const n=globalThis;return"function"==typeof n.requestAnimationFrame?n.requestAnimationFrame(t):n.setTimeout(t,16)}(()=>{h=null,(()=>{var t,r;if(!n.isConnected())return void S();const o=k(),i=M();if(i<0&&b>0)v&&x(0);else{if(b<0&&i<=0)return S(),x(0),void(g||(g=!0,null==(t=null==e?void 0:e.onFinish)||t.call(e)));if(b>0&&c&&Number.isFinite(c)&&o>=c)return S(),x(d?c:0),void(g||(g=!0,null==(r=null==e?void 0:e.onFinish)||r.call(e)));if(A>0){const t=Date.now();if(j&&t-j<A)return;j=t}x(o)}})(),z()}))},S=()=>{if(!p)return;let t=M();Number.isFinite(c)&&t>c&&(t=c),m=t,y=0,p=!1,null!==h&&(re(h),h=null),t>=0?x(t):v&&x(0)},N={isReady:()=>!0,getRootElement:()=>null,isPlaying:()=>O(),play:()=>{var t;(()=>{if(!p){if(b>=0)Number.isFinite(c)&&m>=c&&(m=0);else if(m<=0){if(!Number.isFinite(c))return void console.warn("play: cannot start reverse playback of an infinite animation from time 0");m=c}g=!1,p=!0,y=Date.now(),z(!0)}})(),null==(t=null==e?void 0:e.onPlay)||t.call(e)},pause:()=>{var t;S(),null==(t=null==e?void 0:e.onPause)||t.call(e)},cancel:()=>{var t;S(),m=0,y=0,p=!1,g=!1,x(m),null==(t=null==e?void 0:e.onCancel)||t.call(e)},finish:()=>{((t=!0)=>{var n;m=Number.isFinite(c)?c:k(),y=0,p=!1,null!==h&&(re(h),h=null),x(d?m:0),t&&!g&&(g=!0,null==(n=null==e?void 0:e.onFinish)||n.call(e))})(!0)},setPlaybackRate:t=>{if(!isFinite(t)||0===t)return void console.warn("setPlaybackRate: rate must be finite and non-zero");let n=M();Number.isFinite(c)&&n>c&&(n=c),t<0!=b<0&&(g=!1),b=t,m=n,p&&(y=Date.now())},getCurrentTime:()=>k(),setCurrentTime:t=>{t<0&&(t=0),Number.isFinite(c)&&t>c&&(t=c),m=t,p&&(y=Date.now()),(!Number.isFinite(c)||t<c)&&(g=!1),x(k())},destroy:()=>{var t;N.cancel(),null==(t=null==e?void 0:e.onRemove)||t.call(e)}};return N}(t,n||function(t){const n=new Set;return{isConnected:()=>!t||t.isConnected,setAttribute:(e,r,o)=>{r=_(r);const i=ie(e),l=(null==t?void 0:t.querySelectorAll(i))||document.querySelectorAll(i);0!==l.length||n.has(i)||(n.add(i),console.warn('setAttribute: No elements found for selector "'+i+'"'));for(let t=0;t<l.length;t++){const n=l[t],e="transform"===r&&"pattern"===n.tagName?"patternTransform":r;n.setAttribute(e,o),T.has(r)&&(n.style[r]=o)}}}}(r),e),l=a(c({},i),{getRootElement:()=>r||null});return o.trigger&&(L(o)?console.warn("scroll timeline: `animator.trigger` is ignored (triggers do not apply to scroll-driven playback)"):oe(l,o.trigger)),l}function se(t,n,e,r){let o=Ct(t);const i=Ut(t),l={offset:n,easing:i&&Array.isArray(i)?"cubic-bezier("+i.join(",")+")":void 0};let s,u=e;var c;return O.has(e)&&Array.isArray(o)?s=k(o):"transform"!==e||null===o||"object"!=typeof o||Array.isArray(o)?z.has(e)?(Array.isArray(o)&&("translate"===e&&(o=o.map(t=>t+"px")),o=o.join(",")),"rotate"===e&&(o+="deg"),s=e+"("+o+")",u="transform"):s="d"===e?'path("'+(o&&"object"==typeof o&&Array.isArray(o.paths)?o.paths:[]).map(t=>v(t,!0)).join("")+'")':S.has(e)&&"number"==typeof o?100*o+"%":""+o:(s=N(o,{l:!0}),u="transform"),CSS.supports(_(u),s)||r.add(u),u=(c=u).includes("-")?c.replace(/-([a-z])/g,(t,n)=>n.toUpperCase()):c,l[u]=s,l}function ue(t,n,e){var r,o,i,l,s;const u=[];for(let f=0;f<n.length;f++){const d=n[f],v=null!=(r=d.t)?r:0;if(v<0){const e=n[f+1];if(e&&(null!=(o=e.t)?o:0)>=0){const n=(0-v)/((null!=(i=e.t)?i:0)-v),r=d.e?w(d.e)(n):n,{right:o}=j(d.e,n);u.push({t:0,v:Hn(t,d.v,e.v,r),e:o})}continue}if(v>e){const r=n[f-1];if(r&&(null!=(l=r.t)?l:0)<=e){const n=null!=(s=r.t)?s:0,o=(e-n)/(v-n),i=r.e?w(r.e)(o):o,{left:l}=j(r.e,o);u.length>0&&(u[u.length-1]=a(c({},u[u.length-1]),{e:l})),u.push({t:e,v:Hn(t,r.v,d.v,i),e:void 0})}break}u.push(d)}return u}function ce(t,n,e){var r;const o=new Map;for(const[i,l]of Object.entries(t)){const t=e.duration||1,s=ue(i,l.keyframes||[],t),u=[];for(let e=0;e<s.length;e++){const o=s[e],l=se(o,P((null!=(r=o.t)?r:0)/t,0,1),i,n);0===e&&(l.offset||0)>0&&u.push(a(c({},l),{offset:0})),u.push(l)}u.length>0&&(u[u.length-1].offset||0)<1&&u.push(a(c({},u[u.length-1]),{offset:1})),u.length>0&&o.set(i,u)}return o}function ae(t,n,e,r,o){var i;const l=xt(t)||{};if(!e)if(t.id){const n=ie(t.id);(e=document.querySelector(n))||console.warn("createFrameLoopAnimator: No root element found for selector: ",n)}else console.warn("createFrameLoopAnimator: No root element provided");const s=te(t,yt.native),u=[],c=l.iterations;let a;"number"==typeof c&&(a=c),"infinite"===c&&(a=1/0);const f=new Set;let d=!1,v=!1;(null==s?void 0:s.length)||console.warn("createWebApiAnimator: No animation bindings defined");for(const t of s||[]){const r=t.animate;if(!r||"object"!=typeof r||Array.isArray(r)){console.warn("createWebApiAnimator: Empty or unresolved binding",t);continue}const s=ie(t.id),c=(null==e?void 0:e.querySelectorAll(s))||document.querySelectorAll(s);0===c.length&&console.warn('createWebApiAnimator: No elements found for selector "'+s+'"');const h=ce(r,f,l),p=l.delay&&l.delay>0?l.delay:void 0;let m;if(l.delay&&l.delay<0&&l.duration){const t=-l.delay;m=a===1/0?t%l.duration:Math.min(t,l.duration*(null!=a?a:1))}const y={duration:l.duration,delay:p,fill:null!=(i=l.fill)?i:"forwards",direction:l.direction,iterations:a};for(let t=0;t<c.length;t++){const e=c[t];for(const[,t]of h)if(t.length>0)try{const r=new KeyframeEffect(e,t,y),i=new Animation(r,o?o.timeline:document.timeline);if(o){const t=i;o.rangeStart&&(t.rangeStart=o.rangeStart),o.rangeEnd&&(t.rangeEnd=o.rangeEnd)}(null==n?void 0:n.onFinish)&&(i.onfinish=()=>{var t;d||(d=!0,null==(t=n.onFinish)||t.call(n))}),(null==n?void 0:n.onRemove)&&(i.onremove=()=>{var t;v||(v=!0,null==(t=n.onRemove)||t.call(n))}),void 0!==m&&(i.currentTime=m),u.push(i)}catch(t){console.warn(t)}}}if(!r&&f.size)return console.warn("Unsupported CSS attrs: "+[...f].join(", ")),null;const h={isReady:()=>!0,getRootElement:()=>e||null,isPlaying:()=>{var t;return"running"===(null==(t=u[0])?void 0:t.playState)},play:()=>{var t;d=!1,u.forEach(t=>t.play()),null==(t=null==n?void 0:n.onPlay)||t.call(n)},pause:()=>{var t;u.forEach(t=>t.pause()),null==(t=null==n?void 0:n.onPause)||t.call(n)},cancel:()=>{var t;d=!1,u.forEach(t=>t.cancel()),null==(t=null==n?void 0:n.onCancel)||t.call(n)},finish:()=>{var t;for(const n of u)try{(null==(t=n.effect)?void 0:t.getTiming().iterations)===1/0?(n.effect.updateTiming({iterations:1}),n.finish(),n.effect.updateTiming({iterations:1/0})):n.finish()}catch(t){n.cancel()}},setPlaybackRate:t=>(u.forEach(n=>n.playbackRate=t),h),getCurrentTime:()=>{var t,n;const e=null!=(n=null==(t=u[0])?void 0:t.currentTime)?n:null;return null!==e?+e:null},setCurrentTime:t=>{d=!1,u.forEach(n=>{n.currentTime=t})},destroy:()=>{var t;h.cancel(),u.splice(0,u.length),v||(v=!0,null==(t=null==n?void 0:n.onRemove)||t.call(n))}};return l.trigger&&("scroll"===l.timelineSource?console.warn("scroll timeline: `animator.trigger` is ignored (triggers do not apply to scroll-driven playback)"):oe(h,l.trigger)),o&&u.forEach(t=>t.play()),h}function fe(t,n,e){var r,o,i;const l="number"==typeof(null==t?void 0:t.fraction)?t.fraction:n,s=null==(o=null==(r=globalThis.CSS)?void 0:r.percent)?void 0:o.call(r,100*l);if(void 0!==s)return e?{rangeName:null!=(i=null==t?void 0:t.phase)?i:"cover",offset:s}:{offset:s}}function de(t,n){const e=document.body,r=document.documentElement;for(let o=t.parentElement;o;o=o.parentElement){if(o===e||o===r)return null;const t=getComputedStyle(o),i="y"===n?t.overflowY:t.overflowX;if("auto"===i||"scroll"===i||"hidden"===i||"overlay"===i)return o}return null}function ve(){return document.scrollingElement||document.documentElement}var he="parent",pe="scroller";function me(t,n){var e,r;const o=null==n?void 0:n.trim();if(!o)return t;if(o===he){let n=null;for(let e=t.parentElement;e&&e!==document.body;e=e.parentElement){const t=getComputedStyle(e).position;"sticky"!==t&&"fixed"!==t||(n=e)}return null!=(r=null!=(e=null==n?void 0:n.parentElement)?e:t.parentElement)?r:t}if(o===pe)return de(t,"y")||de(t,"x")||ve();let i=null;try{i=document.querySelector(o)}catch(n){return console.warn('scroll timeline: subject "'+o+'" is not a valid selector — measuring the SVG itself'),t}return i||(console.warn('scroll timeline: subject "'+o+'" matched no element — measuring the SVG itself'),t)}function ye(t,n){const e=t;if(!(null==n?void 0:n.pin)||!e.style)return()=>{};const r=e.style,o=r.position,i=r.top;r.position="sticky";const l="center"===n.pinAlign?.5:"bottom"===n.pinAlign?1:0,s=()=>{var e;const o=null!=(e=n.pinTop)?e:0;if(!l)return void(r.top=o+"px");const i=function(t){const n=de(t,"y");return n?n.clientHeight:document.documentElement.clientHeight}(t),s=t.getBoundingClientRect().height;r.top=Math.round((i-s)*l+o)+"px"};s();let u=null;const c=l?s:null;l&&(c&&window.addEventListener("resize",c),"undefined"!=typeof ResizeObserver&&(u=new ResizeObserver(s),u.observe(t)));let a=null;const f=t.parentElement;return n.pinDistance&&n.pinDistance>0&&f&&(a=document.createElement("div"),a.setAttribute("data-px-pin",""),a.style.height=100*n.pinDistance+"vh",f.insertBefore(a,t),a.appendChild(t)),()=>{c&&window.removeEventListener("resize",c),null==u||u.disconnect(),r.position=o,r.top=i,(null==a?void 0:a.parentElement)&&(a.parentElement.insertBefore(t,a),a.remove())}}function be(t,n,e){let r,o=n;t.resetOnFinish&&(o=a(c({},n),{onFinish:()=>{var t;null==(t=null==n?void 0:n.onFinish)||t.call(n),null==r||r.cancel()}}));const i=e(o);return r=i,t.debugGlobalName&&(window[t.debugGlobalName]=i),i}function ge(t){return function(t,n,e,r){const o=xt(t)||{};return L(o)?be(o,e,e=>{var i;let l=()=>{};if(o.engine!==bt.js&&r){l=ye(r,o.scroll);const n=function(t,n){var e,r,o,i;if(!n||!L(n))return null;const l=n.scroll||{},s=null!=(e=l.kind)?e:"view";if(l.smoothing)return console.warn("scroll timeline: `smoothing` needs the built-in driver — using the built-in driver instead of the browser timeline"),null;const u=globalThis,c="view"===s,a=c?u.ViewTimeline:u.ScrollTimeline;if("function"!=typeof a)return null;const f=null!=(r=l.axis)?r:"block";let d;try{d=new a(c?{subject:me(t,l.subject),axis:f}:{source:"root"===l.source?ve():de(t,"y")||de(t,"x")||ve(),axis:f})}catch(t){return console.warn("scroll timeline: native timeline construction failed — falling back to the player measuring progress itself",t),null}return{timeline:d,rangeStart:fe(null==(o=l.range)?void 0:o.start,0,c),rangeEnd:fe(null==(i=l.range)?void 0:i.end,1,c)}}(r,o);if(n){const i=ae(t,e,r,gt(o.engine),n);if(i){const t=i.destroy.bind(i);return i.destroy=()=>{l(),t()},i}}l(),l=()=>{}}const s=(o.engine!==bt.js?ae(t,e,r,gt(o.engine)):null)||le(t,n,e,r),u=(null==(i=s.getRootElement)?void 0:i.call(s))||r;if(u){l=ye(u,o.scroll);const t=("number"==typeof(null==(c=o)?void 0:c.duration)&&c.duration>0?c.duration:V)*("number"==typeof(null==c?void 0:c.iterations)&&c.iterations>0?c.iterations:1),n=function(t,n,e){var r,o;if(!n||!L(n))return null;const i=n.scroll||{},l=null!=(r=i.kind)?r:"view",s=me(t,i.subject),u=de(t,"y")||de(t,"x"),c="scroll"===l&&"root"===i.source?ve():u||ve(),a=c===ve(),f=function(t,n){const e=null!=t?t:"block";if("x"===e||"y"===e)return e;const r=!!n&&n.startsWith("vertical");return"inline"===e?r?"y":"x":r?"x":"y"}(i.axis,getComputedStyle(c).writingMode),d=()=>{if("scroll"===l)return function(t,n,e){var r,o;const i=n>0?P(t/n,0,1):1,l="number"==typeof(null==(r=null==e?void 0:e.start)?void 0:r.fraction)?e.start.fraction:0,s="number"==typeof(null==(o=null==e?void 0:e.end)?void 0:o.fraction)?e.end.fraction:1;return s<=l?i>=s?1:0:P((i-l)/(s-l),0,1)}("y"===f?c.scrollTop:c.scrollLeft,"y"===f?c.scrollHeight-c.clientHeight:c.scrollWidth-c.clientWidth,i.range);const t=s.getBoundingClientRect();let n,e;if(a)n=0,e="y"===f?document.documentElement.clientHeight:document.documentElement.clientWidth;else{const t=c.getBoundingClientRect();n="y"===f?t.top:t.left,e="y"===f?c.clientHeight:c.clientWidth}return function(t,n,e,r){const o=e-t,i=Z(null==r?void 0:r.start,0,n,e),l=Z(null==r?void 0:r.end,1,n,e);return l<=i?o>=l?1:0:P((o-i)/(l-i),0,1)}(("y"===f?t.top:t.left)-n,"y"===f?t.height:t.width,e,i.range)},v=Math.max(0,null!=(o=i.smoothing)?o:0)/1e3;let h=!1,p=null,m=null,y=0,b=null;const g=()=>{b=null,h||(t=>{if(!v)return void e(t);if(null===p)return p=t,void e(t);if(null!==m)return;y=0;const n=t=>{if(m=null,h)return;const r=y?Math.min(.1,(t-y)/1e3):1/60;y=t;const o=d(),i=1-Math.exp(-r/v);p+=(o-p)*i,Math.abs(o-p)<.001&&(p=o),e(p),p!==o&&(m=requestAnimationFrame(n))};m=requestAnimationFrame(n)})(d())},w=()=>{h||null!==b||(b=requestAnimationFrame(g))},A=a?window:c;let j;A.addEventListener("scroll",w,{passive:!0}),window.addEventListener("resize",w,{passive:!0}),"undefined"!=typeof ResizeObserver&&(j=new ResizeObserver(w),j.observe(s),s!==t&&j.observe(t),a||j.observe(c));const M={destroy:()=>{h||(h=!0,A.removeEventListener("scroll",w),window.removeEventListener("resize",w),null==j||j.disconnect(),null!==b&&(cancelAnimationFrame(b),b=null),null!==m&&(cancelAnimationFrame(m),m=null))},refresh:()=>{h||(p=d(),e(p))}};return M.refresh(),M}(u,o,n=>s.setCurrentTime(n*t));if(n){const t=s.destroy.bind(s);s.destroy=()=>{n.destroy(),l(),t()}}}else console.warn("scroll timeline: no root element to observe — animation will stay at frame 0");var c;return s}):be(o,e,e=>o.engine===bt.js?le(t,n,e,r):ae(t,e,r,gt(o.engine))||le(t,n,e,r))}(function(t){if(!(null==t?void 0:t.data))throw new Error("createAnimator: `data` is required");return t.data}(t),t.adapter,t.callbacks,null)}var we,Ae="data";return we=d,((n,r,i,s)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let i of o(r))l.call(n,i)||void 0===i||t(n,i,{get:()=>r[i],enumerable:!(s=e(r,i))||s.enumerable});return n})(t({},"__esModule",{value:!0}),we)})();
1
+ "use strict";var PixodeskAnimator=(()=>{var t=Object.defineProperty,n=Object.defineProperties,e=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(n,e,r)=>e in n?t(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,c=(t,n)=>{for(var e in n||(n={}))l.call(n,e)&&u(t,e,n[e]);if(i)for(var e of i(n))s.call(n,e)&&u(t,e,n[e]);return t},a=(t,e)=>n(t,r(e)),f=(t,n)=>{var e={};for(var r in t)l.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&i)for(var r of i(t))n.indexOf(r)<0&&s.call(t,r)&&(e[r]=t[r]);return e},d={};function v(t){if(!t.length)return".";let n="";for(const e of t)e.startsWith("[")?n+=e:n+=(n?".":"")+e;return n}((n,e)=>{for(var r in e)t(n,r,{get:e[r],enumerable:!0})})(d,{PX_ANIMATOR_DOC_KEY:()=>Fe,createAnimator:()=>_e,setupAnimationTriggers:()=>we});var h=class{_canSanitize(t){return this.isValid(t)}optional(){return new m(this)}},m=class extends h{constructor(t){super(),this.inner=t,this._default=void 0}sanitize(t){if(null!=t)return this.inner._canSanitize(t)?this.inner.sanitize(t):void 0}isValid(t,n,e){return null==t||this.inner.isValid(t,n,e)}_canSanitize(t){return null==t||this.inner._canSanitize(t)}},p=class extends h{constructor(t=""){super(),this._default=t}sanitize(t){return"string"==typeof t?t:this._default}isValid(t,n,e){return"string"==typeof t||(null==n||n.errors.push(v(null!=e?e:[])+": expected string, got "+typeof t),!1)}},y=class extends h{constructor(t=0){super(),this._default=t}sanitize(t){return"number"==typeof t&&isFinite(t)?t:this._default}isValid(t,n,e){return!("number"!=typeof t||!isFinite(t))||(null==n||n.errors.push(v(null!=e?e:[])+": expected finite number, got "+JSON.stringify(t)),!1)}},b=class extends h{constructor(t=!1){super(),this._default=t}sanitize(t){return"boolean"==typeof t?t:this._default}isValid(t,n,e){return"boolean"==typeof t||(null==n||n.errors.push(v(null!=e?e:[])+": expected boolean, got "+typeof t),!1)}},g=class extends h{constructor(t){super(),this.value=t,this._default=t}sanitize(t){return t===this.value?this.value:this._default}isValid(t,n,e){return t===this.value||(null==n||n.errors.push(v(null!=e?e:[])+": expected "+JSON.stringify(this.value)+", got "+JSON.stringify(t)),!1)}},A=class extends h{constructor(t,n){super(),this.values=t,this._default=null!=n?n:t[0]}sanitize(t){return this.values.includes(t)?t:this._default}isValid(t,n,e){return!!this.values.includes(t)||(null==n||n.errors.push(v(null!=e?e:[])+": expected one of "+this.values.map(t=>JSON.stringify(t)).join(" | ")+", got "+JSON.stringify(t)),!1)}},w=class extends h{constructor(t,n){super(),this.l=t,this.h="union",this._default=null!=n?n:t[0]._default}sanitize(t){for(const n of this.l)if(n.isValid(t))return n.sanitize(t);return this._default}isValid(t,n,e){var r;const o=n&&{errors:[],warnings:[],strict:n.strict};if(this.l.some(n=>n.isValid(t,o,e?[...e]:void 0)))return!0;if(!n)return!1;const i=v(null!=e?e:[]);let l;n.errors.push(i+": no union member matched for value "+(null!=(r=JSON.stringify(t))?r:"").slice(0,240));let s=-1;const u=[];for(const r of this.l){const o={errors:[],warnings:[],strict:n.strict};if(r.isValid(t,o,e?[...e]:void 0),!o.errors.length)continue;const c=Math.max(...o.errors.map(t=>t.slice(0,t.indexOf(":")).length));if((c>s||c===s&&l&&o.errors.length<l.length)&&(s=c,l=o.errors),c<=i.length)for(const t of o.errors){const n=/: expected (.+?), got /.exec(t);n&&!u.includes(n[1])&&u.push(n[1])}}if(l&&s>i.length)for(const t of l.slice(0,4))n.errors.includes(t)||n.errors.push(t);else u.length&&n.errors.push(i+": expected "+u.join(" | "));return!1}_canSanitize(t){return this.l.some(n=>n._canSanitize(t))}},j=class extends h{constructor(t){super(),this._shape=t;const n={};for(const e of Object.keys(t))n[e]=t[e]._default;this._default=n}sanitize(t){const n=t&&"object"==typeof t&&!Array.isArray(t)?t:{},e={};for(const t of Object.keys(this._shape)){const r=this._shape[t].sanitize(n[t]);void 0!==r&&(e[t]=r)}return e}isValid(t,n,e){if(!t||"object"!=typeof t||Array.isArray(t))return null==n||n.errors.push(v(null!=e?e:[])+": expected object, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=t,o=null!=e?e:[];let i=!0;for(const t of Object.keys(this._shape))o.push(t),this._shape[t].isValid(r[t],n,o)||(i=!1),o.pop();if(null==n?void 0:n.strict)for(const t of Object.keys(r))t in this._shape||void 0!==r[t]&&(o.push(t),n.errors.push(v(o)+": unexpected extra key"),o.pop(),i=!1);return i}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},x=class extends h{constructor(t,n){super(),this._shape=t,this.m=n;const e={};for(const n of Object.keys(t))e[n]=t[n]._default;this._default=e}sanitize(t){const n=t&&"object"==typeof t&&!Array.isArray(t)?t:{},e=c({},n);for(const t of Object.keys(this._shape)){const r=this._shape[t].sanitize(n[t]);void 0!==r&&(e[t]=r)}if(this.m)for(const t of Object.keys(n))t in this._shape||(e[t]=this.m.sanitize(n[t]));return e}isValid(t,n,e){if(!t||"object"!=typeof t||Array.isArray(t))return null==n||n.errors.push(v(null!=e?e:[])+": expected object, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=t,o=null!=e?e:[];let i=!0;for(const t of Object.keys(this._shape))o.push(t),this._shape[t].isValid(r[t],n,o)||(i=!1),o.pop();if(this.m)for(const t of Object.keys(r))t in this._shape||(o.push(t),this.m.isValid(r[t],n,o)||(i=!1),o.pop());return i}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},M=class extends h{constructor(t){super(),this.item=t,this._default=[]}sanitize(t){if(!Array.isArray(t))return[];const n=[];for(const e of t)this.item._canSanitize(e)&&n.push(this.item.sanitize(e));return n}isValid(t,n,e){if(!Array.isArray(t))return null==n||n.errors.push(v(null!=e?e:[])+": expected array, got "+typeof t),!1;const r=null!=e?e:[];let o=!0;for(let e=0;e<t.length;e++)r.push("["+e+"]"),this.item.isValid(t[e],n,r)||(o=!1),r.pop();return o}_canSanitize(t){return Array.isArray(t)}},k=class extends h{constructor(t){super(),this.value=t,this.h="record",this._default={}}sanitize(t){if(!t||"object"!=typeof t||Array.isArray(t))return{};const n={};for(const[e,r]of Object.entries(t))this.value._canSanitize(r)&&(n[e]=this.value.sanitize(r));return n}isValid(t,n,e){if(!t||"object"!=typeof t||Array.isArray(t))return null==n||n.errors.push(v(null!=e?e:[])+": expected object/record, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=null!=e?e:[];let o=!0;for(const[e,i]of Object.entries(t))r.push(e),this.value.isValid(i,n,r)||(o=!1),r.pop();return o}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},O=class extends h{constructor(t,n){super(),this.fn=t,this._default=n,this.resolved=null}get schema(){var t;return null!=(t=this.resolved)?t:this.resolved=this.fn()}sanitize(t){return this.schema.sanitize(t)}isValid(t,n,e){return this.schema.isValid(t,n,e)}_canSanitize(t){return this.schema._canSanitize(t)}},z=class extends h{constructor(t){super(),this.l=t,this.h="tuple",this._default=t.map(t=>t._default)}sanitize(t){return Array.isArray(t)&&t.length===this.l.length?this.l.map((n,e)=>n.sanitize(t[e])):this._default}isValid(t,n,e){if(!Array.isArray(t)||t.length!==this.l.length)return null==n||n.errors.push(v(null!=e?e:[])+": expected tuple of length "+this.l.length+", got "+(Array.isArray(t)?"array["+t.length+"]":typeof t)),!1;const r=null!=e?e:[];let o=!0;for(let e=0;e<this.l.length;e++)r.push("["+e+"]"),this.l[e].isValid(t[e],n,r)||(o=!1),r.pop();return o}_canSanitize(t){return Array.isArray(t)&&t.length===this.l.length}},S=(t="")=>new p(t),P=(t=0)=>new y(t),N=(t=!1)=>new b(t),C=t=>new g(t),T=(t,n)=>new A(t,n),V=(t,n)=>new w(t,n),R=t=>new j(t),U=(t,n)=>new x(t,n),_=t=>new M(t),E=t=>new k(t),F=t=>new z(t),I=(t,n)=>new O(t,n),D="block",W="inline",L="nearest",Z="root",q="center",B="bottom",G=["duration","iterations","engine","frameRate","trigger","delay","fillMode","direction","fill","resetOnFinish","timelineSource","scroll"],J={native:"native",js:"js"},K=a(c({},J),{auto:"auto"});function X(t){return t===K.native}var Y={startOn:"load",outAction:"continue",scrollIntoViewThreshold:0},H={start:"start",end:"end"},$={normal:"normal",alternate:"alternate"},Q="userSpaceOnUse",tt="objectBoundingBox",nt="transform";function et(t){var n;const e=(null==t?void 0:t.animator)||(null==(n=null==t?void 0:t.meta)?void 0:n.animator);if(!e)return;const r=ot.get(e);if(r)return r;const o=e,i=G.filter(t=>void 0!==o[t]),l=i.length?c({},o):e;for(const t of i)delete l[t];const s=function(t){const n=t.timeline;if(null==n||"object"!=typeof n)return t;const e=it.get(t);if(e)return e;const r=t,{timeline:o}=r,i=f(r,["timeline"]);if(void 0!==n.engine&&(i.engine=n.engine),void 0!==n.frameRate&&(i.frameRate=n.frameRate),"scroll"===n.type||"view"===n.type){i.timelineSource="scroll",void 0!==n.duration&&(i.duration=n.duration),void 0!==n.iterations&&(i.iterations=n.iterations);const t=c({},i.scroll||{});t.kind=n.type,void 0!==n.axis&&(t.axis=n.axis),void 0!==n.source&&(t.source=n.source),void 0!==n.subject&&(t.subject=n.subject),void 0!==n.smoothing&&(t.smoothing=n.smoothing),void 0!==n.range&&(t.range=n.range);const e=n.pin;"boolean"==typeof e?t.pin=e:e&&"object"==typeof e&&(t.pin=!0,void 0!==e.align&&(t.pinAlign=e.align),void 0!==e.offset&&(t.pinOffset=e.offset),void 0!==e.distance&&(t.pinDistance=e.distance)),i.scroll=t}else{if(void 0!==n.duration&&(i.duration=n.duration),void 0!==n.trigger){const t=n.trigger,{finishAction:e}=t,r=f(t,["finishAction"]);Object.keys(r).length&&(i.trigger=r),void 0!==e&&(i.resetOnFinish="reset"===e)}void 0!==n.delay&&(i.delay=n.delay),void 0!==n.iterations&&(i.iterations=n.iterations),void 0!==n.direction&&(i.direction=n.direction),void 0!==n.fillMode&&(i.fill=n.fillMode)}return it.set(t,i),i}(l);return ot.set(e,s),s}var rt,ot=new WeakMap,it=new WeakMap,lt=V([S(),F([P(),P(),P(),P()])]),st=V([S(),P(),_(P()),R({pathData:S()}),I(()=>_(Zt),[]),I(()=>pt,{})]),ut=R({time:P().optional(),value:st.optional(),easing:lt.optional(),tangentOut:F([P(),P()]).optional(),tangentIn:F([P(),P()]).optional()}),ct=t=>{var n,e;return null!=(e=null!=(n=t.time)?n:t.t)?e:0},at=t=>{var n;return null!=(n=t.value)?n:t.v},ft=t=>{var n;return null!=(n=t.easing)?n:t.e},dt=t=>t.tangentIn,vt=t=>t.tangentOut,ht=R({segmentCount:P().optional(),repeatAt:T([H.start,H.end]).optional(),direction:T([$.normal,$.alternate]).optional()}),mt=R({value:st.optional(),keyframes:_(ut).optional(),loop:V([ht,N()]).optional(),autoOrient:N().optional(),alongPathMode:T(["sampled","offsetPath"]).optional()}),pt=R({translate:F([P(),P()]).optional(),rotate:P().optional(),skew:P().optional(),scale:F([P(),P()]).optional(),origin:F([P(),P()]).optional()}),yt=(V([S(),pt,R({value:pt}),mt]),E(mt)),bt=V([S(),_(V([S(),yt])),yt]),gt=R({startOn:T(["load","mouseOver","click","scrollIntoView","programmatic"],Y.startOn).optional(),outAction:T(["continue","pause","reset","reverse"],Y.outAction).optional(),finishAction:T(["hold","reset"]).optional(),scrollIntoViewThreshold:P().optional()}),At=R({width:P(),pathData:S()}),wt=R({fontFamily:S(),fontStyle:S(),ascent:P(),unitsPerEm:P(),glyphs:E(At)}),jt=R({easings:E(F([P(),P(),P(),P()])).optional(),animations:E(yt).optional(),fonts:E(wt).optional()}),xt=R({phase:T(["cover","contain","entry","exit","entry-crossing","exit-crossing"]).optional(),fraction:P().optional()}),Mt=R({start:xt.optional(),end:xt.optional()}),kt=(R({kind:T(["view","scroll"]).optional(),axis:T([D,W,"x","y"]).optional(),source:T([L,Z]).optional(),subject:S().optional(),smoothing:P().optional(),pin:N().optional(),pinAlign:T(["top",q,B]).optional(),pinOffset:P().optional(),pinDistance:P().optional(),range:Mt.optional()}),R({align:T(["top",q,B]).optional(),offset:P().optional(),distance:P().optional()})),Ot=T([K.auto,K.native,K.js]).optional(),zt=R({type:C("time").optional(),engine:Ot,frameRate:P().optional(),duration:P().optional(),trigger:gt.optional(),delay:P().optional(),iterations:V([P(),C("infinite")]).optional(),fillMode:T(["forwards","backwards","both","none"]).optional(),direction:T(["normal","reverse","alternate","alternate-reverse"]).optional()}),St={duration:P().optional(),iterations:P().optional(),engine:Ot,frameRate:P().optional(),axis:T([D,W,"x","y"]).optional(),source:T([L,Z]).optional(),subject:S().optional(),smoothing:P().optional(),pin:V([N(),kt]).optional(),range:Mt.optional()},Pt=(rt=[zt,R(c({type:C("scroll")},St)),R(c({type:C("view")},St))],new class extends h{constructor(t,n,e){var r;super(),this.A=t,this.j=n,this.h="discriminatedUnion",this._default=null!=e?e:n[0]._default,this.M=new Map;for(const e of n){const n=e._shape[t];if(!n)continue;const o=null!=(r=n.inner)?r:n;this.M.set(o._default,e),n.inner&&(this.O=e)}}S(t){if(null===t||"object"!=typeof t||Array.isArray(t))return;const n=t[this.A];return null==n?this.O:this.M.get(n)}sanitize(t){var n;return(null!=(n=this.S(t))?n:this.j[0]).sanitize(t)}isValid(t,n,e){const r=this.S(t);if(!r){const r=null===t||"object"!=typeof t||Array.isArray(t)?void 0:t[this.A];return null==n||n.errors.push(v(null!=e?e:[])+": no discriminated union member matched "+this.A+"="+JSON.stringify(r)),!1}return r.isValid(t,n,e)}_canSanitize(t){if(null===t||"object"!=typeof t||Array.isArray(t))return!1;const n=this.S(t);return n?n._canSanitize(t):this.j[0]._canSanitize(t)}}("type",rt)),Nt=R({target:S(),animateWith:_(S())}),Ct=R({timeline:Pt.optional(),definitions:jt.optional(),bindings:_(Nt).optional(),debugGlobalName:S().optional(),version:S().optional()}),Tt=V([S(),P(),_(P()),R({value:new class extends h{constructor(){super(...arguments),this._default=void 0}sanitize(t){return t}isValid(t,n,e){return void 0!==t||(null==n||n.errors.push(v(null!=e?e:[])+": required value is missing"),!1)}_canSanitize(t){return void 0!==t}}}),pt]),Vt=V([P(),mt,R({value:P()})]),Rt=V([F([P(),P()]),mt,R({value:F([P(),P()])})]),Ut=V([S(),mt,R({value:S()})]),_t=R({translate:Rt.optional(),rotate:Vt.optional(),scale:Rt.optional(),skew:Vt.optional(),origin:Rt.optional()}),Et=R({copies:P().optional(),translate:Rt.optional(),rotate:Vt.optional(),skew:Vt.optional(),scale:Rt.optional(),origin:Rt.optional()}),Ft=R({source:S().optional(),maskType:T(["luminance","alpha"]).optional(),maskUnits:T([Q,tt]).optional(),maskContentUnits:T([Q,tt]).optional(),x:P().optional(),y:P().optional(),width:P().optional(),height:P().optional()}),It=R({pathData:Ut.optional()}),Dt=R({offset:Vt.optional(),range:Rt.optional(),subPaths:T(["separate","combined"]).optional()}),Wt=R({start:P().optional(),stretch:P().optional(),timeCrop:F([P(),P()]).optional()}),Lt=R({without:T(["translate"]).optional(),source:S().optional(),retime:Wt.optional()}),Zt=R({offset:P(),color:S()}),qt=V([_(Zt),R({value:_(Zt)}),mt]),Bt=R({type:T(["linear","radial"]),start:Rt.optional(),end:Rt.optional(),center:Rt.optional(),radius:Vt.optional(),focal:Rt.optional(),stops:qt.optional(),gradientUnits:T([Q,tt]).optional(),spreadMethod:T(["pad","reflect","repeat"]).optional(),gradientTransform:S().optional()}),Gt=Bt,Jt=R({pathData:S(),pathOverflow:T(["clip","extend"]).optional(),lengthAdjust:T(["spacing","spacingAndGlyphs"]).optional(),method:T(["align","stretch"]).optional(),spacing:T(["auto","exact"]).optional(),startOffset:Vt.optional(),textLength:Vt.optional()}),Kt=R({useGlyphs:N().optional()}),Xt=R({transformBy:_t.optional(),repeater:Et.optional(),maskedBy:Ft.optional(),clipPath:It.optional(),strokeTrim:Dt.optional(),clone:Lt.optional(),fillGradient:Bt.optional(),strokeGradient:Gt.optional(),textPath:Jt.optional(),text:Kt.optional()}),Yt=U({type:S(),domType:S().optional(),textContent:S().optional(),id:S().optional(),meta:(new class extends h{constructor(){super(...arguments),this._default=void 0}sanitize(t){return t}isValid(t,n,e){return!0}_canSanitize(t){return!0}}).optional(),effects:Xt.optional(),animate:bt.optional(),style:E(V([S(),P()])).optional()},Tt),Ht=U(a(c({},Yt._shape),{children:I(()=>_(Ht),[]).optional()}),Tt),$t=R({width:V([P(),S()]).optional(),height:V([P(),S()]).optional(),viewBox:S().optional(),animator:Ct.optional()});function Qt(t,n=!1){var e,r,o,i;const l=t.v,s=t.i,u=t.o,c=t.c;if(!l.length)return"";const a=[],f=l.length;a.push("M"+l[0][0]+","+l[0][1]);for(let t=1;t<f;t++){const o=l[t-1],i=null!=(e=null==u?void 0:u[t-1])?e:o,c=null!=(r=null==s?void 0:s[t])?r:l[t],f=l[t];n||i[0]!==o[0]||i[1]!==o[1]||c[0]!==f[0]||c[1]!==f[1]?a.push("C"+i[0]+","+i[1]+","+c[0]+","+c[1]+","+f[0]+","+f[1]):a.push("L"+f[0]+","+f[1])}if(c&&f>0){const t=l[f-1],e=null!=(o=null==u?void 0:u[f-1])?o:t,r=null!=(i=null==s?void 0:s[0])?i:l[0],c=l[0];!n&&e[0]===t[0]&&e[1]===t[1]&&r[0]===c[0]&&r[1]===c[1]||a.push("C"+e[0]+","+e[1]+","+r[0]+","+r[1]+","+c[0]+","+c[1]),a.push("z")}return a.join("")}function tn(t,n,e){return t+(n-t)*e}function nn(t,n,e){const r=[],o=Math.max(t.length,n.length);for(let i=0;i<o;i++)r[i]=tn(t[i]||0,n[i]||0,e);return r}function en(t,n,e){return[tn(t[0]||0,n[0]||0,e),tn(t[1]||0,n[1]||0,e),tn(t[2]||0,n[2]||0,e),tn(void 0===t[3]?1:t[3],void 0===n[3]?1:n[3],e)]}function rn(t,n,e){const r=Math.max(t.length,n.length),o=[];for(let i=0;i<r;i++)o.push(on(t[i],n[i],e));return o}function on(t,n,e){var r,o,i,l,s,u,c,a,f;if(!t||!n)return t||n||{v:[]};const d=Math.min(Math.max(e,0),1),v=Math.min(t.v.length,n.v.length),h=[],m=[],p=[];for(let e=0;e<v;e++){const f=t.v[e],v=n.v[e];h.push(nn(f,v,d));const y=null!=(o=null==(r=t.i)?void 0:r[e])?o:f,b=null!=(l=null==(i=n.i)?void 0:i[e])?l:v;m.push(nn(y,b,d));const g=null!=(u=null==(s=t.o)?void 0:s[e])?u:f,A=null!=(a=null==(c=n.o)?void 0:c[e])?a:v;p.push(nn(g,A,d))}return{v:h,i:m.length?m:void 0,o:p.length?p:void 0,c:null!=(f=t.c)?f:n.c}}function ln(t,n,e){if(e<=0)return 0;if(e>=1)return 1;const r=3*t,o=3*(n-t)-r,i=1-r-o;function l(t){return((i*t+o)*t+r)*t}function s(t){return(3*i*t+2*o)*t+r}let u=e,c=0,a=1;for(let t=0;t<8;t++){const t=l(u)-e;if(Math.abs(t)<1e-6)return u;const n=s(u);if(Math.abs(n)<1e-6)break;u-=t/n}for(u=e;c<a;){const t=l(u);if(Math.abs(t-e)<1e-6)return u;e>t?c=u:a=u,u=(a+c)/2}return u}function sn(t){const[n,e,r,o]=t,i=3*e,l=3*(o-e)-i,s=1-i-l;return function(t){return e=ln(n,r,t),((s*e+l)*e+i)*e;var e}}function un(t,n,e){return[t[0]+(n[0]-t[0])*e,t[1]+(n[1]-t[1])*e]}function cn(t,n){if(!t)return{left:void 0,right:void 0};if(n<=0)return{left:void 0,right:t};if(n>=1)return{left:t,right:void 0};const[e,r,o,i]=t,l=ln(e,o,n),s=[e,r],u=[o,i],{left:c,right:a}=function(t,n,e,r,o){const i=un(t,n,o),l=un(n,e,o),s=un(e,r,o),u=un(i,l,o),c=un(l,s,o),a=un(u,c,o);return{left:[t,i,u,a],right:[a,c,s,r]}}([0,0],s,u,[1,1],l),f=c[3][0],d=c[3][1];let v,h;f>1e-9&&Math.abs(d)>1e-9&&(v=[c[1][0]/f,c[1][1]/d,c[2][0]/f,c[2][1]/d]);const m=1-f,p=1-d;return m>1e-9&&Math.abs(p)>1e-9&&(h=[(a[1][0]-f)/m,(a[1][1]-d)/p,(a[2][0]-f)/m,(a[2][1]-d)/p]),{left:v,right:h}}function an(t){if(t)return[1-t[2],1-t[3],1-t[0],1-t[1]]}function fn(t){const n=Math.round(255*t[0]),e=Math.round(255*t[1]),r=Math.round(255*t[2]);return 4===t.length?"rgba("+n+","+e+","+r+","+t[3]+")":"rgb("+n+","+e+","+r+")"}function dn(t){if(t){if(Array.isArray(t))return t;if("string"==typeof t)return t.startsWith("#")?function(t){const n=t.slice(1),e=n.length<=4,r=e?n[0]+n[0]:n.slice(0,2),o=e?n[1]+n[1]:n.slice(2,4),i=e?n[2]+n[2]:n.slice(4,6),l=4===n.length?n[3]+n[3]:8===n.length?n.slice(6,8):null,s=[parseInt(r,16)/255,parseInt(o,16)/255,parseInt(i,16)/255];return null!==l&&s.push(parseInt(l,16)/255),s}(t):t.startsWith("rgb")?function(t){var n;const e=null==(n=t.match(/rgba?\((.*)\)/))?void 0:n[1];if(!e)throw new Error("Invalid rgb/rgba format");const r=e.split(",").map(t=>+t.trim());return[r[0]/255,r[1]/255,r[2]/255,...void 0!==r[3]?[r[3]]:[]]}(t):void console.warn("Unsupported color format: "+t)}}U(a(c(c({},Yt._shape),$t._shape),{type:C("svg"),children:_(Ht).optional()}),Tt),R({v:_(_(P())),i:_(_(P())).optional(),o:_(_(P())).optional(),c:N().optional()});var vn=new Set(["color","fill","flood-color","lighting-color","stop-color","stroke"]),hn=new Set(["translate","rotate","scale","skew"]),mn=new Set(["offset-distance","offsetDistance"]);function pn(t,n){var e;if(!t)return"";const r=null==(e=null==n?void 0:n.P)||e,o=[],i=t.translate,l=t.origin,s=t.rotate,u=t.skew,c=t.scale,a=r?"px":"",f=r?"deg":"";return i&&o.push("translate("+i[0]+a+","+i[1]+a+")"),l&&o.push("translate("+l[0]+a+","+l[1]+a+")"),null!=s&&o.push("rotate("+s+f+")"),null!=u&&o.push("skewX("+u+f+")"),c&&o.push("scale("+c[0]+","+c[1]+")"),l&&o.push("translate("+-l[0]+a+","+-l[1]+a+")"),o.join("")}var yn=new Set(["offset-distance","offsetDistance"]),bn=1e3;function gn(t){return!t.includes("-")&&/[a-z][A-Z]/.test(t)}var An=new Set(["viewBox","preserveAspectRatio","gradientUnits","gradientTransform","spreadMethod","patternUnits","patternContentUnits","patternTransform","clipPathUnits","maskUnits","maskContentUnits","markerUnits","markerWidth","markerHeight","refX","refY","textLength","lengthAdjust","startOffset","filterUnits","primitiveUnits","tableValues","stdDeviation","baseFrequency","numOctaves","surfaceScale","diffuseConstant","specularConstant","specularExponent","kernelMatrix","kernelUnitLength","edgeMode","preserveAlpha","targetX","targetY"]);function wn(t){return An.has(t)?t:t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function jn(t,n,e){return Math.max(n,Math.min(t,e))}function xn(t,n,e,r,o){if(o<=0)return[t[0],t[1]];if(o>=1)return[r[0],r[1]];const i=1-o,l=i*i,s=o*o,u=l*i,c=3*o*l,a=3*s*i,f=s*o;return[u*t[0]+c*n[0]+a*e[0]+f*r[0],u*t[1]+c*n[1]+a*e[1]+f*r[1]]}var Mn=1e-4;function kn(t,n,e,r,o){const i=On(t,n,e,r,o);return 0===i[0]&&0===i[1]?On(t,n,e,r,o<.5?o+Mn:o-Mn):i}function On(t,n,e,r,o){const i=1-o,l=3*i*i,s=6*o*i,u=3*o*o;return[l*(n[0]-t[0])+s*(e[0]-n[0])+u*(r[0]-e[0]),l*(n[1]-t[1])+s*(e[1]-n[1])+u*(r[1]-e[1])]}function zn(t,n){const{ts:e,ds:r}=t,o=e.length-1;if(n<=e[0])return r[0];if(n>=e[o])return r[o];let i=1,l=o;for(;i<l;){const t=i+l>>>1;e[t]<n?i=t+1:l=t}const s=e[l-1],u=e[l]-s,c=u>0?(n-s)/u:0;return r[l-1]+c*(r[l]-r[l-1])}function Sn(t){const n=at(t);if(!n)return;if(Array.isArray(n)&&n.length>=2&&"number"==typeof n[0]&&"number"==typeof n[1])return[n[0],n[1]];const e=n.translate;return Array.isArray(e)&&e.length>=2?[e[0],e[1]]:void 0}function Pn(t){return ct(t)}function Nn(t){return ft(t)}function Cn(t){const n=t.keyframes;if(!Array.isArray(n))return!1;if(t.autoOrient)return!0;for(const t of n)if(dt(t)||vt(t))return!0;return!1}var Tn=new WeakMap;function Vn(t,n,e,r){let o=Tn.get(t);const i=null==o?void 0:o.get(n);if(i)return i;const l=vt(t),s=dt(n),u=[e[0]+(l?l[0]:0),e[1]+(l?l[1]:0)],c=[r[0]+(s?s[0]:0),r[1]+(s?s[1]:0)],a=function(t,n,e,r,o=100){const i=o+1,l=new Float64Array(i),s=new Float64Array(i);let u=xn(t,n,e,r,0);l[0]=0,s[0]=0;let c=0;for(let a=1;a<i;a++){const i=a/o,f=xn(t,n,e,r,i),d=f[0]-u[0],v=f[1]-u[1];c+=Math.sqrt(d*d+v*v),l[a]=i,s[a]=c,u=f}return{ts:l,ds:s}}(e,u,c,r),f={P0:e,P1:u,P2:c,P3:r,N:a,C:a.ds[a.ds.length-1]};return o||(o=new WeakMap,Tn.set(t,o)),o.set(n,f),f}var Rn=.5,Un=5,_n=32;function En(t,n){var e,r,o;if(!Cn(t))return t;const i=t.keyframes;if(!Array.isArray(i)||i.length<2)return t;const l=!!t.autoOrient,s=null!=(e=null==n?void 0:n.flatnessTolerance)?e:Rn,u=null!=(r=null==n?void 0:n.rotationTolerance)?r:Un,c=null!=(o=null==n?void 0:n.maxSamplesPerSegment)?o:_n,a=[],f=Sn(i[0]);if(!f)return t;const d=l?function(t,n){const e=Sn(t),r=Sn(n);if(!e||!r)return 0;const o=Vn(t,n,e,r),i=kn(o.P0,o.P1,o.P2,o.P3,0);return 180*Math.atan2(i[1],i[0])/Math.PI}(i[0],i[1]):void 0;a.push(Fn(Pn(i[0]),Wn(In(i[0]),In(i[0]),0,f,d,l)));for(let t=0;t<i.length-1;t++){const n=i[t],e=i[t+1],r=Sn(n),o=Sn(e);r&&o?(l&&t>0&&Zn(a,n,e,r,o,u),Bn(a,n,e,r,o,l,s,u,c)):a.push(Fn(Pn(e),Wn(In(e),In(e),1,null!=o?o:[0,0],void 0,l)))}const v=Nn(i[i.length-1]);v&&(a[a.length-1].e=v),l&&function(t){let n;for(const e of t){const t=at(e);if(!t||"number"!=typeof t.rotate)continue;if(void 0===n){n=t.rotate;continue}let r=t.rotate;for(;r-n>180;)r-=360;for(;r-n<-180;)r+=360;t.rotate=r,n=r}}(a);const h={keyframes:a};return void 0!==t.loop&&(h.loop=t.loop),h}function Fn(t,n){return{t:t,v:n}}function In(t){const n=at(t);if(n&&"object"==typeof n&&!Array.isArray(n))return n}function Dn(t,n,e){if(void 0===t)return n;if(void 0===n)return t;if("number"==typeof t&&"number"==typeof n)return t+(n-t)*e;if(Array.isArray(t)&&Array.isArray(n)&&t.length===n.length){const r=new Array(t.length);for(let o=0;o<t.length;o++){const i="number"==typeof t[o]?t[o]:0,l="number"==typeof n[o]?n[o]:0;r[o]=i+(l-i)*e}return r}return e<.5?t:n}function Wn(t,n,e,r,o,i){const l={translate:r},s=new Set;if(t)for(const n of Object.keys(t))s.add(n);if(n)for(const t of Object.keys(n))s.add(t);for(const r of s){if("translate"===r)continue;if("rotate"===r&&i)continue;const o=null==t?void 0:t[r],s=null==n?void 0:n[r];void 0===o&&void 0===s||(l[r]=Dn(o,s,e))}return void 0!==o&&(l.rotate=o+Ln(t,n,e)),l}function Ln(t,n,e){const r="number"==typeof(null==t?void 0:t.rotate)?t.rotate:void 0,o="number"==typeof(null==n?void 0:n.rotate)?n.rotate:void 0;if(void 0===r&&void 0===o)return 0;const i=Dn(r,o,e);return"number"==typeof i?i:0}function Zn(t,n,e,r,o,i){const l=t[t.length-1],s=at(l),u=null==s?void 0:s.rotate;if("number"!=typeof u)return;const c=In(n),a=u-Ln(c,c,0),f=Vn(n,e,r,o),d=kn(f.P0,f.P1,f.P2,f.P3,0),v=180*Math.atan2(d[1],d[0])/Math.PI,h=function(t,n){let e=t-n;for(;e>180;)e-=360;for(;e<-180;)e+=360;return e}(v,a);if(Math.abs(h)<=i)return;const m=Pn(n),p=Math.min(m+qn,(m+Pn(e))/2),y=Wn(In(n),In(n),0,r,v,!0);t.push(Fn(p,y))}var qn=.05;function Bn(t,n,e,r,o,i,l,s,u){const c=Vn(n,e,r,o),a=Pn(n),f=Pn(e),d=Nn(n),v=(h=d)?sn([h[1],h[0],h[3],h[2]]):t=>t;var h;const m=In(n),p=In(e),y=function(t,n,e,r,o){const i=[];Gn(t.P0[0],t.P1[0],t.P2[0],t.P3[0],i),Gn(t.P0[1],t.P1[1],t.P2[1],t.P3[1],i),i.sort((t,n)=>t-n);const l=[0];for(const t of i)t>l[l.length-1]+1e-6&&t<.999999&&l.push(t);l.push(1);const s=[],u={T:o-l.length};for(let o=0;o<l.length-1;o++)Jn(l[o],l[o+1],s,t,n,e,r,u);return s}(c,i,l,s,u),b=[];for(const t of y){const n=zn(c.N,t),e=jn(c.C>0?n/c.C:t,0,1),r={u:jn(v(e),0,1),p:e,V:xn(c.P0,c.P1,c.P2,c.P3,t)};if(i){const n=kn(c.P0,c.P1,c.P2,c.P3,t);r.rotateDeg=180*Math.atan2(n[1],n[0])/Math.PI}b.push(r)}let g=d,A=0;const w=t.length-1;for(let n=0;n<b.length;n++){const e=b[n],r=A<1?jn((e.u-A)/(1-A),0,1):1,{left:o,right:l}=cn(g,r),s=0===n?w:t.length-1;o?t[s].e=o:delete t[s].e;const u=a+e.u*(f-a),c=Wn(m,p,e.p,e.V,e.rotateDeg,i);t.push(Fn(u,c)),g=l,A=e.u}}function Gn(t,n,e,r,o){const i=n-t,l=e-n,s=i-2*l+(r-e),u=2*(l-i),c=i;if(Math.abs(s)<1e-10){if(Math.abs(u)>1e-10){const t=-c/u;t>1e-6&&t<.999999&&o.push(t)}return}const a=u*u-4*s*c;if(a<0)return;const f=Math.sqrt(a),d=(-u-f)/(2*s),v=(-u+f)/(2*s);d>1e-6&&d<.999999&&o.push(d),v>1e-6&&v<.999999&&o.push(v)}function Jn(t,n,e,r,o,i,l,s){const u=(t+n)/2,c=xn(r.P0,r.P1,r.P2,r.P3,t),a=xn(r.P0,r.P1,r.P2,r.P3,n),f=n-t,d=xn(r.P0,r.P1,r.P2,r.P3,t+.25*f),v=xn(r.P0,r.P1,r.P2,r.P3,u),h=xn(r.P0,r.P1,r.P2,r.P3,t+.75*f),m=Math.max(Kn(d,c,a),Kn(v,c,a),Kn(h,c,a));let p=!0;if(o){const e=kn(r.P0,r.P1,r.P2,r.P3,t),o=kn(r.P0,r.P1,r.P2,r.P3,n),i=180*Math.atan2(e[1],e[0])/Math.PI,s=180*Math.atan2(o[1],o[0])/Math.PI;let u=Math.abs(i-s);u>180&&(u=360-u),u>l&&(p=!1)}m<=i&&p||s.T<=0||f<1e-6?e.push(n):(s.T-=1,Jn(t,u,e,r,o,i,l,s),Jn(u,n,e,r,o,i,l,s))}function Kn(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=r*r+o*o;if(i<1e-20){const e=t[0]-n[0],r=t[1]-n[1];return Math.sqrt(e*e+r*r)}const l=(t[0]-n[0])*o-(t[1]-n[1])*r;return Math.abs(l)/Math.sqrt(i)}var Xn=1;function Yn(t,n){if(t===n)return!0;if(typeof t!=typeof n||null===t||null===n||"object"!=typeof t)return!1;if(Array.isArray(t)!==Array.isArray(n))return!1;const e=Object.keys(t),r=Object.keys(n);return e.length===r.length&&e.every(e=>Yn(t[e],n[e]))}function Hn(t){const n=[];let e;const r=function(t){const n=t.split(/([MLCZmlcz]|[\s,]+)/).map(t=>t.trim()).filter(t=>t&&","!==t),e=[];let r=null;for(const t of n)if(/[MLCZmlcz]/.test(t))r={type:t,values:[]},e.push(r);else if(r){const n=+t;r.values.push(Number.isNaN(n)?0:n)}return e}(t);for(const t of r){const r=t.type,o=t.values;if("M"===r||"m"===r){const t=o[0]||0,r=o[1]||0;e={v:[[t,r]],i:[[t,r]],o:[[t,r]],c:!1},n.push(e);continue}if(e||(e={v:[[0,0]],i:[[0,0]],o:[[0,0]],c:!1},n.push(e)),"L"===r){const t=o[0]||0,n=o[1]||0;e.v.push([t,n]),e.i.push([t,n]),e.o.push([t,n])}else if("C"===r){const t=o[0]||0,n=o[1]||0,r=o[2]||0,i=o[3]||0,l=o[4]||0,s=o[5]||0;e.o[e.o.length-1]=[t,n],e.v.push([l,s]),e.i.push([r,i]),e.o.push([l,s])}else"Z"===r||"z"===r?e.c=!0:console.warn('Unsupported path command "'+r+'"')}return n}function $n(t){return t.startsWith("path(")&&t.endsWith(")")?t.slice(5,-1):/^[MmZzLlHhVvCcSsQqTtAa]/.test(t)?t:void 0}function Qn(t){return"string"==typeof t&&void 0!==$n(t)}function te(t){if(t&&"object"==typeof t&&"string"==typeof t.pathData){const n=$n(t.pathData);return n?{paths:Hn(n)}:t}if(t&&"object"==typeof t&&"paths"in t){const n=t.paths;if(Array.isArray(n)&&n.length>0&&Qn(n[0])){const t=[];for(const e of n){const n=$n(e);n&&t.push(...Hn(n))}return{paths:t}}return t}if(Array.isArray(t)){if(t.length>0&&Qn(t[0])){const n=[];for(const e of t){const t=$n(e);t&&n.push(...Hn(t))}return{paths:n}}return{paths:t}}return Qn(t)?{paths:Hn($n(t))}:t}function ne(t,n){var e;if(t)return Array.isArray(t)?t:(null==(e=null==n?void 0:n.easings)?void 0:e[t])?n.easings[t]:void console.warn("Unknown easing name: "+t)}function ee(t,n){var e;if("string"==typeof t){const r=null==(e=null==n?void 0:n.animations)?void 0:e[t];return r||console.warn("Unknown animation name: "+t),r}return t}function re(t,n,e,r){var o,i;return"d"===t?{paths:rn(null!=(o=null==n?void 0:n.paths)?o:Array.isArray(n)?n:[],null!=(i=null==e?void 0:e.paths)?i:Array.isArray(e)?e:[],r)}:vn.has(t)?en(n||[0,0,0,1],e||[0,0,0,1],r):"transform"!==t||"object"!=typeof n||null===n||Array.isArray(n)||"object"!=typeof e||null===e||Array.isArray(e)?"rotate"===t&&"number"==typeof n&&"number"==typeof e?tn(n,e,r):hn.has(t)||"stroke-dasharray"===t||"strokeDasharray"===t?nn(n||[],e||[],r):tn(+(n||0),+(e||0),r):function(t,n,e){const r=new Set([...Object.keys(null!=t?t:{}),...Object.keys(null!=n?n:{})]),o={};for(const i of r){const r=null==t?void 0:t[i],l=null==n?void 0:n[i];if("rotate"===i||"skew"===i)o[i]=tn(+(null!=r?r:0),+(null!=l?l:0),e);else if("translate"===i||"scale"===i||"origin"===i){const t="scale"===i?[1,1]:[0,0];o[i]=nn(r||t,l||t,e)}else o[i]=null!=l?l:r}return o}(n,e,r)}function oe(t,n,e,r){var o;const i=n.keyframes||[],l=[];for(const n of i){const e=ct(n);let i=at(n);const s=ft(n);"d"===t&&(i=te(i));const u=gn(t)?wn(t):t;vn.has(u)&&(i=null!=(o=dn(i))?o:i);const c={t:e,v:i,e:ne(s,r)},a=dt(n),f=vt(n);a&&(c.tangentIn=a),f&&(c.tangentOut=f),l.push(c)}l.sort((t,n)=>{var e,r;return(null!=(e=t.t)?e:0)-(null!=(r=n.t)?r:0)});const s=n.loop,u=!0===s?{}:s||void 0;return u&&l.length>=2?function(t,n,e,r){var o,i,l,s,u;const f=n.length-1,d=jn(null!=(o=e.segmentCount)?o:f,1,f);let v;v=e.repeatAt===H.start?n.slice(0,d+1):n.slice(f-d);const h=null!=(i=n[0].t)?i:0,m=null!=(l=n[n.length-1].t)?l:0;let p,y;e.repeatAt===H.start?(p=0,y=h):(p=m,y=r);const b=y-p;if(b<=0)return n;const g=null!=(s=v[0].t)?s:0,A=(null!=(u=v[v.length-1].t)?u:0)-g;if(A<=0)return n;const w=v.map(t=>({R:(t.t-g)/A,v:t.v,e:t.e,tangentIn:dt(t),tangentOut:vt(t)})),j=Math.floor(b/A),x=b-j*A,M=x/A,k=[],O=e.repeatAt!==H.start,z=n[n.length-1];let S,P=!1;function N(n,e,r){var o;let i;if(e){i=[];for(let t=w.length-1;t>=0;t--)i.push({R:1-w[t].R,v:w[t].v,e:t>0?an(w[t-1].e):void 0,tangentIn:w[t].tangentOut,tangentOut:w[t].tangentIn})}else i=w;const l=void 0!==r?r:1;for(let e=0;e<i.length;e++){const r=i[e];if(r.R>l+1e-9){const o=i[e-1],s=r.R-o.R,u=(l-o.R)/s,c=o.e?sn(o.e)(u):u,a=re(t,o.v,r.v,c),{left:f}=cn(o.e,u);return k.length>0&&o.R<=l&&(k[k.length-1].e=f),void k.push({t:n+l*A,v:a,e:void 0})}const s=k.length>0?k[k.length-1]:z,u=O&&0===e&&void 0!==s&&Math.abs((null!=(o=s.t)?o:0)-(n+r.R*A))<1e-9;if(u){if(Yn(s.v,r.v)){k.length>0?(s.e=r.e,s.tangentOut=r.tangentOut):(S=r.e,P=!0);continue}k.length>0&&(delete s.tangentIn,delete s.tangentOut)}const c={t:n+r.R*A+(u?Xn:0),v:r.v,e:e<i.length-1?r.e:void 0};r.tangentIn&&(c.tangentIn=r.tangentIn),r.tangentOut&&(c.tangentOut=r.tangentOut),k.push(c)}}if(e.repeatAt===H.start){M>1e-9&&function(n,e,r){let o;if(e){o=[];for(let t=w.length-1;t>=0;t--)o.push({R:1-w[t].R,v:w[t].v,e:t>0?an(w[t-1].e):void 0,tangentIn:w[t].tangentOut,tangentOut:w[t].tangentIn})}else o=w;const i=1-r;for(let e=0;e<o.length;e++){const r=o[e];if(r.R<i-1e-9)continue;const l=o[e-1];if(l&&l.R<i-1e-9&&r.R>i+1e-9){const e=r.R-l.R,o=(i-l.R)/e,s=l.e?sn(l.e)(o):o,u=re(t,l.v,r.v,s),{right:c}=cn(l.e,o);k.push({t:n,v:u,e:c})}const s={t:n+(r.R-i)*A,v:r.v,e:e<o.length-1?r.e:void 0};r.tangentIn&&(s.tangentIn=r.tangentIn),r.tangentOut&&(s.tangentOut=r.tangentOut),k.push(s)}}(p,e.direction===$.alternate&&j%2==0,M);for(let t=0;t<j;t++){const n=j-1-t,r=e.direction===$.alternate&&n%2==0;N(p+x+t*A,r)}}else{for(let t=0;t<j;t++){const n=e.direction===$.alternate&&t%2==0;N(p+t*A,n)}if(M>1e-9){const t=e.direction===$.alternate&&j%2==0;N(p+j*A,t,M)}}return e.repeatAt===H.start?[...k,...n]:P&&n.length>0?[...n.slice(0,-1),a(c({},n[n.length-1]),{e:S}),...k]:[...n,...k]}(t,l,u,e):l}var ie=0;function le(t,n=J.native){const e=et(t)||{},r=function(t){var n;if(t)return null==(n=et(t))?void 0:n.definitions}(t),o=e.duration||1e3,i=[],l=(t,e,i)=>{if(0===e.length)return null;const l=function(t,n,e,r=J.native){const o={};for(const[i,l]of Object.entries(t)){if("transform"===i&&"offsetPath"===l.alongPathMode&&void 0!==t.offsetDistance)continue;const s=oe(i,l,n,e);if(s.length>0){const t={keyframes:s};void 0!==l.autoOrient&&(t.autoOrient=l.autoOrient),void 0!==l.loop&&(t.loop=l.loop),o[i]=r===J.native&&"transform"===i?En(t):t}}return o}(function(t,n){if(!t)return t;const e=n&&"object"==typeof n&&!Array.isArray(n)?n:function(t){var n,e;if(!t||"string"!=typeof t)return;const r={},o=/([a-zA-Z]+)\s*\(([^)]*)\)/g,i=["translate","rotate","skewX","scale"];let l,s=-1;for(;null!==(l=o.exec(t));){const t=l[1],o=i.indexOf(t);if(o<0||o<=s)return;s=o;const u=l[2].split(/[\s,]+/).filter(Boolean).map(Number);if(u.some(t=>Number.isNaN(t)))return;if("translate"===t){if(u.length<1||u.length>2)return;r.translate=[u[0],null!=(n=u[1])?n:0]}else if("rotate"===t){if(1!==u.length)return;r.rotate=u[0]}else if("skewX"===t){if(1!==u.length)return;r.skew=u[0]}else{if(u.length<1||u.length>2)return;r.scale=[u[0],null!=(e=u[1])?e:u[0]]}}return t.replace(/([a-zA-Z]+)\s*\(([^)]*)\)/g,"").replace(/[\s,]/g,"").length?void 0:Object.keys(r).length?r:void 0}(n);if(!e||!Object.keys(e).length)return t;const r=t=>t&&"object"==typeof t&&!Array.isArray(t)?c(c({},e),t):t,o=t[nt];if(o&&"object"==typeof o){const n=o;if(Array.isArray(n.keyframes)){const e=a(c({},n),{keyframes:n.keyframes.map(t=>a(c({},t),{value:r(t.value)}))});return void 0!==e.value&&(e.value=r(e.value)),a(c({},t),{transform:e})}return t}const i=Object.keys(t).filter(t=>hn.has(t));if(1!==i.length)return t;const l=i[0],s=t[l];if(!s||"object"!=typeof s||!Array.isArray(s.keyframes))return t;const u=a(c({},s),{keyframes:s.keyframes.map(t=>a(c({},t),{value:a(c({},e),{[l]:t.value})}))});void 0!==u.value&&(u.value=a(c({},e),{[l]:u.value}));const f=c({},t);return delete f[l],a(c({},f),{transform:u})}(function(t){const n={};for(const e of t)for(const[t,r]of Object.entries(e))n[t]=r;return n}(e),i),o,r,n);return 0===Object.keys(l).length?null:{id:t,animate:l}},s=function(t){var n;if(t)return null==(n=et(t))?void 0:n.bindings}(t);if(s)for(const t of s){const n=t.target.startsWith("#")?t.target.slice(1):t.target,e=t.animateWith.map(t=>ee(t,r)).filter(t=>!!t),o=l(n,e);o&&i.push(o)}const u=t=>{const n=t.animate;if(n&&Object.keys(n).length>0){const e=t.id||"_px_el_"+ ++ie;t.id=e;const o=l(e,function(t,n){if(!t)return[];const e=[];if("string"==typeof t){const r=ee(t,n);r&&e.push(r)}else if(Array.isArray(t))for(const r of t){const t=ee(r,n);t&&e.push(t)}else e.push(t);return e}(n,r),t.transform);o&&i.push(o)}if(t.children)for(let n=0;n<t.children.length;n++)u(t.children[n])};if(t.children)for(let n=0;n<t.children.length;n++)u(t.children[n]);return i}function se(t,n,e){var r,o,i,l;const s=n.keyframes||[];if(0===s.length)return null;const{U:u,_:c}=function(t,n){var e,r;const o=t.length-1;let i=t[0],l=t[o>0?1:0];for(let s=0;s<o;s++){const u=null!=(e=t[s].t)?e:0,c=null!=(r=t[s+1].t)?r:0;if(u<=n&&n<=c){i=t[s],l=t[s+1];break}n>c&&s===o-1&&(i=t[o>0?o-1:0],l=t[o])}return{U:i,_:l}}(s,e);let a=u===c?0:(f=e,d=null!=(r=u.t)?r:0,(v=null!=(o=c.t)?o:0)===d?0:0+(f-d)/(v-d)*1);var f,d,v;a=jn(a,0,1);const h=ft(u);if(h&&Array.isArray(h))try{a=sn(h)(a)}catch(t){}let m=gn(t)?wn(t):t,p=null;const y=null==u?void 0:u.v,b=null==c?void 0:c.v;if("d"===m)p=rn(null!=(i=null==y?void 0:y.paths)?i:Array.isArray(y)?y:[],null!=(l=null==b?void 0:b.paths)?l:Array.isArray(b)?b:[],a).map(t=>Qt(t)).join("");else if(vn.has(m))p=fn(en(y||[0,0,0,1],b||[0,0,0,1],a)),m=t;else if("stroke-dasharray"===m)p=nn(y||[],b||[],a).join(" "),m=t;else if("transform"!==m||null===y||"object"!=typeof y||Array.isArray(y))"translate"===m?(p="translate("+nn(y||[0,0],b||[0,0],a).join(",")+")",m="transform"):"rotate"===m?(p="rotate("+tn(+(y||0),+(b||0),a)+")",m="transform"):"scale"===m?(p="scale("+nn(y||[1,1],b||[1,1],a).join(",")+")",m="transform"):p=tn(+(y||0),+(b||0),a);else{const t=new Set([...y?Object.keys(y):[],...b?Object.keys(b):[]]),e={};for(const n of t){const t=null==y?void 0:y[n],r=null==b?void 0:b[n];if("rotate"===n||"skew"===n)e[n]=tn(+(null!=t?t:0),+(null!=r?r:0),a);else if("translate"===n||"scale"===n||"origin"===n){const o="scale"===n?[1,1]:[0,0],i=nn(t||o,r||o,a);e[n]=i}}if(Cn(n)){const t=y.translate,r=b.translate;if(Array.isArray(t)&&Array.isArray(r)){const o=function(t,n,e,r,o,i){const l=Vn(t,n,e,r),s=0===l.C?o:function(t,n){const e=n*t.ds[t.ds.length-1],{ts:r,ds:o}=t,i=o.length-1;if(e<=0)return r[0];if(e>=o[i])return r[i];let l=1,s=i;for(;l<s;){const t=l+s>>>1;o[t]<e?l=t+1:s=t}const u=o[s-1],c=o[s]-u,a=c>0?(e-u)/c:0;return r[s-1]+a*(r[s]-r[s-1])}(l.N,o),u=xn(l.P0,l.P1,l.P2,l.P3,s);if(!i)return{translate:u};const c=kn(l.P0,l.P1,l.P2,l.P3,s);return{translate:u,rotateDeg:180*Math.atan2(c[1],c[0])/Math.PI}}(u,c,[+t[0],+t[1]],[+r[0],+r[1]],a,!!n.autoOrient);e.translate=[o.translate[0],o.translate[1]],void 0!==o.rotateDeg&&(e.rotate=o.rotateDeg)}}p=pn(e,{P:!1}),m="transform"}return mn.has(m)&&"number"==typeof p&&(p=100*p+"%"),{k:m,v:null===p?"":""+p}}function ue(t,n){const e={};for(const[r,o]of Object.entries(t)){const t=se(r,o,n);t&&(e[t.k]=t.v)}return e}var ce="setPlaybackRate: rate must be finite and non-zero";function ae(t){return Number.isFinite(t)&&0!==t}function fe(t,n){return t>0?n===1/0?t:t*(n>0?n:1):0}function de(t,n){return Number.isNaN(t)||t<0?0:Number.isFinite(n)?t>n?n:t:Number.isFinite(t)?t:0}function ve(t,n,e){const r=fe(n,e);return r>0&&Number.isFinite(t)?t<=0?0:e===1/0?t%r/r:t>=r?1:t/r:0}function he(t,n,e){const r=fe(n,e);return r>0&&Number.isFinite(t)?t<=0?0:t>=1?r:t*r:0}function me(t){const n=globalThis;"function"!=typeof n.cancelAnimationFrame?n.clearTimeout(t):n.cancelAnimationFrame(t)}var pe={document:"document",host:"host",platform:"platform",usage:"usage",internal:"internal"};function ye(t,n){const e=n?n+" ":"";return{warn:(n,r,o)=>{if(null==t?void 0:t.onWarn)return void t.onWarn({kind:n,message:r,detail:o});if(null==t?void 0:t.muteWarn)return;const i=e+n+": "+r;void 0===o?console.warn(i):console.warn(i,o)},error:(n,r,o)=>{const i=function(t){return"string"==typeof t?new Error(t):t}(r);if(null==t?void 0:t.onError)return void t.onError({kind:n,message:i.message,error:i,detail:o});if(null==t?void 0:t.muteError)return;const l=e+n+": "+i.message;void 0===o?console.error(l):console.error(l,o)}}}function be(t){return"scroll"===(null==t?void 0:t.timelineSource)}var ge="cover";function Ae(t,n,e,r){var o;const[i,l]=function(t,n,e){const r=n,o=e;switch(t){case"cover":return[0,r+o];case"entry":return[0,Math.min(r,o)];case"contain":return[Math.min(r,o),Math.max(r,o)];case"exit":return[Math.max(r,o),r+o];case"entry-crossing":return[0,r];case"exit-crossing":return[o,r+o]}}(null!=(o=null==t?void 0:t.phase)?o:ge,e,r);return i+("number"==typeof(null==t?void 0:t.fraction)?t.fraction:n)*(l-i)}function we(t,n,e){const r=null!=e?e:ye(void 0,"[PxAnimator]"),o=[],i=()=>{for(const t of o.splice(0))t()},{startOn:l,outAction:s,scrollIntoViewThreshold:u}={startOn:null!=(a=null==(c=n)?void 0:c.startOn)?a:Y.startOn,outAction:null!=(f=null==c?void 0:c.outAction)?f:Y.outAction,scrollIntoViewThreshold:null!=(d=null==c?void 0:c.scrollIntoViewThreshold)?d:Y.scrollIntoViewThreshold};var c,a,f,d;const v=t.getRootElement();if(!v)return r.warn(pe.host,"setupAnimationTriggers: No root element found for animation."),i;let h=!1;const m=()=>{h&&(h=!1,t.setPlaybackRate(1)),t.play()},p=()=>{switch(s){case"pause":t.pause();break;case"reset":t.cancel();break;case"reverse":h=!0,t.setPlaybackRate(-1),t.play()}};switch(l){case"load":{const t=()=>m();"complete"===document.readyState?t():(window.addEventListener("load",t,{once:!0}),o.push(()=>window.removeEventListener("load",t)));break}case"mouseOver":{let t=!1;const n=()=>{t=!0,m()},e=()=>{t&&p()};v.addEventListener("mouseenter",n),v.addEventListener("mouseleave",e),o.push(()=>{v.removeEventListener("mouseenter",n),v.removeEventListener("mouseleave",e)});break}case"click":{const n=()=>{t.isPlaying()?p():m()};v.addEventListener("click",n),o.push(()=>v.removeEventListener("click",n));break}case"scrollIntoView":{const t=t=>{var n,e;const r=t.boundingClientRect,o=t.intersectionRect;if(!(null==r?void 0:r.height)||!o)return t.intersectionRatio;const i="undefined"!=typeof window&&window.innerHeight?window.innerHeight:1/0,l=null!=(e=null==(n=t.rootBounds)?void 0:n.height)?e:1/0,s=Math.min(i,l),u=Math.min(r.height,Number.isFinite(s)?s:r.height);return u>0?o.height/u:t.intersectionRatio},n=Array.from({length:21},(t,n)=>n/20);let e=!1;const r=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting&&t(n)>=u?(e=!0,m()):e&&(e=!1,p())})},{threshold:n});r.observe(v),o.push(()=>r.disconnect());break}}return i}function je(t){return"#"+t}function xe(t,n,e,r){var o;const i=et(t)||{},l=ye(e,"[PxAnimator]");if(!r)if(t.id){const n=je(t.id);(r=document.querySelector(n))||l.warn(pe.host,"createFrameLoopAnimator: No root element found for selector: "+n)}else l.warn(pe.host,"createFrameLoopAnimator: No root element provided");const s=function(t,n,e){var r;const o=et(t)||{},i=le(t,J.js),l=o.iterations;let s=1;"number"==typeof l&&(s=l||1),"infinite"===l&&(s=1/0),s<1&&(s=1);const u=+(o.duration||bn),c=u&&s?u*(s===1/0?1/0:s):u?(null!=s?s:1)*u:0,a=o.direction||"normal",f=null!=(r=o.fill)?r:"forwards",d="forwards"===f||"both"===f,v="backwards"===f||"both"===f;let h=null,m=!1,p=-(o.delay||0),y=0,b=1,g=!1;const A=o.frameRate,w=A&&A>0?1e3/A:0;let j=0;const x=()=>{const t=y?(Date.now()-y)*b:0;return p+t},M=()=>{let t=x();return Number.isFinite(c)&&t>c&&(t=c),t<0&&(t=0),t};function k(t){let e=function(){const n=u>0?u:1;let e=0,r=0;u>0?(t=jn(t,0,s*n),r=Math.max(0,Math.ceil(t/n)-1),r=Math.min(r,s-1),e=jn((t-r*n)/n,0,1)):e=t;const o=a||"normal";let i=e;return"reverse"===o?i=1-e:"alternate"===o?r%2==1&&(i=1-e):"alternate-reverse"===o&&r%2==0&&(i=1-e),i}();for(const t of i||[]){const r=t.animate;if(!r||"object"!=typeof r||Array.isArray(r)){console.warn("Empty or unresolved binding",t);continue}const o=ue(r,e*u);for(const[e,r]of Object.entries(o))n.setAttribute(t.id,e,r)}}o.delay&&(o.delay<0?k(M()):v&&k(0));const O=()=>!!m&&!!n.isConnected()&&(b<0?x()>0:!(Number.isFinite(c)&&M()>=c)),z=t=>{null!==h&&(me(h),h=null),(t||O())&&(h=function(t){const n=globalThis;return"function"==typeof n.requestAnimationFrame?n.requestAnimationFrame(t):n.setTimeout(t,16)}(()=>{h=null,(()=>{var t,r;if(!n.isConnected())return void S();const o=M(),i=x();if(i<0&&b>0)v&&k(0);else{if(b<0&&i<=0)return S(),k(0),void(g||(g=!0,null==(t=null==e?void 0:e.onFinish)||t.call(e)));if(b>0&&c&&Number.isFinite(c)&&o>=c)return S(),k(d?c:0),void(g||(g=!0,null==(r=null==e?void 0:e.onFinish)||r.call(e)));if(w>0){const t=Date.now();if(j&&t-j<w)return;j=t}k(o)}})(),z()}))},S=()=>{if(!m)return;let t=x();Number.isFinite(c)&&t>c&&(t=c),p=t,y=0,m=!1,null!==h&&(me(h),h=null),t>=0?k(t):v&&k(0)},P={isReady:()=>!0,getRootElement:()=>null,isPlaying:()=>O(),play:()=>{var t;(()=>{if(!m){if(b>=0)Number.isFinite(c)&&p>=c&&(p=0);else if(p<=0){if(!Number.isFinite(c))return void console.warn("play: cannot start reverse playback of an infinite animation from time 0");p=c}g=!1,m=!0,y=Date.now(),z(!0)}})(),null==(t=null==e?void 0:e.onPlay)||t.call(e)},pause:()=>{var t;S(),null==(t=null==e?void 0:e.onPause)||t.call(e)},cancel:()=>{var t;S(),p=0,y=0,m=!1,g=!1,k(p),null==(t=null==e?void 0:e.onCancel)||t.call(e)},finish:()=>{((t=!0)=>{var n;p=Number.isFinite(c)?c:M(),y=0,m=!1,null!==h&&(me(h),h=null),k(d?p:0),t&&!g&&(g=!0,null==(n=null==e?void 0:e.onFinish)||n.call(e))})(!0)},setPlaybackRate:t=>{if(!ae(t))return void console.warn(ce);let n=x();Number.isFinite(c)&&n>c&&(n=c),t<0!=b<0&&(g=!1),b=t,p=n,m&&(y=Date.now())},getCurrentTime:()=>M(),setCurrentTime:t=>{t=de(t,c),p=t,m&&(y=Date.now()),(!Number.isFinite(c)||t<c)&&(g=!1),k(M())},getCurrentProgress:()=>ve(M(),u,s),setCurrentProgress:t=>{P.setCurrentTime(he(t,u,s))},destroy:()=>{var t;P.cancel(),null==(t=null==e?void 0:e.onRemove)||t.call(e)}};return P}(t,n||function(t,n){const e=new Set,r=null!=n?n:ye(void 0,"[PxAnimator]");return{isConnected:()=>!t||t.isConnected,setAttribute:(n,o,i)=>{o=wn(o);const l=je(n),s=(null==t?void 0:t.querySelectorAll(l))||document.querySelectorAll(l);0!==s.length||e.has(l)||(e.add(l),r.warn(pe.host,'setAttribute: No elements found for selector "'+l+'"'));for(let t=0;t<s.length;t++){const n=s[t],e="transform"===o&&"pattern"===n.tagName?"patternTransform":o;n.setAttribute(e,i),yn.has(o)&&(n.style[o]=i)}}}}(r,l),e),u=a(c({},s),{getRootElement:()=>r||null});if(be(i))i.trigger&&l.warn(pe.usage,"scroll timeline: `animator.trigger` is ignored (triggers do not apply to scroll-driven playback)");else{const t=we(u,null!=(o=i.trigger)?o:{},l),n=u.destroy.bind(u);u.destroy=()=>{t(),n()}}return u}function Me(t,n,e,r){let o=at(t);const i=ft(t),l={offset:n,easing:i&&Array.isArray(i)?"cubic-bezier("+i.join(",")+")":void 0};let s,u=e;var c;return vn.has(e)&&Array.isArray(o)?s=fn(o):"transform"!==e||null===o||"object"!=typeof o||Array.isArray(o)?hn.has(e)?(Array.isArray(o)&&("translate"===e&&(o=o.map(t=>t+"px")),o=o.join(",")),"rotate"===e&&(o+="deg"),s=e+"("+o+")",u="transform"):s="d"===e?'path("'+(o&&"object"==typeof o&&Array.isArray(o.paths)?o.paths:[]).map(t=>Qt(t,!0)).join("")+'")':mn.has(e)&&"number"==typeof o?100*o+"%":""+o:(s=pn(o,{P:!0}),u="transform"),CSS.supports(wn(u),s)||r.add(u),u=(c=u).includes("-")?c.replace(/-([a-z])/g,(t,n)=>n.toUpperCase()):c,l[u]=s,l}function ke(t,n,e){var r,o,i,l,s;const u=[];for(let f=0;f<n.length;f++){const d=n[f],v=null!=(r=d.t)?r:0;if(v<0){const e=n[f+1];if(e&&(null!=(o=e.t)?o:0)>=0){const n=(0-v)/((null!=(i=e.t)?i:0)-v),r=d.e?sn(d.e)(n):n,{right:o}=cn(d.e,n);u.push({t:0,v:re(t,d.v,e.v,r),e:o})}continue}if(v>e){const r=n[f-1];if(r&&(null!=(l=r.t)?l:0)<=e){const n=null!=(s=r.t)?s:0,o=(e-n)/(v-n),i=r.e?sn(r.e)(o):o,{left:l}=cn(r.e,o);u.length>0&&(u[u.length-1]=a(c({},u[u.length-1]),{e:l})),u.push({t:e,v:re(t,r.v,d.v,i),e:void 0})}break}u.push(d)}return u}function Oe(t,n,e){var r;const o=new Map;for(const[i,l]of Object.entries(t)){const t=e.duration||1,s=ke(i,l.keyframes||[],t),u=[];for(let e=0;e<s.length;e++){const o=s[e],l=Me(o,jn((null!=(r=o.t)?r:0)/t,0,1),i,n);0===e&&(l.offset||0)>0&&u.push(a(c({},l),{offset:0})),u.push(l)}u.length>0&&(u[u.length-1].offset||0)<1&&u.push(a(c({},u[u.length-1]),{offset:1})),u.length>0&&o.set(i,u)}return o}function ze(t,n,e,r,o){var i,l;const s=et(t)||{},u=ye(n,"[PxAnimator]");if(!e)if(t.id){const n=je(t.id);(e=document.querySelector(n))||u.warn(pe.host,"createWebApiAnimator: No root element found for selector: "+n)}else u.warn(pe.host,"createWebApiAnimator: No root element provided");const c=le(t,J.native),a=[],f=s.iterations;let d;"number"==typeof f&&(d=f),"infinite"===f&&(d=1/0);const v=new Set;let h=!1,m=!1;(null==c?void 0:c.length)||u.warn(pe.document,"createWebApiAnimator: No animation bindings defined");for(const t of c||[]){const r=t.animate;if(!r||"object"!=typeof r||Array.isArray(r)){u.warn(pe.document,"createWebApiAnimator: Empty or unresolved binding",t);continue}const l=je(t.id),c=(null==e?void 0:e.querySelectorAll(l))||document.querySelectorAll(l);0===c.length&&u.warn(pe.host,'createWebApiAnimator: No elements found for selector "'+l+'"');const f=Oe(r,v,s),p=s.delay&&s.delay>0?s.delay:void 0;let y;if(s.delay&&s.delay<0&&s.duration){const t=-s.delay;y=d===1/0?t%s.duration:Math.min(t,s.duration*(null!=d?d:1))}const b={duration:s.duration,delay:p,fill:null!=(i=s.fill)?i:"forwards",direction:s.direction,iterations:d};for(let t=0;t<c.length;t++){const e=c[t];for(const[,t]of f)if(t.length>0)try{const r=new KeyframeEffect(e,t,b),i=new Animation(r,o?o.timeline:document.timeline);if(o){const t=i;o.rangeStart&&(t.rangeStart=o.rangeStart),o.rangeEnd&&(t.rangeEnd=o.rangeEnd)}(null==n?void 0:n.onFinish)&&(i.onfinish=()=>{var t;h||(h=!0,null==(t=n.onFinish)||t.call(n))}),(null==n?void 0:n.onRemove)&&(i.onremove=()=>{var t;m||(m=!0,null==(t=n.onRemove)||t.call(n))}),void 0!==y&&(i.currentTime=y),a.push(i)}catch(t){u.warn(pe.internal,"createWebApiAnimator: could not build the animation",t)}}}if(!r&&v.size)return u.warn(pe.platform,"Unsupported CSS attrs: "+[...v].join(", ")),null;const p={isReady:()=>!0,getRootElement:()=>e||null,isPlaying:()=>{var t;return"running"===(null==(t=a[0])?void 0:t.playState)},play:()=>{var t;h=!1,a.forEach(t=>t.play()),null==(t=null==n?void 0:n.onPlay)||t.call(n)},pause:()=>{var t;a.forEach(t=>t.pause()),null==(t=null==n?void 0:n.onPause)||t.call(n)},cancel:()=>{var t;h=!1,a.forEach(t=>t.cancel()),null==(t=null==n?void 0:n.onCancel)||t.call(n)},finish:()=>{var t;for(const n of a)try{(null==(t=n.effect)?void 0:t.getTiming().iterations)===1/0?(n.effect.updateTiming({iterations:1}),n.finish(),n.effect.updateTiming({iterations:1/0})):n.finish()}catch(t){n.cancel()}},setPlaybackRate:t=>ae(t)?(a.forEach(n=>n.playbackRate=t),p):(u.warn(pe.usage,ce),p),getCurrentTime:()=>{var t,n;const e=null!=(n=null==(t=a[0])?void 0:t.currentTime)?n:null;return null!==e?+e:null},setCurrentTime:t=>{var n;const e=function(t,n){return t>0?n===1/0?1/0:t*(n>0?n:1):0}(null!=(n=s.duration)?n:0,null!=d?d:1),r=e>0?de(t,e):Math.max(0,t);h=!1,a.forEach(t=>{t.currentTime=r})},getCurrentProgress:()=>{var t;const n=p.getCurrentTime();return null===n?null:ve(n,null!=(t=s.duration)?t:0,null!=d?d:1)},setCurrentProgress:t=>{var n;p.setCurrentTime(he(t,null!=(n=s.duration)?n:0,null!=d?d:1))},destroy:()=>{var t;p.cancel(),a.splice(0,a.length),m||(m=!0,null==(t=null==n?void 0:n.onRemove)||t.call(n))}};if("scroll"===s.timelineSource)s.trigger&&u.warn(pe.usage,"scroll timeline: `animator.trigger` is ignored (triggers do not apply to scroll-driven playback)");else{const t=we(p,null!=(l=s.trigger)?l:{},u),n=p.destroy.bind(p);p.destroy=()=>{t(),n()}}return o&&a.forEach(t=>t.play()),p}function Se(t,n,e){var r,o,i;const l="number"==typeof(null==t?void 0:t.fraction)?t.fraction:n,s=null==(o=null==(r=globalThis.CSS)?void 0:r.percent)?void 0:o.call(r,100*l);if(void 0!==s)return e?{rangeName:null!=(i=null==t?void 0:t.phase)?i:"cover",offset:s}:{offset:s}}function Pe(t,n){const e=document.body,r=document.documentElement;for(let o=t.parentElement;o;o=o.parentElement){if(o===e||o===r)return null;const t=getComputedStyle(o),i="y"===n?t.overflowY:t.overflowX;if("auto"===i||"scroll"===i||"hidden"===i||"overlay"===i)return o}return null}function Ne(){return document.scrollingElement||document.documentElement}var Ce="parent",Te="scroller";function Ve(t,n,e){var r,o;const i=null!=e?e:ye(void 0,"[PxAnimator]"),l=null==n?void 0:n.trim();if(!l)return t;if(l===Ce){let n=null;for(let e=t.parentElement;e&&e!==document.body;e=e.parentElement){const t=getComputedStyle(e).position;"sticky"!==t&&"fixed"!==t||(n=e)}return null!=(o=null!=(r=null==n?void 0:n.parentElement)?r:t.parentElement)?o:t}if(l===Te)return Pe(t,"y")||Pe(t,"x")||Ne();let s=null;try{s=document.querySelector(l)}catch(n){return i.warn(pe.document,'scroll timeline: subject "'+l+'" is not a valid selector — measuring the SVG itself'),t}return s||(i.warn(pe.host,'scroll timeline: subject "'+l+'" matched no element — measuring the SVG itself'),t)}function Re(t,n){const e=t;if(!(null==n?void 0:n.pin)||!e.style)return()=>{};const r=e.style,o=r.position,i=r.top;r.position="sticky";const l="center"===n.pinAlign?.5:"bottom"===n.pinAlign?1:0,s=()=>{var e;const o=null!=(e=n.pinOffset)?e:0;if(!l)return void(r.top=o+"px");const i=function(t){const n=Pe(t,"y");return n?n.clientHeight:document.documentElement.clientHeight}(t),s=t.getBoundingClientRect().height;r.top=Math.round((i-s)*l+o)+"px"};s();let u=null;const c=l?s:null;l&&(c&&window.addEventListener("resize",c),"undefined"!=typeof ResizeObserver&&(u=new ResizeObserver(s),u.observe(t)));let a=null;const f=t.parentElement;return n.pinDistance&&n.pinDistance>0&&f&&(a=document.createElement("div"),a.setAttribute("data-px-pin",""),a.style.height=100*n.pinDistance+"vh",f.insertBefore(a,t),a.appendChild(t)),()=>{c&&window.removeEventListener("resize",c),null==u||u.disconnect(),r.position=o,r.top=i,(null==a?void 0:a.parentElement)&&(a.parentElement.insertBefore(t,a),a.remove())}}function Ue(t,n,e){let r,o=n;t.resetOnFinish&&(o=a(c({},n),{onFinish:()=>{var t;null==(t=null==n?void 0:n.onFinish)||t.call(n),null==r||r.cancel()}}));const i=e(o);return r=i,t.debugGlobalName&&(window[t.debugGlobalName]=i),i}function _e(t){const n=function(t){if(!(null==t?void 0:t.doc))throw new Error("createAnimator: `doc` is required");return t.doc}(t);return function(t,n){try{return n()}catch(n){const e=function(t){return t instanceof Error?t:new Error(String(t))}(n);return ye(t,"[PxAnimator]").error(pe.internal,"createAnimator: could not build the player — "+e.message,e),{isReady:()=>!1,getRootElement:()=>null,isPlaying:()=>!1,play:()=>{},pause:()=>{},cancel:()=>{},finish:()=>{},setPlaybackRate:()=>{},getCurrentTime:()=>null,setCurrentTime:()=>{},getCurrentProgress:()=>null,setCurrentProgress:()=>{},destroy:()=>{}}}}(t,()=>function(t,n,e,r){const o=et(t)||{},i=ye(e,"[PxAnimator]");return be(o)?Ue(o,e,e=>{var l;let s=()=>{};if(o.engine!==K.js&&r){s=Re(r,o.scroll);const n=function(t,n,e){var r,o,i,l;const s=null!=e?e:ye(void 0,"[PxAnimator]");if(!n||!be(n))return null;const u=n.scroll||{},c=null!=(r=u.kind)?r:"view";if(u.smoothing)return s.warn(pe.platform,"scroll timeline: `smoothing` needs the built-in driver — using the built-in driver instead of the browser timeline"),null;const a=globalThis,f="view"===c,d=f?a.ViewTimeline:a.ScrollTimeline;if("function"!=typeof d)return null;const v=null!=(o=u.axis)?o:"block";let h;try{h=new d(f?{subject:Ve(t,u.subject,s),axis:v}:{source:"root"===u.source?Ne():Pe(t,"y")||Pe(t,"x")||Ne(),axis:v})}catch(t){return s.warn(pe.platform,"scroll timeline: native timeline construction failed — falling back to the player measuring progress itself",t),null}return{timeline:h,rangeStart:Se(null==(i=u.range)?void 0:i.start,0,f),rangeEnd:Se(null==(l=u.range)?void 0:l.end,1,f)}}(r,o,i);if(n){const i=ze(t,e,r,X(o.engine),n);if(i){const t=i.destroy.bind(i);return i.destroy=()=>{s(),t()},i}}s(),s=()=>{}}const u=(o.engine!==K.js?ze(t,e,r,X(o.engine)):null)||xe(t,n,e,r),c=(null==(l=u.getRootElement)?void 0:l.call(u))||r;if(c){s=Re(c,o.scroll);const t=("number"==typeof(null==(a=o)?void 0:a.duration)&&a.duration>0?a.duration:bn)*("number"==typeof(null==a?void 0:a.iterations)&&a.iterations>0?a.iterations:1),n=function(t,n,e,r){var o,i;if(!n||!be(n))return null;const l=null!=r?r:ye(void 0,"[PxAnimator]"),s=n.scroll||{},u=null!=(o=s.kind)?o:"view",c=Ve(t,s.subject,l),a=Pe(t,"y")||Pe(t,"x"),f="scroll"===u&&"root"===s.source?Ne():a||Ne(),d=f===Ne(),v=function(t,n){const e=null!=t?t:"block";if("x"===e||"y"===e)return e;const r=!!n&&n.startsWith("vertical");return"inline"===e?r?"y":"x":r?"x":"y"}(s.axis,getComputedStyle(f).writingMode),h=()=>{if("scroll"===u)return function(t,n,e){var r,o;const i=n>0?jn(t/n,0,1):1,l="number"==typeof(null==(r=null==e?void 0:e.start)?void 0:r.fraction)?e.start.fraction:0,s="number"==typeof(null==(o=null==e?void 0:e.end)?void 0:o.fraction)?e.end.fraction:1;return s<=l?i>=s?1:0:jn((i-l)/(s-l),0,1)}("y"===v?f.scrollTop:f.scrollLeft,"y"===v?f.scrollHeight-f.clientHeight:f.scrollWidth-f.clientWidth,s.range);const t=c.getBoundingClientRect();let n,e;if(d)n=0,e="y"===v?document.documentElement.clientHeight:document.documentElement.clientWidth;else{const t=f.getBoundingClientRect();n="y"===v?t.top:t.left,e="y"===v?f.clientHeight:f.clientWidth}return function(t,n,e,r){const o=e-t,i=Ae(null==r?void 0:r.start,0,n,e),l=Ae(null==r?void 0:r.end,1,n,e);return l<=i?o>=l?1:0:jn((o-i)/(l-i),0,1)}(("y"===v?t.top:t.left)-n,"y"===v?t.height:t.width,e,s.range)},m=Math.max(0,null!=(i=s.smoothing)?i:0)/1e3;let p=!1,y=null,b=null,g=0,A=null;const w=()=>{A=null,p||(t=>{if(!m)return void e(t);if(null===y)return y=t,void e(t);if(null!==b)return;g=0;const n=t=>{if(b=null,p)return;const r=g?Math.min(.1,(t-g)/1e3):1/60;g=t;const o=h(),i=1-Math.exp(-r/m);y+=(o-y)*i,Math.abs(o-y)<.001&&(y=o),e(y),y!==o&&(b=requestAnimationFrame(n))};b=requestAnimationFrame(n)})(h())},j=()=>{p||null!==A||(A=requestAnimationFrame(w))},x=d?window:f;let M;x.addEventListener("scroll",j,{passive:!0}),window.addEventListener("resize",j,{passive:!0}),"undefined"!=typeof ResizeObserver&&(M=new ResizeObserver(j),M.observe(c),c!==t&&M.observe(t),d||M.observe(f));const k={destroy:()=>{p||(p=!0,x.removeEventListener("scroll",j),window.removeEventListener("resize",j),null==M||M.disconnect(),null!==A&&(cancelAnimationFrame(A),A=null),null!==b&&(cancelAnimationFrame(b),b=null))},refresh:()=>{p||(y=h(),e(y))}};return k.refresh(),k}(c,o,n=>u.setCurrentTime(n*t),i);if(n){const t=u.destroy.bind(u);u.destroy=()=>{n.destroy(),s(),t()}}}else i.warn(pe.host,"scroll timeline: no root element to observe — animation will stay at frame 0");var a;return u}):Ue(o,e,e=>o.engine===K.js?xe(t,n,e,r):ze(t,e,r,X(o.engine))||xe(t,n,e,r))}(n,void 0,function(t){const{onPlay:n,onPause:e,onCancel:r,onFinish:o,onRemove:i,onStop:l,onWarn:s,onError:u,muteWarn:c,muteError:a}=null!=t?t:{},f=t=>t||l?()=>{null==t||t(),null==l||l()}:void 0;return{onPlay:n,onPause:f(e),onCancel:f(r),onFinish:f(o),onRemove:f(i),onWarn:s,onError:u,muteWarn:c,muteError:a}}(t),null))}var Ee,Fe="doc";return Ee=d,((n,r,i,s)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let i of o(r))l.call(n,i)||void 0===i||t(n,i,{get:()=>r[i],enumerable:!(s=e(r,i))||s.enumerable});return n})(t({},"__esModule",{value:!0}),Ee)})();
@@ -0,0 +1,94 @@
1
+ import { PxAnimatorAPI as PxAnimatorAPI$1, PxBasicAnimatorAPI as PxBasicAnimatorAPI$1, PxPlaybackOverrideProps, PxAnimatorCallbacks, PxAnimatedSvgDocument, PxPlatformAdapter } from '@pixodesk/svg-animator-core';
2
+
3
+ /**
4
+ * DOM specializations of the platform-neutral animator API types.
5
+ * `getRootElement()` returns a DOM `Element` on the web — these aliases keep
6
+ * the historical (pre-core-extraction) signatures for web consumers.
7
+ * @public
8
+ */
9
+ type PxBasicAnimatorAPI = PxBasicAnimatorAPI$1<Element>;
10
+ /** @public */
11
+ type PxAnimatorAPI = PxAnimatorAPI$1<Element>;
12
+
13
+ /**
14
+ * Wire keys shared by every entry point.
15
+ *
16
+ * These live here rather than in `PxAnimator.ts` on purpose: that module used to end with a
17
+ * top-level `if (typeof window !== 'undefined')` block publishing `createAnimator` /
18
+ * `loadTagAnimators` as globals. A module-level side effect cannot be tree-shaken, so
19
+ * importing ANY symbol from `PxAnimator.ts` pulled the entire full player in with it —
20
+ * which silently made the pre-rendered builds the same size as the full one until this
21
+ * constant was moved out. See PRERENDERED-PLAYER-BUILDS.md.
22
+ *
23
+ * That block is gone (API review §4) and the package now declares `"sideEffects": false`, but
24
+ * keeping these here costs nothing and removes the trap for good.
25
+ */
26
+ /**
27
+ * Key under which `createAnimator` options carry the inline animation document. The editor
28
+ * writes it into every exported SVG+JS — `createAnimator({"doc": …})` — so it is part of the
29
+ * export format, which is why it is a named constant and not a literal.
30
+ * @internal
31
+ */
32
+ declare const PX_ANIMATOR_DOC_KEY = "doc";
33
+
34
+ /**
35
+ * Everything `createAnimator` takes. The playback override (`timeline`, `resetTimeline` and the
36
+ * four shortcuts) and the callbacks are core's shared shapes — the SAME names, inline, as the
37
+ * React, Vue and React Native components take (review §9) — so only what is web-specific is
38
+ * declared here.
39
+ * @public
40
+ */
41
+ interface PxAnimatorOptions extends PxPlaybackOverrideProps, PxAnimatorCallbacks {
42
+ /** URL to fetch the animation document from. Provide either this or `doc`, not both. */
43
+ src?: string;
44
+ /** The animation document, inline (see SCHEMA.md). Provide either this or `src`, not both. */
45
+ doc?: PxAnimatedSvgDocument;
46
+ /** CSS selector or element to render the SVG into. */
47
+ container?: string | Element;
48
+ }
49
+ /**
50
+ * What the framework COMPONENTS build the player with: the public options plus the `adapter`
51
+ * that routes the frame loop's attribute writes to the elements they rendered themselves.
52
+ *
53
+ * NOT part of the public API (review §25.14). The React and Vue packages are its only callers;
54
+ * `createAnimator`'s signature says `PxAnimatorOptions` on purpose — a page has a DOM to write
55
+ * to, so for anyone else the option would only be a way to hold the player wrong. Exported as a
56
+ * type so those packages can name it; never documented as an option.
57
+ * @internal
58
+ */
59
+ interface PxInternalAnimatorOptions extends PxAnimatorOptions {
60
+ /** A custom render target for the frame-loop engine (`PxPlatformAdapter`). */
61
+ adapter?: PxPlatformAdapter;
62
+ }
63
+ /**
64
+ * Creates an animator instance to control SVG animations.
65
+ *
66
+ * @param options.src URL to fetch the animation document from.
67
+ * @param options.doc The animation document, inline.
68
+ * @param options.container CSS selector or element to render the SVG into.
69
+ * @returns A PxAnimatorAPI instance to programmatically control the animation.
70
+ * @public
71
+ */
72
+ declare function createAnimator(options: PxAnimatorOptions): PxAnimatorAPI;
73
+ /**
74
+ * Scan and load for tags, e.g.
75
+ * <div data-px-animation-src="animation.json"></div>
76
+ */
77
+ /**
78
+ * Everything `createAnimator` takes except the three the tag supplies (`src`, `container`) or
79
+ * forbids (`data`): callbacks, the diagnostics channel, a playback override and its shortcuts.
80
+ * @public
81
+ */
82
+ type PxTagAnimatorOptions = Omit<PxAnimatorOptions, 'src' | 'doc' | 'container'>;
83
+ /**
84
+ * Scan the page for `<div data-px-animation-src="animation.json">` and create one player per
85
+ * match, rendered into that element and stored on it. Safe to call repeatedly: elements that
86
+ * already carry a player are skipped.
87
+ *
88
+ * `options` applies to EVERY player this call creates (review §15) — the same callbacks, the
89
+ * same override. Omit it for the zero-config path.
90
+ * @public
91
+ */
92
+ declare function loadTagAnimators(options?: PxTagAnimatorOptions): void;
93
+
94
+ export { type PxAnimatorAPI as P, PX_ANIMATOR_DOC_KEY as a, type PxAnimatorOptions as b, type PxBasicAnimatorAPI as c, type PxInternalAnimatorOptions as d, type PxTagAnimatorOptions as e, createAnimator as f, loadTagAnimators as l };
@@ -0,0 +1,94 @@
1
+ import { PxAnimatorAPI as PxAnimatorAPI$1, PxBasicAnimatorAPI as PxBasicAnimatorAPI$1, PxPlaybackOverrideProps, PxAnimatorCallbacks, PxAnimatedSvgDocument, PxPlatformAdapter } from '@pixodesk/svg-animator-core';
2
+
3
+ /**
4
+ * DOM specializations of the platform-neutral animator API types.
5
+ * `getRootElement()` returns a DOM `Element` on the web — these aliases keep
6
+ * the historical (pre-core-extraction) signatures for web consumers.
7
+ * @public
8
+ */
9
+ type PxBasicAnimatorAPI = PxBasicAnimatorAPI$1<Element>;
10
+ /** @public */
11
+ type PxAnimatorAPI = PxAnimatorAPI$1<Element>;
12
+
13
+ /**
14
+ * Wire keys shared by every entry point.
15
+ *
16
+ * These live here rather than in `PxAnimator.ts` on purpose: that module used to end with a
17
+ * top-level `if (typeof window !== 'undefined')` block publishing `createAnimator` /
18
+ * `loadTagAnimators` as globals. A module-level side effect cannot be tree-shaken, so
19
+ * importing ANY symbol from `PxAnimator.ts` pulled the entire full player in with it —
20
+ * which silently made the pre-rendered builds the same size as the full one until this
21
+ * constant was moved out. See PRERENDERED-PLAYER-BUILDS.md.
22
+ *
23
+ * That block is gone (API review §4) and the package now declares `"sideEffects": false`, but
24
+ * keeping these here costs nothing and removes the trap for good.
25
+ */
26
+ /**
27
+ * Key under which `createAnimator` options carry the inline animation document. The editor
28
+ * writes it into every exported SVG+JS — `createAnimator({"doc": …})` — so it is part of the
29
+ * export format, which is why it is a named constant and not a literal.
30
+ * @internal
31
+ */
32
+ declare const PX_ANIMATOR_DOC_KEY = "doc";
33
+
34
+ /**
35
+ * Everything `createAnimator` takes. The playback override (`timeline`, `resetTimeline` and the
36
+ * four shortcuts) and the callbacks are core's shared shapes — the SAME names, inline, as the
37
+ * React, Vue and React Native components take (review §9) — so only what is web-specific is
38
+ * declared here.
39
+ * @public
40
+ */
41
+ interface PxAnimatorOptions extends PxPlaybackOverrideProps, PxAnimatorCallbacks {
42
+ /** URL to fetch the animation document from. Provide either this or `doc`, not both. */
43
+ src?: string;
44
+ /** The animation document, inline (see SCHEMA.md). Provide either this or `src`, not both. */
45
+ doc?: PxAnimatedSvgDocument;
46
+ /** CSS selector or element to render the SVG into. */
47
+ container?: string | Element;
48
+ }
49
+ /**
50
+ * What the framework COMPONENTS build the player with: the public options plus the `adapter`
51
+ * that routes the frame loop's attribute writes to the elements they rendered themselves.
52
+ *
53
+ * NOT part of the public API (review §25.14). The React and Vue packages are its only callers;
54
+ * `createAnimator`'s signature says `PxAnimatorOptions` on purpose — a page has a DOM to write
55
+ * to, so for anyone else the option would only be a way to hold the player wrong. Exported as a
56
+ * type so those packages can name it; never documented as an option.
57
+ * @internal
58
+ */
59
+ interface PxInternalAnimatorOptions extends PxAnimatorOptions {
60
+ /** A custom render target for the frame-loop engine (`PxPlatformAdapter`). */
61
+ adapter?: PxPlatformAdapter;
62
+ }
63
+ /**
64
+ * Creates an animator instance to control SVG animations.
65
+ *
66
+ * @param options.src URL to fetch the animation document from.
67
+ * @param options.doc The animation document, inline.
68
+ * @param options.container CSS selector or element to render the SVG into.
69
+ * @returns A PxAnimatorAPI instance to programmatically control the animation.
70
+ * @public
71
+ */
72
+ declare function createAnimator(options: PxAnimatorOptions): PxAnimatorAPI;
73
+ /**
74
+ * Scan and load for tags, e.g.
75
+ * <div data-px-animation-src="animation.json"></div>
76
+ */
77
+ /**
78
+ * Everything `createAnimator` takes except the three the tag supplies (`src`, `container`) or
79
+ * forbids (`data`): callbacks, the diagnostics channel, a playback override and its shortcuts.
80
+ * @public
81
+ */
82
+ type PxTagAnimatorOptions = Omit<PxAnimatorOptions, 'src' | 'doc' | 'container'>;
83
+ /**
84
+ * Scan the page for `<div data-px-animation-src="animation.json">` and create one player per
85
+ * match, rendered into that element and stored on it. Safe to call repeatedly: elements that
86
+ * already carry a player are skipped.
87
+ *
88
+ * `options` applies to EVERY player this call creates (review §15) — the same callbacks, the
89
+ * same override. Omit it for the zero-config path.
90
+ * @public
91
+ */
92
+ declare function loadTagAnimators(options?: PxTagAnimatorOptions): void;
93
+
94
+ export { type PxAnimatorAPI as P, PX_ANIMATOR_DOC_KEY as a, type PxAnimatorOptions as b, type PxBasicAnimatorAPI as c, type PxInternalAnimatorOptions as d, type PxTagAnimatorOptions as e, createAnimator as f, loadTagAnimators as l };
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/internal.ts
21
+ var internal_exports = {};
22
+ __export(internal_exports, {
23
+ PX_ANIMATOR_DOC_KEY: () => PX_ANIMATOR_DOC_KEY
24
+ });
25
+ module.exports = __toCommonJS(internal_exports);
26
+
27
+ // src/shared/PxAnimatorKeys.ts
28
+ var PX_ANIMATOR_DOC_KEY = "doc";
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ PX_ANIMATOR_DOC_KEY
32
+ });
33
+ //# sourceMappingURL=internal.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/internal.ts","../src/shared/PxAnimatorKeys.ts"],"sourcesContent":["/*---------------------------------------------------------------------------------------\n * Copyright (c) Pixodesk LTD.\n * Licensed under the MIT License. See the LICENSE file in the project root for details.\n *---------------------------------------------------------------------------------------*/\n\n// ============================================================================\n// @pixodesk/svg-animator-web/internal — NOT a public API.\n//\n// Everything here is `@internal`: exported so the Pixodesk editor and the sibling player\n// packages stay in lockstep with the player, and for no other reason. It may change in any\n// release, with no note and no deprecation. If you are not this repository, import from\n// `@pixodesk/svg-animator-web` instead — see API-SURFACE-REVIEW.md §4.\n//\n// These names are ALSO still on the main entry for this release, so the editor keeps working\n// against the published package until it moves across. The next release drops them from there.\n// ============================================================================\n\n// The key the editor writes into every exported SVG+JS (`createAnimator({\"doc\": …})`), so the\n// two sides cannot disagree about its spelling.\nexport { PX_ANIMATOR_DOC_KEY } from './shared/PxAnimatorKeys';\n\n// The public options plus `adapter` — what the React and Vue components build the player with.\nexport type { PxInternalAnimatorOptions } from './animator/PxAnimator';\n","/*---------------------------------------------------------------------------------------\n * Copyright (c) Pixodesk LTD.\n * Licensed under the MIT License. See the LICENSE file in the project root for details.\n *---------------------------------------------------------------------------------------*/\n\n/**\n * Wire keys shared by every entry point.\n *\n * These live here rather than in `PxAnimator.ts` on purpose: that module used to end with a\n * top-level `if (typeof window !== 'undefined')` block publishing `createAnimator` /\n * `loadTagAnimators` as globals. A module-level side effect cannot be tree-shaken, so\n * importing ANY symbol from `PxAnimator.ts` pulled the entire full player in with it —\n * which silently made the pre-rendered builds the same size as the full one until this\n * constant was moved out. See PRERENDERED-PLAYER-BUILDS.md.\n *\n * That block is gone (API review §4) and the package now declares `\"sideEffects\": false`, but\n * keeping these here costs nothing and removes the trap for good.\n */\n\n/**\n * Key under which `createAnimator` options carry the inline animation document. The editor\n * writes it into every exported SVG+JS — `createAnimator({\"doc\": …})` — so it is part of the\n * export format, which is why it is a named constant and not a literal.\n * @internal\n */\nexport const PX_ANIMATOR_DOC_KEY = 'doc';\n\n/** Key under which `createAnimator` options carry the per-instance `timeline` override. */\nexport const PX_ANIMATOR_TIMELINE_KEY = 'timeline';\n\n/** Key that makes the override start from the player's default timeline instead of the document's. */\nexport const PX_ANIMATOR_RESET_KEY = 'resetTimeline';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACyBO,IAAM,sBAAsB;","names":[]}
@@ -0,0 +1,2 @@
1
+ export { a as PX_ANIMATOR_DOC_KEY, d as PxInternalAnimatorOptions } from './internal-BmFv1B6H.cjs';
2
+ import '@pixodesk/svg-animator-core';
@@ -0,0 +1,2 @@
1
+ export { a as PX_ANIMATOR_DOC_KEY, d as PxInternalAnimatorOptions } from './internal-BmFv1B6H.js';
2
+ import '@pixodesk/svg-animator-core';
@@ -0,0 +1,7 @@
1
+ import {
2
+ PX_ANIMATOR_DOC_KEY
3
+ } from "./chunk-TNWZIIVG.js";
4
+ export {
5
+ PX_ANIMATOR_DOC_KEY
6
+ };
7
+ //# sourceMappingURL=internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1 @@
1
+ var e,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var o in t)r(e,o,{get:t[o],enumerable:!0})})(a,{PX_ANIMATOR_DOC_KEY:()=>p}),module.exports=(e=a,((e,a,p,c)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let p of o(a))n.call(e,p)||void 0===p||r(e,p,{get:()=>a[p],enumerable:!(c=t(a,p))||c.enumerable});return e})(r({},"__esModule",{value:!0}),e));var p="doc";
@@ -0,0 +1 @@
1
+ import{PX_ANIMATOR_DOC_KEY as m}from"./chunk-RK3CEIRB.min.js";export{m as PX_ANIMATOR_DOC_KEY};