1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5314],{30891:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>el});var r=a(95155),i=a(12115),s=a(14871),n=a(98500),l=a.n(n),o=a(73321),d=a(33121),c=a(13235),u=a(39127),p=a(73246),m=a(18848),h=a(71830);let f={animals:"bg-emerald-500/10 border-emerald-500/20",nature:"bg-green-500/10 border-green-500/20",flowers:"bg-pink-500/10 border-pink-500/20",love:"bg-rose-500/10 border-rose-500/20",travel:"bg-sky-500/10 border-sky-500/20",art:"bg-violet-500/10 border-violet-500/20",birthday:"bg-amber-500/10 border-amber-500/20",party:"bg-orange-500/10 border-orange-500/20",christmas:"bg-red-500/10 border-red-500/20",newyear:"bg-indigo-500/10 border-indigo-500/20",baby:"bg-yellow-500/10 border-yellow-500/20",wedding:"bg-fuchsia-500/10 border-fuchsia-500/20",celebrations:"bg-teal-500/10 border-teal-500/20",festivals:"bg-purple-500/10 border-purple-500/20",everything:"bg-slate-500/10 border-slate-500/20"};function g(e){let t=[];return e.categories.forEach(e=>{let a=e.trim().toLowerCase().replace(/\s+/g," ");t.push({id:`category-${e}`,kind:"category",label:e,category:e,tintClass:f[a]})}),e.styles.forEach(e=>{t.push({id:`style-${e}`,kind:"style",label:e,style:e})}),e.types.forEach(e=>{t.push({id:`type-${e}`,kind:"type",label:e,type:e})}),t}var b=a(70115);let y={en:{styles:{abstract:"Abstract",anime:"Anime",cartoon:"Cartoon","flat design":"Simple",photorealistic:"Photo",vintage:"Vintage"},categories:{animals:"Animals \uD83D\uDC3E",art:"Art \uD83C\uDFA8",baby:"Baby \uD83D\uDC76",birthday:"Birthday \uD83C\uDF82",celebrations:"Celebrations \uD83C\uDF89",christmas:"Christmas \uD83C\uDF84",everything:"Everything \uD83C\uDF0D",festivals:"Festivals \uD83C\uDFAD",flowers:"Flowers \uD83C\uDF38",love:"Love â¤ï¸",nature:"Nature \uD83C\uDF3F",newyear:"New Year \uD83C\uDF86",party:"Party \uD83E\uDD73",travel:"Travel âï¸",wedding:"Wedding \uD83D\uDC8D"}},nl:{styles:{abstract:"Abstract",anime:"Anime",cartoon:"Cartoon","flat design":"Simpel",photorealistic:"Foto",vintage:"Vintage"},categories:{animals:"Dieren \uD83D\uDC3E",art:"Kunst \uD83C\uDFA8",baby:"Baby \uD83D\uDC76",birthday:"Verjaardag \uD83C\uDF82",celebrations:"Vieringen \uD83C\uDF89",christmas:"Kerst \uD83C\uDF84",everything:"Alles \uD83C\uDF0D",festivals:"Festivals \uD83C\uDFAD",flowers:"Bloemen \uD83C\uDF38",love:"Liefde â¤ï¸",nature:"Natuur \uD83C\uDF3F",newyear:"Nieuwjaar \uD83C\uDF86",party:"Feest \uD83E\uDD73",travel:"Reizen âï¸",wedding:"Bruiloft \uD83D\uDC8D"}},ar:{styles:{abstract:"ØªØ¬Ø±ÙØ¯Ù",anime:"Ø£ÙÙ
Ù",cartoon:"ÙØ±ØªÙÙÙ","flat design":"Ø¨Ø³ÙØ·",photorealistic:"ÙØ§ÙعÙ",vintage:"ÙÙØ§Ø³ÙÙÙ"},categories:{animals:"ØÙÙØ§Ùات \uD83D\uDC3E",art:"ÙÙ \uD83C\uDFA8",baby:"Ø£Ø·ÙØ§Ù \uD83D\uDC76",birthday:"Ø¹ÙØ¯ Ù
ÙÙØ§Ø¯ \uD83C\uDF82",celebrations:"Ø§ØØªÙØ§ÙØ§Øª \uD83C\uDF89",christmas:"Ø¹ÙØ¯ اÙÙ
ÙÙØ§Ø¯ \uD83C\uDF84",everything:"اÙÙÙ \uD83C\uDF0D",festivals:"Ù
ÙØ±Ø¬Ø§Ùات \uD83C\uDFAD",flowers:"زÙÙØ± \uD83C\uDF38",love:"ØØ¨ â¤ï¸",nature:"Ø·Ø¨ÙØ¹Ø© \uD83C\uDF3F",newyear:"رأس Ø§ÙØ³ÙØ© \uD83C\uDF86",party:"ØÙÙØ© \uD83E\uDD73",travel:"Ø³ÙØ± âï¸",wedding:"Ø²ÙØ§Ù \uD83D\uDC8D"}},zh:{styles:{abstract:"æ½è±¡",anime:"卿¼«",cartoon:"å¡é","flat design":"ç®çº¦",photorealistic:"åå®",vintage:"å¤å¤"},categories:{animals:"å¨ç© \uD83D\uDC3E",art:"èºæ¯ \uD83C\uDFA8",baby:"å®å® \uD83D\uDC76",birthday:"çæ¥ \uD83C\uDF82",celebrations:"åºç¥ \uD83C\uDF89",christmas:"å£è¯ \uD83C\uDF84",everything:"å
¨é¨ \uD83C\uDF0D",festivals:"èæ¥ \uD83C\uDFAD",flowers:"è±å \uD83C\uDF38",love:"ç±æ
â¤ï¸",nature:"èªç¶ \uD83C\uDF3F",newyear:"æ°å¹´ \uD83C\uDF86",party:"派对 \uD83E\uDD73",travel:"æ
è¡ âï¸",wedding:"å©ç¤¼ \uD83D\uDC8D"}},fr:{styles:{abstract:"Abstrait",anime:"Anime",cartoon:"Dessin anim\xe9","flat design":"Simple",photorealistic:"R\xe9aliste",vintage:"Vintage"},categories:{animals:"Animaux \uD83D\uDC3E",art:"Art \uD83C\uDFA8",baby:"B\xe9b\xe9 \uD83D\uDC76",birthday:"Anniversaire \uD83C\uDF82",celebrations:"C\xe9l\xe9brations \uD83C\uDF89",christmas:"No\xebl \uD83C\uDF84",everything:"Tout \uD83C\uDF0D",festivals:"Festivals \uD83C\uDFAD",flowers:"Fleurs \uD83C\uDF38",love:"Amour â¤ï¸",nature:"Nature \uD83C\uDF3F",newyear:"Nouvel An \uD83C\uDF86",party:"F\xeate \uD83E\uDD73",travel:"Voyage âï¸",wedding:"Mariage \uD83D\uDC8D"}},hi:{styles:{abstract:"à¤
मà¥à¤°à¥à¤¤",anime:"à¤à¤¨à¥à¤®à¥",cartoon:"à¤à¤¾à¤°à¥à¤à¥à¤¨","flat design":"सरल",photorealistic:"यथारà¥à¤¥",vintage:"à¤à¥à¤²à¤¾à¤¸à¤¿à¤"},categories:{animals:"à¤à¤¾à¤¨à¤µà¤° \uD83D\uDC3E",art:"à¤à¤²à¤¾ \uD83C\uDFA8",baby:"बà¤à¥à¤à¥ \uD83D\uDC76",birthday:"à¤à¤¨à¥à¤®à¤¦à¤¿à¤¨ \uD83C\uDF82",celebrations:"à¤à¤¤à¥à
1¤¸à¤µ \uD83C\uDF89",christmas:"à¤à¥à¤°à¤¿à¤¸à¤®à¤¸ \uD83C\uDF84",everything:"सब à¤à¥à¤ \uD83C\uDF0D",festivals:"तà¥à¤¯à¥à¤¹à¤¾à¤° \uD83C\uDFAD",flowers:"फà¥à¤² \uD83C\uDF38",love:"पà¥à¤¯à¤¾à¤° â¤ï¸",nature:"पà¥à¤°à¤à¥à¤¤à¤¿ \uD83C\uDF3F",newyear:"नव वरà¥à¤· \uD83C\uDF86",party:"पारà¥à¤à¥ \uD83E\uDD73",travel:"यातà¥à¤°à¤¾ âï¸",wedding:"शादॠ\uD83D\uDC8D"}},id:{styles:{abstract:"Abstrak",anime:"Anime",cartoon:"Kartun","flat design":"Sederhana",photorealistic:"Realistis",vintage:"Klasik"},categories:{animals:"Hewan \uD83D\uDC3E",art:"Seni \uD83C\uDFA8",baby:"Bayi \uD83D\uDC76",birthday:"Ulang Tahun \uD83C\uDF82",celebrations:"Perayaan \uD83C\uDF89",christmas:"Natal \uD83C\uDF84",everything:"Semua \uD83C\uDF0D",festivals:"Festival \uD83C\uDFAD",flowers:"Bunga \uD83C\uDF38",love:"Cinta â¤ï¸",nature:"Alam \uD83C\uDF3F",newyear:"Tahun Baru \uD83C\uDF86",party:"Pesta \uD83E\uDD73",travel:"Perjalanan âï¸",wedding:"Pernikahan \uD83D\uDC8D"}},ja:{styles:{abstract:"æ½è±¡",anime:"ã¢ãã¡",cartoon:"ã«ã¼ãã¥ã¼ã³","flat design":"ã·ã³ãã«",photorealistic:"åå®",vintage:"ã¯ã©ã·ãã¯"},categories:{animals:"åç© \uD83D\uDC3E",art:"ã¢ã¼ã \uD83C\uDFA8",baby:"ããã¼ \uD83D\uDC76",birthday:"èªçæ¥ \uD83C\uDF82",celebrations:"ãç¥ã \uD83C\uDF89",christmas:"ã¯ãªã¹ãã¹ \uD83C\uDF84",everything:"ãã¹ã¦ \uD83C\uDF0D",festivals:"ç¥ã \uD83C\uDFAD",flowers:"è± \uD83C\uDF38",love:"æ â¤ï¸",nature:"èªç¶ \uD83C\uDF3F",newyear:"æ°å¹´ \uD83C\uDF86",party:"ãã¼ãã£ã¼ \uD83E\uDD73",travel:"æ
è¡ âï¸",wedding:"çµå©å¼ \uD83D\uDC8D"}},ko:{styles:{abstract:"ì¶ì",anime:"ì ë",cartoon:"ë§í","flat design":"ì¬í",photorealistic:"ì¬ì¤ì ",vintage:"í´ëì"},categories:{animals:"ë물 \uD83D\uDC3E",art:"ìì \uD83C\uDFA8",baby:"ì기 \uD83D\uDC76",birthday:"ìì¼ \uD83C\uDF82",celebrations:"ì¶í \uD83C\uDF89",christmas:"í¬ë¦¬ì¤ë§ì¤ \uD83C\uDF84",everything:"ì ì²´ \uD83C\uDF0D",festivals:"ì¶ì \uD83C\uDFAD",flowers:"ê½ \uD83C\uDF38",love:"ì¬ë â¤ï¸",nature:"ìì° \uD83C\uDF3F",newyear:"ìí´ \uD83C\uDF86",party:"íí° \uD83E\uDD73",travel:"ì¬í âï¸",wedding:"ê²°í¼ì \uD83D\uDC8D"}},pt:{styles:{abstract:"Abstrato",anime:"Anime",cartoon:"Cartoon","flat design":"Simples",photorealistic:"Realista",vintage:"Cl\xe1ssico"},categories:{animals:"Animais \uD83D\uDC3E",art:"Arte \uD83C\uDFA8",baby:"Beb\xea \uD83D\uDC76",birthday:"Anivers\xe1rio \uD83C\uDF82",celebrations:"Celebra\xe7\xf5es \uD83C\uDF89",christmas:"Natal \uD83C\uDF84",everything:"Tudo \uD83C\uDF0D",festivals:"Festivais \uD83C\uDFAD",flowers:"Flores \uD83C\uDF38",love:"Amor â¤ï¸",nature:"Natureza \uD83C\uDF3F",newyear:"Ano Novo \uD83C\uDF86",party:"Festa \uD83E\uDD73",travel:"Viagem âï¸",wedding:"Casamento \uD83D\uDC8D"}},ru:{styles:{abstract:"ÐбÑÑÑакÑнÑй",anime:"Ðниме",cartoon:"ÐÑлÑÑÑÑнÑй","flat design":"ÐÑоÑÑой",photorealistic:"РеалиÑÑиÑнÑй",vintage:"ÐлаÑÑиÑеÑкий"},categories:{animals:"ÐивоÑнÑе \uD83D\uDC3E",art:"ÐÑкÑÑÑÑво \uD83C\uDFA8",baby:"ÐалÑÑи \uD83D\uDC76",birthday:"ÐÐµÐ½Ñ ÑÐ¾Ð¶Ð´ÐµÐ½Ð¸Ñ \uD83C\uDF82",celebrations:"ÐÑаздники \uD83C\uDF89",christmas:"РождеÑÑво \uD83C\uDF84",everything:"ÐÑе \uD83C\uDF0D",festivals:"ФеÑÑивали \uD83C\uDFAD",flowers:"ЦвеÑÑ \uD83C\uDF38",love:"ÐÑÐ±Ð¾Ð²Ñ â¤ï¸",nature:"ÐÑиÑода \uD83C\uDF3F",newyear:"ÐовÑй год \uD83C\uDF86",party:"ÐеÑеÑинка \uD83E\uDD73",travel:"ÐÑÑеÑеÑÑÐ²Ð¸Ñ âï¸",wedding:"СвадÑба \uD83D\uDC8D"}},es:{styles:{abstract:"Abstracto",anime:"Anime",cartoon:"Caricatura","flat design":"Simple",photorealistic:"Realista",vintage:"Cl\xe1sico"},categories:{animals:"Animales \uD83D\uDC3E",art:"Arte \uD83C\uDFA8",baby:"Beb\xe9 \uD83D\uDC76",birthday:"Cumplea\xf1os \uD83C\uDF82",celebrations:"Celebraciones \uD83C\uDF89",christmas:"Navidad \uD83C\uDF84",everything:"Todo \uD83C\uDF0D",festivals:"Festivales \uD83C\uDFAD",flowers:"Flores \uD83C\uDF38",love:"Amor â¤ï¸",nature:"Naturaleza \uD83C\uDF3F",newyear:"A\xf1o Nuevo \uD83C\uDF86",party:"Fiesta \uD83E\uDD73",travel:"Viajes âï¸",wedding:"Boda \uD83D\uDC8D"}},th:{styles:{abstract:"à¸à¸²à¸¡à¸à¸£à¸£à¸¡",anime:"à¸à¸à¸´à¹à¸¡à¸°",cartoon:"à¸à¸²à¸£à¹à¸à¸¹à¸","flat design":"à¹à¸£à¸µà¸¢à¸à¸à¹à¸²à¸¢",photorealistic:"สมà¸à¸£à¸´à¸",vintage:"à¸à¸¥à¸²à¸ªà¸ªà¸´à¸"},categories:{animals:"สัà¸à¸§à¹ \uD83D\uDC3E",art:"ศิลà¸à¸° \uD83C\uDFA8",baby:"à¹à¸à¹à¸ \uD83D\uDC76",birthday:"วัà¸à¹à¸à¸´à¸ \uD83C\uDF82",celebrations:"à¸à¸²à¸à¹à¸à¸¥à¸´à¸¡à¸à¸¥à¸à¸ \uD83C\uDF89",christmas:"à¸à¸£à¸´à¸ªà¸à¹à¸¡à¸²à¸ª \uD83C\uDF84",everything:"à¸à¸±à¹à¸à¸«à¸¡à¸ \uD83C\uDF0D",festivals:"à¹à¸à¸¨à¸à¸²à¸¥ \uD83C\uDFAD",flowers:"à¸à¸à¸à¹à¸¡à¹ \uD83C\uDF38",love:"à¸à¸§à¸²à¸¡à¸£à¸±à¸ â¤ï¸",nature:"à¸à¸£à¸£à¸¡à¸à¸²à¸à¸´ \uD83C\uDF3F",newyear:"à¸à¸µà¹à¸«à¸¡à¹ \uD83C\uDF86",party:"à¸à¸²à¸£à¹à¸à¸µà¹ \uD83E\uDD73",travel:"à¸à¸²à¸£à¹à¸à¸´à¸à¸à¸²à¸ âï¸",wedding:"à¸à¸²à¸à¹à¸à¹à¸ \uD83D\uDC8D"}},tr:{styles:{abstract:"Soyut",anime:"Anime",cartoon:"\xc7izgi","flat design":"Sade",photorealistic:"Ger\xe7ek\xe7i",vintage:"Klasik"},categories:{animals:"Hayvanlar \uD83D\uDC3E",art:"Sanat \uD83C\uDFA8",baby:"Bebek \uD83D\uDC76",birthday:"DoÄum G\xfcn\xfc \uD83C\uDF82",celebrations:"Kutlamalar \uD83C\uDF89",christmas:"Noel \uD83C\uDF84",everything:"Hepsi \uD83C\uDF0D",festivals:"Festivaller \uD83C\uDFAD",flowers:"\xc7i\xe7ekler \uD83C\uDF38",love:"AÅk â¤ï¸",nature:"DoÄa \uD83C\uDF3F",newyear:"Yeni Yıl \uD83C\uDF86",party:"Parti \uD83E\uDD73",travel:"Seyahat âï¸",wedding:"D\xfcÄ\xfcn \uD83D\uDC8D"}},vi:{styles:{abstract:"Trừu tượng",anime:"Anime",cartoon:"Hoạt h\xecnh","flat design":"ÄÆ¡n giản",photorealistic:"Ch\xe2n thá»±c",vintage:"Cá» Äiá»n"},categories:{animals:"Äá»ng váºt \uD83D\uDC3E",art:"Nghá» thuáºt \uD83C\uDFA8",baby:"Em b\xe9 \uD83D\uDC76",birthday:"Sinh nháºt \uD83C\uDF82",celebrations:"Ká»· niá»m \uD83C\uDF89",christmas:"Gi\xe1ng Sinh \uD83C\uDF84",everything:"Tất cả \uD83C\uDF0D",festivals:"Lá»
há»i \uD83C\uDFAD",flowers:"Hoa \uD83C\uDF38",love:"T\xecnh y\xeau â¤ï¸",nature:"Thi\xean nhi\xean \uD83C\uDF3F",newyear:"NÄm má»i \uD83C\uDF86",party:"Tiá»c \uD83E\uDD73",travel:"Du lá»ch âï¸",wedding:"Ä\xe1m cưá»i \uD83D\uDC8D"}}};function x(e){return e.trim().toLowerCase().replace(/\s+/g," ")}
1function v(e,t){let a=e.trim(),r=t[x(a)],i="string"==typeof r&&""!==r.trim(),s=i?r.trim():a;if(!i)return{label:s,emoji:""};let n=s.split(/\s+/),l=n.at(-1)??"",o=/[^\x00-\x7F]/.test(l)?l:"";return{label:o?n.slice(0,-1).join(" "):s,emoji:o}}let w=[{id:"Abstract",Icon:c.sU},{id:"Anime",Icon:c.Fr},{id:"Cartoon",Icon:c.pn},{id:"Flat Design",Icon:c.D6},{id:"Photorealistic",Icon:c.i7},{id:"Vintage",Icon:c.zD}],j=null,k=null;async function N(){if(j)return j;if(k)return k;k=(async()=>{let e=await fetch("/api/searchC1?fn=search-index&scope=limited");if(!e.ok)throw Error(`Failed to load limited search index: ${e.status}`);let t=await e.json();if(!t||"object"!=typeof t||!("indexValues"in t))throw Error("Invalid limited search index response");let{indexValues:a}=t;return j=a,a})();try{return await k}finally{k=null}}function P({indexValues:e,canAccessFavoritesFeed:t,onClose:a}){let{setFilter:s}=(0,m.$A)(),{ensureLocalSearchBatch:n}=(0,p.C)(),l=(0,i.useContext)(b.R);if(!l)throw Error("SearchOverlay must be used within a RegionalProvider");let o=y[l.regional.language],[d,u]=(0,i.useState)(null),[f,j]=(0,i.useState)(!1),[k,C]=(0,i.useState)(!1),[S,A]=(0,i.useState)("all"),[M,T]=(0,i.useState)([]),[E,I]=(0,i.useState)([]),F="limited"===S&&null!==d?d:e,$=(0,i.useCallback)(async e=>{if("favorites"===e){if(!t||k)return;A("favorites"),T([]),I([]),C(!0);try{s({scope:"favorites",categories:[],styles:[],types:[]}),a()}finally{C(!1)}return}if(!k&&(A(e),T([]),I([]),"limited"===e)){j(!0);try{let e=await N();u(e)}finally{j(!1)}return}},[t,k,a,s]),U=(0,i.useMemo)(()=>g(F),[F]),R=(0,i.useMemo)(()=>{let e=new Map;for(let t of F.styles)"string"==typeof t&&t.trim().length>0&&e.set(x(t),t);return e},[F.styles]),z=(0,i.useMemo)(()=>w.some(e=>R.has(x(e.id))),[R]),B=(0,i.useMemo)(()=>U.filter(e=>M.includes(e.id)),[U,M]),L=(0,i.useMemo)(()=>E.map(e=>{let t=x(e),a=R.get(t);if(!a)throw Error(`Selected style not found in indexValues.styles: ${e}`);return a}),[R,E]),W="limited"===S&&!f||M.length>0||E.length>0,O=(0,i.useMemo)(()=>U.filter(e=>"category"===e.kind).slice().sort((e,t)=>e.label.localeCompare(t.label)),[U]);async function V(){if(k||"limited"!==S&&0===M.length&&0===E.length)return;let e=B.filter(e=>"category"===e.kind&&e.category).map(e=>e.category);C(!0);try{"limited"!==S&&await n(),s({scope:"limited"===S?"limited":void 0,categories:e,styles:L,types:[]}),a()}finally{C(!1)}}let _=k||"limited"===S&&f,K=W&&!_;return(0,r.jsx)("div",{className:"app-dialog-safe-viewport fixed inset-0 z-60 flex items-center justify-center bg-black/70",onClick:function(e){e.stopPropagation(),k||a()},children:(0,r.jsx)("div",{className:"relative w-full max-w-[480px] px-6",children:(0,r.jsxs)("div",{className:"mt-10 max-h-[80vh] rounded-2xl bg-white border border-black/10 shadow-xl overflow-hidden relative flex flex-col",onClick:function(e){e.stopPropagation()},children:[(0,r.jsxs)("div",{className:"grid w-full border-b border-black/10 [grid-template-columns:minmax(max-content,1fr)_minmax(max-content,1fr)_minmax(max-content,1fr)]",children:[(0,r.jsx)("button",{type:"button",onClick:()=>$("all"),className:`w-full -mb-px flex items-center justify-center px-4 py-2 text-base transition-colors rounded-tl-2xl border border-black/10 ${"all"===S?"bg-white text-black font-bold border-b-0 relative z-10":"bg-black/5 text-gray-700 font-semibold"}`,children:(0,r.jsx)(c.qz,{className:"w-5 h-5"})}),(0,r.jsx)("div",{className:`-mb-px border border-black/10 ${"limited"===S?"bg-white border-b-0 relative z-10":"bg-black/5"}`,children:(0,r.jsx)("button",{type:"button",onClick:()=>$("limited"),className:`w-full text-center px-4 py-2 text-base transition-colors ${"limited"===S?"text-black font-semibold":"text-gray-700 font-medium"}`,children:"Limited Editions"})}),(0,r.jsx)("button",{type:"button",disabled:!t,onClick:t?()=>$("favorites"):void 0,className:`w-full -mb-px px-4 py-2 text-base transition-colors rounded-tr-2xl border border-black/10 ${"favorites"===S?"bg-white text-black font-medium border-b-0 relative z-10":t?"bg-black/5 text-gray-700 font-medium":"bg-black/5 text-black/30 font-medium cursor-default"}`,children:"Favorites"})]}),(0,r.jsxs)("div",{className:"relative px-4 pt-2",children:[(0,r.jsx)("button",{type:"button","aria-label":"Close",disabled:k,onClick:k?void 0:a,className:"absolute top-2 right-3 h-7 w-7 rounded-full border border-gray-300 flex items-center justify-center disabled:opacity-60",children:(0,r.jsx)(c.X,{className:"w-4 h-4 text-gray-700"})}),(0,r.jsxs)("div",{className:"mt-10 mb-5",children:[(0,r.jsx)("div",{className:"flex items-center justify-between gap-2",children:w.map(e=>{let t=R.has(x(e.id)),a=E.includes(e.id),i=e.Icon,s=!t;return(0,r.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,r.jsx)("button",{type:"button","aria-label":e.id,disabled:s,onClick:s?void 0:()=>{var t;return t=e.id,void I(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:`flex h-10 w-10 items-center justify-center rounded-full border transition-colors ${a?"bg-[#5daac6] text-white border-[#5daac6]":s?"bg-black/5 text-black/25 border-black/10":"bg-[#5daac6]/15 text-black/70 border-[#5daac6]/30"}`,children:(0,r.jsx)(i,{className:"h-5 w-5"})}),(0,r.jsx)("span",{className:`text-xs leading-none ${a?"text-gray-900 font-medium":s?"text-black/30":"text-gray-700"}`,children:(()=>{let t=x(e.id),a=o.styles[t];if("string"!=typeof a||""===a.trim())throw Error(`Missing SearchOverlay style translation for key: ${t}`);return a})()})]},e.id)})}),z?null:(0,r.jsx)("div",{className:"mt-2 text-sm text-gray-700",children:"No styles available."})]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto px-4 pb-6",children:O.length>0&&(0,r.jsx)("div",{className:"mt-2 mb-6",children:(0,r.jsx)("div",{className:"grid grid-cols-2 gap-3",children:O.map(e=>{let t,a=M.includes(e.id);return(0,r.jsx)("button",{type:"button",className:`w-full h-9 flex items-center justify-center rounded-full border px-3 text-base font-semibold transition-colors ${a?"bg-[#5daac6] text-white border-[#5daac6]":`${e.tintClass??"bg-white border-black/20"} text-black/80`}`,onClick:()=>{T(t=>t.includes(e.id)?t.filter(t=>t!==e.id):[...t,e.id])},children:(t=v((e.category??e.label).toString(),o.categories),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-base leading-none",children:t.label}),t.emoji?(0,r.jsx)("span",{className:"text-2xl leading-none ml-1",children:t.emoji}):null]}))},e.id)})})})}),(0,r.jsx)("div",{className:"px-4 py-4",children:(0,r.jsx)("div",{className:"w-full",children:(0,r.jsxs)("button",{type:"button",className:"w-full py-2 rounded-lg text-lg text-white font-semibold flex items-center justify-center gap-2 transition-opacity disabled:cursor-not-allowed",style:{backgroundColor:"#5daac6",opacity:K?1:.6},disabled:!K,"aria-busy":_,onClick:K?()=>{V()}:void 0,children:[(0,r.jsx)("span",{children:"Search"}),(0,r.jsx)("span",{className:"inline-flex h-5 w-5 shrink-0 items-center justify-center",children:_?(0,r.jsx)(h.A,{className:"h-5 w-5"}):(0,r.jsx)(c.vj,{className:"w-5 h-5"})})]})})})]})})})}var C=a(64031);function S(){}async function A(e){let t=e.byteLength===e.buffer.byteLength?e:ne
1w Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)),a=0===t.byteOffset&&t.byteLength===t.buffer.byteLength?t.buffer:t.slice().buffer;return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",a))).map(e=>e.toString(16).padStart(2,"0")).join("")}async function M(e){if(S(),!("createImageBitmap"in window))throw Error("Browser does not support createImageBitmap");return await createImageBitmap(e)}function T(e,t,a,r){let i=Math.min(1,a/Math.max(1,e),r/Math.max(1,t));return{width:Math.max(1,Math.round(e*i)),height:Math.max(1,Math.round(t*i))}}function E(e,t,a,r,i,s,n){let l=document.createElement("canvas");l.width=s,l.height=n;let o=l.getContext("2d",{willReadFrequently:!0});if(!o)throw Error("Canvas 2D context is not available");return o.drawImage(e,t,a,r,i,0,0,s,n),o.getImageData(0,0,s,n)}async function I(e,t,a){let r;if(t>a){let i,{sx:s,sy:n,sw:l,sh:o}=(i=Math.min(t,a),{sx:Math.max(0,Math.floor((t-i)/2)),sy:Math.max(0,Math.floor((a-i)/2)),sw:i,sh:i}),d=T(l,o,1080,1080);r=E(e,s,n,l,o,d.width,d.height)}else{let{sx:i,sy:s,sw:n,sh:l}=function(e,t){let a=9/16;if(e/t>=9/16)return{sx:0,sy:0,sw:e,sh:t};let r=Math.max(1,Math.floor(e/a));return{sx:0,sy:Math.max(0,Math.floor((t-r)/2)),sw:e,sh:r}}(t,a),o=T(n,l,1080,1920);r=E(e,i,s,n,l,o.width,o.height)}let i=86,s=new Uint8Array(await (0,C.A)(r,{quality:i}));for(;s.byteLength>1228800&&i>68&&(i=Math.max(68,i-4),s=new Uint8Array(await (0,C.A)(r,{quality:i})),68!==i););if(s.byteLength>1228800)throw Error("Output WebP exceeds 1.2 MB at minimum quality");return s}async function F(e,t){if(!e)throw Error("No file provided");let a=(e.type||"").toLowerCase();if(!a.startsWith("image/"))throw Error("Invalid file type. Only still images are supported here");if("image/gif"===a)throw Error("GIF not supported in imageConvert; use video pipeline");let r=await M(e),i=("naturalWidth"in r?r.naturalWidth:r.width)||r.width,s=("naturalHeight"in r?r.naturalHeight:r.height)||r.height,n=await I(r,i,s),l=function(e){let t=(e||"").trim();if(!t)throw Error("creator is required for naming");if(/\s/.test(t))throw Error("creator must not contain whitespace");if(t.includes("/")||t.includes("\\"))throw Error("creator must not contain slashes");return t}(t),o=await A(n);return new File([0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n.buffer:n.slice().buffer],`${l}__${o}.webp`,{type:"image/webp"})}var $=a(57302),U=a(42539);function R(e,t){if(!e)throw Error(t)}function z(e){return/^0x[a-fA-F0-9]{40}$/.test(e.trim())}async function B(e,t){let a=await e.text();R(e.ok,a||`HTTP ${e.status}`);let r=a?JSON.parse(a):null;return R("object"==typeof r&&null!==r,t),r}async function L(){let e=await (0,U.v$)("/api/postcardReview",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:"initVideoUpload"})}),t=await B(e,"Invalid response from postcardReview");if(!("ok"in t)||!0!==t.ok){let e=t.error;throw Error("string"==typeof e?e:"Video upload init failed")}return R("string"==typeof t.uploadUrl&&t.uploadUrl.length>0,"Missing uploadUrl"),R("string"==typeof t.apiKey&&t.apiKey.length>0,"Missing apiKey"),R("string"==typeof t.signature&&t.signature.length>0,"Missing signature"),R(Number.isInteger(t.timestamp)&&t.timestamp>0,"Missing timestamp"),R("string"==typeof t.folder&&t.folder.length>0,"Missing folder"),t}async function W(e){let t=new FormData;t.append("file",e.original,e.original.name),t.append("api_key",e.signature.apiKey),t.append("timestamp",String(e.signature.timestamp)),t.append("signature",e.signature.signature),t.append("folder",e.signature.folder);let a=await fetch(e.signature.uploadUrl,{method:"POST",body:t}),r=await a.text();if(!a.ok)throw Error(r||`Cloudinary upload failed: HTTP ${a.status}`);let i=r?JSON.parse(r):null;if(R("object"==typeof i&&null!==i,"Invalid Cloudinary upload response"),i.error?.message)throw Error(i.error.message);return i}async function O(e){let t=await (0,U.v$)("/api/postcardReview",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:"finalizeVideoUpload",publicId:e.publicId,version:e.version,width:e.width,height:e.height})}),a=await B(t,"Invalid response from postcardReview");if(!("ok"in a)||!0!==a.ok){let e=a.error;throw Error("string"==typeof e?e:"Video upload finalize failed")}
1let r=a.key,i=a.filename,s=a.posterKey??null,n=a.previewUrl;return R("string"==typeof r&&r.length>0,"Missing key from postcardReview"),R("string"==typeof i&&i.length>0,"Missing filename from postcardReview"),R("string"==typeof n&&n.length>0,"Missing previewUrl from postcardReview"),R("video"===a.kind,"Upload kind mismatch"),{key:r,filename:i,kind:"video",posterKey:s,previewUrl:n}}async function V(e){var t,a;let r=function(e){let t,a,r=(e||"").trim();if(!r||!z(r)&&!(!((t=r.trim()).length<32)&&!(t.length>44)&&/^[1-9A-HJ-NP-Za-km-z]+$/.test(t)))throw Error("Please connect your wallet before uploading your Postcard.");return z(a=r.trim())?a.toLowerCase():a}(await (0,$.z)());if(!(0,U.c4)())throw Error("Wallet connected, but authentication expired. Please reconnect to continue.");let i=e.original;if(i.size>e.maxUploadBytes){let t=e.maxUploadBytes/1e6;throw Error(`File exceeds the ${t} MB limit. Please choose a smaller file.`)}if(!i.type.startsWith("image/")&&!i.type.startsWith("video/"))throw Error("Unsupported file type. Please upload an image or video file.");if(t=i.type,a=i.name,"image/gif"===t.toLowerCase()||/\.gif$/i.test(a))throw Error("GIF files are not supported. Please upload a JPG, PNG, WebP, MP4, WebM, or MOV.");if(i.type.toLowerCase().startsWith("video/")){let e=await L(),t=await W({original:i,signature:e}),a=t.public_id,r=t.version,s=t.width,n=t.height,l=t.resource_type;return R("string"==typeof a&&a.length>0,"Missing Cloudinary public_id"),R(Number.isInteger(r)&&"number"==typeof r&&r>0,"Missing Cloudinary version"),R(Number.isInteger(s)&&"number"==typeof s&&s>0,"Missing Cloudinary width"),R(Number.isInteger(n)&&"number"==typeof n&&n>0,"Missing Cloudinary height"),R("video"===l,"Cloudinary upload type mismatch"),await O({publicId:a,version:r,width:s,height:n})}let s=await F(i,r),n=new FormData;n.append("reviewUpload","true"),n.append("file",s,s.name),n.append("kind","image");let l=await (0,U.v$)("/api/postcardReview",{method:"POST",body:n}),o=await B(l,"Invalid response from postcardReview");if(!("ok"in o)||!0!==o.ok){let e=o.error;throw Error("string"==typeof e?e:"Upload failed")}let d=o.key,c=o.filename,u=o.posterKey??null,p=o.previewUrl;return R("string"==typeof p&&p.length>0,"Missing previewUrl from postcardReview"),R("string"==typeof d&&d.length>0,"Missing key from postcardReview"),R("string"==typeof c&&c.length>0,"Missing filename from postcardReview"),R("image"===o.kind,"Upload kind mismatch"),{key:d,filename:c,kind:"image",posterKey:u,previewUrl:p}}async function _(e){if(!(0,U.c4)())throw Error("Wallet connected, but authentication expired. Please reconnect to continue.");let t=Array.isArray(e.keys)?e.keys:[];if(0===t.length)throw Error("No uploaded Postcard to delete.");let a=await (0,U.v$)("/api/postcardReview",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:"delete",keys:t})}),r=await B(a,"Invalid response from postcardReview");if(!("ok"in r)||!0!==r.ok){let e=r.error;throw Error("string"==typeof e?e:"Delete failed")}}var K=a(98636),D=a(60904);let G={en:{header:"Create & Earn",sub:"Your Postcard is submitted for review. If selected, it appears in our marketplace and you earn 90% from every sale.",closing:"By clicking Confirm, you agree to the Posted.art Terms of Service.",gotIt:"Got it",uploading:"Uploading your Postcard...",tapToUpload:"Tap to upload your Postcard (image or video)"},nl:{header:"Maak & Verdien",sub:"Je Postcard wordt ingediend ter beoordeling. Als deze wordt geselecteerd, verschijnt deze in onze marketplace en ontvang je 90% van elke verkoop.",closing:"Door op Confirm te klikken, ga je akkoord met de Posted.art Terms of Service.",gotIt:"Begrepen",uploading:"Je Postcard wordt ge\xfcpload...",tapToUpload:"Tik om je Postcard te uploaden (afbeelding of video)"},ar:{header:"Ø£ÙØ´Ø¦ ÙØ§Ø¨Ø¯Ø£ Ø§ÙØ±Ø¨Ø",sub:"ÙØªÙ
إرسا٠Postcard Ø§ÙØ®Ø§Øµ ب٠ÙÙÙ
راجعة. إذا تÙ
Ø§Ø®ØªÙØ§Ø±ÙØ Ø³ÙØ¸Ùر ÙÙ marketplace Ø§ÙØ®Ø§Øµ Ø¨ÙØ§ ÙØ³ØªØØµÙ عÙÙ 90% Ù
Ù Ù٠عÙ
ÙÙØ© Ø¨ÙØ¹.",closing:"باÙÙÙØ± عÙÙ ConfirmØ ÙØ¥ÙÙ ØªÙØ§Ù٠عÙÙ Posted.art Terms of Service.",gotIt:"ØØ³ÙÙØ§",uploading:"Ø¬Ø§Ø±Ù Ø±ÙØ¹ Postcard Ø§ÙØ®Ø§Øµ بÙ...",tapToUpload:"اضغط ÙØ±Ùع Postcard (ØµÙØ±Ø© Ø£Ù ÙÙØ¯ÙÙ)"},zh:{header:"åä½å¹¶èµåæ¶ç",sub:"ä½ ç Postcard å·²æäº¤å®¡æ ¸ãå¦æè¢«éä¸ï¼å®å°åºç°å¨æä»¬ç marketplace ä¸ï¼ä½ å°ä»æ¯æ¬¡éå®ä¸è·å¾ 90% æ¶çã",closing:"ç¹å» Confirm å³è¡¨ç¤ºä½ åæ Posted.art Terms of Serviceã",gotIt:"ç¥éäº",uploading:"æ£å¨ä¸ä¼ ä½ ç Postcard...",tapToUpload:"ç¹å»ä¸ä¼ ä½ ç Postcardï¼å¾çæè§é¢ï¼"},fr:{header:"Cr\xe9ez & Gagnez",sub:"Votre Postcard est soumis \xe0 validation. S'il est s\xe9lectionn\xe9, il appara\xeetra dans notre marketplace et vous recevrez 90% de chaque vente.",closing:"En cliquant sur Confirm, vous acceptez les Posted.art Terms of Service.",gotIt:"Compris",uploading:"T\xe9l\xe9chargement de votre Postcard...",tapToUpload:"Appuyez pour t\xe9l\xe9verser votre Postcard (image ou vid\xe9o)"},hi:{header:"बनाà¤à¤ à¤à¤° à¤à¤®à¤¾à¤à¤",sub:"à¤à¤ªà¤à¤¾ Postcard समà¥à¤à¥à¤·à¤¾ à¤à¥ लिठà¤à¥à¤à¤¾ à¤à¤¯à¤¾ हà¥à¥¤ यदि à¤à¤¯à¤¨à¤¿à¤¤ हà¥à¤¤à¤¾ हà¥, तॠयह हमारॠmarketplace मà¥à¤ दिà¤à¤¾à¤ दà¥à¤à¤¾ à¤à¤° à¤à¤ªà¤à¥ हर बिà¤à¥à¤°à¥ सॠ90% पà¥à¤°à¤¾à
1¤ªà¥à¤¤ हà¥à¤à¤¾à¥¤",closing:"Confirm पर à¤à¥à¤²à¤¿à¤ à¤à¤°à¤à¥ à¤à¤ª Posted.art Terms of Service सॠसहमत हà¥à¤¤à¥ हà¥à¤à¥¤",gotIt:"ठà¥à¤ हà¥",uploading:"à¤à¤ªà¤à¤¾ Postcard à¤
पलà¥à¤¡ हॠरहा हà¥...",tapToUpload:"à¤
पना Postcard à¤
पलà¥à¤¡ à¤à¤°à¤¨à¥ à¤à¥ लिठà¤à¥à¤ª à¤à¤°à¥à¤ (à¤à¤¿à¤¤à¥à¤° या वà¥à¤¡à¤¿à¤¯à¥)"},id:{header:"Buat & Dapatkan Penghasilan",sub:"Postcard Anda telah dikirim untuk ditinjau. Jika dipilih, Postcard akan tampil di marketplace kami dan Anda memperoleh 90% dari setiap penjualan.",closing:"Dengan mengklik Confirm, Anda menyetujui Posted.art Terms of Service.",gotIt:"Mengerti",uploading:"Sedang mengunggah Postcard Anda...",tapToUpload:"Ketuk untuk mengunggah Postcard Anda (gambar atau video)"},ja:{header:"使ãã¦åçãå¾ã",sub:"ããªãã® Postcard ã¯å¯©æ»ã®ããã«éä¿¡ããã¾ãããé¸ã°ããå ´åãmarketplace ã«æ²è¼ããã売ä¸ã® 90% ãåãåãã¾ãã",closing:"Confirm ãã¯ãªãã¯ããã¨ãPosted.art Terms of Service ã«åæãããã¨ã«ãªãã¾ãã",gotIt:"äºè§£ãã¾ãã",uploading:"Postcard ãã¢ãããã¼ãä¸...",tapToUpload:"ã¿ããã㦠Postcard ãã¢ãããã¼ãï¼ç»åã¾ãã¯åç»ï¼"},ko:{header:"ë§ë¤ê³ ììµì ì»ì¼ì¸ì",sub:"ë¹ì ì Postcard ê° ê²í 를 ìí´ ì ì¶ëììµëë¤. ì íëë©´ marketplace ì ê²ìëë©°, ê° í매ë§ë¤ 90% 를 ë°ê² ë©ëë¤.",closing:"Confirm ì í´ë¦íë©´ Posted.art Terms of Service ì ëìíë ê²ì¼ë¡ ê°ì£¼ë©ëë¤.",gotIt:"íì¸íìµëë¤",uploading:"Postcard 를 ì
ë¡ëíë ì¤ì
ëë¤...",tapToUpload:"Postcard 를 ì
ë¡ëíë ¤ë©´ ííì¸ì (ì´ë¯¸ì§ ëë ë¹ëì¤)"},pt:{header:"Crie e Ganhe",sub:"Seu Postcard foi enviado para avalia\xe7\xe3o. Se for selecionado, aparecer\xe1 em nosso marketplace e voc\xea receber\xe1 90% de cada venda.",closing:"Ao clicar em Confirm, voc\xea concorda com os Posted.art Terms of Service.",gotIt:"Entendi",uploading:"Enviando seu Postcard...",tapToUpload:"Toque para enviar seu Postcard (imagem ou v\xeddeo)"},ru:{header:"СоздавайÑе и заÑабаÑÑвайÑе",sub:"ÐÐ°Ñ Postcard оÑпÑавлен на пÑовеÑкÑ. ÐÑли он бÑÐ´ÐµÑ Ð²ÑбÑан, он поÑвиÑÑÑ Ð² наÑем marketplace, и Ð²Ñ Ð¿Ð¾Ð»ÑÑиÑе 90% Ñ ÐºÐ°Ð¶Ð´Ð¾Ð¹ пÑодажи.",closing:"ÐÐ°Ð¶Ð¸Ð¼Ð°Ñ Confirm, Ð²Ñ ÑоглаÑаеÑеÑÑ Ñ Posted.art Terms of Service.",gotIt:"ÐонÑÑно",uploading:"ÐагÑÑзка ваÑего Postcard...",tapToUpload:"ÐажмиÑе, ÑÑÐ¾Ð±Ñ Ð·Ð°Ð³ÑÑзиÑÑ Postcard (изобÑажение или видео)"},es:{header:"Crea y Gana",sub:"Tu Postcard ha sido enviado para revisi\xf3n. Si es seleccionado, aparecer\xe1 en nuestro marketplace y recibir\xe1s el 90% de cada venta.",closing:"Al hacer clic en Confirm, aceptas los Posted.art Terms of Service.",gotIt:"Entendido",uploading:"Subiendo tu Postcard...",tapToUpload:"Toca para subir tu Postcard (imagen o video)"},th:{header:"สรà¹à¸²à¸à¹à¸¥à¸°à¸£à¸±à¸à¸£à¸²à¸¢à¹à¸à¹",sub:"Postcard à¸à¸à¸à¸à¸¸à¸à¸à¸¹à¸à¸ªà¹à¸à¹à¸à¸·à¹à¸à¸à¸£à¸§à¸à¸ªà¸à¸ หาà¸à¹à¸à¹à¸£à¸±à¸à¹à¸¥à¸·à¸à¸ à¸à¸°à¸à¸£à¸²à¸à¸à¹à¸ marketplace à¸à¸à¸à¹à¸£à¸² à¹à¸¥à¸°à¸à¸¸à¸à¸à¸°à¹à¸à¹à¸£à¸±à¸ 90% à¸à¸²à¸à¸à¸¸à¸à¸à¸²à¸£à¸à¸²à¸¢",closing:"à¹à¸¡à¸·à¹à¸à¸à¸¥à¸´à¸ Confirm à¹à¸ªà¸à¸à¸§à¹à¸²à¸à¸¸à¸à¸¢à¸à¸¡à¸£à¸±à¸ Posted.art Terms of Service",gotIt:"à¹à¸à¹à¸²à¹à¸à¹à¸¥à¹à¸§",uploading:"à¸à¸³à¸¥à¸±à¸à¸à¸±à¸à¹à¸«à¸¥à¸ Postcard à¸à¸à¸à¸à¸¸à¸...",tapToUpload:"à¹à¸à¸°à¹à¸à¸·à¹à¸à¸à¸±à¸à¹à¸«à¸¥à¸ Postcard à¸à¸à¸à¸à¸¸à¸ (รูà¸à¸ าà¸à¸«à¸£à¸·à¸à¸§à¸´à¸à¸µà¹à¸)"},tr:{header:"OluÅtur & Kazan",sub:"Postcard inceleme i\xe7in g\xf6nderildi. Se\xe7ilirse marketplace i\xe7inde yayınlanır ve her satıÅtan %90 kazanırsınız.",closing:"Confirm butonuna tıklayarak Posted.art Terms of Service'i kabul etmiÅ olursunuz.",gotIt:"Tamam",uploading:"Postcard y\xfckleniyor...",tapToUpload:"Postcard y\xfcklemek i\xe7in dokunun (g\xf6rsel veya video)"},vi:{header:"Tạo & Kiếm tiá»n",sub:"Postcard cá»§a bạn Ä\xe3 ÄÆ°á»£c gá»i Äá» xem x\xe9t. Nếu ÄÆ°á»£c chá»n, n\xf3 sẽ xuất hiá»n tr\xean marketplace cá»§a ch\xfang t\xf4i v\xe0 bạn nháºn 90% từ má»i lần b\xe1n.",closing:"Khi nhấn Confirm, bạn Äá»ng \xfd vá»i Posted.art Terms of Service.",gotIt:"Ä\xe3 hiá»u",uploading:"Äang tải l\xean Postcard cá»§a bạn...",tapToUpload:"Chạm Äá» tải l\xean Postcard cá»§a bạn (h\xecnh ảnh hoặc video)"}};var H=a(71060);let J="Posted.art Terms of Service";function q({isOpen:e,onClose:t,walletAddress:a,onConfirm:s}){let n,{regional:l}=(0,D.t)(),o=G[l.language],d=o.header,u=o.sub,p=o.closing,{namespace:m,evmAddress:h,evmChainId:f}=(0,H.V)(),g=(0,i.useMemo)(()=>a||("eip155"===m&&"string"==typeof h&&h.length>0?h:null),[h,m,a]),b=(0,i.useMemo)(()=>({namespace:m,evmChainId:f,hasWallet:null!==g,address:g}),[g,f,m]),y=(0,i.useMemo)(()=>(0,K.UM)(b),[b]),x=(0,i.useRef)(null),v=(0,i.useRef)(null),[w,j]=(0,i.useState)(!1),[k,N]=(0,i.useState)(null),[P,C]=(0,i.useState)(null),[S,A]=(0,i.useState)(null),[M,T]=(0,i.useState)(null),[E,I]=(0,i.useState)(null),[F,$]=(0,i.useState)(null),U=(0,i.useCallback)(()=>{N(null),j(!1),C(null),A(null),T(null),I(null),$(null),x.current&&(x.current.value="")},[]);(0,i.useEffect)(()=>{e&&queueMicrotask(()=>{U()})},[e,U]);let R=()=>{U(),t()};if((0,i.useEffect)(()=>
1{if(!e||"video"!==S)return;let t=v.current;if(!t)return;let a=t.play();void 0!==a&&a.catch(()=>{})},[e,S]),!e)return null;let z=async e=>{if(!e||0===e.length)return;let t=e[0];if(!g||!y)return void N("Please connect a supported NFT wallet before uploading your Postcard.");j(!0),N(null),P&&C(null),A(null),T(null),I(null),$(null);try{let e,a;if(!t.type.startsWith("image/")&&!t.type.startsWith("video/"))throw Error("Unsupported file type. Please upload an image or video file.");if(e=t.type,a=t.name,"image/gif"===e.toLowerCase()||/\.gif$/i.test(a))throw Error("GIF files are not supported. Please upload a JPG, PNG, WebP, MP4, WebM, or MOV.");let r=await V({original:t,maxUploadBytes:5e7});C(r.previewUrl),A(r.kind),T(r.key),I(r.filename),$(r.posterKey)}catch(e){N(e instanceof Error?e.message:"Unexpected error while uploading your Postcard.")}finally{j(!1)}},B=async()=>{if(!M)return void N("There is no uploaded Postcard to delete.");j(!0),N(null);try{let e=[M];"video"===S&&F&&e.push(F),await _({keys:e}),C(null),A(null),T(null),I(null),$(null)}catch(e){N(e instanceof Error?e.message:"Unexpected error while deleting your Postcard.")}finally{j(!1)}};return(0,r.jsx)("div",{className:"app-dialog-safe-viewport fixed inset-0 z-60 flex items-center justify-center bg-black/60",onClick:R,children:(0,r.jsxs)("div",{className:"relative bg-white rounded-2xl w-[90vw] max-w-[420px] max-h-[90vh] flex flex-col overflow-hidden",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("button",{"aria-label":"Close dialog",onClick:R,className:"absolute top-3 right-3 h-7 w-7 rounded-full border border-gray-300 flex items-center justify-center",children:(0,r.jsx)(c.X,{className:"w-4 h-4 text-gray-700"})}),(0,r.jsxs)("div",{className:"pt-5 pb-3 px-4 text-center",children:[(0,r.jsx)("h2",{className:"text-2xl font-semibold text-[#5daac6]",children:d}),(0,r.jsx)("p",{className:"mt-1 text-gray-700 text-base",children:u})]}),(0,r.jsxs)("div",{className:"flex-1 overflow-y-auto px-4 pb-4 flex flex-col items-center justify-center space-y-4",children:[(0,r.jsx)("div",{className:"w-full mx-auto rounded-xl overflow-hidden",children:(0,r.jsx)("div",{className:"w-full h-[42vh] flex items-center justify-center",children:P?"video"===S?(0,r.jsx)("video",{ref:v,muted:!0,playsInline:!0,loop:!0,preload:"auto",className:"w-full h-full object-contain","aria-label":"Preview of your Postcard video",src:P}):(0,r.jsx)("img",{src:P,alt:"Preview of your Postcard",className:"w-full h-full object-contain block"}):(0,r.jsx)("button",{type:"button",onClick:()=>{if(!w){if(!g||!y)return void N("Please connect a supported NFT wallet before uploading your Postcard.");N(null),x.current?.click()}},disabled:w,className:"w-full h-[42vh] flex items-center justify-center border border-dashed border-gray-300 rounded-xl text-base text-gray-700",children:w?o.uploading:(0,r.jsxs)("span",{className:"flex flex-col items-center leading-tight",children:[(0,r.jsx)("span",{children:o.tapToUpload}),(0,r.jsx)("span",{className:"text-sm text-gray-700 mt-1",children:"(jpg, png, webp, mp4, mov, webm â max 50MB)"})]})})})}),k&&(0,r.jsx)("p",{className:"text-sm text-red-600 text-center px-4",children:k}),(0,r.jsx)("p",{className:"text-base text-gray-700 text-center px-6",children:1===(n=p.split(J)).length?p:(0,r.jsxs)(r.Fragment,{children:[n[0],(0,r.jsx)("a",{href:"https://posted.art/terms",target:"_blank",rel:"noopener noreferrer",className:"text-[#5daac6] underline",children:J}),n.slice(1).join(J)]})})]}),(0,r.jsxs)("div",{className:"px-4 pb-4 pt-2 border-t border-gray-100 flex gap-2",children:[(0,r.jsxs)("button",{className:"flex-1 py-2 rounded-lg text-lg text-white font-semibold flex items-center justify-center gap-2 transition disabled:opacity-60",style:{backgroundColor:"#5daac6"},onClick:()=>{M&&E&&S&&(N(null),s&&s({key:M,filename:E,kind:S}),U(),t())},disabled:w||!M||!E||!S,children:[(0,r.jsx)("span",{children:"Confirm"}),(0,r.jsx)(c.aJ,{className:"w-5 h-5"})]}),(0,r.jsxs)("button",{className:"flex-1 py-2 rounded-lg text-lg font-medium border border-gray-300 text-gray-700 flex items-center justify-center gap-2 disabled:opacity-60",onClick:B,disabled:w||!M,children:[(0,r.jsx)("span",{children:"Delete"}),(0,r.jsx)(c.TB,{className:"w-5 h-5"})]})]}),(0,r.jsx)("input",{ref:x,type:"file",accept:"image/*,video/*,.mp4,.mov,.webm",className:"hidden",onChange:e=>{z(e.target.files)}})]})})}var Y=a(68766),X=a(81017),Z=a(75924),Q=a(8121),ee=a(57104);let et=i.forwardRef((e,t)=>
1(0,r.jsx)("div",{...e,ref:t,className:"grid grid-cols-3 gap-[1px] w-full"}));et.displayName="GridList";let ea=()=>(0,r.jsx)("div",{"aria-hidden":!0,style:{height:"calc(var(--app-safe-top) + 4rem)"}});function er(e){return e[0]?.trim()||null}function ei(){return()=>{}}function es(){let e=(0,X.rA)();return`${e.platform}|${e.hostProviderMode}|${e.shouldShowWpaHint?"1":"0"}`}function en(e){return"eip155"===e.namespace&&"string"==typeof e.evmAddress||"solana"===e.namespace&&"string"==typeof e.solAddress}function el(){let e=(0,o.useRouter)(),{setSelectionMode:t,setSelectedImage:a,setShareUrl:n}=(0,u.p)(),{isTelegram:h,status:f}=(0,Y.L)(),{namespace:b,evmAddress:x,evmChainId:w,solAddress:j,hasWalletAuthToken:k}=(0,H.V)(),{nfts:N,loadMore:C,ensureLocalSearchBatch:S,sessionSeed:A,isLoading:M,clearFeed:T}=(0,p.C)(),{hasActiveFilter:E,setFilter:I,indexValues:F,filter:U}=(0,m.$A)(),{regional:R}=(0,D.t)(),z=y[R.language].categories,B=i.useRef(!1),L=i.useRef(!1),W=i.useRef(null),O=i.useRef(0),V=i.useRef(0),_=i.useRef(null),G=i.useRef(null),J=i.useRef(new Map),[X,el]=i.useState(null),[eo,ed]=i.useState(!1),[ec,eu]=i.useState(!1),[ep,em]=i.useState(null),[eh,ef]=i.useState(),[eg,eb]=i.useState(!1),ey=i.useMemo(()=>(function(e){if(!e)return"";let t=[],a=(e.categories??[]).slice().sort();a.length>0&&t.push(`c=${a.join(",")}`);let r=(e.styles??[]).slice().sort();r.length>0&&t.push(`s=${r.join(",")}`);let i=(e.types??[]).slice().sort();return i.length>0&&t.push(`t=${i.join(",")}`),t.join(";")})(U??null),[U]),ex=i.useMemo(()=>!U||void 0!==U.scope&&"all"!==U.scope||1!==U.categories.length||U.styles.length>0||U.types.length>0?null:U.categories[0],[U]),ev=i.useMemo(()=>g(F).filter(e=>"category"===e.kind).sort((e,t)=>e.label.localeCompare(t.label)),[F]),ew=void 0!==eh?eh:ex,ej=null!==ew||E?null:ep,ek=null===ew&&E,eN=null===ew&&null===ej&&!E,[eP]=i.useState(()=>{let e=window.localStorage.getItem("explorePosition");if(!e)return 0;try{let t=JSON.parse(e);if(!t||"number"!=typeof t.index||t.index<0||"string"!=typeof t.seed||"string"!=typeof t.filterKey||"boolean"!=typeof t.hasFilter||!A||t.seed!==A||t.hasFilter!==E||t.filterKey!==ey)return 0;return t.index}catch{return 0}}),eC=i.useMemo(()=>{if(0===N.length)return eP;let e=N.length-1;return eP>e?e:eP},[N.length,eP]),eS=i.useCallback(()=>{if(!X)return;let e=X.getBoundingClientRect().top,t=X.querySelectorAll("[data-explore-index]"),a=null;for(let r of t){let t=Number.parseInt(r.dataset.exploreIndex??"",10);Number.isFinite(t)&&(r.getBoundingClientRect().bottom<=e+1||(a=null===a?t:Math.min(a,t)))}if(null===a)return;O.current=a;let r=E?null:function(e,t){let a=9*Math.floor(Math.max(0,t)/9),r=e.slice(a,a+9);if(9!==r.length)return null;let i=er(r[0].categories);return i&&r.every(e=>er(e.categories)===i)?i:null}(N,a);em(e=>e===r?e:r)},[E,N,X]);i.useEffect(()=>{if(!X)return;let e=X.scrollTop,t=null,a=()=>{null===t&&(t=window.requestAnimationFrame(()=>{t=null,eS()}))},r=()=>{let t=X.scrollTop,r=t-e;t<=4?(ed(!1),eu(!1)):r>6?(ed(!0),eu(!0)):r<-6&&(ed(!1),eu(!1)),e=t,a()};return X.addEventListener("scroll",r,{passive:!0}),a(),()=>{X.removeEventListener("scroll",r),null!==t&&window.cancelAnimationFrame(t)}},[X,eS]),i.useEffect(()=>{let e=window.requestAnimationFrame(eS);return()=>window.cancelAnimationFrame(e)},[N,eS]),i.useEffect(()=>{let e=G.current,t=J.current.get(ew??ej??"__for-you__");if(!e||!t)return;let a=Math.max(0,t.offsetLeft-(e.clientWidth-t.offsetWidth)/2);e.scrollTo({left:a,behavior:"smooth"})},[ev,ej,ew]);let[eA,eM]=i.useState(!1),eT=function(e){let[t,a,r]=e.split("|");return{platform:t,hostProviderMode:a,shouldShowWpaHint:"1"===r}}(i.useSyncExternalStore(ei,es,()=>"desktop|wallet|0")),eE="desktop"===eT.platform&&eT.shouldShowWpaHint,[eI,eF]=i.useState(!1),e$=i.useCallback(async()=>en(await (0,$.N)()),[]),[eU,eR]=i.useState(!1),[ez,eB]=i.useState(null),eL=i.useMemo(()=>"eip155"===b&&"string"==typeof x||"solana"===b&&"string"==typeof j,[x,b,j]),eW=k||h&&"authenticated"===f,eO=i.useMemo(()=>({namespace:h?null:b,evmChainId:h?null:"eip155"===b?w:null,hasWallet:!h&&eL,address:h?null:"eip155"===b?x:"solana"===b?j:null}),[x,w,h,eL,b,j]),eV=(0,K.UM)(eO),e_=!h&&k,eK=(0,K.CZ)({walletStatus:eO,hasJwt:e_,pausedState:"unpaused",currentR2Key:"earn"}),eD=eV&&!e_;i.useEffect(()=>{let e=new URL(window.location.href);"1"!==e.searchParams.get("openWalletConnect")||B.current||(B.current=!0,e.searchParams.delete("openWalletConnect"),window.history.replaceState({},"",`${e.pathname}${e.search}${e.hash}`),(0,Z.GY)().then(()=>{(0,Z.nV)()}).catch(e=>{console.error("[ExplorePage] Failed to open WalletConnect modal:",e)}))},[]);let eG=async()=>{let e=await (0,$.N)(),t={namespace:e.namespace,evmChainId:"eip155"===e.namespace?e.evmChainId:null,hasWallet:en(e),address:"eip155"===e.namespace?e.evmAddress:"solana"===e.namespace?e.solAddress:null};!(0,K.UM)(t)||k&&(eB("eip155"===e.namespace?e.evmAddress:null),eR(!0))};i.useEffect(()=>{M||(L.current=!1)},[M]);let eH=i.useCallback(()=>{L.current||(L.current=!0,T())},[T]),eJ=i.useCallback(async e=>{let t=void 0!==eh?eh:ex,a=null!==e&&e===t?null:e;if(null===a&&null===t&&!E)return;if(null!==a&&null===_.current){let e=Math.min(Math.max(0,O.current),Math.max(0,N.length-1)),t=N[e];
1t&&(_.current={id:t.id,index:e})}let r=V.current+1;V.current=r,ef(a),eb(!0),ed(!1),eu(!1);try{if(null!==a&&await S(),V.current!==r)return;I(null===a?null:{scope:void 0,categories:[a],styles:[],types:[]})}catch(e){if(V.current!==r)return;console.error("[ExplorePage] Failed to apply category:",e),ef(void 0),eb(!1)}},[S,ex,E,N,eh,I]);i.useEffect(()=>{if(void 0===eh||M)return;if(null!==eh){if(ex!==eh||N.length>0&&!N.every(e=>e.categories.includes(eh)))return;let e=window.requestAnimationFrame(()=>{ef(void 0),eb(!1),W.current?.scrollToIndex({index:0,align:"start"})});return()=>window.cancelAnimationFrame(e)}if(null!==U)return;let e=window.setTimeout(()=>{let e=_.current;if(e){let t=N.findIndex(t=>t.id===e.id);W.current?.scrollToIndex({index:t>=0?t:e.index,align:"start"})}_.current=null,ef(void 0),eb(!1)},80);return()=>window.clearTimeout(e)},[ex,U,M,N,eh]);let eq=i.useCallback(e=>(0,r.jsx)("div",{...e}),[]),eY=i.useMemo(()=>({List:et,Item:eq,Header:ea,Footer:()=>(0,r.jsx)("div",{className:"w-full flex justify-center pt-4",style:{paddingBottom:"var(--app-content-bottom)"},children:(0,r.jsx)(ee.A,{icon:c.e9,label:"Load new batch",onClick:eH,disabled:M,loading:M,size:"compact"})})}),[eq,eH,E,M]),eX=i.useCallback(i=>{let s=N[i];if(!s)throw Error(`NFT not found at index ${i}`);let o=/\.mp4$/i.test(s.id)?`/api/postcardsD1?download=1&key=${encodeURIComponent(s.id.replace(/\.mp4$/i,".poster.jpg"))}`:s.image;return(0,r.jsx)(l(),{href:"/card",scroll:!1,"data-explore-index":i,className:"block",onClick:r=>{r.preventDefault(),n(null),t("feed"),a(s.image),A&&window.localStorage.setItem("explorePosition",JSON.stringify({seed:A,index:i,hasFilter:E,filterKey:ey})),window.requestAnimationFrame(()=>{e.push("/card",{scroll:!1})})},children:(0,r.jsxs)("div",{className:"relative bg-black",children:[(0,r.jsx)("img",{src:o,alt:`NFT ${s.id}`,className:"w-full aspect-[4/5] object-cover object-center cursor-pointer",loading:"lazy",decoding:"async"}),/\.poster\.jpg$/i.test(s.image)||/\.mp4$/i.test(s.id)?(0,r.jsx)("div",{className:"absolute bottom-2 right-2 text-white drop-shadow-[0_1px_1px_rgba(0,0,0,0.9)]",children:(0,r.jsx)(c.jG,{className:"w-5 h-5"})}):null]})},s.id)},[N,t,a,n,A,E,ey,e]);return(0,r.jsxs)("div",{className:"explore-page fixed inset-0 z-10 bg-black text-white overflow-hidden flex justify-center",children:[(0,r.jsx)("div",{className:"fixed inset-x-0 top-0 z-40 pointer-events-none transition-[opacity,transform] duration-200",style:{opacity:+!eo,transform:eo?"translateY(-100%)":"translateY(0)"},children:(0,r.jsx)("div",{className:"pointer-events-auto mx-auto w-full max-w-[480px] bg-black/85 backdrop-blur-md",style:{paddingTop:"var(--app-safe-top)"},children:(0,r.jsxs)("div",{ref:G,className:"flex h-16 items-center gap-2 overflow-x-auto px-3 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[(0,r.jsxs)("button",{ref:e=>{e&&J.current.set("__for-you__",e)},type:"button","aria-label":ek?"Clear filters":"Show the full feed","aria-pressed":ek||eN,onClick:()=>{eJ(null)},className:`relative h-10 shrink-0 rounded-full border px-4 text-sm font-semibold transition-colors ${ek?"border-white bg-white text-black":eN?"border-white/20 bg-white/20 text-white":"border-white/25 bg-black/35 text-white"}`,children:["For you",ek?(0,r.jsx)("span",{className:"absolute -right-1 -top-1 flex h-4 w-4 items-center justify-center rounded-full border border-white bg-black text-white","aria-hidden":!0,children:(0,r.jsx)(c.X,{className:"h-2.5 w-2.5"})}):null]}),(0,r.jsx)("button",{type:"button","aria-label":"Open search",onClick:()=>{_.current=null,(async()=>{await e$(),eF(!0)})()},className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-white/25 bg-black/35 text-white",children:(0,r.jsx)(c.FW,{className:"h-5 w-5"})}),ev.map(e=>{let t=e.category??e.label,a=v(t,z),i=ew===t,s=null===ew&&ej===t;return(0,r.jsxs)("button",{ref:e=>{e&&J.current.set(t,e)},type:"button","aria-pressed":i,onClick:()=>{eJ(t)},className:`relative flex h-10 shrink-0 items-center rounded-full border px-4 text-sm font-semibold transition-colors ${i?"border-white bg-white text-black":s?"border-white/25 bg-white/20 text-white":`${e.tintClass??"border-white/20 bg-white/5"} text-white`}`,children:[(0,r.jsx)("span",{className:"leading-none",children:a.label}),a.emoji?(0,r.jsx)("span",{className:"ml-1 text-lg leading-none",children:a.emoji}):null,i?(0,r.jsx)("span",{className:"absolute -right-1 -top-1 flex h-4 w-4 items-center justify-center rounded-full border border-white bg-black text-white","aria-hidden":!0,
1children:(0,r.jsx)(c.X,{className:"h-2.5 w-2.5"})}):null]},e.id)})]})})}),eo&&(0,r.jsx)("div",{className:"fixed inset-x-0 top-0 z-30 pointer-events-none bg-gradient-to-b from-black/80 to-transparent",style:{height:"calc(var(--app-safe-top) + 2.5rem)"},"aria-hidden":!0}),(0,r.jsx)("div",{className:"absolute inset-0 flex justify-center",children:(0,r.jsx)("div",{className:"w-full mx-auto max-w-[480px]",children:0===N.length?(0,r.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-black",style:{paddingTop:"calc(var(--app-safe-top) + 4rem)"},children:(0,r.jsx)("p",{className:"text-gray-400",children:M?"Loading Postcards...":E?"No postcards match this search.":"No postcards available yet."})}):(0,r.jsx)(s.sN,{ref:W,style:{height:"100%"},data:N,initialTopMostItemIndex:eC,scrollerRef:el,rangeChanged:e=>{O.current=e.startIndex,window.requestAnimationFrame(eS)},endReached:C,overscan:{main:360,reverse:240},increaseViewportBy:{top:240,bottom:480},computeItemKey:(e,t)=>t.id,components:eY,itemContent:eX})})}),eg&&(0,r.jsx)("div",{className:"fixed inset-x-0 bottom-0 z-30 mx-auto w-full max-w-[480px] overflow-hidden bg-black",style:{to
1p:"calc(var(--app-safe-top) + 4rem)"},"aria-label":"Loading category",children:(0,r.jsx)("div",{className:"grid grid-cols-3 gap-[1px]",children:Array.from({length:15},(e,t)=>(0,r.jsx)("div",{className:"aspect-[4/5] animate-pulse border border-black bg-[#17191f]"},t))})}),(0,r.jsx)("div",{className:"app-fixed-action-bottom fixed inset-x-0 z-50 pointer-events-none",children:(0,r.jsx)("div",{className:"mx-auto w-full max-w-[480px] relative pointer-events-none",children:(0,r.jsxs)("div",{className:"app-action-column",children:[eV&&(0,r.jsxs)("button",{type:"button","aria-label":"Upload postcard",onClick:eG,className:"app-action-icon-button relative",children:[(0,r.jsx)("span",{className:"flex items-center justify-center",style:{filter:"drop-shadow(0 1px 1px rgba(0,0,0,0.9))"},children:(0,r.jsx)(c.Z7,{className:`w-6.5 h-6.5 ${eK}`})}),eD&&(0,r.jsx)("span",{className:"absolute -top-0.5 -right-0.5 h-5 w-5 rounded-full bg-[#A06A6A] border border-white/70 flex items-center justify-center",children:(0,r.jsx)(c.MA,{className:"w-3.5 h-3.5 text-white"})})]}),eE&&!h&&(0,r.jsx)("button",{type:"button","aria-label":"Install Posted.art",onClick:()=>{eM(!0)},className:"app-action-icon-button",children:(0,r.jsx)("span",{className:"flex items-center justify-center",style:{filter:"drop-shadow(0 1px 1px rgba(0,0,0,0.9))"},children:(0,r.jsx)(c.Ry,{className:"w-6.5 h-6.5 text-white"})})})]})})}),(0,r.jsx)(d.A,{isOpen:eA,onClose:()=>eM(!1)}),(0,r.jsx)(q,{isOpen:eU,walletAddress:ez,onClose:()=>eR(!1)}),eI&&(0,r.jsx)(P,{indexValues:F,canAccessFavoritesFeed:eW,onClose:()=>eF(!1)}),(0,r.jsx)(Q.A,{variant:"smoky",compact:ec,hidden:eA||eU||eI})]})}},51582:(e,t,a)=>{Promise.resolve().then(a.bind(a,30891))},57104:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(95155),i=a(71830);function s({icon:e,label:t,loading:a=!1,variant:n="glass",size:l="standard",className:o="",disabled:d=!1,type:c="button",...u}){return(0,r.jsx)("button",{...u,type:c,"aria-label":t,"aria-busy":a||void 0,disabled:d||a,className:`group pointer-events-auto ${"compact"===l?"h-7 w-7":"h-12 w-12"} rounded-full flex items-center justify-center text-white transition-transform duration-100 ease-out active:scale-95 disabled:pointer-events-none ${d&&!a?"opacity-50":""} ${o}`,children:(0,r.jsx)("span",{className:`app-glass-icon-shadow ${"compact"===l?"h-7 w-7":"h-10 w-10"} rounded-full flex items-center justify-center transition-colors duration-100 ${"accent"===n?"bg-[#5daac6] border border-transparent hover:bg-[#559cb6] group-active:bg-[#4f91aa]":"bg-white/10 backdrop-blur-md border border-white/25 ring-1 ring-white/10 group-active:bg-white/25"}`,children:(0,r.jsx)("span",{className:"flex items-center justify-center",style:"glass"===n?{filter:"drop-shadow(0 1px 1px rgba(0,0,0,0.9))"}:void 0,children:a?(0,r.jsx)(i.A,{className:"compact"===l?"h-4 w-4":"h-6 w-6"}):(0,r.jsx)(e,{className:"compact"===l?"h-4 w-4":"w-6.5 h-6.5"})})})})}},71060:(e,t,a)=>{"use strict";a.d(t,{V:()=>i});var r=a(61526);function i(){let e=(0,r.l)(),t=e.namespace,a="eip155"===e.namespace?e.evmAddress:"solana"===e.namespace?e.solAddress:null,i="eip155"===e.namespace?e.evmChainId:null,s="eip155"===e.namespace&&"string"==typeof e.evmAddress&&e.evmAddress.length>0||"solana"===e.namespace&&"string"==typeof e.solAddress&&e.solAddress.length>0;return{...e,namespace:t,address:a,chainId:i,isConnected:s,hasSessionAuth:e.hasWalletAuthToken,isReady:e.isReady}}}},e=>{e.O(0,[5984,7110,8686,8121,5996,8441,3794,7358],()=>e(e.s=51582)),_N_E=e.O()}]);
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.