animate-on-view
Version:
High-performance, zero-dependency animation library for React/Next.js and Svelte with TypeScript support
3 lines (2 loc) • 41.2 kB
JavaScript
;"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");const e=Symbol(),t=Symbol("filename"),n=globalThis.process?.env?.NODE_ENV;var r=n&&!n.toLowerCase().startsWith("prod"),i=Array.isArray,a=Array.prototype.indexOf,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyDescriptors,u=Object.prototype,c=Array.prototype,f=Object.getPrototypeOf;function p(e){return"function"==typeof e}const d=()=>{};const v=32,h=64,m=256,y=512,g=1024,b=2048,w=4096,_=8192,x=16384,$=1<<17,k=1<<19,O=1<<20,S=1<<21,I=1<<22,z=1<<23,E=Symbol("$state"),A=Symbol("legacy props"),j=Symbol(""),Y=Symbol("proxy path"),P=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function X(e){return e===this.v}function M(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function C(e){return!M(e,this.v)}function T(e){let t=Error();const n=t.stack;if(!n)return null;const r=n.split("\n"),i=["\n"];for(let e=0;e<r.length;e++){const t=r[e];if("Error"!==t){if(t.includes("validate_each_keys"))return null;t.includes("svelte/src/internal")||i.push(t)}}return 1===i.length?null:(o(t,"stack",{value:i.join("\n")}),o(t,"name",{value:`${e}Error`}),t)}function D(e,t){return e.label=t,N(e.v,t),e}function N(e,t){return e?.[Y]?.(t),e}let R=null;function L(e){R=e}let V=null;function q(e){V=e}let U=null;function W(e){U=e}function K(e,t=!1,n){R={p:R,c:null,e:null,s:e,x:null,l:null},r&&(R.function=n,U=n)}function B(e){var t=R,n=t.e;if(null!==n)for(var i of(t.e=null,n))Ze(i);return void 0!==e&&(t.x=e),R=t.p,r&&(U=R?.function??null),e??{}}const F=new WeakMap;function H(e){var n=ft;if(null===n)return lt.f|=z,e;if(r&&e instanceof Error&&!F.has(e)&&F.set(e,function(e,n){const r=s(e,"message");if(r&&!r.configurable)return;var i="\t",a=`\n${i}in ${n.fn?.name||"<unknown>"}`,o=n.ctx;for(;null!==o;)a+=`\n${i}in ${o.function?.[t].split("/").pop()}`,o=o.p;return{message:e.message+`\n${a}\n`,stack:e.stack?.split("\n").filter(e=>!e.includes("svelte/src/internal")).join("\n")}}(e,n)),32768&n.f)Z(e,n);else{if(!(128&n.f))throw!n.parent&&e instanceof Error&&G(e),e;n.b.error(e)}}function Z(e,t){for(;null!==t;){if(128&t.f)try{return void t.b.error(e)}catch(t){e=t}t=t.parent}throw e instanceof Error&&G(e),e}function G(e){const t=F.get(e);t&&(o(e,"message",{value:t.message}),o(e,"stack",{value:t.stack}))}let J=[];function Q(){var e=J;J=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}function ee(e){0===J.length&&queueMicrotask(Q),J.push(e)}function te(){for(var e=ft.b;null!==e&&!e.has_pending_snippet();)e=e.parent;return null===e&&function(){if(r){const e=new Error("await_outside_boundary\nCannot await outside a `<svelte:boundary>` with a `pending` snippet\nhttps://svelte.dev/e/await_outside_boundary");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/await_outside_boundary")}(),e}let ne=null;function re(e){ne=e}const ie=new Set;function ae(t){var n=2050,r=null!==lt&&2<.f?lt:null;null===ft||null!==r&&0!==(r.f&m)?n|=m:ft.f|=k;const i={ctx:R,deps:null,effects:null,equals:X,f:n,fn:t,reactions:null,rv:0,v:e,wv:0,parent:r??ft,ac:null};return i}function oe(t,n){let i=ft;null===i&&function(){if(r){const e=new Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/async_derived_orphan")}();var a=i.b,o=void 0,s=Ye(e),l=null,u=!lt;return function(e){He(4718592,e,!0)}(()=>{r&&(ne=ft);try{var e=t()}catch(t){e=Promise.reject(t)}r&&(ne=null);var i=()=>e;o=l?.then(i,i)??Promise.resolve(e),l=o;var c=me,f=a.pending;u&&(a.update_pending_count(1),f||c.increment());const p=(e,t=void 0)=>{l=null,ne=null,f||c.activate(),t?t!==P&&(s.f|=z,Me(s,t)):(0!==(s.f&z)&&(s.f^=z),Me(s,e),r&&void 0!==n&&(ie.add(s),setTimeout(()=>{ie.has(s)&&(s.label,ie.delete(s))}))),u&&(a.update_pending_count(-1),f||c.decrement()),ve()};if(o.then(p,e=>p(null,e||"unknown")),c)return()=>{queueMicrotask(()=>c.neuter())}}),r&&(s.f|=I),new Promise(e=>{!function t(n){function r(){n===o?e(s):t(o)}n.then(r,r)}(o)})}function se(e){const t=ae(e);return vt(t),t}function le(e){const t=ae(e);return t.equals=C,t}function ue(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)nt(t[n])}}let ce=[];function fe(e){var t,n=ft;if(pt(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return t;t=t.parent}return null}(e)),r){let i=ze;Ae(new Set);try{ce.includes(e)&&function(){if(r){const e=new Error("derived_references_self\nA derived value cannot reference itself recursively\nhttps://svelte.dev/e/derived_references_self");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/derived_references_self")}(),ce.push(e),ue(e),t=St(e)}finally{pt(n),Ae(i),ce.pop()}}else try{ue(e),t=St(e)}finally{pt(n)}return t}function pe(e){var t=fe(e);(e.equals(t)||(e.v=t,e.wv=$t()),ot)||(null!==ye?ye.set(e,e.v):Xt(e,!xt&&0===(e.f&m)||null===e.deps?g:w))}function de(e,t,n){const i=ae;if(0!==t.length){var a,o,s,l=me,u=ft,c=(a=ft,o=lt,s=R,function(){pt(a),ct(o),L(s),r&&re(null)}),f=te();Promise.all(t.map(e=>oe(e))).then(t=>{l?.activate(),c();try{n([...e.map(i),...t])}catch(e){0===(u.f&x)&&Z(e,u)}l?.deactivate(),ve()}).catch(e=>{f.error(e)})}else n(e.map(i))}function ve(){pt(null),ct(null),L(null),r&&re(null)}const he=new Set;let me=null,ye=null,ge=new Set,be=[];function we(){const e=be.shift();be.length>0&&queueMicrotask(we),e()}let _e=[],xe=null,$e=!1;class ke{current=new Map;#e=new Map;#t=new Set;#n=0;#r=null;#i=!1;#a=[];#o=[];#s=[];#l=[];#u=[];#c=[];#f=[];skipped_effects=new Set;process(e){_e=[];var t=null;if(he.size>1){t=new Map,ye=new Map;for(const[e,n]of this.current)t.set(e,{v:e.v,wv:e.wv}),e.v=n;for(const e of he)if(e!==this)for(const[n,r]of e.#e)t.has(n)||(t.set(n,{v:n.v,wv:n.wv}),n.v=r)}for(const t of e)this.#p(t);if(0===this.#a.length&&0===this.#n){this.#d();var n=this.#s,r=this.#l;this.#s=[],this.#l=[],this.#u=[],me=null,Se(n),Se(r),null===me?me=this:he.delete(this),this.#r?.resolve()}else this.#v(this.#s),this.#v(this.#l),this.#v(this.#u);if(t){for(const[e,{v:n,wv:r}]of t)e.wv<=r&&(e.v=n);ye=null}for(const e of this.#a)Et(e);for(const e of this.#o)Et(e);this.#a=[],this.#o=[]}#p(e){e.f^=g;for(var t=e.first;null!==t;){var n=t.f,r=!!(96&n);if(!(r&&0!==(n&g)||0!==(n&_)||this.skipped_effects.has(t))&&null!==t.fn){if(r)t.f^=g;else if(0===(n&g))if(4&n)this.#l.push(t);else if(0!==(n&I)){(t.b?.pending?this.#o:this.#a).push(t)}else kt(t)&&(16&t.f&&this.#u.push(t),Et(t));var i=t.first;if(null!==i){t=i;continue}}var a=t.parent;for(t=t.next;null===t&&null!==a;)t=a.next,a=a.parent}}#v(e){for(const t of e){(0!==(t.f&b)?this.#c:this.#f).push(t),Xt(t,g)}e.length=0}capture(e,t){this.#e.has(e)||this.#e.set(e,t),this.current.set(e,e.v)}activate(){me=this}deactivate(){me=null;for(const e of ge)if(ge.delete(e),e(),null!==me)break}neuter(){this.#i=!0}flush(){_e.length>0?function(){var e=it;$e=!0;try{var t=0;for(at(!0);_e.length>0;){var n=ke.ensure();if(t++>1e3){if(r){var i=new Map;for(const e of n.current.keys())for(const[t,n]of e.updated??[]){var a=i.get(t);a||(a={error:n.error,count:0},i.set(t,a)),a.count+=n.count}for(const e of i.values());}Oe()}n.process(_e),Ee.clear()}}finally{$e=!1,at(e),xe=null}}():this.#d(),me===this&&(0===this.#n&&he.delete(this),this.deactivate())}#d(){if(!this.#i)for(const e of this.#t)e();this.#t.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,0===this.#n){for(const e of this.#c)Xt(e,b),Ie(e);for(const e of this.#f)Xt(e,w),Ie(e);this.#s=[],this.#l=[],this.flush()}else this.deactivate()}add_callback(e){this.#t.add(e)}settled(){return(this.#r??={promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}).promise;var e,t}static ensure(){if(null===me){const e=me=new ke;he.add(me),ke.enqueue(()=>{me===e&&e.flush()})}return me}static enqueue(e){0===be.length&&queueMicrotask(we),be.unshift(e)}}function Oe(){try{!function(){if(r){const e=new Error("effect_update_depth_exceeded\nMaximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state\nhttps://svelte.dev/e/effect_update_depth_exceeded");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){r&&o(e,"stack",{value:""}),Z(e,xe)}}function Se(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&kt(r)){var i=me?me.current.size:0;if(Et(r),null===r.deps&&null===r.first&&null===r.nodes_start&&(null===r.teardown&&null===r.ac?rt(r):r.fn=null),null!==me&&me.current.size>i&&0!==(r.f&O))break}}for(;n<t;)Ie(e[n++])}}function Ie(e){for(var t=xe=e;null!==t.parent;){var n=(t=t.parent).f;if($e&&t===ft&&16&n)return;if(96&n){if(0===(n&g))return;t.f^=g}}_e.push(t)}let ze=new Set;const Ee=new Map;function Ae(e){ze=e}let je=!1;function Ye(e,t){var n={f:0,v:e,reactions:null,equals:X,rv:0,wv:0};return n}function Pe(e,t){const n=Ye(e);return vt(n),n}function Xe(e,t,n=!1){null===lt||ut&&0===(lt.f&$)||!(4325394<.f)||dt?.includes(e)||function(){if(r){const e=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_unsafe_mutation")}();let i=n?Re(t):t;return r&&N(i,e.label),Me(e,i)}function Me(e,t){if(!e.equals(t)){var n=e.v;if(ot?Ee.set(e,t):Ee.set(e,n),e.v=t,ke.ensure().capture(e,n),r){if(null!==ft){const t=T("UpdatedAt");if(null!==t){e.updated??=new Map;let n=e.updated.get(t.stack);n||(n={error:t,count:0},e.updated.set(t.stack,n)),n.count++}}null!==ft&&(e.set_during_effect=!0)}2&e.f&&(0!==(e.f&b)&&fe(e),Xt(e,0===(e.f&m)?g:w)),e.wv=$t(),De(e,b),null===ft||0===(ft.f&g)||96&ft.f||(null===yt?function(e){yt=e}([e]):yt.push(e)),r&&ze.size>0&&!je&&Ce()}return t}function Ce(){je=!1;const e=Array.from(ze);for(const t of e)0!==(t.f&g)&&Xt(t,w),kt(t)&&Et(t);ze.clear()}function Te(e){Xe(e,e.v+1)}function De(e,t){var n=e.reactions;if(null!==n)for(var i=n.length,a=0;a<i;a++){var o=n[a],s=o.f;if(r&&0!==(s&$))ze.add(o);else{var l=0===(s&b);l&&Xt(o,t),2&s?De(o,w):l&&Ie(o)}}}const Ne=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Re(t){if("object"!=typeof t||null===t||E in t)return t;const n=f(t);if(n!==u&&n!==c)return t;var a=new Map,o=i(t),l=Pe(0),p=wt,d=e=>{if(wt===p)return e();var t=lt,n=wt;ct(null),_t(p);var r=e();return ct(t),_t(n),r};o&&(a.set("length",Pe(t.length)),r&&(t=new Proxy(t,{get(e,t,n){var r=Reflect.get(e,t,n);return Ue.has(t)?function(...e){je=!0;var t=r.apply(this,e);return Ce(),t}:r}})));var v="";function h(e){D(l,`${v=e} version`);for(const[e,t]of a)D(t,Le(v,e))}return new Proxy(t,{defineProperty(e,t,n){"value"in n&&!1!==n.configurable&&!1!==n.enumerable&&!1!==n.writable||function(){if(r){const e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var i=a.get(t);return void 0===i?i=d(()=>{var e=Pe(n.value);return a.set(t,e),r&&"string"==typeof t&&D(e,Le(v,t)),e}):Xe(i,n.value,!0),!0},deleteProperty(t,n){var i=a.get(n);if(void 0===i){if(n in t){const t=d(()=>Pe(e));a.set(n,t),Te(l),r&&D(t,Le(v,n))}}else Xe(i,e),Te(l);return!0},get(n,i,o){if(i===E)return t;if(r&&i===Y)return h;var l=a.get(i),u=i in n;if(void 0!==l||u&&!s(n,i)?.writable||(l=d(()=>{var t=Pe(Re(u?n[i]:e));return r&&D(t,Le(v,i)),t}),a.set(i,l)),void 0!==l){var c=At(l);return c===e?void 0:c}return Reflect.get(n,i,o)},getOwnPropertyDescriptor(t,n){var r=Reflect.getOwnPropertyDescriptor(t,n);if(r&&"value"in r){var i=a.get(n);i&&(r.value=At(i))}else if(void 0===r){var o=a.get(n),s=o?.v;if(void 0!==o&&s!==e)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return r},has(t,n){if(n===E)return!0;var i=a.get(n),o=void 0!==i&&i.v!==e||Reflect.has(t,n);if((void 0!==i||null!==ft&&(!o||s(t,n)?.writable))&&(void 0===i&&(i=d(()=>{var i=Pe(o?Re(t[n]):e);return r&&D(i,Le(v,n)),i}),a.set(n,i)),At(i)===e))return!1;return o},set(t,n,i,u){var c=a.get(n),f=n in t;if(o&&"length"===n)for(var p=i;p<c.v;p+=1){var h=a.get(p+"");void 0!==h?Xe(h,e):p in t&&(h=d(()=>Pe(e)),a.set(p+"",h),r&&D(h,Le(v,p)))}void 0===c?f&&!s(t,n)?.writable||(Xe(c=d(()=>Pe(void 0)),Re(i)),a.set(n,c),r&&D(c,Le(v,n))):(f=c.v!==e,Xe(c,d(()=>Re(i))));var m=Reflect.getOwnPropertyDescriptor(t,n);if(m?.set&&m.set.call(u,i),!f){if(o&&"string"==typeof n){var y=a.get("length"),g=Number(n);Number.isInteger(g)&&g>=y.v&&Xe(y,g+1)}Te(l)}return!0},ownKeys(t){At(l);var n=Reflect.ownKeys(t).filter(t=>{var n=a.get(t);return void 0===n||n.v!==e});for(var[r,i]of a)i.v===e||r in t||n.push(r);return n},setPrototypeOf(){!function(){if(r){const e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function Le(e,t){return"symbol"==typeof t?`${e}[Symbol(${t.description??""})]`:Ne.test(t)?`${e}.${t}`:/^\d+$/.test(t)?`${e}[${t}]`:`${e}['${t}']`}function Ve(e){try{if(null!==e&&"object"==typeof e&&E in e)return e[E]}catch{}return e}function qe(e,t){return Object.is(Ve(e),Ve(t))}const Ue=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);var We;function Ke(e){return undefined.call(e)}function Be(e){return We.call(e)}function Fe(e,t){return Ke(e)}function He(e,t,n,i=!0){var a=ft;if(r)for(;null!==a&&0!==(a.f&$);)a=a.parent;null!==a&&0!==(a.f&_)&&(e|=_);var o={ctx:R,deps:null,nodes_start:null,nodes_end:null,f:e|b,first:null,fn:t,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r&&(o.component_function=U),n)try{Et(o),o.f|=32768}catch(e){throw nt(o),e}else null!==t&&Ie(o);if(!(n&&null===o.deps&&null===o.first&&null===o.nodes_start&&null===o.teardown&&0===(o.f&k))&&i&&(null!==a&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(o,a),null!==lt&&2<.f&&0===(e&h))){var s=lt;(s.effects??=[]).push(o)}return o}function Ze(e){return He(1048580,e,!1)}function Ge(e){return He(4,e,!1)}function Je(e,t=0){var n=He(16|t,e,!0);return r&&(n.dev_stack=V),n}function Qe(e,t=!0){return He(v,e,!0,t)}function et(e){var t=e.teardown;if(null!==t){const e=ot,n=lt;st(!0),ct(null);try{t.call(null)}finally{st(e),ct(n)}}}function tt(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){n.ac?.abort(P);var r=n.next;0!==(n.f&h)?n.parent=null:nt(n,t),n=r}}function nt(e,t=!0){var n=!1;(t||262144&e.f)&&null!==e.nodes_start&&null!==e.nodes_end&&(!function(e,t){for(;null!==e;){var n=e===t?null:Be(e);e.remove(),e=n}}(e.nodes_start,e.nodes_end),n=!0),tt(e,t&&!n),zt(e,0),Xt(e,x);var i=e.transitions;if(null!==i)for(const e of i)e.stop();et(e);var a=e.parent;null!==a&&null!==a.first&&rt(e),r&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function rt(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}let it=!1;function at(e){it=e}let ot=!1;function st(e){ot=e}let lt=null,ut=!1;function ct(e){lt=e}let ft=null;function pt(e){ft=e}let dt=null;function vt(e){null!==lt&&(null===dt?dt=[e]:dt.push(e))}let ht=null,mt=0,yt=null;let gt=1,bt=0,wt=bt;function _t(e){wt=e}let xt=!1;function $t(){return++gt}function kt(e){var t=e.f;if(0!==(t&b))return!0;if(0!==(t&w)){var n=e.deps,r=0!==(t&m);if(null!==n){var i,a,o=0!==(t&y),s=r&&null!==ft&&!xt,l=n.length;if((o||s)&&(null===ft||0===(ft.f&x))){var u=e,c=u.parent;for(i=0;i<l;i++)a=n[i],!o&&a?.reactions?.includes(u)||(a.reactions??=[]).push(u);o&&(u.f^=y),s&&null!==c&&0===(c.f&m)&&(u.f^=m)}for(i=0;i<l;i++)if(kt(a=n[i])&&pe(a),a.wv>e.wv)return!0}r&&(null===ft||xt)||Xt(e,g)}return!1}function Ot(e,t,n=!0){var r=e.reactions;if(null!==r&&!dt?.includes(e))for(var i=0;i<r.length;i++){var a=r[i];2&a.f?Ot(a,t,!1):t===a&&(n?Xt(a,b):0!==(a.f&g)&&Xt(a,w),Ie(a))}}function St(e){var t=ht,n=mt,r=yt,i=lt,a=xt,o=dt,s=R,l=ut,u=wt,c=e.f;ht=null,mt=0,yt=null,xt=0!==(c&m)&&(ut||!it||null===lt),lt=96&c?null:e,dt=null,L(e.ctx),ut=!1,wt=++bt,null!==e.ac&&(e.ac.abort(P),e.ac=null);try{e.f|=S;var f=(0,e.fn)(),p=e.deps;if(null!==ht){var d;if(zt(e,mt),null!==p&&mt>0)for(p.length=mt+ht.length,d=0;d<ht.length;d++)p[mt+d]=ht[d];else e.deps=p=ht;if(!xt||2&c&&null!==e.reactions)for(d=mt;d<p.length;d++)(p[d].reactions??=[]).push(e)}else null!==p&&mt<p.length&&(zt(e,mt),p.length=mt);if(!(null===yt||ut||null===p||6146&e.f))for(d=0;d<yt.length;d++)Ot(yt[d],e);return null!==i&&i!==e&&(bt++,null!==yt&&(null===r?r=yt:r.push(...yt))),0!==(e.f&z)&&(e.f^=z),f}catch(e){return H(e)}finally{e.f^=S,ht=t,mt=n,yt=r,lt=i,xt=a,dt=o,L(s),ut=l,wt=u}}function It(e,t){let n=t.reactions;if(null!==n){var r=a.call(n,e);if(-1!==r){var i=n.length-1;0===i?n=t.reactions=null:(n[r]=n[i],n.pop())}}null===n&&2&t.f&&(null===ht||!ht.includes(t))&&(Xt(t,w),768&t.f||(t.f^=y),ue(t),zt(t,0))}function zt(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)It(e,n[r])}function Et(e){var t=e.f;if(0===(t&x)){Xt(e,g);var n=ft,i=it;if(ft=e,it=!0,r){var a=U;W(e.component_function);var o=V;q(e.dev_stack??V)}try{16&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&v)&&nt(t),t=n}}(e):tt(e),et(e);var s=St(e);e.teardown="function"==typeof s?s:null,e.wv=gt}finally{it=i,ft=n,r&&(W(a),q(o))}}}function At(e){var t=!!(2&e.f);if(null===lt||ut){if(t&&null===e.deps&&null===e.effects){var n=e,i=n.parent;null!==i&&0===(i.f&m)&&(n.f^=m)}}else if(!(null!==ft&&0!==(ft.f&x))&&!dt?.includes(e)){var a=lt.deps;if(0!==(lt.f&S))e.rv<bt&&(e.rv=bt,null===ht&&null!==a&&a[mt]===e?mt++:null===ht?ht=[e]:xt&&ht.includes(e)||ht.push(e));else{(lt.deps??=[]).push(e);var o=e.reactions;null===o?e.reactions=[lt]:o.includes(lt)||o.push(lt)}}if(r){if(ne){var s=0!==(ne.f&S),l=ne.deps?.includes(e);if(!s&&!ut&&!l){e.label;T("TracedAt")}}ie.delete(e)}if(ot){if(Ee.has(e))return Ee.get(e);if(t){var u=(n=e).v;return(0===(n.f&g)&&null!==n.reactions||jt(n))&&(u=fe(n)),Ee.set(n,u),u}}else if(t){if(n=e,ye?.has(n))return ye.get(n);kt(n)&&pe(n)}if(0!==(e.f&z))throw e.v;return e.v}function jt(t){if(t.v===e)return!0;if(null===t.deps)return!1;for(const e of t.deps){if(Ee.has(e))return!0;if(2&e.f&&jt(e))return!0}return!1}function Yt(e){var t=ut;try{return ut=!0,e()}finally{ut=t}}const Pt=-7169;function Xt(e,t){e.f=e.f&Pt|t}function Mt(e,t=new Set){if(!("object"!=typeof e||null===e||e instanceof EventTarget||t.has(e))){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Mt(e[n],t)}catch(e){}const n=f(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const t=l(n);for(let n in t){const r=t[n].get;if(r)try{r.call(e)}catch(e){}}}}}function Ct(e,t){if(t){const t=document.body;e.autofocus=!0,ee(()=>{document.activeElement===t&&e.focus()})}}const Tt=new Set,Dt=new Set;function Nt(e,t,n,r={}){function i(e){if(r.capture||Vt.call(t,e),!e.cancelBubble)return function(e){var t=lt,n=ft;ct(null),pt(null);try{return e()}finally{ct(t),pt(n)}}(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?ee(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Rt(e){for(var t=0;t<e.length;t++)Tt.add(e[t]);for(var n of Dt)n(e)}let Lt=null;function Vt(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],s=a[0]||e.target;Lt=e;var l=0,u=Lt===e&&e.__root;if(u){var c=a.indexOf(u);if(-1!==c&&(t===document||t===window))return void(e.__root=t);var f=a.indexOf(t);if(-1===f)return;c<=f&&(l=c)}if((s=a[l]||e.target)!==t){o(e,"currentTarget",{configurable:!0,get:()=>s||n});var p=lt,d=ft;ct(null),pt(null);try{for(var v,h=[];null!==s;){var m=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+r];if(null!=y&&(!s.disabled||e.target===s))if(i(y)){var[g,...b]=y;g.apply(s,[e,...b])}else y.call(s,e)}catch(e){v?h.push(e):v=e}if(e.cancelBubble||m===t||null===m)break;s=m}if(v){for(let e of h)queueMicrotask(()=>{throw e});throw v}}finally{e.__root=t,delete e.currentTarget,ct(p),pt(d)}}}function qt(e,t){var n=ft;null===n.nodes_start&&(n.nodes_start=e,n.nodes_end=t)}function Ut(e,t){var n,r=!!(1&t),i=!!(2&t),a=!e.startsWith("<!>");return()=>{var t,o;void 0===n&&(t=a?e:"<!>"+e,(o=document.createElement("template")).innerHTML=t.replaceAll("<!>","\x3c!----\x3e"),n=o.content,r||(n=Ke(n)));var s=i?document.importNode(n,!0):n.cloneNode(!0);r?qt(Ke(s),s.lastChild):qt(s,s);return s}}function Wt(){var e=document.createDocumentFragment(),t=document.createComment(""),n=function(e=""){return document.createTextNode(e)}();return e.append(t,n),qt(t,n),e}function Kt(e,t){null!==e&&e.before(t)}function Bt(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const Ft=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ht(e){return Ft.includes(e)}const Zt={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Gt(e){return e=e.toLowerCase(),Zt[e]??e}function Jt(e,t,...n){var i,a=e,o=d;Je(()=>{o!==(o=t())&&(i&&(nt(i),i=null),r&&null==o&&function(){if(r){const e=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/invalid_snippet")}(),i=Qe(()=>o(a,...n)))},65536)}if(r){function Cn(e){if(!(e in globalThis)){let t;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(void 0!==t)return t;!function(e){if(r){const t=new Error(`rune_outside_svelte\nThe \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files\nhttps://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/rune_outside_svelte")}(e)},set:e=>{t=e}})}}Cn("$state"),Cn("$effect"),Cn("$derived"),Cn("$inspect"),Cn("$props"),Cn("$bindable")}function Qt(e,t,n){Ge(()=>{var r=Yt(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};!function(e,t=0){He(8|t,e,!0)}(()=>{var e=n();!function(e){if("object"==typeof e&&e&&!(e instanceof EventTarget))if(E in e)Mt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];"object"==typeof n&&n&&E in n&&Mt(n)}}(e),i&&M(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function en(e,t){var n,r=void 0;Je(()=>{r!==(r=t())&&(n&&(nt(n),n=null),r&&(n=Qe(()=>{Ge(()=>r(e))})))})}function tn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=tn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nn(e){return"object"==typeof e?function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=tn(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const rn=[..." \t\n\r\f \v\ufeff"];function an(e,t=!1){var n=t?" !important;":";",r="";for(var i in e){var a=e[i];null!=a&&""!==a&&(r+=" "+i+": "+a+n)}return r}function on(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function sn(e,t,n,r,i,a){var o=e.__className;if(o!==n||void 0===o){var s=function(e,t,n){var r=null==e?"":""+e;if(t&&(r=r?r+" "+t:t),n)for(var i in n)if(n[i])r=r?r+" "+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;0!==o&&!rn.includes(r[o-1])||s!==r.length&&!rn.includes(r[s])?o=s:r=(0===o?"":r.substring(0,o))+r.substring(s+1)}return""===r?null:r}(n,r,a);null==s?e.removeAttribute("class"):t?e.className=s:e.setAttribute("class",s),e.__className=n}else if(a&&i!==a)for(var l in a){var u=!!a[l];null!=i&&u===!!i[l]||e.classList.toggle(l,u)}return a}function ln(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(null==n[i]?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function un(e,t,n,r){if(e.__style!==t){var i=function(e,t){if(t){var n,r,i="";if(Array.isArray(t)?(n=t[0],r=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,o=0,s=!1,l=[];n&&l.push(...Object.keys(n).map(on)),r&&l.push(...Object.keys(r).map(on));var u=0,c=-1;const t=e.length;for(var f=0;f<t;f++){var p=e[f];if(s?"/"===p&&"*"===e[f-1]&&(s=!1):a?a===p&&(a=!1):"/"===p&&"*"===e[f+1]?s=!0:'"'===p||"'"===p?a=p:"("===p?o++:")"===p&&o--,!s&&!1===a&&0===o)if(":"===p&&-1===c)c=f;else if(";"===p||f===t-1){if(-1!==c){var d=on(e.substring(u,c).trim());l.includes(d)||(";"!==p&&f++,i+=" "+e.substring(u,f).trim()+";")}u=f+1,c=-1}}}return n&&(i+=an(n)),r&&(i+=an(r,!0)),""===(i=i.trim())?null:i}return null==e?null:String(e)}(t,r);null==i?e.removeAttribute("style"):e.style.cssText=i,e.__style=t}else r&&(Array.isArray(r)?(ln(e,n?.[0],r[0]),ln(e,n?.[1],r[1],"important")):ln(e,n,r));return r}function cn(e,t,n=!1){if(e.multiple){if(null==t)return;if(!i(t))return;for(var r of e.options)r.selected=t.includes(pn(r))}else{for(r of e.options){if(qe(pn(r),t))return void(r.selected=!0)}n&&void 0===t||(e.selectedIndex=-1)}}function fn(e){var t=new MutationObserver(()=>{cn(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),function(e){const t=He(8,null,!1);Xt(t,g),t.teardown=e}(()=>{t.disconnect()})}function pn(e){return"__value"in e?e.__value:e.value}const dn=Symbol("class"),vn=Symbol("style"),hn=Symbol("is custom element"),mn=Symbol("is html");function yn(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function gn(e,t,n,r){var i=wn(e);i[t]!==(i[t]=n)&&("loading"===t&&(e[j]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&xn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function bn(t,n,r=[],i=[],a,o=!1){de(r,i,r=>{var i=void 0,s={},l="SELECT"===t.nodeName,u=!1;if(Je(()=>{var c=n(...r.map(At)),f=function(t,n,r,i){var a=wn(t),o=a[hn],s=!a[mn],l=n||{},u="OPTION"===t.tagName;for(var c in n)c in r||(r[c]=null);r.class?r.class=nn(r.class):(i||r[dn])&&(r.class=null),r[vn]&&(r.style??=null);var f=xn(t);for(const y in r){let g=r[y];if(u&&"value"===y&&null==g)t.value=t.__value="",l[y]=g;else if("class"!==y)if("style"!==y){var p=l[y];if(g!==p||void 0===g&&t.hasAttribute(y)){l[y]=g;var d=y[0]+y[1];if("$$"!==d)if("on"===d){const b={},w="$$"+y;let _=y.slice(2);var v=Ht(_);if(Bt(_)&&(_=_.slice(0,-7),b.capture=!0),!v&&p){if(null!=g)continue;t.removeEventListener(_,l[w],b),l[w]=null}if(null!=g)if(v)t[`__${_}`]=g,Rt([_]);else{function x(e){l[y].call(this,e)}l[w]=Nt(_,t,x,b)}else v&&(t[`__${_}`]=void 0)}else if("style"===y)gn(t,y,g);else if("autofocus"===y)Ct(t,Boolean(g));else if(o||"__value"!==y&&("value"!==y||null==g))if("selected"===y&&u)yn(t,g);else{var h=y;s||(h=Gt(h));var m="defaultValue"===h||"defaultChecked"===h;if(null!=g||o||m)m||f.includes(h)&&(o||"string"!=typeof g)?(t[h]=g,h in a&&(a[h]=e)):"function"!=typeof g&&gn(t,h,g);else if(a[y]=null,"value"===h||"checked"===h){let $=t;const k=void 0===n;if("value"===h){let O=$.defaultValue;$.removeAttribute(h),$.defaultValue=O,$.value=$.__value=k?O:null}else{let S=$.defaultChecked;$.removeAttribute(h),$.defaultChecked=S,$.checked=!!k&&S}}else t.removeAttribute(y)}else t.value=t.__value=g}}else un(t,g,n?.[vn],r[vn]),l[y]=g,l[vn]=r[vn];else sn(t,"http://www.w3.org/1999/xhtml"===t.namespaceURI,g,i,n?.[dn],r[dn]),l[y]=g,l[dn]=r[dn]}return l}(t,i,c,a,o);u&&l&&"value"in c&&cn(t,c.value);for(let e of Object.getOwnPropertySymbols(s))c[e]||nt(s[e]);for(let e of Object.getOwnPropertySymbols(c)){var p=c[e];"@attach"!==e.description||i&&p===i[e]||(s[e]&&nt(s[e]),s[e]=Qe(()=>en(t,()=>p))),f[e]=p}i=f}),l){var c=t;Ge(()=>{cn(c,i.value,!0),fn(c)})}u=!0})}function wn(e){return e.__attributes??={[hn]:e.nodeName.includes("-"),[mn]:"http://www.w3.org/1999/xhtml"===e.namespaceURI}}var _n=new Map;function xn(e){var t,n=_n.get(e.nodeName);if(n)return n;_n.set(e.nodeName,n=[]);for(var r=e,i=Element.prototype;i!==r;){for(var a in t=l(r))t[a].set&&n.push(a);r=f(r)}return n}let $n=!1;const kn={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set:(e,t)=>(r&&function(e){if(r){const t=new Error(`props_rest_readonly\nRest element properties of \`$props()\` such as \`${e}\` are readonly\nhttps://svelte.dev/e/props_rest_readonly`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/props_rest_readonly")}(`${e.name}.${String(t)}`),!1),getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t))return t in e.props?{enumerable:!0,configurable:!0,value:e.props[t]}:void 0},has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))};function On(e,t,n){return new Proxy(r?{props:e,exclude:t,name:n,other:{},to_proxy:[]}:{props:e,exclude:t},kn)}const Sn={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(p(r)&&(r=r()),"object"==typeof r&&null!==r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];p(i)&&(i=i());const a=s(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(p(r)&&(r=r()),"object"==typeof r&&null!==r&&t in r){const e=s(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===E||t===A)return!1;for(let n of e.props)if(p(n)&&(n=n()),null!=n&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props)if(p(n)&&(n=n()),n){for(const e in n)t.includes(e)||t.push(e);for(const e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function In(...e){return new Proxy({props:e},Sn)}function zn(e,t,n,i){var a,o,l=!!(8&n),u=!!(16&n),c=i,f=!0,p=()=>(f&&(f=!1,c=u?Yt(i):i),c);if(l){var d=E in e||A in e;a=s(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var v,h=!1;if(l?[o,h]=function(e){var t=$n;try{return $n=!1,[e(),$n]}finally{$n=t}}(()=>e[t]):o=e[t],void 0===o&&void 0!==i&&(o=p(),a&&(!function(e){if(r){const t=new Error(`props_invalid_value\nCannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value\nhttps://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/props_invalid_value")}(t),a(o))),v=()=>{var n=e[t];return void 0===n?p():(f=!0,n)},!(4&n))return v;if(a){var m=e.$$legacy;return function(e,t){return arguments.length>0?((!t||m||h)&&a(t?v():e),e):v()}}var y=!1,g=(1&n?ae:le)(()=>(y=!1,v()));r&&(g.label=t),l&&At(g);var b=ft;return function(e,t){if(arguments.length>0){const n=t?At(g):l?Re(e):e;return Xe(g,n),y=!0,void 0!==c&&(c=n),e}return ot&&y||0!==(b.f&x)?g.v:At(g)}}function En(e,t={}){const{threshold:n=.1,rootMargin:r="0px",triggerOnce:i=!0,onIntersect:a}=t;let o=!1;const s=new IntersectionObserver(e=>{const[t]=e;t.isIntersecting?(o=!0,a?.(!0)):i&&o||a?.(!1)},{threshold:n,rootMargin:r});return s.observe(e),{destroy(){s.disconnect()}}}const An={fadeIn:{initial:{opacity:0},animate:{opacity:1},transition:{duration:600,easing:"ease-out"}},fadeInUp:{initial:{opacity:0,transform:"translateY(30px)"},animate:{opacity:1,transform:"translateY(0px)"},transition:{duration:600,easing:"ease-out"}},fadeInDown:{initial:{opacity:0,transform:"translateY(-30px)"},animate:{opacity:1,transform:"translateY(0px)"},transition:{duration:600,easing:"ease-out"}},fadeInLeft:{initial:{opacity:0,transform:"translateX(-30px)"},animate:{opacity:1,transform:"translateX(0px)"},transition:{duration:600,easing:"ease-out"}},fadeInRight:{initial:{opacity:0,transform:"translateX(30px)"},animate:{opacity:1,transform:"translateX(0px)"},transition:{duration:600,easing:"ease-out"}},slideUp:{initial:{opacity:0,transform:"translateY(50px)"},animate:{opacity:1,transform:"translateY(0px)"},transition:{duration:800,easing:"cubic-bezier(0.25, 0.46, 0.45, 0.94)"}},slideDown:{initial:{opacity:0,transform:"translateY(-50px)"},animate:{opacity:1,transform:"translateY(0px)"},transition:{duration:800,easing:"cubic-bezier(0.25, 0.46, 0.45, 0.94)"}},slideLeft:{initial:{opacity:0,transform:"translateX(50px)"},animate:{opacity:1,transform:"translateX(0px)"},transition:{duration:800,easing:"cubic-bezier(0.25, 0.46, 0.45, 0.94)"}},slideRight:{initial:{opacity:0,transform:"translateX(-50px)"},animate:{opacity:1,transform:"translateX(0px)"},transition:{duration:800,easing:"cubic-bezier(0.25, 0.46, 0.45, 0.94)"}},scaleIn:{initial:{opacity:0,transform:"scale(0.8)"},animate:{opacity:1,transform:"scale(1)"},transition:{duration:600,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},scaleOut:{initial:{opacity:0,transform:"scale(1.2)"},animate:{opacity:1,transform:"scale(1)"},transition:{duration:600,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},scaleX:{initial:{opacity:0,transform:"scaleX(0)"},animate:{opacity:1,transform:"scaleX(1)"},transition:{duration:700,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},scaleY:{initial:{opacity:0,transform:"scaleY(0)"},animate:{opacity:1,transform:"scaleY(1)"},transition:{duration:700,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},rotateIn:{initial:{opacity:0,transform:"rotate(-10deg) scale(0.9)"},animate:{opacity:1,transform:"rotate(0deg) scale(1)"},transition:{duration:800,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},rotateInLeft:{initial:{opacity:0,transform:"rotate(-45deg)"},animate:{opacity:1,transform:"rotate(0deg)"},transition:{duration:800,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},rotateInRight:{initial:{opacity:0,transform:"rotate(45deg)"},animate:{opacity:1,transform:"rotate(0deg)"},transition:{duration:800,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},flipX:{initial:{opacity:0,transform:"rotateX(-90deg)"},animate:{opacity:1,transform:"rotateX(0deg)"},transition:{duration:800,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},flipY:{initial:{opacity:0,transform:"rotateY(-90deg)"},animate:{opacity:1,transform:"rotateY(0deg)"},transition:{duration:800,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},zoomIn:{initial:{opacity:0,transform:"scale(0.3)"},animate:{opacity:1,transform:"scale(1)"},transition:{duration:600,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},zoomInUp:{initial:{opacity:0,transform:"scale(0.3) translateY(100px)"},animate:{opacity:1,transform:"scale(1) translateY(0px)"},transition:{duration:800,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},zoomInDown:{initial:{opacity:0,transform:"scale(0.3) translateY(-100px)"},animate:{opacity:1,transform:"scale(1) translateY(0px)"},transition:{duration:800,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},zoomInLeft:{initial:{opacity:0,transform:"scale(0.3) translateX(-100px)"},animate:{opacity:1,transform:"scale(1) translateX(0px)"},transition:{duration:800,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},zoomInRight:{initial:{opacity:0,transform:"scale(0.3) translateX(100px)"},animate:{opacity:1,transform:"scale(1) translateX(0px)"},transition:{duration:800,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},bounceIn:{initial:{opacity:0,transform:"scale(0.3)"},animate:{opacity:1,transform:"scale(1)"},transition:{duration:800,easing:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},bounceInUp:{initial:{opacity:0,transform:"translateY(100px)"},animate:{opacity:1,transform:"translateY(0px)"},transition:{duration:800,easing:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},bounceInDown:{initial:{opacity:0,transform:"translateY(-100px)"},animate:{opacity:1,transform:"translateY(0px)"},transition:{duration:800,easing:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},bounceInLeft:{initial:{opacity:0,transform:"translateX(-100px)"},animate:{opacity:1,transform:"translateX(0px)"},transition:{duration:800,easing:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},bounceInRight:{initial:{opacity:0,transform:"translateX(100px)"},animate:{opacity:1,transform:"translateX(0px)"},transition:{duration:800,easing:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},elasticIn:{initial:{opacity:0,transform:"scale(0)"},animate:{opacity:1,transform:"scale(1)"},transition:{duration:1e3,easing:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},elasticInUp:{initial:{opacity:0,transform:"translateY(100px) scale(0.8)"},animate:{opacity:1,transform:"translateY(0px) scale(1)"},transition:{duration:1e3,easing:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},elasticInDown:{initial:{opacity:0,transform:"translateY(-100px) scale(0.8)"},animate:{opacity:1,transform:"translateY(0px) scale(1)"},transition:{duration:1e3,easing:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},blurIn:{initial:{opacity:0,filter:"blur(10px)"},animate:{opacity:1,filter:"blur(0px)"},transition:{duration:800,easing:"ease-out"}},blurInUp:{initial:{opacity:0,filter:"blur(10px)",transform:"translateY(50px)"},animate:{opacity:1,filter:"blur(0px)",transform:"translateY(0px)"},transition:{duration:800,easing:"ease-out"}},skewIn:{initial:{opacity:0,transform:"skewX(-20deg)"},animate:{opacity:1,transform:"skewX(0deg)"},transition:{duration:800,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},skewInUp:{initial:{opacity:0,transform:"skewY(-20deg) translateY(50px)"},animate:{opacity:1,transform:"skewY(0deg) translateY(0px)"},transition:{duration:800,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},rollIn:{initial:{opacity:0,transform:"translateX(-100px) rotate(-120deg)"},animate:{opacity:1,transform:"translateX(0px) rotate(0deg)"},transition:{duration:1e3,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},lightSpeedIn:{initial:{opacity:0,transform:"translateX(100px) skewX(-30deg)"},animate:{opacity:1,transform:"translateX(0px) skewX(0deg)"},transition:{duration:600,easing:"ease-out"}},jackInTheBox:{initial:{opacity:0,transform:"scale(0.1) rotate(30deg)"},animate:{opacity:1,transform:"scale(1) rotate(0deg)"},transition:{duration:800,easing:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},gentle:{initial:{opacity:0,transform:"translateY(20px)"},animate:{opacity:1,transform:"translateY(0px)"},transition:{duration:500,easing:"ease-out"}},soft:{initial:{opacity:0,transform:"scale(0.95)"},animate:{opacity:1,transform:"scale(1)"},transition:{duration:400,easing:"ease-out"}},smooth:{initial:{opacity:0,transform:"translateY(10px)"},animate:{opacity:1,transform:"translateY(0px)"},transition:{duration:300,easing:"ease-out"}},dramatic:{initial:{opacity:0,transform:"scale(0.5) rotate(-180deg)"},animate:{opacity:1,transform:"scale(1) rotate(0deg)"},transition:{duration:1200,easing:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},explosive:{initial:{opacity:0,transform:"scale(0.1) rotate(180deg)"},animate:{opacity:1,transform:"scale(1) rotate(0deg)"},transition:{duration:800,easing:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}}};var jn=Ut("<div><!></div>");function Yn(e,t){K(t,!0);let n=zn(t,"type",3,"fadeIn"),r=zn(t,"threshold",3,.1),i=zn(t,"rootMargin",3,"0px"),a=zn(t,"triggerOnce",3,!0),o=zn(t,"delay",3,0),s=zn(t,"class",3,""),l=zn(t,"style",3,""),u=On(t,["$$slots","$$events","$$legacy","type","variant","threshold","rootMargin","triggerOnce","duration","delay","easing","class","style","onInView","onOutView","children"]),c=Pe(!1);const f=se(()=>t.variant||An[n()]),p=se(()=>({duration:t.duration||At(f).transition?.duration||600,delay:o(),easing:t.easing||At(f).transition?.easing||"ease-out"})),v=se(()=>((e,t,n)=>["opacity","transform"].map(r=>`${r} ${e}ms ${n} ${t}ms`).join(", "))(At(p).duration,At(p).delay,At(p).easing)),h=se(()=>At(c)?At(f).animate:At(f).initial),m=se(()=>{return e={transition:At(v),willChange:"opacity, transform",...At(h)},Object.entries(e).map(([e,t])=>`${e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}: ${t}`).join("; ")+(l()?`; ${l()}`:"");var e});function y(e){Xe(c,e,!0),e&&t.onInView?t.onInView():!e&&t.onOutView&&t.onOutView()}var g=jn();bn(g,()=>({class:s(),style:At(m),...u})),Jt(Fe(g),()=>t.children??d),Qt(g,(e,t)=>En?.(e,t),()=>({threshold:r(),rootMargin:i(),triggerOnce:a(),onIntersect:y})),Kt(e,g),B()}var Pn=Ut("<h1><!></h1>");var Xn=Ut("<h2><!></h2>");var Mn=Ut("<p><!></p>");exports.AnimateDiv=function(e,t){K(t,!0);let n=On(t,["$$slots","$$events","$$legacy"]);Yn(e,In(()=>n,{children:(e,n)=>{var r,i=Wt();Jt((r=Ke(i))instanceof Comment&&""===r.data?Be(r):r,()=>t.children??d),Kt(e,i)},$$slots:{default:!0}})),B()},exports.AnimateH1=function(e,t){K(t,!0);let n=On(t,["$$slots","$$events","$$legacy"]);Yn(e,In(()=>n,{children:(e,n)=>{var r=Pn();Jt(Fe(r),()=>t.children??d),Kt(e,r)},$$slots:{default:!0}})),B()},exports.AnimateH2=function(e,t){K(t,!0);let n=On(t,["$$slots","$$events","$$legacy"]);Yn(e,In(()=>n,{children:(e,n)=>{var r=Xn();Jt(Fe(r),()=>t.children??d),Kt(e,r)},$$slots:{default:!0}})),B()},exports.AnimateOnView=Yn,exports.AnimateP=function(e,t){K(t,!0);let n=On(t,["$$slots","$$events","$$legacy"]);Yn(e,In(()=>n,{children:(e,n)=>{var r=Mn();Jt(Fe(r),()=>t.children??d),Kt(e,r)},$$slots:{default:!0}})),B()},exports.defaultVariants=An,exports.intersectionObserver=En;
//# sourceMappingURL=index.js.map