import{_ as X}from"./preload-helper.a4192956.js";import{H as On}from"./control.c2cf8273.js";import{u as F,S as Vn,s as ge,T as se,U as oe,h as g,d as c,j as f,i as L,r as m,f as p,g as _,B as fn,w as le,x as qe,V as cn,e as ie,W as dn,p as et,Q as $t,R as Et,a as N,l as re,c as j,m as ne,X as zn,n as Be,C as ft,y as Ft,z as St,o as Ot,D as he,Y as mn,A as ut,Z as hn,G as Ut,v as Se,_ as Ct,H as Nn,J as jn,K as Mn,L as Bn,F as pn,$ as qn,E as at,a0 as mt,q as br,I as Hn}from"./scheduler.2f9f1739.js";import{n as Un,l as Gn,k as Fn,o as Jn,S as Ee,i as Ce,a as w,g as fe,t as R,c as ce,f as ht,h as kr,p as Tt,b as Z,d as ee,m as Q,e as x,j as _n}from"./index.f9f1dac6.js";import{f as Lt,c as Kn}from"./utils.fc776758.js";import{m as Wn}from"./randomstore.850cca5c.js";import{F as Ae}from"./fa.139e50c6.js";import{e as tt,u as gn,f as vn}from"./each.7a84d497.js";import{f as Jt,a as Dt,c as bn,s as Xn}from"./index.63ca82d4.js";import{w as Yn}from"./index.4c158df6.js";import{f as Zn,a as wr,b as yr,c as Qn,h as xn,i as el,j as tl,k as rl}from"./index.e4323a1b.js";import{o as Ht,p as nl}from"./index.b11ac8a0.js";import"./singletons.681f9cfa.js";import{S as ll}from"./seo.f792d6dc.js";function kn(l,e,t,r){if(!e)return F;const n=l.getBoundingClientRect();if(e.left===n.left&&e.right===n.right&&e.top===n.top&&e.bottom===n.bottom)return F;const{delay:s=0,duration:o=300,easing:u=Vn,start:i=Un()+s,end:a=i+o,tick:d=F,css:h}=t(l,{from:e,to:n},r);let y=!0,V=!1,$;function M(){h&&($=Fn(l,0,1,o,s,u,h)),s||(V=!0)}function I(){h&&Jn(l,$),y=!1}return Gn(q=>{if(!V&&q>=i&&(V=!0),V&&q>=a&&(d(1,0),I()),!y)return!1;if(V){const E=q-i,C=0+1*u(E/o);d(C,1-C)}return!0}),M(),d(0,1),I}function wn(l){const e=getComputedStyle(l);if(e.position!=="absolute"&&e.position!=="fixed"){const{width:t,height:r}=e,n=l.getBoundingClientRect();l.style.position="absolute",l.style.width=t,l.style.height=r,sl(l,n)}}function sl(l,e){const t=l.getBoundingClientRect();if(e.left!==t.left||e.top!==t.top){const r=getComputedStyle(l),n=r.transform==="none"?"":r.transform;l.style.transform=`${n} translate(${e.left-t.left}px, ${e.top-t.top}px)`}}const ol=(l,e)=>{const t=l[e];return t?typeof t=="function"?t():Promise.resolve(t):new Promise((r,n)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))})};function il(l,e){return new On(l,e)}new TextEncoder;async function al({params:l}){try{const e=await ol(Object.assign({"../posts/10+aws+services+explained.md":()=>X(()=>import("./10_aws_services_explained.6e705e8b.js"),["./10_aws_services_explained.6e705e8b.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css"],import.meta.url),"../posts/Authentication+Keeps+Getting+Easier+Passkeys+with+Hanko+Cloud.md":()=>X(()=>import("./Authentication_Keeps_Getting_Easier_Passkeys_with_Hanko_Cloud.fdda7c23.js"),["./Authentication_Keeps_Getting_Easier_Passkeys_with_Hanko_Cloud.fdda7c23.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js"],import.meta.url),"../posts/Codium+AI+PR+Agent+vs+Copilot+for+Pull+Requests.md":()=>X(()=>import("./Codium_AI_PR_Agent_vs_Copilot_for_Pull_Requests.1420be46.js"),["./Codium_AI_PR_Agent_vs_Copilot_for_Pull_Requests.1420be46.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js","./image.a4587660.js","./index.b11ac8a0.js"],import.meta.url),"../posts/How+to+build+mobil+app+with+python.md":()=>X(()=>import("./How_to_build_mobil_app_with_python.c0137f0e.js"),["./How_to_build_mobil_app_with_python.c0137f0e.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css"],import.meta.url),"../posts/How+to+debug+any+code.md":()=>X(()=>import("./How_to_debug_any_code.271583a8.js"),["./How_to_debug_any_code.271583a8.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css"],import.meta.url),"../posts/Things+svelte+just+do+better.md":()=>X(()=>import("./Things_svelte_just_do_better.db74e0b4.js"),["./Things_svelte_just_do_better.db74e0b4.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css"],import.meta.url),"../posts/affordable-altenative-for-website-analytics.md":()=>X(()=>import("./affordable-altenative-for-website-analytics.bb95b8fd.js"),["./affordable-altenative-for-website-analytics.bb95b8fd.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js"],import.meta.url),"../posts/ci-cd-a-brief-introduction.md":()=>X(()=>import("./ci-cd-a-brief-introduction.95fafce8.js"),["./ci-cd-a-brief-introduction.95fafce8.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js"],import.meta.url),"../posts/devcanvas-ready-for-hacktoberfest2024.md":()=>X(()=>import("./devcanvas-ready-for-hacktoberfest2024.7cd10723.js"),["./devcanvas-ready-for-hacktoberfest2024.7cd10723.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./image.a4587660.js","./index.b11ac8a0.js","./link.4e908ad9.js"],import.meta.url),"../posts/fisher-yates-how-the-popular-shuffling-algorithm-works-uth-series.md":()=>X(()=>import("./fisher-yates-how-the-popular-shuffling-algorithm-works-uth-series.15a24411.js"),["./fisher-yates-how-the-popular-shuffling-algorithm-works-uth-series.15a24411.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./seriesLayout.493d67f0.js","./each.7a84d497.js","./index.b11ac8a0.js","./fa.139e50c6.js","../assets/fa.95b16411.css","./seriesEpisodes.01c44f76.js","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js","./image.a4587660.js"],import.meta.url),"../posts/git+for+beginners.md":()=>X(()=>import("./git_for_beginners.e155544a.js"),["./git_for_beginners.e155544a.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js","./image.a4587660.js","./index.b11ac8a0.js"],import.meta.url),"../posts/how+t0+build+a+simple+flask+application.md":()=>X(()=>import("./how_t0_build_a_simple_flask_application.1184d0ad.js"),["./how_t0_build_a_simple_flask_application.1184d0ad.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js"],import.meta.url),"../posts/how+to+dockerize+a+python+web+app.md":()=>X(()=>import("./how_to_dockerize_a_python_web_app.1b71d77f.js"),["./how_to_dockerize_a_python_web_app.1b71d77f.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js","./image.a4587660.js","./index.b11ac8a0.js"],import.meta.url),"../posts/how+to+use+tailwind+in+any+python+project..md":()=>X(()=>import("./how_to_use_tailwind_in_any_python_project..1bf77972.js"),["./how_to_use_tailwind_in_any_python_project..1bf77972.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./image.a4587660.js","./index.b11ac8a0.js","./link.4e908ad9.js"],import.meta.url),"../posts/how-garbage-collector-works-under-the-hood-series.md":()=>X(()=>import("./how-garbage-collector-works-under-the-hood-series.1a686240.js"),["./how-garbage-collector-works-under-the-hood-series.1a686240.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./seriesLayout.493d67f0.js","./each.7a84d497.js","./index.b11ac8a0.js","./fa.139e50c6.js","../assets/fa.95b16411.css","./seriesEpisodes.01c44f76.js","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js","./image.a4587660.js"],import.meta.url),"../posts/how-i-animated-sorting-algorithm-visualizer.md":()=>X(()=>import("./how-i-animated-sorting-algorithm-visualizer.eb4406d3.js"),["./how-i-animated-sorting-algorithm-visualizer.eb4406d3.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./index.b11ac8a0.js","./link.4e908ad9.js","../assets/how-i-animated-sorting-algorithm-visualizer.3268fc27.css"],import.meta.url),"../posts/how-ssh-works-under-the-hood.md":()=>X(()=>import("./how-ssh-works-under-the-hood.04aaaf39.js"),["./how-ssh-works-under-the-hood.04aaaf39.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./seriesLayout.493d67f0.js","./each.7a84d497.js","./index.b11ac8a0.js","./fa.139e50c6.js","../assets/fa.95b16411.css","./seriesEpisodes.01c44f76.js","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js","./image.a4587660.js"],import.meta.url),"../posts/how-to-connect-to-a-mongodb-database-in-sveltekit.md":()=>X(()=>import("./how-to-connect-to-a-mongodb-database-in-sveltekit.92055a2b.js"),["./how-to-connect-to-a-mongodb-database-in-sveltekit.92055a2b.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css"],import.meta.url),"../posts/how-to-inject-or-hide-data-into-jpeg.md":()=>X(()=>import("./how-to-inject-or-hide-data-into-jpeg.2715e7e1.js"),["./how-to-inject-or-hide-data-into-jpeg.2715e7e1.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js","./image.a4587660.js","./index.b11ac8a0.js"],import.meta.url),"../posts/how-to-lean-code-faster.md":()=>X(()=>import("./how-to-lean-code-faster.a08ea1aa.js"),["./how-to-lean-code-faster.a08ea1aa.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js"],import.meta.url),"../posts/how-to-stream-a-youtube-video-as-audio.md":()=>X(()=>import("./how-to-stream-a-youtube-video-as-audio.3c27c39f.js"),["./how-to-stream-a-youtube-video-as-audio.3c27c39f.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js"],import.meta.url),"../posts/how-to-use-sass-or-scss-in-svelte-sveltekit.md":()=>X(()=>import("./how-to-use-sass-or-scss-in-svelte-sveltekit.01fcfa05.js"),["./how-to-use-sass-or-scss-in-svelte-sveltekit.01fcfa05.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js"],import.meta.url),"../posts/how_to_animate_state_change_svelte.md":()=>X(()=>import("./how_to_animate_state_change_svelte.62edab8a.js"),["./how_to_animate_state_change_svelte.62edab8a.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./index.63ca82d4.js","./link.4e908ad9.js","../assets/how_to_animate_state_change_svelte.5e6ce806.css"],import.meta.url),"../posts/i-built-a-codepen-alternative.md":()=>X(()=>import("./i-built-a-codepen-alternative.0cd57d95.js"),["./i-built-a-codepen-alternative.0cd57d95.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./image.a4587660.js","./index.b11ac8a0.js","./link.4e908ad9.js"],import.meta.url),"../posts/introducing+sleek+scroll.md":()=>X(()=>import("./introducing_sleek_scroll.1206805f.js"),["./introducing_sleek_scroll.1206805f.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./image.a4587660.js","./index.b11ac8a0.js","./link.4e908ad9.js"],import.meta.url),"../posts/kbar-svelte-mini-ctrl-k-menu-for-your-svelte-website.md":()=>X(()=>import("./kbar-svelte-mini-ctrl-k-menu-for-your-svelte-website.a66a768b.js"),["./kbar-svelte-mini-ctrl-k-menu-for-your-svelte-website.a66a768b.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js","./image.a4587660.js","./index.b11ac8a0.js"],import.meta.url),"../posts/migrating-your-sveltekit-app-from-nodejs-to-bunjs.md":()=>X(()=>import("./migrating-your-sveltekit-app-from-nodejs-to-bunjs.59816368.js"),["./migrating-your-sveltekit-app-from-nodejs-to-bunjs.59816368.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css"],import.meta.url),"../posts/missing+piece+in+your+programming+puzzle.md":()=>X(()=>import("./missing_piece_in_your_programming_puzzle.a5ca6d74.js"),["./missing_piece_in_your_programming_puzzle.a5ca6d74.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css"],import.meta.url),"../posts/pyhton+tips+and+tricks.md":()=>X(()=>import("./pyhton_tips_and_tricks.d065cb7a.js"),["./pyhton_tips_and_tricks.d065cb7a.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css"],import.meta.url),"../posts/python-best-practices-dx.md":()=>X(()=>import("./python-best-practices-dx.467a16b6.js"),["./python-best-practices-dx.467a16b6.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css"],import.meta.url),"../posts/rich-text-trimming-algorithm.md":()=>X(()=>import("./rich-text-trimming-algorithm.919d53e9.js"),["./rich-text-trimming-algorithm.919d53e9.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./seriesLayout.493d67f0.js","./each.7a84d497.js","./index.b11ac8a0.js","./fa.139e50c6.js","../assets/fa.95b16411.css","./seriesEpisodes.01c44f76.js","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js","./image.a4587660.js"],import.meta.url),"../posts/simple-seo-optimization-for-your-sveltekit-website.md":()=>X(()=>import("./simple-seo-optimization-for-your-sveltekit-website.c1814d7d.js"),["./simple-seo-optimization-for-your-sveltekit-website.c1814d7d.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js"],import.meta.url),"../posts/svelte+tips+and+features+to+enhance+your+developer+experience.md":()=>X(()=>import("./svelte_tips_and_features_to_enhance_your_developer_experience.a5acb61b.js"),["./svelte_tips_and_features_to_enhance_your_developer_experience.a5acb61b.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css"],import.meta.url),"../posts/tcp-ip-under-the-hood.md":()=>X(()=>import("./tcp-ip-under-the-hood.2ffc8506.js"),["./tcp-ip-under-the-hood.2ffc8506.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./seriesLayout.493d67f0.js","./each.7a84d497.js","./index.b11ac8a0.js","./fa.139e50c6.js","../assets/fa.95b16411.css","./seriesEpisodes.01c44f76.js","../assets/MarkdownLayout.a0ee06d6.css","./image.a4587660.js","./link.4e908ad9.js"],import.meta.url),"../posts/what-is-a-subnet-how-subnetting-works.md":()=>X(()=>import("./what-is-a-subnet-how-subnetting-works.035f8b1b.js"),["./what-is-a-subnet-how-subnetting-works.035f8b1b.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./seriesLayout.493d67f0.js","./each.7a84d497.js","./index.b11ac8a0.js","./fa.139e50c6.js","../assets/fa.95b16411.css","./seriesEpisodes.01c44f76.js","../assets/MarkdownLayout.a0ee06d6.css","./image.a4587660.js","./link.4e908ad9.js"],import.meta.url),"../posts/writing+resftul+api+with+flask.md":()=>X(()=>import("./writing_resftul_api_with_flask.da2eb160.js"),["./writing_resftul_api_with_flask.da2eb160.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./link.4e908ad9.js","./image.a4587660.js","./index.b11ac8a0.js"],import.meta.url),"../posts/zero-to-one-getting-started-with-svelte.md":()=>X(()=>import("./zero-to-one-getting-started-with-svelte.1cc248fe.js"),["./zero-to-one-getting-started-with-svelte.1cc248fe.js","./scheduler.2f9f1739.js","./index.f9f1dac6.js","./styles.a749dd55.js","../assets/styles.129d2766.css","./MarkdownLayout.50a9a114.js","./each.7a84d497.js","./fa.139e50c6.js","../assets/fa.95b16411.css","../assets/MarkdownLayout.a0ee06d6.css","./image.a4587660.js","./index.b11ac8a0.js","./link.4e908ad9.js"],import.meta.url)}),`../posts/${l.slug}.md`);return{content:e.default,meta:e.metadata}}catch{throw il("404","could not find the page you're lokking for!")}}const to=Object.freeze(Object.defineProperty({__proto__:null,load:al},Symbol.toStringTag,{value:"Module"}));function ul(l){let e,t;return{c(){e=se("svg"),t=se("path"),this.h()},l(r){e=oe(r,"svg",{xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var n=g(e);t=oe(n,"path",{d:!0}),g(t).forEach(c),n.forEach(c),this.h()},h(){f(t,"d","M21 12a9 9 0 1 1-6.219-8.56"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width",l[0]),f(e,"height",l[0]),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","lucide lucide-loader-circle")},m(r,n){L(r,e,n),m(e,t)},p(r,[n]){n&1&&f(e,"width",r[0]),n&1&&f(e,"height",r[0])},i:F,o:F,d(r){r&&c(e)}}}function fl(l,e,t){let{size:r=24}=e;return l.$$set=n=>{"size"in n&&t(0,r=n.size)},[r]}class yn extends Ee{constructor(e){super(),Ce(this,e,fl,ul,ge,{size:0})}}function cl(l){let e,t,r,n;return{c(){e=se("svg"),t=se("path"),r=se("path"),n=se("path"),this.h()},l(s){e=oe(s,"svg",{xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var o=g(e);t=oe(o,"path",{d:!0}),g(t).forEach(c),r=oe(o,"path",{d:!0}),g(r).forEach(c),n=oe(o,"path",{d:!0}),g(n).forEach(c),o.forEach(c),this.h()},h(){f(t,"d","M12 20h9"),f(r,"d","M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z"),f(n,"d","m15 5 3 3"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width",l[0]),f(e,"height",l[0]),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","lucide lucide-pencil-line")},m(s,o){L(s,e,o),m(e,t),m(e,r),m(e,n)},p(s,[o]){o&1&&f(e,"width",s[0]),o&1&&f(e,"height",s[0])},i:F,o:F,d(s){s&&c(e)}}}function dl(l,e,t){let{size:r=24}=e;return l.$$set=n=>{"size"in n&&t(0,r=n.size)},[r]}class En extends Ee{constructor(e){super(),Ce(this,e,dl,cl,ge,{size:0})}}function ml(l){let e,t,r;return{c(){e=se("svg"),t=se("path"),r=se("path"),this.h()},l(n){e=oe(n,"svg",{xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var s=g(e);t=oe(s,"path",{d:!0}),g(t).forEach(c),r=oe(s,"path",{d:!0}),g(r).forEach(c),s.forEach(c),this.h()},h(){f(t,"d","M18 6 6 18"),f(r,"d","m6 6 12 12"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width",l[0]),f(e,"height",l[0]),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","lucide lucide-x")},m(n,s){L(n,e,s),m(e,t),m(e,r)},p(n,[s]){s&1&&f(e,"width",n[0]),s&1&&f(e,"height",n[0])},i:F,o:F,d(n){n&&c(e)}}}function hl(l,e,t){let{size:r=24}=e;return l.$$set=n=>{"size"in n&&t(0,r=n.size)},[r]}class pl extends Ee{constructor(e){super(),Ce(this,e,hl,ml,ge,{size:0})}}function _l(l){let e,t,r;return{c(){e=se("svg"),t=se("path"),r=se("path"),this.h()},l(n){e=oe(n,"svg",{xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var s=g(e);t=oe(s,"path",{d:!0}),g(t).forEach(c),r=oe(s,"path",{d:!0}),g(r).forEach(c),s.forEach(c),this.h()},h(){f(t,"d","M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"),f(r,"d","M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width",l[0]),f(e,"height",l[0]),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","lucide lucide-square-pen")},m(n,s){L(n,e,s),m(e,t),m(e,r)},p(n,[s]){s&1&&f(e,"width",n[0]),s&1&&f(e,"height",n[0])},i:F,o:F,d(n){n&&c(e)}}}function gl(l,e,t){let{size:r=24}=e;return l.$$set=n=>{"size"in n&&t(0,r=n.size)},[r]}class vl extends Ee{constructor(e){super(),Ce(this,e,gl,_l,ge,{size:0})}}function bl(l){let e,t,r,n;return{c(){e=se("svg"),t=se("path"),r=se("path"),n=se("path"),this.h()},l(s){e=oe(s,"svg",{xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var o=g(e);t=oe(o,"path",{d:!0}),g(t).forEach(c),r=oe(o,"path",{d:!0}),g(r).forEach(c),n=oe(o,"path",{d:!0}),g(n).forEach(c),o.forEach(c),this.h()},h(){f(t,"d","M3 6h18"),f(r,"d","M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"),f(n,"d","M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width",l[0]),f(e,"height",l[0]),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","lucide lucide-trash")},m(s,o){L(s,e,o),m(e,t),m(e,r),m(e,n)},p(s,[o]){o&1&&f(e,"width",s[0]),o&1&&f(e,"height",s[0])},i:F,o:F,d(s){s&&c(e)}}}function kl(l,e,t){let{size:r=24}=e;return l.$$set=n=>{"size"in n&&t(0,r=n.size)},[r]}class wl extends Ee{constructor(e){super(),Ce(this,e,kl,bl,ge,{size:0})}}let Cn="commenter-username-and-email";function yl(l){try{return localStorage.setItem(Cn,JSON.stringify(l)),!0}catch{return!1}}function Tn(){try{return JSON.parse(localStorage.getItem(Cn))}catch{return!1}}function El(l,e){X(()=>import("./quill.0760a448.js"),[],import.meta.url).then(t=>{const r=t.default,n=new r(l,{modules:{toolbar:[[{header:[3,!1]}],["bold","italic","underline"],["link","code-block","blockquote"],[{list:"ordered"},{list:"bullet"}]]},placeholder:"Type something...",theme:"snow",...e}),s=l.getElementsByClassName("ql-editor")[0];n.on("text-change",function(o,u,i){l.dispatchEvent(new CustomEvent("text-change",{detail:{html:s.innerHTML,text:n.getText()}}))})})}function Cl(l){let e,t;return{c(){e=new cn(!1),t=ie(),this.h()},l(r){e=dn(r,!1),t=ie(),this.h()},h(){e.a=t},m(r,n){e.m(l[1],r,n),L(r,t,n)},p:F,d(r){r&&(c(t),e.d())}}}function Tl(l){let e,t,r,n,s=l[1]&&Cl(l);return{c(){e=p("div"),t=p("div"),s&&s.c(),this.h()},l(o){e=_(o,"DIV",{class:!0});var u=g(e);t=_(u,"DIV",{class:!0});var i=g(t);s&&s.l(i),i.forEach(c),u.forEach(c),this.h()},h(){f(t,"class","svelte-44qdiz"),f(e,"class","parent svelte-44qdiz")},m(o,u){L(o,e,u),m(e,t),s&&s.m(t,null),l[7](t),r||(n=[fn(El.call(null,t,l[3])),le(t,"text-change",l[2])],r=!0)},p(o,[u]){o[1]&&s.p(o,u)},i:F,o:F,d(o){o&&c(e),s&&s.d(),l[7](null),r=!1,qe(n)}}}function Dl(l,e,t){let{content:r,isReply:n}=e,{fill:s}=e,{editor:o}=e;const u=s;function i(h){t(4,r=h.detail.html)}let a={placeholder:n?"Write a reply..":"Write a comment..."};function d(h){et[h?"unshift":"push"](()=>{o=h,t(0,o)})}return l.$$set=h=>{"content"in h&&t(4,r=h.content),"isReply"in h&&t(5,n=h.isReply),"fill"in h&&t(6,s=h.fill),"editor"in h&&t(0,o=h.editor)},[o,u,i,a,r,n,s,d]}class Dn extends Ee{constructor(e){super(),Ce(this,e,Dl,Tl,ge,{content:4,isReply:5,fill:6,editor:0})}}function Il(l){const e=t=>{l&&!l.contains(t.target)&&!t.defaultPrevented&&l.dispatchEvent(new CustomEvent("click_outside",l))};return document.addEventListener("click",e,!0),{destroy(){document.removeEventListener("click",e,!0)}}}function In(l){let e=document.createElement("div");return e.innerHTML=l,!e.textContent.trim()}function Er(l,e,t,r,n,s,o){try{var u=l[s](o),i=u.value}catch(a){t(a);return}u.done?e(i):Promise.resolve(i).then(r,n)}function Qe(l){return function(){var e=this,t=arguments;return new Promise(function(r,n){var s=l.apply(e,t);function o(i){Er(s,r,n,o,u,"next",i)}function u(i){Er(s,r,n,o,u,"throw",i)}o(void 0)})}}function W(l,e){if(!Object.prototype.hasOwnProperty.call(l,e))throw new TypeError("attempted to use private field on non-instance");return l}var Rl=0;function Kt(l){return"__private_"+Rl+++"_"+l}let Cr="https://commentrig.fly.dev";var _e=Kt("_key"),me=Kt("_url"),K=Kt("_returnModel");class Pl{fetchPost(e,t){var r=this;return Qe(function*(){if(!e)return W(r,K)[K](null,"Post Id needed",400);if(!t)return W(r,K)[K](null,"Post Title needed",400);const n=yield fetch(`${W(r,me)[me]}/comments?unique_id=${e}`,{headers:{"License-Key":W(r,_e)[_e]}});if(!n.ok)throw new Error(n.statusText);const s=yield n.json();return s.length>0?W(r,K)[K](s[0],null,200):W(r,K)[K](null,n.statusText,n.status)})()}deleteComment(e,t){var r=this;return Qe(function*(){const n=yield fetch(`${W(r,me)[me]}/comment/delete?id=${e}&email=${t}`,{headers:{"License-Key":W(r,_e)[_e]}});if(!n.ok)throw new Error(n.statusText);return yield n.json()})()}updateComment(e){var t=this;return Qe(function*(){let r=e.id;delete e.id;try{const n=yield fetch(`${W(t,me)[me]}/comment/update?id=${r}`,{method:"POST",headers:{"Content-Type":"application/json","License-Key":W(t,_e)[_e]},body:JSON.stringify(e)});if(!n.ok)return W(t,K)[K](null,n.statusText,n.status);let s=yield n.json();return W(t,K)[K](s,null,n.status)}catch{return!1}})()}createComment(e){var t=this;return Qe(function*(){try{const r=yield fetch(`${W(t,me)[me]}/comment`,{method:"POST",headers:{"Content-Type":"application/json","License-Key":W(t,_e)[_e]},body:JSON.stringify(e)});if(!r.ok)return W(t,K)[K](null,r.statusText,r.status);let n=yield r.json();return W(t,K)[K](n[0],null,r.status)}catch(r){return W(t,K)[K](null,r,500)}})()}createPost(e){var t=this;return Qe(function*(){try{const r=yield fetch(`${W(t,me)[me]}/create/post`,{method:"POST",headers:{"Content-Type":"application/json","License-Key":W(t,_e)[_e]},body:JSON.stringify(e)});if(!r.ok)return W(t,K)[K](null,r.statusText,r.status);let n=yield r.json();return W(t,K)[K](n,null,r.status)}catch(r){return W(t,K)[K](null,r,500)}})()}reportPost(e){var t=this;return Qe(function*(){try{const r=yield fetch(`${W(t,me)[me]}/comment/report`,{method:"POST",headers:{"Content-Type":"application/json","License-Key":W(t,_e)[_e]},body:JSON.stringify(e)});if(!r.ok)return W(t,K)[K](null,r.statusText,r.status);let n=yield r.json();return W(t,K)[K](!0,null,r.status)}catch(r){return W(t,K)[K](null,r,500)}})()}sendOTP(e){var t=this;return Qe(function*(){try{const r=yield fetch(`${W(t,me)[me]}/send_otp`,{method:"POST",headers:{"Content-Type":"application/json","License-Key":W(t,_e)[_e]},body:JSON.stringify({email:e})}),n=yield r.json();return W(t,K)[K](n.message,null,r.status)}catch(r){console.error(r),W(t,K)[K](null,r,response.status)}})()}verifyOTP(e,t){var r=this;return Qe(function*(){try{const n=yield fetch(`${W(r,me)[me]}/verify_otp`,{method:"POST",headers:{"Content-Type":"application/json","License-Key":W(r,_e)[_e]},body:JSON.stringify({email:e,otp:t})}),s=yield n.json();return W(r,K)[K](s.message,null,n.status)}catch(n){console.error(n),W(r,K)[K](null,response.statusText,response.status)}})()}constructor(e){Object.defineProperty(this,K,{value:$l}),Object.defineProperty(this,_e,{writable:!0,value:void 0}),Object.defineProperty(this,me,{writable:!0,value:void 0}),W(this,me)[me]=Cr,W(this,me)[me]=Cr,W(this,_e)[_e]=e}}function $l(l,e,t){return{error:e,status:t,data:l}}const Al="F790404E-7649-48DB-BE97-D6E1CF993902";let Ll=Al,xe=new Pl(Ll),Rn="rigCommentsStore";function Sl(){$t(Rn,Yn([]))}function Wt(){return Et(Rn)}const Ol=l=>{const e={...l,replies:[]};return l.parent_id===null?t=>[e,...t]:t=>{const r=n=>n.map(s=>s.id===l.parent_id?{...s,replies:[e,...(s==null?void 0:s.replies)??[]]}:s.replies&&s.replies.length>0?{...s,replies:r(s.replies)}:s.replies?s:(s.replies=[],{...s,replies:r(s.replies)}));return r(t)}};function Tr(l,e){return Ol(l)(e)}const Vl=(l,e,t=null)=>r=>{const n=s=>s.map(o=>o.id===l?{...o,...e}:o.replies&&o.replies.length>0?{...o,replies:n(o.replies)}:o);return n(r)};function At(l,e,t){return Vl(l,e)(t)}function Dr(l){const e=new Date(l),r=new Date().getTime()-e.getTime(),n=Math.floor(r/1e3),s=Math.floor(n/60),o=Math.floor(s/60),u=Math.floor(o/24),i=Math.floor(u/30.44),a=Math.floor(u/365.25);return n<60?"just now":s<60?`${s} min${s>1?"s":""} ago`:o<24?`${o} hour${o>1?"s":""} ago`:u<=30?`${u} day${u>1?"s":""} ago`:i<12?`${i} month${i>1?"s":""} ago`:`${a} year${a>1?"s":""} ago`}function Ir(l){const e=new Date(l),t=e.getFullYear(),r=e.toLocaleString("default",{month:"short"}),n=String(e.getDate()).padStart(2,"0"),s=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return String(e.getSeconds()).padStart(2,"0"),`${s}:${o} - ${n} ${r}, ${t}`}function zl(l){return l.sort((e,t)=>{const r=new Date(e.created_at),n=new Date(t.created_at);return r>n?-1:r<n?1:0})}function Nl(l){const e=new Map;return zl(l).forEach(r=>{e.set(r.id,r)}),l.forEach(r=>{if(r.parent_id!==null){const n=e.get(r.parent_id);n&&(n.replies||(n.replies=[]),n.replies.unshift(r))}}),Array.from(e.values()).filter(r=>r.parent_id===null)}function Gt(l){let e=0;if(l&&Array.isArray(l)){e+=l.length;for(const t of l)e+=Gt(t)}return e}function jl(){const l=["localhost","127.0.0.1","[::1]"],e=window.location.hostname,t=["dev","development","test","staging"],r=window.location.href.toLowerCase();return t.some(n=>r.includes(n)),l.includes(e)}function Ml(l){try{let e=new URL(Bl(l));const t=Rr(window.location.hostname),r=Rr(e.hostname);return t===r?r:null}catch(e){return console.error("Invalid URL:",e),null}}function Bl(l){return l?(l=l.trim(),/^http:\/\//i.test(l)||/^https:\/\//i.test(l)?l:"https://"+l):""}function Rr(l){const e=l.split(".");return e.length>2?e.slice(-2).join("."):l}function ql(l){if(jl())return null;let e=Ml(l);if(!e)return null;let t=window.location.pathname;const r=e+t;let n=0;for(let o=0;o<r.length;o++){const u=r.charCodeAt(o);n=(n<<5)-n+u,n=n&n}return Math.abs(n).toString(16)}function Hl(l){return[{id:"c1b7f1e8-6e9c-4b3d-8c95-3c96a1a2d2b4",created_at:"2023-05-15 12:34:56.789000+00",updatedAt:"2024-05-15 12:34:56.789000+00",author:"John Doe",content:"This is a top-level comment.",parent_id:null,email:l},{id:"7d4f2b6c-e9b4-4a9b-b7f8-e2c8f6a5d3e1",created_at:"2023-05-15 12:36:12.345000+00",updatedAt:new Date,author:"Jane Smith",content:"This is a reply to the top-level comment.",parent_id:"c1b7f1e8-6e9c-4b3d-8c95-3c96a1a2d2b4"},{id:"9b2c7d4e-f6a5-4b3d-8c95-3c96a1a2d2b4",created_at:"2023-05-15 12:38:24.567000+00",updatedAt:"2023-05-15 12:38:24.567000+00",author:"Bob Johnson",content:"Another reply to the top-level comment.",parent_id:"c1b7f1e8-6e9c-4b3d-8c95-3c96a1a2d2b4"},{id:"6e9c4b3d-8c95-3c96-a1a2-d2b4c1b7f1e8",created_at:"2023-05-15 12:40:00.000000+00",author:"Alice Williams",updatedAt:"2023-05-15 12:40:00.000000+00",content:"This is a reply to the second reply.",email:l,parent_id:"9b2c7d4e-f6a5-4b3d-8c95-3c96a1a2d2b4"},{id:"a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",created_at:"2023-05-15 13:45:00.000000+00",author:"David Thompson",updatedAt:"2023-05-15 13:45:00.000000+00",content:"This is another top-level comment.",parent_id:null}]}function Pn(l){const e=document.createElement("div");e.innerHTML=l;let t=[],r=["BR","STRONG","EM"];function n(s){let o=s.childNodes,u=null;for(let a=0;a<o.length;a++){const d=o[a];if(d.textContent.trim()==""){if(d.firstChild.tagName=="BR"){var i;((i=d.nextElementSibling)==null?void 0:i.textContent.trim())==""&&r.some(h=>{var y;return((y=d.nextElementSibling)==null?void 0:y.firstChild.tagName)==h})||a==o.length-1?t.push(d):u||(u=d)}}else u||(u=!0)}t.forEach(a=>{e.removeChild(a)}),u&&u!==!0&&e.removeChild(u),t=[]}return n(e),e.innerHTML}function Ul(l){const e=[];if(typeof l!="object"||l===null)return e.push("Entities must be an object"),e;"title"in l?typeof l.title!="string"?e.push("title must be a string"):l.title.trim()===""?e.push("title cannot be empty"):l.title.length>100&&e.push("title must be 100 characters or less"):e.push("title is required");const t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;"email"in l?typeof l.email!="string"?e.push("email must be a string"):t.test(l.email)||e.push("email is not a valid email address"):e.push("email is required");const r=/^(https?:\/\/)?(www\.)?([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\.)+[a-zA-Z]{2,}(\/\S*)?$/;return"domain"in l?typeof l.domain!="string"?e.push("domain must be a string"):r.test(l.domain)||e.push("domain is not a valid domain name, example of valid url: https://xyz.com"):e.push("domain is required"),"rich"in l&&typeof l.rich!="boolean"&&e.push("rich must be a boolean"),"page"in l&&(typeof l.page!="number"?e.push("page must be a number"):(!Number.isInteger(l.page)||l.page<1)&&e.push("page must be a positive integer")),"user"in l&&(typeof l.user!="object"||l.user===null?e.push("user must be an object"):(typeof l.user.name!="string"?e.push("user.name must be a string"):l.user.name.trim()===""&&e.push("user.name cannot be empty"),typeof l.user.avathar!="string"?e.push("user.avathar must be a string"):l.user.avathar.trim()===""?e.push("user.avathar cannot be empty"):l.user.avathar.startsWith("http")||e.push("user.avathar must be a valid URL"),typeof l.user.email!="string"?e.push("user.email must be a string"):t.test(l.user.email)||e.push("user.email is not a valid email address"))),e}function Pr(l){let e,t,r,n,s,o,u;function i(h,y){return h[6]?Fl:Gl}let a=i(l),d=a(l);return{c(){e=p("div"),t=p("div"),d.c(),r=N(),n=p("span"),s=re(l[2]),this.h()},l(h){e=_(h,"DIV",{class:!0});var y=g(e);t=_(y,"DIV",{class:!0});var V=g(t);d.l(V),V.forEach(c),r=j(y),n=_(y,"SPAN",{class:!0});var $=g(n);s=ne($,l[2]),$.forEach(c),y.forEach(c),this.h()},h(){f(t,"class","author-avatar svelte-1vl90p3"),f(n,"class","author-name svelte-1vl90p3"),f(e,"class","author-info svelte-1vl90p3")},m(h,y){L(h,e,y),m(e,t),d.m(t,null),m(e,r),m(e,n),m(n,s),u=!0},p(h,y){a===(a=i(h))&&d?d.p(h,y):(d.d(1),d=a(h),d&&(d.c(),d.m(t,null))),(!u||y&4)&&Be(s,h[2])},i(h){u||(h&&ft(()=>{u&&(o||(o=kr(e,Dt,{},!0)),o.run(1))}),u=!0)},o(h){h&&(o||(o=kr(e,Dt,{},!1)),o.run(0)),u=!1},d(h){h&&c(e),d.d(),h&&o&&o.end()}}}function Gl(l){var r;let e=((r=l[2])==null?void 0:r.slice(0,2))+"",t;return{c(){t=re(e)},l(n){t=ne(n,e)},m(n,s){L(n,t,s)},p(n,s){var o;s&4&&e!==(e=((o=n[2])==null?void 0:o.slice(0,2))+"")&&Be(t,e)},d(n){n&&c(t)}}}function Fl(l){let e,t;return{c(){e=p("img"),this.h()},l(r){e=_(r,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){Ut(e.src,t=l[6])||f(e,"src",t),f(e,"alt",""),f(e,"class","svelte-1vl90p3")},m(r,n){L(r,e,n)},p(r,n){n&64&&!Ut(e.src,t=r[6])&&f(e,"src",t)},d(r){r&&c(e)}}}function Jl(l){let e,t,r,n;return{c(){e=p("textarea"),this.h()},l(s){e=_(s,"TEXTAREA",{class:!0,placeholder:!0}),g(e).forEach(c),this.h()},h(){f(e,"class","comment-textarea svelte-1vl90p3"),f(e,"placeholder",t=l[0]?"Write a reply..":"Write a comment...")},m(s,o){L(s,e,o),Se(e,l[1]),l[20](e),r||(n=[le(e,"input",l[19]),le(e,"input",l[14])],r=!0)},p(s,o){o&1&&t!==(t=s[0]?"Write a reply..":"Write a comment...")&&f(e,"placeholder",t),o&2&&Se(e,s[1])},i:F,o:F,d(s){s&&c(e),l[20](null),r=!1,qe(n)}}}function Kl(l){let e,t,r,n,s;function o(a){l[17](a)}function u(a){l[18](a)}let i={};return l[9]!==void 0&&(i.editor=l[9]),l[1]!==void 0&&(i.content=l[1]),t=new Dn({props:i}),et.push(()=>Tt(t,"editor",o)),et.push(()=>Tt(t,"content",u)),{c(){e=p("div"),Z(t.$$.fragment),this.h()},l(a){e=_(a,"DIV",{class:!0});var d=g(e);ee(t.$$.fragment,d),d.forEach(c),this.h()},h(){f(e,"class","rich-text-container svelte-1vl90p3")},m(a,d){L(a,e,d),Q(t,e,null),s=!0},p(a,d){const h={};!r&&d&512&&(r=!0,h.editor=a[9],Ct(()=>r=!1)),!n&&d&2&&(n=!0,h.content=a[1],Ct(()=>n=!1)),t.$set(h)},i(a){s||(w(t.$$.fragment,a),s=!0)},o(a){R(t.$$.fragment,a),s=!1},d(a){a&&c(e),x(t)}}}function $r(l){let e;function t(s,o){return s[4]?Xl:Wl}let r=t(l),n=r(l);return{c(){n.c(),e=ie()},l(s){n.l(s),e=ie()},m(s,o){n.m(s,o),L(s,e,o)},p(s,o){r===(r=t(s))&&n?n.p(s,o):(n.d(1),n=r(s),n&&(n.c(),n.m(e.parentNode,e)))},d(s){s&&c(e),n.d(s)}}}function Wl(l){let e,t,r,n,s,o;return{c(){e=p("div"),t=p("input"),r=N(),n=p("input"),this.h()},l(u){e=_(u,"DIV",{class:!0});var i=g(e);t=_(i,"INPUT",{type:!0,placeholder:!0,class:!0}),r=j(i),n=_(i,"INPUT",{type:!0,placeholder:!0,class:!0}),i.forEach(c),this.h()},h(){f(t,"type","text"),f(t,"placeholder","Name"),t.required=!0,f(t,"class","name-input svelte-1vl90p3"),f(n,"type","email"),f(n,"placeholder","email "),f(n,"class","email-input svelte-1vl90p3"),f(e,"class","author-inputs svelte-1vl90p3")},m(u,i){L(u,e,i),m(e,t),Se(t,l[2]),m(e,r),m(e,n),Se(n,l[3]),s||(o=[le(t,"input",l[22]),le(n,"input",l[23])],s=!0)},p(u,i){i&4&&t.value!==u[2]&&Se(t,u[2]),i&8&&n.value!==u[3]&&Se(n,u[3])},d(u){u&&c(e),s=!1,qe(o)}}}function Xl(l){let e,t,r;return{c(){e=p("input"),this.h()},l(n){e=_(n,"INPUT",{type:!0,placeholder:!0,class:!0}),this.h()},h(){f(e,"type","number"),f(e,"placeholder","OTP"),e.required=!0,f(e,"class","name-input svelte-1vl90p3")},m(n,s){L(n,e,s),Se(e,l[5]),t||(r=le(e,"input",l[21]),t=!0)},p(n,s){s&32&&hn(e.value)!==n[5]&&Se(e,n[5])},d(n){n&&c(e),t=!1,r()}}}function Ar(l){let e,t="Dismiss",r,n;return{c(){e=p("button"),e.textContent=t,this.h()},l(s){e=_(s,"BUTTON",{class:!0,type:!0,"data-svelte-h":!0}),he(e)!=="svelte-1tdyge3"&&(e.textContent=t),this.h()},h(){f(e,"class","dismiss-button svelte-1vl90p3"),f(e,"type","button")},m(s,o){L(s,e,o),r||(n=le(e,"click",function(){mn(l[0])&&l[0].apply(this,arguments)}),r=!0)},p(s,o){l=s},d(s){s&&c(e),r=!1,n()}}}function Lr(l){let e,t="...";return{c(){e=p("span"),e.textContent=t,this.h()},l(r){e=_(r,"SPAN",{class:!0,"data-svelte-h":!0}),he(e)!=="svelte-dfr08o"&&(e.textContent=t),this.h()},h(){f(e,"class","leader svelte-1vl90p3")},m(r,n){L(r,e,n)},d(r){r&&c(e)}}}function Yl(l){let e,t,r,n,s,o,u,i,a,d=l[4]?"Verify Email":l[0]?"Reply":"Comment",h,y,V,$,M,I,q,E=l[8]&&!l[0]&&Pr(l);const C=[Kl,Jl],T=[];function D(k,v){return k[13]?0:1}r=D(l),n=T[r]=C[r](l);let b=!l[8]&&$r(l),A=l[0]&&Ar(l),O=l[7]&&Lr();return{c(){e=p("form"),E&&E.c(),t=N(),n.c(),s=N(),b&&b.c(),o=N(),u=p("div"),A&&A.c(),i=N(),a=p("button"),h=re(d),y=N(),O&&O.c(),this.h()},l(k){e=_(k,"FORM",{class:!0});var v=g(e);E&&E.l(v),t=j(v),n.l(v),s=j(v),b&&b.l(v),o=j(v),u=_(v,"DIV",{class:!0});var z=g(u);A&&A.l(z),i=j(z),a=_(z,"BUTTON",{class:!0,"aria-busy":!0,type:!0});var G=g(a);h=ne(G,d),y=j(G),O&&O.l(G),G.forEach(c),z.forEach(c),v.forEach(c),this.h()},h(){f(a,"class","submit-button svelte-1vl90p3"),a.disabled=V=!l[1]||l[7],f(a,"aria-busy",l[7]),f(a,"type","submit"),f(u,"class","button-group svelte-1vl90p3"),f(e,"class","comment-form svelte-1vl90p3")},m(k,v){L(k,e,v),E&&E.m(e,null),m(e,t),T[r].m(e,null),m(e,s),b&&b.m(e,null),m(e,o),m(e,u),A&&A.m(u,null),m(u,i),m(u,a),m(a,h),m(a,y),O&&O.m(a,null),M=!0,I||(q=le(e,"submit",zn(l[12])),I=!0)},p(k,[v]){k[8]&&!k[0]?E?(E.p(k,v),v&257&&w(E,1)):(E=Pr(k),E.c(),w(E,1),E.m(e,t)):E&&(fe(),R(E,1,1,()=>{E=null}),ce()),n.p(k,v),k[8]?b&&(b.d(1),b=null):b?b.p(k,v):(b=$r(k),b.c(),b.m(e,o)),k[0]?A?A.p(k,v):(A=Ar(k),A.c(),A.m(u,i)):A&&(A.d(1),A=null),(!M||v&17)&&d!==(d=k[4]?"Verify Email":k[0]?"Reply":"Comment")&&Be(h,d),k[7]?O||(O=Lr(),O.c(),O.m(a,null)):O&&(O.d(1),O=null),(!M||v&130&&V!==(V=!k[1]||k[7]))&&(a.disabled=V),(!M||v&128)&&f(a,"aria-busy",k[7])},i(k){M||(w(E),w(n),k&&($||ft(()=>{$=ht(e,Jt,{y:50}),$.start()})),M=!0)},o(k){R(E),R(n),M=!1},d(k){k&&c(e),E&&E.d(),T[r].d(),b&&b.d(),A&&A.d(),O&&O.d(),I=!1,q()}}}function Zl(l,e,t){let r;const n=Ft();let s=Wt();St(l,s,S=>t(25,r=S));let{isReply:o}=e,{parent_id:u}=e,{post_uuid:i}=e,a="",d="",h="",y=!1,V,$,M=!1,I;async function q(){if(t(7,M=!0),y){const{data:ae,error:te,status:J}=await xe.verifyOTP(h,parseInt(V));if(ae){t(4,y=!1);let be=yl({author:d,email:h});I={author:d,email:h},be&&h&&d&&t(8,E=!0)}else{console.log(te),t(7,M=!1);return}}else if(!I&&!(b!=null&&b.name&&(b!=null&&b.email))){const{data:ae,error:te,status:J}=await xe.sendOTP(h);ae?t(4,y=!0):console.log(te),t(7,M=!1);return}t(2,d=d.trim()),t(3,h=h.trim());let S={author:d??"Anonymos",content:D?Pn(a):a.trim(),email:h??null,parent_id:u,post_id:i,avathar:$??null};if(In(a)){t(7,M=!1);return}else if(!i){S.id=new Date().toISOString(),S.created_at=new Date,S.updatedAt=S.created_at,n("commentAdded",S),ut(s,r=Tr(S,r),r),t(1,a=""),C&&(C.querySelector(".ql-editor").innerHTML=""),T&&t(10,T.style.height="180px",T),t(7,M=!1);return}const{data:Y,error:de}=await xe.createComment(S);de?console.error("Error adding comment:",de):(n("commentAdded",Y),ut(s,r=Tr(Y,r),r),t(1,a=""),C&&(C.querySelector(".ql-editor").innerHTML=""),T&&t(10,T.style.height="80px",T)),t(7,M=!1)}let E=!1,C,T,D=Et("richText"),b=Et("imported-user");function A(){const S=window.getComputedStyle(T),Y=parseInt(S.paddingTop,10),de=parseInt(S.paddingBottom,10);T.scrollHeight>180&&(t(10,T.style.minHeight="180px",T),t(10,T.style.height="auto",T),t(10,T.style.height=`${T.scrollHeight+Y+de}px`,T))}Ot(()=>{if(b!=null&&b.email&&(b!=null&&b.name)){t(8,E=!0),t(2,d=b.name),t(3,h=b.email),t(6,$=b.avathar);return}I=Tn(),I&&(t(2,d=I==null?void 0:I.author),t(3,h=I==null?void 0:I.email),d&&h&&t(8,E=!0))});function O(S){C=S,t(9,C)}function k(S){a=S,t(1,a)}function v(){a=this.value,t(1,a)}function z(S){et[S?"unshift":"push"](()=>{T=S,t(10,T)})}function G(){V=hn(this.value),t(5,V)}function P(){d=this.value,t(2,d)}function B(){h=this.value,t(3,h)}return l.$$set=S=>{"isReply"in S&&t(0,o=S.isReply),"parent_id"in S&&t(15,u=S.parent_id),"post_uuid"in S&&t(16,i=S.post_uuid)},[o,a,d,h,y,V,$,M,E,C,T,s,q,D,A,u,i,O,k,v,z,G,P,B]}class $n extends Ee{constructor(e){super(),Ce(this,e,Zl,Yl,ge,{isReply:0,parent_id:15,post_uuid:16})}}function Ql(l){let e,t,r,n;return{c(){e=se("svg"),t=se("circle"),r=se("circle"),n=se("circle"),this.h()},l(s){e=oe(s,"svg",{xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var o=g(e);t=oe(o,"circle",{cx:!0,cy:!0,r:!0}),g(t).forEach(c),r=oe(o,"circle",{cx:!0,cy:!0,r:!0}),g(r).forEach(c),n=oe(o,"circle",{cx:!0,cy:!0,r:!0}),g(n).forEach(c),o.forEach(c),this.h()},h(){f(t,"cx","12"),f(t,"cy","12"),f(t,"r","1"),f(r,"cx","19"),f(r,"cy","12"),f(r,"r","1"),f(n,"cx","5"),f(n,"cy","12"),f(n,"r","1"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width",l[0]),f(e,"height",l[0]),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","lucide lucide-ellipsis")},m(s,o){L(s,e,o),m(e,t),m(e,r),m(e,n)},p(s,[o]){o&1&&f(e,"width",s[0]),o&1&&f(e,"height",s[0])},i:F,o:F,d(s){s&&c(e)}}}function xl(l,e,t){let{size:r}=e;return l.$$set=n=>{"size"in n&&t(0,r=n.size)},[r]}class es extends Ee{constructor(e){super(),Ce(this,e,xl,Ql,ge,{size:0})}}function Sr(l){let e,t,r,n;const s=l[5].default,o=Nn(s,l,l[4],null);return{c(){e=p("div"),o&&o.c(),this.h()},l(u){e=_(u,"DIV",{class:!0});var i=g(e);o&&o.l(i),i.forEach(c),this.h()},h(){f(e,"class","menu-dropdown svelte-9oy39u")},m(u,i){L(u,e,i),o&&o.m(e,null),t=!0,r||(n=[fn(Il.call(null,e)),le(e,"click_outside",l[3])],r=!0)},p(u,i){o&&o.p&&(!t||i&16)&&jn(o,s,u,u[4],t?Bn(s,u[4],i,null):Mn(u[4]),null)},i(u){t||(w(o,u),t=!0)},o(u){R(o,u),t=!1},d(u){u&&c(e),o&&o.d(u),r=!1,qe(n)}}}function ts(l){let e,t,r,n,s,o,u;r=new es({props:{size:14}});let i=l[1]&&!l[0]&&Sr(l);return{c(){e=p("div"),t=p("button"),Z(r.$$.fragment),n=N(),i&&i.c(),this.h()},l(a){e=_(a,"DIV",{class:!0});var d=g(e);t=_(d,"BUTTON",{class:!0});var h=g(t);ee(r.$$.fragment,h),h.forEach(c),n=j(d),i&&i.l(d),d.forEach(c),this.h()},h(){t.disabled=l[0],f(t,"class","comment-container-button dropdown-button svelte-9oy39u"),f(e,"class","body svelte-9oy39u")},m(a,d){L(a,e,d),m(e,t),Q(r,t,null),m(e,n),i&&i.m(e,null),s=!0,o||(u=le(t,"click",l[2]),o=!0)},p(a,[d]){(!s||d&1)&&(t.disabled=a[0]),a[1]&&!a[0]?i?(i.p(a,d),d&3&&w(i,1)):(i=Sr(a),i.c(),w(i,1),i.m(e,null)):i&&(fe(),R(i,1,1,()=>{i=null}),ce())},i(a){s||(w(r.$$.fragment,a),w(i),s=!0)},o(a){R(r.$$.fragment,a),R(i),s=!1},d(a){a&&c(e),x(r),i&&i.d(),o=!1,u()}}}function rs(l,e,t){let{$$slots:r={},$$scope:n}=e,s=!1;function o(){t(1,s=!s)}function u(){t(1,s=!1)}let{inactive:i=!1}=e;return l.$$set=a=>{"inactive"in a&&t(0,i=a.inactive),"$$scope"in a&&t(4,n=a.$$scope)},[i,s,o,u,n,r]}class ns extends Ee{constructor(e){super(),Ce(this,e,rs,ts,ge,{inactive:0})}}function ls(l){let e,t,r,n;return{c(){e=se("svg"),t=se("circle"),r=se("path"),n=se("path"),this.h()},l(s){e=oe(s,"svg",{xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var o=g(e);t=oe(o,"circle",{cx:!0,cy:!0,r:!0}),g(t).forEach(c),r=oe(o,"path",{d:!0}),g(r).forEach(c),n=oe(o,"path",{d:!0}),g(n).forEach(c),o.forEach(c),this.h()},h(){f(t,"cx","12"),f(t,"cy","12"),f(t,"r","10"),f(r,"d","M12 16v-4"),f(n,"d","M12 8h.01"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width",l[0]),f(e,"height",l[0]),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","lucide lucide-info")},m(s,o){L(s,e,o),m(e,t),m(e,r),m(e,n)},p(s,[o]){o&1&&f(e,"width",s[0]),o&1&&f(e,"height",s[0])},i:F,o:F,d(s){s&&c(e)}}}function ss(l,e,t){let{size:r=24}=e;return l.$$set=n=>{"size"in n&&t(0,r=n.size)},[r]}class os extends Ee{constructor(e){super(),Ce(this,e,ss,ls,ge,{size:0})}}function Or(l,e,t){const r=l.slice();return r[16]=e[t],r}function Vr(l){let e,t,r,n,s=!l[4]&&zr(),o=l[4]&&Nr(l),u=l[1]&&jr(l);return{c(){e=p("li"),s&&s.c(),t=N(),o&&o.c(),r=N(),u&&u.c(),this.h()},l(i){e=_(i,"LI",{class:!0});var a=g(e);s&&s.l(a),t=j(a),o&&o.l(a),r=j(a),u&&u.l(a),a.forEach(c),this.h()},h(){f(e,"class","report-item svelte-18hogfg")},m(i,a){L(i,e,a),s&&s.m(e,null),m(e,t),o&&o.m(e,null),m(e,r),u&&u.m(e,null),n=!0},p(i,a){i[4]?s&&(fe(),R(s,1,1,()=>{s=null}),ce()):s?a&16&&w(s,1):(s=zr(),s.c(),w(s,1),s.m(e,t)),i[4]?o?(o.p(i,a),a&16&&w(o,1)):(o=Nr(i),o.c(),w(o,1),o.m(e,r)):o&&(fe(),R(o,1,1,()=>{o=null}),ce()),i[1]?u?(u.p(i,a),a&2&&w(u,1)):(u=jr(i),u.c(),w(u,1),u.m(e,null)):u&&(fe(),R(u,1,1,()=>{u=null}),ce())},i(i){n||(w(s),w(o),w(u),n=!0)},o(i){R(s),R(o),R(u),n=!1},d(i){i&&c(e),s&&s.d(),o&&o.d(),u&&u.d()}}}function zr(l){let e,t,r,n;return t=new os({props:{size:16}}),{c(){e=p("div"),Z(t.$$.fragment),r=re(" Report This Commment"),this.h()},l(s){e=_(s,"DIV",{class:!0});var o=g(e);ee(t.$$.fragment,o),r=ne(o," Report This Commment"),o.forEach(c),this.h()},h(){f(e,"class","report-button svelte-18hogfg")},m(s,o){L(s,e,o),Q(t,e,null),m(e,r),n=!0},i(s){n||(w(t.$$.fragment,s),n=!0)},o(s){R(t.$$.fragment,s),n=!1},d(s){s&&c(e),x(t)}}}function Nr(l){let e,t,r,n,s,o,u,i;return n=new pl({}),{c(){e=p("div"),t=re(`Report Recorded

				`),r=p("button"),Z(n.$$.fragment),this.h()},l(a){e=_(a,"DIV",{class:!0});var d=g(e);t=ne(d,`Report Recorded

				`),r=_(d,"BUTTON",{});var h=g(r);ee(n.$$.fragment,h),h.forEach(c),d.forEach(c),this.h()},h(){f(e,"class","report-recorded svelte-18hogfg")},m(a,d){L(a,e,d),m(e,t),m(e,r),Q(n,r,null),o=!0,u||(i=le(r,"click",l[8]),u=!0)},p:F,i(a){o||(w(n.$$.fragment,a),a&&(s||ft(()=>{s=ht(e,Jt,{y:20}),s.start()})),o=!0)},o(a){R(n.$$.fragment,a),o=!1},d(a){a&&c(e),x(n),u=!1,i()}}}function jr(l){let e,t,r,n,s,o="Reason (Optional)",u,i,a,d,h,y="Cancel",V,$,M,I,q,E,C,T,D,b=tt(l[6]),A=[];for(let k=0;k<b.length;k+=1)A[k]=Mr(Or(l,b,k));let O=l[0]&&Br();return{c(){e=p("div"),t=p("div");for(let k=0;k<A.length;k+=1)A[k].c();r=N(),n=p("div"),s=p("label"),s.textContent=o,u=N(),i=p("textarea"),a=N(),d=p("div"),h=p("button"),h.textContent=y,V=N(),$=p("button"),O&&O.c(),M=re(`

						Submit Report`),this.h()},l(k){e=_(k,"DIV",{class:!0});var v=g(e);t=_(v,"DIV",{class:!0});var z=g(t);for(let S=0;S<A.length;S+=1)A[S].l(z);z.forEach(c),r=j(v),n=_(v,"DIV",{class:!0});var G=g(n);s=_(G,"LABEL",{class:!0,"data-svelte-h":!0}),he(s)!=="svelte-jcdqsb"&&(s.textContent=o),u=j(G),i=_(G,"TEXTAREA",{class:!0,rows:!0}),g(i).forEach(c),G.forEach(c),a=j(v),d=_(v,"DIV",{class:!0});var P=g(d);h=_(P,"BUTTON",{class:!0,"data-svelte-h":!0}),he(h)!=="svelte-1oh8i2d"&&(h.textContent=y),V=j(P),$=_(P,"BUTTON",{class:!0});var B=g($);O&&O.l(B),M=ne(B,`

						Submit Report`),B.forEach(c),P.forEach(c),v.forEach(c),this.h()},h(){f(t,"class","flag-container svelte-18hogfg"),f(s,"class","reason-label svelte-18hogfg"),f(i,"class","reason-textarea svelte-18hogfg"),f(i,"rows","2"),f(n,"class","reason-container svelte-18hogfg"),f(h,"class","cancel-button comment-container-button svelte-18hogfg"),$.disabled=I=!l[2]||l[0],f($,"class","submit-button comment-container-button svelte-18hogfg"),f(d,"class","button-container svelte-18hogfg"),f(e,"class","report-modal")},m(k,v){L(k,e,v),m(e,t);for(let z=0;z<A.length;z+=1)A[z]&&A[z].m(t,null);m(e,r),m(e,n),m(n,s),m(n,u),m(n,i),Se(i,l[3]),m(e,a),m(e,d),m(d,h),m(d,V),m(d,$),O&&O.m($,null),m($,M),C=!0,T||(D=[le(i,"input",l[13]),le(h,"click",l[8]),le($,"click",l[7])],T=!0)},p(k,v){if(v&68){b=tt(k[6]);let z;for(z=0;z<b.length;z+=1){const G=Or(k,b,z);A[z]?A[z].p(G,v):(A[z]=Mr(G),A[z].c(),A[z].m(t,null))}for(;z<A.length;z+=1)A[z].d(1);A.length=b.length}v&8&&Se(i,k[3]),k[0]?O?v&1&&w(O,1):(O=Br(),O.c(),w(O,1),O.m($,M)):O&&(fe(),R(O,1,1,()=>{O=null}),ce()),(!C||v&5&&I!==(I=!k[2]||k[0]))&&($.disabled=I)},i(k){C||(w(O),k&&ft(()=>{C&&(E&&E.end(1),q=ht(e,Dt,{axis:"y",duration:150}),q.start())}),C=!0)},o(k){R(O),q&&q.invalidate(),k&&(E=_n(e,Dt,{axis:"y",duration:50})),C=!1},d(k){k&&c(e),pn(A,k),O&&O.d(),k&&E&&E.end(),T=!1,qe(D)}}}function Mr(l){let e,t,r,n,s=l[16]+"",o,u,i,a,d;return i=qn(l[12][0]),{c(){e=p("label"),t=p("input"),r=N(),n=p("span"),o=re(s),u=N(),this.h()},l(h){e=_(h,"LABEL",{class:!0});var y=g(e);t=_(y,"INPUT",{type:!0,class:!0}),r=j(y),n=_(y,"SPAN",{class:!0});var V=g(n);o=ne(V,s),V.forEach(c),u=j(y),y.forEach(c),this.h()},h(){f(t,"type","radio"),t.__value=l[16],Se(t,t.__value),f(t,"class","flag-radio svelte-18hogfg"),f(n,"class","flag-text svelte-18hogfg"),f(e,"class","flag-label svelte-18hogfg"),i.p(t)},m(h,y){L(h,e,y),m(e,t),t.checked=t.__value===l[2],m(e,r),m(e,n),m(n,o),m(e,u),a||(d=le(t,"change",l[11]),a=!0)},p(h,y){y&4&&(t.checked=t.__value===h[2])},d(h){h&&c(e),i.r(),a=!1,d()}}}function Br(l){let e,t,r;return t=new yn({props:{size:16,class:"animate-spin"}}),{c(){e=p("span"),Z(t.$$.fragment),this.h()},l(n){e=_(n,"SPAN",{class:!0});var s=g(e);ee(t.$$.fragment,s),s.forEach(c),this.h()},h(){f(e,"class","spinner-container")},m(n,s){L(n,e,s),Q(t,e,null),r=!0},i(n){r||(w(t.$$.fragment,n),r=!0)},o(n){R(t.$$.fragment,n),r=!1},d(n){n&&c(e),x(t)}}}function is(l){let e,t,r=!l[5]&&Vr(l);return{c(){r&&r.c(),e=ie()},l(n){r&&r.l(n),e=ie()},m(n,s){r&&r.m(n,s),L(n,e,s),t=!0},p(n,[s]){n[5]?r&&(fe(),R(r,1,1,()=>{r=null}),ce()):r?(r.p(n,s),s&32&&w(r,1)):(r=Vr(n),r.c(),w(r,1),r.m(e.parentNode,e))},i(n){t||(w(r),t=!0)},o(n){R(r),t=!1},d(n){n&&c(e),r&&r.d(n)}}}function as(l,e,t){let{post_uuid:r}=e,{id:n}=e,s=!1,o=!0,u=null,i="";const a=["Spam or misleading","Violence or harmful content","Hate speech or discrimination","Intellectual property violation","Other"];let d=!1;function h(){t(1,o=!1),t(2,u=null),t(3,i="")}async function y(){t(0,s=!0);let{data:E,error:C,status:T}=await xe.reportPost({comment_id:n,post_id:r,flag:u,reason:i});E&&(t(4,d=!0),t(0,s=!1),h())}let V=!1;function $(){t(5,V=!0)}const M=[[]];function I(){u=this.__value,t(2,u)}function q(){i=this.value,t(3,i)}return l.$$set=E=>{"post_uuid"in E&&t(9,r=E.post_uuid),"id"in E&&t(10,n=E.id)},[s,o,u,i,d,V,a,y,$,r,n,I,M,q]}class us extends Ee{constructor(e){super(),Ce(this,e,as,is,ge,{post_uuid:9,id:10})}}function fs(l){let e,t,r;return{c(){e=p("textarea"),this.h()},l(n){e=_(n,"TEXTAREA",{class:!0,placeholder:!0}),g(e).forEach(c),this.h()},h(){f(e,"class","custom-textarea svelte-mnu57r"),f(e,"placeholder","Edit Content ...")},m(n,s){L(n,e,s),Se(e,l[0]),l[4](e),t||(r=[le(e,"input",l[3]),le(e,"input",l[2])],t=!0)},p(n,[s]){s&1&&Se(e,n[0])},i:F,o:F,d(n){n&&c(e),l[4](null),t=!1,qe(r)}}}function cs(l,e,t){let{content:r}=e,n;function s(){const i=window.getComputedStyle(n),a=parseInt(i.paddingTop,10),d=parseInt(i.paddingBottom,10);t(1,n.style.height="auto",n),t(1,n.style.height=`${n.scrollHeight+a+d}px`,n)}function o(){r=this.value,t(0,r)}function u(i){et[i?"unshift":"push"](()=>{n=i,t(1,n)})}return l.$$set=i=>{"content"in i&&t(0,r=i.content)},l.$$.update=()=>{l.$$.dirty&2&&n&&s()},[r,n,s,o,u]}class ds extends Ee{constructor(e){super(),Ce(this,e,cs,fs,ge,{content:0})}}function An(l,{from:e,to:t},r={}){const n=getComputedStyle(l),s=n.transform==="none"?"":n.transform,[o,u]=n.transformOrigin.split(" ").map(parseFloat),i=e.left+e.width*o/t.width-(t.left+o),a=e.top+e.height*u/t.height-(t.top+u),{delay:d=0,duration:h=V=>Math.sqrt(V)*120,easing:y=bn}=r;return{delay:d,duration:mn(h)?h(Math.sqrt(i*i+a*a)):h,easing:y,css:(V,$)=>{const M=$*i,I=$*a,q=V+$*e.width/t.width,E=V+$*e.height/t.height;return`transform: ${s} translate(${M}px, ${I}px) scale(${q}, ${E});`}}}function qr(l,e,t){const r=l.slice();return r[47]=e[t],r}function ms(l){let e;return{c(){e=p("div"),this.h()},l(t){e=_(t,"DIV",{class:!0}),g(e).forEach(c),this.h()},h(){f(e,"class","author-avatar svelte-4oua7z")},m(t,r){L(t,e,r)},p:F,d(t){t&&c(e)}}}function hs(l){let e,t,r;return{c(){e=p("div"),t=p("img"),this.h()},l(n){e=_(n,"DIV",{class:!0});var s=g(e);t=_(s,"IMG",{src:!0,alt:!0,class:!0}),s.forEach(c),this.h()},h(){Ut(t.src,r=l[30])||f(t,"src",r),f(t,"alt",""),f(t,"class","svelte-4oua7z"),f(e,"class","author-avatar svelte-4oua7z")},m(n,s){L(n,e,s),m(e,t)},p:F,d(n){n&&c(e)}}}function ps(l){let e,t,r,n,s,o,u=Ir(l[6])+"",i,a,d,h,y,V,$,M,I,q="dismiss",E,C,T,D,b,A,O,k,v=l[6]!=l[21]&&Hr();const z=[vs,gs],G=[];function P(B,S){return B[27]?0:1}return y=P(l),V=G[y]=z[y](l),{c(){e=p("div"),t=p("div"),r=p("span"),n=re(l[18]),s=N(),o=p("span"),i=re(u),a=N(),v&&v.c(),d=N(),h=p("div"),V.c(),$=N(),M=p("div"),I=p("button"),I.textContent=q,E=N(),C=p("button"),T=re("Done"),this.h()},l(B){e=_(B,"DIV",{class:!0});var S=g(e);t=_(S,"DIV",{class:!0});var Y=g(t);r=_(Y,"SPAN",{class:!0});var de=g(r);n=ne(de,l[18]),de.forEach(c),s=j(Y),o=_(Y,"SPAN",{class:!0});var ae=g(o);i=ne(ae,u),ae.forEach(c),a=j(Y),v&&v.l(Y),Y.forEach(c),d=j(S),h=_(S,"DIV",{class:!0});var te=g(h);V.l(te),$=j(te),M=_(te,"DIV",{class:!0});var J=g(M);I=_(J,"BUTTON",{class:!0,"data-svelte-h":!0}),he(I)!=="svelte-1kd3y0a"&&(I.textContent=q),E=j(J),C=_(J,"BUTTON",{class:!0});var be=g(C);T=ne(be,"Done"),be.forEach(c),J.forEach(c),te.forEach(c),S.forEach(c),this.h()},h(){f(r,"class","author-name svelte-4oua7z"),f(o,"class","comment-date svelte-4oua7z"),f(t,"class","author-info svelte-4oua7z"),f(I,"class","edit-button-dismiss comment-container-button svelte-4oua7z"),f(C,"class","edit-button-done comment-container-button svelte-4oua7z"),C.disabled=D=!l[5]||l[5]==l[1].content,f(M,"class","edit-action-group svelte-4oua7z"),f(h,"class","edit-container svelte-4oua7z"),f(e,"class","flex flex-col gap-1")},m(B,S){L(B,e,S),m(e,t),m(t,r),m(r,n),m(t,s),m(t,o),m(o,i),m(t,a),v&&v.m(t,null),m(e,d),m(e,h),G[y].m(h,null),m(h,$),m(h,M),m(M,I),m(M,E),m(M,C),m(C,T),A=!0,O||(k=[le(I,"click",l[39]),le(C,"click",l[26])],O=!0)},p(B,S){(!A||S[0]&64)&&u!==(u=Ir(B[6])+"")&&Be(i,u),B[6]!=B[21]?v?S[0]&64&&w(v,1):(v=Hr(),v.c(),w(v,1),v.m(t,null)):v&&(fe(),R(v,1,1,()=>{v=null}),ce()),V.p(B,S),(!A||S[0]&34&&D!==(D=!B[5]||B[5]==B[1].content))&&(C.disabled=D)},i(B){A||(w(v),w(V),B&&(b||ft(()=>{b=ht(h,Jt,{y:10}),b.start()})),A=!0)},o(B){R(v),R(V),A=!1},d(B){B&&c(e),v&&v.d(),G[y].d(),O=!1,qe(k)}}}function _s(l){let e,t,r,n,s,o,u,i=Dr(l[6])+"",a,d,h,y,V,$,M,I,q,E,C,T,D=(l[20]==l[2]||l[1].isAuthor)&&Ur(),b=l[6]!=l[21]&&Gr();y=new ns({props:{inactive:l[17],$$slots:{default:[Es]},$$scope:{ctx:l}}});function A(P,B){return P[17]?Cs:Ts}let O=A(l),k=O(l),v=!l[9]&&Jr(l),z=l[10].length>0&&Kr(l),G=l[16]&&Wr(l);return{c(){e=p("div"),t=p("span"),r=p("span"),n=re(l[18]),s=N(),D&&D.c(),o=N(),u=p("span"),a=re(i),d=N(),b&&b.c(),h=N(),Z(y.$$.fragment),V=N(),$=p("p"),k.c(),M=N(),I=p("div"),v&&v.c(),q=N(),z&&z.c(),E=N(),G&&G.c(),C=ie(),this.h()},l(P){e=_(P,"DIV",{class:!0});var B=g(e);t=_(B,"SPAN",{class:!0});var S=g(t);r=_(S,"SPAN",{class:!0});var Y=g(r);n=ne(Y,l[18]),Y.forEach(c),s=j(S),D&&D.l(S),o=j(S),u=_(S,"SPAN",{class:!0});var de=g(u);a=ne(de,i),de.forEach(c),d=j(S),b&&b.l(S),S.forEach(c),h=j(B),ee(y.$$.fragment,B),B.forEach(c),V=j(P),$=_(P,"P",{class:!0});var ae=g($);k.l(ae),ae.forEach(c),M=j(P),I=_(P,"DIV",{class:!0});var te=g(I);v&&v.l(te),q=j(te),z&&z.l(te),te.forEach(c),E=j(P),G&&G.l(P),C=ie(),this.h()},h(){f(r,"class","author-name svelte-4oua7z"),f(u,"class","comment-date svelte-4oua7z"),f(t,"class","author-info svelte-4oua7z"),f(e,"class","comment-header svelte-4oua7z"),f($,"class","comment-text svelte-4oua7z"),at($,"comment-disabled",l[17]),f(I,"class","comment-actions svelte-4oua7z")},m(P,B){L(P,e,B),m(e,t),m(t,r),m(r,n),m(t,s),D&&D.m(t,null),m(t,o),m(t,u),m(u,a),m(t,d),b&&b.m(t,null),m(e,h),Q(y,e,null),L(P,V,B),L(P,$,B),k.m($,null),L(P,M,B),L(P,I,B),v&&v.m(I,null),m(I,q),z&&z.m(I,null),L(P,E,B),G&&G.m(P,B),L(P,C,B),T=!0},p(P,B){P[20]==P[2]||P[1].isAuthor?D||(D=Ur(),D.c(),D.m(t,o)):D&&(D.d(1),D=null),(!T||B[0]&64)&&i!==(i=Dr(P[6])+"")&&Be(a,i),P[6]!=P[21]?b?B[0]&64&&w(b,1):(b=Gr(),b.c(),w(b,1),b.m(t,null)):b&&(fe(),R(b,1,1,()=>{b=null}),ce());const S={};B[0]&131072&&(S.inactive=P[17]),B[0]&6272|B[1]&524288&&(S.$$scope={dirty:B,ctx:P}),y.$set(S),O===(O=A(P))&&k?k.p(P,B):(k.d(1),k=O(P),k&&(k.c(),k.m($,null))),(!T||B[0]&131072)&&at($,"comment-disabled",P[17]),P[9]?v&&(v.d(1),v=null):v?v.p(P,B):(v=Jr(P),v.c(),v.m(I,q)),P[10].length>0?z?z.p(P,B):(z=Kr(P),z.c(),z.m(I,null)):z&&(z.d(1),z=null),P[16]?G?(G.p(P,B),B[0]&65536&&w(G,1)):(G=Wr(P),G.c(),w(G,1),G.m(C.parentNode,C)):G&&(fe(),R(G,1,1,()=>{G=null}),ce())},i(P){T||(w(b),w(y.$$.fragment,P),w(G),T=!0)},o(P){R(b),R(y.$$.fragment,P),R(G),T=!1},d(P){P&&(c(e),c(V),c($),c(M),c(I),c(E),c(C)),D&&D.d(),b&&b.d(),x(y),k.d(),v&&v.d(),z&&z.d(),G&&G.d(P)}}}function Hr(l){let e,t;return e=new En({props:{size:12,class:"text-gray-600"}}),{c(){Z(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,n){Q(e,r,n),t=!0},i(r){t||(w(e.$$.fragment,r),t=!0)},o(r){R(e.$$.fragment,r),t=!1},d(r){x(e,r)}}}function gs(l){let e,t,r;function n(o){l[38](o)}let s={fill:l[5]};return l[5]!==void 0&&(s.content=l[5]),e=new ds({props:s}),et.push(()=>Tt(e,"content",n)),{c(){Z(e.$$.fragment)},l(o){ee(e.$$.fragment,o)},m(o,u){Q(e,o,u),r=!0},p(o,u){const i={};u[0]&32&&(i.fill=o[5]),!t&&u[0]&32&&(t=!0,i.content=o[5],Ct(()=>t=!1)),e.$set(i)},i(o){r||(w(e.$$.fragment,o),r=!0)},o(o){R(e.$$.fragment,o),r=!1},d(o){x(e,o)}}}function vs(l){let e,t,r;function n(o){l[37](o)}let s={fill:l[5]};return l[5]!==void 0&&(s.content=l[5]),e=new Dn({props:s}),et.push(()=>Tt(e,"content",n)),{c(){Z(e.$$.fragment)},l(o){ee(e.$$.fragment,o)},m(o,u){Q(e,o,u),r=!0},p(o,u){const i={};u[0]&32&&(i.fill=o[5]),!t&&u[0]&32&&(t=!0,i.content=o[5],Ct(()=>t=!1)),e.$set(i)},i(o){r||(w(e.$$.fragment,o),r=!0)},o(o){R(e.$$.fragment,o),r=!1},d(o){x(e,o)}}}function Ur(l){let e,t="author";return{c(){e=p("span"),e.textContent=t,this.h()},l(r){e=_(r,"SPAN",{class:!0,"data-svelte-h":!0}),he(e)!=="svelte-1tdepa3"&&(e.textContent=t),this.h()},h(){f(e,"class","author-badge svelte-4oua7z")},m(r,n){L(r,e,n)},d(r){r&&c(e)}}}function Gr(l){let e,t;return e=new En({props:{size:13,class:"edited-icon"}}),{c(){Z(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,n){Q(e,r,n),t=!0},i(r){t||(w(e.$$.fragment,r),t=!0)},o(r){R(e.$$.fragment,r),t=!1},d(r){x(e,r)}}}function bs(l){let e,t="Report",r,n;return{c(){e=p("button"),e.textContent=t},l(s){e=_(s,"BUTTON",{"data-svelte-h":!0}),he(e)!=="svelte-ac3swj"&&(e.textContent=t)},m(s,o){L(s,e,o),r||(n=le(e,"click",l[31]),r=!0)},p:F,i:F,o:F,d(s){s&&c(e),r=!1,n()}}}function ks(l){let e,t,r,n,s,o,u,i,a,d,h,y;r=new vl({props:{size:14}});const V=[ys,ws],$=[];function M(I,q){return I[11]?0:1}return u=M(l),i=$[u]=V[u](l),{c(){e=p("div"),t=p("button"),Z(r.$$.fragment),n=re(`
									Edit`),s=N(),o=p("button"),i.c(),a=re(`
									Delete`)},l(I){e=_(I,"DIV",{});var q=g(e);t=_(q,"BUTTON",{});var E=g(t);ee(r.$$.fragment,E),n=ne(E,`
									Edit`),E.forEach(c),s=j(q),o=_(q,"BUTTON",{});var C=g(o);i.l(C),a=ne(C,`
									Delete`),C.forEach(c),q.forEach(c)},m(I,q){L(I,e,q),m(e,t),Q(r,t,null),m(t,n),m(e,s),m(e,o),$[u].m(o,null),m(o,a),d=!0,h||(y=[le(t,"click",l[34]),le(o,"click",l[24])],h=!0)},p(I,q){let E=u;u=M(I),u!==E&&(fe(),R($[E],1,1,()=>{$[E]=null}),ce(),i=$[u],i||(i=$[u]=V[u](I),i.c()),w(i,1),i.m(o,a))},i(I){d||(w(r.$$.fragment,I),w(i),d=!0)},o(I){R(r.$$.fragment,I),R(i),d=!1},d(I){I&&c(e),x(r),$[u].d(),h=!1,qe(y)}}}function ws(l){let e,t;return e=new wl({props:{size:14}}),{c(){Z(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,n){Q(e,r,n),t=!0},i(r){t||(w(e.$$.fragment,r),t=!0)},o(r){R(e.$$.fragment,r),t=!1},d(r){x(e,r)}}}function ys(l){let e,t,r;return t=new yn({props:{size:14,class:"animate-spin"}}),{c(){e=p("span"),Z(t.$$.fragment),this.h()},l(n){e=_(n,"SPAN",{class:!0});var s=g(e);ee(t.$$.fragment,s),s.forEach(c),this.h()},h(){f(e,"class","spinner-container")},m(n,s){L(n,e,s),Q(t,e,null),r=!0},i(n){r||(w(t.$$.fragment,n),r=!0)},o(n){R(t.$$.fragment,n),r=!1},d(n){n&&c(e),x(t)}}}function Es(l){let e,t,r,n;const s=[ks,bs],o=[];function u(i,a){return i[7]?0:1}return e=u(l),t=o[e]=s[e](l),{c(){t.c(),r=ie()},l(i){t.l(i),r=ie()},m(i,a){o[e].m(i,a),L(i,r,a),n=!0},p(i,a){let d=e;e=u(i),e===d?o[e].p(i,a):(fe(),R(o[d],1,1,()=>{o[d]=null}),ce(),t=o[e],t?t.p(i,a):(t=o[e]=s[e](i),t.c()),w(t,1),t.m(r.parentNode,r))},i(i){n||(w(t),n=!0)},o(i){R(t),n=!1},d(i){i&&c(r),o[e].d(i)}}}function Cs(l){let e,t="This Comment has been deleted!";return{c(){e=p("p"),e.textContent=t},l(r){e=_(r,"P",{"data-svelte-h":!0}),he(e)!=="svelte-kb21fd"&&(e.textContent=t)},m(r,n){L(r,e,n)},p:F,d(r){r&&c(e)}}}function Ts(l){let e,t,r,n=l[13]&&Fr(l);return{c(){e=new cn(!1),t=N(),n&&n.c(),r=ie(),this.h()},l(s){e=dn(s,!1),t=j(s),n&&n.l(s),r=ie(),this.h()},h(){e.a=t},m(s,o){e.m(l[14],s,o),L(s,t,o),n&&n.m(s,o),L(s,r,o)},p(s,o){o[0]&16384&&e.p(s[14]),s[13]?n?n.p(s,o):(n=Fr(s),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(s){s&&(e.d(),c(t),c(r)),n&&n.d(s)}}}function Fr(l){let e,t="Read More",r,n;return{c(){e=p("span"),e.textContent=t,this.h()},l(s){e=_(s,"SPAN",{role:!0,class:!0,tabindex:!0,"data-svelte-h":!0}),he(e)!=="svelte-1eo226s"&&(e.textContent=t),this.h()},h(){f(e,"role","button"),f(e,"class","read-more svelte-4oua7z"),f(e,"tabindex","0")},m(s,o){L(s,e,o),r||(n=[le(e,"keypress",l[28]),le(e,"click",l[28])],r=!0)},p:F,d(s){s&&c(e),r=!1,qe(n)}}}function Jr(l){let e,t,r,n;return{c(){e=p("button"),t=re("Reply"),this.h()},l(s){e=_(s,"BUTTON",{class:!0});var o=g(e);t=ne(o,"Reply"),o.forEach(c),this.h()},h(){e.disabled=l[17],f(e,"class","reply-button comment-container-button svelte-4oua7z")},m(s,o){L(s,e,o),m(e,t),r||(n=le(e,"click",l[35]),r=!0)},p(s,o){o[0]&131072&&(e.disabled=s[17])},d(s){s&&c(e),r=!1,n()}}}function Kr(l){let e,t=l[8]?"Hide":"Show",r,n,s=l[8]?"":`(${Gt(l[10])})`,o,u,i;return{c(){e=p("button"),r=re(t),n=re(" Replies "),o=re(s),this.h()},l(a){e=_(a,"BUTTON",{class:!0});var d=g(e);r=ne(d,t),n=ne(d," Replies "),o=ne(d,s),d.forEach(c),this.h()},h(){f(e,"class","comment-container-button toggle-replies-button svelte-4oua7z")},m(a,d){L(a,e,d),m(e,r),m(e,n),m(e,o),u||(i=le(e,"click",l[36]),u=!0)},p(a,d){d[0]&256&&t!==(t=a[8]?"Hide":"Show")&&Be(r,t),d[0]&1280&&s!==(s=a[8]?"":`(${Gt(a[10])})`)&&Be(o,s)},d(a){a&&c(e),u=!1,i()}}}function Wr(l){let e,t,r;return t=new us({props:{id:l[19],post_uuid:l[4]}}),{c(){e=p("div"),Z(t.$$.fragment)},l(n){e=_(n,"DIV",{});var s=g(e);ee(t.$$.fragment,s),s.forEach(c)},m(n,s){L(n,e,s),Q(t,e,null),r=!0},p(n,s){const o={};s[0]&16&&(o.post_uuid=n[4]),t.$set(o)},i(n){r||(w(t.$$.fragment,n),r=!0)},o(n){R(t.$$.fragment,n),r=!1},d(n){n&&c(e),x(t)}}}function Xr(l){let e,t;return e=new $n({props:{isReply:l[40],parent_id:l[1].id,post_uuid:l[4],",":!0}}),e.$on("commentAdded",l[22]),{c(){Z(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,n){Q(e,r,n),t=!0},p(r,n){const s={};n[0]&512&&(s.isReply=r[40]),n[0]&2&&(s.parent_id=r[1].id),n[0]&16&&(s.post_uuid=r[4]),e.$set(s)},i(r){t||(w(e.$$.fragment,r),t=!0)},o(r){R(e.$$.fragment,r),t=!1},d(r){x(e,r)}}}function Yr(l){let e,t=l[15]==!0,r,n,s,o=Qr(l);return{c(){e=p("div"),o.c(),this.h()},l(u){e=_(u,"DIV",{class:!0});var i=g(e);o.l(i),i.forEach(c),this.h()},h(){f(e,"class","replies-container svelte-4oua7z")},m(u,i){L(u,e,i),o.m(e,null),s=!0},p(u,i){i[0]&32768&&ge(t,t=u[15]==!0)?(fe(),R(o,1,1,F),ce(),o=Qr(u),o.c(),w(o,1),o.m(e,null)):o.p(u,i)},i(u){s||(w(o),u&&ft(()=>{s&&(n&&n.end(1),r=ht(e,l[29],{}),r.start())}),s=!0)},o(u){R(o),r&&r.invalidate(),u&&(n=_n(e,Dt,{duration:200})),s=!1},d(u){u&&c(e),o.d(u),u&&n&&n.end()}}}function Zr(l,e){let t,r,n,s,o=F,u;return r=new Ln({props:{isReply:!0,post_author:e[2],post_title:e[3],post_uuid:e[4],comment:e[47]}}),r.$on("deleteComment",e[25]),r.$on("commentDeleted",e[41]),r.$on("newComment",e[42]),{key:l,first:null,c(){t=p("div"),Z(r.$$.fragment),n=N(),this.h()},l(i){t=_(i,"DIV",{class:!0});var a=g(t);ee(r.$$.fragment,a),n=j(a),a.forEach(c),this.h()},h(){f(t,"class","thread svelte-4oua7z"),this.first=t},m(i,a){L(i,t,a),Q(r,t,null),m(t,n),u=!0},p(i,a){e=i;const d={};a[0]&4&&(d.post_author=e[2]),a[0]&8&&(d.post_title=e[3]),a[0]&16&&(d.post_uuid=e[4]),a[0]&1024&&(d.comment=e[47]),r.$set(d)},r(){s=t.getBoundingClientRect()},f(){wn(t),o()},a(){o(),o=kn(t,s,An,{duration:150})},i(i){u||(w(r.$$.fragment,i),u=!0)},o(i){R(r.$$.fragment,i),u=!1},d(i){i&&c(t),x(r)}}}function Qr(l){let e=[],t=new Map,r,n,s=tt(l[10]);const o=u=>u[47].id;for(let u=0;u<s.length;u+=1){let i=qr(l,s,u),a=o(i);t.set(a,e[u]=Zr(a,i))}return{c(){for(let u=0;u<e.length;u+=1)e[u].c();r=ie()},l(u){for(let i=0;i<e.length;i+=1)e[i].l(u);r=ie()},m(u,i){for(let a=0;a<e.length;a+=1)e[a]&&e[a].m(u,i);L(u,r,i),n=!0},p(u,i){if(i[0]&33555484){s=tt(u[10]),fe();for(let a=0;a<e.length;a+=1)e[a].r();e=gn(e,i,o,1,u,s,t,r.parentNode,vn,Zr,r,qr);for(let a=0;a<e.length;a+=1)e[a].a();ce()}},i(u){if(!n){for(let i=0;i<s.length;i+=1)w(e[i]);n=!0}},o(u){for(let i=0;i<e.length;i+=1)R(e[i]);n=!1},d(u){u&&c(r);for(let i=0;i<e.length;i+=1)e[i].d(u)}}}function Ds(l){let e,t,r,n,s,o,u,i,a,d,h,y;function V(D,b){return D[30]?hs:ms}let M=V(l)(l);const I=[_s,ps],q=[];function E(D,b){return D[12]?1:0}s=E(l),o=q[s]=I[s](l);let C=l[9]&&Xr(l),T=l[10].length>0&&l[8]&&Yr(l);return{c(){e=p("div"),M.c(),t=N(),r=p("div"),n=p("div"),o.c(),u=N(),C&&C.c(),i=N(),T&&T.c(),a=ie(),this.h()},l(D){e=_(D,"DIV",{class:!0});var b=g(e);M.l(b),t=j(b),r=_(b,"DIV",{class:!0});var A=g(r);n=_(A,"DIV",{class:!0});var O=g(n);o.l(O),O.forEach(c),u=j(A),C&&C.l(A),A.forEach(c),b.forEach(c),i=j(D),T&&T.l(D),a=ie(),this.h()},h(){f(n,"class","comment-box  svelte-4oua7z"),at(n,"border-l-2",l[0]&&yt),f(r,"class","comment-content svelte-4oua7z"),f(e,"class","comment-container svelte-4oua7z"),at(e,"mb-4",l[0]&&yt),at(e,"mb-5",!yt)},m(D,b){L(D,e,b),M.m(e,null),m(e,t),m(e,r),m(r,n),q[s].m(n,null),m(r,u),C&&C.m(r,null),L(D,i,b),T&&T.m(D,b),L(D,a,b),d=!0,h||(y=[le(e,"commentDeleted",l[32]),le(e,"newComment",l[33])],h=!0)},p(D,b){M.p(D,b);let A=s;s=E(D),s===A?q[s].p(D,b):(fe(),R(q[A],1,1,()=>{q[A]=null}),ce(),o=q[s],o?o.p(D,b):(o=q[s]=I[s](D),o.c()),w(o,1),o.m(n,null)),(!d||b[0]&1)&&at(n,"border-l-2",D[0]&&yt),D[9]?C?(C.p(D,b),b[0]&512&&w(C,1)):(C=Xr(D),C.c(),w(C,1),C.m(r,null)):C&&(fe(),R(C,1,1,()=>{C=null}),ce()),(!d||b[0]&1)&&at(e,"mb-4",D[0]&&yt),D[10].length>0&&D[8]?T?(T.p(D,b),b[0]&1280&&w(T,1)):(T=Yr(D),T.c(),w(T,1),T.m(a.parentNode,a)):T&&(fe(),R(T,1,1,()=>{T=null}),ce())},i(D){d||(w(o),w(C),w(T),d=!0)},o(D){R(o),R(C),R(T),d=!1},d(D){D&&(c(e),c(i),c(a)),M.d(),q[s].d(),C&&C.d(),T&&T.d(D),h=!1,qe(y)}}}let yt=!1;function Is(l){return new Promise(e=>setTimeout(e,l))}function Rs(l,e,t){let r,n,{isReply:s=!1}=e,{comment:o}=e,{post_author:u}=e,{post_title:i}=e,{post_uuid:a}=e,d=o==null?void 0:o.author,h=o==null?void 0:o.content,y=o==null?void 0:o.id,V=o==null?void 0:o.email,$=o==null?void 0:o.updatedAt,M=o.created_at,I=!1,q=!0,E=!1,C=(o==null?void 0:o.replies)??[];C.length<2&&(q=!0);let T=Ft();async function D(U){t(10,C=[U.detail,...C]),t(9,E=!1),T("newComment",{...U.detail})}let b=Wt();St(l,b,U=>t(43,n=U));async function A(){if(t(11,O=!0),a){const U=await xe.deleteComment(y,V);T("commentDeleted",{id:y}),ut(b,n=At(y,{content:"RIGDEL"},n),n),T("deleteComment",{id:y,success:U}),t(11,O=!1);return}else{await Is(400),T("commentDeleted",{id:y}),ut(b,n=At(y,{content:"RIGDEL"},n),n),T("deleteComment",{id:y,success:{flagged:C.length>0}}),t(11,O=!1);return}}let O;async function k(U){if(U.detail.success.flagged)t(10,C=At(U.detail.id,{content:"RIGDEL"},C)),t(15,te=!0),setTimeout(()=>t(15,te=!1),5);else{t(10,C=C.filter(ve=>ve.id!==U.detail.id));return}}async function v(){if(h==(o==null?void 0:o.content)||In(h))return;t(5,h=Pn(h)),t(6,$=new Date);let U={updatedAt:$,content:h,id:y};if(a){const{error:ve}=xe.updateComment(U);ve||(t(12,z=!1),t(14,Y=h),t(13,P=!1))}else t(12,z=!1),t(14,Y=h),t(13,P=!1)}let z=!1,G=Et("richText"),P=!1,B=Et("imported-user");function S(U,ve=1e3){if(U.length<=ve)return U;let Re=U.substr(0,ve);return Re=Re.substr(0,Math.min(Re.length,Re.lastIndexOf(" "))),t(13,P=!0),`${Re}...`}let Y=S(h);const de=()=>{t(14,Y=h),t(13,P=!1)};function ae(U,{duration:ve=300,direction:Re="down"}){const rt=U.scrollHeight,ze=Re==="down"?rt:-rt;return{duration:ve,css:Ne=>{const Ge=bn(Ne),gt=Math.sin(Ne*Math.PI*2)*.1*(1-Ne),je=ze*(1-Ge)+gt*rt;return`
		overflow: hidden;
		opacity: ${Ne};
		transform: translateY(${je}px);
	  `}}}let te=!1,J=o==null?void 0:o.avathar,be=!1;function Te(){t(16,be=!0)}Ot(()=>{let U=Tn();(B&&B.email==V||U&&(U==null?void 0:U.email)==V)&&t(7,I=!0);let ve=document.createElement("div");ve.innerHTML=h,t(17,r=ve.innerText=="RIGDEL"||ve.innerText=="This comment has been deleted!")});function ke(U){mt.call(this,l,U)}function He(U){mt.call(this,l,U)}const De=()=>{t(12,z=!0)},Pe=()=>{r||t(9,E=!0)},Ie=()=>t(8,q=!q);function Fe(U){h=U,t(5,h)}function pt(U){h=U,t(5,h)}const pe=()=>{t(12,z=!1),t(5,h=o==null?void 0:o.content)},Je=()=>{t(9,E=!1)};function Ue(U){mt.call(this,l,U)}function _t(U){mt.call(this,l,U)}return l.$$set=U=>{"isReply"in U&&t(0,s=U.isReply),"comment"in U&&t(1,o=U.comment),"post_author"in U&&t(2,u=U.post_author),"post_title"in U&&t(3,i=U.post_title),"post_uuid"in U&&t(4,a=U.post_uuid)},t(17,r=!1),[s,o,u,i,a,h,$,I,q,E,C,O,z,P,Y,te,be,r,d,y,V,M,D,b,A,k,v,G,de,ae,J,Te,ke,He,De,Pe,Ie,Fe,pt,pe,Je,Ue,_t]}class Ln extends Ee{constructor(e){super(),Ce(this,e,Rs,Ds,ge,{isReply:0,comment:1,post_author:2,post_title:3,post_uuid:4},null,[-1,-1])}}function xr(l,e,t){const r=l.slice();return r[28]=e[t],r}function en(l,e,t){const r=l.slice();return r[25]=e[t],r}function Ps(l){let e,t="Props Validation Error",r,n,s=tt(l[11]),o=[];for(let u=0;u<s.length;u+=1)o[u]=tn(xr(l,s,u));return{c(){e=p("h1"),e.textContent=t,r=N(),n=p("ul");for(let u=0;u<o.length;u+=1)o[u].c()},l(u){e=_(u,"H1",{"data-svelte-h":!0}),he(e)!=="svelte-xz517z"&&(e.textContent=t),r=j(u),n=_(u,"UL",{});var i=g(n);for(let a=0;a<o.length;a+=1)o[a].l(i);i.forEach(c)},m(u,i){L(u,e,i),L(u,r,i),L(u,n,i);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(n,null)},p(u,i){if(i&2048){s=tt(u[11]);let a;for(a=0;a<s.length;a+=1){const d=xr(u,s,a);o[a]?o[a].p(d,i):(o[a]=tn(d),o[a].c(),o[a].m(n,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=s.length}},i:F,o:F,d(u){u&&(c(e),c(r),c(n)),pn(o,u)}}}function $s(l){let e,t,r,n;const s=[Ls,As],o=[];function u(i,a){return i[5]?1:0}return e=u(l),t=o[e]=s[e](l),{c(){t.c(),r=ie()},l(i){t.l(i),r=ie()},m(i,a){o[e].m(i,a),L(i,r,a),n=!0},p(i,a){let d=e;e=u(i),e===d?o[e].p(i,a):(fe(),R(o[d],1,1,()=>{o[d]=null}),ce(),t=o[e],t?t.p(i,a):(t=o[e]=s[e](i),t.c()),w(t,1),t.m(r.parentNode,r))},i(i){n||(w(t),n=!0)},o(i){R(t),n=!1},d(i){i&&c(r),o[e].d(i)}}}function tn(l){let e,t=l[28]+"",r,n;return{c(){e=p("li"),r=re(t),n=N()},l(s){e=_(s,"LI",{});var o=g(e);r=ne(o,t),n=j(o),o.forEach(c)},m(s,o){L(s,e,o),m(e,r),m(e,n)},p:F,d(s){s&&c(e)}}}function As(l){let e,t="Loading Comments...";return{c(){e=p("p"),e.textContent=t},l(r){e=_(r,"P",{"data-svelte-h":!0}),he(e)!=="svelte-18bnubw"&&(e.textContent=t)},m(r,n){L(r,e,n)},p:F,i:F,o:F,d(r){r&&c(e)}}}function Ls(l){let e,t,r,n=l[6]==!0,s,o;e=new $n({props:{post_uuid:l[2],parent_id:null}}),e.$on("commentAdded",l[8]);let u=!l[0]&&l[1].length>0&&rn(l),i=sn(l);return{c(){Z(e.$$.fragment),t=N(),u&&u.c(),r=N(),i.c(),s=ie()},l(a){ee(e.$$.fragment,a),t=j(a),u&&u.l(a),r=j(a),i.l(a),s=ie()},m(a,d){Q(e,a,d),L(a,t,d),u&&u.m(a,d),L(a,r,d),i.m(a,d),L(a,s,d),o=!0},p(a,d){const h={};d&4&&(h.post_uuid=a[2]),e.$set(h),!a[0]&&a[1].length>0?u?u.p(a,d):(u=rn(a),u.c(),u.m(r.parentNode,r)):u&&(u.d(1),u=null),d&64&&ge(n,n=a[6]==!0)?(fe(),R(i,1,1,F),ce(),i=sn(a),i.c(),w(i,1),i.m(s.parentNode,s)):i.p(a,d)},i(a){o||(w(e.$$.fragment,a),w(i),o=!0)},o(a){R(e.$$.fragment,a),R(i),o=!1},d(a){a&&(c(t),c(r),c(s)),x(e,a),u&&u.d(a),i.d(a)}}}function rn(l){let e,t,r="Test Mode!",n,s,o,u;return{c(){e=p("p"),t=p("span"),t.textContent=r,n=re(" Production activated when site is running on `"),s=p("span"),o=re(l[7]),u=re("`."),this.h()},l(i){e=_(i,"P",{class:!0});var a=g(e);t=_(a,"SPAN",{class:!0,"data-svelte-h":!0}),he(t)!=="svelte-t1k8"&&(t.textContent=r),n=ne(a," Production activated when site is running on `"),s=_(a,"SPAN",{class:!0});var d=g(s);o=ne(d,l[7]),d.forEach(c),u=ne(a,"`."),a.forEach(c),this.h()},h(){f(t,"class","svelte-z30dvq"),f(s,"class","svelte-z30dvq"),f(e,"class","test-mode svelte-z30dvq")},m(i,a){L(i,e,a),m(e,t),m(e,n),m(e,s),m(s,o),m(e,u)},p:F,d(i){i&&c(e)}}}function nn(l){let e,t="Be the first to comment!";return{c(){e=p("p"),e.textContent=t},l(r){e=_(r,"P",{"data-svelte-h":!0}),he(e)!=="svelte-1u771l5"&&(e.textContent=t)},m(r,n){L(r,e,n)},p:F,d(r){r&&c(e)}}}function ln(l,e){let t,r,n,s,o=F,u;return r=new Ln({props:{post_author:e[3],post_title:e[4],post_uuid:e[2],comment:e[25]}}),r.$on("commentDeleted",e[14]),r.$on("newComment",e[15]),r.$on("deleteComment",e[9]),{key:l,first:null,c(){t=p("div"),Z(r.$$.fragment),n=N(),this.h()},l(i){t=_(i,"DIV",{class:!0});var a=g(t);ee(r.$$.fragment,a),n=j(a),a.forEach(c),this.h()},h(){f(t,"class","thread svelte-z30dvq"),this.first=t},m(i,a){L(i,t,a),Q(r,t,null),m(t,n),u=!0},p(i,a){e=i;const d={};a&8&&(d.post_author=e[3]),a&16&&(d.post_title=e[4]),a&4&&(d.post_uuid=e[2]),a&2&&(d.comment=e[25]),r.$set(d)},r(){s=t.getBoundingClientRect()},f(){wn(t),o()},a(){o(),o=kn(t,s,An,{duration:150})},i(i){u||(w(r.$$.fragment,i),u=!0)},o(i){R(r.$$.fragment,i),u=!1},d(i){i&&c(t),x(r)}}}function sn(l){let e=[],t=new Map,r,n,s=tt(l[1]);const o=i=>i[25].id;for(let i=0;i<s.length;i+=1){let a=en(l,s,i),d=o(a);t.set(d,e[i]=ln(d,a))}let u=null;return s.length||(u=nn()),{c(){for(let i=0;i<e.length;i+=1)e[i].c();r=ie(),u&&u.c()},l(i){for(let a=0;a<e.length;a+=1)e[a].l(i);r=ie(),u&&u.l(i)},m(i,a){for(let d=0;d<e.length;d+=1)e[d]&&e[d].m(i,a);L(i,r,a),u&&u.m(i,a),n=!0},p(i,a){if(a&542){s=tt(i[1]),fe();for(let d=0;d<e.length;d+=1)e[d].r();e=gn(e,a,o,1,i,s,t,r.parentNode,vn,ln,r,en);for(let d=0;d<e.length;d+=1)e[d].a();ce(),!s.length&&u?u.p(i,a):s.length?u&&(u.d(1),u=null):(u=nn(),u.c(),u.m(r.parentNode,r))}},i(i){if(!n){for(let a=0;a<s.length;a+=1)w(e[a]);n=!0}},o(i){for(let a=0;a<e.length;a+=1)R(e[a]);n=!1},d(i){i&&c(r);for(let a=0;a<e.length;a+=1)e[a].d(i);u&&u.d(i)}}}function Ss(l){let e,t,r,n;const s=[$s,Ps],o=[];function u(i,a){return!i[11].length>0?0:1}return t=u(l),r=o[t]=s[t](l),{c(){e=p("div"),r.c(),this.h()},l(i){e=_(i,"DIV",{class:!0});var a=g(e);r.l(a),a.forEach(c),this.h()},h(){f(e,"class","comment-rig svelte-z30dvq")},m(i,a){L(i,e,a),o[t].m(e,null),n=!0},p(i,[a]){r.p(i,a)},i(i){n||(w(r),n=!0)},o(i){R(r),n=!1},d(i){i&&c(e),o[t].d()}}}function Os(l,e,t){let r,{entities:n={}}=e,s=null,o=n.title,u=n==null?void 0:n.page,i=(n==null?void 0:n.bordered)??!1,a=n==null?void 0:n.domain,d=n.email;Sl(),$t("bordered-comment",i),$t("richText",n==null?void 0:n.rich),$t("imported-user",n==null?void 0:n.user);let h=[],{commentLength:y}=e,V=Ft();async function $(v){t(12,y=y+1),V("newComment",{...v.detail})}async function M(v){t(12,y-=1),v.detail.success.flagged?(ut(T,r=At(v.detail.id,{content:"RIGDEL"},r),r),t(6,A=!0),setTimeout(()=>t(6,A=!1),5)):ut(T,r=r.filter(z=>z.id!==v.detail.id),r)}let I,q=n.email,E;async function C(){if(t(0,s=ql(a)),console.log(s),s){let{data:v,error:z,status:G}=await xe.fetchPost(s,o);if(z)return[];if(v&&(v!=null&&v.comments))return t(2,I=v.id),t(4,E=v.title),v.comments;{let{data:P,error:B,status:S}=await xe.createPost({unique_id:s,title:o,email:d,domain:a,url:window.location.href});return B?[]:(t(2,I=P.id),t(3,q=P.email),t(4,E=P.title),P.comments)}}else return Hl()}let T=Wt();St(l,T,v=>t(17,r=v));let D=Ul(n),b=!1;Ot(async()=>{if(D.length>0){console.error("Validation errors:",D);return}t(5,b=!0),t(1,h=await C()),t(12,y=h.length),t(1,h=Nl(h)),t(5,b=!1),h.length>0&&(u??h.length,ut(T,r=h,r)),T.subscribe(v=>{t(1,h=v)})});let A;function O(v){mt.call(this,l,v)}function k(v){mt.call(this,l,v)}return l.$$set=v=>{"entities"in v&&t(13,n=v.entities),"commentLength"in v&&t(12,y=v.commentLength)},[s,h,I,q,E,b,A,a,$,M,T,D,y,n,O,k]}class Vs extends Ee{constructor(e){super(),Ce(this,e,Os,Ss,ge,{entities:13,commentLength:12})}}function zs(l){let e,t,r,n,s="Signup for DevCanvas",o,u,i="An online HTML/CSS/JS Editor with fast and instant previews!",a,d,h,y,V,$,M,I="Get CommentRig",q,E,C="Get the best modern comment management for your website.",T,D,b,A,O,k,v,z="Kbar-svelte-mini",G,P,B="Setup cmd+k/ctrl+k for your svelte app with breeze 🌬️",S,Y,de,ae,te;return y=new Ae({props:{icon:Ht}}),A=new Ae({props:{icon:Ht}}),ae=new Ae({props:{icon:Ht}}),{c(){e=p("div"),t=p("div"),r=p("div"),n=p("p"),n.textContent=s,o=N(),u=p("p"),u.textContent=i,a=N(),d=p("a"),h=re("Try DevCanvas "),Z(y.$$.fragment),V=N(),$=p("div"),M=p("p"),M.textContent=I,q=N(),E=p("p"),E.textContent=C,T=N(),D=p("a"),b=re("Get Commentrig "),Z(A.$$.fragment),O=N(),k=p("div"),v=p("p"),v.textContent=z,G=N(),P=p("p"),P.textContent=B,S=N(),Y=p("a"),de=re("Get npm package "),Z(ae.$$.fragment),this.h()},l(J){e=_(J,"DIV",{class:!0});var be=g(e);t=_(be,"DIV",{class:!0});var Te=g(t);r=_(Te,"DIV",{class:!0});var ke=g(r);n=_(ke,"P",{class:!0,"data-svelte-h":!0}),he(n)!=="svelte-9u06b2"&&(n.textContent=s),o=j(ke),u=_(ke,"P",{class:!0,"data-svelte-h":!0}),he(u)!=="svelte-zdldth"&&(u.textContent=i),a=j(ke),d=_(ke,"A",{href:!0,target:!0,class:!0});var He=g(d);h=ne(He,"Try DevCanvas "),ee(y.$$.fragment,He),He.forEach(c),ke.forEach(c),V=j(Te),$=_(Te,"DIV",{class:!0});var De=g($);M=_(De,"P",{class:!0,"data-svelte-h":!0}),he(M)!=="svelte-xyghbd"&&(M.textContent=I),q=j(De),E=_(De,"P",{class:!0,"data-svelte-h":!0}),he(E)!=="svelte-1yxexkk"&&(E.textContent=C),T=j(De),D=_(De,"A",{href:!0,target:!0,class:!0});var Pe=g(D);b=ne(Pe,"Get Commentrig "),ee(A.$$.fragment,Pe),Pe.forEach(c),De.forEach(c),O=j(Te),k=_(Te,"DIV",{class:!0});var Ie=g(k);v=_(Ie,"P",{class:!0,"data-svelte-h":!0}),he(v)!=="svelte-gw2qx8"&&(v.textContent=z),G=j(Ie),P=_(Ie,"P",{class:!0,"data-svelte-h":!0}),he(P)!=="svelte-elsyri"&&(P.textContent=B),S=j(Ie),Y=_(Ie,"A",{href:!0,target:!0,class:!0});var Fe=g(Y);de=ne(Fe,"Get npm package "),ee(ae.$$.fragment,Fe),Fe.forEach(c),Ie.forEach(c),Te.forEach(c),be.forEach(c),this.h()},h(){f(n,"class","font-semibold"),f(u,"class","text-sm"),f(d,"href","https://devcanvas.art/play/try"),f(d,"target","_blank"),f(d,"class","flex text-sm items-center gap-2 bg-orange-300 border border-orang dark:border-dark dark:bg-stone-950 p-2 justify-center rounded-xl w-fit"),f(r,"class","flex flex-col gap-2"),f(M,"class","font-semibold"),f(E,"class","text-sm"),f(D,"href","https://www.commentrig.com"),f(D,"target","_blank"),f(D,"class","flex text-sm items-center gap-2 bg-orange-300 border border-orang dark:border-dark dark:bg-stone-950 p-2 justify-center rounded-xl w-fit"),f($,"class","flex flex-col gap-2"),f(v,"class","font-semibold"),f(P,"class","text-sm"),f(Y,"href","https://www.npmjs.com/package/kbar-svelte-mini"),f(Y,"target","_blank"),f(Y,"class","flex text-sm items-center gap-2 bg-orange-300 border border-orang justify-center dark:border-dark dark:bg-stone-950 p-2 rounded-xl w-fit"),f(k,"class","flex flex-col gap-2"),f(t,"class","sticky top-[120px] bg-orange-100 divide-y divide-orang dark:divide-dark dark:bg-stone-900 p-4 rounded-xl m-4 flex gap-4 flex-col"),f(e,"class","parent w-full h-full svelte-1lee1i4")},m(J,be){L(J,e,be),m(e,t),m(t,r),m(r,n),m(r,o),m(r,u),m(r,a),m(r,d),m(d,h),Q(y,d,null),m(t,V),m(t,$),m($,M),m($,q),m($,E),m($,T),m($,D),m(D,b),Q(A,D,null),m(t,O),m(t,k),m(k,v),m(k,G),m(k,P),m(k,S),m(k,Y),m(Y,de),Q(ae,Y,null),te=!0},p:F,i(J){te||(w(y.$$.fragment,J),w(A.$$.fragment,J),w(ae.$$.fragment,J),te=!0)},o(J){R(y.$$.fragment,J),R(A.$$.fragment,J),R(ae.$$.fragment,J),te=!1},d(J){J&&c(e),x(y),x(A),x(ae)}}}class Ns extends Ee{constructor(e){super(),Ce(this,e,null,zs,ge,{})}}function on(l){let e,t;return{c(){e=p("link"),this.h()},l(r){e=_(r,"LINK",{rel:!0,href:!0}),this.h()},h(){var r;f(e,"rel","canonical"),f(e,"href",t=((r=l[0].meta)==null?void 0:r.canonical)+"}")},m(r,n){L(r,e,n)},p(r,n){var s;n&1&&t!==(t=((s=r[0].meta)==null?void 0:s.canonical)+"}")&&f(e,"href",t)},d(r){r&&c(e)}}}function an(l){let e,t,r=Lt(l[0].meta.lastmod)+"",n;return{c(){e=p("p"),t=re("Edited "),n=re(r)},l(s){e=_(s,"P",{});var o=g(e);t=ne(o,"Edited "),n=ne(o,r),o.forEach(c)},m(s,o){L(s,e,o),m(e,t),m(e,n)},p(s,o){o&1&&r!==(r=Lt(s[0].meta.lastmod)+"")&&Be(n,r)},d(s){s&&c(e)}}}function un(l){let e,t,r;function n(o){l[7](o)}let s={entities:l[3]};return l[1]!==void 0&&(s.commentLength=l[1]),e=new Vs({props:s}),et.push(()=>Tt(e,"commentLength",n)),{c(){Z(e.$$.fragment)},l(o){ee(e.$$.fragment,o)},m(o,u){Q(e,o,u),r=!0},p(o,u){const i={};!t&&u&2&&(t=!0,i.commentLength=o[1],Ct(()=>t=!1)),e.$set(i)},i(o){r||(w(e.$$.fragment,o),r=!0)},o(o){R(e.$$.fragment,o),r=!1},d(o){x(e,o)}}}function js(l){var xt,er,tr,rr;let e,t,r,n,s,o,u,i=l[0].meta.title+"",a,d,h,y,V=Lt(l[0].meta.date)+"",$,M,I,q,E,C,T,D,b,A,O,k,v,z,G,P,B,S,Y,de,ae,te,J,be,Te,ke,He,De,Pe,Ie,Fe="Love it? Share it!",pt,pe,Je,Ue,_t,U,ve,Re,rt,ze,Ne,Ge,gt,je,vt,nt,Vt,Ke,lt,zt,We,st,Nt,Xe,ot,jt,Ye,it,Xt="Comments",Mt,Yt=l[0],Bt,Me,qt,Zt;e=new ll({props:{title:(xt=l[0].meta)==null?void 0:xt.title,description:(er=l[0].meta)==null?void 0:er.description,published:(tr=l[0].meta)==null?void 0:tr.published}});let we=((rr=l[0].meta)==null?void 0:rr.canonical)&&on(l),ye=l[0].meta.date!=l[0].meta.lastmod&&an(l);T=new Ae({props:{icon:Zn}}),O=new Ae({props:{icon:wr}}),G=new Ae({props:{icon:yr}}),Y=new Ae({props:{icon:Qn}});var ct=l[0].content;function Qt(H,ue){return{}}ct&&(J=br(ct,Qt())),ke=new Ns({}),Ue=new Ae({props:{icon:nl}}),Re=new Ae({props:{icon:yr}}),Ge=new Ae({props:{icon:xn}}),nt=new Ae({props:{icon:wr}}),lt=new Ae({props:{icon:el}}),st=new Ae({props:{icon:tl}}),ot=new Ae({props:{icon:rl}});let Oe=un(l);return{c(){Z(e.$$.fragment),we&&we.c(),t=ie(),r=N(),n=p("article"),s=p("hgroup"),o=p("div"),u=p("h1"),a=re(i),d=N(),h=p("p"),y=re("Published "),$=re(V),M=N(),ye&&ye.c(),I=N(),q=p("div"),E=p("div"),C=p("a"),Z(T.$$.fragment),b=N(),A=p("a"),Z(O.$$.fragment),v=N(),z=p("a"),Z(G.$$.fragment),B=N(),S=p("a"),Z(Y.$$.fragment),ae=N(),te=p("section"),J&&Z(J.$$.fragment),be=N(),Te=p("aside"),Z(ke.$$.fragment),He=N(),De=p("div"),Pe=p("div"),Ie=p("span"),Ie.textContent=Fe,pt=N(),pe=p("div"),Je=p("button"),Z(Ue.$$.fragment),_t=N(),U=p("a"),ve=p("span"),Z(Re.$$.fragment),rt=N(),ze=p("a"),Ne=p("span"),Z(Ge.$$.fragment),gt=N(),je=p("a"),vt=p("span"),Z(nt.$$.fragment),Vt=N(),Ke=p("a"),Z(lt.$$.fragment),zt=N(),We=p("a"),Z(st.$$.fragment),Nt=N(),Xe=p("a"),Z(ot.$$.fragment),jt=N(),Ye=p("div"),it=p("h3"),it.textContent=Xt,Mt=N(),Oe.c(),this.h()},l(H){const ue=Hn("svelte-n9k89n",document.head);ee(e.$$.fragment,ue),we&&we.l(ue),t=ie(),ue.forEach(c),r=j(H),n=_(H,"ARTICLE",{class:!0});var Le=g(n);s=_(Le,"HGROUP",{class:!0});var bt=g(s);o=_(bt,"DIV",{class:!0});var Ve=g(o);u=_(Ve,"H1",{class:!0});var kt=g(u);a=ne(kt,i),kt.forEach(c),d=j(Ve),h=_(Ve,"P",{});var dt=g(h);y=ne(dt,"Published "),$=ne(dt,V),dt.forEach(c),M=j(Ve),ye&&ye.l(Ve),I=j(Ve),q=_(Ve,"DIV",{class:!0});var wt=g(q);E=_(wt,"DIV",{class:!0});var Ze=g(E);C=_(Ze,"A",{href:!0});var nr=g(C);ee(T.$$.fragment,nr),nr.forEach(c),b=j(Ze),A=_(Ze,"A",{href:!0});var lr=g(A);ee(O.$$.fragment,lr),lr.forEach(c),v=j(Ze),z=_(Ze,"A",{href:!0});var sr=g(z);ee(G.$$.fragment,sr),sr.forEach(c),B=j(Ze),S=_(Ze,"A",{href:!0});var or=g(S);ee(Y.$$.fragment,or),or.forEach(c),Ze.forEach(c),wt.forEach(c),Ve.forEach(c),bt.forEach(c),ae=j(Le),te=_(Le,"SECTION",{class:!0});var It=g(te);J&&ee(J.$$.fragment,It),be=j(It),Te=_(It,"ASIDE",{class:!0});var ir=g(Te);ee(ke.$$.fragment,ir),ir.forEach(c),It.forEach(c),He=j(Le),De=_(Le,"DIV",{class:!0});var ar=g(De);Pe=_(ar,"DIV",{class:!0});var Rt=g(Pe);Ie=_(Rt,"SPAN",{"data-svelte-h":!0}),he(Ie)!=="svelte-1ndvy77"&&(Ie.textContent=Fe),pt=j(Rt),pe=_(Rt,"DIV",{class:!0});var $e=g(pe);Je=_($e,"BUTTON",{});var ur=g(Je);ee(Ue.$$.fragment,ur),ur.forEach(c),_t=j($e),U=_($e,"A",{href:!0,target:!0,rel:!0});var fr=g(U);ve=_(fr,"SPAN",{});var cr=g(ve);ee(Re.$$.fragment,cr),cr.forEach(c),fr.forEach(c),rt=j($e),ze=_($e,"A",{href:!0,target:!0,rel:!0});var dr=g(ze);Ne=_(dr,"SPAN",{});var mr=g(Ne);ee(Ge.$$.fragment,mr),mr.forEach(c),dr.forEach(c),gt=j($e),je=_($e,"A",{href:!0,target:!0,rel:!0});var hr=g(je);vt=_(hr,"SPAN",{});var pr=g(vt);ee(nt.$$.fragment,pr),pr.forEach(c),hr.forEach(c),Vt=j($e),Ke=_($e,"A",{href:!0,target:!0,rel:!0});var _r=g(Ke);ee(lt.$$.fragment,_r),_r.forEach(c),zt=j($e),We=_($e,"A",{href:!0,target:!0,rel:!0});var gr=g(We);ee(st.$$.fragment,gr),gr.forEach(c),Nt=j($e),Xe=_($e,"A",{href:!0,target:!0,rel:!0});var vr=g(Xe);ee(ot.$$.fragment,vr),vr.forEach(c),$e.forEach(c),Rt.forEach(c),ar.forEach(c),jt=j(Le),Ye=_(Le,"DIV",{});var Pt=g(Ye);it=_(Pt,"H3",{class:!0,"data-svelte-h":!0}),he(it)!=="svelte-3qkb1z"&&(it.textContent=Xt),Mt=j(Pt),Oe.l(Pt),Pt.forEach(c),Le.forEach(c),this.h()},h(){f(u,"class","text-5xl text-balance font-extrabold md:text-6xl md:text-center"),f(C,"href",D=l[2].github),f(A,"href",k=l[2].linkedin),f(z,"href",P=l[2].twitter),f(S,"href",de=l[2].youtube),f(E,"class","flex gap-2"),f(q,"class","flex md:items-center"),f(o,"class","flex max-w-md md:max-w-[800px] flex-col md:items-center gap-2 justify-center"),f(s,"class","md:h-[400px] justify-center mb-4 flex items-center rounded-lg w-full flex-col gap-3"),f(Te,"class","relative w-[400px] hidden md:hidden lg:flex"),f(te,"class","flex w-full flex-col lg:flex-row article"),f(U,"href","https://twitter.com/share?url="+Sn(l[4])+"%3Fref%3Dtwitter-share&text="+l[5]),f(U,"target","_blank"),f(U,"rel","noopener"),f(ze,"href","http://www.reddit.com/submit?url="+l[4]+"&title="+l[5]),f(ze,"target","_blank"),f(ze,"rel","noopener"),f(je,"href","https://www.linkedin.com/cws/share?url="+l[4]),f(je,"target","_blank"),f(je,"rel","noopener"),f(Ke,"href","http://news.ycombinator.com/submitlink?u="+l[4]+"&t="+l[5]),f(Ke,"target","_blank"),f(Ke,"rel","noopener"),f(We,"href","https://www.facebook.com/sharer/sharer.php?u="+l[4]),f(We,"target","_blank"),f(We,"rel","noopener"),f(Xe,"href","https://api.whatsapp.com/send?text="+l[5]+"%20"+l[4]),f(Xe,"target","_blank"),f(Xe,"rel","noopener"),f(pe,"class","flex space-x-3 items-center justify-center"),f(Pe,"class","w-full mt-12 flex justify-between max-w-md items-center border border-b-2 rounded-2xl bg-orange-300 dark:bg-black border-orang dark:border-dark p-4"),f(De,"class","w-full flex items-center justify-center p-3"),f(it,"class","text-2xl md:text-3xl font-extrabold font-sans mb-6"),f(n,"class","mx-auto flex flex-col gap-2")},m(H,ue){Q(e,document.head,null),we&&we.m(document.head,null),m(document.head,t),L(H,r,ue),L(H,n,ue),m(n,s),m(s,o),m(o,u),m(u,a),m(o,d),m(o,h),m(h,y),m(h,$),m(o,M),ye&&ye.m(o,null),m(o,I),m(o,q),m(q,E),m(E,C),Q(T,C,null),m(E,b),m(E,A),Q(O,A,null),m(E,v),m(E,z),Q(G,z,null),m(E,B),m(E,S),Q(Y,S,null),m(n,ae),m(n,te),J&&Q(J,te,null),m(te,be),m(te,Te),Q(ke,Te,null),m(n,He),m(n,De),m(De,Pe),m(Pe,Ie),m(Pe,pt),m(Pe,pe),m(pe,Je),Q(Ue,Je,null),m(pe,_t),m(pe,U),m(U,ve),Q(Re,ve,null),m(pe,rt),m(pe,ze),m(ze,Ne),Q(Ge,Ne,null),m(pe,gt),m(pe,je),m(je,vt),Q(nt,vt,null),m(pe,Vt),m(pe,Ke),Q(lt,Ke,null),m(pe,zt),m(pe,We),Q(st,We,null),m(pe,Nt),m(pe,Xe),Q(ot,Xe,null),m(n,jt),m(n,Ye),m(Ye,it),m(Ye,Mt),Oe.m(Ye,null),Me=!0,qt||(Zt=le(Je,"click",l[6]),qt=!0)},p(H,[ue]){var bt,Ve,kt,dt;const Le={};if(ue&1&&(Le.title=(bt=H[0].meta)==null?void 0:bt.title),ue&1&&(Le.description=(Ve=H[0].meta)==null?void 0:Ve.description),ue&1&&(Le.published=(kt=H[0].meta)==null?void 0:kt.published),e.$set(Le),(dt=H[0].meta)!=null&&dt.canonical?we?we.p(H,ue):(we=on(H),we.c(),we.m(t.parentNode,t)):we&&(we.d(1),we=null),(!Me||ue&1)&&i!==(i=H[0].meta.title+"")&&Be(a,i),(!Me||ue&1)&&V!==(V=Lt(H[0].meta.date)+"")&&Be($,V),H[0].meta.date!=H[0].meta.lastmod?ye?ye.p(H,ue):(ye=an(H),ye.c(),ye.m(o,I)):ye&&(ye.d(1),ye=null),(!Me||ue&4&&D!==(D=H[2].github))&&f(C,"href",D),(!Me||ue&4&&k!==(k=H[2].linkedin))&&f(A,"href",k),(!Me||ue&4&&P!==(P=H[2].twitter))&&f(z,"href",P),(!Me||ue&4&&de!==(de=H[2].youtube))&&f(S,"href",de),ue&1&&ct!==(ct=H[0].content)){if(J){fe();const wt=J;R(wt.$$.fragment,1,0,()=>{x(wt,1)}),ce()}ct?(J=br(ct,Qt()),Z(J.$$.fragment),w(J.$$.fragment,1),Q(J,te,be)):J=null}ue&1&&ge(Yt,Yt=H[0])?(fe(),R(Oe,1,1,F),ce(),Oe=un(H),Oe.c(),w(Oe,1),Oe.m(Ye,null)):Oe.p(H,ue)},i(H){Me||(w(e.$$.fragment,H),w(T.$$.fragment,H),w(O.$$.fragment,H),w(G.$$.fragment,H),w(Y.$$.fragment,H),J&&w(J.$$.fragment,H),w(ke.$$.fragment,H),w(Ue.$$.fragment,H),w(Re.$$.fragment,H),w(Ge.$$.fragment,H),w(nt.$$.fragment,H),w(lt.$$.fragment,H),w(st.$$.fragment,H),w(ot.$$.fragment,H),w(Oe),H&&(Bt||ft(()=>{Bt=ht(n,Xn,{}),Bt.start()})),Me=!0)},o(H){R(e.$$.fragment,H),R(T.$$.fragment,H),R(O.$$.fragment,H),R(G.$$.fragment,H),R(Y.$$.fragment,H),J&&R(J.$$.fragment,H),R(ke.$$.fragment,H),R(Ue.$$.fragment,H),R(Re.$$.fragment,H),R(Ge.$$.fragment,H),R(nt.$$.fragment,H),R(lt.$$.fragment,H),R(st.$$.fragment,H),R(ot.$$.fragment,H),R(Oe),Me=!1},d(H){H&&(c(r),c(n)),x(e),we&&we.d(H),c(t),ye&&ye.d(),x(T),x(O),x(G),x(Y),J&&x(J),x(ke),x(Ue),x(Re),x(Ge),x(nt),x(lt),x(st),x(ot),Oe.d(H),qt=!1,Zt()}}}function Ms(){window.scrollTo({top:0,behavior:"smooth"})}function Sn(l){var e=encodeURIComponent(l);return e}function Bs(l,e,t){let r;St(l,Wn,h=>t(2,r=h));let{data:n}=e,s={title:n.meta.title,email:"abdulmuminyqn@gmail.com",rich:!0,domain:"https://yaqeen.me"},o,u;Ot(()=>{Ms()});let i=Sn(n.meta.title);const a=()=>{Kn(u)};function d(h){o=h,t(1,o)}return l.$$set=h=>{"data"in h&&t(0,n=h.data)},[n,o,r,s,u,i,a,d]}class ro extends Ee{constructor(e){super(),Ce(this,e,Bs,js,ge,{data:0})}}export{ro as P,to as _,An as a,kn as c,wn as f};