@pixodesk/svg-animator-core 1.0.39 → 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.
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty,e=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=Math.pow,s=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,l=(t,e)=>{for(var n in e||(e={}))o.call(e,n)&&s(t,n,e[n]);if(r)for(var n of r(e))i.call(e,n)&&s(t,n,e[n]);return t},u=(t,r)=>e(t,n(r)),c=(t,e)=>{var n={};for(var a in t)o.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(null!=t&&r)for(var a of r(t))e.indexOf(a)<0&&i.call(t,a)&&(n[a]=t[a]);return n},f="unexpected extra key";function d(t){if(!t.length)return".";let e="";for(const n of t)n.startsWith("[")?e+=n:e+=(e?".":"")+n;return e}var h=class{_canSanitize(t){return this.isValid(t)}optional(){return new p(this)}},p=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,e,n){return null==t||this.inner.isValid(t,e,n)}_canSanitize(t){return null==t||this.inner._canSanitize(t)}},m=class extends h{constructor(t=""){super(),this._default=t}sanitize(t){return"string"==typeof t?t:this._default}isValid(t,e,n){return"string"==typeof t||(null==e||e.errors.push(d(null!=n?n:[])+": expected string, got "+typeof t),!1)}},g=class extends h{constructor(t=0){super(),this._default=t}sanitize(t){return"number"==typeof t&&isFinite(t)?t:this._default}isValid(t,e,n){return!("number"!=typeof t||!isFinite(t))||(null==e||e.errors.push(d(null!=n?n:[])+": expected finite number, got "+JSON.stringify(t)),!1)}},v=class extends h{constructor(t=!1){super(),this._default=t}sanitize(t){return"boolean"==typeof t?t:this._default}isValid(t,e,n){return"boolean"==typeof t||(null==e||e.errors.push(d(null!=n?n:[])+": expected boolean, got "+typeof t),!1)}},y=class extends h{constructor(t){super(),this.value=t,this._default=t}sanitize(t){return t===this.value?this.value:this._default}isValid(t,e,n){return t===this.value||(null==e||e.errors.push(d(null!=n?n:[])+": expected "+JSON.stringify(this.value)+", got "+JSON.stringify(t)),!1)}},b=class extends h{constructor(t,e){super(),this.values=t,this._default=null!=e?e:t[0]}sanitize(t){return this.values.includes(t)?t:this._default}isValid(t,e,n){return!!this.values.includes(t)||(null==e||e.errors.push(d(null!=n?n:[])+": expected one of "+this.values.map(t=>JSON.stringify(t)).join(" | ")+", got "+JSON.stringify(t)),!1)}},k=class extends h{constructor(t,e){super(),this.schemas=t,this._kind="union",this._default=null!=e?e:t[0]._default}sanitize(t){for(const e of this.schemas)if(e.isValid(t))return e.sanitize(t);return this._default}isValid(t,e,n){var r;const o=e&&{errors:[],warnings:[],strict:e.strict};if(this.schemas.some(e=>e.isValid(t,o,n?[...n]:void 0)))return!0;if(!e)return!1;const i=d(null!=n?n:[]);let a;e.errors.push(i+": no union member matched for value "+(null!=(r=JSON.stringify(t))?r:"").slice(0,240));let s=-1;const l=[];for(const r of this.schemas){const o={errors:[],warnings:[],strict:e.strict};if(r.isValid(t,o,n?[...n]:void 0),!o.errors.length)continue;const u=Math.max(...o.errors.map(t=>t.slice(0,t.indexOf(":")).length));if((u>s||u===s&&a&&o.errors.length<a.length)&&(s=u,a=o.errors),u<=i.length)for(const t of o.errors){const e=/: expected (.+?), got /.exec(t);e&&!l.includes(e[1])&&l.push(e[1])}}if(a&&s>i.length)for(const t of a.slice(0,4))e.errors.includes(t)||e.errors.push(t);else l.length&&e.errors.push(i+": expected "+l.join(" | "));return!1}_canSanitize(t){return this.schemas.some(e=>e._canSanitize(t))}},x=class extends h{constructor(t,e,n){var r;super(),this._key=t,this._schemas=e,this._kind="discriminatedUnion",this._default=null!=n?n:e[0]._default,this._map=new Map;for(const n of e){const e=n._shape[t];if(!e)continue;const o=null!=(r=e.inner)?r:e;this._map.set(o._default,n),e.inner&&(this._absentMember=n)}}_findSchema(t){if(null===t||"object"!=typeof t||Array.isArray(t))return;const e=t[this._key];return null==e?this._absentMember:this._map.get(e)}sanitize(t){var e;return(null!=(e=this._findSchema(t))?e:this._schemas[0]).sanitize(t)}isValid(t,e,n){const r=this._findSchema(t);if(!r){const r=null===t||"object"!=typeof t||Array.isArray(t)?void 0:t[this._key];return null==e||e.errors.push(d(null!=n?n:[])+": no discriminated union member matched "+this._key+"="+JSON.stringify(r)),!1}return r.isValid(t,e,n)}_canSanitize(t){if(null===t||"object"!=typeof t||Array.isArray(t))return!1;const e=this._findSchema(t);return e?e._canSanitize(t):this._schemas[0]._canSanitize(t)}},A=class extends h{constructor(t){super(),this._shape=t;const e={};for(const n of Object.keys(t))e[n]=t[n]._default;this._default=e}sanitize(t){const e=t&&"object"==typeof t&&!Array.isArray(t)?t:{},n={};for(const t of Object.keys(this._shape)){const r=this._shape[t].sanitize(e[t]);void 0!==r&&(n[t]=r)}return n}isValid(t,e,n){if(!t||"object"!=typeof t||Array.isArray(t))return null==e||e.errors.push(d(null!=n?n:[])+": expected object, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=t,o=null!=n?n:[];let i=!0;for(const t of Object.keys(this._shape))o.push(t),this._shape[t].isValid(r[t],e,o)||(i=!1),o.pop();if(null==e?void 0:e.strict)for(const t of Object.keys(r))t in this._shape||void 0!==r[t]&&(o.push(t),e.errors.push(d(o)+": "+f),o.pop(),i=!1);return i}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},w=class extends h{constructor(t,e){super(),this._shape=t,this._openSchema=e;const n={};for(const e of Object.keys(t))n[e]=t[e]._default;this._default=n}sanitize(t){const e=t&&"object"==typeof t&&!Array.isArray(t)?t:{},n=l({},e);for(const t of Object.keys(this._shape)){const r=this._shape[t].sanitize(e[t]);void 0!==r&&(n[t]=r)}if(this._openSchema)for(const t of Object.keys(e))t in this._shape||(n[t]=this._openSchema.sanitize(e[t]));return n}isValid(t,e,n){if(!t||"object"!=typeof t||Array.isArray(t))return null==e||e.errors.push(d(null!=n?n:[])+": expected object, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=t,o=null!=n?n:[];let i=!0;for(const t of Object.keys(this._shape))o.push(t),this._shape[t].isValid(r[t],e,o)||(i=!1),o.pop();if(this._openSchema)for(const t of Object.keys(r))t in this._shape||(o.push(t),this._openSchema.isValid(r[t],e,o)||(i=!1),o.pop());return i}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},j=class extends h{constructor(t){super(),this.item=t,this._default=[]}sanitize(t){if(!Array.isArray(t))return[];const e=[];for(const n of t)this.item._canSanitize(n)&&e.push(this.item.sanitize(n));return e}isValid(t,e,n){if(!Array.isArray(t))return null==e||e.errors.push(d(null!=n?n:[])+": expected array, got "+typeof t),!1;const r=null!=n?n:[];let o=!0;for(let n=0;n<t.length;n++)r.push("["+n+"]"),this.item.isValid(t[n],e,r)||(o=!1),r.pop();return o}_canSanitize(t){return Array.isArray(t)}},O=class extends h{constructor(t){super(),this.value=t,this._kind="record",this._default={}}sanitize(t){if(!t||"object"!=typeof t||Array.isArray(t))return{};const e={};for(const[n,r]of Object.entries(t))this.value._canSanitize(r)&&(e[n]=this.value.sanitize(r));return e}isValid(t,e,n){if(!t||"object"!=typeof t||Array.isArray(t))return null==e||e.errors.push(d(null!=n?n:[])+": expected object/record, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=null!=n?n:[];let o=!0;for(const[n,i]of Object.entries(t))r.push(n),this.value.isValid(i,e,r)||(o=!1),r.pop();return o}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},S=class extends h{constructor(){super(...arguments),this._default=void 0}sanitize(t){return t}isValid(t,e,n){return!0}_canSanitize(t){return!0}},P=class extends h{constructor(){super(...arguments),this._default=void 0}sanitize(t){return t}isValid(t,e,n){return void 0!==t||(null==e||e.errors.push(d(null!=n?n:[])+": required value is missing"),!1)}_canSanitize(t){return void 0!==t}},M=class extends h{constructor(t,e){super(),this.fn=t,this._default=e,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,e,n){return this.schema.isValid(t,e,n)}_canSanitize(t){return this.schema._canSanitize(t)}},_=class extends h{constructor(t){super(),this.schemas=t,this._kind="tuple",this._default=t.map(t=>t._default)}sanitize(t){return Array.isArray(t)&&t.length===this.schemas.length?this.schemas.map((e,n)=>e.sanitize(t[n])):this._default}isValid(t,e,n){if(!Array.isArray(t)||t.length!==this.schemas.length)return null==e||e.errors.push(d(null!=n?n:[])+": expected tuple of length "+this.schemas.length+", got "+(Array.isArray(t)?"array["+t.length+"]":typeof t)),!1;const r=null!=n?n:[];let o=!0;for(let n=0;n<this.schemas.length;n++)r.push("["+n+"]"),this.schemas[n].isValid(t[n],e,r)||(o=!1),r.pop();return o}_canSanitize(t){return Array.isArray(t)&&t.length===this.schemas.length}};function z(t){return Object.fromEntries(Object.keys(t._shape).map(t=>[t,t]))}function E(t){var e;const n=t;switch(n._kind){case"union":return{kind:"union",members:n.schemas};case"discriminatedUnion":return{kind:"discriminatedUnion",key:n._key,members:n._schemas};case"record":return{kind:"record",value:n.value};case"tuple":return{kind:"tuple",items:n.schemas}}return"_shape"in n?{kind:"shape",shape:n._shape,openValue:n._openSchema}:"item"in n?{kind:"array",item:n.item}:"inner"in n?{kind:"optional",inner:n.inner}:"fn"in n?{kind:"lazy",resolved:null!=(e=n.resolved)?e:n.resolved=n.fn()}:{kind:"leaf"}}var I,D={string:(t="")=>new m(t),number:(t=0)=>new g(t),boolean:(t=!1)=>new v(t),literal:t=>new y(t),enum:(t,e)=>new b(t,e),union:(t,e)=>new k(t,e),discriminatedUnion:(t,e)=>new x(t,e),object:t=>new A(t),openObject:(t,e)=>new w(t,e),extendedObject:(t,e)=>new A(l(l({},t._shape),e)),array:t=>new j(t),record:t=>new O(t),any:()=>new S,defined:()=>new P,tuple:t=>new _(t),lazy:(t,e)=>new M(t,e)},V="1.1",T="version",N="animator",R=(t=>(t.unstamped="unstamped",t.same="same",t.older="older",t.newer="newer",t.otherGeneration="otherGeneration",t))(R||{}),L=/^(\d+)\.(\d+)(?:\.(\d+))?$/;function U(t){if("string"!=typeof t)return;const e=L.exec(t.trim());return e?{a:Number(e[1]),b:Number(e[2]),c:void 0===e[3]?0:Number(e[3])}:void 0}function W(t){return t.a+"."+t.b+"."+t.c}var C=null!=(I=U("1.1"))?I:{a:1,b:1,c:0};function F(t){if(!t||"object"!=typeof t)return;const e=B(t,N);if(e)return e;const n=B(t,"meta");return n?B(n,N):void 0}function B(t,e){const n=t[e];return n&&"object"==typeof n&&!Array.isArray(n)?n:void 0}function G(t){const e=F(t);return e?U(e[T]):void 0}function q(t,e,n){return t?t.a!==e.a?"otherGeneration":t.b!==e.b?t.b>e.b?"newer":"older":n&&t.c!==e.c?t.c>e.c?"newer":"older":"same":"unstamped"}function Z(t,e,n,r){if(!e)return;const o=r?"player":"editor",i="written for schema "+W(e)+", this "+o+" reads "+W(n);switch(t){case"newer":return"This file is "+i+". Update the "+o+" to open it fully.";case"older":return"This file is "+i+". Saving it from this "+o+" rewrites it in the current format.";case"otherGeneration":return"This file is "+i+" — a different format generation, which no conversion bridges. Open it in a "+o+" of that generation, or accept this document without the parts named above.";default:return}}var J=(t=>(t.additive="additive",t.converted="converted",t))(J||{}),Y="1.1",K=[];function X(t,e){const n=G(t),r=q(n,e.target,e.readerReadsEditorPart);if(!n||"older"!==r)return{doc:t,from:n,relation:r,applied:[],advice:Z(r,n,e.target,!e.readerReadsEditorPart)};const o=[];for(const t of e.steps){const r=U(t.to);r&&("older"===q(n,r,e.readerReadsEditorPart)&&t.up&&o.push(t))}if(!o.length||!t||"object"!=typeof t)return{doc:t,from:n,relation:r,applied:[]};const i=H(t),a=[];for(const t of o)try{t.up(i),a.push(t)}catch(t){break}return a.length?($(i,e.target,e.readerReadsEditorPart),{doc:i,from:n,relation:r,applied:a}):{doc:t,from:n,relation:r,applied:[]}}function Q(t){return X(t,{steps:K,target:C,readerReadsEditorPart:!1})}function H(t){const e=globalThis.structuredClone;return e?e(t):JSON.parse(JSON.stringify(t))}function $(t,e,n){const r=F(t);if(!r)return;const o=U(r[T]);r[T]=W({a:e.a,b:e.b,c:n?e.c:o?o.c:0})}function tt(t,e){return function(t,e){const n=G(t);if(!n)return{ok:!1,blocking:[],reason:"The document carries no version, so there is nothing to convert down from."};const r=q(n,e.target,e.readerReadsEditorPart);if("otherGeneration"===r)return{ok:!1,blocking:[],reason:"Schema "+W(n)+" and "+W(e.target)+" are different generations; no conversion bridges them."};if("newer"!==r)return{ok:!0,doc:t,applied:[]};const o=[];for(const t of e.steps){const r=U(t.to);r&&"newer"===q(r,e.target,e.readerReadsEditorPart)&&"newer"!==q(r,n,e.readerReadsEditorPart)&&o.push(t)}o.reverse();const i=o.filter(t=>"converted"===t.kind&&!t.down);if(i.length)return{ok:!1,blocking:i,reason:"Cannot convert down to "+W(e.target)+": "+i.map(t=>t.from+" → "+t.to+" ("+t.reason+")").join("; ")+" cannot be undone."};const a=H(t),s=[];for(const t of o)if(t.down)try{t.down(a),s.push(t)}catch(e){return{ok:!1,blocking:[t],reason:"Undoing "+t.from+" → "+t.to+" failed: "+String(e)}}return $(a,e.target,e.readerReadsEditorPart),{ok:!0,doc:a,applied:s}}(t,{steps:K,target:e,readerReadsEditorPart:!1})}var et={forwards:"forwards",backwards:"backwards",both:"both",none:"none"},nt={normal:"normal",reverse:"reverse",alternate:"alternate",alternateReverse:"alternate-reverse"},rt="data-px-animation-src",ot="_px_animator",it={load:"load",mouseOver:"mouseOver",click:"click",scrollIntoView:"scrollIntoView",programmatic:"programmatic"},at={continue:"continue",pause:"pause",reset:"reset",reverse:"reverse"},st={hold:"hold",reset:"reset"},lt={view:"view",scroll:"scroll"},ut={block:"block",inline:"inline",x:"x",y:"y"},ct={nearest:"nearest",root:"root"},ft={top:"top",center:"center",bottom:"bottom"},dt={cover:"cover",contain:"contain",entry:"entry",exit:"exit",entryCrossing:"entry-crossing",exitCrossing:"exit-crossing"},ht={sampled:"sampled",offsetPath:"offsetPath"},pt=["duration","iterations","engine","frameRate"],mt=["trigger","delay","fillMode","direction"],gt=[...pt,...mt,"fill","resetOnFinish","timelineSource","scroll"],vt={native:"native",js:"js"},yt=u(l({},vt),{auto:"auto"});function bt(t){return t===yt.js?vt.js:vt.native}function kt(t){return t===yt.native}function xt(t){return t!==yt.js}var At={startOn:"load",outAction:"continue",scrollIntoViewThreshold:0},wt={static:"static",fixedTime:"fixedTime",play:"play",autoplay:"autoplay"};function jt(t){const e=void 0!==t.progress||void 0!==t.time,n=void 0!==t.play||void 0!==t.pause,r=!!t.autoplay,o=[],i=(t,e,n)=>t+" and "+e+" were both set — "+n+" wins, "+(n===t?e:t)+" is ignored.";return e?(n&&o.push(i("progress/time","play/pause","progress/time")),r&&o.push(i("progress/time","autoplay","progress/time")),{mode:wt.fixedTime,warnings:o}):n?(r&&o.push(i("play/pause","autoplay","play/pause")),{mode:wt.play,warnings:o}):r?{mode:wt.autoplay,warnings:o}:{mode:wt.static,warnings:o}}function Ot(t){return t!==wt.autoplay}function St(t){var e,n,r;return{startOn:null!=(e=null==t?void 0:t.startOn)?e:At.startOn,outAction:null!=(n=null==t?void 0:t.outAction)?n:At.outAction,scrollIntoViewThreshold:null!=(r=null==t?void 0:t.scrollIntoViewThreshold)?r:At.scrollIntoViewThreshold}}var Pt={start:"start",end:"end"},Mt={normal:"normal",alternate:"alternate"},_t={luminance:"luminance",alpha:"alpha"},zt={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},Et={translate:"translate"},It={clip:"clip",extend:"extend"},Dt={spacing:"spacing",spacingAndGlyphs:"spacingAndGlyphs"},Vt={align:"align",stretch:"stretch"},Tt={auto:"auto",exact:"exact"},Nt={separate:"separate",combined:"combined"},Rt="textContent",Lt="class",Ut="transform",Wt="offsetDistance",Ct=new Set(["type","children","animator","meta","animate","effects",Rt]),Ft={translate:"translate",rotate:"rotate",scale:"scale",origin:"origin"},Bt=[Ft.translate,Ft.rotate,Ft.scale,Ft.origin],Gt={pad:"pad",reflect:"reflect",repeat:"repeat"},qt={linear:"linear",radial:"radial"};function Zt(t){return!(!t||"object"!=typeof t||Array.isArray(t))&&"svg"===t.type}function Jt(t){var e;const n=(null==t?void 0:t.animator)||(null==(e=null==t?void 0:t.meta)?void 0:e.animator);if(!n)return;const r=Yt.get(n);if(r)return r;const o=n,i=gt.filter(t=>void 0!==o[t]),a=i.length?l({},o):n;for(const t of i)delete a[t];const s=Xt(a);return Yt.set(n,s),s}var Yt=new WeakMap,Kt=new WeakMap;function Xt(t){const e=t.timeline;if(null==e||"object"!=typeof e)return t;const n=Kt.get(t);if(n)return n;const r=t,{timeline:o}=r,i=c(r,["timeline"]);if(void 0!==e.engine&&(i.engine=e.engine),void 0!==e.frameRate&&(i.frameRate=e.frameRate),"scroll"===e.type||"view"===e.type){i.timelineSource="scroll",void 0!==e.duration&&(i.duration=e.duration),void 0!==e.iterations&&(i.iterations=e.iterations);const t=l({},i.scroll||{});t.kind=e.type,void 0!==e.axis&&(t.axis=e.axis),void 0!==e.source&&(t.source=e.source),void 0!==e.subject&&(t.subject=e.subject),void 0!==e.smoothing&&(t.smoothing=e.smoothing),void 0!==e.range&&(t.range=e.range);const n=e.pin;"boolean"==typeof n?t.pin=n:n&&"object"==typeof n&&(t.pin=!0,void 0!==n.align&&(t.pinAlign=n.align),void 0!==n.offset&&(t.pinOffset=n.offset),void 0!==n.distance&&(t.pinDistance=n.distance)),i.scroll=t}else{if(void 0!==e.duration&&(i.duration=e.duration),void 0!==e.trigger){const t=e.trigger,{finishAction:n}=t,r=c(t,["finishAction"]);Object.keys(r).length&&(i.trigger=r),void 0!==n&&(i.resetOnFinish="reset"===n)}void 0!==e.delay&&(i.delay=e.delay),void 0!==e.iterations&&(i.iterations=e.iterations),void 0!==e.direction&&(i.direction=e.direction),void 0!==e.fillMode&&(i.fill=e.fillMode)}return Kt.set(t,i),i}function Qt(t){if(!t||void 0!==t.timeline)return t;const e=t,{timelineSource:n,scroll:r,trigger:o,delay:i,iterations:a,direction:s,fill:f,resetOnFinish:d,duration:h,engine:p,frameRate:m}=e,g=c(e,["timelineSource","scroll","trigger","delay","iterations","direction","fill","resetOnFinish","duration","engine","frameRate"]);if("scroll"===n){const t={type:(v=null==r?void 0:r.kind,"scroll"===v?"scroll":"view")};if(void 0!==p&&(t.engine=p),void 0!==m&&(t.frameRate=m),void 0!==h&&(t.duration=h),"number"==typeof a&&(t.iterations=a),r){void 0!==r.axis&&(t.axis=r.axis),void 0!==r.source&&(t.source=r.source),void 0!==r.subject&&(t.subject=r.subject),void 0!==r.smoothing&&(t.smoothing=r.smoothing),void 0!==r.range&&(t.range=r.range);void 0!==r.pinAlign||void 0!==r.pinOffset||void 0!==r.pinDistance?t.pin=l(l(l({},void 0!==r.pinAlign?{align:r.pinAlign}:{}),void 0!==r.pinOffset?{offset:r.pinOffset}:{}),void 0!==r.pinDistance?{distance:r.pinDistance}:{}):void 0!==r.pin&&(t.pin=r.pin)}return u(l({},g),{timeline:t})}var v;const y={};if(void 0!==p&&(y.engine=p),void 0!==m&&(y.frameRate=m),void 0!==h&&(y.duration=h),void 0!==o||d){const t=l({},o||{});d&&(t.finishAction="reset"),y.trigger=t}return void 0!==i&&(y.delay=i),void 0!==a&&(y.iterations=a),void 0!==s&&(y.direction=s),void 0!==f&&(y.fillMode=f),Object.keys(y).length>0?u(l({},g),{timeline:y}):g}function Ht(t){var e;if(t)return null==(e=Jt(t))?void 0:e.definitions}function $t(t){var e;if(t)return null==(e=Jt(t))?void 0:e.bindings}function te(t){return null==t?void 0:t.children}var ee=D.union([D.string(),D.tuple([D.number(),D.number(),D.number(),D.number()])]),ne=D.union([D.string(),D.number(),D.array(D.number()),D.object({pathData:D.string()}),D.lazy(()=>D.array(Fe),[]),D.lazy(()=>fe,{})]),re=D.object({time:D.number().optional(),value:ne.optional(),easing:ee.optional(),tangentOut:D.tuple([D.number(),D.number()]).optional(),tangentIn:D.tuple([D.number(),D.number()]).optional()}),oe=t=>{var e,n;return null!=(n=null!=(e=t.time)?e:t.t)?n:0},ie=t=>{var e;return null!=(e=t.value)?e:t.v},ae=t=>{var e;return null!=(e=t.easing)?e:t.e},se=t=>t.tangentIn,le=t=>t.tangentOut,ue=D.object({segmentCount:D.number().optional(),repeatAt:D.enum([Pt.start,Pt.end]).optional(),direction:D.enum([Mt.normal,Mt.alternate]).optional()}),ce=D.object({value:ne.optional(),keyframes:D.array(re).optional(),loop:D.union([ue,D.boolean()]).optional(),autoOrient:D.boolean().optional(),alongPathMode:D.enum([ht.sampled,ht.offsetPath]).optional()}),fe=D.object({translate:D.tuple([D.number(),D.number()]).optional(),rotate:D.number().optional(),skew:D.number().optional(),scale:D.tuple([D.number(),D.number()]).optional(),origin:D.tuple([D.number(),D.number()]).optional()}),de=D.union([D.string(),fe,D.object({value:fe}),ce]),he=D.record(ce),pe=D.union([D.string(),D.array(D.union([D.string(),he])),he]),me=D.object({startOn:D.enum([it.load,it.mouseOver,it.click,it.scrollIntoView,it.programmatic],At.startOn).optional(),outAction:D.enum([at.continue,at.pause,at.reset,at.reverse],At.outAction).optional(),finishAction:D.enum([st.hold,st.reset]).optional(),scrollIntoViewThreshold:D.number().optional()}),ge=D.object({width:D.number(),pathData:D.string()}),ve=D.object({fontFamily:D.string(),fontStyle:D.string(),ascent:D.number(),unitsPerEm:D.number(),glyphs:D.record(ge)}),ye=D.object({easings:D.record(D.tuple([D.number(),D.number(),D.number(),D.number()])).optional(),animations:D.record(he).optional(),fonts:D.record(ve).optional()}),be=D.object({phase:D.enum([dt.cover,dt.contain,dt.entry,dt.exit,dt.entryCrossing,dt.exitCrossing]).optional(),fraction:D.number().optional()}),ke=D.object({start:be.optional(),end:be.optional()}),xe=D.object({kind:D.enum([lt.view,lt.scroll]).optional(),axis:D.enum([ut.block,ut.inline,ut.x,ut.y]).optional(),source:D.enum([ct.nearest,ct.root]).optional(),subject:D.string().optional(),smoothing:D.number().optional(),pin:D.boolean().optional(),pinAlign:D.enum([ft.top,ft.center,ft.bottom]).optional(),pinOffset:D.number().optional(),pinDistance:D.number().optional(),range:ke.optional()}),Ae=D.object({align:D.enum([ft.top,ft.center,ft.bottom]).optional(),offset:D.number().optional(),distance:D.number().optional()}),we=D.enum([yt.auto,yt.native,yt.js]).optional(),je=D.object({type:D.literal("time").optional(),engine:we,frameRate:D.number().optional(),duration:D.number().optional(),trigger:me.optional(),delay:D.number().optional(),iterations:D.union([D.number(),D.literal("infinite")]).optional(),fillMode:D.enum([et.forwards,et.backwards,et.both,et.none]).optional(),direction:D.enum([nt.normal,nt.reverse,nt.alternate,nt.alternateReverse]).optional()}),Oe={duration:D.number().optional(),iterations:D.number().optional(),engine:we,frameRate:D.number().optional(),axis:D.enum([ut.block,ut.inline,ut.x,ut.y]).optional(),source:D.enum([ct.nearest,ct.root]).optional(),subject:D.string().optional(),smoothing:D.number().optional(),pin:D.union([D.boolean(),Ae]).optional(),range:ke.optional()},Se=D.object(l({type:D.literal("scroll")},Oe)),Pe=D.object(l({type:D.literal("view")},Oe)),Me=D.discriminatedUnion("type",[je,Se,Pe]),_e=D.object({target:D.string(),animateWith:D.array(D.string())}),ze=D.object({timeline:Me.optional(),definitions:ye.optional(),bindings:D.array(_e).optional(),debugGlobalName:D.string().optional(),version:D.string().optional()}),Ee=D.union([D.string(),D.number(),D.array(D.number()),D.object({value:D.defined()}),fe]),Ie=D.union([D.number(),ce,D.object({value:D.number()})]),De=D.union([D.tuple([D.number(),D.number()]),ce,D.object({value:D.tuple([D.number(),D.number()])})]),Ve=D.union([D.string(),ce,D.object({value:D.string()})]),Te=D.object({translate:De.optional(),rotate:Ie.optional(),scale:De.optional(),skew:Ie.optional(),origin:De.optional()}),Ne=D.object({copies:D.number().optional(),translate:De.optional(),rotate:Ie.optional(),skew:Ie.optional(),scale:De.optional(),origin:De.optional()}),Re=D.object({source:D.string().optional(),maskType:D.enum([_t.luminance,_t.alpha]).optional(),maskUnits:D.enum([zt.userSpaceOnUse,zt.objectBoundingBox]).optional(),maskContentUnits:D.enum([zt.userSpaceOnUse,zt.objectBoundingBox]).optional(),x:D.number().optional(),y:D.number().optional(),width:D.number().optional(),height:D.number().optional()}),Le=D.object({pathData:Ve.optional()}),Ue=D.object({offset:Ie.optional(),range:De.optional(),subPaths:D.enum([Nt.separate,Nt.combined]).optional()}),We=D.object({start:D.number().optional(),stretch:D.number().optional(),timeCrop:D.tuple([D.number(),D.number()]).optional()}),Ce=D.object({without:D.enum([Et.translate]).optional(),source:D.string().optional(),retime:We.optional()}),Fe=D.object({offset:D.number(),color:D.string()}),Be=D.union([D.array(Fe),D.object({value:D.array(Fe)}),ce]),Ge=D.object({type:D.enum([qt.linear,qt.radial]),start:De.optional(),end:De.optional(),center:De.optional(),radius:Ie.optional(),focal:De.optional(),stops:Be.optional(),gradientUnits:D.enum([zt.userSpaceOnUse,zt.objectBoundingBox]).optional(),spreadMethod:D.enum([Gt.pad,Gt.reflect,Gt.repeat]).optional(),gradientTransform:D.string().optional()}),qe=Ge,Ze=D.object({pathData:D.string(),pathOverflow:D.enum([It.clip,It.extend]).optional(),lengthAdjust:D.enum([Dt.spacing,Dt.spacingAndGlyphs]).optional(),method:D.enum([Vt.align,Vt.stretch]).optional(),spacing:D.enum([Tt.auto,Tt.exact]).optional(),startOffset:Ie.optional(),textLength:Ie.optional()}),Je=D.object({useGlyphs:D.boolean().optional()}),Ye=D.object({transformBy:Te.optional(),repeater:Ne.optional(),maskedBy:Re.optional(),clipPath:Le.optional(),strokeTrim:Ue.optional(),clone:Ce.optional(),fillGradient:Ge.optional(),strokeGradient:qe.optional(),textPath:Ze.optional(),text:Je.optional()});function Ke(t,e){const n=[],r=(t,o)=>{if(t&&t.effects){const r={errors:[],warnings:[],strict:!!(null==e?void 0:e.strict)};if(!Ye.isValid(t.effects,r,[o+".effects"]))for(const t of r.errors)n.push(t)}t&&Array.isArray(t.children)&&t.children.forEach((t,e)=>r(t,o+".children["+e+"]"))};return r(t,"root"),n}function Xe(t,e){var n;const r=!1!==(null==e?void 0:e.strict),o={errors:[],warnings:[],strict:r},i=tn.isValid(t,o,["root"])?[]:[...o.errors];if(t&&"object"==typeof t){for(const e of Ke(t,{strict:r}))i.includes(e)||i.push(e);const e=null==(n=Jt(t))?void 0:n.definitions;for(const n of function(t,e){if(!e||!Object.keys(e).length)return[];const n=[],r=(t,o,i,a)=>{var s,l;if(!t)return;const u="string"==typeof t.fontFamily?t.fontFamily:void 0,c=null!=u?u:i,f=a||"text"===t.type&&!!(null==(l=null==(s=t.effects)?void 0:s.text)?void 0:l.useGlyphs);if(f&&u&&!Object.prototype.hasOwnProperty.call(e,u)){const t=o+': glyph-mode text uses font-family "'+u+'", which has no entry in animator.definitions.fonts';n.includes(t)||n.push(t)}Array.isArray(t.children)&&t.children.forEach((t,e)=>r(t,o+".children["+e+"]",c,f))};return r(t,"root",void 0,!1),n}(t,null==e?void 0:e.fonts))i.includes(n)||i.push(n);for(const n of function(t,e){const n=[],r=(t,o)=>{if(Array.isArray(t))return void t.forEach((t,e)=>r(t,o+"["+e+"]"));if(!t||"object"!=typeof t)return;const i=t.easing;if(!("string"!=typeof i||e&&Object.prototype.hasOwnProperty.call(e,i))){const t=o+'.easing: "'+i+'" names no entry in animator.definitions.easings — it will play linear';n.includes(t)||n.push(t)}for(const[e,n]of Object.entries(t))"easing"!==e&&n&&"object"==typeof n&&r(n,o+"."+e)};return r(t,"root"),n}(t,null==e?void 0:e.easings))i.includes(n)||i.push(n);for(const e of function(t){var e;const n=null==(e=Jt(t))?void 0:e.version;return void 0===n||void 0!==U(n)?[]:["root.animator.version: "+JSON.stringify(n)+' is not a version stamp ("a.b" or "a.b.c") — it reads as unstamped']}(t))i.includes(e)||i.push(e)}return i}var Qe=D.openObject({type:D.string(),domType:D.string().optional(),textContent:D.string().optional(),id:D.string().optional(),meta:D.any().optional(),effects:Ye.optional(),animate:pe.optional(),style:D.record(D.union([D.string(),D.number()])).optional()},Ee),He=D.openObject(u(l({},Qe._shape),{children:D.lazy(()=>D.array(He),[]).optional()}),Ee),$e=D.object({width:D.union([D.number(),D.string()]).optional(),height:D.union([D.number(),D.string()]).optional(),viewBox:D.string().optional(),animator:ze.optional()}),tn=D.openObject(u(l(l({},Qe._shape),$e._shape),{type:D.literal("svg"),children:D.array(He).optional()}),Ee),en=D.object({v:D.array(D.array(D.number())),i:D.array(D.array(D.number())).optional(),o:D.array(D.array(D.number())).optional(),c:D.boolean().optional()});function nn(t){const e=Xe(t,{strict:!1});return{valid:0===e.length,errors:e}}var rn=0;function on(){return"_px_"+Date.now().toString(36)+(++rn).toString(36)+Math.random().toString(36).substring(2,6)}function an(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>an(t));const e=t,n={};for(const t of Object.keys(e))n[t]=an(e[t]);return n}function sn(t){var e;const n=an(t),r=new Map,o=new Set(["href","xlink:href"]),i=new Set(["fill","stroke","clip-path","clipPath","mask","marker","marker-start","marker-mid","marker-end","filter","flood-color","lighting-color"]),a=new Set(["targetId","boundElementId"]),s=(t,e)=>"source"===t&&("maskedBy"===e||"clone"===e);!function t(e){if(e&&"object"==typeof e){if(e.id&&"string"==typeof e.id){const t=e.id,n=on();r.set(t,n),e.id=n}else e.animate&&(e.id=on());if(Array.isArray(e.children))for(const n of e.children)t(n)}}(n),function t(e,n){if(e&&"object"==typeof e)for(const[l,u]of Object.entries(e))if("children"!==l)if("string"==typeof u)if(o.has(l)&&u.startsWith("#")){const t=u.slice(1),n=r.get(t);n&&(e[l]="#"+n)}else if(i.has(l))e[l]=ln(u,r);else if(a.has(l)||s(l,n)){const t=u.startsWith("#"),n=r.get(t?u.slice(1):u);n&&(e[l]=t?"#"+n:n)}else u.includes("url(#")&&(e[l]=ln(u,r));else if("style"===l&&"object"==typeof u&&null!==u)for(const[t,e]of Object.entries(u))"string"==typeof e&&(u[t]=ln(e,r));else"object"==typeof u&&null!==u&&t(u,l);else if(Array.isArray(u))for(const e of u)t(e)}(n);const c=null==(e=n.animator)?void 0:e.bindings;if(Array.isArray(c)){const t=c.map(t=>{var e;const n=t.target.startsWith("#"),o=n?t.target.slice(1):t.target,i=null!=(e=r.get(o))?e:o;return u(l({},t),{target:n?"#"+i:i})});n.animator=u(l({},n.animator),{bindings:t})}return n}function ln(t,e){return t.replace(/url\(#([^)]+)\)/g,(t,n)=>{const r=e.get(n);return r?"url(#"+r+")":t})}function un(t,e=!1){var n,r,o,i;const a=t.v,s=t.i,l=t.o,u=t.c;if(!a.length)return"";const c=[],f=a.length;c.push("M"+a[0][0]+","+a[0][1]);for(let t=1;t<f;t++){const o=a[t-1],i=null!=(n=null==l?void 0:l[t-1])?n:o,u=null!=(r=null==s?void 0:s[t])?r:a[t],f=a[t];!e&&i[0]===o[0]&&i[1]===o[1]&&u[0]===f[0]&&u[1]===f[1]?c.push("L"+f[0]+","+f[1]):c.push("C"+i[0]+","+i[1]+","+u[0]+","+u[1]+","+f[0]+","+f[1])}if(u&&f>0){const t=a[f-1],n=null!=(o=null==l?void 0:l[f-1])?o:t,r=null!=(i=null==s?void 0:s[0])?i:a[0],u=a[0];!e&&n[0]===t[0]&&n[1]===t[1]&&r[0]===u[0]&&r[1]===u[1]||c.push("C"+n[0]+","+n[1]+","+r[0]+","+r[1]+","+u[0]+","+u[1]),c.push("z")}return c.join("")}function cn(t,e,n){return t+(e-t)*n}function fn(t,e,n){const r=[],o=Math.max(t.length,e.length);for(let i=0;i<o;i++)r[i]=cn(t[i]||0,e[i]||0,n);return r}function dn(t,e,n){return[cn(t[0]||0,e[0]||0,n),cn(t[1]||0,e[1]||0,n),cn(t[2]||0,e[2]||0,n),cn(void 0===t[3]?1:t[3],void 0===e[3]?1:e[3],n)]}function hn(t,e,n){const r=Math.max(t.length,e.length),o=[];for(let i=0;i<r;i++)o.push(pn(t[i],e[i],n));return o}function pn(t,e,n){var r,o,i,a,s,l,u,c,f;if(!t||!e)return t||e||{v:[]};const d=Math.min(Math.max(n,0),1),h=Math.min(t.v.length,e.v.length),p=[],m=[],g=[];for(let n=0;n<h;n++){const f=t.v[n],h=e.v[n];p.push(fn(f,h,d));const v=null!=(o=null==(r=t.i)?void 0:r[n])?o:f,y=null!=(a=null==(i=e.i)?void 0:i[n])?a:h;m.push(fn(v,y,d));const b=null!=(l=null==(s=t.o)?void 0:s[n])?l:f,k=null!=(c=null==(u=e.o)?void 0:u[n])?c:h;g.push(fn(b,k,d))}return{v:p,i:m.length?m:void 0,o:g.length?g:void 0,c:null!=(f=t.c)?f:e.c}}function mn(t,e,n){if(n<=0)return 0;if(n>=1)return 1;const r=3*t,o=3*(e-t)-r,i=1-r-o;function a(t){return((i*t+o)*t+r)*t}function s(t){return(3*i*t+2*o)*t+r}let l=n,u=0,c=1;for(let t=0;t<8;t++){const t=a(l)-n;if(Math.abs(t)<1e-6)return l;const e=s(l);if(Math.abs(e)<1e-6)break;l-=t/e}for(l=n;u<c;){const t=a(l);if(Math.abs(t-n)<1e-6)return l;n>t?u=l:c=l,l=(c+u)/2}return l}function gn(t){const[e,n,r,o]=t,i=3*n,a=3*(o-n)-i,s=1-i-a;return function(t){return n=mn(e,r,t),((s*n+a)*n+i)*n;var n}}function vn(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function yn(t,e,n,r,o){const i=vn(t,e,o),a=vn(e,n,o),s=vn(n,r,o),l=vn(i,a,o),u=vn(a,s,o),c=vn(l,u,o);return{left:[t,i,l,c],right:[c,u,s,r]}}function bn(t,e){if(!t)return{left:void 0,right:void 0};if(e<=0)return{left:void 0,right:t};if(e>=1)return{left:t,right:void 0};const[n,r,o,i]=t,a=mn(n,o,e),s=[n,r],l=[o,i],{left:u,right:c}=yn([0,0],s,l,[1,1],a),f=u[3][0],d=u[3][1];let h,p;f>1e-9&&Math.abs(d)>1e-9&&(h=[u[1][0]/f,u[1][1]/d,u[2][0]/f,u[2][1]/d]);const m=1-f,g=1-d;return m>1e-9&&Math.abs(g)>1e-9&&(p=[(c[1][0]-f)/m,(c[1][1]-d)/g,(c[2][0]-f)/m,(c[2][1]-d)/g]),{left:h,right:p}}function kn(t){if(t)return[1-t[2],1-t[3],1-t[0],1-t[1]]}function xn(t){const e=Math.round(255*t[0]),n=Math.round(255*t[1]),r=Math.round(255*t[2]);return 4===t.length?"rgba("+e+","+n+","+r+","+t[3]+")":"rgb("+e+","+n+","+r+")"}function An(t){if(t){if(Array.isArray(t))return t;if("string"==typeof t)return t.startsWith("#")?function(t){const e=t.slice(1),n=e.length<=4,r=n?e[0]+e[0]:e.slice(0,2),o=n?e[1]+e[1]:e.slice(2,4),i=n?e[2]+e[2]:e.slice(4,6),a=4===e.length?e[3]+e[3]:8===e.length?e.slice(6,8):null,s=[parseInt(r,16)/255,parseInt(o,16)/255,parseInt(i,16)/255];return null!==a&&s.push(parseInt(a,16)/255),s}(t):t.startsWith("rgb")?function(t){var e;const n=null==(e=t.match(/rgba?\((.*)\)/))?void 0:e[1];if(!n)throw new Error("Invalid rgb/rgba format");const r=n.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)}}var wn=new Set(["color","fill","flood-color","lighting-color","stop-color","stroke"]),jn=new Set(["translate","rotate","scale","skew"]),On=new Set(["offset-distance","offsetDistance"]);function Sn(t,e){var n;if(!t)return"";const r=null==(n=null==e?void 0:e.withUnits)||n,o=[],i=t.translate,a=t.origin,s=t.rotate,l=t.skew,u=t.scale,c=r?"px":"",f=r?"deg":"";return i&&o.push("translate("+i[0]+c+","+i[1]+c+")"),a&&o.push("translate("+a[0]+c+","+a[1]+c+")"),null!=s&&o.push("rotate("+s+f+")"),null!=l&&o.push("skewX("+l+f+")"),u&&o.push("scale("+u[0]+","+u[1]+")"),a&&o.push("translate("+-a[0]+c+","+-a[1]+c+")"),o.join("")}var Pn=new Set(["offset-distance","offsetDistance"]),Mn=1e3;function _n(t){return t.includes("-")?t.replace(/-([a-z])/g,(t,e)=>e.toUpperCase()):t}function zn(t){return!t.includes("-")&&/[a-z][A-Z]/.test(t)}var En=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 In(t){return En.has(t)?t:t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Dn(t,e,n){return Math.max(e,Math.min(t,n))}function Vn(t,e,n,r,o){if(o<=0)return[t[0],t[1]];if(o>=1)return[r[0],r[1]];const i=1-o,a=i*i,s=o*o,l=a*i,u=3*o*a,c=3*s*i,f=s*o;return[l*t[0]+u*e[0]+c*n[0]+f*r[0],l*t[1]+u*e[1]+c*n[1]+f*r[1]]}var Tn=1e-4;function Nn(t,e,n,r,o){const i=Rn(t,e,n,r,o);if(0===i[0]&&0===i[1]){return Rn(t,e,n,r,o<.5?o+Tn:o-Tn)}return i}function Rn(t,e,n,r,o){const i=1-o,a=3*i*i,s=6*o*i,l=3*o*o;return[a*(e[0]-t[0])+s*(n[0]-e[0])+l*(r[0]-n[0]),a*(e[1]-t[1])+s*(n[1]-e[1])+l*(r[1]-n[1])]}function Ln(t,e,n,r,o=100){const i=o+1,a=new Float64Array(i),s=new Float64Array(i);let l=Vn(t,e,n,r,0);a[0]=0,s[0]=0;let u=0;for(let c=1;c<i;c++){const i=c/o,f=Vn(t,e,n,r,i),d=f[0]-l[0],h=f[1]-l[1];u+=Math.sqrt(d*d+h*h),a[c]=i,s[c]=u,l=f}return{ts:a,ds:s}}function Un(t,e){const{ts:n,ds:r}=t,o=n.length-1;if(e<=n[0])return r[0];if(e>=n[o])return r[o];let i=1,a=o;for(;i<a;){const t=i+a>>>1;n[t]<e?i=t+1:a=t}const s=n[a-1],l=n[a]-s,u=l>0?(e-s)/l:0;return r[a-1]+u*(r[a]-r[a-1])}var Wn=new Set(["script","foreignobject"]),Cn=new Set(["href","xlink:href","src","filter","clippath","mask","markerstart","markermid","markerend"]),Fn=new Set(["href","xlink:href","src"]),Bn=new Set(["mixBlendMode","isolation"]),Gn=/^data:image\/(?:png|jpe?g|gif|webp|bmp);base64,/i,qn=/^data:image\/svg\+xml(?:;[^,]*)?,/i,Zn=/^data:image\/[^;,]*;base64,([A-Za-z0-9+/]{8})/i,Jn=["iVBORw0K","/9j/","R0lGOD","UklGR","Qk"];function Yn(t,e){const n=t.toLowerCase();if(!function(t){return!!t.startsWith("on")}(n)){if("fill"===n||"stroke"===n||"stopcolor"===n){const t=String(e);return t.includes("url(")&&!/^url\(#[^)]+\)$/.test(t)?void console.warn('Attribute "'+n+'" blocked: url() must be internal url(#id), got:',e):e}if(Cn.has(n)){const t=String(e);return t.startsWith("#")||(/^url\(#[^)]+\)$/.test(t)||Fn.has(n)&&(Gn.test(t)||qn.test(t)||function(t){const e=Zn.exec(t);return!!e&&Jn.some(t=>e[1].startsWith(t))}(t)))?e:void console.warn('Attribute "'+n+'" blocked: must be #id, url(#id), or data:image/… URI, got:',e)}return e}console.warn("Attribute blocked (event handler / dangerous): ",n)}function Kn(t){const e={};for(const n of Object.keys(t)){const r=_n(n);if(Ct.has(r))continue;if("style"===r)continue;let o=t[n];if(wn.has(r)&&Array.isArray(o))e[r]=xn(o);else if("transform"!==r||null===o||"object"!=typeof o||Array.isArray(o)||o.keyframes)jn.has(r)?(Array.isArray(o)&&("translate"===r&&(o=o.map(t=>t+"px")),o=o.join(",")),"rotate"===r&&(o+="deg"),e[Ut]=r+"("+o+")"):Array.isArray(o)?e[r]=o.join(","):null!=o&&(e[r]=String(o));else{const t=o.value&&"object"==typeof o.value?o.value:o;e[Ut]=Sn(t,{withUnits:!1})}}return e}function Xn(t){const e=ie(t);if(!e)return;if(Array.isArray(e)&&e.length>=2&&"number"==typeof e[0]&&"number"==typeof e[1])return[e[0],e[1]];const n=e.translate;return Array.isArray(n)&&n.length>=2?[n[0],n[1]]:void 0}function Qn(t){return oe(t)}function Hn(t){return ae(t)}function $n(t){const e=t.keyframes;if(!Array.isArray(e))return!1;if(t.autoOrient)return!0;for(const t of e)if(se(t)||le(t))return!0;return!1}var tr=new WeakMap;function er(t,e,n,r){let o=tr.get(t);const i=null==o?void 0:o.get(e);if(i)return i;const a=le(t),s=se(e),l=[n[0]+(a?a[0]:0),n[1]+(a?a[1]:0)],u=[r[0]+(s?s[0]:0),r[1]+(s?s[1]:0)],c=Ln(n,l,u,r),f={P0:n,P1:l,P2:u,P3:r,lut:c,totalArc:c.ds[c.ds.length-1]};return o||(o=new WeakMap,tr.set(t,o)),o.set(e,f),f}function nr(t,e){var n,r,o;if(!$n(t))return t;const i=t.keyframes;if(!Array.isArray(i)||i.length<2)return t;const a=!!t.autoOrient,s=null!=(n=null==e?void 0:e.flatnessTolerance)?n:.5,l=null!=(r=null==e?void 0:e.rotationTolerance)?r:5,u=null!=(o=null==e?void 0:e.maxSamplesPerSegment)?o:32,c=[],f=Xn(i[0]);if(!f)return t;const d=a?function(t,e){const n=Xn(t),r=Xn(e);if(!n||!r)return 0;const o=er(t,e,n,r),i=Nn(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;c.push(or(Qn(i[0]),sr(ir(i[0]),ir(i[0]),0,f,d,a)));for(let t=0;t<i.length-1;t++){const e=i[t],n=i[t+1],r=Xn(e),o=Xn(n);r&&o?(a&&t>0&&ur(c,e,n,r,o,l),fr(c,e,n,r,o,a,s,l,u)):c.push(or(Qn(n),sr(ir(n),ir(n),1,null!=o?o:[0,0],void 0,a)))}const h=Hn(i[i.length-1]);h&&(c[c.length-1].e=h),a&&rr(c);const p={keyframes:c};return void 0!==t.loop&&(p.loop=t.loop),p}function rr(t){let e;for(const n of t){const t=ie(n);if(!t||"number"!=typeof t.rotate)continue;if(void 0===e){e=t.rotate;continue}let r=t.rotate;for(;r-e>180;)r-=360;for(;r-e<-180;)r+=360;t.rotate=r,e=r}}function or(t,e){return{t:t,v:e}}function ir(t){const e=ie(t);if(e&&"object"==typeof e&&!Array.isArray(e))return e}function ar(t,e,n){if(void 0===t)return e;if(void 0===e)return t;if("number"==typeof t&&"number"==typeof e)return t+(e-t)*n;if(Array.isArray(t)&&Array.isArray(e)&&t.length===e.length){const r=new Array(t.length);for(let o=0;o<t.length;o++){const i="number"==typeof t[o]?t[o]:0,a="number"==typeof e[o]?e[o]:0;r[o]=i+(a-i)*n}return r}return n<.5?t:e}function sr(t,e,n,r,o,i){const a={translate:r},s=new Set;if(t)for(const e of Object.keys(t))s.add(e);if(e)for(const t of Object.keys(e))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==e?void 0:e[r];void 0===o&&void 0===s||(a[r]=ar(o,s,n))}return void 0!==o&&(a.rotate=o+lr(t,e,n)),a}function lr(t,e,n){const r="number"==typeof(null==t?void 0:t.rotate)?t.rotate:void 0,o="number"==typeof(null==e?void 0:e.rotate)?e.rotate:void 0;if(void 0===r&&void 0===o)return 0;const i=ar(r,o,n);return"number"==typeof i?i:0}function ur(t,e,n,r,o,i){const a=t[t.length-1],s=ie(a),l=null==s?void 0:s.rotate;if("number"!=typeof l)return;const u=ir(e),c=l-lr(u,u,0),f=er(e,n,r,o),d=Nn(f.P0,f.P1,f.P2,f.P3,0),h=180*Math.atan2(d[1],d[0])/Math.PI,p=function(t,e){let n=t-e;for(;n>180;)n-=360;for(;n<-180;)n+=360;return n}(h,c);if(Math.abs(p)<=i)return;const m=Qn(e),g=Math.min(m+cr,(m+Qn(n))/2),v=sr(ir(e),ir(e),0,r,h,!0);t.push(or(g,v))}var cr=.05;function fr(t,e,n,r,o,i,a,s,l){const u=er(e,n,r,o),c=Qn(e),f=Qn(n),d=Hn(e),h=(p=d)?gn([p[1],p[0],p[3],p[2]]):t=>t;var p;const m=ir(e),g=ir(n),v=function(t,e,n,r,o){const i=[];dr(t.P0[0],t.P1[0],t.P2[0],t.P3[0],i),dr(t.P0[1],t.P1[1],t.P2[1],t.P3[1],i),i.sort((t,e)=>t-e);const a=[0];for(const t of i)t>a[a.length-1]+1e-6&&t<.999999&&a.push(t);a.push(1);const s=[],l={remaining:o-a.length};for(let o=0;o<a.length-1;o++)hr(a[o],a[o+1],s,t,e,n,r,l);return s}(u,i,a,s,l),y=[];for(const t of v){const e=Un(u.lut,t),n=Dn(u.totalArc>0?e/u.totalArc:t,0,1),r={u:Dn(h(n),0,1),p:n,pos:Vn(u.P0,u.P1,u.P2,u.P3,t)};if(i){const e=Nn(u.P0,u.P1,u.P2,u.P3,t);r.rotateDeg=180*Math.atan2(e[1],e[0])/Math.PI}y.push(r)}let b=d,k=0;const x=t.length-1;for(let e=0;e<y.length;e++){const n=y[e],r=k<1?Dn((n.u-k)/(1-k),0,1):1,{left:o,right:a}=bn(b,r),s=0===e?x:t.length-1;o?t[s].e=o:delete t[s].e;const l=c+n.u*(f-c),u=sr(m,g,n.p,n.pos,n.rotateDeg,i);t.push(or(l,u)),b=a,k=n.u}}function dr(t,e,n,r,o){const i=e-t,a=n-e,s=i-2*a+(r-n),l=2*(a-i),u=i;if(Math.abs(s)<1e-10){if(Math.abs(l)>1e-10){const t=-u/l;t>1e-6&&t<.999999&&o.push(t)}return}const c=l*l-4*s*u;if(c<0)return;const f=Math.sqrt(c),d=(-l-f)/(2*s),h=(-l+f)/(2*s);d>1e-6&&d<.999999&&o.push(d),h>1e-6&&h<.999999&&o.push(h)}function hr(t,e,n,r,o,i,a,s){const l=(t+e)/2,u=Vn(r.P0,r.P1,r.P2,r.P3,t),c=Vn(r.P0,r.P1,r.P2,r.P3,e),f=e-t,d=Vn(r.P0,r.P1,r.P2,r.P3,t+.25*f),h=Vn(r.P0,r.P1,r.P2,r.P3,l),p=Vn(r.P0,r.P1,r.P2,r.P3,t+.75*f),m=Math.max(pr(d,u,c),pr(h,u,c),pr(p,u,c));let g=!0;if(o){const n=Nn(r.P0,r.P1,r.P2,r.P3,t),o=Nn(r.P0,r.P1,r.P2,r.P3,e),i=180*Math.atan2(n[1],n[0])/Math.PI,s=180*Math.atan2(o[1],o[0])/Math.PI;let l=Math.abs(i-s);l>180&&(l=360-l),l>a&&(g=!1)}m<=i&&g||s.remaining<=0||f<1e-6?n.push(e):(s.remaining-=1,hr(t,l,n,r,o,i,a,s),hr(l,e,n,r,o,i,a,s))}function pr(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],i=r*r+o*o;if(i<1e-20){const n=t[0]-e[0],r=t[1]-e[1];return Math.sqrt(n*n+r*r)}const a=(t[0]-e[0])*o-(t[1]-e[1])*r;return Math.abs(a)/Math.sqrt(i)}function mr(t,e){const n=gr(t,e);return null!=n?n:t}function gr(t,e){let n,r;if(t.children)for(let r=0;r<t.children.length;r++){const o=gr(t.children[r],e);null!==o&&(n||(n=t.children.slice()),n[r]=o)}const o=t.animate;if(o&&"object"==typeof o&&!Array.isArray(o)){const t=o,n=t.transform;if(n&&"object"==typeof n&&$n(n)){const o=nr(n,e);o!==n&&(r=u(l({},t),{transform:o}))}}if(!n&&!r)return null;const i=l({},t);return n&&(i.children=n),r&&(i.animate=r),i}var vr=1;function yr(t,e){if(t===e)return!0;if(typeof t!=typeof e||null===t||null===e||"object"!=typeof t)return!1;if(Array.isArray(t)!==Array.isArray(e))return!1;const n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(n=>yr(t[n],e[n]))}function br(t){const e=[];let n;const r=function(t){const e=t.split(/([MLCZmlcz]|[\s,]+)/).map(t=>t.trim()).filter(t=>t&&","!==t),n=[];let r=null;for(const t of e)if(/[MLCZmlcz]/.test(t))r={type:t,values:[]},n.push(r);else if(r){const e=+t;r.values.push(Number.isNaN(e)?0:e)}return n}(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;n={v:[[t,r]],i:[[t,r]],o:[[t,r]],c:!1},e.push(n);continue}if(n||(n={v:[[0,0]],i:[[0,0]],o:[[0,0]],c:!1},e.push(n)),"L"===r){const t=o[0]||0,e=o[1]||0;n.v.push([t,e]),n.i.push([t,e]),n.o.push([t,e])}else if("C"===r){const t=o[0]||0,e=o[1]||0,r=o[2]||0,i=o[3]||0,a=o[4]||0,s=o[5]||0;n.o[n.o.length-1]=[t,e],n.v.push([a,s]),n.i.push([r,i]),n.o.push([a,s])}else"Z"===r||"z"===r?n.c=!0:console.warn('Unsupported path command "'+r+'"')}return e}function kr(t){return t.startsWith("path(")&&t.endsWith(")")?t.slice(5,-1):/^[MmZzLlHhVvCcSsQqTtAa]/.test(t)?t:void 0}function xr(t){return"string"==typeof t&&void 0!==kr(t)}function Ar(t){if(t&&"object"==typeof t&&"string"==typeof t.pathData){const e=kr(t.pathData);return e?{paths:br(e)}:t}if(t&&"object"==typeof t&&"paths"in t){const e=t.paths;if(Array.isArray(e)&&e.length>0&&xr(e[0])){const t=[];for(const n of e){const e=kr(n);e&&t.push(...br(e))}return{paths:t}}return t}if(Array.isArray(t)){if(t.length>0&&xr(t[0])){const e=[];for(const n of t){const t=kr(n);t&&e.push(...br(t))}return{paths:e}}return{paths:t}}if(xr(t)){return{paths:br(kr(t))}}return t}function wr(t,e){var n;if(t)return Array.isArray(t)?t:(null==(n=null==e?void 0:e.easings)?void 0:n[t])?e.easings[t]:void console.warn("Unknown easing name: "+t)}function jr(t,e){var n;if("string"==typeof t){const r=null==(n=null==e?void 0:e.animations)?void 0:n[t];return r||console.warn("Unknown animation name: "+t),r}return t}function Or(t,e,n,r){var o,i;if("d"===t){return{paths:hn(null!=(o=null==e?void 0:e.paths)?o:Array.isArray(e)?e:[],null!=(i=null==n?void 0:n.paths)?i:Array.isArray(n)?n:[],r)}}return wn.has(t)?dn(e||[0,0,0,1],n||[0,0,0,1],r):"transform"!==t||"object"!=typeof e||null===e||Array.isArray(e)||"object"!=typeof n||null===n||Array.isArray(n)?"rotate"===t&&"number"==typeof e&&"number"==typeof n?cn(e,n,r):jn.has(t)||"stroke-dasharray"===t||"strokeDasharray"===t?fn(e||[],n||[],r):cn(+(e||0),+(n||0),r):function(t,e,n){const r=new Set([...Object.keys(null!=t?t:{}),...Object.keys(null!=e?e:{})]),o={};for(const i of r){const r=null==t?void 0:t[i],a=null==e?void 0:e[i];if("rotate"===i||"skew"===i)o[i]=cn(+(null!=r?r:0),+(null!=a?a:0),n);else if("translate"===i||"scale"===i||"origin"===i){const t="scale"===i?[1,1]:[0,0];o[i]=fn(r||t,a||t,n)}else o[i]=null!=a?a:r}return o}(e,n,r)}function Sr(t,e,n,r){var o,i,a,s,c;const f=e.length-1,d=Dn(null!=(o=n.segmentCount)?o:f,1,f);let h;h=n.repeatAt===Pt.start?e.slice(0,d+1):e.slice(f-d);const p=null!=(i=e[0].t)?i:0,m=null!=(a=e[e.length-1].t)?a:0;let g,v;n.repeatAt===Pt.start?(g=0,v=p):(g=m,v=r);const y=v-g;if(y<=0)return e;const b=null!=(s=h[0].t)?s:0,k=(null!=(c=h[h.length-1].t)?c:0)-b;if(k<=0)return e;const x=h.map(t=>({relT:(t.t-b)/k,v:t.v,e:t.e,tangentIn:se(t),tangentOut:le(t)})),A=Math.floor(y/k),w=y-A*k,j=w/k,O=[],S=n.repeatAt!==Pt.start,P=e[e.length-1];let M,_=!1;function z(e,n,r){var o;let i;if(n){i=[];for(let t=x.length-1;t>=0;t--)i.push({relT:1-x[t].relT,v:x[t].v,e:t>0?kn(x[t-1].e):void 0,tangentIn:x[t].tangentOut,tangentOut:x[t].tangentIn})}else i=x;const a=void 0!==r?r:1;for(let n=0;n<i.length;n++){const r=i[n];if(r.relT>a+1e-9){const o=i[n-1],s=r.relT-o.relT,l=(a-o.relT)/s,u=o.e?gn(o.e)(l):l,c=Or(t,o.v,r.v,u),{left:f}=bn(o.e,l);return O.length>0&&o.relT<=a&&(O[O.length-1].e=f),void O.push({t:e+a*k,v:c,e:void 0})}const s=O.length>0?O[O.length-1]:P,l=S&&0===n&&void 0!==s&&Math.abs((null!=(o=s.t)?o:0)-(e+r.relT*k))<1e-9;if(l){if(yr(s.v,r.v)){O.length>0?(s.e=r.e,s.tangentOut=r.tangentOut):(M=r.e,_=!0);continue}O.length>0&&(delete s.tangentIn,delete s.tangentOut)}const u={t:e+r.relT*k+(l?1:0),v:r.v,e:n<i.length-1?r.e:void 0};r.tangentIn&&(u.tangentIn=r.tangentIn),r.tangentOut&&(u.tangentOut=r.tangentOut),O.push(u)}}if(n.repeatAt===Pt.start){if(j>1e-9){!function(e,n,r){let o;if(n){o=[];for(let t=x.length-1;t>=0;t--)o.push({relT:1-x[t].relT,v:x[t].v,e:t>0?kn(x[t-1].e):void 0,tangentIn:x[t].tangentOut,tangentOut:x[t].tangentIn})}else o=x;const i=1-r;for(let n=0;n<o.length;n++){const r=o[n];if(r.relT<i-1e-9)continue;const a=o[n-1];if(a&&a.relT<i-1e-9&&r.relT>i+1e-9){const n=r.relT-a.relT,o=(i-a.relT)/n,s=a.e?gn(a.e)(o):o,l=Or(t,a.v,r.v,s),{right:u}=bn(a.e,o);O.push({t:e,v:l,e:u})}const s={t:e+(r.relT-i)*k,v:r.v,e:n<o.length-1?r.e:void 0};r.tangentIn&&(s.tangentIn=r.tangentIn),r.tangentOut&&(s.tangentOut=r.tangentOut),O.push(s)}}(g,n.direction===Mt.alternate&&A%2==0,j)}for(let t=0;t<A;t++){const e=A-1-t,r=n.direction===Mt.alternate&&e%2==0;z(g+w+t*k,r)}}else{for(let t=0;t<A;t++){const e=n.direction===Mt.alternate&&t%2==0;z(g+t*k,e)}if(j>1e-9){const t=n.direction===Mt.alternate&&A%2==0;z(g+A*k,t,j)}}if(n.repeatAt===Pt.start)return[...O,...e];if(_&&e.length>0){return[...e.slice(0,-1),u(l({},e[e.length-1]),{e:M}),...O]}return[...e,...O]}function Pr(t,e,n,r){var o;const i=e.keyframes||[],a=[];for(const e of i){const n=oe(e);let i=ie(e);const s=ae(e);"d"===t&&(i=Ar(i));const l=zn(t)?In(t):t;wn.has(l)&&(i=null!=(o=An(i))?o:i);const u={t:n,v:i,e:wr(s,r)},c=se(e),f=le(e);c&&(u.tangentIn=c),f&&(u.tangentOut=f),a.push(u)}a.sort((t,e)=>{var n,r;return(null!=(n=t.t)?n:0)-(null!=(r=e.t)?r:0)});const s=e.loop,l=!0===s?{}:s||void 0;return l&&a.length>=2?Sr(t,a,l,n):a}function Mr(t,e,n){const r=e.loop;if(null==r||!1===r)return e;const o=!0===r?{}:r,i=e.keyframes;if(!Array.isArray(i)||i.length<2)return e;const a=zn(t)?In(t):t,s=wn.has(a),l=i.map(e=>{var n;const r=oe(e);let o=ie(e);"d"===t&&(o=Ar(o)),s&&(o=null!=(n=An(o))?n:o);const i={t:r,v:o,e:ae(e)},a=se(e),l=le(e);return a&&(i.tangentIn=a),l&&(i.tangentOut=l),i}),u={keyframes:Sr(t,l,o,n)};return void 0!==e.autoOrient&&(u.autoOrient=e.autoOrient),u}function _r(t,e){const n=zr(t,e);return null!=n?n:t}function zr(t,e){let n,r;if(t.children)for(let r=0;r<t.children.length;r++){const o=zr(t.children[r],e);null!==o&&(n||(n=t.children.slice()),n[r]=o)}const o=t.animate;if(o&&"object"==typeof o&&!Array.isArray(o)){const t=o;for(const n of Object.keys(t)){const o=t[n],i=Mr(n,o,e);i!==o&&(r||(r=l({},t)),r[n]=i)}}if(!n&&!r)return null;const i=l({},t);return n&&(i.children=n),r&&(i.animate=r),i}var Er=0;function Ir(t,e){if(!t)return t;const n=e&&"object"==typeof e&&!Array.isArray(e)?e:function(t){var e,n;if(!t||"string"!=typeof t)return;const r={},o=/([a-zA-Z]+)\s*\(([^)]*)\)/g,i=["translate","rotate","skewX","scale"];let a,s=-1;for(;null!==(a=o.exec(t));){const t=a[1],o=i.indexOf(t);if(o<0||o<=s)return;s=o;const l=a[2].split(/[\s,]+/).filter(Boolean).map(Number);if(l.some(t=>Number.isNaN(t)))return;if("translate"===t){if(l.length<1||l.length>2)return;r.translate=[l[0],null!=(e=l[1])?e:0]}else if("rotate"===t){if(1!==l.length)return;r.rotate=l[0]}else if("skewX"===t){if(1!==l.length)return;r.skew=l[0]}else{if(l.length<1||l.length>2)return;r.scale=[l[0],null!=(n=l[1])?n:l[0]]}}return t.replace(/([a-zA-Z]+)\s*\(([^)]*)\)/g,"").replace(/[\s,]/g,"").length?void 0:Object.keys(r).length?r:void 0}(e);if(!n||!Object.keys(n).length)return t;const r=t=>t&&"object"==typeof t&&!Array.isArray(t)?l(l({},n),t):t,o=t[Ut];if(o&&"object"==typeof o){const e=o;if(Array.isArray(e.keyframes)){const n=u(l({},e),{keyframes:e.keyframes.map(t=>u(l({},t),{value:r(t.value)}))});return void 0!==n.value&&(n.value=r(n.value)),u(l({},t),{transform:n})}return t}const i=Object.keys(t).filter(t=>jn.has(t));if(1!==i.length)return t;const a=i[0],s=t[a];if(!s||"object"!=typeof s||!Array.isArray(s.keyframes))return t;const c=u(l({},s),{keyframes:s.keyframes.map(t=>u(l({},t),{value:u(l({},n),{[a]:t.value})}))});void 0!==c.value&&(c.value=u(l({},n),{[a]:c.value}));const f=l({},t);return delete f[a],u(l({},f),{transform:c})}function Dr(t,e=vt.native){const n=Jt(t)||{},r=Ht(t),o=n.duration||1e3,i=[],a=(t,n,i)=>{if(0===n.length)return null;const a=function(t,e,n,r=vt.native){const o={};for(const[i,a]of Object.entries(t)){if("transform"===i&&"offsetPath"===a.alongPathMode&&void 0!==t.offsetDistance)continue;const s=Pr(i,a,e,n);if(s.length>0){const t={keyframes:s};void 0!==a.autoOrient&&(t.autoOrient=a.autoOrient),void 0!==a.loop&&(t.loop=a.loop),o[i]=r===vt.native&&"transform"===i?nr(t):t}}return o}(Ir(function(t){const e={};for(const n of t)for(const[t,r]of Object.entries(n))e[t]=r;return e}(n),i),o,r,e);return 0===Object.keys(a).length?null:{id:t,animate:a}},s=$t(t);if(s)for(const t of s){const e=t.target.startsWith("#")?t.target.slice(1):t.target,n=t.animateWith.map(t=>jr(t,r)).filter(t=>!!t),o=a(e,n);o&&i.push(o)}const l=t=>{const e=t.animate;if(e&&Object.keys(e).length>0){const n=t.id||"_px_el_"+ ++Er;t.id=n;const o=a(n,function(t,e){if(!t)return[];const n=[];if("string"==typeof t){const r=jr(t,e);r&&n.push(r)}else if(Array.isArray(t))for(const r of t){const t=jr(r,e);t&&n.push(t)}else n.push(t);return n}(e,r),t.transform);o&&i.push(o)}if(t.children)for(let e=0;e<t.children.length;e++)l(t.children[e])};if(t.children)for(let e=0;e<t.children.length;e++)l(t.children[e]);return i}function Vr(t,e,n){var r,o,i,a;const s=e.keyframes||[];if(0===s.length)return null;const{prevKf:l,nextKf:u}=function(t,e){var n,r;const o=t.length-1;let i=t[0],a=t[o>0?1:0];for(let s=0;s<o;s++){const l=null!=(n=t[s].t)?n:0,u=null!=(r=t[s+1].t)?r:0;if(l<=e&&e<=u){i=t[s],a=t[s+1];break}e>u&&s===o-1&&(i=t[o>0?o-1:0],a=t[o])}return{prevKf:i,nextKf:a}}(s,n);let c=l===u?0:(f=n,d=null!=(r=l.t)?r:0,h=null!=(o=u.t)?o:0,p=0,m=1,h===d?p:p+(f-d)/(h-d)*(m-p));var f,d,h,p,m;c=Dn(c,0,1);const g=ae(l);if(g&&Array.isArray(g))try{c=gn(g)(c)}catch(t){}let v=zn(t)?In(t):t,y=null;const b=null==l?void 0:l.v,k=null==u?void 0:u.v;if("d"===v){y=hn(null!=(i=null==b?void 0:b.paths)?i:Array.isArray(b)?b:[],null!=(a=null==k?void 0:k.paths)?a:Array.isArray(k)?k:[],c).map(t=>un(t)).join("")}else if(wn.has(v))y=xn(dn(b||[0,0,0,1],k||[0,0,0,1],c)),v=t;else if("stroke-dasharray"===v)y=fn(b||[],k||[],c).join(" "),v=t;else if("transform"!==v||null===b||"object"!=typeof b||Array.isArray(b))if("translate"===v){y="translate("+fn(b||[0,0],k||[0,0],c).join(",")+")",v="transform"}else if("rotate"===v){y="rotate("+cn(+(b||0),+(k||0),c)+")",v="transform"}else if("scale"===v){y="scale("+fn(b||[1,1],k||[1,1],c).join(",")+")",v="transform"}else{y=cn(+(b||0),+(k||0),c)}else{const t=new Set([...b?Object.keys(b):[],...k?Object.keys(k):[]]),n={};for(const e of t){const t=null==b?void 0:b[e],r=null==k?void 0:k[e];if("rotate"===e||"skew"===e)n[e]=cn(+(null!=t?t:0),+(null!=r?r:0),c);else if("translate"===e||"scale"===e||"origin"===e){const o="scale"===e?[1,1]:[0,0],i=fn(t||o,r||o,c);n[e]=i}}if($n(e)){const t=b.translate,r=k.translate;if(Array.isArray(t)&&Array.isArray(r)){const o=function(t,e,n,r,o,i){const a=er(t,e,n,r),s=0===a.totalArc?o:function(t,e){const n=e*t.ds[t.ds.length-1],{ts:r,ds:o}=t,i=o.length-1;if(n<=0)return r[0];if(n>=o[i])return r[i];let a=1,s=i;for(;a<s;){const t=a+s>>>1;o[t]<n?a=t+1:s=t}const l=o[s-1],u=o[s]-l,c=u>0?(n-l)/u:0;return r[s-1]+c*(r[s]-r[s-1])}(a.lut,o),l=Vn(a.P0,a.P1,a.P2,a.P3,s);if(!i)return{translate:l};const u=Nn(a.P0,a.P1,a.P2,a.P3,s);return{translate:l,rotateDeg:180*Math.atan2(u[1],u[0])/Math.PI}}(l,u,[+t[0],+t[1]],[+r[0],+r[1]],c,!!e.autoOrient);n.translate=[o.translate[0],o.translate[1]],void 0!==o.rotateDeg&&(n.rotate=o.rotateDeg)}}y=Sn(n,{withUnits:!1}),v="transform"}return On.has(v)&&"number"==typeof y&&(y=100*y+"%"),{k:v,v:null===y?"":""+y}}function Tr(t,e){const n={};for(const[r,o]of Object.entries(t)){const t=Vr(r,o,e);t&&(n[t.k]=t.v)}return n}var Nr=/[MmLlHhVvCcSsQqTtAaZz]/;function Rr(t,e,n){return{P1:[t[0]+2/3*(e[0]-t[0]),t[1]+2/3*(e[1]-t[1])],P2:[n[0]+2/3*(e[0]-n[0]),n[1]+2/3*(e[1]-n[1])]}}function Lr(t){const e=function(t){const e=function(t){const e=[],n=/([MmLlHhVvCcSsQqTtAaZz])|(-?\d*\.?\d+(?:[eE][-+]?\d+)?)/g;let r;for(;null!==(r=n.exec(t));)e.push(r[0]);return e}(t),n=[];let r=0,o=0,i=0,a=0,s=0,l=0,u=0,c=0,f=0,d="";const h=()=>parseFloat(e[r++]),p=(t,e,r)=>{const a=[o,i],s=Ln(a,t,e,r,48);n.push({P0:a,P1:t,P2:e,P3:r,lut:s,len:s.ds[s.ds.length-1]}),o=r[0],i=r[1]},m=(t,e)=>{p([o+(t-o)/3,i+(e-i)/3],[o+2*(t-o)/3,i+2*(e-i)/3],[t,e])};for(;r<e.length;){let t=e[r];Nr.test(t)?r++:t="M"===d?"L":"m"===d?"l":d;const n=t>="a",g=t.toUpperCase();if("Z"!==g){if("M"===g){const e=h()+(n?o:0),r=h()+(n?i:0);o=e,i=r,a=e,s=r,d=t;continue}if("L"===g)m(h()+(n?o:0),h()+(n?i:0));else if("H"===g)m(h()+(n?o:0),i);else if("V"===g)m(o,h()+(n?i:0));else if("C"===g){const t=[h()+(n?o:0),h()+(n?i:0)],e=[h()+(n?o:0),h()+(n?i:0)],r=[h()+(n?o:0),h()+(n?i:0)];l=e[0],u=e[1],p(t,e,r)}else if("S"===g){const t="C"===d.toUpperCase()||"S"===d.toUpperCase()?[2*o-l,2*i-u]:[o,i],e=[h()+(n?o:0),h()+(n?i:0)],r=[h()+(n?o:0),h()+(n?i:0)];l=e[0],u=e[1],p(t,e,r)}else if("Q"===g){const t=[h()+(n?o:0),h()+(n?i:0)],e=[h()+(n?o:0),h()+(n?i:0)];c=t[0],f=t[1];const{P1:r,P2:a}=Rr([o,i],t,e);p(r,a,e)}else if("T"===g){const t="Q"===d.toUpperCase()||"T"===d.toUpperCase()?[2*o-c,2*i-f]:[o,i],e=[h()+(n?o:0),h()+(n?i:0)];c=t[0],f=t[1];const{P1:r,P2:a}=Rr([o,i],t,e);p(r,a,e)}else{if("A"!==g){r++;continue}r+=5,m(h()+(n?o:0),h()+(n?i:0))}d=t}else m(a,s),o=a,i=s,d=t}return n.length?n:null}(t);if(!e)return null;const n=new Float64Array(e.length+1);for(let t=0;t<e.length;t++)n[t+1]=n[t]+e[t].len;const r=n[e.length],o=e[0].P0,i=e[e.length-1].P3,a=Math.hypot(i[0]-o[0],i[1]-o[1])<.001,s=t=>{let r=0;for(;r<e.length-1&&t>n[r+1];)r++;const o=e[r],i=t-n[r],a=o.len>0?function(t,e){const{ts:n,ds:r}=t,o=r.length-1;if(e<=0)return n[0];if(e>=r[o])return n[o];let i=1,a=o;for(;i<a;){const t=i+a>>>1;r[t]<e?i=t+1:a=t}const s=r[a-1],l=r[a]-s,u=l>0?(e-s)/l:0;return n[a-1]+u*(n[a]-n[a-1])}(o.lut,i):0,[s,l]=Vn(o.P0,o.P1,o.P2,o.P3,a),[u,c]=Nn(o.P0,o.P1,o.P2,o.P3,a);return{x:s,y:l,angle:Math.atan2(c,u)}};return{totalLength:r,closed:a,sampleAtDistance(t){if(a&&r>0&&(t<0||t>r))return s((t%r+r)%r);if(!a&&(t<0||t>r)){const e=t<0?0:r,n=s(e),o=t-e;return{x:n.x+Math.cos(n.angle)*o,y:n.y+Math.sin(n.angle)*o,angle:n.angle}}return s((o=r,(e=t)<(n=0)?n:e>o?o:e));var e,n,o}}}function Ur(t,e,n){const r={};return"translate"===t?r.translate=e:"rotate"===t?r.rotate=e:"skew"===t?r.skew=e:r.scale=e,n&&"translate"!==t&&(r.origin=n),r}function Wr(t){var e,n;if(void 0===t)return{kind:"absent"};if(Array.isArray(t))return{kind:"static",value:t};if("object"==typeof t){const r=t,o=r.keyframes;if(o){const t={kind:"animated",keyframes:o.map(Fr),autoOrient:r.autoOrient,loop:r.loop},n=null!=(e=r.value)?e:r.v;return void 0!==n&&"animated"===t.kind&&(t.base=n),t}const i=null!=(n=r.value)?n:r.v;if(void 0!==i)return{kind:"static",value:i}}return{kind:"static",value:t}}function Cr(t,e,n,r){var o,i,a,s;const u=t=>(null==r?void 0:r.asString)&&null!=t?String(t):t;if("absent"===n.kind)return;if("static"===n.kind)return void(t[e]=u(n.value));const c=t.animate&&"object"==typeof t.animate&&!Array.isArray(t.animate)?t.animate:void 0,f=l({},c||{}),d={keyframes:n.keyframes};void 0!==n.loop&&(d.loop=n.loop),void 0!==n.autoOrient&&(d.autoOrient=n.autoOrient),f[e]=d,t.animate=f;const h=null!=(s=null!=(i=n.base)?i:null==(o=n.keyframes[0])?void 0:o.value)?s:null==(a=n.keyframes[0])?void 0:a.v;void 0!==h&&(t[e]=u(h))}function Fr(t){if(!t||"object"!=typeof t)return t;const e=t;if(void 0===e.t&&void 0===e.v&&void 0===e.e&&void 0===e.to&&void 0===e.ti)return t;const n=l({},e);return void 0===n.time&&void 0!==e.t&&(n.time=e.t),void 0===n.value&&void 0!==e.v&&(n.value=e.v),void 0===n.easing&&void 0!==e.e&&(n.easing=e.e),void 0===n.tangentOut&&void 0!==e.to&&(n.tangentOut=e.to),void 0===n.tangentIn&&void 0!==e.ti&&(n.tangentIn=e.ti),n}function Br(t,e){var n;const r=Wr(t);if("absent"!==r.kind)return"static"===r.kind?r.value:(e.warnings.push("transformBy.origin: animated origin approximated by its first keyframe"),null==(n=r.keyframes[0])?void 0:n.value)}function Gr(t,e){const n={value:e};return void 0!==t.time&&(n.time=t.time),void 0!==t.easing&&(n.easing=t.easing),void 0!==t.tangentOut&&(n.tangentOut=t.tangentOut),void 0!==t.tangentIn&&(n.tangentIn=t.tangentIn),n}function qr(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(qr);const e={};for(const n of Object.keys(t))e[n]=qr(t[n]);return e}function Zr(t,e){const n=new Map,r=t=>{var o;if("string"==typeof t.id){const r=e();n.set(t.id,r),t.id=r}null==(o=t.children)||o.forEach(r)};r(t);const o=t=>t.replace(/url\(#([^)]+)\)/g,(t,e)=>{const r=n.get(e);return r?"url(#"+r+")":t}),i=t=>{var e;if("string"==typeof t.href&&t.href.startsWith("#")){const e=n.get(t.href.slice(1));e&&(t.href="#"+e)}for(const e of Object.keys(t)){if("children"===e||"effects"===e||"meta"===e||"animate"===e||"href"===e||"id"===e)continue;const n=t[e];"string"==typeof n&&-1!==n.indexOf("url(#")&&(t[e]=o(n))}null==(e=t.children)||e.forEach(i)};return i(t),n}function Jr(t){const e="number"==typeof t?t:"string"==typeof t?parseFloat(t):NaN;return Number.isFinite(e)?e:0}function Yr(t){var e;const n=Jr(t.x),r=Jr(t.y);if(delete t.x,delete t.y,!n&&!r)return t;const o="translate("+n+","+r+")";if(void 0!==t.transform||void 0!==t.animate){const n={type:"g",transform:o,children:null!=(e=t.children)?e:[]};t.children=[n]}else t.transform=o;return t}function Kr(t,e){return"_lw_"+e+"_"+t.nextId++}function Xr(t){return"string"==typeof t?t.replace(/^#/,""):void 0}function Qr(t,e){var n;"string"==typeof t.id&&e.set(t.id,t),null==(n=t.children)||n.forEach(t=>Qr(t,e))}function Hr(t,e){if(!e.length)return;(t.children||(t.children=[])).unshift({type:"defs",children:e})}var $r=qr;function to(t,e){return Zr(t,()=>Kr(e,"retimed"))}function eo(t){const e=Wr(t);if("static"===e.kind&&"number"==typeof e.value)return{min:e.value,max:e.value};if("animated"===e.kind&&e.keyframes.length){const t=e.keyframes.map(t=>Number(t.value)||0);return{min:Math.min(...t),max:Math.max(...t)}}return{min:0,max:0}}function no(t){let e=0,n=16;const r=t=>{var o;const i=parseFloat(String(null!=(o=t.fontSize)?o:""))||0;i&&(n=Math.max(n,i));const a=t.textContent;if("string"==typeof a&&(e+=a.length),t.children)for(const e of t.children)r(e)};return r(t),e*n}var ro=t=>Math.round(1e3*t)/1e3;function oo(t,e){var n;if("clip"===e.pathOverflow)return{d:t,startShift:0};const r=Lr(t);if(!r||r.closed||r.totalLength<=0)return{d:t,startShift:0};const o=r.totalLength,i=.15*o,a=eo(e.startOffset),s=eo(e.textLength).max||(null!=(n=e.advance)?n:0),l=Math.max(0,-a.min),u=Math.max(0,a.max+s-o),c=l>0?l+i:0,f=u>0?u+i:0;if(f<=0&&c<=0)return{d:t,startShift:0};const d=r.sampleAtDistance(0),h=r.sampleAtDistance(o);let p=t;if(c>0){const e=d.x-Math.cos(d.angle)*c,n=d.y-Math.sin(d.angle)*c,r=t.replace(/^\s*[Mm]\s*-?[\d.]+[\s,]+-?[\d.]+/,"");p="M"+ro(e)+","+ro(n)+"L"+ro(d.x)+","+ro(d.y)+r}if(f>0){const t=h.x+Math.cos(h.angle)*f,e=h.y+Math.sin(h.angle)*f;p+="L"+ro(t)+","+ro(e)}return{d:p,startShift:c}}function io(t,e,n){var r;if(!e||"string"!=typeof e.pathData||!e.pathData)return t;const o=Kr(n,"tpath"),{d:i,startShift:a}=oo(e.pathData,{pathOverflow:e.pathOverflow,startOffset:e.startOffset,textLength:e.textLength,advance:no(t)});n.defs.push({type:"path",id:o,d:i});const s={type:"textPath",href:"#"+o,children:null!=(r=t.children)?r:[]};return void 0!==e.lengthAdjust&&(s.lengthAdjust=e.lengthAdjust),void 0!==e.method&&(s.method=e.method),void 0!==e.spacing&&(s.spacing=e.spacing),ao(s,"startOffset",function(t,e){if(!e||null==t)return t;const n=Wr(t);if("absent"===n.kind)return t;if("static"===n.kind)return"number"==typeof t?n.value+e:{value:n.value+e};const r={keyframes:n.keyframes.map(t=>u(l({},t),{value:(Number(t.value)||0)+e}))};return void 0!==n.loop&&(r.loop=n.loop),void 0!==n.autoOrient&&(r.autoOrient=n.autoOrient),void 0!==n.base&&(r.value=n.base+e),r}(e.startOffset,a)),ao(s,"textLength",e.textLength),t.children=[s],t}function ao(t,e,n){null!=n&&Cr(t,e,Wr(n),{asString:!0})}var so=(t,e,n)=>{const r={type:t};for(const t in e)void 0!==e[t]&&(r[t]=e[t]);const o=Array.isArray(n)?n.filter(t=>null!=t):null!=n?[n]:[];return o.length&&(r.children=o),r};function lo(t,e){return Math.round(t)===t?""+Math.round(t):t.toFixed(e)}function uo(t,e){let n="";for(let r=0;r<t.length;r++){const o=lo(t[r],e);r>0&&45!==o.charCodeAt(0)&&(n+=" "),n+=o}return n}function co(t,e,n){return[t[0]*e+t[2]*n+t[4],t[1]*e+t[3]*n+t[5]]}var fo=/([MLCQZ])|(-?\d*\.?\d+(?:e[-+]?\d+)?)/gi;function ho(t,e,n=2){const r=[];let o;for(fo.lastIndex=0;null!==(o=fo.exec(t));)r.push(o[0]);let i="",a=0;const s=()=>parseFloat(r[a++]);for(;a<r.length;){const t=r[a++];if("M"===t||"L"===t){const[r,o]=co(e,s(),s());i+=t+uo([r,o],n)}else if("C"===t){const[t,r]=co(e,s(),s()),[o,a]=co(e,s(),s()),[l,u]=co(e,s(),s());i+="C"+uo([t,r,o,a,l,u],n)}else if("Q"===t){const[t,r]=co(e,s(),s()),[o,a]=co(e,s(),s());i+="Q"+uo([t,r,o,a],n)}else"Z"!==t&&"z"!==t||(i+="Z")}return i}var po=["fontFamily","fontSize","fontWeight","fontStyle","textAnchor","letterSpacing","wordSpacing","textDecoration","textTransform","whiteSpace","x","y","dx","dy","lengthAdjust","fill","stroke","strokeWidth","effects",Rt,"xml:space"],mo=["fillOpacity","fillRule","strokeOpacity","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","mixBlendMode","filter"],go=["fill","stroke","strokeWidth","opacity","fillOpacity","strokeOpacity","strokeDasharray","strokeDashoffset"];function vo(t){if("number"==typeof t)return t;if("string"==typeof t){const e=parseFloat(t);return isNaN(e)?void 0:e}}function yo(t){return"string"==typeof t?t:void 0}function bo(t){const e=t.animate;if(!e||"object"!=typeof e)return;let n;for(const t of go)void 0!==e[t]&&((null!=n?n:n={})[t]=e[t]);return n}function ko(t,e){var n,r,o,i,a,s,l,u,c,f;const d="text"===t.type,h=t.style,p=e=>{var n;return d?void 0:null!=(n=t[e])?n:null==h?void 0:h[e]},m={fontFamily:null!=(n=yo(t.fontFamily))?n:e.fontFamily,fontSize:null!=(r=vo(t.fontSize))?r:e.fontSize,fill:null!=(o=t.fill)?o:e.fill,stroke:null!=(i=t.stroke)?i:e.stroke,strokeWidth:null!=(a=t.strokeWidth)?a:e.strokeWidth,letterSpacing:null!=(s=vo(t.letterSpacing))?s:e.letterSpacing,wordSpacing:null!=(l=vo(t.wordSpacing))?l:e.wordSpacing,opacity:null!=(u=vo(p("opacity")))?u:e.opacity,animate:null!=(c=d?void 0:bo(t))?c:e.animate};for(const t of mo){const n=null!=(f=p(t))?f:e[t];void 0!==n&&(m[t]=n)}return m}function xo(t){var e,n,r;return{fontFamily:yo(t.fontFamily),fontSize:null!=(e=vo(t.fontSize))?e:16,fill:t.fill,stroke:t.stroke,strokeWidth:t.strokeWidth,letterSpacing:null!=(n=vo(t.letterSpacing))?n:0,wordSpacing:null!=(r=vo(t.wordSpacing))?r:0}}function Ao(t){const e={};void 0!==t.fill&&(e.fill=t.fill),void 0!==t.stroke&&(e.stroke=t.stroke),void 0!==t.strokeWidth&&(e.strokeWidth=t.strokeWidth),void 0!==t.opacity&&1!==t.opacity&&(e.opacity=t.opacity);for(const n of mo)void 0!==t[n]&&(e[n]=t[n]);return void 0!==t.animate&&(e.animate=t.animate),e}function wo(t,e,n,r){var o;const i=t.fontFamily?e[t.fontFamily]:n;return i||null==r||r.push('textGlyphs: no glyphs for font "'+(null!=(o=t.fontFamily)?o:"")+'"'),i}function jo(t){const e=Object.keys(t);return 1===e.length?t[e[0]]:void 0}function Oo(t,e){if(t<=0||e<=0)return"";const n=.08,r=t*n,o=.92*t,i=.92*-e,a=o-r,s=-i,l=Math.max(1,.12*Math.min(a,s)),u="M"+r+" 0L"+o+" 0L"+o+" "+i+"L"+r+" "+i+"Z";if(a<=2*l||s<=2*l)return u;const c=r+l,f=o-l,d=-l,h=i+l;return u+"M"+c+" "+d+"L"+c+" "+h+"L"+f+" "+h+"L"+f+" "+d+"Z"}function So(t,e){var n,r,o;const{glyphs:i,create:a=so,warnings:s}=e,l=jo(i),u={x:null!=(n=vo(t.x))?n:0,y:null!=(r=vo(t.y))?r:0},c=[],f=[{start:u.x,end:u.x}];let d=0;const h=(t,e)=>{var n;const r=wo(e,i,l,s),o=(null==r?void 0:r.unitsPerEm)||1e3,a=e.fontSize/o,h=null!=(n=null==r?void 0:r.ascent)?n:.9*o,p=Ao(e);for(let n=0;n<t.length;n++){const i=t.charAt(n),s=null==r?void 0:r.glyphs[i];if(s&&s.pathData)c.push({glyphD:s.pathData,m:[a,0,0,a,u.x,u.y],paint:p,line:d,x:u.x,y:u.y,scale:a}),u.x+=s.width*a;else if(/\S/.test(i)){const t=s&&s.width>0?s.width:.6*o;c.push({glyphD:Oo(t,h),m:[a,0,0,a,u.x,u.y],paint:p,isMissing:!0,line:d,x:u.x,y:u.y,scale:a}),u.x+=t*a}else u.x+=(s?s.width:0)*a;u.x+=e.letterSpacing+(" "===i?e.wordSpacing:0),f[d].end=u.x}},p=(t,e)=>{var n,r,o;const i=ko(t,e),a=vo(t.x),s=vo(t.y);void 0!==a&&(u.x=a,d=f.length,f.push({start:u.x,end:u.x})),void 0!==s&&(u.y=s),u.x+=null!=(n=vo(t.dx))?n:0,u.y+=null!=(r=vo(t.dy))?r:0;const l=yo(t[Rt]);if(l&&!(null==(o=t.children)?void 0:o.length)&&h(l,i),t.children)for(const e of t.children)p(e,i)},m=xo(t);if(t.children)for(const e of t.children)p(e,m);const g=yo(t[Rt]);g&&!(null==(o=t.children)?void 0:o.length)&&h(g,m);const v=yo(t.textAnchor);if("middle"===v||"end"===v)for(const t of c){const e=f[t.line].end-f[t.line].start,n="middle"===v?-e/2:-e;t.m=[t.scale,0,0,t.scale,t.x+n,t.y]}return Lo(t,Ro(c,a,s),a)}function Po(t,e){var n,r,o,i,a;if(null==(n=e.alongPath)?void 0:n.pathD)return function(t,e,n){var r,o;const{glyphs:i,warnings:a,alongPath:s}=n,l=Lr(e);if(!l)return null==a||a.push("textGlyphs: unparsable along-path geometry (caret)"),[];const u=jo(i),c=[];let f=0;const d=(t,e)=>{var n,r;const o=ko(t,e),s=yo(t[Rt]);if(s&&!(null==(n=t.children)?void 0:n.length)){const t=wo(o,i,u,a),e=(null==t?void 0:t.unitsPerEm)||1e3,n=o.fontSize/e,l=(null!=(r=null==t?void 0:t.ascent)?r:.9*e)*n;for(let e=0;e<s.length;e++){const r=s.charAt(e),i=null==t?void 0:t.glyphs[r],a=(i?i.width:0)*n,u=a+o.letterSpacing+(" "===r?o.wordSpacing:0);c.push({advStart:f,advEnd:f+u,glyphW:a,ascent:l,fontSize:o.fontSize}),f+=u}}if(t.children)for(const e of t.children)d(e,o)};d(t,xo(t));const h=f,p=Wr(null==s?void 0:s.textLength),m="animated"===p.kind?Number(null==(r=p.keyframes[0])?void 0:r.value)||0:"static"===p.kind&&Number(p.value)||0,g=m>0&&h>0?m/h:1,v=Wr(null==s?void 0:s.startOffset),{along:y,perp:b}=_o(t),k=y+("animated"===v.kind?Number(null==(o=v.keyframes[0])?void 0:o.value)||0:"static"===v.kind&&Number(v.value)||0),x=t=>({x:t.x-b*Math.sin(t.angle),y:t.y+b*Math.cos(t.angle),angle:t.angle});return c.map(t=>{const e=k+t.advStart*g,n=k+t.advEnd*g,r=x(l.sampleAtDistance(e)),o=x(l.sampleAtDistance(n)),i=l.sampleAtDistance(k+(t.advStart+t.glyphW/2)*g);return{x:r.x,y:r.y,width:t.advEnd-t.advStart,ascent:t.ascent,fontSize:t.fontSize,endX:o.x,endY:o.y,rotation:180*i.angle/Math.PI}})}(t,e.alongPath.pathD,e);const{glyphs:s,warnings:l}=e,u=jo(s),f={x:null!=(r=vo(t.x))?r:0,y:null!=(o=vo(t.y))?o:0},d=[],h=[{start:f.x,end:f.x}];let p=0;const m=(t,e)=>{var n;const r=wo(e,s,u,l),o=(null==r?void 0:r.unitsPerEm)||1e3,i=e.fontSize/o,a=(null!=(n=null==r?void 0:r.ascent)?n:.9*o)*i;for(let n=0;n<t.length;n++){const o=t.charAt(n),s=null==r?void 0:r.glyphs[o],l=(s?s.width:0)*i+e.letterSpacing+(" "===o?e.wordSpacing:0);d.push({x:f.x,y:f.y,width:l,ascent:a,fontSize:e.fontSize,line:p}),f.x+=l,h[p].end=f.x}},g=(t,e)=>{var n,r,o;const i=ko(t,e),a=vo(t.x),s=vo(t.y);void 0!==a&&(f.x=a,p=h.length,h.push({start:f.x,end:f.x})),void 0!==s&&(f.y=s),f.x+=null!=(n=vo(t.dx))?n:0,f.y+=null!=(r=vo(t.dy))?r:0;const l=yo(t[Rt]);if(l&&!(null==(o=t.children)?void 0:o.length)&&m(l,i),t.children)for(const e of t.children)g(e,i)},v=xo(t);if(t.children)for(const e of t.children){const t=d.length;if(g(e,v),d.length===t){const t=ko(e,v),n=wo(t,s,u),r=(null==n?void 0:n.unitsPerEm)||1e3;d.push({x:f.x,y:f.y,width:0,ascent:(null!=(i=null==n?void 0:n.ascent)?i:.9*r)*(t.fontSize/r),fontSize:t.fontSize,line:p})}}const y=yo(t[Rt]);y&&!(null==(a=t.children)?void 0:a.length)&&m(y,v);const b=yo(t.textAnchor);if("middle"===b||"end"===b)for(const t of d){const e=h[t.line].end-h[t.line].start;t.x+="middle"===b?-e/2:-e}return d.map(t=>{var e=t,{line:n}=e;return c(e,["line"])})}function Mo(t,e,n,r,o=0){const{x:i,y:a,angle:s}=t.sampleAtDistance(e),l=Math.cos(s),u=Math.sin(s),c=r/2;return[n*l,n*u,-n*u,n*l,i-n*l*c-o*u,a-n*u*c+o*l]}function _o(t){var e,n,r;return{along:(null!=(e=vo(t.x))?e:0)+(null!=(n=vo(t.dx))?n:0),perp:null!=(r=vo(t.dy))?r:0}}function zo(t,e,n,r,o,i){const{glyphs:a,create:s=so,warnings:c}=r,f=e?Lr(e):null;if(!f)return null==c||c.push("textGlyphs: unparsable along-path geometry"),null;const d=jo(a),{cells:h,width:p}=function(t,e,n,r){const o=[];let i=0;const a=(t,s)=>{var l,u;const c=ko(t,s),f=yo(t[Rt]);if(f&&!(null==(l=t.children)?void 0:l.length)){const t=wo(c,e,n,r);if(t){const e=c.fontSize/t.unitsPerEm,n=null!=(u=t.ascent)?u:.9*t.unitsPerEm,r=Ao(c);for(let a=0;a<f.length;a++){const s=f.charAt(a),l=t.glyphs[s];if(l&&l.pathData){const t=l.width*e;o.push({glyphD:l.pathData,widthEm:l.width,scale:e,paint:r,midBase:i+t/2}),i+=t}else if(/\S/.test(s)){const a=l&&l.width>0?l.width:.6*t.unitsPerEm,s=a*e;o.push({glyphD:Oo(a,n),widthEm:a,scale:e,paint:r,isMissing:!0,midBase:i+s/2}),i+=s}else i+=(l?l.width:0)*e;i+=c.letterSpacing+(" "===s?c.wordSpacing:0)}}}if(t.children)for(const e of t.children)a(e,c)};return a(t,xo(t)),{cells:o,width:i}}(t,a,d,c);if(!h.length)return Lo(t,[],s);const{along:m,perp:g}=_o(t),v=Eo(n),y=Eo(o),b=t=>t>0&&p>0?t/p:1,k="clip"===i&&!f.closed;if(v.animated||y.animated){const e=function(t,e){const n=[...t,...e].sort((t,e)=>t-e),r=[];for(const t of n)r.length&&t===r[r.length-1]||r.push(t);return r}(v.times,y.times),n=(t,e)=>m+v.at(e)+b(y.at(e))*t.midBase,r=v.animated?v.loop:y.loop;return Lo(t,function(t,e,n,r,o,i,a,s=0){const c=Math.max(e.totalLength/Io,.5),f=t=>t>=0&&t<=e.totalLength,d=[];for(const h of t){const t=[h.scale,0,0,h.scale,-h.scale*(h.widthEm/2),0],p=ho(h.glyphD,t),m=(t,n)=>{const{x:r,y:o,angle:i}=e.sampleAtDistance(t),a=Math.cos(i),l=Math.sin(i);return{time:n,value:{translate:[Vo(r-s*l,3),Vo(o+s*a,3)],rotate:Vo(180*i/Math.PI,3)}}},g=[],v=[],y=(t,e)=>{g.push(m(t,e)),a&&v.push({time:e,value:f(t)?1:0})};y(n(h,r[0]),r[0]);for(let t=1;t<r.length;t++){const e=r[t-1],o=r[t],i=n(h,e),a=n(h,o),s=Math.min(Do,Math.max(1,Math.ceil(Math.abs(a-i)/c)));for(let t=1;t<=s;t++){const r=e+t/s*(o-e);y(n(h,r),r)}}rr(g);const b={keyframes:g};void 0!==o&&(b.loop=o);const k={transform:b};if(h.paint.animate&&Object.assign(k,h.paint.animate),a&&v.some(t=>0===t.value)){const t={keyframes:v};void 0!==o&&(t.loop=o),k.opacity=t}d.push(i("path",u(l(l({d:p},To(h.paint)),No(h.isMissing)),{animate:k}),[]))}return d}(h,f,n,e,r,s,k,g),s)}const x=b(y.at(0)),A=m+v.at(0);return Lo(t,Ro((k?h.filter(t=>{const e=A+t.midBase*x;return e>=0&&e<=f.totalLength}):h).map(t=>({glyphD:t.glyphD,paint:t.paint,isMissing:t.isMissing,m:Mo(f,A+t.midBase*x,t.scale,t.widthEm,g)})),s,c),s)}function Eo(t){var e;const n=Wr(t);if("animated"===n.kind&&n.keyframes.length>=2){const t=[...n.keyframes].sort((t,e)=>(Number(t.time)||0)-(Number(e.time)||0)),e=t.map(t=>Number(t.time)||0),r=t.map(t=>Number(t.value)||0);return{animated:!0,times:e,loop:n.loop,at(t){if(t<=e[0])return r[0];for(let n=1;n<e.length;n++)if(t<=e[n]){const o=e[n]-e[n-1],i=o>0?(t-e[n-1])/o:1;return r[n-1]+i*(r[n]-r[n-1])}return r[r.length-1]}}}const r="animated"===n.kind?Number(null==(e=n.keyframes[0])?void 0:e.value)||0:"static"===n.kind&&Number(n.value)||0;return{animated:!1,times:[],at:()=>r}}var Io=48,Do=64;function Vo(t,e){const n=a(10,e);return Math.round(t*n)/n}function To(t){const e={};void 0!==t.fill&&(e.fill=t.fill),void 0!==t.stroke&&(e.stroke=t.stroke),void 0!==t.strokeWidth&&(e.strokeWidth=t.strokeWidth),void 0!==t.opacity&&(e.opacity=t.opacity);for(const n of mo)void 0!==t[n]&&(e[n]=t[n]);return e}function No(t){return t?{[Lt]:"px-missing-glyph"}:{}}function Ro(t,e,n){if(!t.length)return null==n||n.push("textGlyphs: nothing to render"),[];const r=new Map;for(const e of t){const t=JSON.stringify([e.paint,!!e.isMissing]),n=ho(e.glyphD,e.m),o=r.get(t);o?o.d+=n:r.set(t,{paint:e.paint,d:n,isMissing:e.isMissing})}const o=[];for(const{paint:t,d:n,isMissing:i}of r.values())o.push(e("path",l(l(l({d:n},To(t)),No(i)),void 0!==t.animate?{animate:l({},t.animate)}:{}),[]));return o}function Lo(t,e,n){const r={};for(const e of Object.keys(t))"type"!==e&&"children"!==e&&-1===po.indexOf(e)&&(r[e]=t[e]);if(r.style&&"object"==typeof r.style){const t=l({},r.style);delete t["white-space"],Object.keys(t).length?r.style=t:delete r.style}return n("g",r,e)}function Uo(t,e){return e.alongPath?zo(t,e.alongPath.pathD,e.alongPath.startOffset,e,e.alongPath.textLength,e.alongPath.pathOverflow):So(t,e)}function Wo(t,e,n){return(null==e?void 0:e.useGlyphs)?n.glyphs?So(t,{glyphs:n.glyphs,warnings:n.warnings}):(n.warnings.push("textGlyphs: no definitions.fonts — left as native <text>"),t):t}function Co(t,e,n,r,o,i){return e.glyphs?zo(t,n,r,{glyphs:e.glyphs,warnings:e.warnings},o,i):(e.warnings.push("textGlyphs: no definitions.fonts"),null)}var Fo={document:"document",host:"host",platform:"platform",usage:"usage",internal:"internal"};function Bo(t,e){const n=e?e+" ":"";return{warn:(e,r,o)=>{if(null==t?void 0:t.onWarn)return void t.onWarn({kind:e,message:r,detail:o});if(null==t?void 0:t.muteWarn)return;const i=n+e+": "+r;void 0===o?console.warn(i):console.warn(i,o)},error:(e,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:e,message:i.message,error:i,detail:o});if(null==t?void 0:t.muteError)return;const a=n+e+": "+i.message;void 0===o?console.error(a):console.error(a,o)}}}function Go(t){try{return{problems:Xe(t)}}catch(t){return{problems:[]}}}function qo(t,e){const{problems:n}=Go(t);if(!n.length)return;const r=n.slice(0,6),o=n.length-r.length;console.warn(e+": this document does not match the animation schema in "+n.length+" place"+(1===n.length?"":"s")+".\n"+r.map(t=>" - "+t).join("\n")+(o>0?"\n … and "+o+" more":"")+"\n\nIf you did not author these keys, the usual cause is a build that MANGLES PROPERTY NAMES. An animation document is data loaded at runtime, so renaming the property reads inside the player stops them matching the keys in the JSON, and the animation silently does nothing. Feed the published reserved-name list to your minifier — @pixodesk/svg-animator-web/mangle-reserved.json — see docs/library/minification.md.")}var Zo=[1,0,0,1,0,0];function Jo(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}var Yo=(t,e)=>[1,0,0,1,t,e],Ko=(t,e)=>[t,0,0,e,0,0];function Xo(t){const e=t*Math.PI/180;return[Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0]}var Qo=t=>[1,0,Math.tan(t*Math.PI/180),1,0,0],Ho=t=>[1,Math.tan(t*Math.PI/180),0,1,0,0];function $o(t){let e=Zo;t.translate&&(e=Jo(e,Yo(t.translate[0],t.translate[1])));const n=t.origin&&(void 0!==t.rotate||t.scale);return n&&(e=Jo(e,Yo(t.origin[0],t.origin[1]))),void 0!==t.rotate&&(e=Jo(e,Xo(t.rotate))),t.scale&&(e=Jo(e,Ko(t.scale[0],t.scale[1]))),n&&(e=Jo(e,Yo(-t.origin[0],-t.origin[1]))),e}function ti(t,e,n){return t+(e-t)*n}function ei(t,e){return null==t?Zo:"string"==typeof t?function(t){let e=Zo;const n=/(translate|rotate|scale|matrix|skewX|skewY)\(([^)]*)\)/g;let r;for(;r=n.exec(t);){const t=r[1],n=r[2].split(/[\s,]+/).filter(Boolean).map(Number);"translate"===t?e=Jo(e,Yo(n[0]||0,n[1]||0)):"scale"===t?e=Jo(e,Ko(n[0],n.length>1?n[1]:n[0])):"rotate"===t?e=Jo(e,Xo(n[0])):"skewX"===t?e=Jo(e,Qo(n[0])):"skewY"===t?e=Jo(e,Ho(n[0])):"matrix"===t&&(e=Jo(e,[n[0],n[1],n[2],n[3],n[4],n[5]]))}return e}(t):t.keyframes?$o(function(t,e){var n,r,o,i,a,s,l;if(!t.length)return{};if(e<=(null!=(n=t[0].time)?n:0))return t[0].value||{};if(e>=(null!=(r=t[t.length-1].time)?r:0))return t[t.length-1].value||{};let u=0;for(;u<t.length-1&&(null!=(o=t[u+1].time)?o:0)<e;)u++;const c=t[u],f=t[u+1],d=(e-(null!=(i=c.time)?i:0))/((null!=(a=f.time)?a:0)-(null!=(s=c.time)?s:0)||1),h=c.value||{},p=f.value||{},m={};return h.translate&&p.translate?m.translate=[ti(h.translate[0],p.translate[0],d),ti(h.translate[1],p.translate[1],d)]:m.translate=h.translate||p.translate,void 0!==h.rotate&&void 0!==p.rotate?m.rotate=ti(h.rotate,p.rotate,d):m.rotate=null!=(l=h.rotate)?l:p.rotate,h.scale&&p.scale?m.scale=[ti(h.scale[0],p.scale[0],d),ti(h.scale[1],p.scale[1],d)]:m.scale=h.scale||p.scale,m.origin=h.origin||p.origin,m}(t.keyframes,e)):t.value?$o(t.value):"object"!=typeof t||Array.isArray(t)?Zo:$o(t)}var ni=new Set(["svg","g","symbol"]),ri=new Set(["defs","mask","clipPath","title"]);function oi(t,e){var n;"string"==typeof t.id&&e.set(t.id,t),null==(n=t.children)||n.forEach(t=>oi(t,e))}function ii(t){return null==t?0:Number(t)}function ai(t){return Math.round(100*t)/100+0}function si(t,e,n){var r,o,i,a,s;const l=null!=(r=t.fill)?r:"",u=null!=(o=t.stroke)?o:"",c=null!=(a=null!=(i=t["stroke-width"])?i:t.strokeWidth)?a:"",f=ai(function(t,e,n,r){var o,i,a,s,l,u;if(t&&t.keyframes&&t.keyframes.length){const e=t.keyframes;if(r<=(null!=(o=e[0].time)?o:0))return e[0].value;if(r>=(null!=(i=e[e.length-1].time)?i:0))return e[e.length-1].value;let n=0;for(;n<e.length-1&&(null!=(a=e[n+1].time)?a:0)<r;)n++;const c=e[n],f=e[n+1],d=(r-(null!=(s=c.time)?s:0))/((null!=(l=f.time)?l:0)-(null!=(u=c.time)?u:0)||1);return ti(c.value,f.value,d)}return void 0!==e?Number(e):n}(null==(s=t.animate)?void 0:s.opacity,t.opacity,1,n)),d=t.mask?1:0,h=e.map(ai).join(",");return t.type+"|"+function(t){var e;switch(t.type){case"rect":return ii(t.width)+","+ii(t.height)+","+ii(t.x)+","+ii(t.y);case"ellipse":return ii(t.rx)+","+ii(t.ry)+","+ii(t.cx)+","+ii(t.cy);case"circle":return ii(t.r)+","+ii(t.cx)+","+ii(t.cy);case"path":return String(null!=(e=t.d)?e:"");default:return""}}(t)+"|["+h+"]|f:"+l+"|s:"+u+"|sw:"+(ii(c)||"")+"|o:"+f+"|m:"+d}function li(t,e,n,r,o){var i;const a=t.type||"";if(ri.has(a))return;const s=Jo(e,function(t,e){return t.animate&&t.animate.transform?ei(t.animate.transform,e):void 0!==t.transform?ei(t.transform,e):Zo}(t,n));if("use"===a){const e="string"==typeof t.href?t.href.replace(/^#/,""):"",i=r.get(e),a=Jo(s,Yo(ii(t.x),ii(t.y)));return void(i?li(i,a,n,r,o):o.push("UNRESOLVED_USE:#"+e))}ni.has(a)?null==(i=t.children)||i.forEach(t=>li(t,s,n,r,o)):o.push(si(t,s,n))}function ui(t,e){var n;e.add(0);(t=>{var n;if(t&&"object"==typeof t)for(const r of Object.keys(t)){const o=null==(n=t[r])?void 0:n.keyframes;Array.isArray(o)&&o.forEach(t=>{var n;return e.add(null!=(n=t.time)?n:0)})}})(t.animate),t.transform&&"object"==typeof t.transform&&t.transform.keyframes&&t.transform.keyframes.forEach(t=>{var n;return e.add(null!=(n=t.time)?n:0)}),null==(n=t.children)||n.forEach(t=>ui(t,e))}function ci(t,e){const n=new Map;oi(t,n);const r=[];return li(t,Zo,e,n,r),r.sort()}function fi(t,e){const n=new Set;ui(t,n),ui(e,n);const r=[];for(const o of Array.from(n).sort((t,e)=>t-e)){const n=ci(t,o),i=ci(e,o),a=di(n,i),s=di(i,n);(a.length||s.length)&&r.push({time:o,onlyInA:a,onlyInB:s})}return r}function di(t,e){const n=new Map;for(const t of e)n.set(t,(n.get(t)||0)+1);const r=[];for(const e of t){const t=n.get(e)||0;t>0?n.set(e,t-1):r.push(e)}return r}function hi(t){return"scroll"===(null==t?void 0:t.timelineSource)}function pi(t){return("number"==typeof(null==t?void 0:t.duration)&&t.duration>0?t.duration:1e3)*("number"==typeof(null==t?void 0:t.iterations)&&t.iterations>0?t.iterations:1)}function mi(t,e,n){const r=e,o=n;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]}}function gi(t,e,n,r){var o;const[i,a]=mi(null!=(o=null==t?void 0:t.phase)?o:"cover",n,r);return i+("number"==typeof(null==t?void 0:t.fraction)?t.fraction:e)*(a-i)}function vi(t,e,n,r){const o=n-t,i=gi(null==r?void 0:r.start,0,e,n),a=gi(null==r?void 0:r.end,1,e,n);return a<=i?o>=a?1:0:Dn((o-i)/(a-i),0,1)}function yi(t,e,n){var r,o;const i=e>0?Dn(t/e,0,1):1,a="number"==typeof(null==(r=null==n?void 0:n.start)?void 0:r.fraction)?n.start.fraction:0,s="number"==typeof(null==(o=null==n?void 0:n.end)?void 0:o.fraction)?n.end.fraction:1;return s<=a?i>=s?1:0:Dn((i-a)/(s-a),0,1)}function bi(t,e){const n=null!=t?t:"block";if("x"===n||"y"===n)return n;const r=!!e&&e.startsWith("vertical");return"inline"===n?r?"y":"x":r?"x":"y"}function ki(t){const e=new Set,n=new Set,r=[{schema:t,path:""}];for(;r.length;){const{schema:t,path:o}=r.shift(),i=E(t);switch(i.kind){case"shape":if(n.has(t))break;n.add(t);for(const t of Object.keys(i.shape)){const n=o?o+"."+t:t;e.add(n),r.push({schema:i.shape[t],path:n})}i.openValue&&r.push({schema:i.openValue,path:o+"{*}"});break;case"optional":r.push({schema:i.inner,path:o});break;case"array":r.push({schema:i.item,path:o+"[]"});break;case"lazy":r.push({schema:i.resolved,path:o});break;case"record":r.push({schema:i.value,path:o+"{*}"});break;case"union":i.members.forEach((t,e)=>r.push({schema:t,path:o+"|"+e}));break;case"discriminatedUnion":for(const t of i.members)r.push({schema:t,path:o+"|"+xi(t,i.key)})}}return[...e].sort()}function xi(t,e){const n=E(t);if("shape"!==n.kind)return"?";const r=n.shape[e];if(void 0===r)return"?";const o=E(r);return String(("optional"===o.kind?o.inner:r)._default)}function Ai(t,e){const n=new Set(t),r=new Set(e);return{added:e.filter(t=>!n.has(t)).sort(),removed:t.filter(t=>!r.has(t)).sort()}}function wi(t){const e=t.added.length>0||t.removed.length>0,n=U(t.lastReleased),r=U(t.declared);if(!n||!r)return{changed:e,refuse:"Unparseable version: "+t.lastReleased+" / "+t.declared+"."};const o=n.a+"."+(n.b+1);if(!e){if(r.b===n.b&&r.a===n.a)return{changed:e};return t.steps.find(e=>e.to===t.declared)?{changed:e,requiredVersion:t.declared}:{changed:e,refuse:"The version moved to "+t.declared+" with no key change and no step explaining it."}}const i=t.removed.length?"converted":"additive",a=t.added.length+" key(s) added, "+t.removed.length+" removed";if(r.a!==n.a||r.b!==n.b+1)return{changed:e,requiredKind:i,requiredVersion:o,refuse:"The player schema changed ("+a+") but PX_PLAYER_SCHEMA_VERSION is "+t.declared+". Set it to "+o+" and add the PLAYER_WIRE_STEPS entry."};const s=t.steps.find(e=>e.to===t.declared);return s?"converted"===i&&"converted"!==s.kind?{changed:e,requiredKind:i,requiredVersion:o,refuse:"Keys were REMOVED ("+t.removed.join(", ")+"), which is never additive — the "+t.declared+" step must be `converted`, with an up()."}:{changed:e,requiredKind:i,requiredVersion:o}:{changed:e,requiredKind:i,requiredVersion:o,refuse:"No PLAYER_WIRE_STEPS entry reaches "+t.declared+"."}}function ji(t,e,n,r){const o=[];if(!t.length)return["The release log is empty."];t[0].baseline&&t[0].version===r||o.push("The first release must be the baseline "+r+".");for(let n=1;n<t.length;n++){const r=U(t[n-1].version),i=U(t[n].version);r&&i&&i.a===r.a&&i.b===r.b+1||o.push("Release "+t[n].version+" does not follow "+t[n-1].version+" by one `b` step."),t[n].date<t[n-1].date&&o.push("Release "+t[n].version+" is dated before its predecessor.");const a=e.find(e=>e.to===t[n].version);a?t[n].removed.length&&"converted"!==a.kind&&o.push("Release "+t[n].version+" removed keys, but its step is not `converted`."):o.push("Release "+t[n].version+" has no PLAYER_WIRE_STEPS entry.")}const i=t[t.length-1].version;return i!==n&&o.push("PX_PLAYER_SCHEMA_VERSION is "+n+" but the last release record is "+i+" — a bump needs its changelog entry (run scripts/schema-release.mjs --apply)."),o}export{l as __spreadValues,u as __spreadProps,f as PX_UNKNOWN_KEY_ERROR,z as schemaKeys,E as describeSchema,D as px,V as PX_PLAYER_SCHEMA_VERSION,T as WIRE_VERSION_KEY,R as WireVersionRelation,U as parseWireVersion,W as formatWireVersion,C as PLAYER_WIRE_VERSION,G as readWireVersion,q as compareWireVersion,Z as versionAdvice,J as WireStepKind,Y as BASELINE_PLAYER_VERSION,K as PLAYER_WIRE_STEPS,X as applyWireSteps,Q as convertPlayerDocument,tt as downgradePlayerDocument,et as PxFillMode,nt as PxPlaybackDirection,rt as PX_ANIM_SRC_ATTR_NAME,ot as PX_ANIM_ATTR_NAME,it as PxStartOn,at as PxOutAction,st as PxFinishAction,lt as PxScrollKind,ut as PxScrollAxis,ct as PxScrollSource,ft as PxPinAlign,dt as PxScrollPhase,ht as PxAlongPathMode,pt as PX_TIMELINE_SHARED_KEYS,mt as PX_TIME_ONLY_TIMELINE_KEYS,vt as PxTimelineEngine,yt as PxTimelineEngineExtra,bt as resolveTimelineEngine,kt as isNativeForced,xt as mayUseNativeScrollTimeline,At as PX_TRIGGER_DEFAULTS,wt as PxControlMode,jt as resolveControlMode,Ot as controlModeTakesOverTrigger,St as resolveTrigger,Pt as PxLoopRepeatAt,Mt as PxLoopDirection,_t as PxMaskType,zt as PxUnits,Et as PxCloneWithout,It as PxPathOverflow,Dt as PxLengthAdjust,Vt as PxTextPathMethod,Tt as PxTextPathSpacing,Nt as PxStrokeTrimSubPaths,Rt as TEXT_CONTENT_ATTR,Ut as TRANSFORM_ATTR,Wt as OFFSET_DISTANCE_ATTR,Ft as TRANSFORM_PART,Bt as PX_TRANSFORM_PART_KEYS,Gt as PxGradientSpreadMethod,qt as PxGradientType,Zt as isPxElementFileFormat,Jt as getAnimatorConfig,Xt as flattenAnimatorTimeline,Qt as nestAnimatorTimeline,Ht as getDefs,$t as getBindings,te as getChildren,ne as PxKeyframeValueSchema,re as PxKeyframeSchema,oe as kfTime,ie as kfValue,ae as kfEasing,se as kfTangentIn,le as kfTangentOut,ue as PxLoopSchema,ce as PxPropertyAnimationSchema,fe as PxTransformPartsSchema,de as PxTransformValueSchema,pe as PxElementAnimationSchema,me as PxTriggerSchema,ye as PxDefsSchema,be as PxScrollRangePointSchema,ke as PxScrollRangeSchema,xe as PxScrollSchema,Me as PxTimelineSchema,ze as PxAnimatorConfigSchema,Ee as PxAttrValueSchema,Te as PxTransformByEffectSchema,Ne as PxRepeaterEffectSchema,Re as PxMaskedByEffectSchema,Le as PxClipPathEffectSchema,Ue as PxStrokeTrimEffectSchema,We as PxRetimeEffectSchema,Ce as PxCloneEffectSchema,Fe as PxGradientStopSchema,Ge as PxFillGradientEffectSchema,Ze as PxTextPathEffectSchema,Je as PxTextEffectSchema,Ye as PxEffectsSchema,Ke as validateNodeEffects,Xe as validateDocument,Qe as PxNodeBase,He as PxNodeSchema,$e as PxSvgNodeExtra,tn as PxAnimatedSvgDocumentSchema,en as PxBezierPathSchema,nn as isPxElementFileFormatDeep,on as generateUniqueId,an as deepClone,sn as generateNewIds,un as bezierToSvgPath,gn as cubicBezier,yn as subdivideCubicBezier,bn as splitEasing,kn as reverseEasing,xn as toRGBA,wn as COLOR_ATTR_NAMES,jn as TRANSFORM_FN_NAMES,On as PCT_BASED_ATTR_NAMES,Sn as composeTransformParts,Pn as STYLE_ATTR_NAMES,Mn as DEFAULT_DURATION_MS,_n as kebabToCamelCaseWord,In as camelCaseToKebabWordIfNeeded,Dn as clamp,Ln as bezier2D_arcLengthLUT,Wn as DISALLOWED_SVG_TAGS_LOWER,Bn as CSS_ONLY_STYLE_PROPS,Yn as sanitizeAttributeValue,Kn as getNormalizedProps,nr as materializeMotionPathInPropAnim,mr as materializeMotionPathsInTree,vr as LOOP_JUMP_SHIFT_MS,br as parseSvgPathToBezier,Or as interpolateValue,_r as materializeInternalLoopsInTree,Ir as mergeStaticTransformIntoAnimDef,Dr as getNormalizedBindings,Tr as calcAnimationValues,Ur as partsRecord,Wr as readAnimatable,Cr as writeAnimatableChannel,Br as readStaticOrigin,Gr as keyframeWith,qr as deepClonePxNode,Zr as regenerateIdsAndRewriteRefs,Yr as applyUseOffsetToG,Kr as genId,Xr as stripHash,Qr as indexById,Hr as spliceDefs,$r as clone,to as regenerateIdsInClone,Lr as createPathSampler,oo as extendedPathForBrowser,io as applyTextPathEffect,Po as layoutGlyphTextChars,zo as materializeGlyphTextAlongPath,Uo as materializeGlyphText,Wo as applyTextGlyphsEffect,Co as applyTextGlyphsAlongPath,Fo as PxDiagnosticKind,Bo as createDiagnostics,Go as diagnoseDocument,qo as reportDocumentDiagnostics,fi as diffInEffect,hi as isScrollTimeline,pi as scrollTotalDurationMs,mi as scrollPhaseInterval,vi as scrollViewProgress,yi as scrollOffsetProgress,bi as scrollResolveAxis,ki as schemaFieldUniverse,Ai as diffFieldUniverse,wi as planSchemaRelease,ji as releaseLogProblems};