import{b as j,t as v}from"./index.B4CClvyu.js";import{L as I}from"./scheduler.CapFD37H.js";import{w}from"./entry.D_R_cS-S.js";function z(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function M(e,f){j(e,1,1,()=>{f.delete(e.key)})}function C(e,f){e.f(),M(e,f)}function G(e,f,h,_,r,d,s,u,n,L,g,k){let c=e.length,l=d.length,i=c;const y={};for(;i--;)y[e[i].key]=i;const m=[],A=new Map,T=new Map,E=[];for(i=l;i--;){const t=k(r,d,i),o=h(t);let a=s.get(o);a?_&&E.push(()=>a.p(t,f)):(a=L(o,t),a.c()),A.set(o,m[i]=a),o in y&&T.set(o,Math.abs(i-y[o]))}const D=new Set,b=new Set;function p(t){v(t,1),t.m(u,g),s.set(t.key,t),g=t.first,l--}for(;c&&l;){const t=m[l-1],o=e[c-1],a=t.key,S=o.key;t===o?(g=t.first,c--,l--):A.has(S)?!s.has(a)||D.has(a)?p(t):b.has(S)?c--:T.get(a)>T.get(S)?(b.add(a),p(t)):(D.add(S),c--):(n(o,s),c--)}for(;c--;){const t=e[c];A.has(t.key)||n(t,s)}for(;l;)p(m[l-1]);return I(E),m}function N(e,f){const h={},_={},r={$$scope:1};let d=e.length;for(;d--;){const s=e[d],u=f[d];if(u){for(const n in s)n in u||(_[n]=1);for(const n in u)r[n]||(h[n]=u[n],r[n]=1);e[d]=u}else for(const n in s)r[n]=1}for(const s in _)s in h||(h[s]=void 0);return h}function V(e){return typeof e=="object"&&e!==null?e:{}}const x=20,B=1,F={currentPage:B,pageSize:x},Z=w(),q=w(),H=w([]),J=w(!0),K=w(F),O=w({shouldSave:!1,canSave:!1});export{x as D,V as a,K as b,Z as c,q as d,z as e,F as f,N as g,C as h,J as i,B as j,H as m,M as o,O as s,G as u};
