@ssgoi/core 6.7.0-beta.1 → 7.0.0-beta.0

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.
Files changed (94) hide show
  1. package/README.md +29 -9
  2. package/dist/animation/animation.d.ts +2 -2
  3. package/dist/animation/frame-scheduler.d.ts +36 -0
  4. package/dist/animation/frame-scheduler.d.ts.map +1 -0
  5. package/dist/animation/multi-animation.d.ts +3 -2
  6. package/dist/animation/multi-animation.d.ts.map +1 -1
  7. package/dist/animation/web-animation.d.ts +16 -4
  8. package/dist/animation/web-animation.d.ts.map +1 -1
  9. package/dist/index.cjs +15 -15
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +1282 -1125
  13. package/dist/internal.cjs +1 -1
  14. package/dist/internal.d.ts +1 -1
  15. package/dist/internal.d.ts.map +1 -1
  16. package/dist/internal.js +502 -422
  17. package/dist/multi-animation-6124HEke.cjs +1 -0
  18. package/dist/multi-animation-ZFZBDBGr.js +439 -0
  19. package/dist/ssgoi-transition/create-ssgoi-transition-context.d.ts.map +1 -1
  20. package/dist/ssgoi-transition/navigation-direction.d.ts +13 -0
  21. package/dist/ssgoi-transition/navigation-direction.d.ts.map +1 -0
  22. package/dist/ssgoi-transition/path-pattern.d.ts +15 -0
  23. package/dist/ssgoi-transition/path-pattern.d.ts.map +1 -0
  24. package/dist/ssgoi-transition/resolve-transition-rule.d.ts +16 -0
  25. package/dist/ssgoi-transition/resolve-transition-rule.d.ts.map +1 -0
  26. package/dist/transitions/axis/index.d.ts +5 -7
  27. package/dist/transitions/axis/index.d.ts.map +1 -1
  28. package/dist/transitions/axis/types.d.ts +0 -1
  29. package/dist/transitions/axis/types.d.ts.map +1 -1
  30. package/dist/transitions/blind/index.d.ts +2 -3
  31. package/dist/transitions/blind/index.d.ts.map +1 -1
  32. package/dist/transitions/drill/index.d.ts +6 -7
  33. package/dist/transitions/drill/index.d.ts.map +1 -1
  34. package/dist/transitions/drill/provider/crossfade.d.ts.map +1 -1
  35. package/dist/transitions/drill/provider/parallax.d.ts.map +1 -1
  36. package/dist/transitions/drill/transition.d.ts.map +1 -1
  37. package/dist/transitions/drill/types.d.ts +0 -1
  38. package/dist/transitions/drill/types.d.ts.map +1 -1
  39. package/dist/transitions/fade/index.d.ts +3 -5
  40. package/dist/transitions/fade/index.d.ts.map +1 -1
  41. package/dist/transitions/film/index.d.ts +3 -5
  42. package/dist/transitions/film/index.d.ts.map +1 -1
  43. package/dist/transitions/hero/fit.d.ts +5 -0
  44. package/dist/transitions/hero/fit.d.ts.map +1 -0
  45. package/dist/transitions/hero/index.d.ts +3 -5
  46. package/dist/transitions/hero/index.d.ts.map +1 -1
  47. package/dist/transitions/hero/transition.d.ts +12 -1
  48. package/dist/transitions/hero/transition.d.ts.map +1 -1
  49. package/dist/transitions/hero/types.d.ts +2 -1
  50. package/dist/transitions/hero/types.d.ts.map +1 -1
  51. package/dist/transitions/jaemin/index.d.ts +3 -5
  52. package/dist/transitions/jaemin/index.d.ts.map +1 -1
  53. package/dist/transitions/media-geometry.d.ts +55 -0
  54. package/dist/transitions/media-geometry.d.ts.map +1 -0
  55. package/dist/transitions/rotate/index.d.ts +3 -5
  56. package/dist/transitions/rotate/index.d.ts.map +1 -1
  57. package/dist/transitions/scroll/index.d.ts +4 -5
  58. package/dist/transitions/scroll/index.d.ts.map +1 -1
  59. package/dist/transitions/scroll/transition.d.ts +1 -1
  60. package/dist/transitions/scroll/transition.d.ts.map +1 -1
  61. package/dist/transitions/sheet/index.d.ts +6 -7
  62. package/dist/transitions/sheet/index.d.ts.map +1 -1
  63. package/dist/transitions/sheet/provider/static.d.ts.map +1 -1
  64. package/dist/transitions/sheet/transition.d.ts.map +1 -1
  65. package/dist/transitions/sheet/types.d.ts +0 -1
  66. package/dist/transitions/sheet/types.d.ts.map +1 -1
  67. package/dist/transitions/slide/index.d.ts +3 -5
  68. package/dist/transitions/slide/index.d.ts.map +1 -1
  69. package/dist/transitions/slide/transition.d.ts +0 -1
  70. package/dist/transitions/slide/transition.d.ts.map +1 -1
  71. package/dist/transitions/strip/index.d.ts +3 -5
  72. package/dist/transitions/strip/index.d.ts.map +1 -1
  73. package/dist/transitions/utils.d.ts +3 -21
  74. package/dist/transitions/utils.d.ts.map +1 -1
  75. package/dist/transitions/zoom/index.d.ts +3 -4
  76. package/dist/transitions/zoom/index.d.ts.map +1 -1
  77. package/dist/transitions/zoom/provider/blur.d.ts.map +1 -1
  78. package/dist/transitions/zoom/transition.d.ts +6 -1
  79. package/dist/transitions/zoom/transition.d.ts.map +1 -1
  80. package/dist/transitions/zoom/types.d.ts +5 -0
  81. package/dist/transitions/zoom/types.d.ts.map +1 -1
  82. package/dist/transitions/zoom/zoom-element.d.ts +2 -2
  83. package/dist/transitions/zoom/zoom-element.d.ts.map +1 -1
  84. package/dist/types/index.d.ts +56 -9
  85. package/dist/types/index.d.ts.map +1 -1
  86. package/dist/utils/wait-paint.d.ts +8 -7
  87. package/dist/utils/wait-paint.d.ts.map +1 -1
  88. package/package.json +13 -14
  89. package/dist/multi-animation-1FueEz2Q.js +0 -367
  90. package/dist/multi-animation-qtH1IKNG.cjs +0 -1
  91. package/dist/ssgoi-transition/find-matching-transition.d.ts +0 -30
  92. package/dist/ssgoi-transition/find-matching-transition.d.ts.map +0 -1
  93. package/dist/ssgoi-transition/process-symmetric-transitions.d.ts +0 -7
  94. package/dist/ssgoi-transition/process-symmetric-transitions.d.ts.map +0 -1
package/dist/internal.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var It=Object.defineProperty;var Ht=(t,n,e)=>n in t?It(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var F=(t,n,e)=>Ht(t,typeof n!="symbol"?n+"":n,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Q=require("./multi-animation-qtH1IKNG.cjs");class Mt extends Q.Animation{constructor(){super(...arguments);F(this,"child",null);F(this,"_state","idle");F(this,"_settled",!1);F(this,"listeners",new Set)}attach(e){const s=this.child;if(this.child=e,this._settled=!1,s){const l=s.getPose();s.complete(),e.matchInto(l)}e.playbackRate=this.playbackRate;const o=e.onComplete;e.onComplete=()=>{o==null||o(),this.child===e&&(this.child=null,this._state="idle",this._settled=!0),this.notify()};const a=e.onUpdate;e.onUpdate=l=>{var u;a==null||a(l),(u=this.onUpdate)==null||u.call(this,l),this.notify()},this._state==="paused"?e.pause():this._state==="reversing"?e.reverse():(this._state="playing",e.play()),this.notify()}play(){var e;this._state="playing",this._settled=!1,(e=this.child)==null||e.play(),this.notify()}reverse(){var e;this._state="reversing",this._settled=!1,(e=this.child)==null||e.reverse(),this.notify()}pause(){var e;this._state="paused",(e=this.child)==null||e.pause(),this.notify()}complete(){var e;(e=this.child)==null||e.complete(),this.notify()}get isAnimating(){var e;return((e=this.child)==null?void 0:e.isAnimating)??!1}get isPaused(){return this._state==="paused"}get isComplete(){return this._settled&&!this.child}get isReversing(){var e;return((e=this.child)==null?void 0:e.isReversing)??this._state==="reversing"}get progress(){var e;return((e=this.child)==null?void 0:e.progress)??0}findTimeForProgress(e){var s;return((s=this.child)==null?void 0:s.findTimeForProgress(e))??null}get playbackRate(){return super.playbackRate}set playbackRate(e){super.playbackRate=e,this.child&&(this.child.playbackRate=e),this.notify()}getPose(){var e;return((e=this.child)==null?void 0:e.getPose())??[]}getTimeline(){var e;return((e=this.child)==null?void 0:e.getTimeline())??[]}matchInto(e){var s;(s=this.child)==null||s.matchInto(e)}get activeChild(){return this.child}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notify(){for(const e of this.listeners)e()}}const Wt=(t,n)=>{var e;t.style.position="absolute",t.style.width="100%",t.style.top=`${-1*(((e=n==null?void 0:n.scrollOffset)==null?void 0:e.y)??0)}px`,t.style.left="0"},vt=new Set(["auto","scroll","overlay"]),zt=t=>{let n=t.parentElement;for(;n&&n!==document.body;){const e=window.getComputedStyle(n);if(vt.has(e.overflowY)||vt.has(e.overflowX))return n;n=n.parentElement}return document.documentElement},Bt=t=>{let n=t.parentElement;for(;n&&n!==document.body;){const e=window.getComputedStyle(n).position;if(e==="relative"||e==="absolute"||e==="fixed"||e==="sticky")return n;n=n.parentElement}return document.body};function Ft(t){const n=Object.keys(t);return Promise.all(n.map(e=>t[e])).then(e=>{const s={};return n.forEach((o,a)=>{s[o]=e[a]}),s})}function Kt(t){const n=t.filter(e=>e.symmetric).map(e=>({from:e.to,to:e.from,transition:e.transition}));return[...t,...n]}const Xt=1e6,bt=100,$t=10;function qt(t){const n=t.trim(),e=n.indexOf("#"),s=n.indexOf("?"),o=[e,s].filter(a=>a>=0).reduce((a,l)=>Math.min(a,l),n.length);return n.slice(0,o)}function ut(t){const n=qt(t);try{if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n))return ut(new URL(n).pathname)}catch{}const s=(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/");return(s.length>1?s.replace(/\/+$/g,""):s)||"/"}function Ut(t){const n=t.trim();return n==="*"?"*":ut(n)}function rt(t){return t==="/"?[]:t.slice(1).split("/")}function Vt(t){return t.startsWith(":")||t.startsWith("[")&&t.endsWith("]")||t.startsWith("{")&&t.endsWith("}")}function ct(t,n){const e=ut(t),s=Ut(n);if(s==="*")return{matched:!0,specificity:0};if(e===s)return{matched:!0,specificity:Xt+rt(s).length*bt};const o=rt(e),a=rt(s);let l=0;for(let u=0;u<a.length;u++){const g=a[u],b=o[u],_=u===a.length-1;if(g===void 0)return{matched:!1,specificity:0};if((g==="*"||g==="**")&&_)return{matched:g==="**"?o.length>=u:o.length>u,specificity:l};if(b===void 0)return{matched:!1,specificity:0};if(g==="*"||Vt(g)){l+=$t;continue}if(g!==b)return{matched:!1,specificity:0};l+=bt}return{matched:o.length===a.length,specificity:l}}function Gt(t,n){return ct(t,n).matched}function Yt(t,n,e){let s;for(const o of e){const a=ct(t,o.from);if(!a.matched)continue;const l=ct(n,o.to);if(!l.matched)continue;const u=a.specificity+l.specificity;(!s||u>s.specificity)&&(s={transition:o.transition,specificity:u})}return(s==null?void 0:s.transition)??null}const Zt=768,jt=10,Qt=10;function Jt(t={}){const{preserveScroll:n=f=>f,resolvePath:e=f=>f}=t,s=typeof n=="function"?n:()=>n;let o=null,a=!1,l=!1;const u=()=>{const f=(o==null?void 0:o.clientWidth)??0,d=f>0?f:typeof window<"u"?window.innerWidth:0;return d>0&&d<Zt},g=()=>(l||(a=u(),l=!0),a),b=f=>{var R;const d=e(f),y=s(g());if(y===!1)return{preserves:!1,shared:!1,storageKey:`path:${d}`};if(y===!0)return{preserves:!0,shared:!1,storageKey:`path:${d}`};const E=((R=y.exclude)==null?void 0:R.some(C=>Gt(d,C)))??!1,P=!E&&!!y.key;return{preserves:!E,shared:P,storageKey:P?`shared:${y.key}`:`path:${d}`}},_=f=>b(f).preserves;let O=null;const T=new Map;let L=null,k=!1,W=0;const $=()=>{o&&L&&!k&&T.set(b(L).storageKey,{x:o.scrollLeft,y:o.scrollTop})},z=f=>{if(!o)return;const d=b(f);if(d.preserves&&d.shared&&!T.has(d.storageKey))return;const y=d.preserves&&T.has(d.storageKey)?T.get(d.storageKey):{x:0,y:0};let E=0;const P=()=>{if(!o)return;o.scrollTo({top:y.y,left:y.x}),!(Math.abs(o.scrollTop-y.y)<1&&Math.abs(o.scrollLeft-y.x)<1)&&E<jt&&(E++,requestAnimationFrame(P))};requestAnimationFrame(P)};return{initializeContext:(f,d)=>{k=!0;const y=++W;O=f,o||(o=zt(f),a=u(),l=!0,typeof ResizeObserver<"u"&&new ResizeObserver(()=>{a=u()}).observe(o),(o===document.documentElement?window:o).addEventListener("scroll",$,{passive:!0})),L=d,z(d);let E=0;const P=()=>{y===W&&(E++,E>=Qt?k=!1:requestAnimationFrame(P))};requestAnimationFrame(P)},calculateScrollOffset:(f,d)=>{const y=f?b(f).storageKey:null,E=y&&T.has(y)?T.get(y):{x:0,y:0},P=d?b(d):null,R=P!=null&&P.preserves?P.storageKey:null,C=R&&T.has(R)?T.get(R):{x:0,y:0};return{x:-C.x+E.x,y:-C.y+E.y}},evictScrollPosition:f=>{T.delete(b(f).storageKey)},shouldPreserve:_,getScrollContainer:()=>o,getPositionedParentElement:()=>O?Bt(O):document.body,getScrollPosition:f=>{const d=f?b(f).storageKey:null;return d&&T.has(d)?T.get(d):{x:0,y:0}},getIsMobile:g}}const St=30,Et=8,Tt=1.2,wt=30,te=600;function ee(){let t=null,n=!1,e=!1,s=null,o=null,a=!1;const l=(h,v)=>{for(let S=0;S<h.length;S++){const m=h.item(S);if(m&&m.identifier===v)return m}return null},u=()=>{s!==null&&(clearTimeout(s),s=null)},g=()=>{o!==null&&(clearTimeout(o),o=null)},b=()=>{n=!0,e=!0,u(),g(),s=setTimeout(()=>{n=!1,e=!1,s=null},te)},_=h=>{if(h.touches.length!==1){t=null;return}const v=h.touches.item(0);if(!v){t=null;return}const S=window.innerWidth,m=v.clientX<=St,w=v.clientX>=S-St;if(!m&&!w){t=null;return}t={identifier:v.identifier,startX:v.clientX,startY:v.clientY,fromLeftEdge:m,moved:!1}},O=h=>{if(!t)return;if(h.touches.length!==1){t=null;return}const v=l(h.touches,t.identifier);if(!v){t=null;return}const S=v.clientX-t.startX,m=v.clientY-t.startY,w=Math.abs(S),I=Math.abs(m);if(I>Et&&I>w*Tt){t=null;return}const f=t.fromLeftEdge?S>0:S<0;w>Et&&w>I*Tt&&f&&(t.moved=!0)},T=h=>{if(!t)return;const v=l(h.changedTouches,t.identifier);if(!v){t=null;return}const S=v.clientX-t.startX,m=t.fromLeftEdge?S>0:S<0;if(t.moved&&m&&Math.abs(S)>=wt){b(),t=null;return}t.moved&&Math.abs(S)>=wt&&b(),t=null},L=()=>{t&&(t.moved&&b(),t=null)};return{initialize:()=>{if(typeof window>"u"||a)return;a=!0;const h={passive:!0,capture:!0};window.addEventListener("touchstart",_,h),window.addEventListener("touchmove",O,h),window.addEventListener("touchend",T,h),window.addEventListener("touchcancel",L,h)},destroy:()=>{if(typeof window>"u"||!a)return;a=!1;const h={capture:!0};window.removeEventListener("touchstart",_,h),window.removeEventListener("touchmove",O,h),window.removeEventListener("touchend",T,h),window.removeEventListener("touchcancel",L,h),u(),g(),t=null,n=!1,e=!1},isSwipeBack:()=>{const h=n||e;return h&&u(),h},onPageEnter:()=>{n=!1,u(),g(),o=setTimeout(()=>{e=!1,o=null},0)}}}function ne(){let t=null;function n(){var s,o;t&&((s=t.outResolve)==null||s.call(t,null),(o=t.inResolve)==null||o.call(t,null),t=null)}function e(){if(t!=null&&t.from&&(t!=null&&t.to)&&(t!=null&&t.outResolve)&&(t!=null&&t.inResolve)){if(t.from===t.to){n();return}const s={from:t.from,to:t.to};t.outResolve(s),t.inResolve(s),t=null}}return{trigger(s,o){var l;o==="out"&&(t==null?void 0:t.to)===s&&!t.from&&((l=t.inResolve)==null||l.call(t,null),t={}),t&&(o==="out"&&t.from&&t.from!==s||o==="in"&&t.to&&t.to!==s)&&n(),t||(t={}),o==="out"?t.from=s:t.to=s},get(s){return new Promise(o=>{t||(t={}),s==="out"?t.outResolve=o:t.inResolve=o,e()})}}}const X=new Map;let Y=null,Pt=!1;function Rt(t,n){if(t instanceof HTMLElement&&X.has(t)&&!t.isConnected){const e=X.get(t);X.delete(t),queueMicrotask(()=>e(n))}for(const e of Array.from(t.childNodes))Rt(e,n)}function se(){if(Pt||typeof document>"u")return;Pt=!0,Y=new MutationObserver(n=>{for(const e of n){const s={parent:e.target,nextSibling:e.nextSibling};for(const o of Array.from(e.removedNodes))Rt(o,s)}});const t=()=>{Y==null||Y.observe(document.body,{childList:!0,subtree:!0})};document.body?t():document.addEventListener("DOMContentLoaded",t,{once:!0})}function ie(t,n){return se(),X.set(t,n),()=>{X.delete(t)}}const lt=new WeakMap;let Z=null;const j="none !important";function K(t){const n=t.style.getPropertyValue("display");return t.style.getPropertyPriority("display")?`${n} !important`:n}function oe(){return Z||(Z=new MutationObserver(t=>{for(const n of t){const e=n.target,s=lt.get(e);if(!s)continue;const o=K(e);o!==s.accounted&&(s.accounted=o,o===j?(s.reactHidden=!0,s.onHide()):o!=="none"&&s.reactHidden&&(s.reactHidden=!1,s.onShow()))}}),Z)}function re(t,n){const e=K(t),s={accounted:e,reactHidden:e===j,onHide:n.onHide,onShow:n.onShow};return lt.set(t,s),oe().observe(t,{attributes:!0,attributeFilter:["style"]}),{get isHidden(){return K(t)===j},setDisplay(o,a=!1){o===null?t.style.removeProperty("display"):t.style.setProperty("display",o,a?"important":""),s.accounted=K(t)},sync(){s.accounted=K(t),s.reactHidden=s.accounted===j},stop(){lt.delete(t)}}}function ce(t){return Array.isArray(t)}function Ct(t){const n=[];for(const e of t)ce(e)?n.push(...Ct(e)):n.push(e);return n}function le(t,n={}){const{transitions:e=[],middleware:s=(i,r)=>({from:i,to:r}),preserveScroll:o=i=>i}=t,a=n.host??new Mt,l=ne(),u=typeof e=="function"?e:()=>e,g=ee();g.initialize();const b=new Map,_=i=>{let r=b.get(i);return r===void 0&&(r=s(i,i).from,b.set(i,r)),r},{initializeContext:O,calculateScrollOffset:T,evictScrollPosition:L,shouldPreserve:k,getScrollContainer:W,getPositionedParentElement:$,getScrollPosition:z,getIsMobile:h}=Jt({preserveScroll:o,resolvePath:_}),v=new Map,S=()=>{const i=h();let r=v.get(i);return r||(r=Kt(Ct(u({isMobile:i}))),v.set(i,r)),r};let m=null,w=null;const I=new WeakMap,f=i=>{I.set(i,{parent:i.parentNode,nextSibling:i.nextSibling})},d=i=>{const r=I.get(i);return r||{parent:i.parentNode,nextSibling:i.nextSibling}},y=new WeakMap,E=new WeakMap;let P=0;const R=i=>{const r=typeof getComputedStyle<"u"?getComputedStyle(i).display:"";return r&&r!=="none"?r:"block"},C=(i,r)=>{r.visibleDisplay=i.style.getPropertyValue("display"),r.computedDisplay=R(i)},dt=(i,r)=>{if(E.get(i)!==r)return;E.delete(i);const c=y.get(i);c&&(c.savedCss!==null&&(i.style.cssText=c.savedCss,c.savedCss=null),c.intent==="hidden"?c.vis.setDisplay("none",!0):c.visibleDisplay?(c.vis.setDisplay(c.visibleDisplay,!1),C(i,c)):(c.vis.setDisplay(null),C(i,c)))},Ot=(i,r,c,p,A)=>{const M=p.element,D=A.element,N=(p.mode??"unmount")==="hidden",{parent:U,nextSibling:tt}=p.parent?{parent:p.parent,nextSibling:p.nextSibling}:d(M),V=T(r,c),et={scrollOffset:V,from:{scroll:z(r)},to:{scroll:z(c)},get scrollingElement(){return W()||document.documentElement},get positionedParent(){return $()}};let x;if(N){x=M,x.style.top=`${-1*((V==null?void 0:V.y)??0)}px`;const H=y.get(D);H&&H.savedCss===null&&(H.savedCss=D.style.cssText)}else x=M,Wt(x,et);k(r)||L(r);const G=N?++P:0;N&&(E.set(D,G),E.set(M,G));const yt=Promise.resolve(x),mt=Promise.resolve(D),gt=[],Nt={from:yt,to:mt,context:et,createElement:((H,nt="div")=>{const B=document.createElement(nt);return B.setAttribute("data-ssgoi-id",H),gt.push(B),B})},kt=Promise.resolve(i.prepare?i.prepare(Nt):{});Ft({from:yt,to:mt,extras:kt}).then(({from:H,to:nt,extras:B})=>{!N&&U&&(tt&&U.contains(tt)?U.insertBefore(x,tt):U.appendChild(x));const st=i.animation({from:H,to:nt,context:et,...B}),it=st.onComplete;st.onComplete=()=>{it==null||it(),N?(dt(M,G),dt(D,G)):x.parentNode&&x.parentNode.removeChild(x);for(const ot of gt)ot.parentNode&&ot.parentNode.removeChild(ot)},a.attach(st)})},q=(i,r)=>{const c=g.isSwipeBack();l.trigger(i,r),l.get(r).then(p=>{if(r==="in"&&g.onPageEnter(),!p)return;if(c){r==="out"&&p.from&&!k(p.from)&&L(p.from),m=null,w=null;return}if(r!=="in")return;const{from:A,to:M}=s(p.from,p.to),D=Yt(A,M,S()),J=m,N=w;m=null,w=null,!(!D||!J||!N)&&Ot(D,p.from,p.to,J,N)})},Lt=(i,r)=>{const c=y.get(i);if(!c)return;const p=c.intent==="hidden";if(c.intent="hidden",c.savedCss===null&&(c.savedCss=i.style.cssText),c.vis.setDisplay(c.computedDisplay||"block",!0),i.style.position="absolute",i.style.width="100%",i.style.left="0",p)return;const A=d(i);m={element:i,parent:A.parent,nextSibling:A.nextSibling,mode:"hidden"};const M=i.getAttribute("data-ssgoi-transition")??r;q(M,"out")},_t=(i,r)=>{const c=y.get(i);if(!c||c.intent==="visible")return;c.intent="visible",C(i,c),c.savedCss!==null&&(i.style.cssText=c.savedCss,c.visibleDisplay?c.vis.setDisplay(c.visibleDisplay,!1):c.vis.setDisplay(null)),O(i,r),w={element:i,parent:i.parentElement,nextSibling:i.nextElementSibling};const p=i.getAttribute("data-ssgoi-transition")??r;q(p,"in")},Dt=(i,r,c)=>{const p=y.get(i);if(p&&(p.vis.stop(),y.delete(i),E.delete(i),p.intent==="hidden")){(m==null?void 0:m.element)===i&&(m=null),(w==null?void 0:w.element)===i&&(w=null);return}const A=c??d(i);m={element:i,parent:A.parent,nextSibling:A.nextSibling,mode:"unmount"};const M=i.getAttribute("data-ssgoi-transition")??r;q(M,"out")},ft=new WeakSet,ht=(i,r)=>{if(ft.has(r))return;ft.add(r),f(r);const c=re(r,{onHide:()=>Lt(r,i),onShow:()=>_t(r,i)}),p={vis:c,savedCss:null,intent:c.isHidden?"hidden":"visible",visibleDisplay:"",computedDisplay:"block"};y.set(r,p),c.isHidden||(C(r,p),O(r,i),w={element:r,parent:r.parentElement,nextSibling:r.nextElementSibling},q(i,"in")),ie(r,A=>Dt(r,i,A))},pt=new Map;return{register:ht,refFor:i=>{let r=pt.get(i);return r||(r=c=>{c&&ht(i,c)},pt.set(i,r)),r}}}const xt="data-ssgoi-root",ae=`[${xt}]`,at="data-ssgoi-transition",At=`[${at}]`,ue="[data-ssgoi-clone]";function de(){return typeof MutationObserver<"u"&&typeof HTMLElement<"u"&&typeof Node<"u"}function fe(t){return t.nodeType===Node.ELEMENT_NODE}function he(t){return t instanceof HTMLElement}function pe(t,n){if(!de())return()=>{};t.setAttribute(xt,"");const e=l=>l.closest(ae)===t,s=l=>{if(!he(l)||!e(l)||l.closest(ue))return;const u=l.getAttribute(at);u!==null&&n.register(u,l)},o=l=>{if(fe(l)){l.matches(At)&&s(l);for(const u of l.querySelectorAll(At))s(u)}},a=new MutationObserver(l=>{for(const u of l){if(u.type==="attributes"){s(u.target);continue}for(const g of u.addedNodes)o(g)}});return a.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[at]}),o(t),()=>a.disconnect()}exports.Animation=Q.Animation;exports.MultiAnimation=Q.MultiAnimation;exports.WebAnimation=Q.WebAnimation;exports.HostAnimation=Mt;exports.createSggoiTransitionContext=le;exports.observeSsgoiTransitions=pe;
1
+ "use strict";var Wt=Object.defineProperty;var Ft=(t,n,e)=>n in t?Wt(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var q=(t,n,e)=>Ft(t,typeof n!="symbol"?n+"":n,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const nt=require("./multi-animation-6124HEke.cjs");class At extends nt.Animation{constructor(){super(...arguments);q(this,"child",null);q(this,"_state","idle");q(this,"_settled",!1);q(this,"listeners",new Set)}attach(e){const i=this.child;if(this.child=e,this._settled=!1,i){const l=i.getPose();i.complete(),e.matchInto(l)}e.playbackRate=this.playbackRate;const o=e.onComplete;e.onComplete=()=>{o==null||o(),this.child===e&&(this.child=null,this._state="idle",this._settled=!0),this.notify()};const r=e.onUpdate;e.onUpdate=l=>{var u;r==null||r(l),(u=this.onUpdate)==null||u.call(this,l),this.notify()},this._state==="paused"?e.pause():this._state==="reversing"?e.reverse():(this._state="playing",e.play()),this.notify()}play(){var e;this._state="playing",this._settled=!1,(e=this.child)==null||e.play(),this.notify()}reverse(){var e;this._state="reversing",this._settled=!1,(e=this.child)==null||e.reverse(),this.notify()}pause(){var e;this._state="paused",(e=this.child)==null||e.pause(),this.notify()}complete(){var e;(e=this.child)==null||e.complete(),this.notify()}get isAnimating(){var e;return((e=this.child)==null?void 0:e.isAnimating)??!1}get isPaused(){return this._state==="paused"}get isComplete(){return this._settled&&!this.child}get isReversing(){var e;return((e=this.child)==null?void 0:e.isReversing)??this._state==="reversing"}get progress(){var e;return((e=this.child)==null?void 0:e.progress)??0}findTimeForProgress(e){var i;return((i=this.child)==null?void 0:i.findTimeForProgress(e))??null}get playbackRate(){return super.playbackRate}set playbackRate(e){super.playbackRate=e,this.child&&(this.child.playbackRate=e),this.notify()}getPose(){var e;return((e=this.child)==null?void 0:e.getPose())??[]}getTimeline(){var e;return((e=this.child)==null?void 0:e.getTimeline())??[]}matchInto(e){var i;(i=this.child)==null||i.matchInto(e)}get activeChild(){return this.child}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notify(){for(const e of this.listeners)e()}}const Bt=(t,n)=>{var e;t.style.position="absolute",t.style.width="100%",t.style.top=`${-1*(((e=n==null?void 0:n.scrollOffset)==null?void 0:e.y)??0)}px`,t.style.left="0"},St=new Set(["auto","scroll","overlay"]),zt=t=>{let n=t.parentElement;for(;n&&n!==document.body;){const e=window.getComputedStyle(n);if(St.has(e.overflowY)||St.has(e.overflowX))return n;n=n.parentElement}return document.documentElement},Kt=t=>{let n=t.parentElement;for(;n&&n!==document.body;){const e=window.getComputedStyle(n).position;if(e==="relative"||e==="absolute"||e==="fixed"||e==="sticky")return n;n=n.parentElement}return document.body};function Xt(t){const n=Object.keys(t);return Promise.all(n.map(e=>t[e])).then(e=>{const i={};return n.forEach((o,r)=>{i[o]=e[r]}),i})}const $t=1e6,wt=100,qt=10,Ut=1;function Vt(t){const n=t.trim(),e=n.indexOf("#"),i=n.indexOf("?"),o=[e,i].filter(r=>r>=0).reduce((r,l)=>Math.min(r,l),n.length);return n.slice(0,o)}function G(t){const n=Vt(t);try{if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n))return G(new URL(n).pathname)}catch{}const i=(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/");return(i.length>1?i.replace(/\/+$/g,""):i)||"/"}function Gt(t){const n=t.trim();return n==="*"?"/**":G(n)}function ut(t){return t==="/"?[]:t.slice(1).split("/")}function Yt(t){return t.startsWith(":")||t.startsWith("[")&&t.endsWith("]")||t.startsWith("{")&&t.endsWith("}")}function Ct(t,n){const e=G(t),i=Gt(n);if(e===i)return{matched:!0,specificity:$t+ut(i).length*wt,pattern:n};const o=ut(e),r=ut(i);let l=0;for(let u=0;u<r.length;u++){const y=r[u],d=o[u],S=u===r.length-1;if(y==="**")return{matched:S&&o.length>=u,specificity:l,pattern:n};if(d===void 0||y===void 0)return{matched:!1,specificity:0,pattern:n};if(y==="*"){l+=Ut;continue}if(Yt(y)){l+=qt;continue}if(y!==d)return{matched:!1,specificity:0,pattern:n};l+=wt}return{matched:o.length===r.length,specificity:l,pattern:n}}function I(t,n){const e=typeof n=="string"?[n]:n;let i=null;for(const o of e){const r=Ct(t,o);r.matched&&(!i||r.specificity>i.specificity)&&(i=r)}return i}function Zt(t,n){return Ct(t,n).matched}const jt=768,Qt=10,Jt=10;function te(t={}){const{preserveScroll:n=h=>h,resolvePath:e=h=>h}=t,i=typeof n=="function"?n:()=>n;let o=null,r=!1,l=!1;const u=()=>{const h=(o==null?void 0:o.clientWidth)??0,m=h>0?h:typeof window<"u"?window.innerWidth:0;return m>0&&m<jt},y=()=>(l||(r=u(),l=!0),r),d=h=>{var _;const m=e(h),b=i(y());if(b===!1)return{preserves:!1,shared:!1,storageKey:`path:${m}`};if(b===!0)return{preserves:!0,shared:!1,storageKey:`path:${m}`};const w=((_=b.exclude)==null?void 0:_.some(F=>Zt(m,F)))??!1,E=!w&&!!b.key;return{preserves:!w,shared:E,storageKey:E?`shared:${b.key}`:`path:${m}`}},S=h=>d(h).preserves;let g=null;const f=new Map;let x=null,A=!1,C=0;const k=()=>{o&&x&&!A&&f.set(d(x).storageKey,{x:o.scrollLeft,y:o.scrollTop})},X=h=>{if(!o)return;const m=d(h);if(m.preserves&&m.shared&&!f.has(m.storageKey))return;const b=m.preserves&&f.has(m.storageKey)?f.get(m.storageKey):{x:0,y:0};let w=0;const E=()=>{if(!o)return;o.scrollTo({top:b.y,left:b.x}),!(Math.abs(o.scrollTop-b.y)<1&&Math.abs(o.scrollLeft-b.x)<1)&&w<Qt&&(w++,requestAnimationFrame(E))};requestAnimationFrame(E)};return{initializeContext:(h,m)=>{A=!0;const b=++C;g=h,o||(o=zt(h),r=u(),l=!0,typeof ResizeObserver<"u"&&new ResizeObserver(()=>{r=u()}).observe(o),(o===document.documentElement?window:o).addEventListener("scroll",k,{passive:!0})),x=m,X(m);let w=0;const E=()=>{b===C&&(w++,w>=Jt?A=!1:requestAnimationFrame(E))};requestAnimationFrame(E)},calculateScrollOffset:(h,m)=>{const b=h?d(h).storageKey:null,w=b&&f.has(b)?f.get(b):{x:0,y:0},E=m?d(m):null,_=E!=null&&E.preserves?E.storageKey:null,F=_&&f.has(_)?f.get(_):{x:0,y:0};return{x:-F.x+w.x,y:-F.y+w.y}},evictScrollPosition:h=>{f.delete(d(h).storageKey)},shouldPreserve:S,getScrollContainer:()=>o,getPositionedParentElement:()=>g?Kt(g):document.body,getScrollPosition:h=>{const m=h?d(h).storageKey:null;return m&&f.has(m)?f.get(m):{x:0,y:0}},getIsMobile:y}}const Et=30,Tt=8,Pt=1.2,xt=30,ee=600;function ne(){let t=null,n=!1,e=!1,i=null,o=null,r=!1;const l=(p,T)=>{for(let P=0;P<p.length;P++){const O=p.item(P);if(O&&O.identifier===T)return O}return null},u=()=>{i!==null&&(clearTimeout(i),i=null)},y=()=>{o!==null&&(clearTimeout(o),o=null)},d=()=>{n=!0,e=!0,u(),y(),i=setTimeout(()=>{n=!1,e=!1,i=null},ee)},S=p=>{if(p.touches.length!==1){t=null;return}const T=p.touches.item(0);if(!T){t=null;return}const P=window.innerWidth,O=T.clientX<=Et,R=T.clientX>=P-Et;if(!O&&!R){t=null;return}t={identifier:T.identifier,startX:T.clientX,startY:T.clientY,fromLeftEdge:O,moved:!1}},g=p=>{if(!t)return;if(p.touches.length!==1){t=null;return}const T=l(p.touches,t.identifier);if(!T){t=null;return}const P=T.clientX-t.startX,O=T.clientY-t.startY,R=Math.abs(P),L=Math.abs(O);if(L>Tt&&L>R*Pt){t=null;return}const h=t.fromLeftEdge?P>0:P<0;R>Tt&&R>L*Pt&&h&&(t.moved=!0)},f=p=>{if(!t)return;const T=l(p.changedTouches,t.identifier);if(!T){t=null;return}const P=T.clientX-t.startX,O=t.fromLeftEdge?P>0:P<0;if(t.moved&&O&&Math.abs(P)>=xt){d(),t=null;return}t.moved&&Math.abs(P)>=xt&&d(),t=null},x=()=>{t&&(t.moved&&d(),t=null)};return{initialize:()=>{if(typeof window>"u"||r)return;r=!0;const p={passive:!0,capture:!0};window.addEventListener("touchstart",S,p),window.addEventListener("touchmove",g,p),window.addEventListener("touchend",f,p),window.addEventListener("touchcancel",x,p)},destroy:()=>{if(typeof window>"u"||!r)return;r=!1;const p={capture:!0};window.removeEventListener("touchstart",S,p),window.removeEventListener("touchmove",g,p),window.removeEventListener("touchend",f,p),window.removeEventListener("touchcancel",x,p),u(),y(),t=null,n=!1,e=!1},isSwipeBack:()=>{const p=n||e;return p&&u(),p},onPageEnter:()=>{n=!1,u(),y(),o=setTimeout(()=>{e=!1,o=null},0)}}}function ie(t,n){return n?t.priority!==n.priority?t.priority>n.priority:t.specificity!==n.specificity?t.specificity>n.specificity:t.ruleIndex<n.ruleIndex:!0}function se(t,n,e,i){let o=null;return e.forEach((r,l)=>{const u=r.priority??0;let y=null;if(r.on!==void 0){const d=r.except!==void 0&&I(t,r.except)!==null,S=r.except!==void 0&&I(n,r.except)!==null,g=d?null:I(t,r.on),f=S?null:I(n,r.on);if(g||f){const x=!g&&f?"forward":g&&!f?"backward":i;y={transition:r.transition,direction:x,ruleIndex:l,priority:u,specificity:Math.max((g==null?void 0:g.specificity)??0,(f==null?void 0:f.specificity)??0),reason:!g&&f?"on-enter":g&&!f?"on-leave":"on-history"}}}else if(r.ordered!==void 0){let d=-1,S=-1,g=-1,f=-1;r.ordered.forEach((x,A)=>{const C=I(t,x);C&&C.specificity>g&&(d=A,g=C.specificity);const k=I(n,x);k&&k.specificity>f&&(S=A,f=k.specificity)}),d>=0&&S>=0&&d!==S&&(y={transition:r.transition,direction:d<S?"forward":"backward",ruleIndex:l,priority:u,specificity:g+f,reason:"ordered"})}else{const d=I(t,r.from),S=I(n,r.to),g=r.bidirectional===!1?null:I(t,r.to),f=r.bidirectional===!1?null:I(n,r.from),x=d&&S,A=g&&f;if(x||A){const C=x?d.specificity+S.specificity:-1,k=A?g.specificity+f.specificity:-1,X=x&&A&&C===k?i:C>=k?"forward":"backward";y={transition:r.transition,direction:X,ruleIndex:l,priority:u,specificity:Math.max(C,k),reason:"pair"}}}y&&ie(y,o)&&(o=y)}),o}function oe(){const t=[];let n=!1;const e=()=>{n=!0};return typeof window<"u"&&window.addEventListener("popstate",e),{resolve(i,o){const r=G(i),l=G(o);if(t.length===0)t.push(r);else if(t[t.length-1]!==r){const d=t.lastIndexOf(r);d>=0?t.splice(d+1):t.push(r)}const u=t[t.length-2],y=n||u===l?"backward":"forward";if(n=!1,y==="backward"){const d=t.lastIndexOf(l);d>=0?t.splice(d+1):t.push(l)}else t[t.length-1]!==l&&t.push(l);return y},dispose(){typeof window<"u"&&window.removeEventListener("popstate",e)}}}function re(){let t=null;function n(){var i,o;t&&((i=t.outResolve)==null||i.call(t,null),(o=t.inResolve)==null||o.call(t,null),t=null)}function e(){if(t!=null&&t.from&&(t!=null&&t.to)&&(t!=null&&t.outResolve)&&(t!=null&&t.inResolve)){if(t.from===t.to){n();return}const i={from:t.from,to:t.to};t.outResolve(i),t.inResolve(i),t=null}}return{trigger(i,o){var l;o==="out"&&(t==null?void 0:t.to)===i&&!t.from&&((l=t.inResolve)==null||l.call(t,null),t={}),t&&(o==="out"&&t.from&&t.from!==i||o==="in"&&t.to&&t.to!==i)&&n(),t||(t={}),o==="out"?t.from=i:t.to=i},get(i){return new Promise(o=>{t||(t={}),i==="out"?t.outResolve=o:t.inResolve=o,e()})}}}const V=new Map;let J=null,Rt=!1;function Lt(t,n){if(t instanceof HTMLElement&&V.has(t)&&!t.isConnected){const e=V.get(t);V.delete(t),queueMicrotask(()=>e(n))}for(const e of Array.from(t.childNodes))Lt(e,n)}function ce(){if(Rt||typeof document>"u")return;Rt=!0,J=new MutationObserver(n=>{for(const e of n){const i={parent:e.target,nextSibling:e.nextSibling};for(const o of Array.from(e.removedNodes))Lt(o,i)}});const t=()=>{J==null||J.observe(document.body,{childList:!0,subtree:!0})};document.body?t():document.addEventListener("DOMContentLoaded",t,{once:!0})}function le(t,n){return ce(),V.set(t,n),()=>{V.delete(t)}}const dt=new WeakMap;let tt=null;const et="none !important";function U(t){const n=t.style.getPropertyValue("display");return t.style.getPropertyPriority("display")?`${n} !important`:n}function ae(){return tt||(tt=new MutationObserver(t=>{for(const n of t){const e=n.target,i=dt.get(e);if(!i)continue;const o=U(e);o!==i.accounted&&(i.accounted=o,o===et?(i.reactHidden=!0,i.onHide()):o!=="none"&&i.reactHidden&&(i.reactHidden=!1,i.onShow()))}}),tt)}function ue(t,n){const e=U(t),i={accounted:e,reactHidden:e===et,onHide:n.onHide,onShow:n.onShow};return dt.set(t,i),ae().observe(t,{attributes:!0,attributeFilter:["style"]}),{get isHidden(){return U(t)===et},setDisplay(o,r=!1){o===null?t.style.removeProperty("display"):t.style.setProperty("display",o,r?"important":""),i.accounted=U(t)},sync(){i.accounted=U(t),i.reactHidden=i.accounted===et},stop(){dt.delete(t)}}}function de(t,n={}){const{transitions:e=[],middleware:i=(s,c)=>({from:s,to:c}),preserveScroll:o=s=>s}=t,r=n.host??new At,l=re(),u=oe(),y=typeof e=="function"?e:()=>e,d=ne();d.initialize();const S=new Map,g=s=>{let c=S.get(s);return c===void 0&&(c=i(s,s).from,S.set(s,c)),c},{initializeContext:f,calculateScrollOffset:x,evictScrollPosition:A,shouldPreserve:C,getScrollContainer:k,getPositionedParentElement:X,getScrollPosition:p,getIsMobile:T}=te({preserveScroll:o,resolvePath:g}),P=new Map,O=()=>{const s=T();let c=P.get(s);return c||(c=y({isMobile:s}),P.set(s,c)),c};let R=null,L=null;const h=new WeakMap,m=s=>{h.set(s,{parent:s.parentNode,nextSibling:s.nextSibling})},b=s=>{const c=h.get(s);return c||{parent:s.parentNode,nextSibling:s.nextSibling}},w=new WeakMap,E=new WeakMap;let _=0;const F=s=>{const c=typeof getComputedStyle<"u"?getComputedStyle(s).display:"";return c&&c!=="none"?c:"block"},Y=(s,c)=>{c.visibleDisplay=s.style.getPropertyValue("display"),c.computedDisplay=F(s)},ht=(s,c)=>{if(E.get(s)!==c)return;E.delete(s);const a=w.get(s);a&&(a.savedCss!==null&&(s.style.cssText=a.savedCss,a.savedCss=null),a.intent==="hidden"?a.vis.setDisplay("none",!0):a.visibleDisplay?(a.vis.setDisplay(a.visibleDisplay,!1),Y(s,a)):(a.vis.setDisplay(null),Y(s,a)))},kt=(s,c,a,v,M,H)=>{const B=M.element,N=H.element,W=(M.mode??"unmount")==="hidden",{parent:z,nextSibling:st}=M.parent?{parent:M.parent,nextSibling:M.nextSibling}:b(B),j=x(a,v),ot={direction:c,scrollOffset:j,from:{scroll:p(a)},to:{scroll:p(v)},get scrollingElement(){return k()||document.documentElement},get positionedParent(){return X()}};let D;if(W){D=B,D.style.top=`${-1*((j==null?void 0:j.y)??0)}px`;const K=w.get(N);K&&K.savedCss===null&&(K.savedCss=N.style.cssText)}else D=B,Bt(D,ot);C(a)||A(a);const Q=W?++_:0;W&&(E.set(N,Q),E.set(B,Q));const gt=Promise.resolve(D),vt=Promise.resolve(N),bt=[],Nt={from:gt,to:vt,context:ot,createElement:((K,rt="div")=>{const $=document.createElement(rt);return $.setAttribute("data-ssgoi-id",K),bt.push($),$})},Ht=Promise.resolve(s.prepare?s.prepare(Nt):{});Xt({from:gt,to:vt,extras:Ht}).then(({from:K,to:rt,extras:$})=>{!W&&z&&(st&&z.contains(st)?z.insertBefore(D,st):z.appendChild(D));const ct=s.animation({from:K,to:rt,context:ot,...$}),lt=ct.onComplete;ct.onComplete=()=>{lt==null||lt(),W?(ht(B,Q),ht(N,Q)):D.parentNode&&D.parentNode.removeChild(D);for(const at of bt)at.parentNode&&at.parentNode.removeChild(at)},r.attach(ct)})},Z=(s,c)=>{const a=d.isSwipeBack();l.trigger(s,c),l.get(c).then(v=>{if(c==="in"&&d.onPageEnter(),!v)return;if(a&&c==="in"){const z=i(v.from,v.to);u.resolve(z.from,z.to)}if(a){c==="out"&&v.from&&!C(v.from)&&A(v.from),R=null,L=null;return}if(c!=="in")return;const{from:M,to:H}=i(v.from,v.to),B=u.resolve(M,H),N=se(M,H,O(),B),it=R,W=L;R=null,L=null,!(!N||!it||!W)&&kt(N.transition,N.direction,v.from,v.to,it,W)})},_t=(s,c)=>{const a=w.get(s);if(!a)return;const v=a.intent==="hidden";if(a.intent="hidden",a.savedCss===null&&(a.savedCss=s.style.cssText),a.vis.setDisplay(a.computedDisplay||"block",!0),s.style.position="absolute",s.style.width="100%",s.style.left="0",v)return;const M=b(s);R={element:s,parent:M.parent,nextSibling:M.nextSibling,mode:"hidden"};const H=s.getAttribute("data-ssgoi-transition")??c;Z(H,"out")},Dt=(s,c)=>{const a=w.get(s);if(!a||a.intent==="visible")return;a.intent="visible",Y(s,a),a.savedCss!==null&&(s.style.cssText=a.savedCss,a.visibleDisplay?a.vis.setDisplay(a.visibleDisplay,!1):a.vis.setDisplay(null)),f(s,c),L={element:s,parent:s.parentElement,nextSibling:s.nextElementSibling};const v=s.getAttribute("data-ssgoi-transition")??c;Z(v,"in")},It=(s,c,a)=>{const v=w.get(s);if(v&&(v.vis.stop(),w.delete(s),E.delete(s),v.intent==="hidden")){(R==null?void 0:R.element)===s&&(R=null),(L==null?void 0:L.element)===s&&(L=null);return}const M=a??b(s);R={element:s,parent:M.parent,nextSibling:M.nextSibling,mode:"unmount"};const H=s.getAttribute("data-ssgoi-transition")??c;Z(H,"out")},pt=new WeakSet,yt=(s,c)=>{if(pt.has(c))return;pt.add(c),m(c);const a=ue(c,{onHide:()=>_t(c,s),onShow:()=>Dt(c,s)}),v={vis:a,savedCss:null,intent:a.isHidden?"hidden":"visible",visibleDisplay:"",computedDisplay:"block"};w.set(c,v),a.isHidden||(Y(c,v),f(c,s),L={element:c,parent:c.parentElement,nextSibling:c.nextElementSibling},Z(s,"in")),le(c,M=>It(c,s,M))},mt=new Map;return{register:yt,refFor:s=>{let c=mt.get(s);return c||(c=a=>{a&&yt(s,a)},mt.set(s,c)),c}}}const Ot="data-ssgoi-root",fe=`[${Ot}]`,ft="data-ssgoi-transition",Mt=`[${ft}]`,he="[data-ssgoi-clone]";function pe(){return typeof MutationObserver<"u"&&typeof HTMLElement<"u"&&typeof Node<"u"}function ye(t){return t.nodeType===Node.ELEMENT_NODE}function me(t){return t instanceof HTMLElement}function ge(t,n){if(!pe())return()=>{};t.setAttribute(Ot,"");const e=l=>l.closest(fe)===t,i=l=>{if(!me(l)||!e(l)||l.closest(he))return;const u=l.getAttribute(ft);u!==null&&n.register(u,l)},o=l=>{if(ye(l)){l.matches(Mt)&&i(l);for(const u of l.querySelectorAll(Mt))i(u)}},r=new MutationObserver(l=>{for(const u of l){if(u.type==="attributes"){i(u.target);continue}for(const y of u.addedNodes)o(y)}});return r.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[ft]}),o(t),()=>r.disconnect()}exports.Animation=nt.Animation;exports.MultiAnimation=nt.MultiAnimation;exports.WebAnimation=nt.WebAnimation;exports.HostAnimation=At;exports.createSggoiTransitionContext=de;exports.observeSsgoiTransitions=ge;
@@ -1,5 +1,5 @@
1
1
  export { createSggoiTransitionContext } from './ssgoi-transition/create-ssgoi-transition-context';
2
2
  export { observeSsgoiTransitions } from './ssgoi-transition/observe-ssgoi-transitions';
3
3
  export { Animation, WebAnimation, MultiAnimation, HostAnimation, } from './animation';
4
- export type { SsgoiConfig, SsgoiContext, SsgoiPathTransition, SsgoiPathTransitionInput, TransitionConfig, PrepareArgs, AnimationFactoryArgs, CreateElement, SsgoiTransitionContext, Pose, Timeline, } from './types/index.ts';
4
+ export type { SsgoiConfig, SsgoiContext, SsgoiTransitionRule, SsgoiOnTransitionRule, SsgoiPairTransitionRule, SsgoiOrderedTransitionRule, PathPatterns, NavigationDirection, TransitionConfig, PrepareArgs, AnimationFactoryArgs, CreateElement, SsgoiTransitionContext, Pose, Timeline, } from './types/index.ts';
5
5
  //# sourceMappingURL=internal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/lib/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EACL,SAAS,EACT,YAAY,EACZ,cAAc,EACd,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,gBAAgB,EAChB,WAAW,EACX,oBAAoB,EACpB,aAAa,EACb,sBAAsB,EACtB,IAAI,EACJ,QAAQ,GACT,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/lib/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EACL,SAAS,EACT,YAAY,EACZ,cAAc,EACd,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,oBAAoB,EACpB,aAAa,EACb,sBAAsB,EACtB,IAAI,EACJ,QAAQ,GACT,MAAM,QAAQ,CAAC"}