From 46e906f3a446591b274d997aaf24352364c40679 Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 16 Jul 2024 12:03:19 -0400 Subject: [PATCH] update github pages --- docs/_app/immutable/chunks/paths.39b26b8d.js | 1 - docs/_app/immutable/chunks/paths.ba30c16a.js | 1 + ...tons.26104b7f.js => singletons.769ca666.js} | 2 +- .../entry/{app.3e0404e0.js => app.d9283330.js} | 2 +- .../{start.cde55aba.js => start.d3ba4be7.js} | 2 +- .../nodes/{0.e9694829.js => 0.ed84363c.js} | 2 +- .../nodes/{1.977a3250.js => 1.3c17063c.js} | 2 +- .../nodes/{2.58a6dc6d.js => 2.633467c1.js} | 2 +- .../nodes/{4.915f1619.js => 4.bb82dabb.js} | 2 +- docs/_app/version.json | 2 +- docs/demo/elements/index.html | 16 ++++++++-------- docs/demo/fonts/index.html | 18 +++++++++--------- docs/demo/ig-story/index.html | 16 ++++++++-------- docs/index.html | 18 +++++++++--------- 14 files changed, 43 insertions(+), 43 deletions(-) delete mode 100644 docs/_app/immutable/chunks/paths.39b26b8d.js create mode 100644 docs/_app/immutable/chunks/paths.ba30c16a.js rename docs/_app/immutable/chunks/{singletons.26104b7f.js => singletons.769ca666.js} (97%) rename docs/_app/immutable/entry/{app.3e0404e0.js => app.d9283330.js} (90%) rename docs/_app/immutable/entry/{start.cde55aba.js => start.d3ba4be7.js} (99%) rename docs/_app/immutable/nodes/{0.e9694829.js => 0.ed84363c.js} (99%) rename docs/_app/immutable/nodes/{1.977a3250.js => 1.3c17063c.js} (92%) rename docs/_app/immutable/nodes/{2.58a6dc6d.js => 2.633467c1.js} (98%) rename docs/_app/immutable/nodes/{4.915f1619.js => 4.bb82dabb.js} (99%) diff --git a/docs/_app/immutable/chunks/paths.39b26b8d.js b/docs/_app/immutable/chunks/paths.39b26b8d.js deleted file mode 100644 index ebe7a32..0000000 --- a/docs/_app/immutable/chunks/paths.39b26b8d.js +++ /dev/null @@ -1 +0,0 @@ -var s;const a=((s=globalThis.__sveltekit_ykrcex)==null?void 0:s.base)??"";var e;const t=((e=globalThis.__sveltekit_ykrcex)==null?void 0:e.assets)??a;export{t as a,a as b}; diff --git a/docs/_app/immutable/chunks/paths.ba30c16a.js b/docs/_app/immutable/chunks/paths.ba30c16a.js new file mode 100644 index 0000000..c016468 --- /dev/null +++ b/docs/_app/immutable/chunks/paths.ba30c16a.js @@ -0,0 +1 @@ +var s;const e=((s=globalThis.__sveltekit_1oigf2w)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_1oigf2w)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/docs/_app/immutable/chunks/singletons.26104b7f.js b/docs/_app/immutable/chunks/singletons.769ca666.js similarity index 97% rename from docs/_app/immutable/chunks/singletons.26104b7f.js rename to docs/_app/immutable/chunks/singletons.769ca666.js index 534e145..c81516f 100644 --- a/docs/_app/immutable/chunks/singletons.26104b7f.js +++ b/docs/_app/immutable/chunks/singletons.769ca666.js @@ -1 +1 @@ -import{w as u}from"./index.fbc2e98a.js";import{a as b}from"./paths.39b26b8d.js";const v="1721145433850",A="sveltekit:snapshot",R="sveltekit:scroll",y="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1},_=location.origin;function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function g(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function T(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=g(e)}}function x(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!s||k(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===_&&e.hasAttribute("download");return{url:n,external:r,target:s,download:l}}function O(e){let t=null,n=null,s=null,r=null,l=null,o=null,a=e;for(;a&&a!==document.documentElement;)s===null&&(s=c(a,"preload-code")),r===null&&(r=c(a,"preload-data")),t===null&&(t=c(a,"keepfocus")),n===null&&(n=c(a,"noscroll")),l===null&&(l=c(a,"reload")),o===null&&(o=c(a,"replacestate")),a=g(a);function i(h){switch(h){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[s??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(o)}}function p(e){const t=u(e);let n=!0;function s(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function l(o){let a;return t.subscribe(i=>{(a===void 0||n&&i!==a)&&o(a=i)})}return{notify:s,set:r,subscribe:l}}function m(){const{set:e,subscribe:t}=u(!1);let n;async function s(){clearTimeout(n);try{const r=await fetch(`${b}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==v;return o&&(e(!0),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:s}}function k(e,t){return e.origin!==_||!e.pathname.startsWith(t)}function U(e){e.client}const L={url:p({}),page:p({}),navigating:u(null),updated:m()};export{y as I,f as P,R as S,A as a,x as b,O as c,L as d,U as e,T as f,I as g,k as i,_ as o,S as s}; +import{w as u}from"./index.fbc2e98a.js";import{a as b}from"./paths.ba30c16a.js";const v="1721145790170",A="sveltekit:snapshot",R="sveltekit:scroll",y="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1},_=location.origin;function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function g(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function T(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=g(e)}}function x(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!s||k(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===_&&e.hasAttribute("download");return{url:n,external:r,target:s,download:l}}function O(e){let t=null,n=null,s=null,r=null,l=null,o=null,a=e;for(;a&&a!==document.documentElement;)s===null&&(s=c(a,"preload-code")),r===null&&(r=c(a,"preload-data")),t===null&&(t=c(a,"keepfocus")),n===null&&(n=c(a,"noscroll")),l===null&&(l=c(a,"reload")),o===null&&(o=c(a,"replacestate")),a=g(a);function i(h){switch(h){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[s??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(o)}}function p(e){const t=u(e);let n=!0;function s(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function l(o){let a;return t.subscribe(i=>{(a===void 0||n&&i!==a)&&o(a=i)})}return{notify:s,set:r,subscribe:l}}function m(){const{set:e,subscribe:t}=u(!1);let n;async function s(){clearTimeout(n);try{const r=await fetch(`${b}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==v;return o&&(e(!0),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:s}}function k(e,t){return e.origin!==_||!e.pathname.startsWith(t)}function U(e){e.client}const L={url:p({}),page:p({}),navigating:u(null),updated:m()};export{y as I,f as P,R as S,A as a,x as b,O as c,L as d,U as e,T as f,I as g,k as i,_ as o,S as s}; diff --git a/docs/_app/immutable/entry/app.3e0404e0.js b/docs/_app/immutable/entry/app.d9283330.js similarity index 90% rename from docs/_app/immutable/entry/app.3e0404e0.js rename to docs/_app/immutable/entry/app.d9283330.js index fa1580e..c21b024 100644 --- a/docs/_app/immutable/entry/app.3e0404e0.js +++ b/docs/_app/immutable/entry/app.d9283330.js @@ -1 +1 @@ -import{s as q,a as B,e as d,c as U,i as w,d as h,b as j,o as W,f as z,g as F,h as G,j as D,k as m,l as H,m as J,n as K,t as M,p as I,q as E}from"../chunks/scheduler.295916e6.js";import{S as Q,i as X,t as p,c as L,a as g,g as P,b as v,d as O,m as y,e as R}from"../chunks/index.25f245b5.js";const Y="modulepreload",Z=function(o,e){return new URL(o,e).href},T={},k=function(e,n,i){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(f=>{if(f=Z(f,i),f in T)return;T[f]=!0;const t=f.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!i)for(let a=s.length-1;a>=0;a--){const u=s[a];if(u.href===f&&(!t||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${r}`))return;const c=document.createElement("link");if(c.rel=t?"stylesheet":Y,t||(c.as="script",c.crossOrigin=""),c.href=f,document.head.appendChild(c),t)return new Promise((a,u)=>{c.addEventListener("load",a),c.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${f}`)))})})).then(()=>e()).catch(f=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=f,window.dispatchEvent(t),!t.defaultPrevented)throw f})},re={};function $(o){let e,n,i;var s=o[1][0];function f(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=E(s,f(o)),o[12](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&y(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;p(l.$$.fragment,1,0,()=>{R(l,1)}),L()}s?(e=E(s,f(t)),t[12](e),v(e.$$.fragment),g(e.$$.fragment,1),y(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){t&&h(n),o[12](null),e&&R(e,t)}}}function x(o){let e,n,i;var s=o[1][0];function f(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=E(s,f(o)),o[11](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&y(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;p(l.$$.fragment,1,0,()=>{R(l,1)}),L()}s?(e=E(s,f(t)),t[11](e),v(e.$$.fragment),g(e.$$.fragment,1),y(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){t&&h(n),o[11](null),e&&R(e,t)}}}function ee(o){let e,n,i;var s=o[1][1];function f(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=E(s,f(o)),o[10](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&y(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){P();const l=e;p(l.$$.fragment,1,0,()=>{R(l,1)}),L()}s?(e=E(s,f(t)),t[10](e),v(e.$$.fragment),g(e.$$.fragment,1),y(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){t&&h(n),o[10](null),e&&R(e,t)}}}function V(o){let e,n=o[6]&&A(o);return{c(){e=z("div"),n&&n.c(),this.h()},l(i){e=F(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=G(e);n&&n.l(s),s.forEach(h),this.h()},h(){D(e,"id","svelte-announcer"),D(e,"aria-live","assertive"),D(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=A(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&h(e),n&&n.d()}}}function A(o){let e;return{c(){e=H(o[7])},l(n){e=J(n,o[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&K(e,n[7])},d(n){n&&h(e)}}}function te(o){let e,n,i,s,f;const t=[x,$],r=[];function l(a,u){return a[1][1]?0:1}e=l(o),n=r[e]=t[e](o);let c=o[5]&&V(o);return{c(){n.c(),i=B(),c&&c.c(),s=d()},l(a){n.l(a),i=U(a),c&&c.l(a),s=d()},m(a,u){r[e].m(a,u),w(a,i,u),c&&c.m(a,u),w(a,s,u),f=!0},p(a,[u]){let b=e;e=l(a),e===b?r[e].p(a,u):(P(),p(r[b],1,1,()=>{r[b]=null}),L(),n=r[e],n?n.p(a,u):(n=r[e]=t[e](a),n.c()),g(n,1),n.m(i.parentNode,i)),a[5]?c?c.p(a,u):(c=V(a),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null)},i(a){f||(g(n),f=!0)},o(a){p(n),f=!1},d(a){a&&(h(i),h(s)),r[e].d(a),c&&c.d(a)}}}function ne(o,e,n){let{stores:i}=e,{page:s}=e,{constructors:f}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:c=null}=e;j(i.page.notify);let a=!1,u=!1,b=null;W(()=>{const _=i.page.subscribe(()=>{a&&(n(6,u=!0),M().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,a=!0),_});function N(_){I[_?"unshift":"push"](()=>{t[1]=_,n(0,t)})}function S(_){I[_?"unshift":"push"](()=>{t[0]=_,n(0,t)})}function C(_){I[_?"unshift":"push"](()=>{t[0]=_,n(0,t)})}return o.$$set=_=>{"stores"in _&&n(8,i=_.stores),"page"in _&&n(9,s=_.page),"constructors"in _&&n(1,f=_.constructors),"components"in _&&n(0,t=_.components),"form"in _&&n(2,r=_.form),"data_0"in _&&n(3,l=_.data_0),"data_1"in _&&n(4,c=_.data_1)},o.$$.update=()=>{o.$$.dirty&768&&i.page.set(s)},[t,f,r,l,c,a,u,b,i,s,N,S,C]}class oe extends Q{constructor(e){super(),X(this,e,ne,te,q,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>k(()=>import("../nodes/0.e9694829.js"),["../nodes/0.e9694829.js","../chunks/scheduler.295916e6.js","../chunks/index.25f245b5.js","../chunks/paths.39b26b8d.js","../assets/0.bffe2be9.css"],import.meta.url),()=>k(()=>import("../nodes/1.977a3250.js"),["../nodes/1.977a3250.js","../chunks/scheduler.295916e6.js","../chunks/index.25f245b5.js","../chunks/singletons.26104b7f.js","../chunks/index.fbc2e98a.js","../chunks/paths.39b26b8d.js"],import.meta.url),()=>k(()=>import("../nodes/2.58a6dc6d.js"),["../nodes/2.58a6dc6d.js","../chunks/scheduler.295916e6.js","../chunks/index.25f245b5.js","../chunks/each.e59479a4.js","../chunks/transform.eb387b54.js","../chunks/index.fbc2e98a.js","../chunks/viewport.863a0239.js","../assets/2.91cf89d1.css"],import.meta.url),()=>k(()=>import("../nodes/3.ab638b1e.js"),["../nodes/3.ab638b1e.js","../chunks/scheduler.295916e6.js","../chunks/index.25f245b5.js","../assets/3.83b17d31.css"],import.meta.url),()=>k(()=>import("../nodes/4.915f1619.js"),["../nodes/4.915f1619.js","../chunks/scheduler.295916e6.js","../chunks/index.25f245b5.js","../chunks/each.e59479a4.js","../chunks/transform.eb387b54.js","../chunks/paths.39b26b8d.js","../assets/4.694798f8.css"],import.meta.url),()=>k(()=>import("../nodes/5.b53e810c.js"),["../nodes/5.b53e810c.js","../chunks/scheduler.295916e6.js","../chunks/index.25f245b5.js","../chunks/each.e59479a4.js","../chunks/viewport.863a0239.js","../chunks/index.fbc2e98a.js","../assets/5.433bfe17.css"],import.meta.url)],le=[],fe={"/":[-3],"/demo/elements":[3],"/demo/fonts":[4],"/demo/ig-story":[5]},ce={handleError:({error:o})=>{console.error(o)}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads}; +import{s as q,a as B,e as d,c as U,i as w,d as h,b as j,o as W,f as z,g as F,h as G,j as D,k as m,l as H,m as J,n as K,t as M,p as I,q as E}from"../chunks/scheduler.295916e6.js";import{S as Q,i as X,t as p,c as L,a as g,g as P,b as v,d as O,m as y,e as R}from"../chunks/index.25f245b5.js";const Y="modulepreload",Z=function(o,e){return new URL(o,e).href},T={},k=function(e,n,i){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(f=>{if(f=Z(f,i),f in T)return;T[f]=!0;const t=f.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!i)for(let a=s.length-1;a>=0;a--){const u=s[a];if(u.href===f&&(!t||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${r}`))return;const c=document.createElement("link");if(c.rel=t?"stylesheet":Y,t||(c.as="script",c.crossOrigin=""),c.href=f,document.head.appendChild(c),t)return new Promise((a,u)=>{c.addEventListener("load",a),c.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${f}`)))})})).then(()=>e()).catch(f=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=f,window.dispatchEvent(t),!t.defaultPrevented)throw f})},re={};function $(o){let e,n,i;var s=o[1][0];function f(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=E(s,f(o)),o[12](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&y(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;p(l.$$.fragment,1,0,()=>{R(l,1)}),L()}s?(e=E(s,f(t)),t[12](e),v(e.$$.fragment),g(e.$$.fragment,1),y(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){t&&h(n),o[12](null),e&&R(e,t)}}}function x(o){let e,n,i;var s=o[1][0];function f(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=E(s,f(o)),o[11](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&y(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;p(l.$$.fragment,1,0,()=>{R(l,1)}),L()}s?(e=E(s,f(t)),t[11](e),v(e.$$.fragment),g(e.$$.fragment,1),y(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){t&&h(n),o[11](null),e&&R(e,t)}}}function ee(o){let e,n,i;var s=o[1][1];function f(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=E(s,f(o)),o[10](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&y(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){P();const l=e;p(l.$$.fragment,1,0,()=>{R(l,1)}),L()}s?(e=E(s,f(t)),t[10](e),v(e.$$.fragment),g(e.$$.fragment,1),y(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){t&&h(n),o[10](null),e&&R(e,t)}}}function V(o){let e,n=o[6]&&A(o);return{c(){e=z("div"),n&&n.c(),this.h()},l(i){e=F(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=G(e);n&&n.l(s),s.forEach(h),this.h()},h(){D(e,"id","svelte-announcer"),D(e,"aria-live","assertive"),D(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=A(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&h(e),n&&n.d()}}}function A(o){let e;return{c(){e=H(o[7])},l(n){e=J(n,o[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&K(e,n[7])},d(n){n&&h(e)}}}function te(o){let e,n,i,s,f;const t=[x,$],r=[];function l(a,u){return a[1][1]?0:1}e=l(o),n=r[e]=t[e](o);let c=o[5]&&V(o);return{c(){n.c(),i=B(),c&&c.c(),s=d()},l(a){n.l(a),i=U(a),c&&c.l(a),s=d()},m(a,u){r[e].m(a,u),w(a,i,u),c&&c.m(a,u),w(a,s,u),f=!0},p(a,[u]){let b=e;e=l(a),e===b?r[e].p(a,u):(P(),p(r[b],1,1,()=>{r[b]=null}),L(),n=r[e],n?n.p(a,u):(n=r[e]=t[e](a),n.c()),g(n,1),n.m(i.parentNode,i)),a[5]?c?c.p(a,u):(c=V(a),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null)},i(a){f||(g(n),f=!0)},o(a){p(n),f=!1},d(a){a&&(h(i),h(s)),r[e].d(a),c&&c.d(a)}}}function ne(o,e,n){let{stores:i}=e,{page:s}=e,{constructors:f}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:c=null}=e;j(i.page.notify);let a=!1,u=!1,b=null;W(()=>{const _=i.page.subscribe(()=>{a&&(n(6,u=!0),M().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,a=!0),_});function N(_){I[_?"unshift":"push"](()=>{t[1]=_,n(0,t)})}function S(_){I[_?"unshift":"push"](()=>{t[0]=_,n(0,t)})}function C(_){I[_?"unshift":"push"](()=>{t[0]=_,n(0,t)})}return o.$$set=_=>{"stores"in _&&n(8,i=_.stores),"page"in _&&n(9,s=_.page),"constructors"in _&&n(1,f=_.constructors),"components"in _&&n(0,t=_.components),"form"in _&&n(2,r=_.form),"data_0"in _&&n(3,l=_.data_0),"data_1"in _&&n(4,c=_.data_1)},o.$$.update=()=>{o.$$.dirty&768&&i.page.set(s)},[t,f,r,l,c,a,u,b,i,s,N,S,C]}class oe extends Q{constructor(e){super(),X(this,e,ne,te,q,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>k(()=>import("../nodes/0.ed84363c.js"),["../nodes/0.ed84363c.js","../chunks/scheduler.295916e6.js","../chunks/index.25f245b5.js","../chunks/paths.ba30c16a.js","../assets/0.bffe2be9.css"],import.meta.url),()=>k(()=>import("../nodes/1.3c17063c.js"),["../nodes/1.3c17063c.js","../chunks/scheduler.295916e6.js","../chunks/index.25f245b5.js","../chunks/singletons.769ca666.js","../chunks/index.fbc2e98a.js","../chunks/paths.ba30c16a.js"],import.meta.url),()=>k(()=>import("../nodes/2.633467c1.js"),["../nodes/2.633467c1.js","../chunks/scheduler.295916e6.js","../chunks/index.25f245b5.js","../chunks/each.e59479a4.js","../chunks/transform.eb387b54.js","../chunks/index.fbc2e98a.js","../chunks/viewport.863a0239.js","../assets/2.91cf89d1.css"],import.meta.url),()=>k(()=>import("../nodes/3.ab638b1e.js"),["../nodes/3.ab638b1e.js","../chunks/scheduler.295916e6.js","../chunks/index.25f245b5.js","../assets/3.83b17d31.css"],import.meta.url),()=>k(()=>import("../nodes/4.bb82dabb.js"),["../nodes/4.bb82dabb.js","../chunks/scheduler.295916e6.js","../chunks/index.25f245b5.js","../chunks/each.e59479a4.js","../chunks/transform.eb387b54.js","../chunks/paths.ba30c16a.js","../assets/4.694798f8.css"],import.meta.url),()=>k(()=>import("../nodes/5.b53e810c.js"),["../nodes/5.b53e810c.js","../chunks/scheduler.295916e6.js","../chunks/index.25f245b5.js","../chunks/each.e59479a4.js","../chunks/viewport.863a0239.js","../chunks/index.fbc2e98a.js","../assets/5.433bfe17.css"],import.meta.url)],le=[],fe={"/":[-3],"/demo/elements":[3],"/demo/fonts":[4],"/demo/ig-story":[5]},ce={handleError:({error:o})=>{console.error(o)}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads}; diff --git a/docs/_app/immutable/entry/start.cde55aba.js b/docs/_app/immutable/entry/start.d3ba4be7.js similarity index 99% rename from docs/_app/immutable/entry/start.cde55aba.js rename to docs/_app/immutable/entry/start.d3ba4be7.js index 31e9c91..c705205 100644 --- a/docs/_app/immutable/entry/start.cde55aba.js +++ b/docs/_app/immutable/entry/start.d3ba4be7.js @@ -1,3 +1,3 @@ -import{o as me,t as we}from"../chunks/scheduler.295916e6.js";import{S as Ge,a as Je,I as V,g as De,f as Ce,b as _e,c as le,s as te,i as ye,d as H,o as Me,P as Ve,e as Ze}from"../chunks/singletons.26104b7f.js";import{b as G}from"../chunks/paths.39b26b8d.js";function Qe(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function et(t){return t.split("%25").map(decodeURI).join("%25")}function tt(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const nt=["href","pathname","search","searchParams","toString","toJSON"];function at(t,r){const f=new URL(t);for(const i of nt)Object.defineProperty(f,i,{get(){return r(),t[i]},enumerable:!0,configurable:!0});return rt(f),f}function rt(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const ot="/__data.json";function it(t){return t.replace(/\/$/,"")+ot}function st(...t){let r=5381;for(const f of t)if(typeof f=="string"){let i=f.length;for(;i;)r=r*33^f.charCodeAt(--i)}else if(ArrayBuffer.isView(f)){const i=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);let h=i.length;for(;h;)r=r*33^i[--h]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const Ke=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ae.delete(Se(t)),Ke(t,r));const ae=new Map;function ct(t,r){const f=Se(t,r),i=document.querySelector(f);if(i!=null&&i.textContent){const{body:h,...u}=JSON.parse(i.textContent),E=i.getAttribute("data-ttl");return E&&ae.set(f,{body:h,init:u,ttl:1e3*Number(E)}),Promise.resolve(new Response(h,u))}return window.fetch(t,r)}function lt(t,r,f){if(ae.size>0){const i=Se(t,f),h=ae.get(i);if(h){if(performance.now(){const h=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(i);if(h)return r.push({name:h[1],matcher:h[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const u=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(i);if(u)return r.push({name:u[1],matcher:u[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!i)return;const E=i.split(/\[(.+?)\](?!\])/);return"/"+E.map((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const d=ft.exec(g);if(!d)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,j,T,R,C]=d;return r.push({name:R,matcher:C,optional:!!j,rest:!!T,chained:T?m===1&&E[0]==="":!1}),T?"(.*?)":j?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:r}}function dt(t){return!/^\([^)]+\)$/.test(t)}function pt(t){return t.slice(1).split("/").filter(dt)}function ht(t,r,f){const i={},h=t.slice(1),u=h.filter(l=>l!==void 0);let E=0;for(let l=0;ld).join("/"),E=0),m===void 0){g.rest&&(i[g.name]="");continue}if(!g.matcher||f[g.matcher](m)){i[g.name]=m;const d=r[l+1],j=h[l+1];d&&!d.rest&&d.optional&&j&&g.chained&&(E=0),!d&&!j&&Object.keys(i).length===u.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return i}function ve(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function gt({nodes:t,server_loads:r,dictionary:f,matchers:i}){const h=new Set(r);return Object.entries(f).map(([l,[g,m,d]])=>{const{pattern:j,params:T}=ut(l),R={id:l,exec:C=>{const U=j.exec(C);if(U)return ht(U,T,i)},errors:[1,...d||[]].map(C=>t[C]),layouts:[0,...m||[]].map(E),leaf:u(g)};return R.errors.length=R.layouts.length=Math.max(R.errors.length,R.layouts.length),R});function u(l){const g=l<0;return g&&(l=~l),[g,t[l]]}function E(l){return l===void 0?l:[h.has(l),t[l]]}}function ze(t){try{return JSON.parse(sessionStorage[t])}catch{}}function qe(t,r){const f=JSON.stringify(r);try{sessionStorage[t]=f}catch{}}const mt=-1,wt=-2,_t=-3,yt=-4,vt=-5,bt=-6;function Et(t,r){if(typeof t=="number")return h(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const f=t,i=Array(f.length);function h(u,E=!1){if(u===mt)return;if(u===_t)return NaN;if(u===yt)return 1/0;if(u===vt)return-1/0;if(u===bt)return-0;if(E)throw new Error("Invalid input");if(u in i)return i[u];const l=f[u];if(!l||typeof l!="object")i[u]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],m=r==null?void 0:r[g];if(m)return i[u]=m(h(l[1]));switch(g){case"Date":i[u]=new Date(l[1]);break;case"Set":const d=new Set;i[u]=d;for(let R=1;Rr!=null)}const We=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...We];const kt=new Set([...We]);[...kt];async function Rt(t){var r;for(const f in t)if(typeof((r=t[f])==null?void 0:r.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([i,h])=>[i,await h])));return t}class ne{constructor(r,f){this.status=r,typeof f=="string"?this.body={message:f}:f?this.body=f:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class Fe{constructor(r,f){this.status=r,this.location=f}}const At="x-sveltekit-invalidated",It="x-sveltekit-trailing-slash",J=ze(Ge)??{},ee=ze(Je)??{};function be(t){J[t]=te()}function K(t){return location.href=t.href,new Promise(()=>{})}function Lt(t,r){var Ne;const f=gt(t),i=t.nodes[0],h=t.nodes[1];i(),h();const u=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let d={branch:[],error:null,url:null},j=!1,T=!1,R=!0,C=!1,U=!1,D=!1,z=!1,q,x=(Ne=history.state)==null?void 0:Ne[V];x||(x=Date.now(),history.replaceState({...history.state,[V]:x},"",location.href));const fe=J[x];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let F,W,Y;async function ke(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),s=Z(e,!0);g=null;const n=W={},o=s&&await pe(s);if(n===W&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},1,n);o.props.page!==void 0&&(F=o.props.page),q.$set(o.props)}}function Re(e){l.some(s=>s==null?void 0:s.snapshot)&&(ee[e]=l.map(s=>{var n;return(n=s==null?void 0:s.snapshot)==null?void 0:n.capture()}))}function Ae(e){var s;(s=ee[e])==null||s.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Ie(){be(x),qe(Ge,J),Re(x),qe(Je,ee)}async function re(e,{noScroll:s=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},p,v){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:s?te():null,keepfocus:o,redirect_count:p,details:{state:a,replaceState:n},nav_token:v,accepted:()=>{c&&(z=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:pe(e).then(s=>(s.type==="loaded"&&s.state.error&&(g=null),s))},g.promise}async function oe(...e){const n=f.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Pe(e){var o;d=e.state;const s=document.querySelector("style[data-sveltekit]");s&&s.remove(),F=e.props.page,q=new t.root({target:r,props:{...e.props,stores:H,components:l},hydrate:!0}),Ae(x);const n={from:null,to:{params:d.params,route:{id:((o=d.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(n)),T=!0}async function X({url:e,params:s,branch:n,status:o,error:a,route:c,form:p}){let v="never";for(const _ of n)(_==null?void 0:_.slash)!==void 0&&(v=_.slash);e.pathname=Qe(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:s,branch:n,error:a,route:c},props:{constructors:St(n).map(_=>_.node.component)}};p!==void 0&&(b.props.form=p);let y={},L=!F,A=0;for(let _=0;_(v.route=!0,w[O])}),params:new Proxy(o,{get:(w,O)=>(v.params.add(O),w[O])}),data:(c==null?void 0:c.data)??null,url:at(n,()=>{v.url=!0}),async fetch(w,O){let N;w instanceof Request?(N=w.url,O={body:w.method==="GET"||w.method==="HEAD"?void 0:await w.blob(),cache:w.cache,credentials:w.credentials,headers:w.headers,integrity:w.integrity,keepalive:w.keepalive,method:w.method,mode:w.mode,redirect:w.redirect,referrer:w.referrer,referrerPolicy:w.referrerPolicy,signal:w.signal,...O}):N=w;const M=new URL(N,n);return P(M.href),M.origin===n.origin&&(N=M.href.slice(n.origin.length)),T?lt(N,M.href,O):ct(N,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,s()}};p=await b.universal.load.call(null,_)??null,p=p?await Rt(p):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:v}:null,data:p??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(e,s,n,o,a){if(z)return!0;if(!o)return!1;if(o.parent&&e||o.route&&s||o.url&&n)return!0;for(const c of o.params)if(a[c]!==d.params[c])return!0;for(const c of o.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,s){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?s??null:null}async function pe({id:e,invalidating:s,url:n,params:o,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:v}=a,b=[...p,v];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let y=null;const L=d.url?e!==d.url.pathname+d.url.search:!1,A=d.route?a.id!==d.route.id:!1;let P=!1;const _=b.map((S,I)=>{var B;const k=d.branch[I],$=!!(S!=null&&S[0])&&((k==null?void 0:k.loader)!==S[1]||Oe(P,A,L,(B=k.server)==null?void 0:B.uses,o));return $&&(P=!0),$});if(_.some(Boolean)){try{y=await He(n,_)}catch(S){return ie({status:S instanceof ne?S.status:500,error:await Q(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(y.type==="redirect")return y}const w=y==null?void 0:y.nodes;let O=!1;const N=b.map(async(S,I)=>{var he;if(!S)return;const k=d.branch[I],$=w==null?void 0:w[I];if((!$||$.type==="skip")&&S[1]===(k==null?void 0:k.loader)&&!Oe(O,A,L,(he=k.universal)==null?void 0:he.uses,o))return k;if(O=!0,($==null?void 0:$.type)==="error")throw $;return ue({loader:S[1],url:n,params:o,route:a,parent:async()=>{var Te;const $e={};for(let ge=0;ge{});const M=[];for(let S=0;SPromise.resolve({}),server_data_node:de(c)}),b={node:await h(),loader:h,universal:null,server:null,data:null};return await X({url:n,params:a,branch:[v,b],status:e,error:s,route:null})}function Z(e,s){if(ye(e,G))return;const n=se(e);for(const o of f){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:s,route:o,params:tt(a),url:e}}}function se(e){return et(e.pathname.slice(G.length)||"/")}function Ue({url:e,type:s,intent:n,delta:o}){let a=!1;const c=Be(d,n,e,s);o!==void 0&&(c.navigation.delta=o);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(v=>v(p)),a?null:c}async function ce({url:e,scroll:s,keepfocus:n,redirect_count:o,details:a,type:c,delta:p,nav_token:v={},accepted:b,blocked:y}){var N,M,S;const L=Z(e,!1),A=Ue({url:e,type:c,delta:p,intent:L});if(!A){y();return}const P=x;b(),U=!0,T&&H.navigating.set(A.navigation),W=v;let _=L&&await pe(L);if(!_){if(ye(e,G))return await K(e);_=await je(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,W!==v)return A.reject(new Error("navigation was aborted")),!1;if(_.type==="redirect")if(o>=20)_=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},o+1,v),!1;else((N=_.props.page)==null?void 0:N.status)>=400&&await H.updated.check()&&await K(e);if(E.length=0,z=!1,C=!0,be(P),Re(P),(M=_.props.page)!=null&&M.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(S=_.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[V]=x+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let k=x+1;for(;ee[k]||J[k];)delete ee[k],delete J[k],k+=1}}if(g=null,T){d=_.state,_.props.page&&(_.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(k=>k(A.navigation)))).filter(k=>typeof k=="function");if(I.length>0){let k=function(){m.after_navigate=m.after_navigate.filter($=>!I.includes($))};I.push(k),m.after_navigate.push(...I)}q.$set(_.props)}else Pe(_);const{activeElement:w}=document;if(await we(),R){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));s?scrollTo(s.x,s.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==w&&document.activeElement!==document.body;!n&&!O&&Ee(),R=!0,_.props.page&&(F=_.props.page),U=!1,c==="popstate"&&Ae(x),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),H.navigating.set(null),C=!1}async function je(e,s,n,o){return e.origin===Me&&e.pathname===location.pathname&&!j?await ie({status:o,error:n,url:e,route:s}):await K(e)}function Xe(){let e;u.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{o(p,2)},20)});function s(c){o(c.composedPath()[0],1)}u.addEventListener("mousedown",s),u.addEventListener("touchstart",s,{passive:!0});const n=new IntersectionObserver(c=>{for(const p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),n.unobserve(p.target))},{threshold:0});function o(c,p){const v=Ce(c,u);if(!v)return;const{url:b,external:y,download:L}=_e(v,G);if(y||L)return;const A=le(v);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of u.querySelectorAll("a")){const{url:p,external:v,download:b}=_e(c,G);if(v||b)continue;const y=le(c);y.reload||(y.preload_code===Ve.viewport&&n.observe(c),y.preload_code===Ve.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,s){return e instanceof ne?e.body:t.hooks.handleError({error:e,event:s})??{message:s.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const s=m.after_navigate.indexOf(e);m.after_navigate.splice(s,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const s=m.before_navigate.indexOf(e);m.before_navigate.splice(s,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const s=m.on_navigate.indexOf(e);m.on_navigate.splice(s,1)}))},disable_scroll_handling:()=>{(C||!T)&&(R=!1)},goto:(e,s={})=>re(e,s,0),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:s}=new URL(e,location.href);E.push(n=>n.href===s)}return ke()},invalidate_all:()=>(z=!0,ke()),preload_data:async e=>{const s=new URL(e,De(document)),n=Z(s,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${s}`);await Le(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const s=new URL(location.href),{branch:n,route:o}=d;if(!o)return;const a=await xe(d.branch.length,n,o.errors);if(a){const c=await X({url:s,params:d.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});d=c.state,q.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(q.$set({form:null,page:{...F,form:e.data,status:e.status}}),await we(),q.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var s;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Ie(),!U){const a=Be(d,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(s=navigator.connection)!=null&&s.saveData||Xe(),u.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=Ce(n.composedPath()[0],u);if(!o)return;const{url:a,external:c,target:p,download:v}=_e(o,G);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||v)return;if(c||b.reload){Ue({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(d.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(D=!0,be(x),e(a),!b.replace_state)return;D=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),u.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(ye(p,G))return;const v=n.target,{keep_focus:b,noscroll:y,reload:L,replace_state:A}=le(v);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(v),_=a==null?void 0:a.getAttribute("name");_&&P.append(_,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:y?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o;if(W={},(o=n.state)!=null&&o[V]){if(n.state[V]===x)return;const a=J[n.state[V]],c=new URL(location.href);if(d.url.href.split("#")[0]===location.href.split("#")[0]){e(c),J[x]=te(),x=n.state[V],scrollTo(a.x,a.y);return}const p=n.state[V]-x;await ce({url:c,scroll:a,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{x=n.state[V]},blocked:()=>{history.go(-p)},type:"popstate",delta:p,nav_token:W})}else if(!D){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{D&&(D=!1,history.replaceState({...history.state,[V]:++x},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&H.navigating.set(null)});function e(n){d.url=n,H.page.set({...F,url:n}),H.page.notify()}},_hydrate:async({status:e=200,error:s,node_ids:n,params:o,route:a,data:c,form:p})=>{j=!0;const v=new URL(location.href);({params:o={},route:a={id:null}}=Z(v,!1)||{});let b;try{const y=n.map(async(P,_)=>{const w=c[_];return w!=null&&w.uses&&(w.uses=Ye(w.uses)),ue({loader:t.nodes[P],url:v,params:o,route:a,parent:async()=>{const O={};for(let N=0;N<_;N+=1)Object.assign(O,(await y[N]).data);return O},server_data_node:de(w)})}),L=await Promise.all(y),A=f.find(({id:P})=>P===a.id);if(A){const P=A.layouts;for(let _=0;_u?"1":"0").join(""));const i=await Ke(f.href);if((h=i.headers.get("content-type"))!=null&&h.includes("text/html")&&await K(t),!i.ok)throw new ne(i.status,await i.json());return new Promise(async u=>{var j;const E=new Map,l=i.body.getReader(),g=new TextDecoder;function m(T){return Et(T,{Promise:R=>new Promise((C,U)=>{E.set(R,{fulfil:C,reject:U})})})}let d="";for(;;){const{done:T,value:R}=await l.read();if(T&&!d)break;for(d+=!R&&d?` +import{o as me,t as we}from"../chunks/scheduler.295916e6.js";import{S as Ge,a as Je,I as V,g as De,f as Ce,b as _e,c as le,s as te,i as ye,d as H,o as Me,P as Ve,e as Ze}from"../chunks/singletons.769ca666.js";import{b as G}from"../chunks/paths.ba30c16a.js";function Qe(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function et(t){return t.split("%25").map(decodeURI).join("%25")}function tt(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const nt=["href","pathname","search","searchParams","toString","toJSON"];function at(t,r){const f=new URL(t);for(const i of nt)Object.defineProperty(f,i,{get(){return r(),t[i]},enumerable:!0,configurable:!0});return rt(f),f}function rt(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const ot="/__data.json";function it(t){return t.replace(/\/$/,"")+ot}function st(...t){let r=5381;for(const f of t)if(typeof f=="string"){let i=f.length;for(;i;)r=r*33^f.charCodeAt(--i)}else if(ArrayBuffer.isView(f)){const i=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);let h=i.length;for(;h;)r=r*33^i[--h]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const Ke=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ae.delete(Se(t)),Ke(t,r));const ae=new Map;function ct(t,r){const f=Se(t,r),i=document.querySelector(f);if(i!=null&&i.textContent){const{body:h,...u}=JSON.parse(i.textContent),E=i.getAttribute("data-ttl");return E&&ae.set(f,{body:h,init:u,ttl:1e3*Number(E)}),Promise.resolve(new Response(h,u))}return window.fetch(t,r)}function lt(t,r,f){if(ae.size>0){const i=Se(t,f),h=ae.get(i);if(h){if(performance.now(){const h=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(i);if(h)return r.push({name:h[1],matcher:h[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const u=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(i);if(u)return r.push({name:u[1],matcher:u[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!i)return;const E=i.split(/\[(.+?)\](?!\])/);return"/"+E.map((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const d=ft.exec(g);if(!d)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,j,T,R,C]=d;return r.push({name:R,matcher:C,optional:!!j,rest:!!T,chained:T?m===1&&E[0]==="":!1}),T?"(.*?)":j?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:r}}function dt(t){return!/^\([^)]+\)$/.test(t)}function pt(t){return t.slice(1).split("/").filter(dt)}function ht(t,r,f){const i={},h=t.slice(1),u=h.filter(l=>l!==void 0);let E=0;for(let l=0;ld).join("/"),E=0),m===void 0){g.rest&&(i[g.name]="");continue}if(!g.matcher||f[g.matcher](m)){i[g.name]=m;const d=r[l+1],j=h[l+1];d&&!d.rest&&d.optional&&j&&g.chained&&(E=0),!d&&!j&&Object.keys(i).length===u.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return i}function ve(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function gt({nodes:t,server_loads:r,dictionary:f,matchers:i}){const h=new Set(r);return Object.entries(f).map(([l,[g,m,d]])=>{const{pattern:j,params:T}=ut(l),R={id:l,exec:C=>{const U=j.exec(C);if(U)return ht(U,T,i)},errors:[1,...d||[]].map(C=>t[C]),layouts:[0,...m||[]].map(E),leaf:u(g)};return R.errors.length=R.layouts.length=Math.max(R.errors.length,R.layouts.length),R});function u(l){const g=l<0;return g&&(l=~l),[g,t[l]]}function E(l){return l===void 0?l:[h.has(l),t[l]]}}function ze(t){try{return JSON.parse(sessionStorage[t])}catch{}}function qe(t,r){const f=JSON.stringify(r);try{sessionStorage[t]=f}catch{}}const mt=-1,wt=-2,_t=-3,yt=-4,vt=-5,bt=-6;function Et(t,r){if(typeof t=="number")return h(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const f=t,i=Array(f.length);function h(u,E=!1){if(u===mt)return;if(u===_t)return NaN;if(u===yt)return 1/0;if(u===vt)return-1/0;if(u===bt)return-0;if(E)throw new Error("Invalid input");if(u in i)return i[u];const l=f[u];if(!l||typeof l!="object")i[u]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],m=r==null?void 0:r[g];if(m)return i[u]=m(h(l[1]));switch(g){case"Date":i[u]=new Date(l[1]);break;case"Set":const d=new Set;i[u]=d;for(let R=1;Rr!=null)}const We=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...We];const kt=new Set([...We]);[...kt];async function Rt(t){var r;for(const f in t)if(typeof((r=t[f])==null?void 0:r.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([i,h])=>[i,await h])));return t}class ne{constructor(r,f){this.status=r,typeof f=="string"?this.body={message:f}:f?this.body=f:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class Fe{constructor(r,f){this.status=r,this.location=f}}const At="x-sveltekit-invalidated",It="x-sveltekit-trailing-slash",J=ze(Ge)??{},ee=ze(Je)??{};function be(t){J[t]=te()}function K(t){return location.href=t.href,new Promise(()=>{})}function Lt(t,r){var Ne;const f=gt(t),i=t.nodes[0],h=t.nodes[1];i(),h();const u=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let d={branch:[],error:null,url:null},j=!1,T=!1,R=!0,C=!1,U=!1,D=!1,z=!1,q,x=(Ne=history.state)==null?void 0:Ne[V];x||(x=Date.now(),history.replaceState({...history.state,[V]:x},"",location.href));const fe=J[x];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let F,W,Y;async function ke(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),s=Z(e,!0);g=null;const n=W={},o=s&&await pe(s);if(n===W&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},1,n);o.props.page!==void 0&&(F=o.props.page),q.$set(o.props)}}function Re(e){l.some(s=>s==null?void 0:s.snapshot)&&(ee[e]=l.map(s=>{var n;return(n=s==null?void 0:s.snapshot)==null?void 0:n.capture()}))}function Ae(e){var s;(s=ee[e])==null||s.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Ie(){be(x),qe(Ge,J),Re(x),qe(Je,ee)}async function re(e,{noScroll:s=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},p,v){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:s?te():null,keepfocus:o,redirect_count:p,details:{state:a,replaceState:n},nav_token:v,accepted:()=>{c&&(z=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:pe(e).then(s=>(s.type==="loaded"&&s.state.error&&(g=null),s))},g.promise}async function oe(...e){const n=f.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Pe(e){var o;d=e.state;const s=document.querySelector("style[data-sveltekit]");s&&s.remove(),F=e.props.page,q=new t.root({target:r,props:{...e.props,stores:H,components:l},hydrate:!0}),Ae(x);const n={from:null,to:{params:d.params,route:{id:((o=d.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(n)),T=!0}async function X({url:e,params:s,branch:n,status:o,error:a,route:c,form:p}){let v="never";for(const _ of n)(_==null?void 0:_.slash)!==void 0&&(v=_.slash);e.pathname=Qe(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:s,branch:n,error:a,route:c},props:{constructors:St(n).map(_=>_.node.component)}};p!==void 0&&(b.props.form=p);let y={},L=!F,A=0;for(let _=0;_(v.route=!0,w[O])}),params:new Proxy(o,{get:(w,O)=>(v.params.add(O),w[O])}),data:(c==null?void 0:c.data)??null,url:at(n,()=>{v.url=!0}),async fetch(w,O){let N;w instanceof Request?(N=w.url,O={body:w.method==="GET"||w.method==="HEAD"?void 0:await w.blob(),cache:w.cache,credentials:w.credentials,headers:w.headers,integrity:w.integrity,keepalive:w.keepalive,method:w.method,mode:w.mode,redirect:w.redirect,referrer:w.referrer,referrerPolicy:w.referrerPolicy,signal:w.signal,...O}):N=w;const M=new URL(N,n);return P(M.href),M.origin===n.origin&&(N=M.href.slice(n.origin.length)),T?lt(N,M.href,O):ct(N,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,s()}};p=await b.universal.load.call(null,_)??null,p=p?await Rt(p):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:v}:null,data:p??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(e,s,n,o,a){if(z)return!0;if(!o)return!1;if(o.parent&&e||o.route&&s||o.url&&n)return!0;for(const c of o.params)if(a[c]!==d.params[c])return!0;for(const c of o.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,s){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?s??null:null}async function pe({id:e,invalidating:s,url:n,params:o,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:v}=a,b=[...p,v];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let y=null;const L=d.url?e!==d.url.pathname+d.url.search:!1,A=d.route?a.id!==d.route.id:!1;let P=!1;const _=b.map((S,I)=>{var B;const k=d.branch[I],$=!!(S!=null&&S[0])&&((k==null?void 0:k.loader)!==S[1]||Oe(P,A,L,(B=k.server)==null?void 0:B.uses,o));return $&&(P=!0),$});if(_.some(Boolean)){try{y=await He(n,_)}catch(S){return ie({status:S instanceof ne?S.status:500,error:await Q(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(y.type==="redirect")return y}const w=y==null?void 0:y.nodes;let O=!1;const N=b.map(async(S,I)=>{var he;if(!S)return;const k=d.branch[I],$=w==null?void 0:w[I];if((!$||$.type==="skip")&&S[1]===(k==null?void 0:k.loader)&&!Oe(O,A,L,(he=k.universal)==null?void 0:he.uses,o))return k;if(O=!0,($==null?void 0:$.type)==="error")throw $;return ue({loader:S[1],url:n,params:o,route:a,parent:async()=>{var Te;const $e={};for(let ge=0;ge{});const M=[];for(let S=0;SPromise.resolve({}),server_data_node:de(c)}),b={node:await h(),loader:h,universal:null,server:null,data:null};return await X({url:n,params:a,branch:[v,b],status:e,error:s,route:null})}function Z(e,s){if(ye(e,G))return;const n=se(e);for(const o of f){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:s,route:o,params:tt(a),url:e}}}function se(e){return et(e.pathname.slice(G.length)||"/")}function Ue({url:e,type:s,intent:n,delta:o}){let a=!1;const c=Be(d,n,e,s);o!==void 0&&(c.navigation.delta=o);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(v=>v(p)),a?null:c}async function ce({url:e,scroll:s,keepfocus:n,redirect_count:o,details:a,type:c,delta:p,nav_token:v={},accepted:b,blocked:y}){var N,M,S;const L=Z(e,!1),A=Ue({url:e,type:c,delta:p,intent:L});if(!A){y();return}const P=x;b(),U=!0,T&&H.navigating.set(A.navigation),W=v;let _=L&&await pe(L);if(!_){if(ye(e,G))return await K(e);_=await je(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,W!==v)return A.reject(new Error("navigation was aborted")),!1;if(_.type==="redirect")if(o>=20)_=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},o+1,v),!1;else((N=_.props.page)==null?void 0:N.status)>=400&&await H.updated.check()&&await K(e);if(E.length=0,z=!1,C=!0,be(P),Re(P),(M=_.props.page)!=null&&M.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(S=_.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[V]=x+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let k=x+1;for(;ee[k]||J[k];)delete ee[k],delete J[k],k+=1}}if(g=null,T){d=_.state,_.props.page&&(_.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(k=>k(A.navigation)))).filter(k=>typeof k=="function");if(I.length>0){let k=function(){m.after_navigate=m.after_navigate.filter($=>!I.includes($))};I.push(k),m.after_navigate.push(...I)}q.$set(_.props)}else Pe(_);const{activeElement:w}=document;if(await we(),R){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));s?scrollTo(s.x,s.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==w&&document.activeElement!==document.body;!n&&!O&&Ee(),R=!0,_.props.page&&(F=_.props.page),U=!1,c==="popstate"&&Ae(x),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),H.navigating.set(null),C=!1}async function je(e,s,n,o){return e.origin===Me&&e.pathname===location.pathname&&!j?await ie({status:o,error:n,url:e,route:s}):await K(e)}function Xe(){let e;u.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{o(p,2)},20)});function s(c){o(c.composedPath()[0],1)}u.addEventListener("mousedown",s),u.addEventListener("touchstart",s,{passive:!0});const n=new IntersectionObserver(c=>{for(const p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),n.unobserve(p.target))},{threshold:0});function o(c,p){const v=Ce(c,u);if(!v)return;const{url:b,external:y,download:L}=_e(v,G);if(y||L)return;const A=le(v);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of u.querySelectorAll("a")){const{url:p,external:v,download:b}=_e(c,G);if(v||b)continue;const y=le(c);y.reload||(y.preload_code===Ve.viewport&&n.observe(c),y.preload_code===Ve.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,s){return e instanceof ne?e.body:t.hooks.handleError({error:e,event:s})??{message:s.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const s=m.after_navigate.indexOf(e);m.after_navigate.splice(s,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const s=m.before_navigate.indexOf(e);m.before_navigate.splice(s,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const s=m.on_navigate.indexOf(e);m.on_navigate.splice(s,1)}))},disable_scroll_handling:()=>{(C||!T)&&(R=!1)},goto:(e,s={})=>re(e,s,0),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:s}=new URL(e,location.href);E.push(n=>n.href===s)}return ke()},invalidate_all:()=>(z=!0,ke()),preload_data:async e=>{const s=new URL(e,De(document)),n=Z(s,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${s}`);await Le(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const s=new URL(location.href),{branch:n,route:o}=d;if(!o)return;const a=await xe(d.branch.length,n,o.errors);if(a){const c=await X({url:s,params:d.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});d=c.state,q.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(q.$set({form:null,page:{...F,form:e.data,status:e.status}}),await we(),q.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var s;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Ie(),!U){const a=Be(d,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(s=navigator.connection)!=null&&s.saveData||Xe(),u.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=Ce(n.composedPath()[0],u);if(!o)return;const{url:a,external:c,target:p,download:v}=_e(o,G);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||v)return;if(c||b.reload){Ue({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(d.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(D=!0,be(x),e(a),!b.replace_state)return;D=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),u.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(ye(p,G))return;const v=n.target,{keep_focus:b,noscroll:y,reload:L,replace_state:A}=le(v);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(v),_=a==null?void 0:a.getAttribute("name");_&&P.append(_,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:y?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o;if(W={},(o=n.state)!=null&&o[V]){if(n.state[V]===x)return;const a=J[n.state[V]],c=new URL(location.href);if(d.url.href.split("#")[0]===location.href.split("#")[0]){e(c),J[x]=te(),x=n.state[V],scrollTo(a.x,a.y);return}const p=n.state[V]-x;await ce({url:c,scroll:a,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{x=n.state[V]},blocked:()=>{history.go(-p)},type:"popstate",delta:p,nav_token:W})}else if(!D){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{D&&(D=!1,history.replaceState({...history.state,[V]:++x},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&H.navigating.set(null)});function e(n){d.url=n,H.page.set({...F,url:n}),H.page.notify()}},_hydrate:async({status:e=200,error:s,node_ids:n,params:o,route:a,data:c,form:p})=>{j=!0;const v=new URL(location.href);({params:o={},route:a={id:null}}=Z(v,!1)||{});let b;try{const y=n.map(async(P,_)=>{const w=c[_];return w!=null&&w.uses&&(w.uses=Ye(w.uses)),ue({loader:t.nodes[P],url:v,params:o,route:a,parent:async()=>{const O={};for(let N=0;N<_;N+=1)Object.assign(O,(await y[N]).data);return O},server_data_node:de(w)})}),L=await Promise.all(y),A=f.find(({id:P})=>P===a.id);if(A){const P=A.layouts;for(let _=0;_u?"1":"0").join(""));const i=await Ke(f.href);if((h=i.headers.get("content-type"))!=null&&h.includes("text/html")&&await K(t),!i.ok)throw new ne(i.status,await i.json());return new Promise(async u=>{var j;const E=new Map,l=i.body.getReader(),g=new TextDecoder;function m(T){return Et(T,{Promise:R=>new Promise((C,U)=>{E.set(R,{fulfil:C,reject:U})})})}let d="";for(;;){const{done:T,value:R}=await l.read();if(T&&!d)break;for(d+=!R&&d?` `:g.decode(R);;){const C=d.indexOf(` `);if(C===-1)break;const U=JSON.parse(d.slice(0,C));if(d=d.slice(C+1),U.type==="redirect")return u(U);if(U.type==="data")(j=U.nodes)==null||j.forEach(D=>{(D==null?void 0:D.type)==="data"&&(D.uses=Ye(D.uses),D.data=m(D.data))}),u(U);else if(U.type==="chunk"){const{id:D,data:z,error:q}=U,x=E.get(D);E.delete(D),q?x.reject(m(q)):x.fulfil(m(z))}}}})}function Ye(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url)}}function Ee(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const r=document.body,f=r.getAttribute("tabindex");r.tabIndex=-1,r.focus({preventScroll:!0,focusVisible:!1}),f!==null?r.setAttribute("tabindex",f):r.removeAttribute("tabindex");const i=getSelection();if(i&&i.type!=="None"){const h=[];for(let u=0;u{if(i.rangeCount===h.length){for(let u=0;u{h=d,u=j});return E.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((g=t.route)==null?void 0:g.id)??null},url:t.url},to:f&&{params:(r==null?void 0:r.params)??null,route:{id:((m=r==null?void 0:r.route)==null?void 0:m.id)??null},url:f},willUnload:!r,type:i,complete:E},fulfil:h,reject:u}}async function Ut(t,r,f){const i=Lt(t,r);Ze({client:i}),f?await i._hydrate(f):i.goto(location.href,{replaceState:!0}),i._start_router()}export{Ut as start}; diff --git a/docs/_app/immutable/nodes/0.e9694829.js b/docs/_app/immutable/nodes/0.ed84363c.js similarity index 99% rename from docs/_app/immutable/nodes/0.e9694829.js rename to docs/_app/immutable/nodes/0.ed84363c.js index 06f8294..86f3697 100644 --- a/docs/_app/immutable/nodes/0.e9694829.js +++ b/docs/_app/immutable/nodes/0.ed84363c.js @@ -1 +1 @@ -import{s as w,f as d,H as C,a as M,g as u,h as p,r as D,d as m,c as b,u as S,j as i,i as v,v as f,w as h,x as T,y as j,z as x,A}from"../chunks/scheduler.295916e6.js";import{S as E,i as H,b as k,d as B,m as I,a as y,t as Z,e as L}from"../chunks/index.25f245b5.js";import{b as z}from"../chunks/paths.39b26b8d.js";const O=!0,P="always",Q=Object.freeze(Object.defineProperty({__proto__:null,prerender:O,trailingSlash:P},Symbol.toStringTag,{value:"Module"}));const V='';function q(o){let e,n,s,c,r,t,a=``;return{c(){e=d("header"),n=d("div"),s=d("a"),c=new C(!1),r=M(),t=d("div"),t.innerHTML=a,this.h()},l(l){e=u(l,"HEADER",{});var _=p(e);n=u(_,"DIV",{class:!0});var g=p(n);s=u(g,"A",{href:!0,"aria-label":!0,target:!0,class:!0});var $=p(s);c=D($,!1),$.forEach(m),g.forEach(m),r=b(_),t=u(_,"DIV",{class:!0,"data-svelte-h":!0}),S(t)!=="svelte-1mxbhjs"&&(t.innerHTML=a),_.forEach(m),this.h()},h(){c.a=null,i(s,"href","https://pudding.cool"),i(s,"aria-label","The Pudding"),i(s,"target","_self"),i(s,"class","svelte-4e9p4y"),i(n,"class","wordmark svelte-4e9p4y"),i(t,"class","stickers svelte-4e9p4y")},m(l,_){v(l,e,_),f(e,n),f(n,s),c.m(V,s),f(e,r),f(e,t)},p:h,i:h,o:h,d(l){l&&m(e)}}}class N extends E{constructor(e){super(),H(this,e,null,q,w,{})}}function R(o){let e,n,s,c;e=new N({});const r=o[1].default,t=T(r,o,o[0],null);return{c(){k(e.$$.fragment),n=M(),s=d("main"),t&&t.c(),this.h()},l(a){B(e.$$.fragment,a),n=b(a),s=u(a,"MAIN",{id:!0});var l=p(s);t&&t.l(l),l.forEach(m),this.h()},h(){i(s,"id","content")},m(a,l){I(e,a,l),v(a,n,l),v(a,s,l),t&&t.m(s,null),c=!0},p(a,[l]){t&&t.p&&(!c||l&1)&&j(t,r,a,a[0],c?A(r,a[0],l,null):x(a[0]),null)},i(a){c||(y(e.$$.fragment,a),y(t,a),c=!0)},o(a){Z(e.$$.fragment,a),Z(t,a),c=!1},d(a){a&&(m(n),m(s)),L(e,a),t&&t.d(a)}}}function F(o,e,n){let{$$slots:s={},$$scope:c}=e;return o.$$set=r=>{"$$scope"in r&&n(0,c=r.$$scope)},[c,s]}class U extends E{constructor(e){super(),H(this,e,F,R,w,{})}}export{U as component,Q as universal}; +import{s as w,f as d,H as C,a as M,g as u,h as p,r as D,d as m,c as b,u as S,j as i,i as v,v as f,w as h,x as T,y as j,z as x,A}from"../chunks/scheduler.295916e6.js";import{S as E,i as H,b as k,d as B,m as I,a as y,t as Z,e as L}from"../chunks/index.25f245b5.js";import{b as z}from"../chunks/paths.ba30c16a.js";const O=!0,P="always",Q=Object.freeze(Object.defineProperty({__proto__:null,prerender:O,trailingSlash:P},Symbol.toStringTag,{value:"Module"}));const V='';function q(o){let e,n,s,c,r,t,a=``;return{c(){e=d("header"),n=d("div"),s=d("a"),c=new C(!1),r=M(),t=d("div"),t.innerHTML=a,this.h()},l(l){e=u(l,"HEADER",{});var _=p(e);n=u(_,"DIV",{class:!0});var g=p(n);s=u(g,"A",{href:!0,"aria-label":!0,target:!0,class:!0});var $=p(s);c=D($,!1),$.forEach(m),g.forEach(m),r=b(_),t=u(_,"DIV",{class:!0,"data-svelte-h":!0}),S(t)!=="svelte-1mxbhjs"&&(t.innerHTML=a),_.forEach(m),this.h()},h(){c.a=null,i(s,"href","https://pudding.cool"),i(s,"aria-label","The Pudding"),i(s,"target","_self"),i(s,"class","svelte-4e9p4y"),i(n,"class","wordmark svelte-4e9p4y"),i(t,"class","stickers svelte-4e9p4y")},m(l,_){v(l,e,_),f(e,n),f(n,s),c.m(V,s),f(e,r),f(e,t)},p:h,i:h,o:h,d(l){l&&m(e)}}}class N extends E{constructor(e){super(),H(this,e,null,q,w,{})}}function R(o){let e,n,s,c;e=new N({});const r=o[1].default,t=T(r,o,o[0],null);return{c(){k(e.$$.fragment),n=M(),s=d("main"),t&&t.c(),this.h()},l(a){B(e.$$.fragment,a),n=b(a),s=u(a,"MAIN",{id:!0});var l=p(s);t&&t.l(l),l.forEach(m),this.h()},h(){i(s,"id","content")},m(a,l){I(e,a,l),v(a,n,l),v(a,s,l),t&&t.m(s,null),c=!0},p(a,[l]){t&&t.p&&(!c||l&1)&&j(t,r,a,a[0],c?A(r,a[0],l,null):x(a[0]),null)},i(a){c||(y(e.$$.fragment,a),y(t,a),c=!0)},o(a){Z(e.$$.fragment,a),Z(t,a),c=!1},d(a){a&&(m(n),m(s)),L(e,a),t&&t.d(a)}}}function F(o,e,n){let{$$slots:s={},$$scope:c}=e;return o.$$set=r=>{"$$scope"in r&&n(0,c=r.$$scope)},[c,s]}class U extends E{constructor(e){super(),H(this,e,F,R,w,{})}}export{U as component,Q as universal}; diff --git a/docs/_app/immutable/nodes/1.977a3250.js b/docs/_app/immutable/nodes/1.3c17063c.js similarity index 92% rename from docs/_app/immutable/nodes/1.977a3250.js rename to docs/_app/immutable/nodes/1.3c17063c.js index 14d447b..8784d8e 100644 --- a/docs/_app/immutable/nodes/1.977a3250.js +++ b/docs/_app/immutable/nodes/1.3c17063c.js @@ -1 +1 @@ -import{s as g,f,l as u,g as _,h,m as p,d as m,i as v,v as l,n as b,w as d,B as $}from"../chunks/scheduler.295916e6.js";import{S as E,i as S}from"../chunks/index.25f245b5.js";import{d as x}from"../chunks/singletons.26104b7f.js";const q=()=>{const t=x;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},w={subscribe(t){return q().page.subscribe(t)}};function y(t){let e,a=t[0].status+"",n,o,i=t[0].error.message+"",c;return{c(){e=f("h1"),n=u(a),o=u(": "),c=u(i)},l(r){e=_(r,"H1",{});var s=h(e);n=p(s,a),o=p(s,": "),c=p(s,i),s.forEach(m)},m(r,s){v(r,e,s),l(e,n),l(e,o),l(e,c)},p(r,[s]){s&1&&a!==(a=r[0].status+"")&&b(n,a),s&1&&i!==(i=r[0].error.message+"")&&b(c,i)},i:d,o:d,d(r){r&&m(e)}}}function B(t,e,a){let n;return $(t,w,o=>a(0,n=o)),[n]}let k=class extends E{constructor(e){super(),S(this,e,B,y,g,{})}};export{k as component}; +import{s as g,f,l as u,g as _,h,m as p,d as m,i as v,v as l,n as b,w as d,B as $}from"../chunks/scheduler.295916e6.js";import{S as E,i as S}from"../chunks/index.25f245b5.js";import{d as x}from"../chunks/singletons.769ca666.js";const q=()=>{const t=x;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},w={subscribe(t){return q().page.subscribe(t)}};function y(t){let e,a=t[0].status+"",n,o,i=t[0].error.message+"",c;return{c(){e=f("h1"),n=u(a),o=u(": "),c=u(i)},l(r){e=_(r,"H1",{});var s=h(e);n=p(s,a),o=p(s,": "),c=p(s,i),s.forEach(m)},m(r,s){v(r,e,s),l(e,n),l(e,o),l(e,c)},p(r,[s]){s&1&&a!==(a=r[0].status+"")&&b(n,a),s&1&&i!==(i=r[0].error.message+"")&&b(c,i)},i:d,o:d,d(r){r&&m(e)}}}function B(t,e,a){let n;return $(t,w,o=>a(0,n=o)),[n]}let k=class extends E{constructor(e){super(),S(this,e,B,y,g,{})}};export{k as component}; diff --git a/docs/_app/immutable/nodes/2.58a6dc6d.js b/docs/_app/immutable/nodes/2.633467c1.js similarity index 98% rename from docs/_app/immutable/nodes/2.58a6dc6d.js rename to docs/_app/immutable/nodes/2.633467c1.js index 4089bae..284bb61 100644 --- a/docs/_app/immutable/nodes/2.58a6dc6d.js +++ b/docs/_app/immutable/nodes/2.633467c1.js @@ -8,4 +8,4 @@ import{s as ca,f as S,e as Y,C as A_,g as R,d as b,j as p,v as y,w as ma,D as ka `),i=ea("desc"),s=F(`This chart visualizes the locations of sleep training studies on a map, 85% were published in Western countries. `),m=ea("g"),g&&g.c(),t=D(),u=S("div"),u.innerHTML=d,this.h()},l(c){a=R(c,"DIV",{class:!0,style:!0});var f=M(a);l=sa(f,"svg",{width:!0,height:!0,"aria-labelledby":!0});var h=M(l);_=sa(h,"title",{id:!0,style:!0});var v=M(_);e=W(v,`Sleep training studies mapped by their country of publication `),v.forEach(b),i=sa(h,"desc",{id:!0,style:!0});var A=M(i);s=W(A,`This chart visualizes the locations of sleep training studies on a map, 85% were published in Western countries. - `),A.forEach(b),m=sa(h,"g",{});var w=M(m);g&&g.l(w),w.forEach(b),h.forEach(b),t=O(f),u=R(f,"DIV",{class:!0,"data-svelte-h":!0}),va(u)!=="svelte-1kjutrb"&&(u.innerHTML=d),f.forEach(b),this.h()},h(){p(_,"id","chartTitle"),j(_,"opacity","0"),p(i,"id","chartDesc"),j(i,"opacity","0"),p(l,"width",o=n[3].width),p(l,"height",r=n[3].height),p(l,"aria-labelledby","chartTitle chartDesc"),p(u,"class","chart-title svelte-qvd5rc"),p(a,"class","map-container svelte-qvd5rc"),j(a,"width",n[3].width),j(a,"height",n[3].height+"px")},m(c,f){C(c,a,f),y(a,l),y(l,_),y(_,e),y(l,i),y(i,s),y(l,m),g&&g.m(m,null),y(a,t),y(a,u)},p(c,[f]){c[1]?g?g.p(c,f):(g=el(c),g.c(),g.m(m,null)):g&&(g.d(1),g=null),f&8&&o!==(o=c[3].width)&&p(l,"width",o),f&8&&r!==(r=c[3].height)&&p(l,"height",r),f&8&&j(a,"width",c[3].width),f&8&&j(a,"height",c[3].height+"px")},i:ma,o:ma,d(c){c&&b(a),g&&g.d()}}}function A9(n,a,l){let _,e;Oa(n,f3,t=>l(3,e=t));let{data:i}=a,s=[],m,o;const r={Advocate:"#4FB477","No Position":"#D69C2B",Oppose:"#A34131"};return z0(()=>{o=Ze().fitSize([e.width-10,e.height],e3),l(1,m=Te().projection(o));const t=Vl(i).force("x",Yl(u=>{const d={};e3.features.forEach(c=>{if(c.properties.label_x&&c.properties.label_y){const[f,h]=o([c.properties.label_x,c.properties.label_y]);d[c.properties.name]=[f,h]}});const g=d[u.country];return g?g[0]:0}).strength(.5)).force("y",Jl(u=>{const d={};e3.features.forEach(c=>{if(c.properties.label_x&&c.properties.label_y){const[f,h]=o([c.properties.label_x,c.properties.label_y]);d[c.properties.name]=[f,h]}});const g=d[u.country];return g?g[1]:0}).strength(.5)).force("collide",Wl(6)).on("tick",()=>{l(0,s=t.nodes())})}),n.$$set=t=>{"data"in t&&l(4,i=t.data)},l(2,_=t=>r[t]||"#000000"),[s,m,_,e,i]}let w9=class extends pa{constructor(a){super(),ga(this,a,A9,v9,ca,{data:4})}};function ml(n,a,l){const _=n.slice();_[13]=a[l],_[18]=l;const e=_[3]===_[18];_[14]=e;const i=_[18]==Object.values(_[1]).length-1;_[15]=i;const s=_[18]==0;return _[16]=s,_}function ol(n){let a,l,_,e,i,s,m,o,r=n[4]&&rl(n);function t(d){n[10](d)}let u={$$slots:{default:[M9]},$$scope:{ctx:n}};return n[3]!==void 0&&(u.value=n[3]),s=new e1({props:u}),L0.push(()=>c3(s,"value",t)),{c(){a=S("div"),l=S("div"),r&&r.c(),_=D(),e=S("div"),i=S("section"),Q(s.$$.fragment),this.h()},l(d){a=R(d,"DIV",{class:!0});var g=M(a);l=R(g,"DIV",{class:!0,style:!0});var c=M(l);r&&r.l(c),c.forEach(b),_=O(g),e=R(g,"DIV",{class:!0});var f=M(e);i=R(f,"SECTION",{id:!0});var h=M(i);q(s.$$.fragment,h),h.forEach(b),f.forEach(b),g.forEach(b),this.h()},h(){p(l,"class","sticky svelte-1lx2rfg"),j(l,"min-height",n[2]+"px"),p(i,"id","scrolly"),p(e,"class","steps svelte-1lx2rfg"),p(a,"class","scroll-section matt-scroll")},m(d,g){C(d,a,g),y(a,l),r&&r.m(l,null),y(a,_),y(a,e),y(e,i),X(s,i,null),o=!0},p(d,g){d[4]?r?(r.p(d,g),g&16&&I(r,1)):(r=rl(d),r.c(),I(r,1),r.m(l,null)):r&&(wa(),K(r,1,1,()=>{r=null}),Sa()),(!o||g&4)&&j(l,"min-height",d[2]+"px");const c={};g&524302&&(c.$$scope={dirty:g,ctx:d}),!m&&g&8&&(m=!0,c.value=d[3],d3(()=>m=!1)),s.$set(c)},i(d){o||(I(r),I(s.$$.fragment,d),o=!0)},o(d){K(r),K(s.$$.fragment,d),o=!1},d(d){d&&b(a),r&&r.d(),$(s)}}}function rl(n){let a,l,_,e;const i=[E9,N9,R9,S9],s=[];function m(o,r){return o[7]<15?0:o[7]>=15&&o[7]<16?1:o[7]>=16&&o[7]<17?2:o[7]>=17?3:-1}return~(a=m(n))&&(l=s[a]=i[a](n)),{c(){l&&l.c(),_=Y()},l(o){l&&l.l(o),_=Y()},m(o,r){~a&&s[a].m(o,r),C(o,_,r),e=!0},p(o,r){let t=a;a=m(o),a===t?~a&&s[a].p(o,r):(l&&(wa(),K(s[t],1,1,()=>{s[t]=null}),Sa()),~a?(l=s[a],l?l.p(o,r):(l=s[a]=i[a](o),l.c()),I(l,1),l.m(_.parentNode,_)):l=null)},i(o){e||(I(l),e=!0)},o(o){K(l),e=!1},d(o){o&&b(_),~a&&s[a].d(o)}}}function S9(n){let a,l;return a=new k_({props:{renderedData:n[4],focusHover:n[5],caption:n[6],groupedBy:"position",step:n[7]}}),{c(){Q(a.$$.fragment)},l(_){q(a.$$.fragment,_)},m(_,e){X(a,_,e),l=!0},p(_,e){const i={};e&16&&(i.renderedData=_[4]),e&32&&(i.focusHover=_[5]),e&64&&(i.caption=_[6]),e&128&&(i.step=_[7]),a.$set(i)},i(_){l||(I(a.$$.fragment,_),l=!0)},o(_){K(a.$$.fragment,_),l=!1},d(_){$(a,_)}}}function R9(n){let a,l,_;function e(s){n[9](s)}let i={caption:n[6]};return n[0]!==void 0&&(i.data=n[0]),a=new w9({props:i}),L0.push(()=>c3(a,"data",e)),{c(){Q(a.$$.fragment)},l(s){q(a.$$.fragment,s)},m(s,m){X(a,s,m),_=!0},p(s,m){const o={};m&64&&(o.caption=s[6]),!l&&m&1&&(l=!0,o.data=s[0],d3(()=>l=!1)),a.$set(o)},i(s){_||(I(a.$$.fragment,s),_=!0)},o(s){K(a.$$.fragment,s),_=!1},d(s){$(a,s)}}}function N9(n){let a,l;return a=new h9({props:{caption:n[6]}}),{c(){Q(a.$$.fragment)},l(_){q(a.$$.fragment,_)},m(_,e){X(a,_,e),l=!0},p(_,e){const i={};e&64&&(i.caption=_[6]),a.$set(i)},i(_){l||(I(a.$$.fragment,_),l=!0)},o(_){K(a.$$.fragment,_),l=!1},d(_){$(a,_)}}}function E9(n){let a,l;return a=new k_({props:{renderedData:n[4],focusHover:n[5],caption:n[6],groupedBy:"position",step:n[7]}}),{c(){Q(a.$$.fragment)},l(_){q(a.$$.fragment,_)},m(_,e){X(a,_,e),l=!0},p(_,e){const i={};e&16&&(i.renderedData=_[4]),e&32&&(i.focusHover=_[5]),e&64&&(i.caption=_[6]),e&128&&(i.step=_[7]),a.$set(i)},i(_){l||(I(a.$$.fragment,_),l=!0)},o(_){K(a.$$.fragment,_),l=!1},d(_){$(a,_)}}}function tl(n){let a,l,_,e=n[13].text+"",i;return{c(){a=S("div"),l=S("p"),_=new a1(!1),i=D(),this.h()},l(s){a=R(s,"DIV",{class:!0,style:!0});var m=M(a);l=R(m,"P",{class:!0});var o=M(l);_=n1(o,!1),o.forEach(b),i=O(m),m.forEach(b),this.h()},h(){_.a=null,p(l,"class","step-content svelte-1lx2rfg"),p(a,"class","step svelte-1lx2rfg"),j(a,"height",n[2]+"px"),j(a,"margin-top",(n[16]?-n[2]*.5:0)+"px"),fa(a,"active",n[14]),fa(a,"last",n[15]),fa(a,"first",n[16])},m(s,m){C(s,a,m),y(a,l),_.m(e,l),y(a,i)},p(s,m){m&2&&e!==(e=s[13].text+"")&&_.p(e),m&4&&j(a,"height",s[2]+"px"),m&4&&j(a,"margin-top",(s[16]?-s[2]*.5:0)+"px"),m&8&&fa(a,"active",s[14]),m&2&&fa(a,"last",s[15])},d(s){s&&b(a)}}}function M9(n){let a,l=la(Object.values(n[1])),_=[];for(let e=0;e{_=null}),Sa())},i(e){l||(I(_),l=!0)},o(e){K(_),l=!1},d(e){e&&b(a),_&&_.d(e)}}}function B9(n,a,l){let{copy:_}=a,{dataMap:e}=a,{stepHandler:i}=a,{viewportHeight:s}=a,m,o=null,r=null,t,u,d;function g(){d===Object.values(_).length-1&&t===void 0?l(7,d=Object.values(_).length-1):l(7,d=t),u=i(d),l(4,m=u.renderedData),l(5,o=u.focusHover),l(6,r=u.caption)}function c(h){e=h,l(0,e)}function f(h){t=h,l(3,t)}return n.$$set=h=>{"copy"in h&&l(1,_=h.copy),"dataMap"in h&&l(0,e=h.dataMap),"stepHandler"in h&&l(8,i=h.stepHandler),"viewportHeight"in h&&l(2,s=h.viewportHeight)},n.$$.update=()=>{n.$$.dirty&8&&g()},[e,_,s,t,m,o,r,d,i,c,f]}class T9 extends pa{constructor(a){super(),ga(this,a,B9,L9,ca,{copy:1,dataMap:0,stepHandler:8,viewportHeight:2})}}function C9(n){let a,l;return a=new T9({props:{viewportHeight:n[3],switcher:n[2],stepHandler:n[1],copy:n[0],dataMap:n[4]}}),{c(){Q(a.$$.fragment)},l(_){q(a.$$.fragment,_)},m(_,e){X(a,_,e),l=!0},p(_,[e]){const i={};e&8&&(i.viewportHeight=_[3]),e&4&&(i.switcher=_[2]),e&2&&(i.stepHandler=_[1]),e&1&&(i.copy=_[0]),a.$set(i)},i(_){l||(I(a.$$.fragment,_),l=!0)},o(_){K(a.$$.fragment,_),l=!1},d(_){$(a,_)}}}function G9(n,a,l){let{copy:_}=a,{stepHandler:e}=a,{switcher:i}=a,{viewportHeight:s}=a,o=$3("data").studies.map(r=>Object.assign({},r));return z0(()=>{}),n.$$set=r=>{"copy"in r&&l(0,_=r.copy),"stepHandler"in r&&l(1,e=r.stepHandler),"switcher"in r&&l(2,i=r.switcher),"viewportHeight"in r&&l(3,s=r.viewportHeight)},[_,e,i,s,o]}class I9 extends pa{constructor(a){super(),ga(this,a,G9,C9,ca,{copy:0,stepHandler:1,switcher:2,viewportHeight:3})}}function P9(n){let a,l=n[0].likes+"",_,e,i,s,m;return{c(){a=F("Comment / "),_=F(l),e=F(" Likes / "),i=S("a"),s=F("Source"),this.h()},l(o){a=W(o,"Comment / "),_=W(o,l),e=W(o," Likes / "),i=R(o,"A",{href:!0,class:!0});var r=M(i);s=W(r,"Source"),r.forEach(b),this.h()},h(){p(i,"href",m=n[0].url),p(i,"class","svelte-1n4zc")},m(o,r){C(o,a,r),C(o,_,r),C(o,e,r),C(o,i,r),y(i,s)},p(o,r){r&1&&l!==(l=o[0].likes+"")&&na(_,l),r&1&&m!==(m=o[0].url)&&p(i,"href",m)},d(o){o&&(b(a),b(_),b(e),b(i))}}}function U9(n){let a,l=n[0].likes+"",_,e,i,s,m;return{c(){a=F("Comment / "),_=F(l),e=F(" Votes / "),i=S("a"),s=F("Source"),this.h()},l(o){a=W(o,"Comment / "),_=W(o,l),e=W(o," Votes / "),i=R(o,"A",{href:!0,class:!0});var r=M(i);s=W(r,"Source"),r.forEach(b),this.h()},h(){p(i,"href",m=n[0].url),p(i,"class","svelte-1n4zc")},m(o,r){C(o,a,r),C(o,_,r),C(o,e,r),C(o,i,r),y(i,s)},p(o,r){r&1&&l!==(l=o[0].likes+"")&&na(_,l),r&1&&m!==(m=o[0].url)&&p(i,"href",m)},d(o){o&&(b(a),b(_),b(e),b(i))}}}function D9(n){let a,l,_,e,i,s,m,o,r=n[0].comment+"",t,u;function d(f,h){return f[0].platform==="reddit"?U9:P9}let g=d(n),c=g(n);return{c(){a=S("div"),l=S("div"),_=S("div"),e=S("img"),s=D(),m=S("p"),o=new a1(!1),t=D(),u=S("div"),c.c(),this.h()},l(f){a=R(f,"DIV",{class:!0,style:!0,tabindex:!0});var h=M(a);l=R(h,"DIV",{class:!0});var v=M(l);_=R(v,"DIV",{class:!0});var A=M(_);e=R(A,"IMG",{class:!0,src:!0,alt:!0}),A.forEach(b),s=O(v),m=R(v,"P",{class:!0});var w=M(m);o=n1(w,!1),w.forEach(b),v.forEach(b),t=O(h),u=R(h,"DIV",{class:!0});var k=M(u);c.l(k),k.forEach(b),h.forEach(b),this.h()},h(){p(e,"class","icon svelte-1n4zc"),I0(e.src,i=ul(n[0].platform).icon)||p(e,"src",i),p(e,"alt","reddit or instagram icon"),p(_,"class","notification-likes svelte-1n4zc"),o.a=null,p(m,"class","notification-text svelte-1n4zc"),p(l,"class","notification-content svelte-1n4zc"),p(u,"class","notification-source svelte-1n4zc"),p(a,"class","notification svelte-1n4zc"),j(a,"--delay",n[1]*3),p(a,"tabindex","0"),fa(a,"animationStarted",n[2])},m(f,h){C(f,a,h),y(a,l),y(l,_),y(_,e),y(l,s),y(l,m),o.m(r,m),y(a,t),y(a,u),c.m(u,null)},p(f,[h]){h&1&&!I0(e.src,i=ul(f[0].platform).icon)&&p(e,"src",i),h&1&&r!==(r=f[0].comment+"")&&o.p(r),g===(g=d(f))&&c?c.p(f,h):(c.d(1),c=g(f),c&&(c.c(),c.m(u,null))),h&2&&j(a,"--delay",f[1]*3),h&4&&fa(a,"animationStarted",f[2])},i:ma,o:ma,d(f){f&&b(a),c.d()}}}function ul(n){return{icon:n==="reddit"?"assets/icons/reddit.webp":"assets/icons/instagram.webp"}}function O9(n,a,l){let{comment:_}=a,{index:e}=a,{animationStarted:i}=a;return n.$$set=s=>{"comment"in s&&l(0,_=s.comment),"index"in s&&l(1,e=s.index),"animationStarted"in s&&l(2,i=s.animationStarted)},[_,e,i]}class v_ extends pa{constructor(a){super(),ga(this,a,O9,D9,ca,{comment:0,index:1,animationStarted:2})}}function dl(n,a,l){const _=n.slice();return _[11]=a[l],_[13]=l,_}function cl(n,a,l){const _=n.slice();return _[14]=a[l],_[16]=l,_}function fl(n){let a,l=n[0][0].subtitle+"",_;return{c(){a=S("h3"),_=F(l)},l(e){a=R(e,"H3",{});var i=M(a);_=W(i,l),i.forEach(b)},m(e,i){C(e,a,i),y(a,_)},p(e,i){i&1&&l!==(l=e[0][0].subtitle+"")&&na(_,l)},d(e){e&&b(a)}}}function pl(n){let a,l,_=n[14].text+"";return{c(){a=S("p"),l=new a1(!1),this.h()},l(e){a=R(e,"P",{class:!0});var i=M(a);l=n1(i,!1),i.forEach(b),this.h()},h(){l.a=null,p(a,"class","editorial-paragraph svelte-skt2x3"),fa(a,"animationStarted",n[5]),fa(a,"first",n[2]&&n[16]===0)},m(e,i){C(e,a,i),l.m(_,a)},p(e,i){i&1&&_!==(_=e[14].text+"")&&l.p(_),i&32&&fa(a,"animationStarted",e[5]),i&4&&fa(a,"first",e[2]&&e[16]===0)},d(e){e&&b(a)}}}function z9(n){let a,l,_,e,i,s=n[0][0].subtitle&&fl(n),m=la(n[0]),o=[];for(let r=0;rK(e[s],1,1,()=>{e[s]=null});return{c(){a=S("div");for(let s=0;sc3(l,"value",m));let r=n[4]&&gl(n);return{c(){a=S("section"),Q(l.$$.fragment),e=D(),r&&r.c(),i=Y(),this.h()},l(t){a=R(t,"SECTION",{id:!0,class:!0});var u=M(a);q(l.$$.fragment,u),u.forEach(b),e=O(t),r&&r.l(t),i=Y(),this.h()},h(){p(a,"id","scrolly"),p(a,"class","scrolly-editorial svelte-skt2x3")},m(t,u){C(t,a,u),X(l,a,null),C(t,e,u),r&&r.m(t,u),C(t,i,u),s=!0},p(t,[u]){const d={};u&131175&&(d.$$scope={dirty:u,ctx:t}),!_&&u&8&&(_=!0,d.value=t[3],d3(()=>_=!1)),l.$set(d),t[4]?r?(r.p(t,u),u&16&&I(r,1)):(r=gl(t),r.c(),I(r,1),r.m(i.parentNode,i)):r&&(wa(),K(r,1,1,()=>{r=null}),Sa())},i(t){s||(I(l.$$.fragment,t),I(r),s=!0)},o(t){K(l.$$.fragment,t),K(r),s=!1},d(t){t&&(b(a),b(e),b(i)),$(l),r&&r.d(t)}}}function H9(n,a,l){let{copy:_}=a,{notifications:e}=a,{spacer:i=null}=a,{methods:s=!1}=a,{first:m=!1}=a,o,r,t=!1;function u(){o==0&&setTimeout(()=>{l(5,t=!0)},200)}let d=!1;i==="none"&&(d=!0);function g(c){o=c,l(3,o)}return n.$$set=c=>{"copy"in c&&l(0,_=c.copy),"notifications"in c&&l(7,e=c.notifications),"spacer"in c&&l(8,i=c.spacer),"methods"in c&&l(1,s=c.methods),"first"in c&&l(2,m=c.first)},n.$$.update=()=>{n.$$.dirty&128&&l(4,r=e!==void 0?e:void 0),n.$$.dirty&8&&u()},[_,s,m,o,r,t,d,e,i,g]}class Ta extends pa{constructor(a){super(),ga(this,a,H9,K9,ca,{copy:0,notifications:7,spacer:8,methods:1,first:2})}}function hl(n,a,l){const _=n.slice();return _[6]=a[l],_[8]=l,_}function yl(n){let a,l,_,e;return l=new v_({props:{comment:n[6],animationStarted:n[3],index:n[8]}}),{c(){a=S("div"),Q(l.$$.fragment),_=D(),this.h()},l(i){a=R(i,"DIV",{class:!0});var s=M(a);q(l.$$.fragment,s),_=O(s),s.forEach(b),this.h()},h(){p(a,"class","notification-wrapper")},m(i,s){C(i,a,s),X(l,a,null),y(a,_),e=!0},p(i,s){const m={};s&1&&(m.comment=i[6]),s&8&&(m.animationStarted=i[3]),l.$set(m)},i(i){e||(I(l.$$.fragment,i),e=!0)},o(i){K(l.$$.fragment,i),e=!1},d(i){i&&b(a),$(l)}}}function x9(n){let a,l,_=la(n[0]),e=[];for(let s=0;s<_.length;s+=1)e[s]=yl(hl(n,_,s));const i=s=>K(e[s],1,1,()=>{e[s]=null});return{c(){a=S("div");for(let s=0;sc3(l,"value",i)),{c(){a=S("section"),Q(l.$$.fragment),this.h()},l(m){a=R(m,"SECTION",{id:!0,class:!0});var o=M(a);q(l.$$.fragment,o),o.forEach(b),this.h()},h(){p(a,"id","scrolly"),p(a,"class","scrolly-editorial")},m(m,o){C(m,a,o),X(l,a,null),e=!0},p(m,[o]){const r={};o&523&&(r.$$scope={dirty:o,ctx:m}),!_&&o&4&&(_=!0,r.value=m[2],d3(()=>_=!1)),l.$set(r)},i(m){e||(I(l.$$.fragment,m),e=!0)},o(m){K(l.$$.fragment,m),e=!1},d(m){m&&b(a),$(l)}}}function Z9(n,a,l){let{notifications:_}=a,e,i=!1,{viewportHeight:s}=a;function m(){e==0&&setTimeout(()=>{l(3,i=!0)},1e3)}function o(r){e=r,l(2,e)}return n.$$set=r=>{"notifications"in r&&l(0,_=r.notifications),"viewportHeight"in r&&l(1,s=r.viewportHeight)},n.$$.update=()=>{n.$$.dirty&4&&m()},[_,s,e,i,o]}class F9 extends pa{constructor(a){super(),ga(this,a,Z9,j9,ca,{notifications:0,viewportHeight:1})}}function kl(n,a,l){const _=n.slice();_[7]=a[l],_[11]=l;const e=_[2]===_[11];_[8]=e;const i=_[11]===_[4].length-1;return _[9]=i,_}function vl(n,a,l){const _=n.slice();_[12]=a[l],_[11]=l;const e=Y9(_[11]);return _[13]=e,_}function Al(n){let a,l,_,e,i,s,m;return{c(){a=S("div"),l=S("img"),i=D(),this.h()},l(o){a=R(o,"DIV",{class:!0,style:!0});var r=M(a);l=R(r,"IMG",{src:!0,alt:!0,style:!0,class:!0}),i=O(r),r.forEach(b),this.h()},h(){I0(l.src,_=n[12].url)||p(l,"src",_),p(l,"alt",n[3]),j(l,"border-radius","5px"),p(l,"class","svelte-2b53qb"),p(a,"class",s="image-container fading "+(n[0]==="posts"?"image-container-posts":"")+" svelte-2b53qb"),j(a,"transform","translate(-50%, 50%) rotate("+n[13][2]+"deg)"),j(a,"transform-origin","50% 100%"),j(a,"left",n[13][0]),j(a,"bottom",n[13][1]),j(a,"border-radius","5px")},m(o,r){C(o,a,r),y(a,l),y(a,i),m=!0},p(o,r){(!m||r&16&&!I0(l.src,_=o[12].url))&&p(l,"src",_),(!m||r&8)&&p(l,"alt",o[3]),(!m||r&1&&s!==(s="image-container fading "+(o[0]==="posts"?"image-container-posts":"")+" svelte-2b53qb"))&&p(a,"class",s)},i(o){m||(o&&u3(()=>{m&&(e||(e=E2(l,i2,{y:50,duration:500},!0)),e.run(1))}),m=!0)},o(o){o&&(e||(e=E2(l,i2,{y:50,duration:500},!1)),e.run(0)),m=!1},d(o){o&&b(a),o&&e&&e.end()}}}function wl(n){let a,l=n[11]<=n[2]&&Al(n);return{c(){l&&l.c(),a=Y()},l(_){l&&l.l(_),a=Y()},m(_,e){l&&l.m(_,e),C(_,a,e)},p(_,e){_[11]<=_[2]?l?(l.p(_,e),e&4&&I(l,1)):(l=Al(_),l.c(),I(l,1),l.m(a.parentNode,a)):l&&(wa(),K(l,1,1,()=>{l=null}),Sa())},d(_){_&&b(a),l&&l.d(_)}}}function Sl(n){let a,l;return{c(){a=S("div"),this.h()},l(_){a=R(_,"DIV",{class:!0,style:!0});var e=M(a);e.forEach(b),this.h()},h(){p(a,"class","step svelte-2b53qb"),p(a,"style",l=n[1]*.5+"px;"),fa(a,"last",n[9]),fa(a,"active",n[8])},m(_,e){C(_,a,e)},p(_,e){e&2&&l!==(l=_[1]*.5+"px;")&&p(a,"style",l),e&16&&fa(a,"last",_[9]),e&4&&fa(a,"active",_[8])},d(_){_&&b(a)}}}function W9(n){let a,l=la(n[4]),_=[];for(let e=0;ec3(i,"value",t)),{c(){a=S("section"),l=S("div");for(let d=0;ds=!1)),i.$set(c),(!m||g&2)&&j(e,"margin-top",-d[1]*.5+"px")},i(d){m||(I(i.$$.fragment,d),m=!0)},o(d){K(i.$$.fragment,d),m=!1},d(d){d&&b(a),ka(r,d),$(i)}}}function Y9(n){if(n==0)return["40%","40%","-2"];let a=n%2==0?Math.random()*3:Math.random()*5*-1,l=n%2==0?-1:1,_=Math.random()*20*l,e=Math.random()*20*l;return[JSON.stringify(50+_).concat("%"),JSON.stringify(50+e).concat("%"),a]}function J9(n,a,l){let{album:_="articles"}=a,{viewportHeight:e}=a,i,s,m=[];const o=t=>t==="articles"?(l(3,s="Image carrousel of article headlines on sleep training."),[{url:"assets/images/articles/article_1.jpg"},{url:"assets/images/articles/article_2.jpg"},{url:"assets/images/articles/article_3.jpg"},{url:"assets/images/articles/article_4.jpg"},{url:"assets/images/articles/article_5.jpg"},{url:"assets/images/articles/article_6.jpg"}]):t==="social"?(l(3,s="Image carrousel of article headlines on the sleep training debate."),[{url:"assets/images/social/social_1.png"},{url:"assets/images/social/social_2.png"}]):t==="posts"?(l(3,s="Social media post images on anti-sleep training narratives."),[{url:"assets/images/posts/post_1.jpg"},{url:"assets/images/posts/post_2.jpg"},{url:"assets/images/posts/post_3.jpg"},{url:"assets/images/posts/post_4.jpg"}]):t==="debunk"?[{url:"assets/images/debunk/narvaez.jpg"},{url:"assets/images/debunk/sears.jpg"}]:[];function r(t){i=t,l(2,i)}return n.$$set=t=>{"album"in t&&l(0,_=t.album),"viewportHeight"in t&&l(1,e=t.viewportHeight)},n.$$.update=()=>{n.$$.dirty&1&&l(4,m=o(_))},[_,e,i,s,m,r]}class I1 extends pa{constructor(a){super(),ga(this,a,J9,V9,ca,{album:0,viewportHeight:1})}}function Q9(n){let a,l,_,e="Your browser does not support the video element.",i,s,m,o,r,t;return{c(){a=S("div"),l=S("video"),_=S("p"),_.textContent=e,s=D(),m=S("div"),o=F("Source: "),r=S("a"),t=F(n[0]),this.h()},l(u){a=R(u,"DIV",{class:!0});var d=M(a);l=R(d,"VIDEO",{src:!0,poster:!0,class:!0});var g=M(l);_=R(g,"P",{"data-svelte-h":!0}),va(_)!=="svelte-g59578"&&(_.textContent=e),g.forEach(b),s=O(d),m=R(d,"DIV",{class:!0});var c=M(m);o=W(c,"Source: "),r=R(c,"A",{href:!0,target:!0});var f=M(r);t=W(f,n[0]),f.forEach(b),c.forEach(b),d.forEach(b),this.h()},h(){I0(l.src,i=n[1])||p(l,"src",i),p(l,"poster",n[2]),l.controls=!0,p(l,"class","svelte-r22yiu"),p(r,"href",n[4]),p(r,"target","_blank"),p(m,"class","caption"),p(a,"class","video-container svelte-r22yiu")},m(u,d){C(u,a,d),y(a,l),y(l,_),n[6](l),y(a,s),y(a,m),y(m,o),y(m,r),y(r,t)},p(u,[d]){d&2&&!I0(l.src,i=u[1])&&p(l,"src",i),d&4&&p(l,"poster",u[2]),d&1&&na(t,u[0]),d&16&&p(r,"href",u[4])},i:ma,o:ma,d(u){u&&b(a),n[6](null)}}}function q9(n,a,l){let _,{video:e}=a,{caption:i}=a,s="",m="",o;const r=u=>u==="cbum"?{videoUrl:"assets/videos/cbum.mp4",posterUrl:"assets/posters/poster_1.webp",srcUrl:"https://www.instagram.com/reel/C43zSHGv6t8/?igsh=eDBzMmY4NWJ0cHpv"}:{videoUrl:"assets/videos/sleep.mp4",posterUrl:"assets/posters/poster.webp",srcUrl:"https://www.tiktok.com/@ustheremingtons/video/7338176510408412446?lang=en"};function t(u){L0[u?"unshift":"push"](()=>{o=u,l(3,o)})}return n.$$set=u=>{"video"in u&&l(5,e=u.video),"caption"in u&&l(0,i=u.caption)},n.$$.update=()=>{n.$$.dirty&32&&l(1,{videoUrl:s,posterUrl:m,srcUrl:_}=r(e),s,(l(2,m),l(5,e)),(l(4,_),l(5,e)))},[i,s,m,o,_,e,t]}class Rl extends pa{constructor(a){super(),ga(this,a,q9,Q9,ca,{video:5,caption:0})}}function Nl(n,a,l){const _=n.slice();return _[5]=a[l],_}function El(n){let a,l,_,e,i='Year Title Grounding Relevance',s,m,o=la(n[2].filter(n[4])),r=[];for(let t=0;tNot Relevant',c;function f(A,w){return A[5].theoretical==="FALSE"?$9:X9}let h=f(n),v=h(n);return{c(){a=S("tr"),l=S("td"),e=F(_),i=D(),s=S("td"),o=F(m),r=D(),t=S("td"),v.c(),u=D(),d=S("td"),d.innerHTML=g,c=D(),this.h()},l(A){a=R(A,"TR",{});var w=M(a);l=R(w,"TD",{class:!0});var k=M(l);e=W(k,_),k.forEach(b),i=O(w),s=R(w,"TD",{class:!0});var E=M(s);o=W(E,m),E.forEach(b),r=O(w),t=R(w,"TD",{class:!0});var L=M(t);v.l(L),L.forEach(b),u=O(w),d=R(w,"TD",{class:!0,"data-svelte-h":!0}),va(d)!=="svelte-1s4vhlc"&&(d.innerHTML=g),c=O(w),w.forEach(b),this.h()},h(){p(l,"class","svelte-x5h93a"),p(s,"class","svelte-x5h93a"),p(t,"class","svelte-x5h93a"),p(d,"class","svelte-x5h93a")},m(A,w){C(A,a,w),y(a,l),y(l,e),y(a,i),y(a,s),y(s,o),y(a,r),y(a,t),v.m(t,null),y(a,u),y(a,d),y(a,c)},p(A,w){w&1&&_!==(_=A[5].date+"")&&na(e,_),w&1&&m!==(m=A[5].title+"")&&na(o,m),h!==(h=f(A))&&(v.d(1),v=h(A),v&&(v.c(),v.m(t,null)))},d(A){A&&b(a),v.d()}}}function a7(n){let a,l,_,e=n[1]?"▼":"▶",i,s,m=Ll(n[0])+"",o,r,t,u,d,g=n[1]&&El(n);return{c(){a=S("div"),l=S("div"),_=S("span"),i=F(e),s=D(),o=F(m),r=F(" References"),t=D(),g&&g.c(),this.h()},l(c){a=R(c,"DIV",{class:!0,tabindex:!0});var f=M(a);l=R(f,"DIV",{class:!0});var h=M(l);_=R(h,"SPAN",{});var v=M(_);i=W(v,e),s=O(v),o=W(v,m),r=W(v," References"),v.forEach(b),h.forEach(b),t=O(f),g&&g.l(f),f.forEach(b),this.h()},h(){p(l,"class","references-header svelte-x5h93a"),p(a,"class","references-dropdown svelte-x5h93a"),p(a,"tabindex","0")},m(c,f){C(c,a,f),y(a,l),y(l,_),y(_,i),y(_,s),y(_,o),y(_,r),y(a,t),g&&g.m(a,null),u||(d=U1(l,"click",n[3]),u=!0)},p(c,[f]){f&2&&e!==(e=c[1]?"▼":"▶")&&na(i,e),f&1&&m!==(m=Ll(c[0])+"")&&na(o,m),c[1]?g?g.p(c,f):(g=El(c),g.c(),g.m(a,null)):g&&(g.d(1),g=null)},i:ma,o:ma,d(c){c&&b(a),g&&g.d(),u=!1,d()}}}function Ll(n){return n.charAt(0).toUpperCase()+n.slice(1)}function n7(n,a,l){let{target:_}=a,e=$3("data").references,i=!1;function s(){l(1,i=!i)}const m=o=>o.target===_;return n.$$set=o=>{"target"in o&&l(0,_=o.target)},[_,i,e,s,m]}class Bl extends pa{constructor(a){super(),ga(this,a,n7,a7,ca,{target:0})}}const l7=[{link:"https://the-pudding.github.io/sleep-training/"}],_7="IsSleep TrainingHarmful?",e7="Is Sleep Training Harmful?",s7="Misinformation and facts behind the internet’s most polarizing parenting debate.",i7="https://pudding.cool/2024/06/sleep-training",m7="sleep training",o7=[{text:"I recently became a parent and discovered an entirely new layer of society, rife with opposing opinions on nearly every detail of child-rearing."},{text:"One of the most debated questions is whether or not to sleep train your child. The objective of sleep training is to teach infants to fall asleep independently, particularly if they frequently wake up in the middle of the night."},{text:"Here’s a video from TikTok influencer Tiffany Remington as she decides to begin sleep training after enduring months of sleepless nights with her child."}],r7=[{text:"Sleep training involves letting babies cry in a safe environment until they fall asleep; they might cry for up to an hour on the first cycle. The entire process initially takes between three to seven days."},{text:"As I began researching sleep training, I discovered a heated debate with two sides:"},{text:"
  1. Sleep training is safe and effective, and a choice parents can openly make.
  2. There’s no choice: sleep training is harmful.
"}],t7=[{text:"When my partner and I started discussing sleep training, we were wondering whether it was a neutral choice for our son (like using formula or a pacifier). Unfortunately many of our friends would disapprove, so it was impossible to discuss openly and learn from other parents’ experiences."},{text:"Which meant that I had to look to the internet for information."},{text:"The first thing I landed on was a Reddit post in the parenting community, The dividing question. Letting your baby cry it out?, which asked for “fair reasoning from both sides of the debate.”"}],u7=[{text:"Each of these bubbles represents the 335 Reddit user comments on the post, categorized by their position towards sleep training: advocating for, opposed to, or no position (if the user was impartial or did not clearly express an opinion)."},{text:"The comments are extremely divided and users on both sides cited articles to defend their positions.

I decided to take a closer look at these sources."},{text:"To analyze the media landscape, I scraped the 200 most recent articles from Google News with titles or descriptions containing the keywords baby sleep, cry it out, or sleep training."},{text:"There were hundreds of articles from reporters pushing their opinion on both sides of the debate, many with incredibly dramatic titles."},{text:"If parenting articles were so divisive, I hoped that books about sleep training might give me a clearer answer."},{text:"This 2006 study by Kathleen Ramos and Davin Younglarke categorized the 40 most popular sleep training books according to their position, and again the results were divided.

At this point, I still have no idea whether sleep training is a neutral choice or could cause potential harm.

*The researchers used the quantity of library holdings at large bookstores as a metric for popularity."},{text:"So I started looking into medical research, which is where things get really surprising.

I used 9 literature reviews from pediatric sleep experts: the authors review all available research at the time of publication, verifying the quality of the trials and consolidating the data."},{text:"The first review was conducted in 2006, when a task force appointed by the American Academy of Sleep Medicine analyzed 52 available treatment studies."},{text:"The task force, led by Dr. Jodi Mindell, reported that 49 of the 52 studies produced “significant improvements in bedtime problems and/or night wakings” and 80% of children treated demonstrated significant improvement in sleep, which was maintained for 3 to 6 months."},{text:"Another umbrella review from 2022 analyzed five reviews of 24 studies with over 11,500 participants.

It concluded that sleep training behavioral interventions “could be recommended and adapted to the family individually.”"},{text:"The review with no position, led by Dr. Douglas, argues that sleep training does not work before the age of 6 months, however it has been criticized by pediatric sleep experts because it cites theoretical studies rather than clinical trials."},{text:"If we look at all 75 clinical trials across the aforementioned literature reviews, over 30,000 babies participated between 1980 and 2022. The clinical consensus isn’t divided: to date, no published research points to sleep training causing harm, and the majority of published pediatric sleep researchers advocate sleep training.

*Although these combined reviews include most, if not all, of the available pediatric treatment studies, it is likely that some were missed, although it would not change the conclusions."},{text:"Only this study, led by Wendy Middlemiss, stands out. Three of the most published researchers in the field wrote a letter to the publishing journal expressing their concerns on the study and outlining its issues. “The aim of the paper was not to comment on the safety of behavioural sleep techniques, but a conclusion of the article has been used by social media outlets to warn against their use”.[a]"},{text:"Now if we look at the twenty most popular sleep training profiles on Instagram and categorize each as advocating, no position or opposing we see that the platform’s discourse leans against sleep training."},{text:"All of these sleep consultants reach hundreds of thousands of people daily. Why are so many opposed to sleep training?

*This data was collected by scraping Google for the first 40 Instagram profiles under the keywords “baby sleep training”, subsequently filtered by follower count."},{text:"Critics have pointed out that the clinical research is too recent. If we plot each clinical study according to year of publication, we see that indeed most occurred within the past 40 years.

But the same can be said for the vaccines we give our children; I’m not sure recency is a cause for concern."},{text:"Critics also point out that sleep training is a Western practice; this is also true. If we connect each research study to its primary university's country about 85% have occurred in Western countries.

That being said baby formula was invented in Germany and popularized in English-speaking countries, by this argument formula should also be reconsidered."},{text:"So why is there such a huge gap between the research and the online discourse? Where is the research against sleep training that influencers are mentioning?"}],d7=[{text:"Among many of the articles, blog posts, and social media posts that oppose sleep training, two scientists’ opinions are most commonly cited as evidence: Dr. William Sears and Dr. Darcia Narvaez. Dr Narvaez’ article was referred to 4 times in the Reddit thread alone, she was the only source mentioned to support arguments against sleep training."},{text:"I asked Dr. Jodi Mindell, who led three of the eight literature reviews on sleep training, to help me analyze the research cited by Dr. Sears and Dr. Narvaez to confirm whether their conclusions were accurate. Using the following criteria, Dr. Mindell assessed the studies referenced by both authors to determine their relevance for sleep training:"},{text:"
  1. Grounding: Is the reference a theoretical article or a research study?
  2. Relevance: Is the reference sleep or sleep-training specific?
"},{text:"Her review shows that none of the references are either sleep or sleep-training specific and almost all are theoretical review papers. You can see the list of references for yourself below:"}],c7=[{text:"For example, Dr. Narvaez cites The hormonal costs of subtle forms of infant maltreatment, a study that examines infants who suffer from frequent corporal punishment and long-term maltreatment. This is hardly comparable to short behavioral interventions, such as sleep training, from caring parents."},{text:"I’m not here to advocate for sleep training. I am, however, making a case against the misinformation that paints sleep training as damaging for babies."}],f7=[{text:"Dr. Sears’s article Is Excessive Crying Harmful? has been circulated on social media, he poses the question of whether “infants who endure many nights or weeks of crying-it-out…may have permanent implications on the development of sections of their brain?” Here's a terrifying quote that most parents researching sleep training will come across on social media:"},{text:"
“Research has shown that infants who are routinely separated from parents in a stressful way have abnormally high levels of the stress hormone cortisol, as well as lower growth hormone levels. These imbalances inhibit the development of nerve tissue in the brain, suppress growth, and depress the immune system.”
"},{text:"The idea that sleep training damages children’s brains because of chronic stress became prevalent in mainstream media and disseminated on social media."}],p7=[{text:"The claims made by Dr. Sears misconstrue or dramatize the science. In his article, Sears cites the work of Dr. Joan Kaufman, portraying her research as evidence that “intense stress early in life can alter the brain’s neurotransmitter systems and cause structural and functional changes in regions of the brain similar to those seen in adults with depression.” But Dr. Kaufman herself argued that it was unfair to use her work as evidence against sleep training:"},{text:"
“Our paper is not referring to routine, brief stressful experiences, but to abuse and neglect. It is a mis-citation of our work to support a non-scientifically justified idea.”
"},{text:"Regarding elevated cortisol levels, this was studied as a randomized controlled trial in 2022, measuring no difference in cortisol levels across different methods of sleep training and in comparison to a control group that was not sleep trained. This study is counted among the 75 clinical trials discussed earlier, all concluding that sleep training causes no measurable harm."},{text:"When it comes to Sears’s warnings of “excessive crying,” clinical studies define “excessive crying” as inconsolable and continued crying despite parental attempts to soothe for 3 hours or more per day for a prolonged period of time. Since sleep training should be completed in two weeks, with crying drastically reduced on the third day, it does not fit the characteristics of excessive crying and prolonged stress as determined by studies on child trauma.[b]"}],g7=[{text:"Next we have Dr. Narvaez, who writes in the Dangers of Crying It Out, that she “only recently realized from extensive reading about the effects of early parenting on body and brain development.” She describes her childhood as raised by a “depressed mother, harsh father, and overall emotionally unsupportive environment” and that “letting babies get distressed is a practice that can harm children” and at odds with building secure attachment:"},{text:"
“The '‘cry it out’ method releases stress hormones, impairs self-regulation, and undermines trust.”
"},{text:"Her articles have been cited hundreds of times by bloggers and publishers, such as Romper and Science Times."},{text:"But researchers have found no evidence of sleep training impacting attachment."}],b7=[{text:"Fortunately, attachment can and has been measured with the strange situation test, and there have been studies testing attachment a year or more after sleep training."},{text:"The most conclusive long-term study on sleep training to date is a 2012 randomized controlled trial on 326 infants, which found no difference on any measure—negative or positive—between children who were sleep trained and those who weren't after a 5 year follow up. The study includes measurements of sleep patterns, behavior, cortisol levels, and, importantly, attachment."},{text:"So from a scientific perspective, the theory that sleep training undermines attachment remains unsupported but from a popular perspective it has become a common belief."}],h7=[{text:"Professionals with[c] years of specialized education have invested hundreds of thousands of hours testing different sleep training methods on thousands of parents and children, and I can't help but wonder why the current trend is to ignore the available science."}],y7=[{text:"According to Dr. Mindell:

“Studies show no long-term negative psychological effects of sleep training through at least five years out. Unfortunately no studies have been done looking at 20 or 30 years later, instead there is just speculation.

However, based on science, it is highly doubtful that a few nights of sleep training that leads to improved sleep and family well-being is going to result in long-term harm.

Equating a few nights of sleep training within the context of a loving, responsive home to long-term neglect and abuse is fear mongering. Families need to decide for themselves what fits with their parenting style and works best for their family and baby.”
"},{text:"What if by wanting to do things differently and assuming we know better, we're depriving our children and ourselves of sleep? Much like formula used to be shamed and has now become a neutral decision, I hope that the misinformation on sleep training will end so that parents can explore options without the fear of judgment."},{text:"Not all children are the same and not all are easy sleepers, so if you’re exhausted and in need of a solution please don’t consider these arguments as proof that sleep training isn’t an option, it’s your decision to make."}],k7=[{text:"The source data for this article is accessible here."},{text:"The clinical studies were manually copied from the body of literature reviews on sleep training which were provided by Dr. Jodi Mindell. The article was written with editorial supervision from Dr. Mindell."},{text:"The reddit comments were scraped from the Reddit post in the /parenting community, I then read through all of the comments and manually categorized each according to their position."},{text:"The Instagram profiles were collected by scraping Google for the top 40 results in the search query “instagram baby sleep,” sorting them according to follower count and keeping the top 20 profiles. I then analyzed each influencer’s posts and websites to determine their position on sleep training."},{text:"The books were collected from the Ramos and Youngclarke study. The study determined the quantity of library holdings by “looking up each title in the OCLC (Online Computer Library Center) WorldCat electronic database, which is a combined catalog of the holdings of thousands of libraries worldwide.”"},{text:"The articles were collected by scraping the top 200 results for keywords “baby sleep” “sleep training” “cry it out” on Google News. I manually looked at each article and categorized them according to position, often these positions are evident in the title."}],v7="
”I personally have an issue with the cortisol studies, cortisol changes throughout the day. Even sampling cortisol is very difficult. It's based on many things, including how many hours a person has been awake and how it's sampled.”
",A7=[{text:"These opinions inevitably trickle down to Instagram and TikTok, which is where many new parents today spend time. The content that is pushed by the algorithm is often divisive and extreme, which isn’t exactly helpful for healthy parenting."}],w7=[{text:`Another common symptom of these platforms is to pathologize things that might be entirely normal, using technical terms in a non-technical context. For example “crying” creates “trauma” or “attachment issues.” But researchers who are dedicated to identifying said "trauma" or "attachment issues" have been unable to validate parents' hunches.`}],S7=[{text:"Unfortunately TikTok and Instagram influence the parenting opinions of millions of people and shift cultural standards."}],R7=[{text:"Sleep training has also been associated with lazy parenting, with social media users criticizing parents’ unwillingness to hold their baby all night long. Looking at it more rationally - babies and parents both need sleep and whichever method will help them sleep better is probably worth exploring."}],N7=[{text:"It’s important to point out that there's also no financial reward in promoting sleep training because it isn’t a complex technique for parents to learn. If you're in the business of baby sleep consulting, there’s incentive to argue against it and promote methods that require specialized expertise."},{text:"It’s for this reason that I deeply appreciate the most influential sleep consultants who choose not to misinform their audiences."}],E7=[],M7=[],L7=[],ba={ignore:l7,title:_7,titleNoSpan:e7,description:s7,url:i7,keywords:m7,intro_article:o7,intro_article_2:r7,intro_article_3:t7,viz_main:u7,debunk_intro:d7,debunk_intro_2:c7,sears_intro:f7,debunk_sears:p7,debunk_narvaez:g7,debunk_narvaez_2:b7,editorial_conclusion:h7,editorial_conclusion_2:y7,methodologies:k7,text:v7,instagram_1:A7,instagram_2:w7,instagram_3:S7,lazy_parenting:R7,editorial_influencerPackages:N7,a:E7,b:M7,c:L7};function Tl(n){let a,l,_,e,i,s,m,o,r=ba.title+"",t,u,d=ba.description+"",g,c,f,h='by Tom Vaillant, July 14, 2024',v,A,w,k,E,L,G,T,z,H,B,x,U,P,N,V,aa,ia,ra="Common narratives that are winning on social media",Va,ha,Pa,ya,qa,Na,s1,s0,i1,Xa,m1,$a,i0,g2='Narrative: Sleep Training Damages Babies’ Brains',o1,m0,r1,K0,t1,a0,u1,n0,o0,b2='Research: There is No Proof of Harm',d1,r0,c1,t0,h2='Image of baby in crib',f1,u0,y2='Photo by Marie Despeyroux on Unsplash',p1,Ea,d0,k2='Narrative: It Creates Insecure Attachment',g1,c0,b1,f0,h1,p0,v2='Research: There is No Proof of Insecure Attachment',y1,g0,k1,Ma,b0,A2="Conclusion",v1,h0,A1,y0,w1,l0,w2="Methods",S1,k0,g3;return l=new F9({props:{viewportHeight:n[0],notifications:n[2]}}),w=new Ta({props:{first:!0,copy:ba.intro_article,spacer:"none"}}),E=new Rl({props:{video:"sleep",caption:"Tiffany Remington","aria-label":"TikTok influencer Tiffany films herself as she rocks her baby to sleep, emotionally wrought after many sleepless nights she gives up and decides to start sleep training."}}),G=new Ta({props:{copy:ba.intro_article_2}}),z=new I1({props:{viewportHeight:n[0],album:"articles",height:"75"}}),x=new Ta({props:{copy:ba.intro_article_3}}),N=new I9({props:{viewportHeight:n[0],copy:ba.viz_main,stepHandler:n[7],switcher:"bubbles"}}),ha=new Ta({props:{copy:ba.debunk_intro,spacer:"none"}}),ya=new Bl({props:{target:"narvaez"}}),Na=new Bl({props:{target:"sears"}}),s0=new Ta({props:{copy:ba.debunk_intro_2,spacer:"none",notifications:n[5]}}),Xa=new I1({props:{viewportHeight:n[0],album:"social",height:"35"}}),m0=new Ta({props:{copy:ba.sears_intro,spacer:"none",notifications:n[3]}}),a0=new I1({props:{viewportHeight:n[0],album:"posts",height:"75",isSocial:!0}}),r0=new Ta({props:{copy:ba.debunk_sears,spacer:"none"}}),c0=new Ta({props:{copy:ba.debunk_narvaez,spacer:"none",notifications:n[4]}}),f0=new Rl({props:{video:"cbum",caption:"Chris Williamson","aria-label":"Fitness athlete and influencer Cbum talks to Chris about his opinion on sleep training, denouncing it as causing attachment issues for babies."}}),g0=new Ta({props:{copy:ba.debunk_narvaez_2,spacer:"none"}}),h0=new Ta({props:{copy:ba.editorial_conclusion,title:"Conclusion",spacer:"none"}}),y0=new Ta({props:{copy:ba.editorial_conclusion_2,spacer:"none",notifications:n[6]}}),k0=new Ta({props:{methods:!0,copy:ba.methodologies}}),{c(){a=S("div"),Q(l.$$.fragment),_=D(),e=S("div"),i=D(),s=S("div"),m=S("h1"),o=new a1(!1),t=D(),u=S("h2"),g=F(d),c=D(),f=S("p"),f.innerHTML=h,v=D(),A=S("div"),Q(w.$$.fragment),k=D(),Q(E.$$.fragment),L=D(),Q(G.$$.fragment),T=D(),Q(z.$$.fragment),H=D(),B=S("div"),Q(x.$$.fragment),U=D(),P=S("section"),Q(N.$$.fragment),V=D(),aa=S("div"),ia=S("h3"),ia.textContent=ra,Va=D(),Q(ha.$$.fragment),Pa=D(),Q(ya.$$.fragment),qa=D(),Q(Na.$$.fragment),s1=D(),Q(s0.$$.fragment),i1=D(),Q(Xa.$$.fragment),m1=D(),$a=S("div"),i0=S("h3"),i0.innerHTML=g2,o1=D(),Q(m0.$$.fragment),r1=D(),K0=S("div"),t1=D(),Q(a0.$$.fragment),u1=D(),n0=S("div"),o0=S("h3"),o0.innerHTML=b2,d1=D(),Q(r0.$$.fragment),c1=D(),t0=S("div"),t0.innerHTML=h2,f1=D(),u0=S("div"),u0.innerHTML=y2,p1=D(),Ea=S("div"),d0=S("h3"),d0.innerHTML=k2,g1=D(),Q(c0.$$.fragment),b1=D(),Q(f0.$$.fragment),h1=D(),p0=S("h3"),p0.innerHTML=v2,y1=D(),Q(g0.$$.fragment),k1=D(),Ma=S("div"),b0=S("h3"),b0.textContent=A2,v1=D(),Q(h0.$$.fragment),A1=D(),Q(y0.$$.fragment),w1=D(),l0=S("h3"),l0.textContent=w2,S1=D(),Q(k0.$$.fragment),this.h()},l(Z){a=R(Z,"DIV",{id:!0,class:!0});var J=M(a);q(l.$$.fragment,J),_=O(J),e=R(J,"DIV",{class:!0}),M(e).forEach(b),i=O(J),s=R(J,"DIV",{class:!0});var Ya=M(s);m=R(Ya,"H1",{class:!0});var H0=M(m);o=n1(H0,!1),H0.forEach(b),t=O(Ya),u=R(Ya,"H2",{class:!0,style:!0});var x0=M(u);g=W(x0,d),x0.forEach(b),c=O(Ya),f=R(Ya,"P",{class:!0,"data-svelte-h":!0}),va(f)!=="svelte-e517dl"&&(f.innerHTML=h),Ya.forEach(b),v=O(J),A=R(J,"DIV",{class:!0});var Ja=M(A);q(w.$$.fragment,Ja),k=O(Ja),q(E.$$.fragment,Ja),L=O(Ja),q(G.$$.fragment,Ja),Ja.forEach(b),T=O(J),q(z.$$.fragment,J),H=O(J),B=R(J,"DIV",{class:!0});var j0=M(B);q(x.$$.fragment,j0),j0.forEach(b),U=O(J),P=R(J,"SECTION",{class:!0});var S2=M(P);q(N.$$.fragment,S2),S2.forEach(b),V=O(J),aa=R(J,"DIV",{class:!0});var za=M(aa);ia=R(za,"H3",{class:!0,"data-svelte-h":!0}),va(ia)!=="svelte-1egkj2d"&&(ia.textContent=ra),Va=O(za),q(ha.$$.fragment,za),Pa=O(za),q(ya.$$.fragment,za),qa=O(za),q(Na.$$.fragment,za),s1=O(za),q(s0.$$.fragment,za),za.forEach(b),i1=O(J),q(Xa.$$.fragment,J),m1=O(J),$a=R(J,"DIV",{class:!0});var b3=M($a);i0=R(b3,"H3",{class:!0,"data-svelte-h":!0}),va(i0)!=="svelte-13ukf7h"&&(i0.innerHTML=g2),o1=O(b3),q(m0.$$.fragment,b3),b3.forEach(b),r1=O(J),K0=R(J,"DIV",{class:!0}),M(K0).forEach(b),t1=O(J),q(a0.$$.fragment,J),u1=O(J),n0=R(J,"DIV",{class:!0});var h3=M(n0);o0=R(h3,"H3",{class:!0,"data-svelte-h":!0}),va(o0)!=="svelte-nfbspc"&&(o0.innerHTML=b2),d1=O(h3),q(r0.$$.fragment,h3),h3.forEach(b),c1=O(J),t0=R(J,"DIV",{class:!0,"data-svelte-h":!0}),va(t0)!=="svelte-7slnx6"&&(t0.innerHTML=h2),f1=O(J),u0=R(J,"DIV",{class:!0,"data-svelte-h":!0}),va(u0)!=="svelte-17peqsy"&&(u0.innerHTML=y2),p1=O(J),Ea=R(J,"DIV",{class:!0});var Ka=M(Ea);d0=R(Ka,"H3",{class:!0,"data-svelte-h":!0}),va(d0)!=="svelte-1nglmub"&&(d0.innerHTML=k2),g1=O(Ka),q(c0.$$.fragment,Ka),b1=O(Ka),q(f0.$$.fragment,Ka),h1=O(Ka),p0=R(Ka,"H3",{class:!0,"data-svelte-h":!0}),va(p0)!=="svelte-1ydu40n"&&(p0.innerHTML=v2),y1=O(Ka),q(g0.$$.fragment,Ka),Ka.forEach(b),k1=O(J),Ma=R(J,"DIV",{class:!0});var Ha=M(Ma);b0=R(Ha,"H3",{class:!0,"data-svelte-h":!0}),va(b0)!=="svelte-92cj81"&&(b0.textContent=A2),v1=O(Ha),q(h0.$$.fragment,Ha),A1=O(Ha),q(y0.$$.fragment,Ha),w1=O(Ha),l0=R(Ha,"H3",{id:!0,class:!0,"data-svelte-h":!0}),va(l0)!=="svelte-821eve"&&(l0.textContent=w2),S1=O(Ha),q(k0.$$.fragment,Ha),Ha.forEach(b),J.forEach(b),this.h()},h(){p(e,"class","spacer svelte-1pg58ls"),o.a=null,p(m,"class","title title-large svelte-1pg58ls"),fa(m,"loaded",P1),p(u,"class","title dek svelte-1pg58ls"),j(u,"--delay","0.5s"),fa(u,"loaded",P1),p(f,"class","title byline svelte-1pg58ls"),fa(f,"loaded",P1),p(s,"class","title-section svelte-1pg58ls"),p(A,"class","editorial-container"),p(B,"class","editorial-container"),p(P,"class","svelte-1pg58ls"),p(ia,"class","sub-title svelte-1pg58ls"),p(aa,"class","editorial-container"),p(i0,"class","sub-title sub-title-smaller svelte-1pg58ls"),p($a,"class","editorial-container"),p(K0,"class","spacer svelte-1pg58ls"),p(o0,"class","sub-title sub-title-smaller svelte-1pg58ls"),p(n0,"class","editorial-container"),p(t0,"class","img-container svelte-1pg58ls"),p(u0,"class","caption"),p(d0,"class","sub-title sub-title-smaller svelte-1pg58ls"),p(p0,"class","sub-title sub-title-smaller svelte-1pg58ls"),p(Ea,"class","editorial-container"),p(b0,"class","sub-title svelte-1pg58ls"),p(l0,"id","methods"),p(l0,"class","sub-title sub-title-smaller svelte-1pg58ls"),p(Ma,"class","editorial-container conclusion svelte-1pg58ls"),p(a,"id","article"),p(a,"class","svelte-1pg58ls")},m(Z,J){C(Z,a,J),X(l,a,null),y(a,_),y(a,e),y(a,i),y(a,s),y(s,m),o.m(r,m),y(s,t),y(s,u),y(u,g),y(s,c),y(s,f),y(a,v),y(a,A),X(w,A,null),y(A,k),X(E,A,null),y(A,L),X(G,A,null),y(a,T),X(z,a,null),y(a,H),y(a,B),X(x,B,null),y(a,U),y(a,P),X(N,P,null),y(a,V),y(a,aa),y(aa,ia),y(aa,Va),X(ha,aa,null),y(aa,Pa),X(ya,aa,null),y(aa,qa),X(Na,aa,null),y(aa,s1),X(s0,aa,null),y(a,i1),X(Xa,a,null),y(a,m1),y(a,$a),y($a,i0),y($a,o1),X(m0,$a,null),y(a,r1),y(a,K0),y(a,t1),X(a0,a,null),y(a,u1),y(a,n0),y(n0,o0),y(n0,d1),X(r0,n0,null),y(a,c1),y(a,t0),y(a,f1),y(a,u0),y(a,p1),y(a,Ea),y(Ea,d0),y(Ea,g1),X(c0,Ea,null),y(Ea,b1),X(f0,Ea,null),y(Ea,h1),y(Ea,p0),y(Ea,y1),X(g0,Ea,null),y(a,k1),y(a,Ma),y(Ma,b0),y(Ma,v1),X(h0,Ma,null),y(Ma,A1),X(y0,Ma,null),y(Ma,w1),y(Ma,l0),y(Ma,S1),X(k0,Ma,null),g3=!0},p(Z,J){const Ya={};J&1&&(Ya.viewportHeight=Z[0]),l.$set(Ya);const H0={};J&1&&(H0.viewportHeight=Z[0]),z.$set(H0);const x0={};J&1&&(x0.viewportHeight=Z[0]),N.$set(x0);const Ja={};J&1&&(Ja.viewportHeight=Z[0]),Xa.$set(Ja);const j0={};J&1&&(j0.viewportHeight=Z[0]),a0.$set(j0)},i(Z){g3||(I(l.$$.fragment,Z),I(w.$$.fragment,Z),I(E.$$.fragment,Z),I(G.$$.fragment,Z),I(z.$$.fragment,Z),I(x.$$.fragment,Z),I(N.$$.fragment,Z),I(ha.$$.fragment,Z),I(ya.$$.fragment,Z),I(Na.$$.fragment,Z),I(s0.$$.fragment,Z),I(Xa.$$.fragment,Z),I(m0.$$.fragment,Z),I(a0.$$.fragment,Z),I(r0.$$.fragment,Z),I(c0.$$.fragment,Z),I(f0.$$.fragment,Z),I(g0.$$.fragment,Z),I(h0.$$.fragment,Z),I(y0.$$.fragment,Z),I(k0.$$.fragment,Z),g3=!0)},o(Z){K(l.$$.fragment,Z),K(w.$$.fragment,Z),K(E.$$.fragment,Z),K(G.$$.fragment,Z),K(z.$$.fragment,Z),K(x.$$.fragment,Z),K(N.$$.fragment,Z),K(ha.$$.fragment,Z),K(ya.$$.fragment,Z),K(Na.$$.fragment,Z),K(s0.$$.fragment,Z),K(Xa.$$.fragment,Z),K(m0.$$.fragment,Z),K(a0.$$.fragment,Z),K(r0.$$.fragment,Z),K(c0.$$.fragment,Z),K(f0.$$.fragment,Z),K(g0.$$.fragment,Z),K(h0.$$.fragment,Z),K(y0.$$.fragment,Z),K(k0.$$.fragment,Z),g3=!1},d(Z){Z&&b(a),$(l),$(w),$(E),$(G),$(z),$(x),$(N),$(ha),$(ya),$(Na),$(s0),$(Xa),$(m0),$(a0),$(r0),$(c0),$(f0),$(g0),$(h0),$(y0),$(k0)}}}function B7(n){let a,l,_=n[1]&&Tl(n);return{c(){_&&_.c(),a=Y()},l(e){_&&_.l(e),a=Y()},m(e,i){_&&_.m(e,i),C(e,a,i),l=!0},p(e,[i]){e[1]?_?(_.p(e,i),i&2&&I(_,1)):(_=Tl(e),_.c(),I(_,1),_.m(a.parentNode,a)):_&&(wa(),K(_,1,1,()=>{_=null}),Sa())},i(e){l||(I(_),l=!0)},o(e){K(_),l=!1},d(e){e&&b(a),_&&_.d(e)}}}let P1=!1;function T7(n,a,l){let _;Oa(n,f3,k=>l(8,_=k)),D1("copy",ba);let e,i,s=$3("data");const m=s.articles.filter(k=>k.url==="https://www.psychologytoday.com/intl/blog/moral-landscapes/201112/dangers-crying-it-out")[0],o=s.reddit.filter(k=>k.username==="leftpantleg420")[0],r=s.literature_reviews.filter(k=>k.url==="https://pubmed.ncbi.nlm.nih.gov/35778903/")[0],t=s.literature_reviews.filter(k=>k.url==="https://pubmed.ncbi.nlm.nih.gov/24042081/")[0],u=s.books.filter(k=>k.title==="Getting Your Child to Sleep... and Back to Sleep")[0],d=s.studies.filter(k=>k.url==="https://pubmed.ncbi.nlm.nih.gov/21945361/")[0],g=s.literature_reviews.filter(k=>k.url==="https://aasm.org/resources/practiceparameters/review_nightwakingschildren.pdf")[0];let c=s.comments.filter(k=>k.category==="divided"),f=s.comments.filter(k=>k.category==="brain damage"),h=s.comments.filter(k=>k.category==="attachment"),v=s.comments.filter(k=>k.category==="instagram"),A=s.comments.filter(k=>k.category==="conclusion");function w(k){switch(!0){case(k<1||!k):return{renderedData:s.reddit,focusHover:null,caption:"Bubble chart of user opinions on Reddit, heavily divided."};case(k>=1&&k<2):return{renderedData:s.reddit,focusHover:o,caption:"Bubble chart of user opinions on Reddit, heavily divided."};case(k>=2&&k<3):return{renderedData:s.articles,focusHover:null,caption:"Bubble chart of user opinions on news articles, heavily divided."};case(k>=3&&k<4):return{renderedData:s.articles,focusHover:m,caption:"Bubble chart of user opinions on Reddit, heavily divided."};case(k>=4&&k<5):return{renderedData:s.books,focusHover:null,caption:"Bubble chart of author opinions on books, heavily divided."};case(k>=5&&k<6):return{renderedData:s.books,focusHover:u,caption:"Bubble chart of author opinions on books, heavily divided."};case(k>=6&&k<7):return{renderedData:s.literature_reviews,focusHover:null,caption:"Bubble chart of medical positions on sleep training literature reviews, almost entirely advocating."};case(k>=7&&k<8):return{renderedData:s.literature_reviews,focusHover:g,caption:"Bubble chart of medical positions on sleep training literature reviews, almost entirely advocating."};case(k>=8&&k<9):return{renderedData:s.literature_reviews,focusHover:null,caption:"Bubble chart of medical positions on sleep training literature reviews, almost entirely advocating."};case(k>=9&&k<10):return{renderedData:s.literature_reviews,focusHover:r,caption:"Bubble chart of medical positions on sleep training literature reviews, almost entirely advocating."};case(k>=10&&k<11):return{renderedData:s.literature_reviews,focusHover:t,caption:"Bubble chart of medical positions on sleep training literature reviews, almost entirely advocating."};case(k>=11&&k<12):return{renderedData:s.studies,focusHover:null,caption:"Bubble chart of medical positions in sleep training medical studies, almost entirely advocating."};case(k>=12&&k<13):return{renderedData:s.studies,focusHover:d,caption:"Bubble chart of medical positions in sleep training medical studies, almost entirely advocating."};case(k>=13&&k<15):return{renderedData:s.instagram,focusHover:null,caption:"Bubble chart of opinions from Instagram influencers posting about sleep training, heavily divided."};case k>=17:return{renderedData:[s.studies,s.reddit],focusHover:null,caption:"Nested bubble chart comparing the medical consensus with the division of internet opinions on Reddit."};default:return{renderedData:s.studies,focusHover:null}}}return z0(()=>{l(0,e=_.height),l(1,i=!0)}),[e,i,c,f,h,v,A,w]}class C7 extends pa{constructor(a){super(),ga(this,a,T7,B7,ca,{})}}function G7(){console.log("--- --- --- --- --- ---"),console.log("svelte-starter: 5.14.0"),console.log("build: 2024-07-16-11:57"),console.log("--- --- --- --- --- ---")}function I7(n){let a,l,_,e;return a=new P_({props:{title:n[1],description:n[2],url:n[3],preloadFont:n[0],keywords:n[4]}}),_=new C7({}),{c(){Q(a.$$.fragment),l=D(),Q(_.$$.fragment)},l(i){q(a.$$.fragment,i),l=O(i),q(_.$$.fragment,i)},m(i,s){X(a,i,s),C(i,l,s),X(_,i,s),e=!0},p:ma,i(i){e||(I(a.$$.fragment,i),I(_.$$.fragment,i),e=!0)},o(i){K(a.$$.fragment,i),K(_.$$.fragment,i),e=!1},d(i){i&&b(l),$(a,i),$(_,i)}}}function P7(n,a,l){let{data:_}=a;G7();const e=["https://pudding.cool/assets/fonts/tiempos/TiemposTextWeb-Regular.woff2","https://pudding.cool/assets/fonts/tiempos/TiemposTextWeb-Bold.woff2","https://pudding.cool/assets/fonts/national/National2Web-Regular.woff2","https://pudding.cool/assets/fonts/national/National2Web-Bold.woff2"],{titleNoSpan:i,description:s,url:m,keywords:o}=ba;return D1("copy",ba),D1("data",_.data),n.$$set=r=>{"data"in r&&l(5,_=r.data)},[e,i,s,m,o,_]}class j7 extends pa{constructor(a){super(),ga(this,a,P7,I7,ca,{data:5})}}export{j7 as component}; + `),A.forEach(b),m=sa(h,"g",{});var w=M(m);g&&g.l(w),w.forEach(b),h.forEach(b),t=O(f),u=R(f,"DIV",{class:!0,"data-svelte-h":!0}),va(u)!=="svelte-1kjutrb"&&(u.innerHTML=d),f.forEach(b),this.h()},h(){p(_,"id","chartTitle"),j(_,"opacity","0"),p(i,"id","chartDesc"),j(i,"opacity","0"),p(l,"width",o=n[3].width),p(l,"height",r=n[3].height),p(l,"aria-labelledby","chartTitle chartDesc"),p(u,"class","chart-title svelte-qvd5rc"),p(a,"class","map-container svelte-qvd5rc"),j(a,"width",n[3].width),j(a,"height",n[3].height+"px")},m(c,f){C(c,a,f),y(a,l),y(l,_),y(_,e),y(l,i),y(i,s),y(l,m),g&&g.m(m,null),y(a,t),y(a,u)},p(c,[f]){c[1]?g?g.p(c,f):(g=el(c),g.c(),g.m(m,null)):g&&(g.d(1),g=null),f&8&&o!==(o=c[3].width)&&p(l,"width",o),f&8&&r!==(r=c[3].height)&&p(l,"height",r),f&8&&j(a,"width",c[3].width),f&8&&j(a,"height",c[3].height+"px")},i:ma,o:ma,d(c){c&&b(a),g&&g.d()}}}function A9(n,a,l){let _,e;Oa(n,f3,t=>l(3,e=t));let{data:i}=a,s=[],m,o;const r={Advocate:"#4FB477","No Position":"#D69C2B",Oppose:"#A34131"};return z0(()=>{o=Ze().fitSize([e.width-10,e.height],e3),l(1,m=Te().projection(o));const t=Vl(i).force("x",Yl(u=>{const d={};e3.features.forEach(c=>{if(c.properties.label_x&&c.properties.label_y){const[f,h]=o([c.properties.label_x,c.properties.label_y]);d[c.properties.name]=[f,h]}});const g=d[u.country];return g?g[0]:0}).strength(.5)).force("y",Jl(u=>{const d={};e3.features.forEach(c=>{if(c.properties.label_x&&c.properties.label_y){const[f,h]=o([c.properties.label_x,c.properties.label_y]);d[c.properties.name]=[f,h]}});const g=d[u.country];return g?g[1]:0}).strength(.5)).force("collide",Wl(6)).on("tick",()=>{l(0,s=t.nodes())})}),n.$$set=t=>{"data"in t&&l(4,i=t.data)},l(2,_=t=>r[t]||"#000000"),[s,m,_,e,i]}let w9=class extends pa{constructor(a){super(),ga(this,a,A9,v9,ca,{data:4})}};function ml(n,a,l){const _=n.slice();_[13]=a[l],_[18]=l;const e=_[3]===_[18];_[14]=e;const i=_[18]==Object.values(_[1]).length-1;_[15]=i;const s=_[18]==0;return _[16]=s,_}function ol(n){let a,l,_,e,i,s,m,o,r=n[4]&&rl(n);function t(d){n[10](d)}let u={$$slots:{default:[M9]},$$scope:{ctx:n}};return n[3]!==void 0&&(u.value=n[3]),s=new e1({props:u}),L0.push(()=>c3(s,"value",t)),{c(){a=S("div"),l=S("div"),r&&r.c(),_=D(),e=S("div"),i=S("section"),Q(s.$$.fragment),this.h()},l(d){a=R(d,"DIV",{class:!0});var g=M(a);l=R(g,"DIV",{class:!0,style:!0});var c=M(l);r&&r.l(c),c.forEach(b),_=O(g),e=R(g,"DIV",{class:!0});var f=M(e);i=R(f,"SECTION",{id:!0});var h=M(i);q(s.$$.fragment,h),h.forEach(b),f.forEach(b),g.forEach(b),this.h()},h(){p(l,"class","sticky svelte-1lx2rfg"),j(l,"min-height",n[2]+"px"),p(i,"id","scrolly"),p(e,"class","steps svelte-1lx2rfg"),p(a,"class","scroll-section matt-scroll")},m(d,g){C(d,a,g),y(a,l),r&&r.m(l,null),y(a,_),y(a,e),y(e,i),X(s,i,null),o=!0},p(d,g){d[4]?r?(r.p(d,g),g&16&&I(r,1)):(r=rl(d),r.c(),I(r,1),r.m(l,null)):r&&(wa(),K(r,1,1,()=>{r=null}),Sa()),(!o||g&4)&&j(l,"min-height",d[2]+"px");const c={};g&524302&&(c.$$scope={dirty:g,ctx:d}),!m&&g&8&&(m=!0,c.value=d[3],d3(()=>m=!1)),s.$set(c)},i(d){o||(I(r),I(s.$$.fragment,d),o=!0)},o(d){K(r),K(s.$$.fragment,d),o=!1},d(d){d&&b(a),r&&r.d(),$(s)}}}function rl(n){let a,l,_,e;const i=[E9,N9,R9,S9],s=[];function m(o,r){return o[7]<15?0:o[7]>=15&&o[7]<16?1:o[7]>=16&&o[7]<17?2:o[7]>=17?3:-1}return~(a=m(n))&&(l=s[a]=i[a](n)),{c(){l&&l.c(),_=Y()},l(o){l&&l.l(o),_=Y()},m(o,r){~a&&s[a].m(o,r),C(o,_,r),e=!0},p(o,r){let t=a;a=m(o),a===t?~a&&s[a].p(o,r):(l&&(wa(),K(s[t],1,1,()=>{s[t]=null}),Sa()),~a?(l=s[a],l?l.p(o,r):(l=s[a]=i[a](o),l.c()),I(l,1),l.m(_.parentNode,_)):l=null)},i(o){e||(I(l),e=!0)},o(o){K(l),e=!1},d(o){o&&b(_),~a&&s[a].d(o)}}}function S9(n){let a,l;return a=new k_({props:{renderedData:n[4],focusHover:n[5],caption:n[6],groupedBy:"position",step:n[7]}}),{c(){Q(a.$$.fragment)},l(_){q(a.$$.fragment,_)},m(_,e){X(a,_,e),l=!0},p(_,e){const i={};e&16&&(i.renderedData=_[4]),e&32&&(i.focusHover=_[5]),e&64&&(i.caption=_[6]),e&128&&(i.step=_[7]),a.$set(i)},i(_){l||(I(a.$$.fragment,_),l=!0)},o(_){K(a.$$.fragment,_),l=!1},d(_){$(a,_)}}}function R9(n){let a,l,_;function e(s){n[9](s)}let i={caption:n[6]};return n[0]!==void 0&&(i.data=n[0]),a=new w9({props:i}),L0.push(()=>c3(a,"data",e)),{c(){Q(a.$$.fragment)},l(s){q(a.$$.fragment,s)},m(s,m){X(a,s,m),_=!0},p(s,m){const o={};m&64&&(o.caption=s[6]),!l&&m&1&&(l=!0,o.data=s[0],d3(()=>l=!1)),a.$set(o)},i(s){_||(I(a.$$.fragment,s),_=!0)},o(s){K(a.$$.fragment,s),_=!1},d(s){$(a,s)}}}function N9(n){let a,l;return a=new h9({props:{caption:n[6]}}),{c(){Q(a.$$.fragment)},l(_){q(a.$$.fragment,_)},m(_,e){X(a,_,e),l=!0},p(_,e){const i={};e&64&&(i.caption=_[6]),a.$set(i)},i(_){l||(I(a.$$.fragment,_),l=!0)},o(_){K(a.$$.fragment,_),l=!1},d(_){$(a,_)}}}function E9(n){let a,l;return a=new k_({props:{renderedData:n[4],focusHover:n[5],caption:n[6],groupedBy:"position",step:n[7]}}),{c(){Q(a.$$.fragment)},l(_){q(a.$$.fragment,_)},m(_,e){X(a,_,e),l=!0},p(_,e){const i={};e&16&&(i.renderedData=_[4]),e&32&&(i.focusHover=_[5]),e&64&&(i.caption=_[6]),e&128&&(i.step=_[7]),a.$set(i)},i(_){l||(I(a.$$.fragment,_),l=!0)},o(_){K(a.$$.fragment,_),l=!1},d(_){$(a,_)}}}function tl(n){let a,l,_,e=n[13].text+"",i;return{c(){a=S("div"),l=S("p"),_=new a1(!1),i=D(),this.h()},l(s){a=R(s,"DIV",{class:!0,style:!0});var m=M(a);l=R(m,"P",{class:!0});var o=M(l);_=n1(o,!1),o.forEach(b),i=O(m),m.forEach(b),this.h()},h(){_.a=null,p(l,"class","step-content svelte-1lx2rfg"),p(a,"class","step svelte-1lx2rfg"),j(a,"height",n[2]+"px"),j(a,"margin-top",(n[16]?-n[2]*.5:0)+"px"),fa(a,"active",n[14]),fa(a,"last",n[15]),fa(a,"first",n[16])},m(s,m){C(s,a,m),y(a,l),_.m(e,l),y(a,i)},p(s,m){m&2&&e!==(e=s[13].text+"")&&_.p(e),m&4&&j(a,"height",s[2]+"px"),m&4&&j(a,"margin-top",(s[16]?-s[2]*.5:0)+"px"),m&8&&fa(a,"active",s[14]),m&2&&fa(a,"last",s[15])},d(s){s&&b(a)}}}function M9(n){let a,l=la(Object.values(n[1])),_=[];for(let e=0;e{_=null}),Sa())},i(e){l||(I(_),l=!0)},o(e){K(_),l=!1},d(e){e&&b(a),_&&_.d(e)}}}function B9(n,a,l){let{copy:_}=a,{dataMap:e}=a,{stepHandler:i}=a,{viewportHeight:s}=a,m,o=null,r=null,t,u,d;function g(){d===Object.values(_).length-1&&t===void 0?l(7,d=Object.values(_).length-1):l(7,d=t),u=i(d),l(4,m=u.renderedData),l(5,o=u.focusHover),l(6,r=u.caption)}function c(h){e=h,l(0,e)}function f(h){t=h,l(3,t)}return n.$$set=h=>{"copy"in h&&l(1,_=h.copy),"dataMap"in h&&l(0,e=h.dataMap),"stepHandler"in h&&l(8,i=h.stepHandler),"viewportHeight"in h&&l(2,s=h.viewportHeight)},n.$$.update=()=>{n.$$.dirty&8&&g()},[e,_,s,t,m,o,r,d,i,c,f]}class T9 extends pa{constructor(a){super(),ga(this,a,B9,L9,ca,{copy:1,dataMap:0,stepHandler:8,viewportHeight:2})}}function C9(n){let a,l;return a=new T9({props:{viewportHeight:n[3],switcher:n[2],stepHandler:n[1],copy:n[0],dataMap:n[4]}}),{c(){Q(a.$$.fragment)},l(_){q(a.$$.fragment,_)},m(_,e){X(a,_,e),l=!0},p(_,[e]){const i={};e&8&&(i.viewportHeight=_[3]),e&4&&(i.switcher=_[2]),e&2&&(i.stepHandler=_[1]),e&1&&(i.copy=_[0]),a.$set(i)},i(_){l||(I(a.$$.fragment,_),l=!0)},o(_){K(a.$$.fragment,_),l=!1},d(_){$(a,_)}}}function G9(n,a,l){let{copy:_}=a,{stepHandler:e}=a,{switcher:i}=a,{viewportHeight:s}=a,o=$3("data").studies.map(r=>Object.assign({},r));return z0(()=>{}),n.$$set=r=>{"copy"in r&&l(0,_=r.copy),"stepHandler"in r&&l(1,e=r.stepHandler),"switcher"in r&&l(2,i=r.switcher),"viewportHeight"in r&&l(3,s=r.viewportHeight)},[_,e,i,s,o]}class I9 extends pa{constructor(a){super(),ga(this,a,G9,C9,ca,{copy:0,stepHandler:1,switcher:2,viewportHeight:3})}}function P9(n){let a,l=n[0].likes+"",_,e,i,s,m;return{c(){a=F("Comment / "),_=F(l),e=F(" Likes / "),i=S("a"),s=F("Source"),this.h()},l(o){a=W(o,"Comment / "),_=W(o,l),e=W(o," Likes / "),i=R(o,"A",{href:!0,class:!0});var r=M(i);s=W(r,"Source"),r.forEach(b),this.h()},h(){p(i,"href",m=n[0].url),p(i,"class","svelte-1n4zc")},m(o,r){C(o,a,r),C(o,_,r),C(o,e,r),C(o,i,r),y(i,s)},p(o,r){r&1&&l!==(l=o[0].likes+"")&&na(_,l),r&1&&m!==(m=o[0].url)&&p(i,"href",m)},d(o){o&&(b(a),b(_),b(e),b(i))}}}function U9(n){let a,l=n[0].likes+"",_,e,i,s,m;return{c(){a=F("Comment / "),_=F(l),e=F(" Votes / "),i=S("a"),s=F("Source"),this.h()},l(o){a=W(o,"Comment / "),_=W(o,l),e=W(o," Votes / "),i=R(o,"A",{href:!0,class:!0});var r=M(i);s=W(r,"Source"),r.forEach(b),this.h()},h(){p(i,"href",m=n[0].url),p(i,"class","svelte-1n4zc")},m(o,r){C(o,a,r),C(o,_,r),C(o,e,r),C(o,i,r),y(i,s)},p(o,r){r&1&&l!==(l=o[0].likes+"")&&na(_,l),r&1&&m!==(m=o[0].url)&&p(i,"href",m)},d(o){o&&(b(a),b(_),b(e),b(i))}}}function D9(n){let a,l,_,e,i,s,m,o,r=n[0].comment+"",t,u;function d(f,h){return f[0].platform==="reddit"?U9:P9}let g=d(n),c=g(n);return{c(){a=S("div"),l=S("div"),_=S("div"),e=S("img"),s=D(),m=S("p"),o=new a1(!1),t=D(),u=S("div"),c.c(),this.h()},l(f){a=R(f,"DIV",{class:!0,style:!0,tabindex:!0});var h=M(a);l=R(h,"DIV",{class:!0});var v=M(l);_=R(v,"DIV",{class:!0});var A=M(_);e=R(A,"IMG",{class:!0,src:!0,alt:!0}),A.forEach(b),s=O(v),m=R(v,"P",{class:!0});var w=M(m);o=n1(w,!1),w.forEach(b),v.forEach(b),t=O(h),u=R(h,"DIV",{class:!0});var k=M(u);c.l(k),k.forEach(b),h.forEach(b),this.h()},h(){p(e,"class","icon svelte-1n4zc"),I0(e.src,i=ul(n[0].platform).icon)||p(e,"src",i),p(e,"alt","reddit or instagram icon"),p(_,"class","notification-likes svelte-1n4zc"),o.a=null,p(m,"class","notification-text svelte-1n4zc"),p(l,"class","notification-content svelte-1n4zc"),p(u,"class","notification-source svelte-1n4zc"),p(a,"class","notification svelte-1n4zc"),j(a,"--delay",n[1]*3),p(a,"tabindex","0"),fa(a,"animationStarted",n[2])},m(f,h){C(f,a,h),y(a,l),y(l,_),y(_,e),y(l,s),y(l,m),o.m(r,m),y(a,t),y(a,u),c.m(u,null)},p(f,[h]){h&1&&!I0(e.src,i=ul(f[0].platform).icon)&&p(e,"src",i),h&1&&r!==(r=f[0].comment+"")&&o.p(r),g===(g=d(f))&&c?c.p(f,h):(c.d(1),c=g(f),c&&(c.c(),c.m(u,null))),h&2&&j(a,"--delay",f[1]*3),h&4&&fa(a,"animationStarted",f[2])},i:ma,o:ma,d(f){f&&b(a),c.d()}}}function ul(n){return{icon:n==="reddit"?"assets/icons/reddit.webp":"assets/icons/instagram.webp"}}function O9(n,a,l){let{comment:_}=a,{index:e}=a,{animationStarted:i}=a;return n.$$set=s=>{"comment"in s&&l(0,_=s.comment),"index"in s&&l(1,e=s.index),"animationStarted"in s&&l(2,i=s.animationStarted)},[_,e,i]}class v_ extends pa{constructor(a){super(),ga(this,a,O9,D9,ca,{comment:0,index:1,animationStarted:2})}}function dl(n,a,l){const _=n.slice();return _[11]=a[l],_[13]=l,_}function cl(n,a,l){const _=n.slice();return _[14]=a[l],_[16]=l,_}function fl(n){let a,l=n[0][0].subtitle+"",_;return{c(){a=S("h3"),_=F(l)},l(e){a=R(e,"H3",{});var i=M(a);_=W(i,l),i.forEach(b)},m(e,i){C(e,a,i),y(a,_)},p(e,i){i&1&&l!==(l=e[0][0].subtitle+"")&&na(_,l)},d(e){e&&b(a)}}}function pl(n){let a,l,_=n[14].text+"";return{c(){a=S("p"),l=new a1(!1),this.h()},l(e){a=R(e,"P",{class:!0});var i=M(a);l=n1(i,!1),i.forEach(b),this.h()},h(){l.a=null,p(a,"class","editorial-paragraph svelte-skt2x3"),fa(a,"animationStarted",n[5]),fa(a,"first",n[2]&&n[16]===0)},m(e,i){C(e,a,i),l.m(_,a)},p(e,i){i&1&&_!==(_=e[14].text+"")&&l.p(_),i&32&&fa(a,"animationStarted",e[5]),i&4&&fa(a,"first",e[2]&&e[16]===0)},d(e){e&&b(a)}}}function z9(n){let a,l,_,e,i,s=n[0][0].subtitle&&fl(n),m=la(n[0]),o=[];for(let r=0;rK(e[s],1,1,()=>{e[s]=null});return{c(){a=S("div");for(let s=0;sc3(l,"value",m));let r=n[4]&&gl(n);return{c(){a=S("section"),Q(l.$$.fragment),e=D(),r&&r.c(),i=Y(),this.h()},l(t){a=R(t,"SECTION",{id:!0,class:!0});var u=M(a);q(l.$$.fragment,u),u.forEach(b),e=O(t),r&&r.l(t),i=Y(),this.h()},h(){p(a,"id","scrolly"),p(a,"class","scrolly-editorial svelte-skt2x3")},m(t,u){C(t,a,u),X(l,a,null),C(t,e,u),r&&r.m(t,u),C(t,i,u),s=!0},p(t,[u]){const d={};u&131175&&(d.$$scope={dirty:u,ctx:t}),!_&&u&8&&(_=!0,d.value=t[3],d3(()=>_=!1)),l.$set(d),t[4]?r?(r.p(t,u),u&16&&I(r,1)):(r=gl(t),r.c(),I(r,1),r.m(i.parentNode,i)):r&&(wa(),K(r,1,1,()=>{r=null}),Sa())},i(t){s||(I(l.$$.fragment,t),I(r),s=!0)},o(t){K(l.$$.fragment,t),K(r),s=!1},d(t){t&&(b(a),b(e),b(i)),$(l),r&&r.d(t)}}}function H9(n,a,l){let{copy:_}=a,{notifications:e}=a,{spacer:i=null}=a,{methods:s=!1}=a,{first:m=!1}=a,o,r,t=!1;function u(){o==0&&setTimeout(()=>{l(5,t=!0)},200)}let d=!1;i==="none"&&(d=!0);function g(c){o=c,l(3,o)}return n.$$set=c=>{"copy"in c&&l(0,_=c.copy),"notifications"in c&&l(7,e=c.notifications),"spacer"in c&&l(8,i=c.spacer),"methods"in c&&l(1,s=c.methods),"first"in c&&l(2,m=c.first)},n.$$.update=()=>{n.$$.dirty&128&&l(4,r=e!==void 0?e:void 0),n.$$.dirty&8&&u()},[_,s,m,o,r,t,d,e,i,g]}class Ta extends pa{constructor(a){super(),ga(this,a,H9,K9,ca,{copy:0,notifications:7,spacer:8,methods:1,first:2})}}function hl(n,a,l){const _=n.slice();return _[6]=a[l],_[8]=l,_}function yl(n){let a,l,_,e;return l=new v_({props:{comment:n[6],animationStarted:n[3],index:n[8]}}),{c(){a=S("div"),Q(l.$$.fragment),_=D(),this.h()},l(i){a=R(i,"DIV",{class:!0});var s=M(a);q(l.$$.fragment,s),_=O(s),s.forEach(b),this.h()},h(){p(a,"class","notification-wrapper")},m(i,s){C(i,a,s),X(l,a,null),y(a,_),e=!0},p(i,s){const m={};s&1&&(m.comment=i[6]),s&8&&(m.animationStarted=i[3]),l.$set(m)},i(i){e||(I(l.$$.fragment,i),e=!0)},o(i){K(l.$$.fragment,i),e=!1},d(i){i&&b(a),$(l)}}}function x9(n){let a,l,_=la(n[0]),e=[];for(let s=0;s<_.length;s+=1)e[s]=yl(hl(n,_,s));const i=s=>K(e[s],1,1,()=>{e[s]=null});return{c(){a=S("div");for(let s=0;sc3(l,"value",i)),{c(){a=S("section"),Q(l.$$.fragment),this.h()},l(m){a=R(m,"SECTION",{id:!0,class:!0});var o=M(a);q(l.$$.fragment,o),o.forEach(b),this.h()},h(){p(a,"id","scrolly"),p(a,"class","scrolly-editorial")},m(m,o){C(m,a,o),X(l,a,null),e=!0},p(m,[o]){const r={};o&523&&(r.$$scope={dirty:o,ctx:m}),!_&&o&4&&(_=!0,r.value=m[2],d3(()=>_=!1)),l.$set(r)},i(m){e||(I(l.$$.fragment,m),e=!0)},o(m){K(l.$$.fragment,m),e=!1},d(m){m&&b(a),$(l)}}}function Z9(n,a,l){let{notifications:_}=a,e,i=!1,{viewportHeight:s}=a;function m(){e==0&&setTimeout(()=>{l(3,i=!0)},1e3)}function o(r){e=r,l(2,e)}return n.$$set=r=>{"notifications"in r&&l(0,_=r.notifications),"viewportHeight"in r&&l(1,s=r.viewportHeight)},n.$$.update=()=>{n.$$.dirty&4&&m()},[_,s,e,i,o]}class F9 extends pa{constructor(a){super(),ga(this,a,Z9,j9,ca,{notifications:0,viewportHeight:1})}}function kl(n,a,l){const _=n.slice();_[7]=a[l],_[11]=l;const e=_[2]===_[11];_[8]=e;const i=_[11]===_[4].length-1;return _[9]=i,_}function vl(n,a,l){const _=n.slice();_[12]=a[l],_[11]=l;const e=Y9(_[11]);return _[13]=e,_}function Al(n){let a,l,_,e,i,s,m;return{c(){a=S("div"),l=S("img"),i=D(),this.h()},l(o){a=R(o,"DIV",{class:!0,style:!0});var r=M(a);l=R(r,"IMG",{src:!0,alt:!0,style:!0,class:!0}),i=O(r),r.forEach(b),this.h()},h(){I0(l.src,_=n[12].url)||p(l,"src",_),p(l,"alt",n[3]),j(l,"border-radius","5px"),p(l,"class","svelte-2b53qb"),p(a,"class",s="image-container fading "+(n[0]==="posts"?"image-container-posts":"")+" svelte-2b53qb"),j(a,"transform","translate(-50%, 50%) rotate("+n[13][2]+"deg)"),j(a,"transform-origin","50% 100%"),j(a,"left",n[13][0]),j(a,"bottom",n[13][1]),j(a,"border-radius","5px")},m(o,r){C(o,a,r),y(a,l),y(a,i),m=!0},p(o,r){(!m||r&16&&!I0(l.src,_=o[12].url))&&p(l,"src",_),(!m||r&8)&&p(l,"alt",o[3]),(!m||r&1&&s!==(s="image-container fading "+(o[0]==="posts"?"image-container-posts":"")+" svelte-2b53qb"))&&p(a,"class",s)},i(o){m||(o&&u3(()=>{m&&(e||(e=E2(l,i2,{y:50,duration:500},!0)),e.run(1))}),m=!0)},o(o){o&&(e||(e=E2(l,i2,{y:50,duration:500},!1)),e.run(0)),m=!1},d(o){o&&b(a),o&&e&&e.end()}}}function wl(n){let a,l=n[11]<=n[2]&&Al(n);return{c(){l&&l.c(),a=Y()},l(_){l&&l.l(_),a=Y()},m(_,e){l&&l.m(_,e),C(_,a,e)},p(_,e){_[11]<=_[2]?l?(l.p(_,e),e&4&&I(l,1)):(l=Al(_),l.c(),I(l,1),l.m(a.parentNode,a)):l&&(wa(),K(l,1,1,()=>{l=null}),Sa())},d(_){_&&b(a),l&&l.d(_)}}}function Sl(n){let a,l;return{c(){a=S("div"),this.h()},l(_){a=R(_,"DIV",{class:!0,style:!0});var e=M(a);e.forEach(b),this.h()},h(){p(a,"class","step svelte-2b53qb"),p(a,"style",l=n[1]*.5+"px;"),fa(a,"last",n[9]),fa(a,"active",n[8])},m(_,e){C(_,a,e)},p(_,e){e&2&&l!==(l=_[1]*.5+"px;")&&p(a,"style",l),e&16&&fa(a,"last",_[9]),e&4&&fa(a,"active",_[8])},d(_){_&&b(a)}}}function W9(n){let a,l=la(n[4]),_=[];for(let e=0;ec3(i,"value",t)),{c(){a=S("section"),l=S("div");for(let d=0;ds=!1)),i.$set(c),(!m||g&2)&&j(e,"margin-top",-d[1]*.5+"px")},i(d){m||(I(i.$$.fragment,d),m=!0)},o(d){K(i.$$.fragment,d),m=!1},d(d){d&&b(a),ka(r,d),$(i)}}}function Y9(n){if(n==0)return["40%","40%","-2"];let a=n%2==0?Math.random()*3:Math.random()*5*-1,l=n%2==0?-1:1,_=Math.random()*20*l,e=Math.random()*20*l;return[JSON.stringify(50+_).concat("%"),JSON.stringify(50+e).concat("%"),a]}function J9(n,a,l){let{album:_="articles"}=a,{viewportHeight:e}=a,i,s,m=[];const o=t=>t==="articles"?(l(3,s="Image carrousel of article headlines on sleep training."),[{url:"assets/images/articles/article_1.jpg"},{url:"assets/images/articles/article_2.jpg"},{url:"assets/images/articles/article_3.jpg"},{url:"assets/images/articles/article_4.jpg"},{url:"assets/images/articles/article_5.jpg"},{url:"assets/images/articles/article_6.jpg"}]):t==="social"?(l(3,s="Image carrousel of article headlines on the sleep training debate."),[{url:"assets/images/social/social_1.png"},{url:"assets/images/social/social_2.png"}]):t==="posts"?(l(3,s="Social media post images on anti-sleep training narratives."),[{url:"assets/images/posts/post_1.jpg"},{url:"assets/images/posts/post_2.jpg"},{url:"assets/images/posts/post_3.jpg"},{url:"assets/images/posts/post_4.jpg"}]):t==="debunk"?[{url:"assets/images/debunk/narvaez.jpg"},{url:"assets/images/debunk/sears.jpg"}]:[];function r(t){i=t,l(2,i)}return n.$$set=t=>{"album"in t&&l(0,_=t.album),"viewportHeight"in t&&l(1,e=t.viewportHeight)},n.$$.update=()=>{n.$$.dirty&1&&l(4,m=o(_))},[_,e,i,s,m,r]}class I1 extends pa{constructor(a){super(),ga(this,a,J9,V9,ca,{album:0,viewportHeight:1})}}function Q9(n){let a,l,_,e="Your browser does not support the video element.",i,s,m,o,r,t;return{c(){a=S("div"),l=S("video"),_=S("p"),_.textContent=e,s=D(),m=S("div"),o=F("Source: "),r=S("a"),t=F(n[0]),this.h()},l(u){a=R(u,"DIV",{class:!0});var d=M(a);l=R(d,"VIDEO",{src:!0,poster:!0,class:!0});var g=M(l);_=R(g,"P",{"data-svelte-h":!0}),va(_)!=="svelte-g59578"&&(_.textContent=e),g.forEach(b),s=O(d),m=R(d,"DIV",{class:!0});var c=M(m);o=W(c,"Source: "),r=R(c,"A",{href:!0,target:!0});var f=M(r);t=W(f,n[0]),f.forEach(b),c.forEach(b),d.forEach(b),this.h()},h(){I0(l.src,i=n[1])||p(l,"src",i),p(l,"poster",n[2]),l.controls=!0,p(l,"class","svelte-r22yiu"),p(r,"href",n[4]),p(r,"target","_blank"),p(m,"class","caption"),p(a,"class","video-container svelte-r22yiu")},m(u,d){C(u,a,d),y(a,l),y(l,_),n[6](l),y(a,s),y(a,m),y(m,o),y(m,r),y(r,t)},p(u,[d]){d&2&&!I0(l.src,i=u[1])&&p(l,"src",i),d&4&&p(l,"poster",u[2]),d&1&&na(t,u[0]),d&16&&p(r,"href",u[4])},i:ma,o:ma,d(u){u&&b(a),n[6](null)}}}function q9(n,a,l){let _,{video:e}=a,{caption:i}=a,s="",m="",o;const r=u=>u==="cbum"?{videoUrl:"assets/videos/cbum.mp4",posterUrl:"assets/posters/poster_1.webp",srcUrl:"https://www.instagram.com/reel/C43zSHGv6t8/?igsh=eDBzMmY4NWJ0cHpv"}:{videoUrl:"assets/videos/sleep.mp4",posterUrl:"assets/posters/poster.webp",srcUrl:"https://www.tiktok.com/@ustheremingtons/video/7338176510408412446?lang=en"};function t(u){L0[u?"unshift":"push"](()=>{o=u,l(3,o)})}return n.$$set=u=>{"video"in u&&l(5,e=u.video),"caption"in u&&l(0,i=u.caption)},n.$$.update=()=>{n.$$.dirty&32&&l(1,{videoUrl:s,posterUrl:m,srcUrl:_}=r(e),s,(l(2,m),l(5,e)),(l(4,_),l(5,e)))},[i,s,m,o,_,e,t]}class Rl extends pa{constructor(a){super(),ga(this,a,q9,Q9,ca,{video:5,caption:0})}}function Nl(n,a,l){const _=n.slice();return _[5]=a[l],_}function El(n){let a,l,_,e,i='Year Title Grounding Relevance',s,m,o=la(n[2].filter(n[4])),r=[];for(let t=0;tNot Relevant',c;function f(A,w){return A[5].theoretical==="FALSE"?$9:X9}let h=f(n),v=h(n);return{c(){a=S("tr"),l=S("td"),e=F(_),i=D(),s=S("td"),o=F(m),r=D(),t=S("td"),v.c(),u=D(),d=S("td"),d.innerHTML=g,c=D(),this.h()},l(A){a=R(A,"TR",{});var w=M(a);l=R(w,"TD",{class:!0});var k=M(l);e=W(k,_),k.forEach(b),i=O(w),s=R(w,"TD",{class:!0});var E=M(s);o=W(E,m),E.forEach(b),r=O(w),t=R(w,"TD",{class:!0});var L=M(t);v.l(L),L.forEach(b),u=O(w),d=R(w,"TD",{class:!0,"data-svelte-h":!0}),va(d)!=="svelte-1s4vhlc"&&(d.innerHTML=g),c=O(w),w.forEach(b),this.h()},h(){p(l,"class","svelte-x5h93a"),p(s,"class","svelte-x5h93a"),p(t,"class","svelte-x5h93a"),p(d,"class","svelte-x5h93a")},m(A,w){C(A,a,w),y(a,l),y(l,e),y(a,i),y(a,s),y(s,o),y(a,r),y(a,t),v.m(t,null),y(a,u),y(a,d),y(a,c)},p(A,w){w&1&&_!==(_=A[5].date+"")&&na(e,_),w&1&&m!==(m=A[5].title+"")&&na(o,m),h!==(h=f(A))&&(v.d(1),v=h(A),v&&(v.c(),v.m(t,null)))},d(A){A&&b(a),v.d()}}}function a7(n){let a,l,_,e=n[1]?"▼":"▶",i,s,m=Ll(n[0])+"",o,r,t,u,d,g=n[1]&&El(n);return{c(){a=S("div"),l=S("div"),_=S("span"),i=F(e),s=D(),o=F(m),r=F(" References"),t=D(),g&&g.c(),this.h()},l(c){a=R(c,"DIV",{class:!0,tabindex:!0});var f=M(a);l=R(f,"DIV",{class:!0});var h=M(l);_=R(h,"SPAN",{});var v=M(_);i=W(v,e),s=O(v),o=W(v,m),r=W(v," References"),v.forEach(b),h.forEach(b),t=O(f),g&&g.l(f),f.forEach(b),this.h()},h(){p(l,"class","references-header svelte-x5h93a"),p(a,"class","references-dropdown svelte-x5h93a"),p(a,"tabindex","0")},m(c,f){C(c,a,f),y(a,l),y(l,_),y(_,i),y(_,s),y(_,o),y(_,r),y(a,t),g&&g.m(a,null),u||(d=U1(l,"click",n[3]),u=!0)},p(c,[f]){f&2&&e!==(e=c[1]?"▼":"▶")&&na(i,e),f&1&&m!==(m=Ll(c[0])+"")&&na(o,m),c[1]?g?g.p(c,f):(g=El(c),g.c(),g.m(a,null)):g&&(g.d(1),g=null)},i:ma,o:ma,d(c){c&&b(a),g&&g.d(),u=!1,d()}}}function Ll(n){return n.charAt(0).toUpperCase()+n.slice(1)}function n7(n,a,l){let{target:_}=a,e=$3("data").references,i=!1;function s(){l(1,i=!i)}const m=o=>o.target===_;return n.$$set=o=>{"target"in o&&l(0,_=o.target)},[_,i,e,s,m]}class Bl extends pa{constructor(a){super(),ga(this,a,n7,a7,ca,{target:0})}}const l7=[{link:"https://the-pudding.github.io/sleep-training/"}],_7="IsSleep TrainingHarmful?",e7="Is Sleep Training Harmful?",s7="Misinformation and facts behind the internet’s most polarizing parenting debate.",i7="https://pudding.cool/2024/06/sleep-training",m7="sleep training",o7=[{text:"I recently became a parent and discovered an entirely new layer of society, rife with opposing opinions on nearly every detail of child-rearing."},{text:"One of the most debated questions is whether or not to sleep train your child. The objective of sleep training is to teach infants to fall asleep independently, particularly if they frequently wake up in the middle of the night."},{text:"Here’s a video from TikTok influencer Tiffany Remington as she decides to begin sleep training after enduring months of sleepless nights with her child."}],r7=[{text:"Sleep training involves letting babies cry in a safe environment until they fall asleep; they might cry for up to an hour on the first cycle. The entire process initially takes between three to seven days."},{text:"As I began researching sleep training, I discovered a heated debate with two sides:"},{text:"
  1. Sleep training is safe and effective, and a choice parents can openly make.
  2. There’s no choice: sleep training is harmful.
"}],t7=[{text:"When my partner and I started discussing sleep training, we were wondering whether it was a neutral choice for our son (like using formula or a pacifier). Unfortunately many of our friends would disapprove, so it was impossible to discuss openly and learn from other parents’ experiences."},{text:"Which meant that I had to look to the internet for information."},{text:"The first thing I landed on was a Reddit post in the parenting community, The dividing question. Letting your baby cry it out?, which asked for “fair reasoning from both sides of the debate.”"}],u7=[{text:"Each of these bubbles represents the 335 Reddit user comments on the post, categorized by their position towards sleep training: advocating for, opposed to, or no position (if the user was impartial or did not clearly express an opinion)."},{text:"The comments are extremely divided and users on both sides cited articles to defend their positions.

I decided to take a closer look at these sources."},{text:"To analyze the media landscape, I scraped the 200 most recent articles from Google News with titles or descriptions containing the keywords baby sleep, cry it out, or sleep training."},{text:"There were hundreds of articles from reporters pushing their opinion on both sides of the debate, many with incredibly dramatic titles."},{text:"If parenting articles were so divisive, I hoped that books about sleep training might give me a clearer answer."},{text:"This 2006 study by Kathleen Ramos and Davin Younglarke categorized the 40 most popular sleep training books according to their position, and again the results were divided.

At this point, I still have no idea whether sleep training is a neutral choice or could cause potential harm.

*The researchers used the quantity of library holdings at large bookstores as a metric for popularity."},{text:"So I started looking into medical research, which is where things get really surprising.

I used 9 literature reviews from pediatric sleep experts: the authors review all available research at the time of publication, verifying the quality of the trials and consolidating the data."},{text:"The first review was conducted in 2006, when a task force appointed by the American Academy of Sleep Medicine analyzed 52 available treatment studies."},{text:"The task force, led by Dr. Jodi Mindell, reported that 49 of the 52 studies produced “significant improvements in bedtime problems and/or night wakings” and 80% of children treated demonstrated significant improvement in sleep, which was maintained for 3 to 6 months."},{text:"Another umbrella review from 2022 analyzed five reviews of 24 studies with over 11,500 participants.

It concluded that sleep training behavioral interventions “could be recommended and adapted to the family individually.”"},{text:"The review with no position, led by Dr. Douglas, argues that sleep training does not work before the age of 6 months, however it has been criticized by pediatric sleep experts because it cites theoretical studies rather than clinical trials."},{text:"If we look at all 75 clinical trials across the aforementioned literature reviews, over 30,000 babies participated between 1980 and 2022. The clinical consensus isn’t divided: to date, no published research points to sleep training causing harm, and the majority of published pediatric sleep researchers advocate sleep training.

*Although these combined reviews include most, if not all, of the available pediatric treatment studies, it is likely that some were missed, although it would not change the conclusions."},{text:"Only this study, led by Wendy Middlemiss, stands out. Three of the most published researchers in the field wrote a letter to the publishing journal expressing their concerns on the study and outlining its issues. “The aim of the paper was not to comment on the safety of behavioural sleep techniques, but a conclusion of the article has been used by social media outlets to warn against their use”.[a]"},{text:"Now if we look at the twenty most popular sleep training profiles on Instagram and categorize each as advocating, no position or opposing we see that the platform’s discourse leans against sleep training."},{text:"All of these sleep consultants reach hundreds of thousands of people daily. Why are so many opposed to sleep training?

*This data was collected by scraping Google for the first 40 Instagram profiles under the keywords “baby sleep training”, subsequently filtered by follower count."},{text:"Critics have pointed out that the clinical research is too recent. If we plot each clinical study according to year of publication, we see that indeed most occurred within the past 40 years.

But the same can be said for the vaccines we give our children; I’m not sure recency is a cause for concern."},{text:"Critics also point out that sleep training is a Western practice; this is also true. If we connect each research study to its primary university's country about 85% have occurred in Western countries.

That being said baby formula was invented in Germany and popularized in English-speaking countries, by this argument formula should also be reconsidered."},{text:"So why is there such a huge gap between the research and the online discourse? Where is the research against sleep training that influencers are mentioning?"}],d7=[{text:"Among many of the articles, blog posts, and social media posts that oppose sleep training, two scientists’ opinions are most commonly cited as evidence: Dr. William Sears and Dr. Darcia Narvaez. Dr Narvaez’ article was referred to 4 times in the Reddit thread alone, she was the only source mentioned to support arguments against sleep training."},{text:"I asked Dr. Jodi Mindell, who led three of the eight literature reviews on sleep training, to help me analyze the research cited by Dr. Sears and Dr. Narvaez to confirm whether their conclusions were accurate. Using the following criteria, Dr. Mindell assessed the studies referenced by both authors to determine their relevance for sleep training:"},{text:"
  1. Grounding: Is the reference a theoretical article or a research study?
  2. Relevance: Is the reference sleep or sleep-training specific?
"},{text:"Her review shows that none of the references are either sleep or sleep-training specific and almost all are theoretical review papers. You can see the list of references for yourself below:"}],c7=[{text:"For example, Dr. Narvaez cites The hormonal costs of subtle forms of infant maltreatment, a study that examines infants who suffer from frequent corporal punishment and long-term maltreatment. This is hardly comparable to short behavioral interventions, such as sleep training, from caring parents."},{text:"I’m not here to advocate for sleep training. I am, however, making a case against the misinformation that paints sleep training as damaging for babies."}],f7=[{text:"Dr. Sears’s article Is Excessive Crying Harmful? has been circulated on social media, he poses the question of whether “infants who endure many nights or weeks of crying-it-out…may have permanent implications on the development of sections of their brain?” Here's a terrifying quote that most parents researching sleep training will come across on social media:"},{text:"
“Research has shown that infants who are routinely separated from parents in a stressful way have abnormally high levels of the stress hormone cortisol, as well as lower growth hormone levels. These imbalances inhibit the development of nerve tissue in the brain, suppress growth, and depress the immune system.”
"},{text:"The idea that sleep training damages children’s brains because of chronic stress became prevalent in mainstream media and disseminated on social media."}],p7=[{text:"The claims made by Dr. Sears misconstrue or dramatize the science. In his article, Sears cites the work of Dr. Joan Kaufman, portraying her research as evidence that “intense stress early in life can alter the brain’s neurotransmitter systems and cause structural and functional changes in regions of the brain similar to those seen in adults with depression.” But Dr. Kaufman herself argued that it was unfair to use her work as evidence against sleep training:"},{text:"
“Our paper is not referring to routine, brief stressful experiences, but to abuse and neglect. It is a mis-citation of our work to support a non-scientifically justified idea.”
"},{text:"Regarding elevated cortisol levels, this was studied as a randomized controlled trial in 2022, measuring no difference in cortisol levels across different methods of sleep training and in comparison to a control group that was not sleep trained. This study is counted among the 75 clinical trials discussed earlier, all concluding that sleep training causes no measurable harm."},{text:"When it comes to Sears’s warnings of “excessive crying,” clinical studies define “excessive crying” as inconsolable and continued crying despite parental attempts to soothe for 3 hours or more per day for a prolonged period of time. Since sleep training should be completed in two weeks, with crying drastically reduced on the third day, it does not fit the characteristics of excessive crying and prolonged stress as determined by studies on child trauma.[b]"}],g7=[{text:"Next we have Dr. Narvaez, who writes in the Dangers of Crying It Out, that she “only recently realized from extensive reading about the effects of early parenting on body and brain development.” She describes her childhood as raised by a “depressed mother, harsh father, and overall emotionally unsupportive environment” and that “letting babies get distressed is a practice that can harm children” and at odds with building secure attachment:"},{text:"
“The '‘cry it out’ method releases stress hormones, impairs self-regulation, and undermines trust.”
"},{text:"Her articles have been cited hundreds of times by bloggers and publishers, such as Romper and Science Times."},{text:"But researchers have found no evidence of sleep training impacting attachment."}],b7=[{text:"Fortunately, attachment can and has been measured with the strange situation test, and there have been studies testing attachment a year or more after sleep training."},{text:"The most conclusive long-term study on sleep training to date is a 2012 randomized controlled trial on 326 infants, which found no difference on any measure—negative or positive—between children who were sleep trained and those who weren't after a 5 year follow up. The study includes measurements of sleep patterns, behavior, cortisol levels, and, importantly, attachment."},{text:"So from a scientific perspective, the theory that sleep training undermines attachment remains unsupported but from a popular perspective it has become a common belief."}],h7=[{text:"Professionals with[c] years of specialized education have invested hundreds of thousands of hours testing different sleep training methods on thousands of parents and children, and I can't help but wonder why the current trend is to ignore the available science."}],y7=[{text:"According to Dr. Mindell:

“Studies show no long-term negative psychological effects of sleep training through at least five years out. Unfortunately no studies have been done looking at 20 or 30 years later, instead there is just speculation.

However, based on science, it is highly doubtful that a few nights of sleep training that leads to improved sleep and family well-being is going to result in long-term harm.

Equating a few nights of sleep training within the context of a loving, responsive home to long-term neglect and abuse is fear mongering. Families need to decide for themselves what fits with their parenting style and works best for their family and baby.”
"},{text:"What if by wanting to do things differently and assuming we know better, we're depriving our children and ourselves of sleep? Much like formula used to be shamed and has now become a neutral decision, I hope that the misinformation on sleep training will end so that parents can explore options without the fear of judgment."},{text:"Not all children are the same and not all are easy sleepers, so if you’re exhausted and in need of a solution please don’t consider these arguments as proof that sleep training isn’t an option, it’s your decision to make."}],k7=[{text:"The source data for this article is accessible here."},{text:"The clinical studies were manually copied from the body of literature reviews on sleep training which were provided by Dr. Jodi Mindell. The article was written with editorial supervision from Dr. Mindell."},{text:"The reddit comments were scraped from the Reddit post in the /parenting community, I then read through all of the comments and manually categorized each according to their position."},{text:"The Instagram profiles were collected by scraping Google for the top 40 results in the search query “instagram baby sleep,” sorting them according to follower count and keeping the top 20 profiles. I then analyzed each influencer’s posts and websites to determine their position on sleep training."},{text:"The books were collected from the Ramos and Youngclarke study. The study determined the quantity of library holdings by “looking up each title in the OCLC (Online Computer Library Center) WorldCat electronic database, which is a combined catalog of the holdings of thousands of libraries worldwide.”"},{text:"The articles were collected by scraping the top 200 results for keywords “baby sleep” “sleep training” “cry it out” on Google News. I manually looked at each article and categorized them according to position, often these positions are evident in the title."}],v7="
”I personally have an issue with the cortisol studies, cortisol changes throughout the day. Even sampling cortisol is very difficult. It's based on many things, including how many hours a person has been awake and how it's sampled.”
",A7=[{text:"These opinions inevitably trickle down to Instagram and TikTok, which is where many new parents today spend time. The content that is pushed by the algorithm is often divisive and extreme, which isn’t exactly helpful for healthy parenting."}],w7=[{text:`Another common symptom of these platforms is to pathologize things that might be entirely normal, using technical terms in a non-technical context. For example “crying” creates “trauma” or “attachment issues.” But researchers who are dedicated to identifying said "trauma" or "attachment issues" have been unable to validate parents' hunches.`}],S7=[{text:"Unfortunately TikTok and Instagram influence the parenting opinions of millions of people and shift cultural standards."}],R7=[{text:"Sleep training has also been associated with lazy parenting, with social media users criticizing parents’ unwillingness to hold their baby all night long. Looking at it more rationally - babies and parents both need sleep and whichever method will help them sleep better is probably worth exploring."}],N7=[{text:"It’s important to point out that there's also no financial reward in promoting sleep training because it isn’t a complex technique for parents to learn. If you're in the business of baby sleep consulting, there’s incentive to argue against it and promote methods that require specialized expertise."},{text:"It’s for this reason that I deeply appreciate the most influential sleep consultants who choose not to misinform their audiences."}],E7=[],M7=[],L7=[],ba={ignore:l7,title:_7,titleNoSpan:e7,description:s7,url:i7,keywords:m7,intro_article:o7,intro_article_2:r7,intro_article_3:t7,viz_main:u7,debunk_intro:d7,debunk_intro_2:c7,sears_intro:f7,debunk_sears:p7,debunk_narvaez:g7,debunk_narvaez_2:b7,editorial_conclusion:h7,editorial_conclusion_2:y7,methodologies:k7,text:v7,instagram_1:A7,instagram_2:w7,instagram_3:S7,lazy_parenting:R7,editorial_influencerPackages:N7,a:E7,b:M7,c:L7};function Tl(n){let a,l,_,e,i,s,m,o,r=ba.title+"",t,u,d=ba.description+"",g,c,f,h='by Tom Vaillant, July 14, 2024',v,A,w,k,E,L,G,T,z,H,B,x,U,P,N,V,aa,ia,ra="Common narratives that are winning on social media",Va,ha,Pa,ya,qa,Na,s1,s0,i1,Xa,m1,$a,i0,g2='Narrative: Sleep Training Damages Babies’ Brains',o1,m0,r1,K0,t1,a0,u1,n0,o0,b2='Research: There is No Proof of Harm',d1,r0,c1,t0,h2='Image of baby in crib',f1,u0,y2='Photo by Marie Despeyroux on Unsplash',p1,Ea,d0,k2='Narrative: It Creates Insecure Attachment',g1,c0,b1,f0,h1,p0,v2='Research: There is No Proof of Insecure Attachment',y1,g0,k1,Ma,b0,A2="Conclusion",v1,h0,A1,y0,w1,l0,w2="Methods",S1,k0,g3;return l=new F9({props:{viewportHeight:n[0],notifications:n[2]}}),w=new Ta({props:{first:!0,copy:ba.intro_article,spacer:"none"}}),E=new Rl({props:{video:"sleep",caption:"Tiffany Remington","aria-label":"TikTok influencer Tiffany films herself as she rocks her baby to sleep, emotionally wrought after many sleepless nights she gives up and decides to start sleep training."}}),G=new Ta({props:{copy:ba.intro_article_2}}),z=new I1({props:{viewportHeight:n[0],album:"articles",height:"75"}}),x=new Ta({props:{copy:ba.intro_article_3}}),N=new I9({props:{viewportHeight:n[0],copy:ba.viz_main,stepHandler:n[7],switcher:"bubbles"}}),ha=new Ta({props:{copy:ba.debunk_intro,spacer:"none"}}),ya=new Bl({props:{target:"narvaez"}}),Na=new Bl({props:{target:"sears"}}),s0=new Ta({props:{copy:ba.debunk_intro_2,spacer:"none",notifications:n[5]}}),Xa=new I1({props:{viewportHeight:n[0],album:"social",height:"35"}}),m0=new Ta({props:{copy:ba.sears_intro,spacer:"none",notifications:n[3]}}),a0=new I1({props:{viewportHeight:n[0],album:"posts",height:"75",isSocial:!0}}),r0=new Ta({props:{copy:ba.debunk_sears,spacer:"none"}}),c0=new Ta({props:{copy:ba.debunk_narvaez,spacer:"none",notifications:n[4]}}),f0=new Rl({props:{video:"cbum",caption:"Chris Williamson","aria-label":"Fitness athlete and influencer Cbum talks to Chris about his opinion on sleep training, denouncing it as causing attachment issues for babies."}}),g0=new Ta({props:{copy:ba.debunk_narvaez_2,spacer:"none"}}),h0=new Ta({props:{copy:ba.editorial_conclusion,title:"It's your decision",spacer:"none"}}),y0=new Ta({props:{copy:ba.editorial_conclusion_2,spacer:"none",notifications:n[6]}}),k0=new Ta({props:{methods:!0,copy:ba.methodologies}}),{c(){a=S("div"),Q(l.$$.fragment),_=D(),e=S("div"),i=D(),s=S("div"),m=S("h1"),o=new a1(!1),t=D(),u=S("h2"),g=F(d),c=D(),f=S("p"),f.innerHTML=h,v=D(),A=S("div"),Q(w.$$.fragment),k=D(),Q(E.$$.fragment),L=D(),Q(G.$$.fragment),T=D(),Q(z.$$.fragment),H=D(),B=S("div"),Q(x.$$.fragment),U=D(),P=S("section"),Q(N.$$.fragment),V=D(),aa=S("div"),ia=S("h3"),ia.textContent=ra,Va=D(),Q(ha.$$.fragment),Pa=D(),Q(ya.$$.fragment),qa=D(),Q(Na.$$.fragment),s1=D(),Q(s0.$$.fragment),i1=D(),Q(Xa.$$.fragment),m1=D(),$a=S("div"),i0=S("h3"),i0.innerHTML=g2,o1=D(),Q(m0.$$.fragment),r1=D(),K0=S("div"),t1=D(),Q(a0.$$.fragment),u1=D(),n0=S("div"),o0=S("h3"),o0.innerHTML=b2,d1=D(),Q(r0.$$.fragment),c1=D(),t0=S("div"),t0.innerHTML=h2,f1=D(),u0=S("div"),u0.innerHTML=y2,p1=D(),Ea=S("div"),d0=S("h3"),d0.innerHTML=k2,g1=D(),Q(c0.$$.fragment),b1=D(),Q(f0.$$.fragment),h1=D(),p0=S("h3"),p0.innerHTML=v2,y1=D(),Q(g0.$$.fragment),k1=D(),Ma=S("div"),b0=S("h3"),b0.textContent=A2,v1=D(),Q(h0.$$.fragment),A1=D(),Q(y0.$$.fragment),w1=D(),l0=S("h3"),l0.textContent=w2,S1=D(),Q(k0.$$.fragment),this.h()},l(Z){a=R(Z,"DIV",{id:!0,class:!0});var J=M(a);q(l.$$.fragment,J),_=O(J),e=R(J,"DIV",{class:!0}),M(e).forEach(b),i=O(J),s=R(J,"DIV",{class:!0});var Ya=M(s);m=R(Ya,"H1",{class:!0});var H0=M(m);o=n1(H0,!1),H0.forEach(b),t=O(Ya),u=R(Ya,"H2",{class:!0,style:!0});var x0=M(u);g=W(x0,d),x0.forEach(b),c=O(Ya),f=R(Ya,"P",{class:!0,"data-svelte-h":!0}),va(f)!=="svelte-e517dl"&&(f.innerHTML=h),Ya.forEach(b),v=O(J),A=R(J,"DIV",{class:!0});var Ja=M(A);q(w.$$.fragment,Ja),k=O(Ja),q(E.$$.fragment,Ja),L=O(Ja),q(G.$$.fragment,Ja),Ja.forEach(b),T=O(J),q(z.$$.fragment,J),H=O(J),B=R(J,"DIV",{class:!0});var j0=M(B);q(x.$$.fragment,j0),j0.forEach(b),U=O(J),P=R(J,"SECTION",{class:!0});var S2=M(P);q(N.$$.fragment,S2),S2.forEach(b),V=O(J),aa=R(J,"DIV",{class:!0});var za=M(aa);ia=R(za,"H3",{class:!0,"data-svelte-h":!0}),va(ia)!=="svelte-1egkj2d"&&(ia.textContent=ra),Va=O(za),q(ha.$$.fragment,za),Pa=O(za),q(ya.$$.fragment,za),qa=O(za),q(Na.$$.fragment,za),s1=O(za),q(s0.$$.fragment,za),za.forEach(b),i1=O(J),q(Xa.$$.fragment,J),m1=O(J),$a=R(J,"DIV",{class:!0});var b3=M($a);i0=R(b3,"H3",{class:!0,"data-svelte-h":!0}),va(i0)!=="svelte-13ukf7h"&&(i0.innerHTML=g2),o1=O(b3),q(m0.$$.fragment,b3),b3.forEach(b),r1=O(J),K0=R(J,"DIV",{class:!0}),M(K0).forEach(b),t1=O(J),q(a0.$$.fragment,J),u1=O(J),n0=R(J,"DIV",{class:!0});var h3=M(n0);o0=R(h3,"H3",{class:!0,"data-svelte-h":!0}),va(o0)!=="svelte-nfbspc"&&(o0.innerHTML=b2),d1=O(h3),q(r0.$$.fragment,h3),h3.forEach(b),c1=O(J),t0=R(J,"DIV",{class:!0,"data-svelte-h":!0}),va(t0)!=="svelte-7slnx6"&&(t0.innerHTML=h2),f1=O(J),u0=R(J,"DIV",{class:!0,"data-svelte-h":!0}),va(u0)!=="svelte-17peqsy"&&(u0.innerHTML=y2),p1=O(J),Ea=R(J,"DIV",{class:!0});var Ka=M(Ea);d0=R(Ka,"H3",{class:!0,"data-svelte-h":!0}),va(d0)!=="svelte-1nglmub"&&(d0.innerHTML=k2),g1=O(Ka),q(c0.$$.fragment,Ka),b1=O(Ka),q(f0.$$.fragment,Ka),h1=O(Ka),p0=R(Ka,"H3",{class:!0,"data-svelte-h":!0}),va(p0)!=="svelte-1ydu40n"&&(p0.innerHTML=v2),y1=O(Ka),q(g0.$$.fragment,Ka),Ka.forEach(b),k1=O(J),Ma=R(J,"DIV",{class:!0});var Ha=M(Ma);b0=R(Ha,"H3",{class:!0,"data-svelte-h":!0}),va(b0)!=="svelte-92cj81"&&(b0.textContent=A2),v1=O(Ha),q(h0.$$.fragment,Ha),A1=O(Ha),q(y0.$$.fragment,Ha),w1=O(Ha),l0=R(Ha,"H3",{id:!0,class:!0,"data-svelte-h":!0}),va(l0)!=="svelte-821eve"&&(l0.textContent=w2),S1=O(Ha),q(k0.$$.fragment,Ha),Ha.forEach(b),J.forEach(b),this.h()},h(){p(e,"class","spacer svelte-1pg58ls"),o.a=null,p(m,"class","title title-large svelte-1pg58ls"),fa(m,"loaded",P1),p(u,"class","title dek svelte-1pg58ls"),j(u,"--delay","0.5s"),fa(u,"loaded",P1),p(f,"class","title byline svelte-1pg58ls"),fa(f,"loaded",P1),p(s,"class","title-section svelte-1pg58ls"),p(A,"class","editorial-container"),p(B,"class","editorial-container"),p(P,"class","svelte-1pg58ls"),p(ia,"class","sub-title svelte-1pg58ls"),p(aa,"class","editorial-container"),p(i0,"class","sub-title sub-title-smaller svelte-1pg58ls"),p($a,"class","editorial-container"),p(K0,"class","spacer svelte-1pg58ls"),p(o0,"class","sub-title sub-title-smaller svelte-1pg58ls"),p(n0,"class","editorial-container"),p(t0,"class","img-container svelte-1pg58ls"),p(u0,"class","caption"),p(d0,"class","sub-title sub-title-smaller svelte-1pg58ls"),p(p0,"class","sub-title sub-title-smaller svelte-1pg58ls"),p(Ea,"class","editorial-container"),p(b0,"class","sub-title svelte-1pg58ls"),p(l0,"id","methods"),p(l0,"class","sub-title sub-title-smaller svelte-1pg58ls"),p(Ma,"class","editorial-container conclusion svelte-1pg58ls"),p(a,"id","article"),p(a,"class","svelte-1pg58ls")},m(Z,J){C(Z,a,J),X(l,a,null),y(a,_),y(a,e),y(a,i),y(a,s),y(s,m),o.m(r,m),y(s,t),y(s,u),y(u,g),y(s,c),y(s,f),y(a,v),y(a,A),X(w,A,null),y(A,k),X(E,A,null),y(A,L),X(G,A,null),y(a,T),X(z,a,null),y(a,H),y(a,B),X(x,B,null),y(a,U),y(a,P),X(N,P,null),y(a,V),y(a,aa),y(aa,ia),y(aa,Va),X(ha,aa,null),y(aa,Pa),X(ya,aa,null),y(aa,qa),X(Na,aa,null),y(aa,s1),X(s0,aa,null),y(a,i1),X(Xa,a,null),y(a,m1),y(a,$a),y($a,i0),y($a,o1),X(m0,$a,null),y(a,r1),y(a,K0),y(a,t1),X(a0,a,null),y(a,u1),y(a,n0),y(n0,o0),y(n0,d1),X(r0,n0,null),y(a,c1),y(a,t0),y(a,f1),y(a,u0),y(a,p1),y(a,Ea),y(Ea,d0),y(Ea,g1),X(c0,Ea,null),y(Ea,b1),X(f0,Ea,null),y(Ea,h1),y(Ea,p0),y(Ea,y1),X(g0,Ea,null),y(a,k1),y(a,Ma),y(Ma,b0),y(Ma,v1),X(h0,Ma,null),y(Ma,A1),X(y0,Ma,null),y(Ma,w1),y(Ma,l0),y(Ma,S1),X(k0,Ma,null),g3=!0},p(Z,J){const Ya={};J&1&&(Ya.viewportHeight=Z[0]),l.$set(Ya);const H0={};J&1&&(H0.viewportHeight=Z[0]),z.$set(H0);const x0={};J&1&&(x0.viewportHeight=Z[0]),N.$set(x0);const Ja={};J&1&&(Ja.viewportHeight=Z[0]),Xa.$set(Ja);const j0={};J&1&&(j0.viewportHeight=Z[0]),a0.$set(j0)},i(Z){g3||(I(l.$$.fragment,Z),I(w.$$.fragment,Z),I(E.$$.fragment,Z),I(G.$$.fragment,Z),I(z.$$.fragment,Z),I(x.$$.fragment,Z),I(N.$$.fragment,Z),I(ha.$$.fragment,Z),I(ya.$$.fragment,Z),I(Na.$$.fragment,Z),I(s0.$$.fragment,Z),I(Xa.$$.fragment,Z),I(m0.$$.fragment,Z),I(a0.$$.fragment,Z),I(r0.$$.fragment,Z),I(c0.$$.fragment,Z),I(f0.$$.fragment,Z),I(g0.$$.fragment,Z),I(h0.$$.fragment,Z),I(y0.$$.fragment,Z),I(k0.$$.fragment,Z),g3=!0)},o(Z){K(l.$$.fragment,Z),K(w.$$.fragment,Z),K(E.$$.fragment,Z),K(G.$$.fragment,Z),K(z.$$.fragment,Z),K(x.$$.fragment,Z),K(N.$$.fragment,Z),K(ha.$$.fragment,Z),K(ya.$$.fragment,Z),K(Na.$$.fragment,Z),K(s0.$$.fragment,Z),K(Xa.$$.fragment,Z),K(m0.$$.fragment,Z),K(a0.$$.fragment,Z),K(r0.$$.fragment,Z),K(c0.$$.fragment,Z),K(f0.$$.fragment,Z),K(g0.$$.fragment,Z),K(h0.$$.fragment,Z),K(y0.$$.fragment,Z),K(k0.$$.fragment,Z),g3=!1},d(Z){Z&&b(a),$(l),$(w),$(E),$(G),$(z),$(x),$(N),$(ha),$(ya),$(Na),$(s0),$(Xa),$(m0),$(a0),$(r0),$(c0),$(f0),$(g0),$(h0),$(y0),$(k0)}}}function B7(n){let a,l,_=n[1]&&Tl(n);return{c(){_&&_.c(),a=Y()},l(e){_&&_.l(e),a=Y()},m(e,i){_&&_.m(e,i),C(e,a,i),l=!0},p(e,[i]){e[1]?_?(_.p(e,i),i&2&&I(_,1)):(_=Tl(e),_.c(),I(_,1),_.m(a.parentNode,a)):_&&(wa(),K(_,1,1,()=>{_=null}),Sa())},i(e){l||(I(_),l=!0)},o(e){K(_),l=!1},d(e){e&&b(a),_&&_.d(e)}}}let P1=!1;function T7(n,a,l){let _;Oa(n,f3,k=>l(8,_=k)),D1("copy",ba);let e,i,s=$3("data");const m=s.articles.filter(k=>k.url==="https://www.psychologytoday.com/intl/blog/moral-landscapes/201112/dangers-crying-it-out")[0],o=s.reddit.filter(k=>k.username==="leftpantleg420")[0],r=s.literature_reviews.filter(k=>k.url==="https://pubmed.ncbi.nlm.nih.gov/35778903/")[0],t=s.literature_reviews.filter(k=>k.url==="https://pubmed.ncbi.nlm.nih.gov/24042081/")[0],u=s.books.filter(k=>k.title==="Getting Your Child to Sleep... and Back to Sleep")[0],d=s.studies.filter(k=>k.url==="https://pubmed.ncbi.nlm.nih.gov/21945361/")[0],g=s.literature_reviews.filter(k=>k.url==="https://aasm.org/resources/practiceparameters/review_nightwakingschildren.pdf")[0];let c=s.comments.filter(k=>k.category==="divided"),f=s.comments.filter(k=>k.category==="brain damage"),h=s.comments.filter(k=>k.category==="attachment"),v=s.comments.filter(k=>k.category==="instagram"),A=s.comments.filter(k=>k.category==="conclusion");function w(k){switch(!0){case(k<1||!k):return{renderedData:s.reddit,focusHover:null,caption:"Bubble chart of user opinions on Reddit, heavily divided."};case(k>=1&&k<2):return{renderedData:s.reddit,focusHover:o,caption:"Bubble chart of user opinions on Reddit, heavily divided."};case(k>=2&&k<3):return{renderedData:s.articles,focusHover:null,caption:"Bubble chart of user opinions on news articles, heavily divided."};case(k>=3&&k<4):return{renderedData:s.articles,focusHover:m,caption:"Bubble chart of user opinions on Reddit, heavily divided."};case(k>=4&&k<5):return{renderedData:s.books,focusHover:null,caption:"Bubble chart of author opinions on books, heavily divided."};case(k>=5&&k<6):return{renderedData:s.books,focusHover:u,caption:"Bubble chart of author opinions on books, heavily divided."};case(k>=6&&k<7):return{renderedData:s.literature_reviews,focusHover:null,caption:"Bubble chart of medical positions on sleep training literature reviews, almost entirely advocating."};case(k>=7&&k<8):return{renderedData:s.literature_reviews,focusHover:g,caption:"Bubble chart of medical positions on sleep training literature reviews, almost entirely advocating."};case(k>=8&&k<9):return{renderedData:s.literature_reviews,focusHover:null,caption:"Bubble chart of medical positions on sleep training literature reviews, almost entirely advocating."};case(k>=9&&k<10):return{renderedData:s.literature_reviews,focusHover:r,caption:"Bubble chart of medical positions on sleep training literature reviews, almost entirely advocating."};case(k>=10&&k<11):return{renderedData:s.literature_reviews,focusHover:t,caption:"Bubble chart of medical positions on sleep training literature reviews, almost entirely advocating."};case(k>=11&&k<12):return{renderedData:s.studies,focusHover:null,caption:"Bubble chart of medical positions in sleep training medical studies, almost entirely advocating."};case(k>=12&&k<13):return{renderedData:s.studies,focusHover:d,caption:"Bubble chart of medical positions in sleep training medical studies, almost entirely advocating."};case(k>=13&&k<15):return{renderedData:s.instagram,focusHover:null,caption:"Bubble chart of opinions from Instagram influencers posting about sleep training, heavily divided."};case k>=17:return{renderedData:[s.studies,s.reddit],focusHover:null,caption:"Nested bubble chart comparing the medical consensus with the division of internet opinions on Reddit."};default:return{renderedData:s.studies,focusHover:null}}}return z0(()=>{l(0,e=_.height),l(1,i=!0)}),[e,i,c,f,h,v,A,w]}class C7 extends pa{constructor(a){super(),ga(this,a,T7,B7,ca,{})}}function G7(){console.log("--- --- --- --- --- ---"),console.log("svelte-starter: 5.14.0"),console.log("build: 2024-07-16-12:03"),console.log("--- --- --- --- --- ---")}function I7(n){let a,l,_,e;return a=new P_({props:{title:n[1],description:n[2],url:n[3],preloadFont:n[0],keywords:n[4]}}),_=new C7({}),{c(){Q(a.$$.fragment),l=D(),Q(_.$$.fragment)},l(i){q(a.$$.fragment,i),l=O(i),q(_.$$.fragment,i)},m(i,s){X(a,i,s),C(i,l,s),X(_,i,s),e=!0},p:ma,i(i){e||(I(a.$$.fragment,i),I(_.$$.fragment,i),e=!0)},o(i){K(a.$$.fragment,i),K(_.$$.fragment,i),e=!1},d(i){i&&b(l),$(a,i),$(_,i)}}}function P7(n,a,l){let{data:_}=a;G7();const e=["https://pudding.cool/assets/fonts/tiempos/TiemposTextWeb-Regular.woff2","https://pudding.cool/assets/fonts/tiempos/TiemposTextWeb-Bold.woff2","https://pudding.cool/assets/fonts/national/National2Web-Regular.woff2","https://pudding.cool/assets/fonts/national/National2Web-Bold.woff2"],{titleNoSpan:i,description:s,url:m,keywords:o}=ba;return D1("copy",ba),D1("data",_.data),n.$$set=r=>{"data"in r&&l(5,_=r.data)},[e,i,s,m,o,_]}class j7 extends pa{constructor(a){super(),ga(this,a,P7,I7,ca,{data:5})}}export{j7 as component}; diff --git a/docs/_app/immutable/nodes/4.915f1619.js b/docs/_app/immutable/nodes/4.bb82dabb.js similarity index 99% rename from docs/_app/immutable/nodes/4.915f1619.js rename to docs/_app/immutable/nodes/4.bb82dabb.js index 14afc4c..29ccdb5 100644 --- a/docs/_app/immutable/nodes/4.915f1619.js +++ b/docs/_app/immutable/nodes/4.bb82dabb.js @@ -1 +1 @@ -import{s as ee,f as z,a as w,l as H,C as he,g as k,d as b,c as D,h as L,m as j,u as K,j as v,k as Y,v as d,i as R,U as ye,M as X,n as G,V as _e,w as $,N as ie,o as ve,T as Q,D as re,W as ge}from"../chunks/scheduler.295916e6.js";import{S as te,i as le,a as U,g as ce,c as fe,t as J,b as ue,d as de,m as me,e as pe}from"../chunks/index.25f245b5.js";import{e as Z}from"../chunks/each.e59479a4.js";import{g as Ee,d as be}from"../chunks/transform.eb387b54.js";import{b as Ce}from"../chunks/paths.39b26b8d.js";async function ze(l){if("clipboard"in navigator)await navigator.clipboard.writeText(l);else{const e=document.createElement("input");e.type="text",e.disabled=!0,e.style.setProperty("position","fixed"),e.style.setProperty("z-index","-100"),e.style.setProperty("pointer-events","none"),e.style.setProperty("opacity","0"),e.value=l,document.body.appendChild(e),e.click(),e.select(),document.execCommand("copy"),document.body.removeChild(e)}}const ke=(l,e)=>{async function s(){if(r)try{await ze(r),l.dispatchEvent(new CustomEvent("svelte-copy",{detail:r}))}catch(o){l.dispatchEvent(new CustomEvent("svelte-copy:error",{detail:o}))}}let t=typeof e=="string"?["click"]:[e.events].flat(1),r=typeof e=="string"?e:e.text;return t.forEach(o=>{l.addEventListener(o,s,!0)}),{update:o=>{const C=typeof o=="string"?["click"]:[o.events].flat(1),g=typeof o=="string"?o:o.text,m=C.filter(y=>!t.includes(y)),n=t.filter(y=>!C.includes(y));m.forEach(y=>{l.addEventListener(y,s,!0)}),n.forEach(y=>{l.removeEventListener(y,s,!0)}),t=C,r=g},destroy:()=>{t.forEach(o=>{l.removeEventListener(o,s,!0)})}}};function xe(l){let e,s,t,r,o,C,g,m,n,y,a,c="CSS Snippet",p,_,F,M,N,T,S="Copy CSS to Clipboard",B,x,P,O,W;return{c(){e=z("link"),s=w(),t=z("div"),r=z("h3"),o=H(l[0]),C=w(),g=z("p"),m=H(l[1]),n=w(),y=z("details"),a=z("summary"),a.textContent=c,p=w(),_=z("code"),F=H(l[2]),M=w(),N=z("p"),T=z("button"),T.textContent=S,x=z("span"),P=H(l[3]),this.h()},l(E){const i=he("svelte-1uevrx3",document.head);e=k(i,"LINK",{rel:!0,href:!0}),i.forEach(b),s=D(E),t=k(E,"DIV",{style:!0,class:!0});var I=L(t);r=k(I,"H3",{class:!0});var f=L(r);o=j(f,l[0]),f.forEach(b),C=D(I),g=k(I,"P",{});var h=L(g);m=j(h,l[1]),h.forEach(b),n=D(I),y=k(I,"DETAILS",{class:!0});var u=L(y);a=k(u,"SUMMARY",{class:!0,"data-svelte-h":!0}),K(a)!=="svelte-1p4cxwi"&&(a.textContent=c),p=D(u),_=k(u,"CODE",{class:!0});var A=L(_);F=j(A,l[2]),A.forEach(b),u.forEach(b),M=D(I),N=k(I,"P",{});var q=L(N);T=k(q,"BUTTON",{class:!0,"data-svelte-h":!0}),K(T)!=="svelte-v2s51m"&&(T.textContent=S),x=k(q,"SPAN",{class:!0});var V=L(x);P=j(V,l[3]),V.forEach(b),q.forEach(b),I.forEach(b),this.h()},h(){v(e,"rel","external stylesheet"),v(e,"href",l[5]),v(r,"class","svelte-19ry7n"),Y(g,"font-size",l[4]),v(a,"class","svelte-19ry7n"),v(_,"class","svelte-19ry7n"),v(y,"class","svelte-19ry7n"),v(T,"class","svelte-19ry7n"),v(x,"class","svelte-19ry7n"),Y(t,"font-family","'"+l[0]+"'"),v(t,"class","svelte-19ry7n")},m(E,i){d(document.head,e),R(E,s,i),R(E,t,i),d(t,r),d(r,o),d(t,C),d(t,g),d(g,m),d(t,n),d(t,y),d(y,a),d(y,p),d(y,_),d(_,F),d(t,M),d(t,N),d(N,T),d(N,x),d(x,P),O||(W=[ye(B=ke.call(null,T,l[2])),X(T,"svelte-copy",l[6])],O=!0)},p(E,[i]){i&1&&G(o,E[0]),i&2&&G(m,E[1]),i&16&&Y(g,"font-size",E[4]),i&4&&G(F,E[2]),B&&_e(B.update)&&i&4&&B.update.call(null,E[2]),i&8&&G(P,E[3]),i&1&&Y(t,"font-family","'"+E[0]+"'")},i:$,o:$,d(E){E&&(b(s),b(t)),b(e),O=!1,ie(W)}}}function Te(l,e,s){let t,{id:r=""}=e,{family:o=""}=e,{size:C=16}=e,{text:g}=e,m="",n="";const y=`${Ce}/assets/demo/fonts/${r}.css`,a=()=>{s(3,n="Copied!"),setTimeout(()=>{s(3,n="")},1e3)};return ve(async()=>{const c=await fetch(y);s(2,m=await c.text())}),l.$$set=c=>{"id"in c&&s(7,r=c.id),"family"in c&&s(0,o=c.family),"size"in c&&s(8,C=c.size),"text"in c&&s(1,g=c.text)},l.$$.update=()=>{l.$$.dirty&256&&s(4,t=`${C}px`)},[o,g,m,n,t,y,a,r,C]}class Se extends te{constructor(e){super(),le(this,e,Te,xe,ee,{id:7,family:0,size:8,text:1})}}const Le=[{id:"atkinson",family:"Atkinson",type:"sans-serif"},{id:"atlas",family:"Atlas Grotesk",type:"sans-serif"},{id:"baloo-bhai",family:"Baloo Bhai",type:"sans-serif"},{id:"canela",family:"Canela",type:"serif"},{id:"computer-modern",family:"Computer Modern",type:"serif"},{id:"cozette",family:"Cozette",type:"other"},{id:"inter",family:"Inter",type:"sans-serif"},{id:"jamboree",family:"Jamboree",type:"other"},{id:"jersey",family:"Jersey M54",type:"other"},{id:"lyon",family:"Lyon Display",type:"serif"},{id:"metropolis",family:"Metropolis",type:"sans-serif"},{id:"national",family:"National 2 Web",type:"sans-serif"},{id:"publico",family:"Publico Text",type:"serif"},{id:"recoleta",family:"Recoleta",type:"serif"},{id:"rubik",family:"Rubik",type:"sans-serif"},{id:"spacemono",family:"Space Mono",type:"mono"},{id:"tiempos",family:"Tiempos Text",type:"serif"}];function se(l,e,s){const t=l.slice();return t[5]=e[s][0],t[6]=e[s][1],t}function ne(l,e,s){const t=l.slice();return t[9]=e[s].family,t[10]=e[s].id,t}function oe(l){let e,s;return e=new Se({props:{id:l[10],family:l[9],size:l[0],text:l[1]}}),{c(){ue(e.$$.fragment)},l(t){de(e.$$.fragment,t)},m(t,r){me(e,t,r),s=!0},p(t,r){const o={};r&1&&(o.size=t[0]),r&2&&(o.text=t[1]),e.$set(o)},i(t){s||(U(e.$$.fragment,t),s=!0)},o(t){J(e.$$.fragment,t),s=!1},d(t){pe(e,t)}}}function ae(l){let e,s=l[5]+"",t,r,o,C,g,m=Z(l[6]),n=[];for(let a=0;aJ(n[a],1,1,()=>{n[a]=null});return{c(){e=z("h2"),t=H(s),r=w(),o=z("section");for(let a=0;aJ(i[f],1,1,()=>{i[f]=null});return{c(){e=z("div"),s=z("h1"),s.textContent=t,r=w(),o=z("p"),o.innerHTML=C,g=w(),m=z("form"),n=z("label"),y=H("font-size: "),a=H(l[0]),c=H("px"),p=w(),_=z("input"),F=w(),M=z("label"),M.textContent=N,T=w(),S=z("input"),B=w(),x=z("article");for(let f=0;fm.type);o.sort((m,n)=>be(m[1].length,n[1].length));function C(){t=ge(this.value),s(0,t)}function g(){r=this.value,s(1,r)}return[t,r,o,C,g]}class Me extends te{constructor(e){super(),le(this,e,De,we,ee,{})}}function Pe(l){let e,s;return e=new Me({}),{c(){ue(e.$$.fragment)},l(t){de(e.$$.fragment,t)},m(t,r){me(e,t,r),s=!0},p:$,i(t){s||(U(e.$$.fragment,t),s=!0)},o(t){J(e.$$.fragment,t),s=!1},d(t){pe(e,t)}}}class He extends te{constructor(e){super(),le(this,e,null,Pe,ee,{})}}export{He as component}; +import{s as ee,f as z,a as w,l as H,C as he,g as k,d as b,c as D,h as L,m as j,u as K,j as v,k as Y,v as d,i as R,U as ye,M as X,n as G,V as _e,w as $,N as ie,o as ve,T as Q,D as re,W as ge}from"../chunks/scheduler.295916e6.js";import{S as te,i as le,a as U,g as ce,c as fe,t as J,b as ue,d as de,m as me,e as pe}from"../chunks/index.25f245b5.js";import{e as Z}from"../chunks/each.e59479a4.js";import{g as Ee,d as be}from"../chunks/transform.eb387b54.js";import{b as Ce}from"../chunks/paths.ba30c16a.js";async function ze(l){if("clipboard"in navigator)await navigator.clipboard.writeText(l);else{const e=document.createElement("input");e.type="text",e.disabled=!0,e.style.setProperty("position","fixed"),e.style.setProperty("z-index","-100"),e.style.setProperty("pointer-events","none"),e.style.setProperty("opacity","0"),e.value=l,document.body.appendChild(e),e.click(),e.select(),document.execCommand("copy"),document.body.removeChild(e)}}const ke=(l,e)=>{async function s(){if(r)try{await ze(r),l.dispatchEvent(new CustomEvent("svelte-copy",{detail:r}))}catch(o){l.dispatchEvent(new CustomEvent("svelte-copy:error",{detail:o}))}}let t=typeof e=="string"?["click"]:[e.events].flat(1),r=typeof e=="string"?e:e.text;return t.forEach(o=>{l.addEventListener(o,s,!0)}),{update:o=>{const C=typeof o=="string"?["click"]:[o.events].flat(1),g=typeof o=="string"?o:o.text,m=C.filter(y=>!t.includes(y)),n=t.filter(y=>!C.includes(y));m.forEach(y=>{l.addEventListener(y,s,!0)}),n.forEach(y=>{l.removeEventListener(y,s,!0)}),t=C,r=g},destroy:()=>{t.forEach(o=>{l.removeEventListener(o,s,!0)})}}};function xe(l){let e,s,t,r,o,C,g,m,n,y,a,c="CSS Snippet",p,_,F,M,N,T,S="Copy CSS to Clipboard",B,x,P,O,W;return{c(){e=z("link"),s=w(),t=z("div"),r=z("h3"),o=H(l[0]),C=w(),g=z("p"),m=H(l[1]),n=w(),y=z("details"),a=z("summary"),a.textContent=c,p=w(),_=z("code"),F=H(l[2]),M=w(),N=z("p"),T=z("button"),T.textContent=S,x=z("span"),P=H(l[3]),this.h()},l(E){const i=he("svelte-1uevrx3",document.head);e=k(i,"LINK",{rel:!0,href:!0}),i.forEach(b),s=D(E),t=k(E,"DIV",{style:!0,class:!0});var I=L(t);r=k(I,"H3",{class:!0});var f=L(r);o=j(f,l[0]),f.forEach(b),C=D(I),g=k(I,"P",{});var h=L(g);m=j(h,l[1]),h.forEach(b),n=D(I),y=k(I,"DETAILS",{class:!0});var u=L(y);a=k(u,"SUMMARY",{class:!0,"data-svelte-h":!0}),K(a)!=="svelte-1p4cxwi"&&(a.textContent=c),p=D(u),_=k(u,"CODE",{class:!0});var A=L(_);F=j(A,l[2]),A.forEach(b),u.forEach(b),M=D(I),N=k(I,"P",{});var q=L(N);T=k(q,"BUTTON",{class:!0,"data-svelte-h":!0}),K(T)!=="svelte-v2s51m"&&(T.textContent=S),x=k(q,"SPAN",{class:!0});var V=L(x);P=j(V,l[3]),V.forEach(b),q.forEach(b),I.forEach(b),this.h()},h(){v(e,"rel","external stylesheet"),v(e,"href",l[5]),v(r,"class","svelte-19ry7n"),Y(g,"font-size",l[4]),v(a,"class","svelte-19ry7n"),v(_,"class","svelte-19ry7n"),v(y,"class","svelte-19ry7n"),v(T,"class","svelte-19ry7n"),v(x,"class","svelte-19ry7n"),Y(t,"font-family","'"+l[0]+"'"),v(t,"class","svelte-19ry7n")},m(E,i){d(document.head,e),R(E,s,i),R(E,t,i),d(t,r),d(r,o),d(t,C),d(t,g),d(g,m),d(t,n),d(t,y),d(y,a),d(y,p),d(y,_),d(_,F),d(t,M),d(t,N),d(N,T),d(N,x),d(x,P),O||(W=[ye(B=ke.call(null,T,l[2])),X(T,"svelte-copy",l[6])],O=!0)},p(E,[i]){i&1&&G(o,E[0]),i&2&&G(m,E[1]),i&16&&Y(g,"font-size",E[4]),i&4&&G(F,E[2]),B&&_e(B.update)&&i&4&&B.update.call(null,E[2]),i&8&&G(P,E[3]),i&1&&Y(t,"font-family","'"+E[0]+"'")},i:$,o:$,d(E){E&&(b(s),b(t)),b(e),O=!1,ie(W)}}}function Te(l,e,s){let t,{id:r=""}=e,{family:o=""}=e,{size:C=16}=e,{text:g}=e,m="",n="";const y=`${Ce}/assets/demo/fonts/${r}.css`,a=()=>{s(3,n="Copied!"),setTimeout(()=>{s(3,n="")},1e3)};return ve(async()=>{const c=await fetch(y);s(2,m=await c.text())}),l.$$set=c=>{"id"in c&&s(7,r=c.id),"family"in c&&s(0,o=c.family),"size"in c&&s(8,C=c.size),"text"in c&&s(1,g=c.text)},l.$$.update=()=>{l.$$.dirty&256&&s(4,t=`${C}px`)},[o,g,m,n,t,y,a,r,C]}class Se extends te{constructor(e){super(),le(this,e,Te,xe,ee,{id:7,family:0,size:8,text:1})}}const Le=[{id:"atkinson",family:"Atkinson",type:"sans-serif"},{id:"atlas",family:"Atlas Grotesk",type:"sans-serif"},{id:"baloo-bhai",family:"Baloo Bhai",type:"sans-serif"},{id:"canela",family:"Canela",type:"serif"},{id:"computer-modern",family:"Computer Modern",type:"serif"},{id:"cozette",family:"Cozette",type:"other"},{id:"inter",family:"Inter",type:"sans-serif"},{id:"jamboree",family:"Jamboree",type:"other"},{id:"jersey",family:"Jersey M54",type:"other"},{id:"lyon",family:"Lyon Display",type:"serif"},{id:"metropolis",family:"Metropolis",type:"sans-serif"},{id:"national",family:"National 2 Web",type:"sans-serif"},{id:"publico",family:"Publico Text",type:"serif"},{id:"recoleta",family:"Recoleta",type:"serif"},{id:"rubik",family:"Rubik",type:"sans-serif"},{id:"spacemono",family:"Space Mono",type:"mono"},{id:"tiempos",family:"Tiempos Text",type:"serif"}];function se(l,e,s){const t=l.slice();return t[5]=e[s][0],t[6]=e[s][1],t}function ne(l,e,s){const t=l.slice();return t[9]=e[s].family,t[10]=e[s].id,t}function oe(l){let e,s;return e=new Se({props:{id:l[10],family:l[9],size:l[0],text:l[1]}}),{c(){ue(e.$$.fragment)},l(t){de(e.$$.fragment,t)},m(t,r){me(e,t,r),s=!0},p(t,r){const o={};r&1&&(o.size=t[0]),r&2&&(o.text=t[1]),e.$set(o)},i(t){s||(U(e.$$.fragment,t),s=!0)},o(t){J(e.$$.fragment,t),s=!1},d(t){pe(e,t)}}}function ae(l){let e,s=l[5]+"",t,r,o,C,g,m=Z(l[6]),n=[];for(let a=0;aJ(n[a],1,1,()=>{n[a]=null});return{c(){e=z("h2"),t=H(s),r=w(),o=z("section");for(let a=0;aJ(i[f],1,1,()=>{i[f]=null});return{c(){e=z("div"),s=z("h1"),s.textContent=t,r=w(),o=z("p"),o.innerHTML=C,g=w(),m=z("form"),n=z("label"),y=H("font-size: "),a=H(l[0]),c=H("px"),p=w(),_=z("input"),F=w(),M=z("label"),M.textContent=N,T=w(),S=z("input"),B=w(),x=z("article");for(let f=0;fm.type);o.sort((m,n)=>be(m[1].length,n[1].length));function C(){t=ge(this.value),s(0,t)}function g(){r=this.value,s(1,r)}return[t,r,o,C,g]}class Me extends te{constructor(e){super(),le(this,e,De,we,ee,{})}}function Pe(l){let e,s;return e=new Me({}),{c(){ue(e.$$.fragment)},l(t){de(e.$$.fragment,t)},m(t,r){me(e,t,r),s=!0},p:$,i(t){s||(U(e.$$.fragment,t),s=!0)},o(t){J(e.$$.fragment,t),s=!1},d(t){pe(e,t)}}}class He extends te{constructor(e){super(),le(this,e,null,Pe,ee,{})}}export{He as component}; diff --git a/docs/_app/version.json b/docs/_app/version.json index 2c8e5ea..40ba2fe 100644 --- a/docs/_app/version.json +++ b/docs/_app/version.json @@ -1 +1 @@ -{"version":"1721145433850"} \ No newline at end of file +{"version":"1721145790170"} \ No newline at end of file diff --git a/docs/demo/elements/index.html b/docs/demo/elements/index.html index 2bd4731..9a62c3b 100644 --- a/docs/demo/elements/index.html +++ b/docs/demo/elements/index.html @@ -8,14 +8,14 @@ - + - + - - + + - + @@ -64,7 +64,7 @@