1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7406],{909:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(70814).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},5999:(e,t,r)=>{r.d(t,{AM:()=>c,Wv:()=>u,hl:()=>m});var a=r(19442);r(66074);var s=r(63347),i=r(92110),n=r(24941),l=r(81409),o=r(69606),d=r(89463);function c({...e}){return(0,a.jsx)(s.y,{"data-slot":"popover",...e})}function u({...e}){return(0,a.jsx)(i.W,{"data-slot":"popover-trigger",...e})}function m({className:e,align:t="center",alignOffset:r=0,side:s="bottom",sideOffset:i=4,...c}){return(0,a.jsx)(n.i,{children:(0,a.jsx)(l.U,{align:t,alignOffset:r,side:s,sideOffset:i,className:"isolate z-50",children:(0,a.jsx)(o.i,{"data-slot":"popover-content",className:(0,d.cn)("z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-sm ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...c})})})}},27583:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(70814).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},35851:(e,t,r)=>{r.d(t,{S:()=>o});var a=r(19442),s=r(14242),i=r(77803),n=r(89463),l=r(92805);function o({className:e,...t}){return(0,a.jsx)(s.y,{"data-slot":"checkbox",className:(0,n.cn)("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...t,children:(0,a.jsx)(i.P,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,a.jsx)(l.A,{})})})}},37502:(e,t,r)=>{r.d(t,{D:()=>c,ThemeProvider:()=>u});var a=r(66074),s=(e,t,r,a,s,i,n,l)=>{let o=document.documentElement,d=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,a=r&&i?s.map(e=>i[e]||e):s;r?(o.classList.remove(...a),o.classList.add(i&&i[t]?i[t]:t)):o.setAttribute(e,t)}),r=t,l&&d.includes(r)&&(o.style.colorScheme=r)}if(a)c(a);else try{let e=localStorage.getItem(t)||r,a=n&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(a)}catch(e){}},i=["light","dark"],n="(prefers-color-scheme: dark)",l="u"<typeof window,o=a.createContext(void 0),d={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=a.useContext(o))?e:d},u=e=>a.useContext(o)?a.createElement(a.Fragment,null,e.children):a.createElement(h,{...e}),m=["light","dark"],h=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:s=!0,storageKey:l="theme",themes:d=m,defaultTheme:c=r?"system":"light",attribute:u="data-theme",value:h,children:b,nonce:y,scriptProps:v})=>{let[k,w]=a.useState(()=>g(l,c)),[j,N]=a.useState(()=>"system"===k?x():k),A=h?Object.values(h):d,z=a.useCallback(e=>{let a=e;if(!a)return;"system"===e&&r&&(a=x());let n=h?h[a]:a,l=t?f(y):null,o=document.documentElement,d=e=>{"class"===e?(o.classList.remove(...A),n&&o.classList.add(n)):e.startsWith("data-")&&(n?o.setAttribute(e,n):o.removeAttribute(e))};if(Array.isArray(u)?u.forEach(d):d(u),s){let e=i.includes(c)?c:null,t=i.includes(a)?a:e;o.style.colorScheme=t}null==l||l()},[y]),S=a.useCallback(e=>{let t="function"==typeof e?e(k):e;w(t);try{localStorage.setItem(l,t)}catch(e){}},[k]),C=a.useCallback(t=>{N(x(t)),"system"===k&&r&&!e&&z("system")},[k,e]);a.useEffect(()=>{let e=window.matchMedia(n);return e.addListener(C),C(e),()=>e.removeListener(C)},[C]),a.useEffect(()=>{let e=e=>{e.key===l&&(e.newValue?w(e.newValue):S(c))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[S]),a.useEffect(()=>{z(null!=e?e:k)},[e,k]);let _=a.useMemo(()=>({theme:k,setTheme:S,forcedTheme:e,resolvedTheme:"system"===k?j:k,themes:r?[...d,"system"]:d,systemTheme:r?j:void 0}),[k,S,e,j,r,d]);return a.createElement(o.Provider,{value:_},a.createElement(p,{forcedTheme:e,storageKey:l,attribute:u,enableSystem:r,enableColorScheme:s,defaultTheme:c,value:h,themes:d,nonce:y,scriptProps:v}),b)},p=a.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:i,enableColorScheme:n,defaultTheme:l,value:o,themes:d,nonce:c,scriptProps:u})=>{let m=JSON.stringify([r,t,l,e,d,o,i,n]).slice(1,-1);return a.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${s.toString()})(${m})`}})}),g=(e,t)=>{let r;if(!l){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},f=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},x=e=>
1(e||(e=window.matchMedia(n)),e.matches?"dark":"light")},48367:(e,t,r)=>{r.d(t,{Toaster:()=>m});var a=r(19442),s=r(37502),i=r(72927),n=r(70814);let l=(0,n.A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),o=(0,n.A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var d=r(64e3);let c=(0,n.A)("octagon-x",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var u=r(27583);let m=({...e})=>{let{theme:t="system"}=(0,s.D)();return(0,a.jsx)(i.l$,{theme:t,className:"toaster group",icons:{success:(0,a.jsx)(l,{className:"size-4"}),info:(0,a.jsx)(o,{className:"size-4"}),warning:(0,a.jsx)(d.A,{className:"size-4"}),error:(0,a.jsx)(c,{className:"size-4"}),loading:(0,a.jsx)(u.A,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},toastOptions:{classNames:{toast:"cn-toast"}},...e})}},57757:(e,t,r)=>{r.d(t,{ThemeToggle:()=>d});var a=r(19442),s=r(70814);let i=(0,s.A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),n=(0,s.A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);var l=r(37502),o=r(66074);function d(){let{resolvedTheme:e,setTheme:t}=(0,l.D)(),[r,s]=(0,o.useState)(!1);if((0,o.useEffect)(()=>{s(!0)},[]),!r)return(0,a.jsx)("div",{className:"h-6 w-11","aria-hidden":!0});let d="dark"===e;return(0,a.jsx)("button",{type:"button",role:"switch","aria-checked":d,"aria-label":d?"Switch to light mode":"Switch to dark mode",onClick:()=>t(d?"light":"dark"),className:"relative inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border border-border bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:(0,a.jsx)("span",{className:`pointer-events-none flex h-5 w-5 items-center justify-center rounded-full bg-background shadow-sm transition-transform motion-safe:duration-200 ${d?"translate-x-5":"translate-x-0.5"}`,children:d?(0,a.jsx)(i,{className:"h-3 w-3 text-foreground/80",strokeWidth:1.5}):(0,a.jsx)(n,{className:"h-3 w-3 text-foreground/70",strokeWidth:1.5})})})}},58115:(e,t,r)=>{r.r(t),r.d(t,{LinkImagePlaceholder:()=>n});var a=r(19442),s=r(66074);let i=[["#20304a","#3f6f8f"],["#2c3e34","#6f8f72"],["#4a3320","#b6783d"],["#3d2f4f","#8d6ccf"],["#263f46","#56a6a3"],["#4b2d36","#c0676f"],["#34312a","#a79055"],["#24384a","#5e7fad"]];function n({url:e,label:t,className:r,showDomain:l=!0}){let[o,d]=(0,s.useState)(!1),c=t;try{c=new URL(e).hostname.replace(/^www\./,"")}catch{}let[u,m]=function(e){let t=0;for(let r of e)t=(31*t+r.charCodeAt(0))%i.length;return i[Math.abs(t)]}(c),h=`https://icons.duckduckgo.com/ip3/${c}.ico`;return(0,a.jsx)("div",{className:r,style:{background:`radial-gradient(circle at 20% 18%, rgb(255 255 255 / 0.22), transparent 28%), linear-gradient(135deg, ${u}, ${m})`},children:(0,a.jsxs)("div",{className:"relative flex h-full flex-col items-center justify-center gap-2 overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute inset-0 opacity-20 [background-image:linear-gradient(135deg,rgb(255_255_255_/_0.22)_0_1px,transparent_1px_14px)]"}),o?(0,a.jsx)("span",{className:"relative text-2xl font-bold text-white/85",children:t.slice(0,2).toUpperCase()}):(0,a.jsx)("img",{src:h,alt:c,width:40,height:40,className:"relative size-10 rounded-xl bg-white/12 p-1 opacity-90 shadow-sm ring-1 ring-white/20",onError:()=>d(!0)}),l&&(0,a.jsx)("span",{className:"relative max-w-[90%] break-all rounded-full bg-black/12 px-2 py-0.5 text-center text-xs font-medium leading-tight text-white/75 ring-1 ring-white/10",children:c})]})})}},64e3:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(70814).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},76106:(e,t,r)=>{r.d(t,{PublicFiltersBar:()=>f});var a=r(19442),s=r(55902),i=r(6071),n=r(70169),l=r(40198),o=r(48137),d=r(35851),c=r(5999),u=r(89463),m=r(76648);let h=[{value:"website",label:"Website"},{value:"youtube",label:"YouTube"},{value:"twitter",label:"Twitter / X"},{value:"instagram",label:"Instagram"},{value:"tiktok",label:"TikTok"},{value:"github",label:"GitHub"}],p=[{value:"newest",label:"Newest first"},{value:"oldest",label:"Oldest first"},{value:"alpha",label:"Alphabetical"}];function g(e,{types:t,sort:r,view:a}){let s=new URLSearchParams;t.length>0&&s.set("type",t.join(",")),"newest"!==r&&s.set("sort",r),"grid"!==a&&s.set("view",a);let i=s.toString();return i?`${e}?${i}`:e}function f({activeTypes:e,activeSort:t,activeView:r}){let x=(0,s.useRouter)(),b=(0,s.usePathname)(),y=e.length>0||"newest"!==t;function v(a){let s={types:e,sort:t,view:r,...a};(0,m.c)("pin_public_collection_view",s.view),(0,m.c)("pin_public_collection_sort",s.sort),(0,m.c)("pin_public_collection_type",s.types.length>0?s.types.join(","):null),x.push(g(b,s))}function k(t){v({types:e.includes(t)?e.filter(e=>e!==t):[...e,t]})}let w=p.find(e=>e.value===t)?.label??"Newest first";return(0,a.jsxs)("div",{className:"mb-6 space-y-3 rounded-2xl border border-border/70 bg-background p-2.5 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)(c.AM,{children:[(0,a.jsxs)(c.Wv,{"aria-label":e.length>0?`Type, ${e.length} active`:"Type",className:(0,u.cn)("flex items-center gap-1.5 rounded-xl border bg-card px-3 text-xs font-medium shadow-sm transition-colors h-9 sm:h-7 hover:bg-muted",e.length>0&&"border-primary bg-primary/5"),children:["Type",e.length>0&&(0,a.jsx)("span",{"aria-hidden":"true",className:"rounded-full bg-primary px-1.5 py-0.5 text-[10px] text-primary-foreground",children:e.length}),(0,a.jsx)(i.A,{className:"size-3"})]}),(0,a.jsx)(c.hl,{className:"w-44",align:"start",children:(0,a.jsx)("div",{className:"space-y-2",children:h.map(({value:t,label:r})=>(0,a.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 text-sm",children:[(0,a.jsx)(d.S,{checked:e.includes(t),onCheckedChange:()=>k(t)}),r]},t))})})]}),(0,a.jsxs)(c.AM,{children:[(0,a.jsxs)(c.Wv,{"aria-label":`Sort by ${w}`,className:"flex items-center gap-1.5 rounded-xl border bg-card px-3 text-xs font-medium shadow-sm transition-colors h-9 sm:h-7 hover:bg-muted",children:[w,(0,a.jsx)(i.A,{className:"size-3"})]}),(0,a.jsx)(c.hl,{className:"w-44",align:"start",children:(0,a.jsx)("div",{role:"menu",className:"space-y-0.5",children:p.map(({value:e,label:r})=>(0,a.jsx)("button",{type:"button",onClick:()=>v({sort:e}),role:"menuitemradio","aria-checked":t===e,className:(0,u.cn)("flex w-full items-center rounded px-2 py-1.5 text-xs hover:bg-muted",t===e?"font-medium text-foreground":"text-muted-foreground"),children:r},e))})})]}),y&&(0,a.jsxs)("button",{type:"button",onClick:()=>{(0,m.c)("pin_public_collection_type",null),(0,m.c)("pin_public_collection_sort","newest"),x.push(g(b,{types:[],sort:"newest",view:r}))},className:"flex h-9 items-center gap-1 px-2 text-xs text-muted-foreground hover:text-foreground sm:h-7 sm:px-1",children:[(0,a.jsx)(n.A,{className:"size-3"})," Clear all"]}),(0,a.jsxs)("div",{className:"ml-auto flex items-center rounded-xl border bg-card p-0.5",children:[(0,a.jsx)("button",{type:"button","aria-label":"Grid view","aria-pressed":"grid"===r,onClick:()=>v({view:"grid"}),style:{borderRadius:"0.925rem"},className:(0,u.cn)("view-toggle-item flex size-8 items-center justify-center transition-colors sm:size-6","grid"===r?"bg-foreground text-background":"text-muted-foreground hover:text-foreground"),children:(0,a.jsx)(l.A,{className:"size-3.5"})}),(0,a.jsx)("button",{type:"button","aria-label":"List view","aria-pressed":"list"===r,onClick:()=>v({view:"list"}),style:{borderRadius:"0.925rem"},className:(0,u.cn)("view-toggle-item flex size-8 items-center justify-center transition-colors sm:size-6","list"===r?"bg-foreground text-background":"text-muted-foreground hover:text-foreground"),children:(0,a.jsx)(o.A,{className:"size-3.5"})})]})]}),e.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.map(e=>{let t=h.find(t=>t.value===e)?.label??e;return(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-muted px-2.5 py-0.5 text-xs",children:[t,(0,a.jsx)("button",{type:"button",onClick:()=>k(e),"aria-label":`Remove ${t} filter`,className:"text-muted-foreground hover:text-foreground",children:(0,a.jsx)(n.A,{className:"size-3"})})]},e)})})]})}},76648:(e,t,r)=>{r.d(t,{c:()=>a});function a(e,t){if("u">typeof document){if(null===t||""===t){document.cookie=`${e}=; path=/; max-age=0; SameSite=Lax`;return}document.cookie=`${e}=${encodeURIComponent(t)}; path=/; max-age=31536000; SameSite=Lax`}}},80427:(e,t,r)=>{r.d(t,{CopyShareButton:()=>o});var a=r(19442),s=r(66074),i=r(92805),n=r(909),l=r(72927);
1function o(){let[e,t]=(0,s.useState)(!1);async function r(){await navigator.clipboard.writeText(window.location.href),t(!0),l.oR.success("URL copied to clipboard"),setTimeout(()=>t(!1),2e3)}return(0,a.jsxs)("button",{type:"button",onClick:r,className:"flex items-center gap-1.5 rounded-lg border border-background/20 bg-background/10 px-3 py-1.5 text-sm text-background/80 transition-colors hover:bg-background/20",children:[e?(0,a.jsx)(i.A,{className:"size-3.5"}):(0,a.jsx)(n.A,{className:"size-3.5"}),e?"Copied!":"Share"]})}},89463:(e,t,r)=>{r.d(t,{cn:()=>i});var a=r(30142),s=r(79317);function i(...e){return(0,s.QP)((0,a.$)(e))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.