Enhance SvelteKit project by adding new API routes for dark mode toggling, updating existing route parameters, and improving type definitions. Refactor component imports and optimize asset handling for better performance and maintainability.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
var we=Object.defineProperty;var re=i=>{throw TypeError(i)};var De=(i,e,s)=>e in i?we(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var z=(i,e,s)=>De(i,typeof e!="symbol"?e+"":e,s),G=(i,e,s)=>e.has(i)||re("Cannot "+s);var t=(i,e,s)=>(G(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>e.has(i)?re("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),n=(i,e,s,r)=>(G(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s),b=(i,e,s)=>(G(i,e,"access private method"),s);import{aT as Fe,g as pe,aC as Ne,W as ge,b as Ae,aU as ne,Q as P,J as F,D as N,a4 as I,aV as ae,C as Se,L as Oe,O as Ye,aa as O,B as ve,S as J,am as K,aE as Ce,aW as ke,aX as he,aY as fe,aZ as oe,a_ as Ie,a$ as Me,c as be,b0 as de,b1 as Be,b2 as _e,b3 as xe,R as He,ar as Q,I as W,w as Le,P as Pe,b4 as le,b5 as Ve,a0 as We,b6 as qe,b7 as $e,b8 as X,K as Ue,E as ye,aF as je,F as ze,b9 as Z,G as H,ba as Ge,aq as Je,bb as Ke,af as Qe,p as Xe,a3 as Ze,a8 as et,bc as tt,m as st}from"./DScGFiBY.js";import{a as it,r as ce,h as ue,b as rt}from"./BfWekp-4.js";function nt(i){let e=0,s=ge(0),r;return()=>{Fe()&&(pe(s),Ne(()=>(e===0&&(r=Ae(()=>i(()=>ne(s)))),e+=1,()=>{P(()=>{e-=1,e===0&&(r==null||r(),r=void 0,ne(s))})})))}}var at=We|qe;function ht(i,e,s){new ft(i,e,s)}var l,M,T,A,y,m,d,E,R,S,D,Y,C,k,w,q,f,me,Ee,ee,V,te;class ft{constructor(e,s,r){h(this,f);z(this,"parent");z(this,"is_pending",!1);h(this,l);h(this,M,N?F:null);h(this,T);h(this,A);h(this,y);h(this,m,null);h(this,d,null);h(this,E,null);h(this,R,null);h(this,S,0);h(this,D,0);h(this,Y,!1);h(this,C,new Set);h(this,k,new Set);h(this,w,null);h(this,q,nt(()=>(n(this,w,ge(t(this,S))),()=>{n(this,w,null)})));n(this,l,e),n(this,T,s),n(this,A,o=>{var a=I;a.b=this,a.f|=ae,r(o)}),this.parent=I.b,n(this,y,Se(()=>{if(N){const o=t(this,M);Oe(),o.data===Ye?b(this,f,Ee).call(this):b(this,f,me).call(this)}else b(this,f,ee).call(this)},at)),N&&n(this,l,F)}defer_effect(e){ke(e,t(this,C),t(this,k))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!t(this,T).pending}update_pending_count(e){b(this,f,te).call(this,e),n(this,S,t(this,S)+e),!(!t(this,w)||t(this,Y))&&(n(this,Y,!0),P(()=>{n(this,Y,!1),t(this,w)&&He(t(this,w),t(this,S))}))}get_effect_pending(){return t(this,q).call(this),pe(t(this,w))}error(e){var s=t(this,T).onerror;let r=t(this,T).failed;if(!s&&!r)throw e;t(this,m)&&(Q(t(this,m)),n(this,m,null)),t(this,d)&&(Q(t(this,d)),n(this,d,null)),t(this,E)&&(Q(t(this,E)),n(this,E,null)),N&&(W(t(this,M)),Le(),W(Pe()));var o=!1,a=!1;const c=()=>{if(o){$e();return}o=!0,a&&Ve(),t(this,E)!==null&&K(t(this,E),()=>{n(this,E,null)}),b(this,f,V).call(this,()=>{J.ensure(),b(this,f,ee).call(this)})};P(()=>{try{a=!0,s==null||s(e,c),a=!1}catch(_){le(_,t(this,y)&&t(this,y).parent)}r&&n(this,E,b(this,f,V).call(this,()=>{J.ensure();try{return O(()=>{var _=I;_.b=this,_.f|=ae,r(t(this,l),()=>e,()=>c)})}catch(_){return le(_,t(this,y).parent),null}}))})}}l=new WeakMap,M=new WeakMap,T=new WeakMap,A=new WeakMap,y=new WeakMap,m=new WeakMap,d=new WeakMap,E=new WeakMap,R=new WeakMap,S=new WeakMap,D=new WeakMap,Y=new WeakMap,C=new WeakMap,k=new WeakMap,w=new WeakMap,q=new WeakMap,f=new WeakSet,me=function(){try{n(this,m,O(()=>t(this,A).call(this,t(this,l))))}catch(e){this.error(e)}},Ee=function(){const e=t(this,T).pending;e&&(this.is_pending=!0,n(this,d,O(()=>e(t(this,l)))),P(()=>{var s=n(this,R,document.createDocumentFragment()),r=ve();s.append(r),n(this,m,b(this,f,V).call(this,()=>(J.ensure(),O(()=>t(this,A).call(this,r))))),t(this,D)===0&&(t(this,l).before(s),n(this,R,null),K(t(this,d),()=>{n(this,d,null)}),this.is_pending=!1)}))},ee=function(){try{if(this.is_pending=this.has_pending_snippet(),n(this,D,0),n(this,S,0),n(this,m,O(()=>{t(this,A).call(this,t(this,l))})),t(this,D)>0){var e=n(this,R,document.createDocumentFragment());Ce(t(this,m),e);const s=t(this,T).pending;n(this,d,O(()=>s(t(this,l))))}else this.is_pending=!1}catch(s){this.error(s)}},V=function(e){var s=I,r=Me,o=be;he(t(this,y)),fe(t(this,y)),oe(t(this,y).ctx);try{return e()}catch(a){return Ie(a),null}finally{he(s),fe(r),oe(o)}},te=function(e){var s;if(!this.has_pending_snippet()){this.parent&&b(s=this.parent,f,te).call(s,e);return}if(n(this,D,t(this,D)+e),t(this,D)===0){this.is_pending=!1;for(const r of t(this,C))de(r,Be),_e(r);for(const r of t(this,k))de(r,xe),_e(r);t(this,C).clear(),t(this,k).clear(),t(this,d)&&K(t(this,d),()=>{n(this,d,null)}),t(this,R)&&(t(this,l).before(t(this,R)),n(this,R,null))}};function ct(i,e){var s=e==null?"":typeof e=="object"?e+"":e;s!==(i.__t??(i.__t=i.nodeValue))&&(i.__t=s,i.nodeValue=s+"")}function ot(i,e){return Te(i,e)}function ut(i,e){X(),e.intro=e.intro??!1;const s=e.target,r=N,o=F;try{for(var a=Ue(s);a&&(a.nodeType!==ye||a.data!==je);)a=ze(a);if(!a)throw Z;H(!0),W(a);const c=Te(i,{...e,anchor:a});return H(!1),c}catch(c){if(c instanceof Error&&c.message.split(`
|
||||
`).some(_=>_.startsWith("https://svelte.dev/e/")))throw c;return c!==Z&&console.warn("Failed to hydrate: ",c),e.recover===!1&&Ge(),X(),Je(s),H(!1),ot(i,e)}finally{H(r),W(o)}}const L=new Map;function Te(i,{target:e,anchor:s,props:r={},events:o,context:a,intro:c=!0}){X();var _=void 0,Re=Ke(()=>{var B=s??e.appendChild(ve());ht(B,{pending:()=>{}},u=>{Xe({});var p=be;if(a&&(p.c=a),o&&(r.$$events=o),N&&Ze(u,null),_=i(u,r)||{},N&&(I.nodes.end=F,F===null||F.nodeType!==ye||F.data!==et))throw tt(),Z;st()});var $=new Set,U=u=>{for(var p=0;p<u.length;p++){var g=u[p];if(!$.has(g)){$.add(g);var x=rt(g);for(const j of[e,document]){var v=L.get(j);v===void 0&&(v=new Map,L.set(j,v));var ie=v.get(g);ie===void 0?(j.addEventListener(g,ue,{passive:x}),v.set(g,1)):v.set(g,ie+1)}}}};return U(Qe(it)),ce.add(U),()=>{var x;for(var u of $)for(const v of[e,document]){var p=L.get(v),g=p.get(u);--g==0?(v.removeEventListener(u,ue),p.delete(u),p.size===0&&L.delete(v)):p.set(u,g)}ce.delete(U),B!==s&&((x=B.parentNode)==null||x.removeChild(B))}});return se.set(_,Re),_}let se=new WeakMap;function pt(i,e){const s=se.get(i);return s?(se.delete(i),s(e)):Promise.resolve()}export{nt as c,ut as h,ot as m,ct as s,pt as u};
|
||||
Reference in New Issue
Block a user