Spaces:
Running
Running
Fix tab sessions and embedded Hugging Face sign-in
Browse files- 404.html +1 -1
- __next.__PAGE__.txt +12 -12
- __next._full.txt +13 -13
- __next._tree.txt +1 -1
- _next/static/chunks/0o7jtkzzo_70g.js +2 -0
- _next/static/chunks/2t1j0__40kfnp.js +3 -0
- _next/static/hEX_6hBW_9USR_CiGdsoP/_buildManifest.js +11 -0
- _next/static/hEX_6hBW_9USR_CiGdsoP/_clientMiddlewareManifest.js +1 -0
- _next/static/hEX_6hBW_9USR_CiGdsoP/_ssgManifest.js +1 -0
- _not-found.html +1 -1
- _not-found.txt +9 -9
- _not-found/__next._full.txt +9 -9
- _not-found/__next._not-found/__PAGE__.txt +8 -8
- _not-found/__next._tree.txt +1 -1
- index.html +1 -1
- index.txt +13 -13
404.html
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3mnriig4puhpm.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/12aruqaur5huj.js"/><script src="/_next/static/chunks/13yxs8tvcajse.js" async=""></script><script src="/_next/static/chunks/3g4px251sg85e.js" async=""></script><script src="/_next/static/chunks/turbopack-1rdgb0w8nih9e.js" async=""></script><script src="/_next/static/chunks/3wnd0kwwbm1vl.js" async=""></script><script src="/_next/static/chunks/
|
|
|
|
| 1 |
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3mnriig4puhpm.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/12aruqaur5huj.js"/><script src="/_next/static/chunks/13yxs8tvcajse.js" async=""></script><script src="/_next/static/chunks/3g4px251sg85e.js" async=""></script><script src="/_next/static/chunks/turbopack-1rdgb0w8nih9e.js" async=""></script><script src="/_next/static/chunks/3wnd0kwwbm1vl.js" async=""></script><script src="/_next/static/chunks/0o7jtkzzo_70g.js" async=""></script><meta name="robots" content="noindex"/><title>Sharpify AI — Image enhancement, with more detail</title><meta name="description" content="Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."/><link rel="icon" href="/favicon.ico?favicon.2vob68tjqpejf.ico" sizes="256x256" type="image/x-icon"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/12aruqaur5huj.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[23384,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"HfOAuthProvider\"]\n3:I[39756,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"default\"]\n5:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n9:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"ViewportBoundary\"]\nb:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"MetadataBoundary\"]\nd:I[68027,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/3mnriig4puhpm.css\",\"style\"]\n8:X\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0o7jtkzzo_70g.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,null]},null,false,\"$8\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"hEX_6hBW_9USR_CiGdsoP\"}\n8:C\na:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\ne:I[27201,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"IconMark\"]\n7:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"Sharpify AI — Image enhancement, with more detail\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2vob68tjqpejf.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"3\",{}]]\n"])</script></body></html>
|
__next.__PAGE__.txt
CHANGED
|
@@ -1,22 +1,22 @@
|
|
| 1 |
1:"$Sreact.fragment"
|
| 2 |
-
2:I[26564,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 3 |
-
3:I[5014,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 4 |
-
4:I[21342,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 5 |
-
5:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 6 |
6:"$Sreact.suspense"
|
| 7 |
-
a:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 8 |
9:X
|
| 9 |
-
0:{"buildId":"
|
| 10 |
-
12:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 11 |
-
13:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 12 |
-
14:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 13 |
-
15:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 14 |
-
16:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 15 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 16 |
7:null
|
| 17 |
b:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
| 18 |
c:["$","div",null,{"hidden":true,"children":["$","$L12",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L13","3",{}]]}]}]}]
|
| 19 |
-
e:["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/
|
| 20 |
9:300
|
| 21 |
11:true
|
| 22 |
9:C
|
|
|
|
| 1 |
1:"$Sreact.fragment"
|
| 2 |
+
2:I[26564,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/2t1j0__40kfnp.js"],"AppHeader"]
|
| 3 |
+
3:I[5014,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/2t1j0__40kfnp.js"],"default"]
|
| 4 |
+
4:I[21342,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/2t1j0__40kfnp.js"],"EnhancerStudio"]
|
| 5 |
+
5:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"OutletBoundary"]
|
| 6 |
6:"$Sreact.suspense"
|
| 7 |
+
a:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"ViewportBoundary"]
|
| 8 |
9:X
|
| 9 |
+
0:{"buildId":"hEX_6hBW_9USR_CiGdsoP","data":[{"rsc":["$","$1","c",{"children":[["$","main",null,{"id":"top","children":[["$","$L2",null,{}],["$","section",null,{"className":"hero-shell","aria-labelledby":"hero-title","children":[["$","div",null,{"className":"hero-copy","children":[["$","div",null,{"className":"eyebrow","children":[["$","span",null,{"className":"status-dot"}]," AI IMAGE STUDIO"]}],["$","h1",null,{"id":"hero-title","children":["A clearer version",["$","br",null,{}],"of ",["$","span",null,{"children":"your favorite moments."}]]}],["$","p",null,{"className":"hero-description","children":"Bring soft, small, or slightly tired images back into focus with thoughtful AI upscaling."}],["$","a",null,{"className":"hero-link","href":"#studio","children":["Open the enhancer ",["$","$L3",null,{"icon":{"name":"arrow-right","size":24,"node":[["path",{"d":"M5 12h14","key":"1ays0h"}],["path",{"d":"m12 5 7 7-7 7","key":"xquz4c"}]]},"size":16}]]}]]}],["$","div",null,{"className":"hero-art","aria-hidden":"true","children":[["$","div",null,{"className":"hero-art-glow"}],["$","div",null,{"className":"hero-photo photo-back","children":[["$","div",null,{"className":"sun"}],["$","div",null,{"className":"ridge ridge-back"}],["$","div",null,{"className":"ridge ridge-front"}],["$","div",null,{"className":"field-lines"}]]}],["$","div",null,{"className":"hero-photo-photo-label","children":[["$","$L3",null,{"icon":{"name":"sparkles","size":24,"node":[["path",{"d":"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z","key":"1s2grr"}],["path",{"d":"M20 2v4","key":"1rf3ol"}],["path",{"d":"M22 4h-4","key":"gwowj6"}],["circle",{"cx":"4","cy":"20","r":"2","key":"6kqj1y"}]],"aliases":["stars"]},"size":14}]," RESTORED IN DETAIL"]}],["$","div",null,{"className":"hero-art-stamp","children":[["$","span",null,{"children":"SHARPIFY"}],["$","strong",null,{"children":"AI"}]]}]]}]]}],["$","section",null,{"className":"studio-section","id":"studio","aria-labelledby":"studio-title","children":[["$","div",null,{"className":"section-heading","children":[["$","div",null,{"children":[["$","p",null,{"className":"section-kicker","children":"THE WORKSPACE"}],["$","h2",null,{"id":"studio-title","children":"Make it feel new again."}]]}],["$","p",null,{"className":"section-aside","children":"Uploaded images are used only for enhancement and are not permanently stored."}]]}],["$","$L4",null,{}]]}],["$","section",null,{"className":"how-section","id":"how-it-works","aria-labelledby":"how-title","children":[["$","div",null,{"className":"how-heading","children":[["$","p",null,{"className":"section-kicker","children":"SIMPLE BY DESIGN"}],["$","h2",null,{"id":"how-title","children":"Three steps. One better image."}]]}],["$","div",null,{"className":"steps-grid","children":[["$","article","01",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"01"}],["$","h3",null,{"children":"Bring your image"}],["$","p",null,{"children":"Drop in a photo, scan, or graphic that could use a little more clarity."}]]}],["$","article","02",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"02"}],["$","h3",null,{"children":"Let AI restore detail"}],["$","p",null,{"children":"Real-ESRGAN restores visual detail and enlarges your image with AI."}]]}],["$","article","03",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"03"}],["$","h3",null,{"children":"Keep the full-size result"}],["$","p",null,{"children":"Compare both versions, zoom into the details, then download your image."}]]}]]}]]}],["$","footer",null,{"className":"site-footer","id":"about","children":[["$","a",null,{"className":"brand-lockup","href":"#top","aria-label":"Sharpify AI home","children":[["$","span",null,{"className":"brand-mark","children":["$","$L3",null,{"icon":"$0:data:0:rsc:props:children:0:props:children:1:props:children:1:props:children:2:props:children:0:props:icon","size":16}]}],["$","span",null,{"children":["sharpify",["$","span",null,{"className":"brand-ai","children":".ai"}]]}]]}],["$","p",null,{"children":"Powered by open-source AI super resolution."}],["$","a",null,{"href":"#studio","children":["Back to the studio ",["$","$L3",null,{"icon":"$0:data:0:rsc:props:children:0:props:children:1:props:children:0:props:children:3:props:children:1:props:icon","size":14}]]}]]}]]}],[["$","script","script-0",{"src":"/_next/static/chunks/0f8bek7psp5me.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/2t1j0__40kfnp.js","async":true}]],["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],"isPartial":"$@8","staleTime":"$9","varyParams":null},{"rsc":["$","$1","h",{"children":[null,["$","$La",null,{"children":"$Lb"}],"$Lc",null]}],"isPartial":"$@d","staleTime":"$9","varyParams":null},{"rsc":"$Le","isPartial":"$@f","staleTime":"$9","varyParams":null}],"isUpgradeableISRFallback":false,"a":"$@10","rootVaryParams":null,"needsRuntimeRequest":"$@11"}
|
| 10 |
+
12:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"MetadataBoundary"]
|
| 11 |
+
13:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"IconMark"]
|
| 12 |
+
14:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"HfOAuthProvider"]
|
| 13 |
+
15:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default"]
|
| 14 |
+
16:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default"]
|
| 15 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 16 |
7:null
|
| 17 |
b:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
| 18 |
c:["$","div",null,{"hidden":true,"children":["$","$L12",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L13","3",{}]]}]}]}]
|
| 19 |
+
e:["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/0o7jtkzzo_70g.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L15",null,{"parallelRouterKey":"children","template":["$","$L16",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]]}]
|
| 20 |
9:300
|
| 21 |
11:true
|
| 22 |
9:C
|
__next._full.txt
CHANGED
|
@@ -1,26 +1,26 @@
|
|
| 1 |
1:"$Sreact.fragment"
|
| 2 |
-
2:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 3 |
-
3:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 4 |
-
4:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 5 |
-
5:I[26564,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 6 |
-
6:I[5014,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 7 |
-
7:I[21342,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 8 |
-
f:I[68027,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 9 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 10 |
-
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/
|
| 11 |
-
11:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 12 |
12:"$Sreact.suspense"
|
| 13 |
-
14:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 14 |
-
16:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 15 |
8:["$","h2",null,{"id":"how-title","children":"Three steps. One better image."}]
|
| 16 |
9:["$","div",null,{"className":"steps-grid","children":[["$","article","01",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"01"}],["$","h3",null,{"children":"Bring your image"}],["$","p",null,{"children":"Drop in a photo, scan, or graphic that could use a little more clarity."}]]}],["$","article","02",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"02"}],["$","h3",null,{"children":"Let AI restore detail"}],["$","p",null,{"children":"Real-ESRGAN restores visual detail and enlarges your image with AI."}]]}],["$","article","03",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"03"}],["$","h3",null,{"children":"Keep the full-size result"}],["$","p",null,{"children":"Compare both versions, zoom into the details, then download your image."}]]}]]}]
|
| 17 |
a:["$","footer",null,{"className":"site-footer","id":"about","children":[["$","a",null,{"className":"brand-lockup","href":"#top","aria-label":"Sharpify AI home","children":[["$","span",null,{"className":"brand-mark","children":["$","$L6",null,{"ref":"$undefined","icon":"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:1:props:children:2:props:children:0:props:icon","className":"$undefined","size":16}]}],["$","span",null,{"children":["sharpify",["$","span",null,{"className":"brand-ai","children":".ai"}]]}]]}],["$","p",null,{"children":"Powered by open-source AI super resolution."}],["$","a",null,{"href":"#studio","children":["Back to the studio ",["$","$L6",null,{"ref":"$undefined","icon":"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:0:props:children:3:props:children:1:props:icon","className":"$undefined","size":14}]]}]]}]
|
| 18 |
b:["$","script","script-0",{"src":"/_next/static/chunks/0f8bek7psp5me.js","async":true,"nonce":"$undefined"}]
|
| 19 |
-
c:["$","script","script-1",{"src":"/_next/static/chunks/
|
| 20 |
d:["$","$L11",null,{"children":["$","$12",null,{"name":"Next.MetadataOutlet","children":"$@13"}]}]
|
| 21 |
e:["$","$1","h",{"children":[null,["$","$L14",null,{"children":"$L15"}],["$","div",null,{"hidden":true,"children":["$","$L16",null,{"children":["$","$12",null,{"name":"Next.Metadata","children":"$L17"}]}]}],null]}]
|
| 22 |
10:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
|
| 23 |
15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
| 24 |
-
18:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 25 |
13:null
|
| 26 |
17:[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L18","3",{}]]
|
|
|
|
| 1 |
1:"$Sreact.fragment"
|
| 2 |
+
2:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"HfOAuthProvider"]
|
| 3 |
+
3:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default"]
|
| 4 |
+
4:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default"]
|
| 5 |
+
5:I[26564,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/2t1j0__40kfnp.js"],"AppHeader"]
|
| 6 |
+
6:I[5014,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/2t1j0__40kfnp.js"],"default"]
|
| 7 |
+
7:I[21342,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/2t1j0__40kfnp.js"],"EnhancerStudio"]
|
| 8 |
+
f:I[68027,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default",1]
|
| 9 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 10 |
+
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0o7jtkzzo_70g.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","main",null,{"id":"top","children":[["$","$L5",null,{}],["$","section",null,{"className":"hero-shell","aria-labelledby":"hero-title","children":[["$","div",null,{"className":"hero-copy","children":[["$","div",null,{"className":"eyebrow","children":[["$","span",null,{"className":"status-dot"}]," AI IMAGE STUDIO"]}],["$","h1",null,{"id":"hero-title","children":["A clearer version",["$","br",null,{}],"of ",["$","span",null,{"children":"your favorite moments."}]]}],["$","p",null,{"className":"hero-description","children":"Bring soft, small, or slightly tired images back into focus with thoughtful AI upscaling."}],["$","a",null,{"className":"hero-link","href":"#studio","children":["Open the enhancer ",["$","$L6",null,{"ref":"$undefined","icon":{"name":"arrow-right","size":24,"node":[["path",{"d":"M5 12h14","key":"1ays0h"}],["path",{"d":"m12 5 7 7-7 7","key":"xquz4c"}]]},"className":"$undefined","size":16}]]}]]}],["$","div",null,{"className":"hero-art","aria-hidden":"true","children":[["$","div",null,{"className":"hero-art-glow"}],["$","div",null,{"className":"hero-photo photo-back","children":[["$","div",null,{"className":"sun"}],["$","div",null,{"className":"ridge ridge-back"}],["$","div",null,{"className":"ridge ridge-front"}],["$","div",null,{"className":"field-lines"}]]}],["$","div",null,{"className":"hero-photo-photo-label","children":[["$","$L6",null,{"ref":"$undefined","icon":{"name":"sparkles","size":24,"node":[["path",{"d":"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z","key":"1s2grr"}],["path",{"d":"M20 2v4","key":"1rf3ol"}],["path",{"d":"M22 4h-4","key":"gwowj6"}],["circle",{"cx":"4","cy":"20","r":"2","key":"6kqj1y"}]],"aliases":["stars"]},"className":"$undefined","size":14}]," RESTORED IN DETAIL"]}],["$","div",null,{"className":"hero-art-stamp","children":[["$","span",null,{"children":"SHARPIFY"}],["$","strong",null,{"children":"AI"}]]}]]}]]}],["$","section",null,{"className":"studio-section","id":"studio","aria-labelledby":"studio-title","children":[["$","div",null,{"className":"section-heading","children":[["$","div",null,{"children":[["$","p",null,{"className":"section-kicker","children":"THE WORKSPACE"}],["$","h2",null,{"id":"studio-title","children":"Make it feel new again."}]]}],["$","p",null,{"className":"section-aside","children":"Uploaded images are used only for enhancement and are not permanently stored."}]]}],["$","$L7",null,{}]]}],["$","section",null,{"className":"how-section","id":"how-it-works","aria-labelledby":"how-title","children":[["$","div",null,{"className":"how-heading","children":[["$","p",null,{"className":"section-kicker","children":"SIMPLE BY DESIGN"}],"$L8"]}],"$L9"]}],"$La"]}],["$Lb","$Lc"],"$Ld"]}],{},null,false,null]},null,false,null],"$Le",false]],"m":"$undefined","G":["$f",["$L10"]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"hEX_6hBW_9USR_CiGdsoP"}
|
| 11 |
+
11:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"OutletBoundary"]
|
| 12 |
12:"$Sreact.suspense"
|
| 13 |
+
14:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"ViewportBoundary"]
|
| 14 |
+
16:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"MetadataBoundary"]
|
| 15 |
8:["$","h2",null,{"id":"how-title","children":"Three steps. One better image."}]
|
| 16 |
9:["$","div",null,{"className":"steps-grid","children":[["$","article","01",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"01"}],["$","h3",null,{"children":"Bring your image"}],["$","p",null,{"children":"Drop in a photo, scan, or graphic that could use a little more clarity."}]]}],["$","article","02",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"02"}],["$","h3",null,{"children":"Let AI restore detail"}],["$","p",null,{"children":"Real-ESRGAN restores visual detail and enlarges your image with AI."}]]}],["$","article","03",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"03"}],["$","h3",null,{"children":"Keep the full-size result"}],["$","p",null,{"children":"Compare both versions, zoom into the details, then download your image."}]]}]]}]
|
| 17 |
a:["$","footer",null,{"className":"site-footer","id":"about","children":[["$","a",null,{"className":"brand-lockup","href":"#top","aria-label":"Sharpify AI home","children":[["$","span",null,{"className":"brand-mark","children":["$","$L6",null,{"ref":"$undefined","icon":"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:1:props:children:2:props:children:0:props:icon","className":"$undefined","size":16}]}],["$","span",null,{"children":["sharpify",["$","span",null,{"className":"brand-ai","children":".ai"}]]}]]}],["$","p",null,{"children":"Powered by open-source AI super resolution."}],["$","a",null,{"href":"#studio","children":["Back to the studio ",["$","$L6",null,{"ref":"$undefined","icon":"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:0:props:children:3:props:children:1:props:icon","className":"$undefined","size":14}]]}]]}]
|
| 18 |
b:["$","script","script-0",{"src":"/_next/static/chunks/0f8bek7psp5me.js","async":true,"nonce":"$undefined"}]
|
| 19 |
+
c:["$","script","script-1",{"src":"/_next/static/chunks/2t1j0__40kfnp.js","async":true,"nonce":"$undefined"}]
|
| 20 |
d:["$","$L11",null,{"children":["$","$12",null,{"name":"Next.MetadataOutlet","children":"$@13"}]}]
|
| 21 |
e:["$","$1","h",{"children":[null,["$","$L14",null,{"children":"$L15"}],["$","div",null,{"hidden":true,"children":["$","$L16",null,{"children":["$","$12",null,{"name":"Next.Metadata","children":"$L17"}]}]}],null]}]
|
| 22 |
10:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
|
| 23 |
15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
| 24 |
+
18:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"IconMark"]
|
| 25 |
13:null
|
| 26 |
17:[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L18","3",{}]]
|
__next._tree.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 2 |
-
0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}},"staleTime":300,"buildId":"
|
|
|
|
| 1 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 2 |
+
0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}},"staleTime":300,"buildId":"hEX_6hBW_9USR_CiGdsoP"}
|
_next/static/chunks/0o7jtkzzo_70g.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86860,e=>{"use strict";var t,r=e.i(47167);function n(e,t,r,n,a,s,i,o,l,h){let c=0|r[n],u=0|r[n+1],f=0|r[n+2],d=0|r[n+3],g=0|r[n+4],p=0|r[n+5],y=0|r[n+6],w=0|r[n+7],b=0|r[n+8],m=0|r[n+9],k=0|r[n+10],v=0|r[n+11],U=0|r[n+12],L=0|r[n+13],A=0|r[n+14],x=0|r[n+15],E=0|e[t],S=0|e[t+1],T=0|e[t+2],$=0|e[t+3],_=0|e[t+4],C=0|e[t+5],R=0|e[t+6],I=0|e[t+7],B=0x6a09e667,M=0xbb67ae85,W=0x3c6ef372,z=0xa54ff53a,O=0|o,F=o/0x100000000|0,P=0|l,D=0|h;O^=E=(E+_|0)+c|0,_^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(_=_>>>12|_<<20)|0)+u|0,_^=B=B+(O=O>>>8|O<<24)|0,_=_>>>7|_<<25,F^=S=(S+C|0)+f|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=S=(S+(C=C>>>12|C<<20)|0)+d|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25,P^=T=(T+R|0)+g|0,R^=W=W+(P=P>>>16|P<<16)|0,P^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(P=P>>>8|P<<24)|0,R=R>>>7|R<<25,D^=$=($+I|0)+y|0,I^=z=z+(D=D>>>16|D<<16)|0,D^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,D^=E=(E+C|0)+b|0,C^=W=W+(D=D>>>16|D<<16)|0,D^=E=(E+(C=C>>>12|C<<20)|0)+m|0,C^=W=W+(D=D>>>8|D<<24)|0,C=C>>>7|C<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,F^=T=(T+I|0)+U|0,I^=B=B+(F=F>>>16|F<<16)|0,F^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(F=F>>>8|F<<24)|0,I=I>>>7|I<<25,P^=$=($+_|0)+A|0,_^=M=M+(P=P>>>16|P<<16)|0,P^=$=($+(_=_>>>12|_<<20)|0)+x|0,_^=M=M+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25;{let e=c,t=u;c=f,f=d,d=k,k=U,U=m,m=v,v=p,p=e,u=y,y=g,g=w,w=L,L=A,A=x,x=b,b=t}O^=E=(E+_|0)+c|0,_^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(_=_>>>12|_<<20)|0)+u|0,_^=B=B+(O=O>>>8|O<<24)|0,_=_>>>7|_<<25,F^=S=(S+C|0)+f|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=S=(S+(C=C>>>12|C<<20)|0)+d|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25,P^=T=(T+R|0)+g|0,R^=W=W+(P=P>>>16|P<<16)|0,P^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(P=P>>>8|P<<24)|0,R=R>>>7|R<<25,D^=$=($+I|0)+y|0,I^=z=z+(D=D>>>16|D<<16)|0,D^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,D^=E=(E+C|0)+b|0,C^=W=W+(D=D>>>16|D<<16)|0,D^=E=(E+(C=C>>>12|C<<20)|0)+m|0,C^=W=W+(D=D>>>8|D<<24)|0,C=C>>>7|C<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,F^=T=(T+I|0)+U|0,I^=B=B+(F=F>>>16|F<<16)|0,F^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(F=F>>>8|F<<24)|0,I=I>>>7|I<<25,P^=$=($+_|0)+A|0,_^=M=M+(P=P>>>16|P<<16)|0,P^=$=($+(_=_>>>12|_<<20)|0)+x|0,_^=M=M+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25;{let e=c,t=u;c=f,f=d,d=k,k=U,U=m,m=v,v=p,p=e,u=y,y=g,g=w,w=L,L=A,A=x,x=b,b=t}O^=E=(E+_|0)+c|0,_^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(_=_>>>12|_<<20)|0)+u|0,_^=B=B+(O=O>>>8|O<<24)|0,_=_>>>7|_<<25,F^=S=(S+C|0)+f|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=S=(S+(C=C>>>12|C<<20)|0)+d|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25,P^=T=(T+R|0)+g|0,R^=W=W+(P=P>>>16|P<<16)|0,P^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(P=P>>>8|P<<24)|0,R=R>>>7|R<<25,D^=$=($+I|0)+y|0,I^=z=z+(D=D>>>16|D<<16)|0,D^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,D^=E=(E+C|0)+b|0,C^=W=W+(D=D>>>16|D<<16)|0,D^=E=(E+(C=C>>>12|C<<20)|0)+m|0,C^=W=W+(D=D>>>8|D<<24)|0,C=C>>>7|C<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,F^=T=(T+I|0)+U|0,I^=B=B+(F=F>>>16|F<<16)|0,F^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(F=F>>>8|F<<24)|0,I=I>>>7|I<<25,P^=$=($+_|0)+A|0,_^=M=M+(P=P>>>16|P<<16)|0,P^=$=($+(_=_>>>12|_<<20)|0)+x|0,_^=M=M+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25;{let e=c,t=u;c=f,f=d,d=k,k=U,U=m,m=v,v=p,p=e,u=y,y=g,g=w,w=L,L=A,A=x,x=b,b=t}O^=E=(E+_|0)+c|0,_^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(_=_>>>12|_<<20)|0)+u|0,_^=B=B+(O=O>>>8|O<<24)|0,_=_>>>7|_<<25,F^=S=(S+C|0)+f|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=S=(S+(C=C>>>12|C<<20)|0)+d|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25,P^=T=(T+R|0)+g|0,R^=W=W+(P=P>>>16|P<<16)|0,P^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(P=P>>>8|P<<24)|0,R=R>>>7|R<<25,D^=$=($+I|0)+y|0,I^=z=z+(D=D>>>16|D<<16)|0,D^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,D^=E=(E+C|0)+b|0,C^=W=W+(D=D>>>16|D<<16)|0,D^=E=(E+(C=C>>>12|C<<20)|0)+m|0,C^=W=W+(D=D>>>8|D<<24)|0,C=C>>>7|C<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,F^=T=(T+I|0)+U|0,I^=B=B+(F=F>>>16|F<<16)|0,F^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(F=F>>>8|F<<24)|0,I=I>>>7|I<<25,P^=$=($+_|0)+A|0,_^=M=M+(P=P>>>16|P<<16)|0,P^=$=($+(_=_>>>12|_<<20)|0)+x|0,_^=M=M+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25;{let e=c,t=u;c=f,f=d,d=k,k=U,U=m,m=v,v=p,p=e,u=y,y=g,g=w,w=L,L=A,A=x,x=b,b=t}O^=E=(E+_|0)+c|0,_^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(_=_>>>12|_<<20)|0)+u|0,_^=B=B+(O=O>>>8|O<<24)|0,_=_>>>7|_<<25,F^=S=(S+C|0)+f|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=S=(S+(C=C>>>12|C<<20)|0)+d|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25,P^=T=(T+R|0)+g|0,R^=W=W+(P=P>>>16|P<<16)|0,P^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(P=P>>>8|P<<24)|0,R=R>>>7|R<<25,D^=$=($+I|0)+y|0,I^=z=z+(D=D>>>16|D<<16)|0,D^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,D^=E=(E+C|0)+b|0,C^=W=W+(D=D>>>16|D<<16)|0,D^=E=(E+(C=C>>>12|C<<20)|0)+m|0,C^=W=W+(D=D>>>8|D<<24)|0,C=C>>>7|C<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,F^=T=(T+I|0)+U|0,I^=B=B+(F=F>>>16|F<<16)|0,F^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(F=F>>>8|F<<24)|0,I=I>>>7|I<<25,P^=$=($+_|0)+A|0,_^=M=M+(P=P>>>16|P<<16)|0,P^=$=($+(_=_>>>12|_<<20)|0)+x|0,_^=M=M+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25;{let e=c,t=u;c=f,f=d,d=k,k=U,U=m,m=v,v=p,p=e,u=y,y=g,g=w,w=L,L=A,A=x,x=b,b=t}O^=E=(E+_|0)+c|0,_^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(_=_>>>12|_<<20)|0)+u|0,_^=B=B+(O=O>>>8|O<<24)|0,_=_>>>7|_<<25,F^=S=(S+C|0)+f|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=S=(S+(C=C>>>12|C<<20)|0)+d|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25,P^=T=(T+R|0)+g|0,R^=W=W+(P=P>>>16|P<<16)|0,P^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(P=P>>>8|P<<24)|0,R=R>>>7|R<<25,D^=$=($+I|0)+y|0,I^=z=z+(D=D>>>16|D<<16)|0,D^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,D^=E=(E+C|0)+b|0,C^=W=W+(D=D>>>16|D<<16)|0,D^=E=(E+(C=C>>>12|C<<20)|0)+m|0,C^=W=W+(D=D>>>8|D<<24)|0,C=C>>>7|C<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,F^=T=(T+I|0)+U|0,I^=B=B+(F=F>>>16|F<<16)|0,F^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(F=F>>>8|F<<24)|0,I=I>>>7|I<<25,P^=$=($+_|0)+A|0,_^=M=M+(P=P>>>16|P<<16)|0,P^=$=($+(_=_>>>12|_<<20)|0)+x|0,_^=M=M+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25;{let e=c,t=u;c=f,f=d,d=k,k=U,U=m,m=v,v=p,p=e,u=y,y=g,g=w,w=L,L=A,A=x,x=b,b=t}O^=E=(E+_|0)+c|0,_^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(_=_>>>12|_<<20)|0)+u|0,_^=B=B+(O=O>>>8|O<<24)|0,_=_>>>7|_<<25,F^=S=(S+C|0)+f|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=S=(S+(C=C>>>12|C<<20)|0)+d|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25,P^=T=(T+R|0)+g|0,R^=W=W+(P=P>>>16|P<<16)|0,P^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(P=P>>>8|P<<24)|0,R=R>>>7|R<<25,D^=$=($+I|0)+y|0,I^=z=z+(D=D>>>16|D<<16)|0,D^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,D^=E=(E+C|0)+b|0,C^=W=W+(D=D>>>16|D<<16)|0,D^=E=(E+(C=C>>>12|C<<20)|0)+m|0,C^=W=W+(D=D>>>8|D<<24)|0,C=C>>>7|C<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,F^=T=(T+I|0)+U|0,I^=B=B+(F=F>>>16|F<<16)|0,F^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(F=F>>>8|F<<24)|0,I=I>>>7|I<<25,P^=$=($+_|0)+A|0,_^=M=M+(P=P>>>16|P<<16)|0,P^=$=($+(_=_>>>12|_<<20)|0)+x|0,_^=M=M+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25,i&&(a[s+8]=B^e[t],a[s+9]=M^e[t+1],a[s+10]=W^e[t+2],a[s+11]=z^e[t+3],a[s+12]=O^e[t+4],a[s+13]=F^e[t+5],a[s+14]=P^e[t+6],a[s+15]=D^e[t+7]),a[s]=E^B,a[s+1]=S^M,a[s+2]=T^W,a[s+3]=$^z,a[s+4]=_^O,a[s+5]=C^F,a[s+6]=R^P,a[s+7]=I^D}let a=new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]);new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8,3,4,10,12,13,2,7,14,6,5,9,0,11,15,8,1,10,7,12,9,14,3,13,15,4,0,11,2,5,8,1,6,12,13,9,11,15,10,14,8,7,2,5,3,0,1,6,4,9,14,11,5,8,12,15,1,13,3,0,10,2,6,4,7,11,15,5,0,1,9,8,6,14,10,2,12,3,4,7,13]);let s=4===new Uint8Array(new Uint32Array([0x1020304]).buffer)[0];function i(e,t,r,n,a){let s=a>>>2,i=0;for(;i<s;++i,n+=4){let a=e[t+i];r[n]=255&a,r[n+1]=a>>>8&255,r[n+2]=a>>>16&255,r[n+3]=a>>>24&255}let o=3&a;if(o>0){let a=e[t+i];r[n]=255&a,o>1&&(r[n+1]=a>>>8&255),o>2&&(r[n+2]=a>>>16&255)}}function o(e){return[127&e|128,e>>>7&127]}function l(e){return[127&e|128,e>>>7&127|128,e>>>14&127|128,e>>>21&127|128,e>>>28&15]}function h(e){let t=[],r=0|e,n=!0;for(;n;){let e=127&r;0==(r>>=7)&&(64&e)==0||-1===r&&(64&e)!=0?n=!1:e|=128,t.push(e)}return t}new Uint8Array([0,1,28,2,29,14,24,3,30,22,20,15,25,17,4,8,31,27,13,23,21,19,16,7,26,12,18,6,11,5,10,9]);let c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8,3,4,10,12,13,2,7,14,6,5,9,0,11,15,8,1,10,7,12,9,14,3,13,15,4,0,11,2,5,8,1,6,12,13,9,11,15,10,14,8,7,2,5,3,0,1,6,4,9,14,11,5,8,12,15,1,13,3,0,10,2,6,4,7,11,15,5,0,1,9,8,6,14,10,2,12,3,4,7,13],u=null,f=null,d=null,g=832,p=4928,y=5056,w=5072,b=5088,m=5216,k=7264,v=7328,U=7360;new Uint32Array(512);let L=new Uint32Array(512),A=[];for(let e=0;e<64;e++)A.push(L.subarray(8*e,8*e+8));let x=!1;new Uint32Array(32),new Uint32Array(8),new Uint32Array(8),new Uint32Array(16),new Uint32Array(8),new Uint32Array(32),new Uint32Array(16),new Uint32Array(8),new Uint32Array(4),new Uint32Array(4),new Uint32Array(4),new Uint32Array(4),new Uint8Array(new Uint32Array(8).buffer,0,32),new Uint32Array(4);class E{inputCv;blockWords;counter;blockLen;flags;outputBlock;outputBlockOffset;constructor(e,t,r,n,a){this.inputCv=e,this.blockWords=t,this.counter=r,this.blockLen=n,this.flags=8|a,this.outputBlock=new Uint32Array(16),this.outputBlockOffset=64}read(e){let t=new Uint8Array(e),r=0;for(;r<e;){this.outputBlockOffset>=64&&(n(this.inputCv,0,this.blockWords,0,this.outputBlock,0,!0,this.counter++,this.blockLen,this.flags),this.outputBlockOffset=0);let a=Math.min(64-this.outputBlockOffset,e-r),s=this.outputBlockOffset>>>2;if(0==(3&this.outputBlockOffset)&&a>=4){let e=a>>>2;i(this.outputBlock,s,t,r,e<<2);let n=e<<2;r+=n,this.outputBlockOffset+=n}else{for(let e=0;e<a;e++){let n=this.outputBlockOffset+e>>>2,a=this.outputBlockOffset+e&3;t[r+e]=this.outputBlock[n]>>>(a<<3)&255}r+=a,this.outputBlockOffset+=a}}return t}}class S{chainingValue;chunkCounter;blockWords;blockLen;blocksCompressed;flags;constructor(e,t,r){this.chainingValue=new Uint32Array(e),this.chunkCounter=t,this.blockWords=new Uint32Array(16),this.blockLen=0,this.blocksCompressed=0,this.flags=r}resetTo(e,t,r){this.chainingValue.set(e),this.chunkCounter=t,this.blockLen=0,this.blocksCompressed=0,this.flags=r}startFlag(){return+(0===this.blocksCompressed)}update(e,t,r){let a=0;for(;r>0;){64===this.blockLen&&(n(this.chainingValue,0,this.blockWords,0,this.chainingValue,0,!1,this.chunkCounter,64,this.flags|this.startFlag()),this.blocksCompressed++,this.blockLen=0);let o=Math.min(64-this.blockLen,r);if(0===this.blockLen&&64===o){var s=t,i=this.blockWords;for(let t=0;t<16;++t,s+=4)i[t]=e[s]|e[s+1]<<8|e[s+2]<<16|e[s+3]<<24}else for(let r=0;r<o;r++){let n=this.blockLen+r,a=n>>>2,s=3&n;0===s?this.blockWords[a]=e[t+r]:this.blockWords[a]|=e[t+r]<<(s<<3)}this.blockLen+=o,t+=o,r-=o,a+=o}return a}output(){let e=this.blockLen+3>>>2;for(let t=e;t<16;t++)this.blockWords[t]=0;return{inputCv:this.chainingValue,blockWords:this.blockWords,blockLen:this.blockLen,counter:this.chunkCounter,flags:this.flags|this.startFlag()|2}}len(){return 64*this.blocksCompressed+this.blockLen}}class T{chunkState;keyWords;cvStack;cvStackLen;flags;parentBlock;parentCv;chunkCv;outWords;finalizeCv;constructor(e,t){this.keyWords=new Uint32Array(e||a),this.flags=t??0,this.chunkState=new S(this.keyWords,0,this.flags),this.cvStack=new Uint32Array(432),this.cvStackLen=0,this.parentBlock=new Uint32Array(16),this.parentCv=new Uint32Array(8),this.chunkCv=new Uint32Array(8),this.outWords=new Uint32Array(16),this.finalizeCv=new Uint32Array(8)}reset(){return this.chunkState.resetTo(this.keyWords,0,this.flags),this.cvStackLen=0,this}static newKeyed(e){if(32!==e.length)throw Error(`Key must be 32 bytes, got ${e.length}`);let t=new Uint32Array(8);if(s){let r=new Uint32Array(e.buffer,e.byteOffset,8);t.set(r)}else for(let r=0;r<8;r++){let n=4*r;t[r]=e[n]|e[n+1]<<8|e[n+2]<<16|e[n+3]<<24}return new T(t,16)}static newDeriveKey(e){let t=function(e){if("u">typeof TextEncoder)return new TextEncoder().encode(e);let t=[];for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n<128?t.push(n):n<2048?t.push(192|n>>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return new Uint8Array(t)}(e),r=new T(new Uint32Array(a),32);r.update(t);let s=new Uint32Array(8),i=r.finalizeOutput();return n(i.inputCv,0,i.blockWords,0,s,0,!1,i.counter,i.blockLen,8|i.flags),new T(s,64)}pushCv(e,t){this.cvStack.set(e.subarray(t,t+8),8*this.cvStackLen),this.cvStackLen++}popCv(e,t){this.cvStackLen--,e.set(this.cvStack.subarray(8*this.cvStackLen,(this.cvStackLen+1)*8),t)}addChunkCv(e,t,r){let a=this.parentBlock,s=this.parentCv;for(;(1&r)==0;)this.popCv(a,0),a.set(e.subarray(t,t+8),8),n(this.keyWords,0,a,0,s,0,!1,0,64,4|this.flags),e=s,t=0,r>>>=1;this.pushCv(e,t)}update(e){let t=0,r=e.length;for(;r>0;){if(1024===this.chunkState.len()){let e=this.chunkState.output(),t=this.chunkCv;n(e.inputCv,0,e.blockWords,0,t,0,!1,e.counter,e.blockLen,e.flags);let r=this.chunkState.chunkCounter+1;this.addChunkCv(t,0,r),this.chunkState.resetTo(this.keyWords,r,this.flags)}let a=Math.min(1024-this.chunkState.len(),r);this.chunkState.update(e,t,a),t+=a,r-=a}return this}finalizeOutput(){let e=this.chunkState.output(),t=this.parentBlock,r=this.finalizeCv;if(this.cvStackLen>0)for(n(e.inputCv,0,e.blockWords,0,r,0,!1,e.counter,e.blockLen,e.flags);this.cvStackLen>0;){if(this.cvStackLen--,t.set(this.cvStack.subarray(8*this.cvStackLen,(this.cvStackLen+1)*8),0),t.set(r,8),!(this.cvStackLen>0))return{inputCv:this.keyWords,blockWords:t,blockLen:64,counter:0,flags:4|this.flags};n(this.keyWords,0,t,0,r,0,!1,0,64,4|this.flags)}return e}finalize(e=32){let t=this.finalizeOutput(),r=new Uint8Array(e);if(e<=64){let a=this.outWords;if(n(t.inputCv,0,t.blockWords,0,a,0,e>32,t.counter,t.blockLen,8|t.flags),s){let t=new Uint8Array(a.buffer);r.set(t.subarray(0,e))}else i(a,0,r,0,e)}else{let t=this.finalizeXof().read(e);r.set(t)}return r}finalizeXof(){let e=this.finalizeOutput();return new E(new Uint32Array(e.inputCv),new Uint32Array(e.blockWords),e.counter,e.blockLen,e.flags)}}"u">typeof globalThis&&void 0!==globalThis.document&&queueMicrotask(()=>{x||(x=function(){if(u)return!0;if(!function(){try{let e=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,22,1,20,0,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11]);return WebAssembly.validate(e)}catch{return!1}}())return!1;try{let e=d||function(){let e=[];function t(t){e.push(...t)}t([0,97,115,109]),t([1,0,0,0]),t([1]),t([4]),t([1]),t([96,0,0]),t([2]),t([11]),t([1]),t([2,106,115]),t([3,109,101,109]),t([2,0,1]),t([3]),t([4]),t([3]),t([0]),t([0]),t([0]),t([7]),t([50]),t([3]),t([10]),t([99,111,109,112,114,101,115,115,52,120]),t([0,0]),t([16]),t([99,111,109,112,114,101,115,115,67,104,117,110,107,115,52,120]),t([0,1]),t([14]),t([99,111,109,112,114,101,115,115,80,97,114,101,110,116]),t([0,2]),t([10]);let r=e.length;t([0,0,0,0,0]),t([3]);let n=e.length;t([0,0,0,0,0]);let a=e.length;t([1]),t([32,123]);for(let e=0;e<16;e++)t([65,...o(16*e)]),t([253,0,2,0]),t([33,e]);for(let e=0;e<8;e++)t([65,...o(512+16*e)]),t([253,0,2,0]),t([33,16+e]);let s=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a];for(let e=0;e<4;e++){let r=[];for(let t=0;t<4;t++)r.push(255&s[e]),r.push(s[e]>>>8&255),r.push(s[e]>>>16&255),r.push(s[e]>>>24&255);t([253,12,...r]),t([33,24+e])}t([65,...o(768)]),t([253,0,2,0]),t([33,28]),t([65,...o(784)]),t([253,0,2,0]),t([33,29]),t([65,...o(800)]),t([253,0,2,0]),t([33,30]),t([65,...o(816)]),t([253,0,2,0]),t([33,31]);let i=0;function u(e,r,n,a){let s=c[i++],o=c[i++];t([32,16+e]),t([32,16+r]),t([253,174,1]),t([32,s]),t([253,174,1]),t([33,16+e]),t([32,16+a]),t([32,16+e]),t([253,81]),t([34,16+a]),t([32,16+a]),t([253,13,2,3,0,1,6,7,4,5,10,11,8,9,14,15,12,13]),t([33,16+a]),t([32,16+n]),t([32,16+a]),t([253,174,1]),t([33,16+n]),t([32,16+r]),t([32,16+n]),t([253,81]),t([34,16+r]),t([65,12]),t([253,173,1]),t([32,16+r]),t([65,20]),t([253,171,1]),t([253,80]),t([33,16+r]),t([32,16+e]),t([32,16+r]),t([253,174,1]),t([32,o]),t([253,174,1]),t([33,16+e]),t([32,16+a]),t([32,16+e]),t([253,81]),t([34,16+a]),t([32,16+a]),t([253,13,1,2,3,0,5,6,7,4,9,10,11,8,13,14,15,12]),t([33,16+a]),t([32,16+n]),t([32,16+a]),t([253,174,1]),t([33,16+n]),t([32,16+r]),t([32,16+n]),t([253,81]),t([34,16+r]),t([65,7]),t([253,173,1]),t([32,16+r]),t([65,25]),t([253,171,1]),t([253,80]),t([33,16+r])}for(let e=0;e<7;e++)u(0,4,8,12),u(1,5,9,13),u(2,6,10,14),u(3,7,11,15),u(0,5,10,15),u(1,6,11,12),u(2,7,8,13),u(3,4,9,14);for(let e=0;e<8;e++)t([65,...o(640+16*e)]),t([32,16+e]),t([32,24+e]),t([253,81]),t([253,11,2,0]);t([11]);let f=l(e.length-a);for(let t=0;t<5;t++)e[n+t]=f[t];let d=e.length;t([0,0,0,0,0]);let m=e.length;t(function(){let e=[];function t(t){e.push(...t)}t([2]),t([32,123]),t([1,127]);let r=g,n=p,a=b,s=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a];for(let e=0;e<8;e++)t([65,...o(n+16*e)]),t([253,0,2,0]),t([33,16+e]);t([65,0]),t([33,32]),t([2,64]),t([3,64]);for(let e=0;e<16;e++)t([32,32]),t([65,...o(256)]),t([108]),t([65,...o(r+16*e)]),t([106]),t([253,0,2,0]),t([33,e]);for(let e=0;e<4;e++){let r=[];for(let t=0;t<4;t++)r.push(255&s[e]),r.push(s[e]>>>8&255),r.push(s[e]>>>16&255),r.push(s[e]>>>24&255);t([253,12,...r]),t([33,24+e])}t([65,...o(y)]),t([253,0,2,0]),t([33,28]),t([253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),t([33,29]);let i=[];for(let e=0;e<4;e++)i.push(64,0,0,0);t([253,12,...i]),t([33,30]),t([65,...o(w)]),t([253,0,2,0]),t([32,32]),t([69]),t([32,32]),t([65,15]),t([70]),t([65,1]),t([116]),t([114]),t([253,17]),t([253,80]),t([33,31]);let l=0;function h(e,r,n,a){let s=c[l++],i=c[l++];t([32,16+e]),t([32,16+r]),t([253,174,1]),t([32,s]),t([253,174,1]),t([33,16+e]),t([32,16+a]),t([32,16+e]),t([253,81]),t([34,16+a]),t([32,16+a]),t([253,13,2,3,0,1,6,7,4,5,10,11,8,9,14,15,12,13]),t([33,16+a]),t([32,16+n]),t([32,16+a]),t([253,174,1]),t([33,16+n]),t([32,16+r]),t([32,16+n]),t([253,81]),t([34,16+r]),t([65,12]),t([253,173,1]),t([32,16+r]),t([65,20]),t([253,171,1]),t([253,80]),t([33,16+r]),t([32,16+e]),t([32,16+r]),t([253,174,1]),t([32,i]),t([253,174,1]),t([33,16+e]),t([32,16+a]),t([32,16+e]),t([253,81]),t([34,16+a]),t([32,16+a]),t([253,13,1,2,3,0,5,6,7,4,9,10,11,8,13,14,15,12]),t([33,16+a]),t([32,16+n]),t([32,16+a]),t([253,174,1]),t([33,16+n]),t([32,16+r]),t([32,16+n]),t([253,81]),t([34,16+r]),t([65,7]),t([253,173,1]),t([32,16+r]),t([65,25]),t([253,171,1]),t([253,80]),t([33,16+r])}for(let e=0;e<7;e++)h(0,4,8,12),h(1,5,9,13),h(2,6,10,14),h(3,7,11,15),h(0,5,10,15),h(1,6,11,12),h(2,7,8,13),h(3,4,9,14);for(let e=0;e<8;e++)t([32,16+e]),t([32,24+e]),t([253,81]),t([33,16+e]);t([32,32]),t([65,1]),t([106]),t([34,32]),t([65,16]),t([73]),t([13,0]),t([11]),t([11]);for(let e=0;e<8;e++)t([65,...o(a+16*e)]),t([32,16+e]),t([253,11,2,0]);return t([11]),e}());let U=l(e.length-m);for(let t=0;t<5;t++)e[d+t]=U[t];let L=e.length;t([0,0,0,0,0]);let A=e.length;t(function(){let e=[];function t(t){e.push(...t)}t([1]),t([32,127]);let r=k,n=v,a=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19];for(let e=0;e<16;e++)t([65,...o(r+4*e)]),t([40,2,0]),t([33,e]);for(let e=0;e<8;e++)t([65,...h(a[e])]),t([33,16+e]);for(let e=0;e<4;e++)t([65,...h(a[e])]),t([33,24+e]);function s(e,r,n,a,s,i){let o=16+e,l=16+r,h=16+n,c=16+a;t([32,o]),t([32,l]),t([106]),t([32,s]),t([106]),t([33,o]),t([32,c]),t([32,o]),t([115]),t([65,16]),t([120]),t([33,c]),t([32,h]),t([32,c]),t([106]),t([33,h]),t([32,l]),t([32,h]),t([115]),t([65,12]),t([120]),t([33,l]),t([32,o]),t([32,l]),t([106]),t([32,i]),t([106]),t([33,o]),t([32,c]),t([32,o]),t([115]),t([65,8]),t([120]),t([33,c]),t([32,h]),t([32,c]),t([106]),t([33,h]),t([32,l]),t([32,h]),t([115]),t([65,7]),t([120]),t([33,l])}t([65,0]),t([33,28]),t([65,0]),t([33,29]),t([65,192,0]),t([33,30]),t([65,4]),t([33,31]);let i=0;for(let e=0;e<7;e++)s(0,4,8,12,c[i],c[i+1]),s(1,5,9,13,c[i+=2],c[i+1]),s(2,6,10,14,c[i+=2],c[i+1]),s(3,7,11,15,c[i+=2],c[i+1]),s(0,5,10,15,c[i+=2],c[i+1]),s(1,6,11,12,c[i+=2],c[i+1]),s(2,7,8,13,c[i+=2],c[i+1]),s(3,4,9,14,c[i+=2],c[i+1]),i+=2;for(let e=0;e<8;e++)t([65,...o(n+4*e)]),t([32,16+e]),t([32,24+e]),t([115]),t([54,2,0]);return t([11]),e}());let x=l(e.length-A);for(let t=0;t<5;t++)e[L+t]=x[t];let E=l(e.length-r-5);for(let t=0;t<5;t++)e[r+t]=E[t];return new Uint8Array(e)}();d=e;let t={js:{mem:f=new WebAssembly.Memory({initial:1})}},r=new WebAssembly.Module(e.buffer);return(u=new WebAssembly.Instance(r,t)).exports.compress4x,u.exports.compressChunks4x,u.exports.compressParent,new Uint8Array(f.buffer),new Uint32Array(f.buffer),!function(){if(!f)return;let e=f.buffer;new Uint32Array(e,m,512),new Uint32Array(e,k,16),new Uint32Array(e,v,8),new Uint32Array(e,U,32),new Uint32Array(e,g,1024),new Uint32Array(e,p,32),new Uint32Array(e,y,4),new Uint32Array(e,w,4),new Uint32Array(e,b,32)}(),!0}catch(e){return console.warn("Failed to initialize WASM SIMD:",e),!1}}())}),new Uint8Array([102,151,245,119,91,149,80,222,49,53,203,172,165,151,24,28,157,228,33,16,155,235,43,88,180,208,176,75,147,173,242,41]);let $=new Uint8Array([1,126,197,199,165,71,41,150,253,148,102,102,180,138,2,230,93,221,83,111,55,199,109,210,248,99,82,230,74,83,113,63]);T.newKeyed($);let _=new Uint8Array(32),C=new Uint8Array([127,24,87,214,206,86,237,102,18,127,249,19,231,165,195,243,164,205,38,213,181,219,73,230,65,36,152,127,40,251,148,195]);T.newKeyed(_),T.newKeyed(C);var R="https://huggingface.co";async function I(e,t){let r=new B(e.url,e.status,e.headers.get("X-Request-Id")??t?.requestId);r.message=`Api error with status ${r.statusCode}${t?.message?`. ${t.message}`:""}`;let n=[`URL: ${r.url}`,r.requestId?`Request ID: ${r.requestId}`:void 0].filter(Boolean).join(". ");if(e.headers.get("Content-Type")?.startsWith("application/json")){let t=await e.json();r.message=t.error||t.message||r.message,t.error_description&&(r.message=r.message?r.message+`: ${t.error_description}`:t.error_description),r.data=t}else r.data={message:await e.text()};throw r.message+=`. ${n}`,r}var B=class extends Error{statusCode;url;requestId;data;constructor(e,t,r,n){super(n),this.statusCode=t,this.requestId=r,this.url=e}};function M(e){if(!e.startsWith("hf_"))throw TypeError("Your access token must start with 'hf_'")}var W="u">typeof window&&void 0!==window.document,z="object"==typeof self&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name,O=!(!W&&!z);new Promise(e=>{});var F=class extends Blob{static async create(e,t){let r=t?.fetch??fetch,n=await r(e,{headers:{Range:"bytes=0-0",...t?.accessToken&&{Authorization:`Bearer ${t.accessToken}`}}});if(!n.ok)throw await I(n);let a=n.headers.get("content-type")||"";if(206===n.status){let s=Number(n.headers.get("content-range")?.split("/").pop());if(await n.body?.cancel(),Number.isFinite(s)&&s>=(t?.cacheBelow??1e6))return new F(e,0,s,a,!0,r,t?.accessToken);let i=await r(e,{...t?.accessToken&&{headers:{Authorization:`Bearer ${t.accessToken}`}}});if(!i.ok)throw await I(i);return i.blob()}return n.blob()}url;start;end;contentType;full;fetch;accessToken;constructor(e,t,r,n,a,s,i){super([]),this.url=e,this.start=t,this.end=r,this.contentType=n,this.full=a,this.fetch=s,this.accessToken=i}get size(){return this.end-this.start}get type(){return this.contentType}slice(e=0,t=this.size){if(e<0||t<0)throw TypeError("Unsupported negative start/end on WebBlob.slice");return new F(this.url,this.start+e,Math.min(this.start+t,this.end),this.contentType,0===e&&t===this.size&&this.full,this.fetch,this.accessToken)}async arrayBuffer(){return(await this.fetchRange()).arrayBuffer()}async text(){return(await this.fetchRange()).text()}stream(){let e=new TransformStream;return this.fetchRange().then(t=>t.body?.pipeThrough(e)).catch(t=>e.writable.abort(t.message)),e.readable}fetchRange(){let e=this.fetch;return this.full?e(this.url,{...this.accessToken&&{headers:{Authorization:`Bearer ${this.accessToken}`}}}).then(e=>e.ok?e:I(e)):e(this.url,{headers:{Range:`bytes=${this.start}-${this.end-1}`,...this.accessToken&&{Authorization:`Bearer ${this.accessToken}`}}}).then(e=>e.ok?e:I(e))}};function P(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}function D(e,t){return e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24}N(5242880),function(){try{new Uint32Array(65536)}catch(t){let e=Array(65536);for(let t=0;t<65536;t++)e[t]=0;return e}}();var H={4:65536,5:262144,6:1048576,7:4194304};function N(e){return new Uint8Array(e)}function j(e,t){let r,n;return void 0===t&&(t=function(e){let t=0;if(0x184d2204!==D(e,0))throw Error("invalid magic number");t+=4;let r=e[t++];if((192&r)!=64)throw Error("incompatible descriptor version "+(192&r));let n=(16&r)!=0,a=e[t++]>>4&7;if(void 0===H[a])throw Error("invalid block size "+a);let s=H[a];if((8&r)!=0){var i;return i=t,e[i++]|e[i++]<<8|e[i++]<<16|e[i++]<<24|e[i++]<<32|e[i++]<<40|e[i++]<<48|e[i++]<<56}t++;let o=0;for(;;){let r=D(e,t);if(t+=4,0x80000000&r?(r&=0x7fffffff,o+=r):r>0&&(o+=s),0===r)return o;n&&(t+=4),t+=r}}(e)),(n=function(e,t){let r,n,a=0,s=0;if(0x184d2204!==D(e,0))throw Error("invalid magic number");if(a+=4,(192&(n=e[a++]))!=64)throw Error("incompatible descriptor version");if(r=(16&n)!=0,void 0===H[e[a++]>>4&7])throw Error("invalid block size");for((8&n)!=0&&(a+=8),a++;;){var i;if(i=D(e,a),a+=4,0===i)break;if(r&&(a+=4),(0x80000000&i)!=0){i&=0x7fffffff;for(let r=0;r<i;r++)t[s++]=e[a++]}else s=function(e,t,r,n,a){let s,i,o,l,h,c=void 0!==t.copyWithin&&void 0!==t.fill;for(o=r+n;r<o;){let n=e[r++],u=n>>4;if(u>0){if(15===u)for(;u+=e[r],255===e[r++];);for(l=r+u;r<l;)t[a++]=e[r++]}if(r>=o)break;if(s=15&n,i=e[r++]|e[r++]<<8,15===s)for(;s+=e[r],255===e[r++];);if(s+=4,c&&1===i)t.fill(0|t[a-1],a,a+s),a+=s;else if(c&&i>s&&s>31)t.copyWithin(a,a-i,a-i+s),a+=s;else for(l=(h=a-i)+s;h<l;)t[a++]=0|t[h++]}return a}(e,t,a,i,s),a+=i}return(4&n)!=0&&(a+=4),s}(e,r=N(t)))!==t&&(r=r.slice(0,n)),r}var V=class{ranges=[];add(e,t){if(t<=e)throw TypeError("End must be greater than start");let r=[];for(let n=0;n<this.ranges.length;n++){let a=this.ranges[n];if(e<a.end&&t>a.start&&r.push({index:n,range:a}),null!==a.data)throw Error("Overlapping range already has data")}if(0===r.length){this.ranges.push({start:e,end:t,refCount:1,data:null}),this.ranges.sort((e,t)=>e.start-t.start);return}let n=[],a=e;for(let e=0;e<r.length;e++){let{range:s}=r[e];a<s.start?n.push({start:a,end:s.start,refCount:1,data:null}):s.start<a&&n.push({start:s.start,end:a,refCount:s.refCount,data:null}),n.push({start:Math.max(a,s.start),end:Math.min(t,s.end),refCount:s.refCount+1,data:null}),s.end>t&&n.push({start:t,end:s.end,refCount:s.refCount,data:null}),a=Math.max(a,s.end)}a<t&&n.push({start:a,end:t,refCount:1,data:null});let s=r[0].index,i=r[r.length-1].index;this.ranges.splice(s,i-s+1,...n),this.ranges.sort((e,t)=>e.start-t.start)}remove(e,t){if(t<=e)throw TypeError("End must be greater than start");let r=[];for(let n=0;n<this.ranges.length;n++){let a=this.ranges[n];e<a.end&&t>a.start&&r.push({index:n,range:a})}if(0===r.length)throw Error("No ranges found to remove");if(e!==r[0].range.start||t!==r[r.length-1].range.end)throw Error("Range boundaries must match existing boundaries");for(let e=0;e<r.length;e++){let{range:t}=r[e];t.refCount--}this.ranges=this.ranges.filter(e=>e.refCount>0)}getRanges(e,t){if(t<=e)throw TypeError("End must be greater than start");return this.ranges.filter(r=>e<r.end&&t>r.start)}getAllRanges(){return[...this.ranges]}};function q(e,t,r=0){let n=t.length;if(0===n)return r<=e.length?r:-1;let a=n-1,s=e.length-n,i=new Uint16Array(256).fill(n);for(let e=0;e<a;e++)i[t[e]]=a-e;let o=r;for(;o<=s;){let r=a;for(;r>=0&&e[o+r]===t[r];)r--;if(r<0)return o;o+=i[e[o+a]]}return -1}var K=new TextEncoder,G=K.encode("\r\n"),J=K.encode("\r\n\r\n"),Q=class{#e;#t=G;#r=[];#n=0;#a;#s=0;#i=0;#o=!1;constructor(e){const t=function(e){for(let t of e.split(";")){let e=t.trim();if(e.toLowerCase().startsWith("boundary="))return e.slice(9).replace(/^"|"$/g,"")}return null}(e);if(!t)throw Error(`No boundary found in Content-Type: ${e}`);this.#e=K.encode(`\r
|
| 2 |
+
--${t}`)}push(e){if(this.#o)return[];let t=e&&e.byteLength?P(this.#t,e):this.#t;this.#t=new Uint8Array(0);let r=[];for(;;){if(0===this.#i||2===this.#i){let e=q(t,this.#e,0);if(-1===e){let e=Math.max(0,t.byteLength-(this.#e.byteLength-1));2===this.#i&&e>0&&this.#l(t.subarray(0,e)),this.#t=t.slice(e);break}if(2===this.#i){this.#l(t.subarray(0,e));let n=this.#h(),a=q(n,J,0);if(-1===a)throw Error("Malformed multipart part: missing header/data separator");r.push(n.subarray(a+J.byteLength))}t=t.slice(e+this.#e.byteLength),this.#i=1;continue}if(t.byteLength<2){this.#t=t;break}if(45===t[0]&&45===t[1]){this.#o=!0;break}if(t[0]===G[0]&&t[1]===G[1]){t=t.slice(2),this.#i=2;continue}throw Error("Malformed multipart body: expected CRLF or closing delimiter after boundary")}return r}#l(e){if(this.#n+=e.byteLength,e.byteLength>=65536){this.#c(),this.#r.push(e);return}let t=0;for(;t<e.byteLength;){this.#a||(this.#a=new Uint8Array(65536),this.#s=0);let r=Math.min(65536-this.#s,e.byteLength-t);this.#a.set(e.subarray(t,t+r),this.#s),this.#s+=r,t+=r,65536===this.#s&&(this.#r.push(this.#a),this.#a=void 0)}}#c(){this.#a&&this.#s>0&&this.#r.push(this.#a.subarray(0,this.#s)),this.#a=void 0,this.#s=0}#h(){this.#c();let e=new Uint8Array(this.#n),t=0;for(let r of this.#r)e.set(r,t),t+=r.byteLength;return this.#r=[],this.#n=0,e}};function X(e){return e.reduce((e,t)=>e+t,0)}var Z=[Symbol.for("undici.globalDispatcher.2"),Symbol.for("undici.globalDispatcher.1")];async function Y(){let e=globalThis,r=()=>Z.map(t=>e[t]).find(e=>"function"==typeof e?.dispatch),n=r();if(void 0===n&&(await (await fetch("data:,")).arrayBuffer(),n=r()),void 0!==n){var a;return t?.base!==n&&(t={base:n,http1:(a=n,{dispatch:(e,t)=>a.dispatch({...e,allowH2:!1},t)})}),t.http1}}var ee=async(e,t)=>{let r=await Y();return r?fetch(e,{...t,dispatcher:r}):fetch(e,t)},et=!function(e=void 0!==r.default?r.default.versions:void 0,t=O){return!t&&!!e?.undici&&!e.bun&&Number(e.undici.split(".")[0])>=8}()?(e,t)=>fetch(e,t):ee,er=O?4:8,en=class{#u=[];wait(){return new Promise(e=>this.#u.push(e))}notifyAll(){let e=this.#u;for(let t of(this.#u=[],e))t()}};function ea(e){return new Promise(t=>setTimeout(t,e))}var es={0:"None",1:"LZ4",2:"ByteGroupingLZ4"};function ei(e){let t={version:e.getUint8(0),compressed_length:e.getUint8(1)|e.getUint8(2)<<8|e.getUint8(3)<<16,compression_scheme:e.getUint8(4),uncompressed_length:e.getUint8(5)|e.getUint8(6)<<8|e.getUint8(7)<<16};if(0!==t.version)throw Error(`Unsupported chunk version ${t.version}`);if(0!==t.compression_scheme&&1!==t.compression_scheme&&2!==t.compression_scheme)throw Error(`Unsupported compression scheme ${es[t.compression_scheme]??t.compression_scheme}`);return t}function eo(e,t){switch(e.compression_scheme){case 1:return j(t,e.uncompressed_length);case 2:return function(e){let t=Math.floor(e.byteLength/4),r=e.byteLength%4,n=t+ +(r>=1),a=n+t+ +(r>=2),s=a+t+ +(3==r),i=new Uint8Array(e.byteLength);for(let t=0,r=0;t<e.byteLength;t+=4,r++)i[t]=e[r];for(let t=1,r=n;t<e.byteLength;t+=4,r++)i[t]=e[r];for(let t=2,r=a;t<e.byteLength;t+=4,r++)i[t]=e[r];for(let t=3,r=s;t<e.byteLength;t+=4,r++)i[t]=e[r];return i}(j(t,e.uncompressed_length));default:return t.slice()}}function el(e,t,r){let n=r.getRanges(t.chunks.start,t.chunks.end),a=new Map,s=t.chunks.start,i=0;for(;i<e.byteLength;){if(s>=t.chunks.end)throw Error(`Multipart part for chunks ${t.chunks.start}-${t.chunks.end} contains more chunks than expected`);if(e.byteLength-i<8)throw Error("Truncated chunk header in multipart part");let r=ei(new DataView(e.buffer,e.byteOffset+i,8)),o=i+8,l=o+r.compressed_length;if(l>e.byteLength)throw Error("Truncated chunk data in multipart part");let h=eo(r,e.subarray(o,l)),c=n.find(e=>s>=e.start&&s<e.end);if(c){let e=a.get(c);e||(e=[],a.set(c,e)),e.push(h)}s++,i=l}if(s!==t.chunks.end)throw Error(`Multipart part decoded chunks ${t.chunks.start}-${s} but expected ${t.chunks.start}-${t.chunks.end}`);return a}function eh(e){let t=0;for(let[r,n]of e)r.data||(r.data=n,t+=X(n.map(e=>e.byteLength)));return t}var ec=class extends Blob{fetch;accessToken;refreshUrl;reconstructionUrl;hash;start=0;end=0;internalLogging=!1;reconstructionInfo;listener;parallelDownloads;constructor(e){if(super([]),this.fetch=e.fetch??et,this.accessToken=function(e){return e.accessToken?(M(e.accessToken),e.accessToken):e.credentials?.accessToken?(M(e.credentials.accessToken),e.credentials.accessToken):void 0}(e),this.refreshUrl=e.refreshUrl,this.end=e.size,this.reconstructionUrl=e.reconstructionUrl,this.hash=e.hash,this.listener=e.listener,this.internalLogging=e.internalLogging??!1,this.parallelDownloads=e.parallelDownloads,e.readToken){const t=ed({refreshUrl:this.refreshUrl,initialAccessToken:this.accessToken});ef.set(t,{accessToken:e.readToken.accessToken,expiresAt:new Date(1e3*e.readToken.exp),casUrl:e.readToken.casUrl})}}get size(){return this.end-this.start}#f(){let e=new ec({fetch:this.fetch,hash:this.hash,refreshUrl:this.refreshUrl,reconstructionUrl:this.reconstructionUrl,size:this.size});return e.accessToken=this.accessToken,e.start=this.start,e.end=this.end,e.reconstructionInfo=this.reconstructionInfo,e.listener=this.listener,e.internalLogging=this.internalLogging,e.parallelDownloads=this.parallelDownloads,e}slice(e=0,t=this.size){if(e<0||t<0)throw TypeError("Unsupported negative start/end on XetBlob.slice");let r=this.#f();return r.start=this.start+e,r.end=Math.min(this.start+t,this.end),(r.start!==this.start||r.end!==this.end)&&(r.reconstructionInfo=void 0),r}#d;#g(){return this.#d||(this.#d=(async()=>{let e=await eg(this.accessToken,this.fetch,this.refreshUrl),t=this.reconstructionUrl?this.reconstructionUrl.replace("/v1/reconstructions/","/v2/reconstructions/"):`${e.casUrl}/v2/reconstructions/${this.hash}`,r=await this.fetch(t,{headers:{Authorization:`Bearer ${e.accessToken}`,Range:`bytes=${this.start}-${this.end-1}`}});if(!r.ok)throw await I(r);return this.reconstructionInfo=await r.json(),this.reconstructionInfo})().finally(()=>this.#d=void 0)),this.#d}async #p(){if(0===this.size)return new ReadableStream({start(e){e.close()}});this.reconstructionInfo||await this.#g();let e=new Map;if(!this.reconstructionInfo)throw Error("Failed to load reconstruction info");for(let t of this.reconstructionInfo.terms){let r=e.get(t.hash);r||(r=new V,e.set(t.hash,r)),r.add(t.range.start,t.range.end)}let t=this.listener,r=this.internalLogging?(...e)=>console.log(...e):()=>{};async function*n(n,a,s,i){let o=0,l=n.offset_into_first_range;for(let h of n.terms){let c;if(o>=s)break;let u=e.get(h.hash);if(!u)throw Error(`Failed to find range list for term ${h.hash}`);let f=e=>{for(let t of e.xorbs[h.hash]??[]){let e=t.ranges.find(e=>e.chunks.start<=h.range.start&&e.chunks.end>=h.range.end);if(e)return{entry:t,descriptor:e}}},d=e=>`bytes=${e.ranges.map(e=>`${e.bytes.start}-${e.bytes.end}`).join(",")}`,g=async e=>{let r=await a(e.url,{headers:{Range:d(e)}});if(403===r.status){let t=f(n=await i());if(!t)throw Error(`Failed to find fetch info for term ${h.hash} and range ${h.range.start}-${h.range.end} after refresh`);e=t.entry,r=await a(e.url,{headers:{Range:d(e)}})}if(!r.ok)throw await I(r);let s=r.headers.get("content-type")??"";if(!s.includes("multipart/byteranges"))throw Error(`Expected multipart/byteranges response for multi-range request, got "${s}"`);let o=r.body?.getReader();if(!o)throw Error("Failed to get reader from response body");let l=new Q(s),c=[],g=0,p=t=>{for(let r of t){let t=e.ranges[g];if(!t)throw Error(`Received more multipart parts than the ${e.ranges.length} signed ranges`);c.push(el(r,t,u)),g++}};try{for(;;){let e=await o.read();if(t?.({event:"read"}),e.done)break;e.value&&p(l.push(e.value))}p(l.push())}finally{await o.cancel().catch(()=>{})}if(g!==e.ranges.length)throw Error(`Multi-range fetch produced ${g} parts but expected ${e.ranges.length} for term ${h.hash}`);for(let e of c)eh(e)},p=u.getRanges(h.range.start,h.range.end);if(!p.every(e=>e.data)){let e=f(n);if(!e)throw Error(`Failed to find fetch info for term ${h.hash} and range ${h.range.start}-${h.range.end}`);e.entry.ranges.length>1&&(await g(e.entry),p=u.getRanges(h.range.start,h.range.end))}if(p.every(e=>e.data)){r("all data available for term",h.hash,l);let e=X(p.map(e=>X(e.data.map(e=>e.byteLength))));if(e!==h.unpacked_length)throw Error(`Term ${h.hash} range ${h.range.start}-${h.range.end} decoded to ${e} bytes, expected ${h.unpacked_length}`);e:for(let e of p)for(let r of e.data){if(l){let e=Math.min(l,r.byteLength);if(r=r.slice(e),l-=e,!r.byteLength)continue}if(r.byteLength>s-o&&(r=r.slice(0,s-o)),o+=r.byteLength,yield e.refCount>1?r.slice():r,t?.({event:"progress",progress:{read:o,total:s}}),o>=s)break e}u.remove(h.range.start,h.range.end);continue}let y=f(n);if(!y)throw Error(`Failed to find fetch info for term ${h.hash} and range ${h.range.start}-${h.range.end}`);let w=y.descriptor;r("term",h),r("descriptor",w),r("readBytesToSkip",l);let b=await a(y.entry.url,{headers:{Range:`bytes=${w.bytes.start}-${w.bytes.end}`}});if(403===b.status){if(!(y=f(n=await i())))throw Error(`Failed to find fetch info for term ${h.hash} and range ${h.range.start}-${h.range.end} after refresh`);w=y.descriptor,b=await a(y.entry.url,{headers:{Range:`bytes=${w.bytes.start}-${w.bytes.end}`}})}if(!b.ok)throw await I(b);r("expected content length",b.headers.get("content-length"),"range",w.bytes,b.headers.get("content-range"));let m=b.body?.getReader();if(!m)throw Error("Failed to get reader from response body");let k=!1,v=w.chunks.start,U=u.getRanges(w.chunks.start,w.chunks.end),L=0;t:for(;!k&&o<s;){let e=await m.read();if(t?.({event:"read"}),k=e.done,r("read",e.value?.byteLength,"bytes","total read",o,"toSkip",l),!e.value){r("no data in result, cancelled",e);continue}for(L+=e.value.byteLength,c&&(e.value=P(c,e.value),c=void 0);o<s&&e.value?.byteLength;){if(e.value.byteLength<8){c=e.value;continue t}let n=ei(new DataView(e.value.buffer,e.value.byteOffset,8));if(r("chunk header",n,"to skip",l),e.value.byteLength<n.compressed_length+8){c=e.value;continue t}e.value=e.value.slice(8);let a=eo(n,e.value.subarray(0,n.compressed_length)),i=U.find(e=>v>=e.start&&v<e.end),u=v>=h.range.start&&v<h.range.end,f=u?2:1,d=!1;if(i&&i.refCount>=f&&(i.data??=[],i.data.push(a),d=!0),u){if(l){let e=Math.min(l,a.byteLength);a=a.slice(l),l-=e}a.byteLength>s-o&&(a=a.slice(0,s-o)),a.byteLength&&(r("yield",a.byteLength,"bytes",e.value.byteLength,"total read",o,d),o+=a.byteLength,yield d?a.slice():a,t?.({event:"progress",progress:{read:o,total:s}}))}v++,e.value=e.value.slice(n.compressed_length)}}if(k&&o<s&&L<w.bytes.end-w.bytes.start+1)throw r("done",k,"total read",o,s,L),r("failed to fetch all data for term",h.hash),Error(`Failed to fetch all data for term ${h.hash}, fetched ${L} bytes out of ${w.bytes.end-w.bytes.start+1}`);r("done",k,"total read",o,s,L),r("cancel reader"),await m.cancel()}}let a=!1===this.parallelDownloads?void 0:!0===this.parallelDownloads||void 0===this.parallelDownloads?{}:this.parallelDownloads;async function*s(n,a,s,i,o){let l=0,h=n.offset_into_first_range,c=n.terms,u=(e,t)=>{for(let r of e.xorbs[t.hash]??[])if(r.ranges.find(e=>e.chunks.start<=t.range.start&&e.chunks.end>=t.range.end))return r},f=[],d=new Map,g=[];for(let e of c){let t=u(n,e);if(!t)throw Error(`Failed to find fetch info for term ${e.hash} and range ${e.range.start}-${e.range.end}`);let r=d.get(t.url);void 0===r&&(r=f.length,f.push({hash:e.hash,ranges:t.ranges,url:t.url}),d.set(t.url,r)),g.push(r)}let p=Math.max(1,o.maxConcurrency??er),y=e=>X(e.ranges.map(e=>e.bytes.end-e.bytes.start+1)),w=f.length?Math.max(...f.map(y)):0,b=o.maxInFlightBytes??Math.min(0x10000000,Math.max(0x4000000,3*w)),m={nextEntry:0,neededEntry:0,target:1,error:void 0,finished:!1,inFlightBytes:0,decodedBytes:0,active:0,claimed:0,maxActive:0,activeHighWater:0,count429:0,targetHistory:[]},k=new en,v=async(e,t)=>{for(;!m.error&&!m.finished&&m.inFlightBytes+e>b&&t!==m.neededEntry;)await k.wait();m.inFlightBytes+=e},U=e=>{m.inFlightBytes-=e,k.notifyAll()},L=e=>{for(let t of f){let r=(e.xorbs[t.hash]??[]).find(e=>e.ranges.length===t.ranges.length&&e.ranges.every((e,r)=>e.chunks.start===t.ranges[r].chunks.start&&e.chunks.end===t.ranges[r].chunks.end));r&&(t.url=r.url,t.ranges=r.ranges)}},A=e=>`bytes=${e.ranges.map(e=>`${e.bytes.start}-${e.bytes.end}`).join(",")}`,x=async(r,s,o)=>{if(m.error||m.finished)return;let l=e.get(r.hash);if(!l)throw Error(`Failed to find range list for entry ${r.hash}`);let h=await a(r.url,{headers:{Range:A(r)}}),c=0,u=0;for(;403===h.status&&c<1||429===h.status&&u<3;)await h.body?.cancel().catch(()=>{}),403===h.status?(c++,L(n=await i())):(u++,m.count429++,k.notifyAll(),await ea(300*u)),h=await a(r.url,{headers:{Range:A(r)}});if(!h.ok)throw await I(h);let f=h.body?.getReader();if(!f)throw Error("Failed to get reader from response body");try{if(r.ranges.length>1){let e=h.headers.get("content-type")??"";if(!e.includes("multipart/byteranges"))throw Error(`Expected multipart/byteranges response for multi-range request, got "${e}"`);let n=new Q(e),a=0,s=async e=>{for(let t of e){let e=r.ranges[a];if(!e)throw Error(`Received more multipart parts than the ${r.ranges.length} signed ranges`);let n=el(t,e,l);o.committed+=eh(n),m.decodedBytes+=t.byteLength,a++,k.notifyAll()}};for(;;){if(m.error||m.finished)return;let e=await f.read();if(t?.({event:"read"}),e.done)break;e.value&&await s(n.push(e.value))}if(await s(n.push()),!m.finished&&a!==r.ranges.length)throw Error(`Multi-range fetch produced ${a} parts but expected ${r.ranges.length} for ${r.hash}`)}else{let e,n=r.ranges[0],a=l.getRanges(n.chunks.start,n.chunks.end),s=new Map,i=n.chunks.start,h=!1;for(;!h;){if(m.error||m.finished)return;let r=await f.read();t?.({event:"read"}),h=r.done;let n=r.value;if(n)for(e&&(n=P(e,n),e=void 0);n.byteLength;){if(n.byteLength<8){e=n;break}let t=ei(new DataView(n.buffer,n.byteOffset,8));if(n.byteLength<8+t.compressed_length){e=n;break}let r=eo(t,n.subarray(8,8+t.compressed_length)),l=a.find(e=>i>=e.start&&i<e.end);if(l){let e=s.get(l);e||(e=[],s.set(l,e)),e.push(r),i!==l.end-1||l.data||(l.data=e,o.committed+=X(e.map(e=>e.byteLength)),k.notifyAll())}m.decodedBytes+=r.byteLength,i++,n=n.slice(8+t.compressed_length)}}if(!m.finished){for(let e of a)if(!e.data)throw Error(`Failed to fetch all data for ${r.hash} chunks ${e.start}-${e.end} (stream ended early)`)}}}finally{await f.cancel().catch(()=>{})}},E=e=>e instanceof TypeError||/terminated|socket|network|ECONNRESET|fetch failed/i.test(String(e)),S=async e=>{for(;;){if(m.error||m.finished)return;if(e>=m.target){await k.wait();continue}let t=m.nextEntry;if(t>=f.length)return;m.nextEntry++,m.claimed++;let n=y(f[t]);try{let e;if(await v(n,t),m.error||m.finished)return void U(n);m.active++,m.maxActive=Math.max(m.maxActive,m.active),m.activeHighWater=Math.max(m.activeHighWater,m.active);let a={committed:0};for(let s=0;s<2;s++)try{await x(f[t],t,a),U(n-a.committed),e=void 0;break}catch(n){if(e=n,0===s&&!m.finished&&E(n)){r("retrying entry after transient error",f[t].hash,n),await ea(250);continue}}e&&(U(n),m.error??=e),m.active--}finally{m.claimed--,k.notifyAll()}}},T=Promise.allSettled(Array.from({length:p},(e,t)=>S(t))),$=new Map,_=0,C=0,R=1,B=0,M=setInterval(()=>{let e=m.decodedBytes-_;_=m.decodedBytes;let t=m.activeHighWater;if(m.activeHighWater=m.active,B=Math.max(0,B-1),m.count429>C)C=m.count429,m.target=Math.max(1,m.target-1),R=1,B=10;else if(0===e&&m.nextEntry<f.length)m.target=Math.min(p,m.target+1),R=1;else if(R>0)R--;else if(m.claimed>=m.target&&t<=m.target){let t=(($.get(m.target)??e)+e)/2;$.set(m.target,t);let r=$.get(m.target-1);m.target>1&&void 0===r?(m.target--,R=1):void 0!==r&&t<1.05*r?($.delete(m.target),m.target--,R=1,B=10):0===B&&m.target<p&&(m.target++,R=1)}m.targetHistory.push(m.target),k.notifyAll()},o.controllerTickMs??500);try{for(let n=0;n<c.length;n++){let a=c[n];if(l>=s)break;m.neededEntry=g[n],k.notifyAll();let i=e.get(a.hash);if(!i)throw Error(`Failed to find range list for term ${a.hash}`);let o=i.getRanges(a.range.start,a.range.end);for(;!o.every(e=>e.data);){if(m.error)throw m.error;if(0===m.claimed&&m.nextEntry>=f.length)throw Error(`Download workers finished without producing data for term ${a.hash} range ${a.range.start}-${a.range.end}`);await k.wait(),o=i.getRanges(a.range.start,a.range.end)}r("all data available for term",a.hash,h);let u=X(o.map(e=>X(e.data.map(e=>e.byteLength))));if(u!==a.unpacked_length)throw Error(`Term ${a.hash} range ${a.range.start}-${a.range.end} decoded to ${u} bytes, expected ${a.unpacked_length}`);e:for(let e of o)for(let r of e.data){if(h){let e=Math.min(h,r.byteLength);if(r=r.slice(e),h-=e,!r.byteLength)continue}if(r.byteLength>s-l&&(r=r.slice(0,s-l)),l+=r.byteLength,yield e.refCount>1?r.slice():r,t?.({event:"progress",progress:{read:l,total:s}}),l>=s)break e}let d=0;for(let e of o)1===e.refCount&&e.data&&(d+=X(e.data.map(e=>e.byteLength)));i.remove(a.range.start,a.range.end),U(d)}}finally{m.finished=!0,clearInterval(M),k.notifyAll(),await T,o.onStat?.({entries:f.length,maxActive:m.maxActive,finalTarget:m.target,count429:m.count429,targetHistory:m.targetHistory})}}let i=a&&(a.maxConcurrency??er)>1?s(this.reconstructionInfo,this.fetch,this.end-this.start,this.#g.bind(this),a):n(this.reconstructionInfo,this.fetch,this.end-this.start,this.#g.bind(this));return new ReadableStream({async pull(e){let t=await i.next();t.value&&e.enqueue(t.value),t.done&&e.close()},async cancel(){await i.return?.(void 0)},type:"bytes"},{highWaterMark:1e3})}async arrayBuffer(){let e=(await this.#p()).getReader(),t=[];for(;;){let{done:r,value:n}=await e.read();if(r)break;t.push(n)}return function(e){let t=new Uint8Array(X(e.map(e=>e.byteLength))),r=0;for(let n of e)t.set(n,r),r+=n.byteLength;return t}(t).buffer}async text(){return new TextDecoder().decode(await this.arrayBuffer())}async response(){return new Response(await this.#p())}stream(){let e=new TransformStream;return this.#p().then(t=>t.pipeThrough(e)).catch(t=>e.writable.abort(t.message)),e.readable}},eu=new Map,ef=new Map;function ed(e){return JSON.stringify([e.refreshUrl,e.initialAccessToken])}async function eg(e,t,r){let n=ed({refreshUrl:r,initialAccessToken:e}),a=ef.get(n);if(a&&a.expiresAt>new Date(Date.now()+6e4))return{accessToken:a.accessToken,casUrl:a.casUrl};let s=eu.get(n);if(s)return s;let i=(async()=>{let a=await t(r,{headers:{...e?{Authorization:`Bearer ${e}`}:{}}});if(!a.ok)throw Error(`Failed to get JWT token: ${a.status} ${await a.text()}`);let s=await a.json(),i={accessToken:s.accessToken,expiresAt:new Date(1e3*s.exp),casUrl:s.casUrl};for(let[e,t]of ef.entries())if(t.expiresAt<new Date(Date.now()+6e4))ef.delete(e);else break;if(ef.size>=1e3){let e=ef.keys().next().value;e&&ef.delete(e)}return ef.set(n,i),{accessToken:s.accessToken,casUrl:s.casUrl}})().finally(()=>{eu.delete(n)});return eu.set(n,i),i}"ff".repeat(32);var ep=class extends Blob{originalBlob;spliceOperations;constructor(e,t){super(),this.originalBlob=e,this.spliceOperations=t}static create(e,t){for(let r of(Array.isArray(t)||(t=[t]),t))if(r.start<0||r.end<0||r.start>e.size||r.end>e.size||r.start>r.end)throw Error("Invalid start/end positions for SplicedBlob");let r=[...t].sort((e,t)=>e.start-t.start);for(let e=0;e<r.length-1;e++)if(r[e].end>r[e+1].start)throw Error("Overlapping splice operations are not supported");return new ep(e,r)}get size(){let e=0,t=0;for(let r of this.spliceOperations)e+=r.end-r.start,t+=r.insert.size;return this.originalBlob.size-e+t}get type(){return this.originalBlob.type}slice(e=0,t=this.size){if(e<0||t<0)throw TypeError("Unsupported negative start/end on SplicedBlob.slice");if(e=Math.min(e,this.size),t=Math.min(t,this.size),e>=t)return new Blob([]);let r=this.segments,n=[0],a=0;for(let e of r)a+=e.size,n.push(a);let s=[];for(let a=0;a<r.length;a++){let i=n[a];if(n[a+1]<=e)continue;if(i>=t)break;let o=Math.max(0,e-i),l=Math.min(r[a].size,t-i);o<l&&s.push(r[a].slice(o,l))}return new Blob(s)}get firstSpliceIndex(){return this.spliceOperations[0]?.start??1/0}async arrayBuffer(){let e=this.segments,t=await Promise.all(e.map(e=>e.arrayBuffer())),r=new Uint8Array(X(t.map(e=>e.byteLength))),n=0;for(let e of t)r.set(new Uint8Array(e),n),n+=e.byteLength;return r.buffer}async text(){let e=await this.arrayBuffer();return new TextDecoder().decode(e)}stream(){return new ReadableStream({start:async e=>{try{for(let t of this.segments){let r=t.stream().getReader();try{for(;;){let{done:t,value:n}=await r.read();if(t)break;e.enqueue(n)}}finally{r.releaseLock()}}e.close()}catch(t){e.error(t)}}})}get segments(){let e=[],t=0;for(let r of[...this.spliceOperations].sort((e,t)=>e.start-t.start))t<r.start&&e.push(this.originalBlob.slice(t,r.start)),r.insert.size>0&&e.push(r.insert),t=r.end;return t<this.originalBlob.size&&e.push(this.originalBlob.slice(t)),e}};async function ey(e){let t;if("u"<typeof window&&!e?.redirectedUrl)throw Error("oauthHandleRedirect is only available in the browser, unless you provide redirectedUrl");if("u"<typeof localStorage&&(!e?.nonce||!e?.codeVerifier))throw Error("oauthHandleRedirect requires localStorage to be available, unless you provide nonce and codeVerifier");let r=e?.redirectedUrl??window.location.href,n=(()=>{try{return new URL(r).searchParams}catch(e){throw Error("Failed to parse redirected URL: "+r)}})(),[a,s]=[n.get("error"),n.get("error_description")];if(a)throw Error(`${a}: ${s}`);let i=n.get("code"),o=e?.nonce??localStorage.getItem("huggingface.co:oauth:nonce");if(!i)throw Error("Missing oauth code from query parameters in redirected URL: "+r);if(!o)throw Error("Missing oauth nonce from localStorage");let l=e?.codeVerifier??localStorage.getItem("huggingface.co:oauth:code_verifier");if(!l)throw Error("Missing oauth code_verifier from localStorage");let h=n.get("state");if(!h)throw Error("Missing oauth state from query parameters in redirected URL");try{t=JSON.parse(h)}catch{throw Error("Invalid oauth state in redirected URL, unable to parse JSON: "+h)}if(t.nonce!==o)throw Error("Invalid oauth state in redirected URL");let c=e?.hubUrl||R,u=`${new URL(c).origin}/.well-known/openid-configuration`,f=await fetch(u,{headers:{Accept:"application/json"}});if(!f.ok)throw await I(f);let d=await f.json(),g=await fetch(d.token_endpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"authorization_code",code:i,redirect_uri:t.redirectUri,code_verifier:l}).toString()});if(e?.codeVerifier||localStorage.removeItem("huggingface.co:oauth:code_verifier"),e?.nonce||localStorage.removeItem("huggingface.co:oauth:nonce"),!g.ok)throw await I(g);let p=await g.json(),y=new Date(Date.now()+1e3*p.expires_in),w=await fetch(d.userinfo_endpoint,{headers:{Authorization:`Bearer ${p.access_token}`}});if(!w.ok)throw await I(w);let b=await w.json();return{accessToken:p.access_token,accessTokenExpiresAt:y,userInfo:b,state:t.state,scope:p.scope}}async function ew(e){if("u"<typeof window&&!e?.redirectedUrl)throw Error("oauthHandleRedirect is only available in the browser, unless you provide redirectedUrl");if("u"<typeof localStorage&&(!e?.nonce||!e?.codeVerifier))throw Error("oauthHandleRedirect requires localStorage to be available, unless you provide nonce and codeVerifier");let t=new URLSearchParams(e?.redirectedUrl??window.location.search);return t.has("error")?ey(e):!!t.has("code")&&(localStorage.getItem("huggingface.co:oauth:nonce")?ey(e):(console.warn("Missing oauth nonce from localStorage. This can happen when the user refreshes the page after logging in, without changing the URL."),!1))}async function eb(e){if("u"<typeof window&&(!e?.redirectUrl||!e?.clientId))throw Error("oauthLogin is only available in the browser, unless you provide clientId and redirectUrl");if("u"<typeof localStorage&&!e?.localStorage)throw Error("oauthLogin requires localStorage to be available in the context, unless you provide a localStorage empty object as argument");let t=e?.hubUrl||R,r=`${new URL(t).origin}/.well-known/openid-configuration`,n=await fetch(r,{headers:{Accept:"application/json"}});if(!n.ok)throw await I(n);let a=await n.json(),s=globalThis.crypto.randomUUID(),i=globalThis.crypto.randomUUID()+globalThis.crypto.randomUUID();if(e?.localStorage){if(void 0!==e.localStorage.codeVerifier&&null!==e.localStorage.codeVerifier)throw Error("localStorage.codeVerifier must be initially set to null or undefined, and will be filled by oauthLoginUrl");if(void 0!==e.localStorage.nonce&&null!==e.localStorage.nonce)throw Error("localStorage.nonce must be initially set to null or undefined, and will be filled by oauthLoginUrl");e.localStorage.codeVerifier=i,e.localStorage.nonce=s}else localStorage.setItem("huggingface.co:oauth:nonce",s),localStorage.setItem("huggingface.co:oauth:code_verifier",i);let o=e?.redirectUrl||("u">typeof window?window.location.href:void 0);if(!o)throw Error("Missing redirectUrl");let l=JSON.stringify({nonce:s,redirectUri:o,state:e?.state}),h="u">typeof window?window.huggingface?.variables??null:null,c=e?.clientId||h?.OAUTH_CLIENT_ID;if(!c){if(h)throw Error("Missing clientId, please add hf_oauth: true to the README.md's metadata in your static Space");throw Error("Missing clientId")}let u=(function(e){if(globalThis.Buffer)return globalThis.Buffer.from(e).toString("base64");{let t=[];return e.forEach(e=>{t.push(String.fromCharCode(e))}),globalThis.btoa(t.join(""))}})(new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",new TextEncoder().encode(i)))).replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/=/g,"");return`${a.authorization_endpoint}?${new URLSearchParams({client_id:c,scope:e?.scopes||h?.OAUTH_SCOPES||"openid profile",response_type:"code",redirect_uri:o,state:l,code_challenge:u,code_challenge_method:"S256"}).toString()}`}new Uint8Array(32),new Uint8Array([72,70,82,101,112,111,77,101,116,97,68,97,116,97,0,85,105,103,69,106,123,129,87,131,165,189,217,92,205,209,74,169]),[...["transformer","unet"].map(e=>({single:`${e}/diffusion_pytorch_model.safetensors`,index:`${e}/diffusion_pytorch_model.safetensors.index.json`}))],e.s(["oauthHandleRedirectIfPresent",0,ew,"oauthLoginUrl",0,eb],86860)},23384,e=>{"use strict";var t=e.i(43476),r=e.i(86860),n=e.i(71645),a=e.i(96869);let s="sharpify:hf-session:v1";function i(e,t){return"object"==typeof e&&null!==e&&"string"==typeof e.accessToken&&e.accessToken.startsWith("hf_")&&"number"==typeof e.expiresAt&&Number.isFinite(e.expiresAt)&&e.expiresAt>t&&"string"==typeof e.username&&e.username.length>0}function o(e){let t=new URL(e);for(let e of["code","state","error","error_description","error_uri","hf_login"])t.searchParams.delete(e);return`${t.pathname}${t.search}${t.hash}`}let l=function(e){let t=e.now??Date.now,r=0,n=null;function a(){try{return e.getStorage()}catch{return null}}function o(){try{a()?.removeItem(s)}catch{}}return{load:function(l){let h=new URL(l).searchParams;if(!h.has("code")&&!h.has("error"))return Promise.resolve(function(){try{let e=a()?.getItem(s);if(!e)return null;let r=JSON.parse(e);if(i(r,t()))return r}catch{}return o(),null}());if(n?.url===l)return n.task;let c=++r,u=Promise.resolve().then(e.handleRedirect).then(e=>{if(c!==r)return null;let n=e?{accessToken:e.accessToken,expiresAt:e.accessTokenExpiresAt.getTime(),username:e.userInfo.preferred_username}:null;if(!i(n,t()))throw o(),Error("Hugging Face did not return a valid sign-in session.");try{a()?.setItem(s,JSON.stringify(n))}catch{}return n}).catch(e=>{throw c===r&&o(),e});return n={url:l,task:u},u},clear:function(){r+=1,n=null,o()}}}({handleRedirect:r.oauthHandleRedirectIfPresent,getStorage:()=>window.sessionStorage}),h=(0,n.createContext)(null);e.s(["HfOAuthProvider",0,function({children:e}){let[s,i]=(0,n.useState)(null),[c,u]=(0,n.useState)(!a.REQUIRES_HF_SIGN_IN),[f,d]=(0,n.useState)(null),[g,p]=(0,n.useState)(!1),[y,w]=(0,n.useState)(null),b=(0,n.useRef)(!1),m=(0,n.useCallback)(async()=>{if(a.REQUIRES_HF_SIGN_IN&&!b.current){b.current=!0,p(!0),d(null);try{let e=`${window.location.origin}${window.location.pathname}`;window.location.assign(await (0,r.oauthLoginUrl)({redirectUrl:e}))}catch{d("Hugging Face sign-in is unavailable right now."),b.current=!1,p(!1)}}},[]);(0,n.useEffect)(()=>{if(!a.REQUIRES_HF_SIGN_IN)return;let e=!0,t=new URLSearchParams(window.location.search),r=t.has("code")||t.has("error"),n="1"===t.get("hf_login"),s=window.self!==window.top;return l.load(window.location.href).then(t=>{e&&(i(t),!n||s||t||m())}).catch(()=>{e&&r&&d("Hugging Face sign-in did not finish. Please try again.")}).finally(()=>{if(e){var t;let e;(r||n)&&window.history.replaceState(window.history.state,"",o(window.location.href)),w(s?((e=new URL(o(t=window.location.href),new URL(t).origin)).searchParams.set("hf_login","1"),e.href):null),u(!0)}}),()=>{e=!1}},[m]),(0,n.useEffect)(()=>{let e;if(!s)return;let t=()=>{window.clearTimeout(e);let r=s.expiresAt-Date.now();r<=0?(l.clear(),i(null)):e=window.setTimeout(t,Math.min(r,0x7fffffff))};return t(),window.addEventListener("focus",t),()=>{window.clearTimeout(e),window.removeEventListener("focus",t)}},[s]);let k=(0,n.useCallback)(()=>{l.clear(),i(null),d(null)},[]),v=(0,n.useMemo)(()=>({required:a.REQUIRES_HF_SIGN_IN,ready:c,accessToken:s?.accessToken??null,username:s?.username??null,error:f,isSigningIn:g,signInUrl:y,signIn:m,signOut:k}),[f,g,c,s,m,y,k]);return(0,t.jsx)(h.Provider,{value:v,children:e})},"useHfOAuth",0,function(){let e=(0,n.useContext)(h);if(!e)throw Error("useHfOAuth must be used within HfOAuthProvider.");return e}],23384)},96869,e=>{"use strict";e.i(47167);let t="suplo6669/sharpify-ai-inference".trim()||"",r=t.length>0;e.s(["HF_INFERENCE_SPACE",0,t,"REQUIRES_HF_SIGN_IN",0,r])}]);
|
_next/static/chunks/2t1j0__40kfnp.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,5014,e=>{"use strict";var t=e.i(71645);let n=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},i=(0,t.createContext)({}),r=(0,t.forwardRef)(({color:e,size:r,width:s,height:l,strokeWidth:o,absoluteStrokeWidth:c,nonScalingStroke:u,className:d="",children:h,iconNode:f=[],icon:p={node:f,aliases:[],size:24},...m},g)=>{let{size:v=24,strokeWidth:b=2,absoluteStrokeWidth:y=!1,nonScalingStroke:x=!1,color:w="currentColor",className:j=""}=(0,t.useContext)(i)??{},k=!!h||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(m),[N,z,S=[]]=function(e,t={}){return function(e,t={}){let i=t.attributeNames??{},r=e=>i[e]??e,s=e.size??e.width??a.width,l=e.size??e.height??a.height,o=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],c=[...e.name?[`lucide-${e.name}`]:[],...o],u=t.className?.split(" ").filter(Boolean)??[],d=!1===t.includeDefaultClasses?n(...u):n("lucide",...c,...u),h=t.absoluteStrokeWidth?Number(t.strokeWidth??a["stroke-width"])*Number(e.size??e.width??a.width)/Number(t.size??t.width??a.width):t.strokeWidth??a["stroke-width"];return["svg",{...Object.entries(a).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),..."color"in t&&t.color&&{[r("stroke")]:t.color},..."size"in t&&null!=t.size&&{[r("width")]:t.size,[r("height")]:t.size},..."width"in t&&null!=t.width&&{[r("width")]:t.width},..."height"in t&&null!=t.height&&{[r("height")]:t.height},[r("stroke-width")]:h,...d&&{[r("class")]:d},[r("viewBox")]:`0 0 ${s} ${l}`,...!1===t.hasA11yProp?{[r("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[n,a,i]=e,s=t.nonScalingStroke?{[r("vector-effect")]:"non-scaling-stroke",...a}:a;return i?[n,s,i]:[n,s]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(p,{color:e??w,width:s??r??v,height:l??r??v,strokeWidth:o??b,absoluteStrokeWidth:c??y,nonScalingStroke:u??x,className:n(j,d),hasA11yProp:k,attributes:m});return(0,t.createElement)(N,{ref:g,...z},[...S.map(([e,n])=>(0,t.createElement)(e,n)),...Array.isArray(h)?h:[h]])});e.s(["default",0,r],5014)},56420,75775,28623,e=>{"use strict";var t=e.i(71645),n=e.i(5014);function a(e,i=[],r=[]){let s,l="string"==typeof e?function(e,t,n=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...n.length>0?{aliases:n}:{}}}(e,i,r):e,o=(0,t.forwardRef)(({className:e,...a},i)=>(0,t.createElement)(n.default,{ref:i,icon:l,className:e,...a}));return l.name&&(o.displayName=(s=(e=>{let t="",n=!1;for(let a of e){if("-"===a||"_"===a||a<=" "){n=t.length>0;continue}0===t.length?t+=a.toLowerCase():t+=n?a.toUpperCase():a,n=!1}return t})(l.name)).charAt(0).toUpperCase()+s.slice(1)),o}e.s(["default",0,a],56420);let i={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};i.node;let r=a(i);e.s(["ArrowUpRight",0,r],75775);let s={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};s.node;let l=a(s);e.s(["Sparkles",0,l],28623)},25633,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var a={default:function(){return m},defaultHead:function(){return d}};for(var i in a)Object.defineProperty(n,i,{enumerable:!0,get:a[i]});let r=e.r(55682),s=e.r(90809),l=e.r(43476),o=s._(e.r(71645)),c=r._(e.r(98879)),u=e.r(42732);function d(){return[(0,l.jsx)("meta",{charSet:"utf-8"},"charset"),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let f=["name","httpEquiv","charSet","itemProp"];function p(e){let t,n,a,i;return e.reduce(h,[]).reverse().concat(d().reverse()).filter((t=new Set,n=new Set,a=new Set,i={},e=>{let r=!0,s=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){s=!0;let n=e.key.slice(e.key.indexOf("$")+1);t.has(n)?r=!1:t.add(n)}switch(e.type){case"title":case"base":n.has(e.type)?r=!1:n.add(e.type);break;case"meta":for(let t=0,n=f.length;t<n;t++){let n=f[t];if(e.props.hasOwnProperty(n))if("charSet"===n)a.has(n)?r=!1:a.add(n);else{let t=e.props[n],a=i[n]||new Set;("name"!==n||!s)&&a.has(t)?r=!1:(a.add(t),i[n]=a)}}}return r})).reverse().map((e,t)=>{let n=e.key||t;return o.default.cloneElement(e,{key:n})})}let m=function({children:e}){let t=(0,o.useContext)(u.HeadManagerContext);return(0,l.jsx)(c.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},18556,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ImageConfigContext",{enumerable:!0,get:function(){return r}});let a=e.r(55682)._(e.r(71645)),i=e.r(87690),r=a.default.createContext(i.imageConfigDefault)},65856,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"RouterContext",{enumerable:!0,get:function(){return a}});let a=e.r(55682)._(e.r(71645)).default.createContext(null)},70965,(e,t,n)=>{"use strict";function a(e,t){let n=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-n)<Math.abs(e-n)?t:e,t.qualities[0]):n}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"findClosestQuality",{enumerable:!0,get:function(){return a}})},1948,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});let a=e.r(70965),i=e.r(43369);function r({config:e,src:t,width:n,quality:s}){let l=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,i.getAssetToken)())l=void 0;else{let e=t.indexOf("?");if(-1!==e){let n=new URLSearchParams(t.slice(e+1)),a=n.get("dpl");if(a){l=a,n.delete("dpl");let i=n.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
|
| 2 |
+
Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,a.findClosestQuality)(s,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${n}&q=${o}${t.startsWith("/")&&l?`&dpl=${l}`:""}`}r.__next_img_default=!0;let s=r},18581,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return i}});let a=e.r(71645);function i(e,t){let n=(0,a.useRef)(null),i=(0,a.useRef)(null);return(0,a.useCallback)(a=>{if(null===a){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=r(e,a)),t&&(i.current=r(t,a))},[e,t])}function r(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},5500,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Image",{enumerable:!0,get:function(){return w}});let a=e.r(55682),i=e.r(90809),r=e.r(43476),s=i._(e.r(71645)),l=a._(e.r(74080)),o=a._(e.r(25633)),c=e.r(8927),u=e.r(87690),d=e.r(18556),h=e.r(65856),f=a._(e.r(1948)),p=e.r(18581),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,n,a,i,r,s){let l=e?.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),n?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let a=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>a,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{a=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}a?.current&&a.current(e)}}))}function v(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b="u"<typeof window?s.useEffect:s.useLayoutEffect,y=(0,s.forwardRef)(({src:e,srcSet:t,sizes:n,height:a,width:i,decoding:l,className:o,style:c,fetchPriority:u,placeholder:d,loading:h,unoptimized:f,fill:m,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:w,setShowAltText:j,sizesInput:k,onLoad:N,onError:z,...S},E)=>{let R=(0,s.useRef)(!1),_=(0,s.useRef)(null);b(()=>{let{current:e}=R,{current:t}=_;e||null===t||(z&&(t.src=t.src),t.complete&&g(t,d,y,x,w,f,k),R.current=!0)},[e,d,y,x,z,f,k]);let C=(0,p.useMergedRef)(E,_);return(0,r.jsx)("img",{...S,...v(u),loading:h,width:i,height:a,decoding:l,"data-nimg":m?"fill":"1",className:o,style:c,sizes:n,srcSet:t,src:e,ref:C,onLoad:e=>{g(e.currentTarget,d,y,x,w,f,k)},onError:e=>{j(!0),"empty"!==d&&w(!0),z&&z(e)}})});function x({isAppRouter:e,imgAttributes:t}){let n={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...v(t.fetchPriority)};return e&&l.default.preload?(l.default.preload(t.src,n),null):(0,r.jsx)(o.default,{children:(0,r.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...n},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,s.forwardRef)((e,t)=>{let n=(0,s.useContext)(h.RouterContext),a=(0,s.useContext)(d.ImageConfigContext),i=(0,s.useMemo)(()=>{let e=m||a||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n,qualities:i,localPatterns:"u"<typeof window?a?.localPatterns:e.localPatterns}},[a]),{onLoad:l,onLoadingComplete:o}=e,p=(0,s.useRef)(l);(0,s.useEffect)(()=>{p.current=l},[l]);let g=(0,s.useRef)(o);(0,s.useEffect)(()=>{g.current=o},[o]);let[v,b]=(0,s.useState)(!1),[w,j]=(0,s.useState)(!1),{props:k,meta:N}=(0,c.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:v,showAltText:w});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{...k,unoptimized:N.unoptimized,placeholder:N.placeholder,fill:N.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:j,sizesInput:e.sizes,ref:t}),N.preload?(0,r.jsx)(x,{isAppRouter:!n,imgAttributes:k}):null]})});("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},94909,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var a={default:function(){return u},getImageProps:function(){return c}};for(var i in a)Object.defineProperty(n,i,{enumerable:!0,get:a[i]});let r=e.r(55682),s=e.r(8927),l=e.r(5500),o=r._(e.r(1948));function c(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let u=l.Image},57688,(e,t,n)=>{t.exports=e.r(94909)},88143,(e,t,n)=>{"use strict";function a({widthInt:e,heightInt:t,blurWidth:n,blurHeight:i,blurDataURL:r,objectFit:s}){let l=n?40*n:e,o=i?40*i:t,c=l&&o?`viewBox='0 0 ${l} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${c?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${r}'/%3E%3C/svg%3E`}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImageBlurSvg",{enumerable:!0,get:function(){return a}})},87690,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a={VALID_LOADERS:function(){return r},imageConfigDefault:function(){return s}};for(var i in a)Object.defineProperty(n,i,{enumerable:!0,get:a[i]});let r=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},8927,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImgProps",{enumerable:!0,get:function(){return c}});let a=e.r(43369),i=e.r(88143),r=e.r(87690),s=["-moz-initial","fill","none","scale-down",void 0];function l(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c({src:e,sizes:t,unoptimized:n=!1,priority:u=!1,preload:d=!1,loading:h,className:f,quality:p,width:m,height:g,fill:v=!1,style:b,overrideSrc:y,onLoad:x,onLoadingComplete:w,placeholder:j="empty",blurDataURL:k,fetchPriority:N,decoding:z="async",layout:S,objectFit:E,objectPosition:R,lazyBoundary:_,lazyRoot:C,...P},M){var U;let O,A,T,{imgConf:L,showAltText:I,blurComplete:$,defaultLoader:D}=M,q=L||r.imageConfigDefault;if("allSizes"in q)O=q;else{let e=[...q.deviceSizes,...q.imageSizes].sort((e,t)=>e-t),t=q.deviceSizes.sort((e,t)=>e-t),n=q.qualities?.sort((e,t)=>e-t);O={...q,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===D)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let F=P.loader||D;delete P.loader,delete P.srcSet;let G="__next_img_default"in F;if(G){if("custom"===O.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
|
| 3 |
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=F;F=t=>{let{config:n,...a}=t;return e(a)}}if(S){"fill"===S&&(v=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];e&&(b={...b,...e});let n={responsive:"100vw",fill:"100vw"}[S];n&&!t&&(t=n)}let W="",B=o(m),H=o(g);if((U=e)&&"object"==typeof U&&(l(U)||void 0!==U.src)){let t=l(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(A=t.blurWidth,T=t.blurHeight,k=k||t.blurDataURL,W=t.src,!v)if(B||H){if(B&&!H){let e=B/t.width;H=Math.round(t.height*e)}else if(!B&&H){let e=H/t.height;B=Math.round(t.width*e)}}else B=t.width,H=t.height}let V=!u&&!d&&("lazy"===h||void 0===h);(!(e="string"==typeof e?e:W)||e.startsWith("data:")||e.startsWith("blob:"))&&(n=!0,V=!1),O.unoptimized&&(n=!0),G&&!O.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(n=!0);let Y=o(p),Z=Object.assign(v?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:E,objectPosition:R}:{},I?{}:{color:"transparent"},b),X=$||"empty"===j?null:"blur"===j?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:B,heightInt:H,blurWidth:A,blurHeight:T,blurDataURL:k||"",objectFit:Z.objectFit})}")`:`url("${j}")`,J=s.includes(Z.objectFit)?"fill"===Z.objectFit?"100% 100%":"cover":Z.objectFit,K=X?{backgroundSize:J,backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},Q=function({config:e,src:t,unoptimized:n,width:i,quality:r,sizes:s,loader:l}){if(n){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,a.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,a.getAssetToken)())e=void 0;else if(e){let n=t.indexOf("?");if(-1!==n){let a=new URLSearchParams(t.slice(n+1));a.get("dpl")||(a.append("dpl",e),t=t.slice(0,n)+"?"+a.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:o,kind:c}=function({deviceSizes:e,allSizes:t},n,a){if(a){let n=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=n.exec(a);)i.push(parseInt(e[2]));if(i.length){let n=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*n),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof n?{widths:e,kind:"w"}:{widths:[...new Set([n,2*n].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,s),u=o.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:o.map((n,a)=>`${l({config:e,src:t,quality:r,width:n})} ${"w"===c?n:a+1}${c}`).join(", "),src:l({config:e,src:t,quality:r,width:o[u]})}}({config:O,src:e,unoptimized:n,width:B,quality:Y,sizes:t,loader:F}),ee=V?"lazy":h;return{props:{...P,loading:ee,fetchPriority:N,width:B,height:H,decoding:z,className:f,style:{...Z,...K},sizes:Q.sizes,srcSet:Q.srcSet,src:y||Q.src},meta:{unoptimized:n,preload:d||u,placeholder:j,fill:v}}}},98879,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return l}});let a=e.r(71645),i="u"<typeof window,r=i?()=>{}:a.useLayoutEffect,s=i?()=>{}:a.useEffect;function l(e){let{headManager:t,reduceComponentsToState:n}=e;function l(){if(t&&t.mountedInstances){let e=a.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(e))}}return i&&(t?.mountedInstances?.add(e.children),l()),r(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),r(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},26564,e=>{"use strict";var t=e.i(43476),n=e.i(75775),a=e.i(56420);let i={name:"log-in",size:24,node:[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]};i.node;let r=(0,a.default)(i),s={name:"log-out",size:24,node:[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]};s.node;let l=(0,a.default)(s);var o=e.i(28623),c=e.i(23384);e.s(["AppHeader",0,function(){let e=(0,c.useHfOAuth)();return(0,t.jsxs)("header",{className:"site-header",children:[(0,t.jsxs)("a",{className:"brand-lockup",href:"#top","aria-label":"Sharpify AI home",children:[(0,t.jsx)("span",{className:"brand-mark",children:(0,t.jsx)(o.Sparkles,{size:16,strokeWidth:2.2})}),(0,t.jsxs)("span",{children:["sharpify",(0,t.jsx)("span",{className:"brand-ai",children:".ai"})]})]}),(0,t.jsxs)("nav",{className:"main-nav","aria-label":"Main navigation",children:[(0,t.jsx)("a",{href:"#studio",children:"Enhance"}),(0,t.jsx)("a",{href:"#how-it-works",children:"How it works"}),(0,t.jsx)("a",{href:"#about",children:"About"})]}),(0,t.jsxs)("div",{className:"header-actions",children:[e.required&&(0,t.jsxs)("div",{className:"header-auth-wrap",children:[e.signInUrl&&!e.accessToken?(0,t.jsxs)("a",{className:"header-cta header-auth-button",href:e.signInUrl,target:"_blank",rel:"noopener noreferrer","aria-label":"Sign in with HF (opens app in a new tab)",children:[(0,t.jsx)(r,{size:14}),(0,t.jsx)("span",{children:"Sign in with HF"})]}):(0,t.jsxs)("button",{className:"header-cta header-auth-button",type:"button",disabled:!e.ready||e.isSigningIn,onClick:()=>{e.accessToken?e.signOut():e.signIn()},children:[e.accessToken?(0,t.jsx)(l,{size:14}):(0,t.jsx)(r,{size:14}),(0,t.jsx)("span",{children:e.ready?e.isSigningIn?"Connecting…":e.accessToken?`@${e.username??"signed in"} \xb7 Sign out`:"Sign in with HF":"Checking sign-in…"})]}),e.error&&(0,t.jsx)("span",{className:"header-auth-error",role:"status",children:e.error})]}),(0,t.jsxs)("a",{className:"header-cta",href:"#studio",children:["Open studio ",(0,t.jsx)(n.ArrowUpRight,{size:15})]})]})]})}],26564)},21342,e=>{"use strict";var t=e.i(43476),n=e.i(57688),a=e.i(71645),i=e.i(56420);let r={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};r.node;let s=(0,i.default)(r),l={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};l.node;let o=(0,i.default)(l),c={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};c.node;let u=(0,i.default)(c),d={name:"upload",size:24,node:[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]};d.node;let h=(0,i.default)(d),f={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};f.node;let p=(0,i.default)(f),m={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};m.node;let g=(0,i.default)(m),v={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};v.node;let b=(0,i.default)(v),y={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};y.node;let x=(0,i.default)(y),w={name:"file-image",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]};w.node;let j=(0,i.default)(w),k={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};k.node;let N=(0,i.default)(k),z={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};z.node;let S=(0,i.default)(z),E={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};E.node;let R=(0,i.default)(E),_={name:"wand-sparkles",size:24,node:[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],aliases:["wand-2"]};_.node;let C=(0,i.default)(_),P={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};P.node;let M=(0,i.default)(P),U={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};U.node;let O=(0,i.default)(U),A={name:"scan-line",size:24,node:[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]]};A.node;let T=(0,i.default)(A),L=[1,2,4];function I(e,t,n,a,i){let r=Math.min(n,a*i),s=r*(t-1)/2,l=r/i*(t-1)/2;return{x:Math.max(-s,Math.min(s,e.x)),y:Math.max(-l,Math.min(l,e.y))}}function $({beforeUrl:e,afterUrl:i,metadata:r,zoom:s,onZoomChange:l}){let[o,c]=(0,a.useState)(50),[u,d]=(0,a.useState)(!1),[h,f]=(0,a.useState)({x:0,y:0}),p=(0,a.useRef)(null),m=(0,a.useRef)(null),g=r.enhancedWidth/r.enhancedHeight;function v(e){l(e);let t=m.current?.getBoundingClientRect();f(n=>t?I(n,e,t.width,t.height,g):{x:0,y:0}),1===e&&d(!1)}function b(e){p.current?.pointerId===e.pointerId&&(p.current=null)}(0,a.useEffect)(()=>{let e=m.current;if(!e)return;let t=new ResizeObserver(([e])=>{e&&f(t=>I(t,s,e.contentRect.width,e.contentRect.height,g))});return t.observe(e),()=>t.disconnect()},[g,s]);let y=`translate3d(${h.x}px, ${h.y}px, 0) scale(${s})`;return(0,t.jsxs)("div",{className:"comparison-card",children:[(0,t.jsxs)("div",{className:"comparison-toolbar",children:[(0,t.jsxs)("div",{className:"comparison-heading",children:[(0,t.jsx)(T,{size:16}),(0,t.jsx)("span",{children:"Detail comparison"})]}),(0,t.jsxs)("div",{className:"zoom-controls","aria-label":"Image zoom",children:[(0,t.jsx)("span",{children:"ZOOM"}),(0,t.jsx)("button",{"aria-label":u?"Exit image panning":"Pan image","aria-pressed":u,className:u?"is-active":"",disabled:1===s,onClick:()=>d(e=>!e),title:u?"Exit image panning":"Pan image",type:"button",children:(0,t.jsx)(M,{size:13})}),(0,t.jsx)("button",{"aria-label":"Zoom out",disabled:1===s,onClick:()=>v(Math.max(1,s/2)),type:"button",children:(0,t.jsx)(O,{size:14})}),L.map(e=>(0,t.jsxs)("button",{"aria-pressed":s===e,className:s===e?"is-active":"",onClick:()=>v(e),type:"button",children:[100*e,"%"]},e)),(0,t.jsx)("button",{"aria-label":"Zoom in",disabled:4===s,onClick:()=>v(Math.min(4,2*s)),type:"button",children:(0,t.jsx)(S,{size:14})})]})]}),(0,t.jsxs)("div",{className:`comparison-stage${u?" is-pan-mode":""}`,ref:m,onPointerCancel:b,onPointerDown:function(e){u&&1!==s&&(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),p.current={pointerId:e.pointerId,clientX:e.clientX,clientY:e.clientY,...h})},onPointerMove:function(e){let t=p.current;if(!u||!t||t.pointerId!==e.pointerId)return;let n=e.currentTarget.getBoundingClientRect();f(I({x:t.x+e.clientX-t.clientX,y:t.y+e.clientY-t.clientY},s,n.width,n.height,g))},onPointerUp:b,children:[(0,t.jsx)("div",{className:"comparison-image before-image",style:{transform:y},children:(0,t.jsx)(n.default,{src:e,alt:"Original uploaded image",fill:!0,sizes:"(max-width: 960px) 100vw, 65vw",unoptimized:!0})}),(0,t.jsx)("div",{className:"comparison-after",style:{clipPath:`inset(0 0 0 ${o}%)`},children:(0,t.jsx)("div",{className:"comparison-image after-image",style:{transform:y},children:(0,t.jsx)(n.default,{src:i,alt:"AI enhanced result",fill:!0,sizes:"(max-width: 960px) 100vw, 65vw",unoptimized:!0})})}),(0,t.jsx)("span",{className:"comparison-label label-before",children:"ORIGINAL"}),(0,t.jsx)("span",{className:"comparison-label label-after",children:"AI ENHANCED"}),(0,t.jsx)("div",{className:"comparison-divider",style:{left:`${o}%`},"aria-hidden":"true",children:(0,t.jsx)("span",{className:"divider-knob",children:(0,t.jsx)("span",{})})}),(0,t.jsx)("input",{"aria-label":"Reveal more of the original or enhanced image",className:"comparison-range",max:100,min:0,onChange:e=>c(Number(e.currentTarget.value)),type:"range",value:o}),(0,t.jsx)("span",{className:"compare-hint",children:u?"DRAG TO MOVE":"DRAG TO COMPARE"})]}),(0,t.jsxs)("div",{className:"comparison-meta",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{children:"ORIGINAL"}),(0,t.jsxs)("strong",{children:[r.originalWidth.toLocaleString()," × ",r.originalHeight.toLocaleString()]})]}),(0,t.jsx)("div",{className:"comparison-meta-arrow",children:"→"}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{children:["ENHANCED · ",r.scale,"×"]}),(0,t.jsxs)("strong",{children:[r.enhancedWidth.toLocaleString()," × ",r.enhancedHeight.toLocaleString()]})]}),(0,t.jsxs)("div",{className:"comparison-engine",children:[(0,t.jsx)("span",{children:"ENGINE"}),(0,t.jsx)("strong",{children:r.model})]})]})]})}var D=e.i(47167),q=e.i(23587),F=e.i(96869);let G=(D.default.env.NEXT_PUBLIC_API_URL||"http://localhost:8000").replace(/\/+$/,""),W={upload_too_large:"This image is larger than the 20 MB upload limit.",auth_required:"Sign in with Hugging Face before enhancing images.",gpu_quota_exceeded:"Your Hugging Face GPU time is used up for now. Try again after your quota resets.",queue_unavailable:"The shared AI queue is full right now. Please try again shortly.",resource_unavailable:"The AI service could not prepare this image. Try a smaller input.",unauthorized:"Your Hugging Face sign-in expired. Sign in again, then retry this image.",unsupported_media_type:"Choose a JPG, PNG, or WEBP image.",invalid_image:"This image is unsupported or exceeds the AI service's image limits. Try a supported still image with fewer pixels.",invalid_request:"Choose an upscale factor and output format, then try again.",model_not_ready:"The AI service is starting up. Please try again in a moment.",gpu_out_of_memory:"This image is too large for the available GPU memory. Try a smaller image.",enhancement_failed:"The AI service could not finish this image. Try a smaller image.",inference_failed:"The AI service could not enhance this image. Please try again.",encoding_failed:"The enhanced image could not be prepared for download.",internal_error:"Something went wrong while preparing the enhanced image."};function B(e){if(e.type.trim())return e;let t=e.name.split(".").pop()?.toLowerCase();return e.slice(0,e.size,"jpg"===t||"jpeg"===t?"image/jpeg":"png"===t?"image/png":"webp"===t?"image/webp":"application/octet-stream")}class H extends Error{status;code;constructor(e,t,n){super(e),this.status=t,this.code=n,this.name="EnhancementApiError"}}function V(e,t,n){let a=Number(e.get(t));return Number.isSafeInteger(a)&&a>0?a:n}async function Y(e){let t="";try{let n=await e.json();if("object"==typeof n&&null!==n&&"error"in n){let e=n.error;"object"==typeof e&&null!==e&&"code"in e&&(t="string"==typeof e.code?e.code:"")}}catch{}return new H(W[t]??(413===e.status?W.upload_too_large:e.status>=500?"The AI service is unavailable right now. Please try again shortly.":"The image could not be processed. Check the file and try again."),e.status,t||void 0)}function Z(){if(/^https?:\/\//i.test(F.HF_INFERENCE_SPACE))return new URL(F.HF_INFERENCE_SPACE).origin;let[e,t]=F.HF_INFERENCE_SPACE.split("/");if(!e||!t)throw new H("The hosted AI service is not configured correctly.",0,"invalid_configuration");return`https://${e}-${t}.hf.space`}function X(e){return"object"==typeof e&&null!==e?e:null}async function J(e,t){let n;if(e instanceof Blob)return new Blob([e],{type:t});let a=X(e);if(a?.blob instanceof Blob)return new Blob([a.blob],{type:t});let i="string"==typeof e?e:[a?.data,a?.url,a?.path].find(e=>"string"==typeof e&&e.length>0);if("string"!=typeof i)throw new H("The service did not return a downloadable image.",502,"invalid_response");try{n=i.startsWith("data:")||i.startsWith("blob:")?new URL(i):new URL(i,`${Z()}/`)}catch{throw new H("The service returned an invalid image reference.",502,"invalid_response")}if("data:"===n.protocol||"blob:"===n.protocol){let e=await fetch(n);if(!e.ok)throw new H("The generated image could not be read.",e.status,"invalid_response");return new Blob([await e.blob()],{type:t})}if(n.origin!==Z()||"https:"!==n.protocol)throw new H("The service returned an unexpected image location.",502,"invalid_response");let r=await fetch(n,{credentials:"omit"});if(!r.ok)throw new H(401===r.status||403===r.status?W.unauthorized:"The generated image could not be downloaded.",r.status,401===r.status||403===r.status?"unauthorized":"invalid_response");return new Blob([await r.blob()],{type:t})}function K(e,t,n){let a=e[t];return"number"==typeof a&&Number.isSafeInteger(a)&&a>0?a:n}function Q(e){if(e instanceof H)return e;let t=e instanceof Error?e.message:"";return/oauth|sign.?in|unauthori[sz]ed|401|expired token/i.test(t)?new H(W.unauthorized,401,"auth_required"):/quota|over.?quota|daily limit/i.test(t)?new H(W.gpu_quota_exceeded,429,"gpu_quota_exceeded"):/queue.*(full|limit)|queue is full/i.test(t)?new H(W.queue_unavailable,503,"queue_full"):/out of memory/i.test(t)?new H(W.gpu_out_of_memory,503,"gpu_out_of_memory"):new H("The AI service is unavailable right now. Please try again shortly.",503,"inference_failed")}async function ee(e,t,n,a,i){if(!a||!a.startsWith("hf_"))throw new H(W.auth_required,401,"auth_required");i?.({stage:"connecting"});try{let r=(await q.Client.connect(F.HF_INFERENCE_SPACE,{token:a,oauth_token:a,events:["data","status"],credentials:"omit",record_history:!1})).submit("/enhance",[(0,q.handle_file)(B(e)),e.name||"pasted-image.png",String(t.scale),t.outputFormat]),s=null,l="";for await(let e of r)"status"===e.type?"error"===e.stage?l="string"==typeof e.message?e.message:"":"pending"===e.stage?i?.({stage:"queued",position:e.position,etaSeconds:e.eta}):"generating"===e.stage&&i?.({stage:"working"}):"data"===e.type&&(s=Array.isArray(e.data)?e.data:null);if(l)throw Q(Error(l));if(!s||s.length<2)throw new H("The service returned an incomplete enhancement result.",502,"invalid_response");let o=X(s[1]),c=X(o?.error);if(c){let e="string"==typeof c.code?c.code:"inference_failed";throw new H(W[e]??"The image could not be processed. Check the file and try again.","auth_required"===e?401:422,e)}if(!o)throw new H("The service returned invalid image metadata.",502,"invalid_response");let u=new Set(["image/png","image/jpeg","image/webp"]),d=o.content_type,h="string"==typeof d&&u.has(d)?d:`image/${"jpeg"===t.outputFormat?"jpeg":t.outputFormat}`,f=await J(s[0],h),p="string"==typeof o.filename&&/^[A-Za-z0-9._-]{1,120}$/.test(o.filename)?o.filename:`${e.name.replace(/\.[^.]+$/,"")||"image"}-enhanced-${t.scale}x.${t.outputFormat}`,m={originalWidth:K(o,"original_width",n.width),originalHeight:K(o,"original_height",n.height),enhancedWidth:K(o,"enhanced_width",n.width*t.scale),enhancedHeight:K(o,"enhanced_height",n.height*t.scale),scale:t.scale,model:"string"==typeof o.model?o.model:"Real-ESRGAN",filename:p};return{blob:f,metadata:m}}catch(e){throw Q(e)}}async function et(e,t,n,a,i){var r,s;let l,o;if(F.REQUIRES_HF_SIGN_IN)return ee(e,t,n,a,i);let c=new FormData;c.append("file",B(e),e.name||"pasted-image.png"),c.append("scale",String(t.scale)),c.append("output_format",t.outputFormat);try{l=await fetch(`${G}/api/enhance`,{method:"POST",body:c})}catch{throw new H("Could not reach the AI service. Check that the backend is running and try again.",0,"network_error")}if(!l.ok)throw await Y(l);let u=l.headers.get("content-type")?.split(";",1)[0].trim();if(!u?.startsWith("image/"))throw new H("The service returned an unexpected result. Please try again.",l.status,"invalid_response");return{blob:await l.blob(),metadata:{originalWidth:V(l.headers,"x-original-width",n.width),originalHeight:V(l.headers,"x-original-height",n.height),enhancedWidth:V(l.headers,"x-enhanced-width",n.width*t.scale),enhancedHeight:V(l.headers,"x-enhanced-height",n.height*t.scale),scale:t.scale,model:l.headers.get("x-model")||"Real-ESRGAN",filename:(r=l.headers,s=`${e.name.replace(/\.[^.]+$/,"")||"image"}-enhanced-${t.scale}x.${t.outputFormat}`,(o=r.get("content-disposition")?.match(/filename="([^"]+)"/i)?.[1])&&o.replace(/[^A-Za-z0-9._-]/g,"").slice(0,120)||s)}}}let en=new Set(["image/jpeg","image/png","image/webp"]),ea=/\.(jpe?g|png|webp)$/i;function ei(e){if(0===e.size)return"This file is empty. Choose a JPG, PNG, or WEBP image.";if(e.size>2e7)return"This image is larger than the 20 MB upload limit.";let t=e.type.trim().toLowerCase(),n=en.has(t),a=ea.test(e.name);return n||""===t&&a?null:"Choose a JPG, PNG, or WEBP image."}function er(e){return e<1e6?`${Math.max(1,Math.round(e/1e3))} KB`:`${(e/1e6).toFixed(1)} MB`}var es={},el=function(e,t,n,a,i){var r=new Worker(es[t]||(es[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return r.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var a=Error(n[0]);a.code=n[1],a.stack=n[2],i(a,null)}else i(null,t)},r.postMessage(n,a),r},eo=Uint8Array,ec=Uint16Array,eu=Int32Array,ed=new eo([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),eh=new eo([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ef=new eo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ep=function(e,t){for(var n=new ec(31),a=0;a<31;++a)n[a]=t+=1<<e[a-1];for(var i=new eu(n[30]),a=1;a<30;++a)for(var r=n[a];r<n[a+1];++r)i[r]=r-n[a]<<5|a;return{b:n,r:i}},em=ep(ed,2),eg=em.b,ev=em.r;eg[28]=258,ev[258]=28;for(var eb=ep(eh,0),ey=eb.b,ex=eb.r,ew=new ec(32768),ej=0;ej<32768;++ej){var ek=(43690&ej)>>1|(21845&ej)<<1;ek=(61680&(ek=(52428&ek)>>2|(13107&ek)<<2))>>4|(3855&ek)<<4,ew[ej]=((65280&ek)>>8|(255&ek)<<8)>>1}for(var eN=function(e,t,n){for(var a,i=e.length,r=0,s=new ec(t);r<i;++r)e[r]&&++s[e[r]-1];var l=new ec(t);for(r=1;r<t;++r)l[r]=l[r-1]+s[r-1]<<1;if(n){a=new ec(1<<t);var o=15-t;for(r=0;r<i;++r)if(e[r])for(var c=r<<4|e[r],u=t-e[r],d=l[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)a[ew[d]>>o]=c}else for(a=new ec(i),r=0;r<i;++r)e[r]&&(a[r]=ew[l[e[r]-1]++]>>15-e[r]);return a},ez=new eo(288),ej=0;ej<144;++ej)ez[ej]=8;for(var ej=144;ej<256;++ej)ez[ej]=9;for(var ej=256;ej<280;++ej)ez[ej]=7;for(var ej=280;ej<288;++ej)ez[ej]=8;for(var eS=new eo(32),ej=0;ej<32;++ej)eS[ej]=5;var eE=eN(ez,9,0),eR=eN(ez,9,1),e_=eN(eS,5,0),eC=eN(eS,5,1),eP=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},eM=function(e,t,n){var a=t/8|0;return(e[a]|e[a+1]<<8)>>(7&t)&n},eU=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},eO=function(e){return(e+7)/8|0},eA=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new eo(e.subarray(t,n))},eT=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],eL=function(e,t,n){var a=Error(t||eT[e]);if(a.code=e,Error.captureStackTrace&&Error.captureStackTrace(a,eL),!n)throw a;return a},eI=function(e,t,n,a){var i=e.length,r=a?a.length:0;if(!i||t.f&&!t.l)return n||new eo(0);var s=!n,l=s||2!=t.i,o=t.i;s&&(n=new eo(3*i));var c=function(e){var t=n.length;if(e>t){var a=new eo(Math.max(2*t,e));a.set(n),n=a}},u=t.f||0,d=t.p||0,h=t.b||0,f=t.l,p=t.d,m=t.m,g=t.n,v=8*i;do{if(!f){u=eM(e,d,1);var b=eM(e,d+1,3);if(d+=3,b)if(1==b)f=eR,p=eC,m=9,g=5;else if(2==b){var y=eM(e,d,31)+257,x=eM(e,d+10,15)+4,w=y+eM(e,d+5,31)+1;d+=14;for(var j=new eo(w),k=new eo(19),N=0;N<x;++N)k[ef[N]]=eM(e,d+3*N,7);d+=3*x;for(var z=eP(k),S=(1<<z)-1,E=eN(k,z,1),N=0;N<w;){var R=E[eM(e,d,S)];d+=15&R;var _=R>>4;if(_<16)j[N++]=_;else{var C=0,P=0;for(16==_?(P=3+eM(e,d,3),d+=2,C=j[N-1]):17==_?(P=3+eM(e,d,7),d+=3):18==_&&(P=11+eM(e,d,127),d+=7);P--;)j[N++]=C}}var M=j.subarray(0,y),U=j.subarray(y);m=eP(M),g=eP(U),f=eN(M,m,1),p=eN(U,g,1)}else eL(1);else{var _=eO(d)+4,O=e[_-4]|e[_-3]<<8,A=_+O;if(A>i){o&&eL(0);break}l&&c(h+O),n.set(e.subarray(_,A),h),t.b=h+=O,t.p=d=8*A,t.f=u;continue}if(d>v){o&&eL(0);break}}l&&c(h+131072);for(var T=(1<<m)-1,L=(1<<g)-1,I=d;;I=d){var C=f[eU(e,d)&T],$=C>>4;if((d+=15&C)>v){o&&eL(0);break}if(C||eL(2),$<256)n[h++]=$;else if(256==$){I=d,f=null;break}else{var D=$-254;if($>264){var N=$-257,q=ed[N];D=eM(e,d,(1<<q)-1)+eg[N],d+=q}var F=p[eU(e,d)&L],G=F>>4;F||eL(3),d+=15&F;var U=ey[G];if(G>3){var q=eh[G];U+=eU(e,d)&(1<<q)-1,d+=q}if(d>v){o&&eL(0);break}l&&c(h+131072);var W=h+D;if(h<U){var B=r-U,H=Math.min(U,W);for(B+h<0&&eL(3);h<H;++h)n[h]=a[B+h]}for(;h<W;++h)n[h]=n[h-U]}}t.l=f,t.p=I,t.b=h,t.f=u,f&&(u=1,t.m=m,t.d=p,t.n=g)}while(!u)return h!=n.length&&s?eA(n,0,h):n.subarray(0,h)},e$=function(e,t,n){n<<=7&t;var a=t/8|0;e[a]|=n,e[a+1]|=n>>8},eD=function(e,t,n){n<<=7&t;var a=t/8|0;e[a]|=n,e[a+1]|=n>>8,e[a+2]|=n>>16},eq=function(e,t){for(var n=[],a=0;a<e.length;++a)e[a]&&n.push({s:a,f:e[a]});var i=n.length,r=n.slice();if(!i)return{t:eY,l:0};if(1==i){var s=new eo(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var l=n[0],o=n[1],c=0,u=1,d=2;for(n[0]={s:-1,f:l.f+o.f,l:l,r:o};u!=i-1;)l=n[n[c].f<n[d].f?c++:d++],o=n[c!=u&&n[c].f<n[d].f?c++:d++],n[u++]={s:-1,f:l.f+o.f,l:l,r:o};for(var h=r[0].s,a=1;a<i;++a)r[a].s>h&&(h=r[a].s);var f=new ec(h+1),p=eF(n[u-1],f,0);if(p>t){var a=0,m=0,g=p-t,v=1<<g;for(r.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});a<i;++a){var b=r[a].s;if(f[b]>t)m+=v-(1<<p-f[b]),f[b]=t;else break}for(m>>=g;m>0;){var y=r[a].s;f[y]<t?m-=1<<t-f[y]++-1:++a}for(;a>=0&&m;--a){var x=r[a].s;f[x]==t&&(--f[x],++m)}p=t}return{t:new eo(f),l:p}},eF=function(e,t,n){return -1==e.s?Math.max(eF(e.l,t,n+1),eF(e.r,t,n+1)):t[e.s]=n},eG=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ec(++t),a=0,i=e[0],r=1,s=function(e){n[a++]=e},l=1;l<=t;++l)if(e[l]==i&&l!=t)++r;else{if(!i&&r>2){for(;r>138;r-=138)s(32754);r>2&&(s(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(s(i),--r;r>6;r-=6)s(8304);r>2&&(s(r-3<<5|8208),r=0)}for(;r--;)s(i);r=1,i=e[l]}return{c:n.subarray(0,a),n:t}},eW=function(e,t){for(var n=0,a=0;a<t.length;++a)n+=e[a]*t[a];return n},eB=function(e,t,n){var a=n.length,i=eO(t+2);e[i]=255&a,e[i+1]=a>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var r=0;r<a;++r)e[i+r+4]=n[r];return(i+4+a)*8},eH=function(e,t,n,a,i,r,s,l,o,c,u){e$(t,u++,n),++i[256];for(var d,h,f,p,m=eq(i,15),g=m.t,v=m.l,b=eq(r,15),y=b.t,x=b.l,w=eG(g),j=w.c,k=w.n,N=eG(y),z=N.c,S=N.n,E=new ec(19),R=0;R<j.length;++R)++E[31&j[R]];for(var R=0;R<z.length;++R)++E[31&z[R]];for(var _=eq(E,7),C=_.t,P=_.l,M=19;M>4&&!C[ef[M-1]];--M);var U=c+5<<3,O=eW(i,ez)+eW(r,eS)+s,A=eW(i,g)+eW(r,y)+s+14+3*M+eW(E,C)+2*E[16]+3*E[17]+7*E[18];if(o>=0&&U<=O&&U<=A)return eB(t,u,e.subarray(o,o+c));if(e$(t,u,1+(A<O)),u+=2,A<O){d=eN(g,v,0),h=g,f=eN(y,x,0),p=y;var T=eN(C,P,0);e$(t,u,k-257),e$(t,u+5,S-1),e$(t,u+10,M-4),u+=14;for(var R=0;R<M;++R)e$(t,u+3*R,C[ef[R]]);u+=3*M;for(var L=[j,z],I=0;I<2;++I)for(var $=L[I],R=0;R<$.length;++R){var D=31&$[R];e$(t,u,T[D]),u+=C[D],D>15&&(e$(t,u,$[R]>>5&127),u+=$[R]>>12)}}else d=eE,h=ez,f=e_,p=eS;for(var R=0;R<l;++R){var q=a[R];if(q>255){var D=q>>18&31;eD(t,u,d[D+257]),u+=h[D+257],D>7&&(e$(t,u,q>>23&31),u+=ed[D]);var F=31&q;eD(t,u,f[F]),u+=p[F],F>3&&(eD(t,u,q>>5&8191),u+=eh[F])}else eD(t,u,d[q]),u+=h[q]}return eD(t,u,d[256]),u+h[256]},eV=new eu([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),eY=new eo(0),eZ=function(e,t,n,a,i,r){var s=r.z||e.length,l=new eo(a+s+5*(1+Math.ceil(s/7e3))+i),o=l.subarray(a,l.length-i),c=r.l,u=7&(r.r||0);if(t){u&&(o[0]=r.r>>3);for(var d=eV[t-1],h=d>>13,f=8191&d,p=(1<<n)-1,m=r.p||new ec(32768),g=r.h||new ec(p+1),v=Math.ceil(n/3),b=2*v,y=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<b)&p},x=new eu(25e3),w=new ec(288),j=new ec(32),k=0,N=0,z=r.i||0,S=0,E=r.w||0,R=0;z+2<s;++z){var _=y(z),C=32767&z,P=g[_];if(m[C]=P,g[_]=C,E<=z){var M=s-z;if((k>7e3||S>24576)&&(M>423||!c)){u=eH(e,o,0,x,w,j,N,S,R,z-R,u),S=k=N=0,R=z;for(var U=0;U<286;++U)w[U]=0;for(var U=0;U<30;++U)j[U]=0}var O=2,A=0,T=f,L=C-P&32767;if(M>2&&_==y(z-L))for(var I=Math.min(h,M)-1,$=Math.min(32767,z),D=Math.min(258,M);L<=$&&--T&&C!=P;){if(e[z+O]==e[z+O-L]){for(var q=0;q<D&&e[z+q]==e[z+q-L];++q);if(q>O){if(O=q,A=L,q>I)break;for(var F=Math.min(L,q-2),G=0,U=0;U<F;++U){var W=z-L+U&32767,B=m[W],H=W-B&32767;H>G&&(G=H,P=W)}}}P=m[C=P],L+=C-P&32767}if(A){x[S++]=0x10000000|ev[O]<<18|ex[A];var V=31&ev[O],Y=31&ex[A];N+=ed[V]+eh[Y],++w[257+V],++j[Y],E=z+O,++k}else x[S++]=e[z],++w[e[z]]}}for(z=Math.max(z,E);z<s;++z)x[S++]=e[z],++w[e[z]];u=eH(e,o,c,x,w,j,N,S,R,z-R,u),c||(r.r=7&u|o[u/8|0]<<3,u-=7,r.h=g,r.p=m,r.i=z,r.w=E)}else{for(var z=r.w||0;z<s+c;z+=65535){var Z=z+65535;Z>=s&&(o[u/8|0]=c,Z=s),u=eB(o,u+1,e.subarray(z,Z))}r.i=s}return eA(l,0,a+eO(u)+i)},eX=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,a=9;--a;)n=(1&n&&-0x12477ce0)^n>>>1;e[t]=n}return e}(),eJ=function(){var e=-1;return{p:function(t){for(var n=e,a=0;a<t.length;++a)n=eX[255&n^t[a]]^n>>>8;e=n},d:function(){return~e}}},eK=function(){var e=1,t=0;return{p:function(n){for(var a=e,i=t,r=0|n.length,s=0;s!=r;){for(var l=Math.min(s+2655,r);s<l;++s)i+=a+=n[s];a=(65535&a)+15*(a>>16),i=(65535&i)+15*(i>>16)}e=a,t=i},d:function(){return e%=65521,t%=65521,(255&e)<<24|(65280&e)<<8|(255&t)<<8|t>>8}}},eQ=function(e,t,n,a,i){if(!i&&(i={l:1},t.dictionary)){var r=t.dictionary.subarray(-32768),s=new eo(r.length+e.length);s.set(r),s.set(e,r.length),e=s,i.w=r.length}return eZ(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,a,i)},e0=function(e,t){var n={};for(var a in e)n[a]=e[a];for(var a in t)n[a]=t[a];return n},e1=function(e,t,n){for(var a=e(),i=e.toString(),r=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<a.length;++s){var l=a[s],o=r[s];if("function"==typeof l){t+=";"+o+"=";var c=l.toString();if(l.prototype)if(-1!=c.indexOf("[native code]")){var u=c.indexOf(" ",8)+1;t+=c.slice(u,c.indexOf("(",u))}else for(var d in t+=c,l.prototype)t+=";"+o+".prototype."+d+"="+l.prototype[d].toString();else t+=c}else n[o]=l}return t},e2=[],e5=function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t},e4=function(e,t,n,a){if(!e2[n]){for(var i="",r={},s=e.length-1,l=0;l<s;++l)i=e1(e[l],i,r);e2[n]={c:e1(e[s],i,r),e:r}}var o=e0({},e2[n].e);return el(e2[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,o,e5(o),a)},e3=function(){return[eo,ec,eu,ed,eh,ef,eg,ey,eR,eC,ew,eT,eN,eP,eM,eU,eO,eA,eL,eI,ty,e9,te]},e8=function(){return[eo,ec,eu,ed,eh,ef,ev,ex,eE,ez,e_,eS,ew,eV,eY,eN,e$,eD,eq,eF,eG,eW,eB,eH,eO,eA,eZ,eQ,tg,e9]},e6=function(){return[to,tc]},e7=function(){return[th]},e9=function(e){return postMessage(e,[e.buffer])},te=function(e){return e&&{out:e.size&&new eo(e.size),dictionary:e.dictionary}},tt=function(e){return e.ondata=function(e,t){return postMessage([e,t],[e.buffer])},function(t){t.data[0]?(e.push(t.data[0],t.data[1]),postMessage([t.data[0].length])):e.flush(t.data[1])}},tn=function(e,t,n,a,i,r,s){var l,o=e4(e,a,i,function(e,n){e?(o.terminate(),t.ondata.call(t,e)):Array.isArray(n)?1==n.length?(t.queuedSize-=n[0],t.ondrain&&t.ondrain(n[0])):(n[1]&&o.terminate(),t.ondata.call(t,e,n[0],n[1])):s(n)});o.postMessage(n),t.queuedSize=0,t.push=function(e,n){t.ondata||eL(5),l&&t.ondata(eL(4,0,1),null,!!n),t.queuedSize+=e.length,o.postMessage([e,l=n],e.buffer instanceof ArrayBuffer?[e.buffer]:[])},t.terminate=function(){o.terminate()},r&&(t.flush=function(e){o.postMessage([0,e])})},ta=function(e,t){return e[t]|e[t+1]<<8},ti=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},tr=function(e,t){return ti(e,t)+0x100000000*ti(e,t+4)},ts=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},tl=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:2*(9==t.level),e[9]=3,0!=t.mtime&&ts(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var a=0;a<=n.length;++a)e[a+10]=n.charCodeAt(a)}},to=function(e){(31!=e[0]||139!=e[1]||8!=e[2])&&eL(6,"invalid gzip data");var t=e[3],n=10;4&t&&(n+=(e[10]|e[11]<<8)+2);for(var a=(t>>3&1)+(t>>4&1);a>0;a-=!e[n++]);return n+(2&t)},tc=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},tu=function(e){return 10+(e.filename?e.filename.length+1:0)},td=function(e,t){var n=t.level;if(e[0]=120,e[1]=(0==n?0:n<6?1:9==n?3:2)<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var a=eK();a.p(t.dictionary),ts(e,2,a.d())}},th=function(e,t){return((15&e[0])!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&eL(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&eL(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function tf(e,t){return"function"==typeof e&&(t=e,e={}),this.ondata=t,e}var tp=function(){function e(e,t){if("function"==typeof e&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new eo(98304),this.o.dictionary){var n=this.o.dictionary.subarray(-32768);this.b.set(n,32768-n.length),this.s.i=32768-n.length}}return e.prototype.p=function(e,t){this.ondata(eQ(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||eL(5),this.s.l&&eL(4);var n=e.length+this.s.z;if(n>this.b.length){if(n>2*this.b.length-32768){var a=new eo(-32768&n);a.set(this.b.subarray(0,this.s.z)),this.b=a}var i=this.b.length-this.s.z;this.b.set(e.subarray(0,i),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(i),32768),this.s.z=e.length-i+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=1&t,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2),t&&(this.s=this.o={},this.b=eY)},e.prototype.flush=function(e){if(this.ondata||eL(5),this.s.l&&eL(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,e){var t=new eo(6);t[0]=this.s.r>>3;var n=eB(t,this.s.r,eY);this.s.r=0,this.ondata(t.subarray(0,n>>3),!1)}},e}(),tm=function(e,t){tn([e8,function(){return[tt,tp]}],this,tf.call(this,e,t),function(e){onmessage=tt(new tp(e.data))},6,1)};function tg(e,t){return eQ(e,t||{},0,0)}var tv=function(){function e(e,t){"function"==typeof e&&(t=e,e={}),this.ondata=t;var n=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:n?n.length:0},this.o=new eo(32768),this.p=new eo(0),n&&this.o.set(n)}return e.prototype.e=function(e){if(this.ondata||eL(5),this.d&&eL(4),this.p.length){if(e.length){var t=new eo(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}}else this.p=e},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,n=eI(this.p,this.s,this.o);this.ondata(eA(n,t,this.s.b),this.d),this.o=eA(n,this.s.b-32768),this.s.b=this.o.length,this.p=eA(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),tb=function(e,t){tn([e3,function(){return[tt,tv]}],this,tf.call(this,e,t),function(e){onmessage=tt(new tv(e.data))},7,0)};function ty(e,t){return eI(e,{i:2},t&&t.out,t&&t.dictionary)}(function(){function e(e,t){this.c=eJ(),this.l=0,this.v=1,tp.call(this,e,t)}e.prototype.push=function(e,t){this.c.p(e),this.l+=e.length,tp.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var n=eQ(e,this.o,this.v&&tu(this.o),t&&8,this.s);this.v&&(tl(n,this.o),this.v=0),t&&(ts(n,n.length-8,this.c.d()),ts(n,n.length-4,this.l)),this.ondata(n,t)},e.prototype.flush=function(e){tp.prototype.flush.call(this,e)}})();var tx=function(){function e(e,t){this.v=1,this.r=0,tv.call(this,e,t)}return e.prototype.push=function(e,t){if(tv.prototype.e.call(this,e),this.r+=e.length,this.v){var n=this.p.subarray(this.v-1),a=n.length>3?to(n):4;if(a>n.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-n.length);this.p=n.subarray(a),this.v=0}tv.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=eO(this.s.p)+9,this.s={i:0},this.o=new eo(0),this.push(new eo(0),t)):t&&tv.prototype.c.call(this,t)},e}(),tw=function(e,t){var n=this;tn([e3,e6,function(){return[tt,tv,tx]}],this,tf.call(this,e,t),function(e){var t=new tx(e.data);t.onmember=function(e){return postMessage(e)},onmessage=tt(t)},9,0,function(e){return n.onmember&&n.onmember(e)})},tj=(function(){function e(e,t){this.c=eK(),this.v=1,tp.call(this,e,t)}e.prototype.push=function(e,t){this.c.p(e),tp.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var n=eQ(e,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(td(n,this.o),this.v=0),t&&ts(n,n.length-4,this.c.d()),this.ondata(n,t)},e.prototype.flush=function(e){tp.prototype.flush.call(this,e)}}(),function(){function e(e,t){tv.call(this,e,t),this.v=e&&e.dictionary?2:1}return e.prototype.push=function(e,t){if(tv.prototype.e.call(this,e),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(th(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&eL(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),tv.prototype.c.call(this,t)},e}()),tk=function(e,t){tn([e3,e7,function(){return[tt,tv,tj]}],this,tf.call(this,e,t),function(e){onmessage=tt(new tj(e.data))},11,0)},tN=function(){function e(e,t){this.o=tf.call(this,e,t)||{},this.G=tx,this.I=tv,this.Z=tj}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,n){e.ondata(t,n)}},e.prototype.push=function(e,t){if(this.ondata||eL(5),this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var n=new eo(this.p.length+e.length);n.set(this.p),n.set(e,this.p.length)}else this.p=e;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},e}();function tz(e,t){tN.call(this,e,t),this.queuedSize=0,this.G=tw,this.I=tb,this.Z=tk}tz.prototype.i=function(){var e=this;this.s.ondata=function(t,n,a){e.ondata(t,n,a)},this.s.ondrain=function(t){e.queuedSize-=t,e.ondrain&&e.ondrain(t)}},tz.prototype.push=function(e,t){this.queuedSize+=e.length,tN.prototype.push.call(this,e,t)};var tS="u">typeof TextEncoder&&new TextEncoder,tE="u">typeof TextDecoder&&new TextDecoder,tR=0;try{tE.decode(eY,{stream:!0}),tR=1}catch(e){}var t_=function(e){for(var t="",n=0;;){var a=e[n++],i=(a>127)+(a>223)+(a>239);if(n+i>e.length)return{s:t,r:eA(e,n-1)};i?3==i?t+=String.fromCharCode(55296|(a=((15&a)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536)>>10,56320|1023&a):1&i?t+=String.fromCharCode((31&a)<<6|63&e[n++]):t+=String.fromCharCode((15&a)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(a)}};function tC(e,t){if(t){for(var n=new eo(e.length),a=0;a<e.length;++a)n[a]=e.charCodeAt(a);return n}if(tS)return tS.encode(e);for(var i=e.length,r=new eo(e.length+(e.length>>1)),s=0,l=function(e){r[s++]=e},a=0;a<i;++a){if(s+5>r.length){var o=new eo(s+8+(i-a<<1));o.set(r),r=o}var c=e.charCodeAt(a);c<128||t?l(c):(c<2048?l(192|c>>6):(c>55295&&c<57344?(l(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++a))>>18),l(128|c>>12&63)):l(224|c>>12),l(128|c>>6&63)),l(128|63&c))}return eA(r,0,s)}(function(e){this.ondata=e,tR?this.t=new TextDecoder:this.p=eY}).prototype.push=function(e,t){if(this.ondata||eL(5),t=!!t,this.t){this.ondata(this.t.decode(e,{stream:!0}),t),t&&(this.t.decode().length&&eL(8),this.t=null);return}this.p||eL(4);var n=new eo(this.p.length+e.length);n.set(this.p),n.set(e,this.p.length);var a=t_(n),i=a.s,r=a.r;t?(r.length&&eL(8),this.p=null):this.p=r,this.ondata(i,t)},(function(e){this.ondata=e}).prototype.push=function(e,t){this.ondata||eL(5),this.d&&eL(4),this.ondata(tC(e),this.d=t||!1)};var tP=function(e){return 1==e?3:e<6?2:+(9==e)},tM=function(e,t,n,a,i,r,s){var l=0xffffffff==i,o=0xffffffff==r,c=0xffffffff==s,u=t+n;if(a&&l+o+c){for(;t+4<u;t+=4+ta(e,t+2))if(1==ta(e,t))return[l?tr(e,t+4+8*o):i,o?tr(e,t+4):r,c?tr(e,t+4+8*(o+l)):s,1];a<2&&eL(13)}return[i,r,s,0]},tU=function(e){var t=0;if(e)for(var n in e){var a=e[n].length;a>65535&&eL(9),t+=a+4}return t},tO=function(e,t,n,a,i,r,s,l){var o=a.length,c=n.extra,u=l&&l.length,d=tU(c);ts(e,t,null!=s?0x2014b50:0x4034b50),t+=4,null!=s&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(r<0&&8),e[t++]=i&&8,e[t++]=255&n.compression,e[t++]=n.compression>>8;var h=new Date(null==n.mtime?Date.now():n.mtime),f=h.getFullYear()-1980;if((f<0||f>119)&&eL(10),ts(e,t,f<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),t+=4,-1!=r&&(ts(e,t,n.crc),ts(e,t+4,r<0?-r-2:r),ts(e,t+8,n.size)),ts(e,t+12,o),ts(e,t+14,d),t+=16,null!=s&&(ts(e,t,u),ts(e,t+6,n.attrs),ts(e,t+10,s),t+=14),e.set(a,t),t+=o,d)for(var p in c){var m=c[p],g=m.length;ts(e,t,+p),ts(e,t+2,g),e.set(m,t+4),t+=4+g}return u&&(e.set(l,t),t+=u),t},tA=function(e,t,n,a,i){ts(e,t,0x6054b50),ts(e,t+8,n),ts(e,t+10,n),ts(e,t+12,a),ts(e,t+16,i)},tT=function(){function e(e){this.filename=e,this.c=eJ(),this.size=0,this.compression=0}return e.prototype.process=function(e,t){this.ondata(null,e,t)},e.prototype.push=function(e,t){this.ondata||eL(5),this.c.p(e),this.size+=e.length,t&&(this.crc=this.c.d()),this.process(e,t||!1)},e}();function tL(e,t){var n=this;t||(t={}),tT.call(this,e),this.d=new tp(t,function(e,t){n.ondata(null,e,t)}),this.compression=8,this.flag=tP(t.level)}function tI(e,t){var n=this;t||(t={}),tT.call(this,e),this.d=new tm(t,function(e,t,a){n.ondata(e,t,a)}),this.compression=8,this.flag=tP(t.level),this.terminate=this.d.terminate}tL.prototype.process=function(e,t){try{this.d.push(e,t)}catch(e){this.ondata(e,null,t)}},tL.prototype.push=function(e,t){tT.prototype.push.call(this,e,t)},tI.prototype.process=function(e,t){this.d.push(e,t)},tI.prototype.push=function(e,t){tT.prototype.push.call(this,e,t)};var t$=function(){function e(e){this.ondata=e,this.u=[],this.d=1}return e.prototype.add=function(e){var t=this;if(this.ondata||eL(5),2&this.d)this.ondata(eL(4+(1&this.d)*8,0,1),null,!1);else{var n=tC(e.filename),a=n.length,i=e.comment,r=i&&tC(i),s=a!=e.filename.length||r&&i.length!=r.length,l=a+tU(e.extra)+30;a>65535&&this.ondata(eL(11,0,1),null,!1);var o=new eo(l);tO(o,0,e,n,s,-1);var c=[o],u=function(){for(var e=0,n=c;e<n.length;e++){var a=n[e];t.ondata(null,a,!1)}c=[]},d=this.d;this.d=0;var h=this.u.length,f=e0(e,{f:n,u:s,o:r,t:function(){e.terminate&&e.terminate()},r:function(){if(u(),d){var e=t.u[h+1];e?e.r():t.d=1}d=1}}),p=0;e.ondata=function(n,a,i){if(n)t.ondata(n,a,i),t.terminate();else if(p+=a.length,c.push(a),i){var r=new eo(16);ts(r,0,0x8074b50),ts(r,4,e.crc),ts(r,8,p),ts(r,12,e.size),c.push(r),f.c=p,f.b=l+p+16,f.crc=e.crc,f.size=e.size,d&&f.r(),d=1}else d&&u()},this.u.push(f)}},e.prototype.end=function(){var e=this;2&this.d?this.ondata(eL(4+(1&this.d)*8,0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&e.d&&(e.u.splice(-1,1),e.e())},t:function(){}}),this.d=3)},e.prototype.e=function(){for(var e=0,t=0,n=0,a=0,i=this.u;a<i.length;a++){var r=i[a];n+=46+r.f.length+tU(r.extra)+(r.o?r.o.length:0)}for(var s=new eo(n+22),l=0,o=this.u;l<o.length;l++){var r=o[l];tO(s,e,r,r.f,r.u,-r.c-2,t,r.o),e+=46+r.f.length+tU(r.extra)+(r.o?r.o.length:0),t+=r.b}tA(s,e,this.u.length,n,t),this.ondata(null,s,!0),this.d=2},e.prototype.terminate=function(){for(var e=0,t=this.u;e<t.length;e++)t[e].t();this.d=2},e}(),tD=function(){function e(){}return e.prototype.push=function(e,t){this.ondata(null,e,t)},e.compression=0,e}();function tq(){var e=this;this.i=new tv(function(t,n){e.ondata(null,t,n)})}function tF(e,t){var n=this;t<32e4?this.i=new tv(function(e,t){n.ondata(null,e,t)}):(this.i=new tb(function(e,t,a){n.ondata(e,t,a)}),this.terminate=this.i.terminate)}function tG(e){this.onfile=e,this.k=[],this.o={0:tD},this.p=eY}async function tW(e,t){if(0===e.length)throw Error("There are no completed images to archive.");let n=[],a=null,i=!1,r=new t$((e,t,r)=>{if(e){a=e;return}if(t){let e=new ArrayBuffer(t.byteLength);new Uint8Array(e).set(t),n.push(e)}r&&(i=!0)});try{for(let[n,i]of e.entries()){let s=new tT(function(e,t){let n=e.split(/[\\/]/).pop()?.replace(/[^A-Za-z0-9._-]/g,"_").replace(/^\.+/,"")||`enhanced-image-${t+1}.png`;return`${String(t+1).padStart(2,"0")}-${n}`}(i.filename,n));if(r.add(s),"function"!=typeof i.blob.stream)s.push(new Uint8Array(await i.blob.arrayBuffer()),!0);else{let e=i.blob.stream().getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)break;if(s.push(n),a)throw a}s.push(new Uint8Array(0),!0)}catch(t){throw await e.cancel(t).catch(()=>void 0),t}finally{e.releaseLock()}}if(a)throw a;t?.(n+1,e.length)}if(r.end(),a)throw a;if(!i)throw Error("The image archive could not be finalized.");return new Blob(n,{type:"application/zip"})}catch(e){throw r.terminate(),e}}tq.prototype.push=function(e,t){try{this.i.push(e,t)}catch(e){this.ondata(e,null,t)}},tq.compression=8,tF.prototype.push=function(e,t){this.i.terminate&&(e=eA(e,0)),this.i.push(e,t)},tF.compression=8,tG.prototype.push=function(e,t){var n=this;if(this.onfile||eL(5),this.p||eL(4),this.c>0){var a=Math.min(this.c,e.length),i=e.subarray(0,a);if(this.c-=a,this.d?this.d.push(i,!this.c):this.k[0].push(i),(e=e.subarray(a)).length)return this.push(e,t)}else{var r=0,s=0,l=void 0,o=void 0;this.p.length?e.length?((o=new eo(this.p.length+e.length)).set(this.p),o.set(e,this.p.length)):o=this.p:o=e;for(var c=o.length,u=this.c,d=u&&this.d,h=this;s<c-4&&"break"!==function(){var e=ti(o,s);if(0x4034b50==e){r=1,l=s,h.d=null,h.c=0;var t=ta(o,s+6),a=ta(o,s+8),i=ta(o,s+26),d=ta(o,s+28);if(c>s+30+i+d){var f,p=[];h.k.unshift(p),r=2;var m=ti(o,s+18),g=ti(o,s+22),v=function(e,t){if(t){for(var n="",a=0;a<e.length;a+=16384)n+=String.fromCharCode.apply(null,e.subarray(a,a+16384));return n}if(tE)return tE.decode(e);var i=t_(e),r=i.s,n=i.r;return n.length&&eL(8),r}(o.subarray(s+30,s+=30+i),!(2048&t)),b=tM(o,s,d,2,m,g,0),y=b[0],x=b[1],w=b[3];8&t&&(y=-1-w),s+=d,h.c=y;var j={name:v,compression:a,start:function(){if(j.ondata||eL(5),y){var e=n.o[a];e||j.ondata(eL(14,"unknown compression type "+a,1),null,!1),(f=y<0?new e(v):new e(v,y,x)).ondata=function(e,t,n){j.ondata(e,t,n)};for(var t=0;t<p.length;t++){var i=p[t];f.push(i,!1)}n.k[0]==p&&n.c?n.d=f:f.push(eY,!0)}else j.ondata(null,eY,!0)},terminate:function(){f&&f.terminate&&f.terminate()}};y>=0&&(j.size=y,j.originalSize=x),h.onfile(j)}return"break"}if(u){if(0x8074b50==e)return l=s+=12+(-2==u&&8),r=3,h.c=0,"break";else if(0x2014b50==e)return l=s-=4,r=3,h.c=0,"break"}}();++s);if(this.p=eY,u<0){var f=r?o.subarray(0,l-12-(-2==u&&8)-(0x8074b50==ti(o,l-16)&&4)):o.subarray(0,s);d?d.push(f,!!r):this.k[+(2==r)].push(f)}if(2&r)return this.push(o.subarray(s),t);this.p=o.subarray(s)}t&&(this.c&&eL(13),this.p=null)},tG.prototype.register=function(e){this.o[e.compression]=e},"function"==typeof queueMicrotask&&queueMicrotask;let tB={scale:4,outputFormat:"png"},tH=[{value:"png",label:"PNG",detail:"Lossless"},{value:"jpeg",label:"JPG",detail:"Smaller file"},{value:"webp",label:"WEBP",detail:"Modern"}];function tV(e){if(!e.result)return;let t=URL.createObjectURL(e.result.blob),n=document.createElement("a");n.href=t,n.download=e.result.metadata.filename,document.body.append(n),n.click(),n.remove(),window.setTimeout(()=>URL.revokeObjectURL(t),1e3)}function tY({accessToken:e,requiresAuth:i,onBusyChange:r}){let[s,l]=(0,a.useState)([]),[c,u]=(0,a.useState)(tB),[d,f]=(0,a.useState)(null),[m,v]=(0,a.useState)(!1),[y,w]=(0,a.useState)(!1),[k,z]=(0,a.useState)(!1),[E,_]=(0,a.useState)(!1),[P,M]=(0,a.useState)(!1),[U,O]=(0,a.useState)({current:0,total:0}),[A,T]=(0,a.useState)({current:0,total:0}),[L,I]=(0,a.useState)({itemId:null,value:1}),[D,q]=(0,a.useState)(null),[F,G]=(0,a.useState)(null),W=(0,a.useRef)(null),B=(0,a.useRef)(!1),V=(0,a.useRef)(!1),Y=(0,a.useRef)(!1),Z=(0,a.useRef)(s),X=(0,a.useRef)(null),J=(0,a.useRef)(null),K=m||y||E,Q=s.find(e=>e.id===d)??s[0]??null,ee=L.itemId===Q?.id?L.value:1,en=s.filter(e=>"complete"===e.status).length,ea=s.filter(e=>"failed"===e.status).length,es=s.filter(e=>"queued"===e.status||"failed"===e.status).length,el=s.reduce((e,t)=>e+(t.result?t.result.metadata.enhancedWidth*t.result.metadata.enhancedHeight:t.width*t.height*c.scale*c.scale),0),eo=el>64e6;function ec(){null!==J.current&&(window.clearTimeout(J.current),J.current=null),X.current&&(URL.revokeObjectURL(X.current),X.current=null)}async function eu(e){if(K||B.current||V.current||m)return;let t=Array.from(e);if(0===t.length)return;let n=10-s.length;if(n<=0)return void q("A batch can contain up to 10 images. Remove an image before adding more.");let a=[],i=[],o=!1;V.current=!0,_(!0),r(!0),q(null);try{for(let e of t){if(i.length>=n){o=!0;break}let t=ei(e);if(t){a.push(`${e.name||"Selected file"}: ${t}`);continue}let r=URL.createObjectURL(e);try{let t=new window.Image;if(t.src=r,await t.decode(),t.naturalWidth<1||t.naturalHeight<1)throw Error("The image has invalid dimensions.");i.push({id:globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2)}`,file:e,width:t.naturalWidth,height:t.naturalHeight,previewUrl:r,resultPreviewUrl:null,result:null,status:"queued",error:null})}catch{URL.revokeObjectURL(r),a.push(`${e.name||"Selected file"}: This image could not be previewed.`)}}i.length>0&&(ec(),l(e=>[...e,...i]),f(e=>e??i[0].id));let e=a.slice(0,o?2:3);o&&e.push("The 10-image batch limit was reached; some selected images were not added."),q(e.length>0?e.join(" "):null)}finally{V.current=!1,_(!1),r(!1)}}async function ed(){if(K||B.current||m||V.current||0===es)return;let t=s.filter(e=>"queued"===e.status||"failed"===e.status);if(0===t.length)return;ec(),Y.current=!1,z(!1),q(null),v(!0),O({current:0,total:t.length}),r(!0),G(null);let n=!1,a=!1,i=!1;try{for(let[r,s]of t.entries()){if(Y.current){a=!0;break}O({current:r+1,total:t.length}),f(s.id),l(e=>e.map(e=>e.id===s.id?{...e,status:"processing",error:null}:e));try{let t=await et(s.file,c,{width:s.width,height:s.height},e,e=>{"queued"===e.stage?G(e.position?`Waiting in shared GPU queue \xb7 position ${e.position}`:"Waiting for the shared GPU queue…"):"working"===e.stage&&G("Enhancing with Real-ESRGAN…")}),n=URL.createObjectURL(t.blob);l(e=>e.map(e=>e.id===s.id?{...e,result:t,resultPreviewUrl:n,status:"complete",error:null}:e))}catch(e){if(n=!0,l(t=>t.map(t=>t.id===s.id?{...t,status:"failed",error:e instanceof H?e.message:"Something went wrong while enhancing this image."}:t)),e instanceof H&&["auth_required","unauthorized"].includes(e.code??"")){i=!0,a=!0;break}}if(Y.current){a=n||r<t.length-1;break}r<t.length-1&&await new Promise(e=>window.setTimeout(e,0))}}finally{v(!1),z(!1),Y.current=!1,G(null),r(!1),i?q("Your Hugging Face sign-in expired. Sign in again, then retry the unfinished images."):a?q("Batch paused after the current image. Unfinished images remain available to continue or retry."):n&&q("Some images could not be enhanced. Their individual errors are shown in the queue; run the batch again to retry them.")}}async function eh(){if(K||B.current)return;let e=s.filter(e=>"complete"===e.status&&e.result);if(0!==e.length){B.current=!0,q(null),T({current:0,total:e.length}),w(!0),r(!0);try{var t;let n,a;t=await tW(e.map(e=>({filename:e.result.metadata.filename,blob:e.result.blob})),(e,t)=>T({current:e,total:t})),ec(),X.current=n=URL.createObjectURL(t),(a=document.createElement("a")).href=n,a.download=`sharpify-enhanced-${new Date().toISOString().replace(/[:.]/g,"-")}.zip`,document.body.append(a),a.click(),a.remove(),J.current=window.setTimeout(()=>{X.current===n&&(X.current=null),J.current=null,URL.revokeObjectURL(n)},6e4)}catch{q("The ZIP could not be prepared. You can still download each completed image individually.")}finally{B.current=!1,w(!1),r(!1)}}}function ef(e,t){u(n=>({...n,[e]:t}))}(0,a.useEffect)(()=>{r(K)},[K,r]),(0,a.useEffect)(()=>{Z.current=s},[s]),(0,a.useEffect)(()=>()=>{for(let e of Z.current)URL.revokeObjectURL(e.previewUrl),e.resultPreviewUrl&&URL.revokeObjectURL(e.resultPreviewUrl);null!==J.current&&window.clearTimeout(J.current),X.current&&URL.revokeObjectURL(X.current)},[]);let ep=Q?.result??null;return(0,t.jsxs)("div",{className:`studio-layout batch-layout${P?" is-dragging":""}`,onDragEnter:e=>{e.dataTransfer.types.includes("Files")&&M(!0)},onDragOver:e=>{e.dataTransfer.types.includes("Files")&&e.preventDefault()},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||M(!1)},onDrop:function(e){e.preventDefault(),M(!1),e.dataTransfer.files.length>0&&eu(e.dataTransfer.files)},children:[(0,t.jsx)("input",{ref:W,"aria-label":"Choose images for batch enhancement",className:"visually-hidden-input",accept:"image/jpeg,image/png,image/webp,.jpg,.jpeg,.png,.webp",disabled:K,multiple:!0,onChange:function(e){let t=Array.from(e.currentTarget.files??[]);e.currentTarget.value="",t.length>0&&eu(t)},type:"file"}),(0,t.jsxs)("section",{className:"image-workspace","aria-label":"Batch image workspace",children:[(0,t.jsxs)("div",{className:"workspace-toolbar",children:[(0,t.jsxs)("div",{className:"workspace-status",children:[(0,t.jsx)("span",{className:s.length>0?"status-dot":"status-dot status-dot-muted"}),m?`PROCESSING ${U.current} / ${U.total}`:s.length>0?`${en} OF ${s.length} COMPLETE`:"BATCH QUEUE"]}),(0,t.jsxs)("div",{className:"workspace-actions",children:[(0,t.jsxs)("span",{className:"local-badge",children:[(0,t.jsx)(o,{size:13})," UP TO ",10," IMAGES"]}),(0,t.jsxs)("button",{className:"text-button",onClick:()=>W.current?.click(),type:"button",disabled:K||s.length>=10,children:[(0,t.jsx)(S,{size:14})," Add images"]}),s.length>0&&(0,t.jsx)("button",{className:"icon-button","aria-label":"Clear batch",onClick:function(){if(!K&&!B.current){for(let e of(ec(),s))URL.revokeObjectURL(e.previewUrl),e.resultPreviewUrl&&URL.revokeObjectURL(e.resultPreviewUrl);l([]),f(null),q(null),W.current&&(W.current.value="")}},type:"button",disabled:K,children:(0,t.jsx)(R,{size:14})})]})]}),(0,t.jsx)("div",{className:"image-stage batch-image-stage",children:Q&&ep&&Q.resultPreviewUrl?(0,t.jsx)($,{afterUrl:Q.resultPreviewUrl,beforeUrl:Q.previewUrl,metadata:ep.metadata,onZoomChange:function(e){Q&&I({itemId:Q.id,value:e})},zoom:ee},Q.id):Q?(0,t.jsxs)("div",{className:"original-preview",children:[(0,t.jsxs)("div",{className:"original-preview-image",children:[(0,t.jsx)(n.default,{src:Q.previewUrl,alt:`Original image: ${Q.file.name}`,fill:!0,sizes:"(max-width: 960px) 100vw, 65vw",unoptimized:!0}),(0,t.jsx)("span",{className:"comparison-label label-before",children:"ORIGINAL"})]}),(0,t.jsxs)("div",{className:"original-file-card",children:[(0,t.jsx)("span",{className:"file-card-icon",children:(0,t.jsx)(o,{size:16})}),(0,t.jsxs)("span",{className:"file-card-name",children:[(0,t.jsx)("strong",{children:Q.file.name}),(0,t.jsxs)("small",{children:[Q.width.toLocaleString()," × ",Q.height.toLocaleString()," px · ",er(Q.file.size)]})]}),(0,t.jsx)("span",{className:"file-card-ready",children:"processing"===Q.status?"WORKING":"failed"===Q.status?"FAILED":"QUEUED"})]})]}):(0,t.jsxs)("div",{className:`batch-dropzone${P?" is-dragging":""}`,children:[(0,t.jsx)("div",{className:"upload-icon-wrap",children:(0,t.jsx)(j,{size:24,strokeWidth:1.6})}),(0,t.jsx)("p",{className:"upload-kicker",children:"PROCESS A SMALL SET TOGETHER"}),(0,t.jsx)("h3",{children:"Add images to your batch"}),(0,t.jsxs)("p",{className:"upload-description",children:["Choose up to ",10," JPG, PNG, or WEBP images. Each image is enhanced in sequence."]}),(0,t.jsxs)("button",{className:"button button-dark upload-button",type:"button",onClick:()=>W.current?.click(),disabled:K,children:[(0,t.jsx)(h,{size:17})," Choose images"]}),(0,t.jsxs)("div",{className:"upload-file-types",children:[(0,t.jsx)("span",{children:"JPG"}),(0,t.jsx)("span",{children:"PNG"}),(0,t.jsx)("span",{children:"WEBP"}),(0,t.jsx)("i",{})," ",(0,t.jsx)("span",{children:"20 MB each"})]}),(0,t.jsxs)("div",{className:"upload-privacy",children:[(0,t.jsx)(g,{size:14})," Images stay in this session and are not permanently stored."]}),P&&(0,t.jsxs)("div",{className:"drop-overlay",children:[(0,t.jsx)(j,{size:19})," Drop images to add them"]})]})}),ep&&(0,t.jsxs)("div",{className:"result-file-row",children:[(0,t.jsxs)("div",{className:"result-file-label",children:[(0,t.jsx)("span",{className:"result-check",children:(0,t.jsx)(g,{size:13})}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:ep.metadata.filename}),(0,t.jsxs)("small",{children:[er(ep.blob.size)," · Full-resolution output"]})]})]}),(0,t.jsxs)("button",{className:"text-button result-start-over",type:"button",onClick:()=>Q&&tV(Q),children:[(0,t.jsx)(x,{size:14})," Download"]})]}),s.length>0&&(0,t.jsxs)("div",{className:"batch-queue-section",children:[(0,t.jsxs)("div",{className:"batch-queue-heading",children:[(0,t.jsx)("strong",{children:"Image queue"}),(0,t.jsxs)("span",{children:[en," complete · ",es," remaining"]})]}),en>0&&(0,t.jsx)("div",{className:"batch-archive-row",children:(0,t.jsxs)("button",{className:"text-button batch-archive-button",onClick:()=>void eh(),type:"button",disabled:K,children:[y?(0,t.jsx)(N,{className:"spin",size:14}):(0,t.jsx)(x,{size:14}),(0,t.jsx)("span",{"aria-live":"polite",children:y?`Preparing ZIP \xb7 ${A.current} of ${A.total} images`:`Download ${en} completed ${1===en?"image":"images"} as ZIP`})]})}),m&&(0,t.jsxs)("div",{className:"batch-progress",children:[(0,t.jsxs)("div",{className:"batch-progress-status",role:"status","aria-live":"polite",children:[(0,t.jsx)(N,{className:"spin",size:15}),(0,t.jsx)("span",{children:F||`Enhancing image ${U.current} of ${U.total}. Images run one at a time to protect available memory.`})]}),(0,t.jsx)("button",{className:"batch-progress-stop",onClick:function(){m&&!k&&(Y.current=!0,z(!0))},type:"button",disabled:k,children:k?"Stopping…":"Stop after this image"})]}),(0,t.jsx)("ul",{className:"batch-queue-list","aria-label":"Batch enhancement progress",children:s.map(e=>(0,t.jsxs)("li",{className:`batch-queue-item${Q?.id===e.id?" is-selected":""}`,children:[(0,t.jsxs)("button",{"aria-pressed":Q?.id===e.id,className:"batch-queue-select",onClick:()=>f(e.id),type:"button",children:[(0,t.jsx)("span",{className:"batch-thumbnail",children:(0,t.jsx)(n.default,{src:e.previewUrl,alt:"",fill:!0,sizes:"52px",unoptimized:!0})}),(0,t.jsxs)("span",{className:"batch-file-copy",children:[(0,t.jsx)("strong",{title:e.file.name,children:e.file.name}),(0,t.jsxs)("small",{children:[er(e.file.size)," · ",e.width.toLocaleString()," × ",e.height.toLocaleString()]})]}),(0,t.jsxs)("span",{className:`batch-status batch-status-${e.status}`,children:["processing"===e.status&&(0,t.jsx)(N,{className:"spin",size:11}),"queued"===e.status?"QUEUED":"processing"===e.status?"WORKING":"complete"===e.status?"DONE":"FAILED"]})]}),e.error&&(0,t.jsx)("p",{className:"batch-item-error",children:e.error}),(0,t.jsxs)("div",{className:"batch-item-actions",children:[e.result&&(0,t.jsx)("button",{"aria-label":`Download ${e.result.metadata.filename}`,className:"icon-button",onClick:()=>tV(e),type:"button",children:(0,t.jsx)(x,{size:14})}),(0,t.jsx)("button",{"aria-label":`Remove ${e.file.name}`,className:"icon-button batch-remove-button",onClick:()=>(function(e){if(K||B.current)return;let t=s.find(t=>t.id===e);if(!t)return;ec(),URL.revokeObjectURL(t.previewUrl),t.resultPreviewUrl&&URL.revokeObjectURL(t.resultPreviewUrl);let n=s.filter(t=>t.id!==e);l(n),d===e&&f(n[0]?.id??null),W.current&&(W.current.value="")})(e.id),type:"button",disabled:K,children:(0,t.jsx)(p,{size:13})})]})]},e.id))})]}),D&&(0,t.jsxs)("div",{className:"error-notice",role:"alert",children:[(0,t.jsx)("span",{className:"error-mark",children:"!"}),(0,t.jsx)("span",{children:D}),(0,t.jsx)("button",{"aria-label":"Dismiss message",onClick:()=>q(null),type:"button",children:(0,t.jsx)(p,{size:14})})]})]}),(0,t.jsxs)("aside",{className:"settings-panel","aria-label":"Batch enhancement settings",children:[(0,t.jsxs)("div",{className:"settings-heading",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"section-kicker",children:"ONE SET OF SETTINGS"}),(0,t.jsx)("h3",{children:"Batch settings"})]}),(0,t.jsxs)("span",{className:"settings-step",children:["02 ",(0,t.jsx)("span",{children:"/ 02"})]})]}),(0,t.jsxs)("fieldset",{className:"settings-field",disabled:K,children:[(0,t.jsx)("legend",{children:"Upscale size"}),(0,t.jsx)("p",{className:"field-caption",children:"Applied to every image in the next run."}),(0,t.jsx)("div",{className:"scale-options",role:"group","aria-label":"Batch upscale factor",children:[2,4].map(e=>(0,t.jsxs)("button",{"aria-pressed":c.scale===e,className:`scale-option${c.scale===e?" is-selected":""}`,onClick:()=>ef("scale",e),type:"button",children:[(0,t.jsxs)("span",{className:"scale-option-top",children:[e,"×"]}),(0,t.jsx)("span",{className:"scale-option-bottom",children:2===e?"Balanced":"Maximum detail"}),c.scale===e&&(0,t.jsx)("span",{className:"selected-mark",children:(0,t.jsx)(g,{size:11})})]},e))})]}),(0,t.jsxs)("fieldset",{className:"settings-field format-field",disabled:K,children:[(0,t.jsx)("legend",{children:"Save format"}),(0,t.jsx)("p",{className:"field-caption",children:"Choose one output format for this run."}),(0,t.jsx)("div",{className:"format-options",role:"group","aria-label":"Batch output image format",children:tH.map(e=>(0,t.jsxs)("button",{"aria-pressed":c.outputFormat===e.value,className:`format-option${c.outputFormat===e.value?" is-selected":""}`,onClick:()=>ef("outputFormat",e.value),type:"button",children:[(0,t.jsx)("span",{className:"format-label",children:e.label}),(0,t.jsx)("span",{className:"format-detail",children:e.detail})]},e.value))})]}),(0,t.jsxs)("div",{className:"batch-settings-summary",children:[(0,t.jsxs)("strong",{children:[s.length," / ",10," images"]}),(0,t.jsxs)("span",{children:[en," enhanced",ea>0?` \xb7 ${ea} failed`:""]})]}),(0,t.jsxs)("p",{className:`batch-output-budget${eo?" is-over-limit":""}`,children:["Batch output budget: ",Math.ceil(el/1e6),"M / ",64,"M pixels"]}),(0,t.jsxs)("button",{className:"button button-dark enhance-button",type:"button",onClick:()=>void ed(),disabled:0===s.length||0===es||K||eo||i&&!e,children:[K?(0,t.jsx)(N,{className:"spin",size:17}):(0,t.jsx)(C,{size:17}),E?"Preparing images…":m?"Enhancing batch…":i&&!e?"Sign in to enhance":eo?"Reduce batch output size":es>0?`${ea>0?"Retry and enhance":"Enhance"} ${es} image${1===es?"":"s"}`:"Batch complete"]}),(0,t.jsxs)("p",{className:"settings-footnote",children:[(0,t.jsx)(b,{size:13})," Images run sequentially. A failed image won’t stop the rest."]}),(0,t.jsx)("p",{className:"batch-memory-note",children:"For stability, a batch is limited to 64 million total output pixels. Remove images or lower the upscale to stay within the limit. Completed files stay in this browser tab until removed or cleared."})]})]})}var tZ=e.i(75775);let tX=[{value:"png",label:"PNG",detail:"Lossless"},{value:"jpeg",label:"JPG",detail:"Smaller file"},{value:"webp",label:"WEBP",detail:"Modern"}];function tJ({settings:e,onChange:n,onEnhance:a,onDownload:i,hasImage:r,hasResult:s,isProcessing:l,isPreviewing:o,canEnhance:c,requiresAuth:u,processingStatus:d}){let h=l||o;return(0,t.jsxs)("aside",{className:"settings-panel","aria-label":"Enhancement settings",children:[(0,t.jsxs)("div",{className:"settings-heading",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"section-kicker",children:"MAKE IT YOURS"}),(0,t.jsx)("h3",{children:"Enhancement settings"})]}),(0,t.jsxs)("span",{className:"settings-step",children:["01 ",(0,t.jsx)("span",{children:"/ 02"})]})]}),(0,t.jsxs)("fieldset",{className:"settings-field",disabled:!r||h,children:[(0,t.jsx)("legend",{children:"Upscale size"}),(0,t.jsx)("p",{className:"field-caption",children:"Give your image more room to breathe."}),(0,t.jsx)("div",{className:"scale-options",role:"group","aria-label":"Upscale factor",children:[2,4].map(a=>(0,t.jsxs)("button",{"aria-pressed":e.scale===a,className:`scale-option${e.scale===a?" is-selected":""}`,onClick:()=>{n({...e,scale:a})},type:"button",children:[(0,t.jsxs)("span",{className:"scale-option-top",children:[a,"×"]}),(0,t.jsx)("span",{className:"scale-option-bottom",children:2===a?"Balanced":"Maximum detail"}),e.scale===a&&(0,t.jsx)("span",{className:"selected-mark",children:(0,t.jsx)(g,{size:11})})]},a))})]}),(0,t.jsxs)("fieldset",{className:"settings-field format-field",disabled:!r||h,children:[(0,t.jsx)("legend",{children:"Save format"}),(0,t.jsx)("p",{className:"field-caption",children:"Choose how your result is delivered."}),(0,t.jsx)("div",{className:"format-options",role:"group","aria-label":"Output image format",children:tX.map(a=>(0,t.jsxs)("button",{"aria-pressed":e.outputFormat===a.value,className:`format-option${e.outputFormat===a.value?" is-selected":""}`,onClick:()=>{var t;return t=a.value,void n({...e,outputFormat:t})},type:"button",children:[(0,t.jsx)("span",{className:"format-label",children:a.label}),(0,t.jsx)("span",{className:"format-detail",children:a.detail})]},a.value))})]}),(0,t.jsxs)("div",{className:"future-setting","aria-label":"Face restoration will be available later",children:[(0,t.jsx)("div",{className:"future-setting-icon",children:(0,t.jsx)(C,{size:15})}),(0,t.jsxs)("div",{className:"future-setting-copy",children:[(0,t.jsx)("strong",{children:"Face restoration"}),(0,t.jsx)("span",{children:"Coming in a future model"})]}),(0,t.jsx)("span",{className:"coming-soon",children:"SOON"})]}),l&&(0,t.jsxs)("div",{className:"processing-status",role:"status","aria-live":"polite",children:[(0,t.jsx)(N,{className:"spin",size:17}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:d?.startsWith("Waiting")?"Waiting for GPU":"Enhancing your image"}),(0,t.jsx)("small",{children:d??`AI is restoring detail at ${e.scale}\xd7.`})]})]}),o&&(0,t.jsxs)("div",{className:"processing-status",role:"status","aria-live":"polite",children:[(0,t.jsx)(N,{className:"spin",size:17}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:"Preparing your image"}),(0,t.jsx)("small",{children:"Loading the new preview."})]})]}),s?(0,t.jsxs)("button",{className:"button button-dark download-button",type:"button",onClick:i,disabled:h,children:[(0,t.jsx)(x,{size:17})," Download full-size image ",(0,t.jsx)(tZ.ArrowUpRight,{size:15,className:"button-tail"})]}):(0,t.jsxs)("button",{className:"button button-dark enhance-button",type:"button",onClick:a,disabled:!r||h||!c,children:[h?(0,t.jsx)(N,{className:"spin",size:17}):(0,t.jsx)(C,{size:17}),o?"Preparing your image…":l?"Working on your image…":u&&!c?"Sign in to enhance":"Enhance with AI",!h&&(0,t.jsx)(tZ.ArrowUpRight,{size:15,className:"button-tail"})]}),(0,t.jsxs)("p",{className:"settings-footnote",children:[(0,t.jsx)(b,{size:13})," ",u?"Processing uses your Hugging Face ZeroGPU quota.":"Processing time depends on image size and your device."]}),s&&(0,t.jsx)("button",{className:"enhance-again",type:"button",onClick:a,disabled:h,children:"Try these settings on the image"})]})}var tK=e.i(23384);let tQ={name:"folder-up",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m9 13 3-3 3 3",key:"1pxg3c"}]]};tQ.node;let t0=(0,i.default)(tQ),t1={name:"image-plus",size:24,node:[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]};t1.node;let t2=(0,i.default)(t1),t5={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};t5.node;let t4=(0,i.default)(t5);var t3=e.i(28623);function t8({onBrowse:e,isDragging:n}){return(0,t.jsxs)("div",{className:`upload-dropzone${n?" is-dragging":""}`,onDragOver:e=>e.preventDefault(),children:[(0,t.jsx)("div",{className:"upload-icon-wrap",children:(0,t.jsx)(t2,{size:24,strokeWidth:1.6})}),(0,t.jsx)("p",{className:"upload-kicker",children:"YOUR NEXT GREAT IMAGE STARTS HERE"}),(0,t.jsx)("h3",{children:"Enhance your image with AI"}),(0,t.jsx)("p",{className:"upload-description",children:"Upload a blurry or low-resolution image and let AI restore the details."}),(0,t.jsxs)("button",{className:"button button-dark upload-button",type:"button",onClick:e,children:[(0,t.jsx)(t0,{size:17})," Choose an image"]}),(0,t.jsxs)("div",{className:"upload-file-types","aria-label":"Supported formats and file size",children:[(0,t.jsx)("span",{children:"JPG"}),(0,t.jsx)("span",{children:"PNG"}),(0,t.jsx)("span",{children:"WEBP"}),(0,t.jsx)("i",{})," ",(0,t.jsx)("span",{children:"Up to 20 MB"})]}),(0,t.jsxs)("div",{className:"upload-privacy",children:[(0,t.jsx)(t4,{size:14})," Used only for enhancement, never permanently stored."]}),(0,t.jsxs)("div",{className:"drop-hint",children:[(0,t.jsx)(j,{size:14})," Drop a file anywhere in this panel"]}),n&&(0,t.jsxs)("div",{className:"drop-overlay",children:[(0,t.jsx)(t3.Sparkles,{size:20})," Drop to add your image"]})]})}let t6={scale:4,outputFormat:"png"};function t7({active:e,accessToken:i,requiresAuth:r,onBusyChange:l}){let[c,d]=(0,a.useState)(null),[f,m]=(0,a.useState)(null),[g,v]=(0,a.useState)(null),[b,y]=(0,a.useState)(t6),[x,w]=(0,a.useState)(null),[j,k]=(0,a.useState)(null),[N,z]=(0,a.useState)(!1),[S,E]=(0,a.useState)(!1),[R,_]=(0,a.useState)(!1),[C,P]=(0,a.useState)(1),M=(0,a.useRef)(null),U=(0,a.useRef)(null),O=(0,a.useRef)(null),A=(0,a.useRef)(0),T=(0,a.useRef)(!1);(0,a.useEffect)(()=>{l(N||S)},[N,S,l]);let L=(0,a.useCallback)(()=>{O.current&&URL.revokeObjectURL(O.current),O.current=null,v(null)},[]),I=(0,a.useCallback)(async e=>{let t=ei(e);if(t)return void w(t);let n=++A.current;T.current=!0,E(!0),w(null);let a="";try{a=URL.createObjectURL(e);let t=new window.Image;if(t.src=a,await t.decode(),n!==A.current)return void URL.revokeObjectURL(a);if(t.naturalWidth<1||t.naturalHeight<1)throw Error("Image dimensions are invalid.");U.current&&URL.revokeObjectURL(U.current),L(),U.current=a,d({file:e,width:t.naturalWidth,height:t.naturalHeight,previewUrl:a}),m(null),T.current=!1,E(!1),z(!1),P(1),w(null)}catch{a&&URL.revokeObjectURL(a),n===A.current&&(T.current=!1,E(!1),z(!1),w("This image could not be previewed. Try another JPG, PNG, or WEBP file."))}},[L]),D=(0,a.useCallback)(()=>{A.current+=1,T.current=!1,E(!1),U.current&&URL.revokeObjectURL(U.current),U.current=null,L(),d(null),m(null),w(null),z(!1),P(1),M.current&&(M.current.value="")},[L]);async function q(){if(!c||N||T.current)return;let e=A.current;z(!0),w(null),k("Connecting to the AI queue…");try{let t=await et(c.file,b,{width:c.width,height:c.height},i,e=>{"queued"===e.stage?k(e.position?`Waiting in the shared GPU queue \xb7 position ${e.position}`:"Waiting for the shared GPU queue…"):"working"===e.stage&&k("Enhancing with Real-ESRGAN…")});if(e!==A.current)return;L();let n=URL.createObjectURL(t.blob);O.current=n,v(n),m(t),P(1)}catch(t){if(e!==A.current)return;w(t instanceof H?t.message:"Something went wrong. Please try enhancing the image again.")}finally{e===A.current&&(z(!1),k(null))}}return(0,a.useEffect)(()=>()=>{U.current&&URL.revokeObjectURL(U.current),O.current&&URL.revokeObjectURL(O.current)},[]),(0,a.useEffect)(()=>{if(e)return window.addEventListener("paste",t),()=>window.removeEventListener("paste",t);function t(e){let t=e.target;if(t instanceof HTMLElement&&(t.isContentEditable||["INPUT","TEXTAREA"].includes(t.tagName)))return;let n=Array.from(e.clipboardData?.items??[]).find(e=>e.type.startsWith("image/")),a=n?.getAsFile();if(!a||N||T.current)return;e.preventDefault();let i="image/webp"===a.type?"webp":"image/jpeg"===a.type?"jpg":"png";I(a.name?a:new File([a],`pasted-image.${i}`,{type:a.type}))}},[e,N,I]),(0,t.jsxs)("div",{className:`studio-layout${R?" is-dragging":""}`,onDragEnter:e=>{e.dataTransfer.types.includes("Files")&&_(!0)},onDragOver:e=>{e.dataTransfer.types.includes("Files")&&e.preventDefault()},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||_(!1)},onDrop:function(e){e.preventDefault(),_(!1);let t=e.dataTransfer.files.item(0);!t||N||T.current||I(t)},children:[(0,t.jsx)("input",{ref:M,"aria-label":"Choose an image to enhance",className:"visually-hidden-input",accept:"image/jpeg,image/png,image/webp,.jpg,.jpeg,.png,.webp",disabled:N||S,onChange:function(e){let t=e.currentTarget.files?.item(0);e.currentTarget.value="",!t||N||T.current||I(t)},type:"file"}),(0,t.jsxs)("section",{className:"image-workspace","aria-label":"Image workspace",children:[(0,t.jsxs)("div",{className:"workspace-toolbar",children:[(0,t.jsxs)("div",{className:"workspace-status",children:[(0,t.jsx)("span",{className:c?"status-dot":"status-dot status-dot-muted"}),f?"RESULT READY":c?"IMAGE READY":"YOUR CANVAS"]}),(0,t.jsxs)("div",{className:"workspace-actions",children:[(0,t.jsxs)("span",{className:"local-badge",children:[(0,t.jsx)(o,{size:13})," ",r?"HF ZERO-GPU":"LOCAL SESSION"]}),c&&(0,t.jsxs)("button",{className:"text-button",onClick:()=>M.current?.click(),type:"button",disabled:N||S,children:[(0,t.jsx)(h,{size:14})," Replace"]}),c&&(0,t.jsx)("button",{className:"icon-button","aria-label":"Remove current image",onClick:D,type:"button",disabled:N||S,children:(0,t.jsx)(p,{size:15})})]})]}),(0,t.jsx)("div",{className:"image-stage",children:c&&f&&g?(0,t.jsx)($,{afterUrl:g,beforeUrl:c.previewUrl,metadata:f.metadata,onZoomChange:e=>P(e),zoom:C},g):c?(0,t.jsxs)("div",{className:"original-preview",children:[(0,t.jsxs)("div",{className:"original-preview-image",children:[(0,t.jsx)(n.default,{src:c.previewUrl,alt:"Selected original image",fill:!0,sizes:"(max-width: 960px) 100vw, 65vw",unoptimized:!0}),(0,t.jsx)("span",{className:"comparison-label label-before",children:"ORIGINAL"})]}),(0,t.jsxs)("div",{className:"original-file-card",children:[(0,t.jsx)("span",{className:"file-card-icon",children:(0,t.jsx)(o,{size:16})}),(0,t.jsxs)("span",{className:"file-card-name",children:[(0,t.jsx)("strong",{children:c.file.name||"Pasted image"}),(0,t.jsxs)("small",{children:[c.width.toLocaleString()," × ",c.height.toLocaleString()," px · ",er(c.file.size)]})]}),(0,t.jsx)("span",{className:"file-card-ready",children:"READY"})]})]}):(0,t.jsx)(t8,{isDragging:R,onBrowse:()=>M.current?.click()})}),c&&f&&(0,t.jsxs)("div",{className:"result-file-row",children:[(0,t.jsxs)("div",{className:"result-file-label",children:[(0,t.jsx)("span",{className:"result-check",children:(0,t.jsx)(u,{size:13})}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:f.metadata.filename}),(0,t.jsxs)("small",{children:[er(f.blob.size)," · Full-resolution output"]})]})]}),(0,t.jsxs)("button",{className:"text-button result-start-over",type:"button",onClick:D,disabled:N||S,children:["Start over ",(0,t.jsx)(s,{size:14})]})]}),x&&(0,t.jsxs)("div",{className:"error-notice",role:"alert",children:[(0,t.jsx)("span",{className:"error-mark",children:"!"}),(0,t.jsx)("span",{children:x}),(0,t.jsx)("button",{"aria-label":"Dismiss message",onClick:()=>w(null),type:"button",children:(0,t.jsx)(p,{size:14})})]}),!c&&(0,t.jsxs)("p",{className:"paste-tip",children:[(0,t.jsx)("span",{children:"QUICK TIP"})," You can also paste an image from your clipboard with ",(0,t.jsx)("kbd",{children:"Ctrl"})," ",(0,t.jsx)("b",{children:"+"})," ",(0,t.jsx)("kbd",{children:"V"}),"."]})]}),(0,t.jsx)(tJ,{hasImage:null!==c,hasResult:null!==f,isProcessing:N,isPreviewing:S,canEnhance:!r||null!==i,processingStatus:j,requiresAuth:r,onChange:y,onDownload:function(){if(!f)return;let e=URL.createObjectURL(f.blob),t=document.createElement("a");t.href=e,t.download=f.metadata.filename,document.body.append(t),t.click(),t.remove(),window.setTimeout(()=>URL.revokeObjectURL(e),1e3)},onEnhance:()=>void q(),settings:b})]})}e.s(["EnhancerStudio",0,function(){let e=(0,tK.useHfOAuth)(),[n,i]=(0,a.useState)("single"),[r,s]=(0,a.useState)({single:!1,batch:!1}),l=r.single||r.batch,o=(0,a.useCallback)(e=>{s(t=>({...t,single:e}))},[]),c=(0,a.useCallback)(e=>{s(t=>({...t,batch:e}))},[]);return(0,t.jsxs)("div",{className:"enhancer-shell",children:[(0,t.jsxs)("div",{className:"studio-mode-toggle",role:"group","aria-label":"Enhancement mode",children:[(0,t.jsx)("button",{"aria-pressed":"single"===n,className:"single"===n?"is-selected":"",disabled:l,onClick:()=>i("single"),type:"button",children:"Single image"}),(0,t.jsx)("button",{"aria-pressed":"batch"===n,className:"batch"===n?"is-selected":"",disabled:l,onClick:()=>i("batch"),type:"button",children:"Batch images"})]}),(0,t.jsx)("div",{hidden:"single"!==n,children:(0,t.jsx)(t7,{active:"single"===n,accessToken:e.accessToken,requiresAuth:e.required,onBusyChange:o})}),(0,t.jsx)("div",{hidden:"batch"!==n,children:(0,t.jsx)(tY,{accessToken:e.accessToken,requiresAuth:e.required,onBusyChange:c})})]})}],21342)}]);
|
_next/static/hEX_6hBW_9USR_CiGdsoP/_buildManifest.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
self.__BUILD_MANIFEST = {
|
| 2 |
+
"__rewrites": {
|
| 3 |
+
"afterFiles": [],
|
| 4 |
+
"beforeFiles": [],
|
| 5 |
+
"fallback": []
|
| 6 |
+
},
|
| 7 |
+
"sortedPages": [
|
| 8 |
+
"/_app",
|
| 9 |
+
"/_error"
|
| 10 |
+
]
|
| 11 |
+
};self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB()
|
_next/static/hEX_6hBW_9USR_CiGdsoP/_clientMiddlewareManifest.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
self.__MIDDLEWARE_MATCHERS = [];self.__MIDDLEWARE_MATCHERS_CB && self.__MIDDLEWARE_MATCHERS_CB()
|
_next/static/hEX_6hBW_9USR_CiGdsoP/_ssgManifest.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
|
_not-found.html
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3mnriig4puhpm.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/12aruqaur5huj.js"/><script src="/_next/static/chunks/13yxs8tvcajse.js" async=""></script><script src="/_next/static/chunks/3g4px251sg85e.js" async=""></script><script src="/_next/static/chunks/turbopack-1rdgb0w8nih9e.js" async=""></script><script src="/_next/static/chunks/3wnd0kwwbm1vl.js" async=""></script><script src="/_next/static/chunks/
|
|
|
|
| 1 |
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3mnriig4puhpm.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/12aruqaur5huj.js"/><script src="/_next/static/chunks/13yxs8tvcajse.js" async=""></script><script src="/_next/static/chunks/3g4px251sg85e.js" async=""></script><script src="/_next/static/chunks/turbopack-1rdgb0w8nih9e.js" async=""></script><script src="/_next/static/chunks/3wnd0kwwbm1vl.js" async=""></script><script src="/_next/static/chunks/0o7jtkzzo_70g.js" async=""></script><meta name="robots" content="noindex"/><title>Sharpify AI — Image enhancement, with more detail</title><meta name="description" content="Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."/><link rel="icon" href="/favicon.ico?favicon.2vob68tjqpejf.ico" sizes="256x256" type="image/x-icon"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/12aruqaur5huj.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[23384,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"HfOAuthProvider\"]\n3:I[39756,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"default\"]\n5:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n9:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"ViewportBoundary\"]\nb:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"MetadataBoundary\"]\nd:I[68027,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/3mnriig4puhpm.css\",\"style\"]\n8:X\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0o7jtkzzo_70g.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,null]},null,false,\"$8\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"hEX_6hBW_9USR_CiGdsoP\"}\n8:C\na:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\ne:I[27201,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"IconMark\"]\n7:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"Sharpify AI — Image enhancement, with more detail\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2vob68tjqpejf.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"3\",{}]]\n"])</script></body></html>
|
_not-found.txt
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
1:"$Sreact.fragment"
|
| 2 |
-
2:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 3 |
-
3:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 4 |
-
4:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 5 |
-
5:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 6 |
6:"$Sreact.suspense"
|
| 7 |
-
9:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 8 |
-
b:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 9 |
-
d:I[68027,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 10 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 11 |
8:X
|
| 12 |
-
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/
|
| 13 |
8:C
|
| 14 |
a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
| 15 |
-
e:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 16 |
7:null
|
| 17 |
c:[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$Le","3",{}]]
|
|
|
|
| 1 |
1:"$Sreact.fragment"
|
| 2 |
+
2:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"HfOAuthProvider"]
|
| 3 |
+
3:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default"]
|
| 4 |
+
4:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default"]
|
| 5 |
+
5:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"OutletBoundary"]
|
| 6 |
6:"$Sreact.suspense"
|
| 7 |
+
9:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"ViewportBoundary"]
|
| 8 |
+
b:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"MetadataBoundary"]
|
| 9 |
+
d:I[68027,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default",1]
|
| 10 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 11 |
8:X
|
| 12 |
+
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0o7jtkzzo_70g.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,"$8"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L9",null,{"children":"$La"}],["$","div",null,{"hidden":true,"children":["$","$Lb",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lc"}]}]}],null]}],false]],"m":"$undefined","G":["$d",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"hEX_6hBW_9USR_CiGdsoP"}
|
| 13 |
8:C
|
| 14 |
a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
| 15 |
+
e:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"IconMark"]
|
| 16 |
7:null
|
| 17 |
c:[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$Le","3",{}]]
|
_not-found/__next._full.txt
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
1:"$Sreact.fragment"
|
| 2 |
-
2:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 3 |
-
3:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 4 |
-
4:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 5 |
-
5:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 6 |
6:"$Sreact.suspense"
|
| 7 |
-
9:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 8 |
-
b:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 9 |
-
d:I[68027,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 10 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 11 |
8:X
|
| 12 |
-
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/
|
| 13 |
8:C
|
| 14 |
a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
| 15 |
-
e:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 16 |
7:null
|
| 17 |
c:[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$Le","3",{}]]
|
|
|
|
| 1 |
1:"$Sreact.fragment"
|
| 2 |
+
2:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"HfOAuthProvider"]
|
| 3 |
+
3:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default"]
|
| 4 |
+
4:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default"]
|
| 5 |
+
5:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"OutletBoundary"]
|
| 6 |
6:"$Sreact.suspense"
|
| 7 |
+
9:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"ViewportBoundary"]
|
| 8 |
+
b:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"MetadataBoundary"]
|
| 9 |
+
d:I[68027,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default",1]
|
| 10 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 11 |
8:X
|
| 12 |
+
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0o7jtkzzo_70g.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,"$8"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L9",null,{"children":"$La"}],["$","div",null,{"hidden":true,"children":["$","$Lb",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lc"}]}]}],null]}],false]],"m":"$undefined","G":["$d",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"hEX_6hBW_9USR_CiGdsoP"}
|
| 13 |
8:C
|
| 14 |
a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
| 15 |
+
e:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"IconMark"]
|
| 16 |
7:null
|
| 17 |
c:[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$Le","3",{}]]
|
_not-found/__next._not-found/__PAGE__.txt
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
1:"$Sreact.fragment"
|
| 2 |
-
2:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 3 |
3:"$Sreact.suspense"
|
| 4 |
-
7:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 5 |
-
8:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 6 |
-
9:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 7 |
-
b:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 8 |
-
c:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 9 |
-
f:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 10 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 11 |
6:X
|
| 12 |
e:X
|
| 13 |
e:C
|
| 14 |
-
0:{"buildId":"
|
| 15 |
4:null
|
| 16 |
6:300
|
| 17 |
12:true
|
|
|
|
| 1 |
1:"$Sreact.fragment"
|
| 2 |
+
2:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"OutletBoundary"]
|
| 3 |
3:"$Sreact.suspense"
|
| 4 |
+
7:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"ViewportBoundary"]
|
| 5 |
+
8:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"MetadataBoundary"]
|
| 6 |
+
9:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"IconMark"]
|
| 7 |
+
b:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default"]
|
| 8 |
+
c:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default"]
|
| 9 |
+
f:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"HfOAuthProvider"]
|
| 10 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 11 |
6:X
|
| 12 |
e:X
|
| 13 |
e:C
|
| 14 |
+
0:{"buildId":"hEX_6hBW_9USR_CiGdsoP","data":[{"rsc":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":"$@5","staleTime":"$6","varyParams":null},{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L7",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L8",null,{"children":["$","$3",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L9","3",{}]]}]}]}],null]}],"isPartial":"$@a","staleTime":"$6","varyParams":null},{"rsc":["$","$1","c",{"children":[null,["$","$Lb",null,{"parallelRouterKey":"children","template":["$","$Lc",null,{}]}]]}],"isPartial":"$@d","staleTime":"$6","varyParams":"$e"},{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/0o7jtkzzo_70g.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$Lf",null,{"children":["$","$Lb",null,{"parallelRouterKey":"children","template":["$","$Lc",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:data:0:rsc:props:children:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:data:0:rsc:props:children:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:data:0:rsc:props:children:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:data:0:rsc:props:children:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]]}],"isPartial":"$@10","staleTime":"$6","varyParams":null}],"isUpgradeableISRFallback":false,"a":"$@11","rootVaryParams":null,"needsRuntimeRequest":"$@12"}
|
| 15 |
4:null
|
| 16 |
6:300
|
| 17 |
12:true
|
_not-found/__next._tree.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 2 |
-
0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"/_not-found","param":null,"prefetchHints":4192,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}}}},"staleTime":300,"buildId":"
|
|
|
|
| 1 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 2 |
+
0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"/_not-found","param":null,"prefetchHints":4192,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}}}},"staleTime":300,"buildId":"hEX_6hBW_9USR_CiGdsoP"}
|
index.html
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3mnriig4puhpm.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/12aruqaur5huj.js"/><script src="/_next/static/chunks/13yxs8tvcajse.js" async=""></script><script src="/_next/static/chunks/3g4px251sg85e.js" async=""></script><script src="/_next/static/chunks/turbopack-1rdgb0w8nih9e.js" async=""></script><script src="/_next/static/chunks/3wnd0kwwbm1vl.js" async=""></script><script src="/_next/static/chunks/3-vxe91e-zk3u.js" async=""></script><script src="/_next/static/chunks/0f8bek7psp5me.js" async=""></script><script src="/_next/static/chunks/37mvkrz0kpeh3.js" async=""></script><title>Sharpify AI — Image enhancement, with more detail</title><meta name="description" content="Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."/><link rel="icon" href="/favicon.ico?favicon.2vob68tjqpejf.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><main id="top"><header class="site-header"><a class="brand-lockup" href="#top" aria-label="Sharpify AI home"><span class="brand-mark"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg></span><span>sharpify<span class="brand-ai">.ai</span></span></a><nav class="main-nav" aria-label="Main navigation"><a href="#studio">Enhance</a><a href="#how-it-works">How it works</a><a href="#about">About</a></nav><div class="header-actions"><div class="header-auth-wrap"><button class="header-cta header-auth-button" type="button" disabled=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-log-in" aria-hidden="true"><path d="m10 17 5-5-5-5"></path><path d="M15 12H3"></path><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path></svg><span>Checking sign-in…</span></button></div><a class="header-cta" href="#studio">Open studio <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></a></div></header><section class="hero-shell" aria-labelledby="hero-title"><div class="hero-copy"><div class="eyebrow"><span class="status-dot"></span> AI IMAGE STUDIO</div><h1 id="hero-title">A clearer version<br/>of <span>your favorite moments.</span></h1><p class="hero-description">Bring soft, small, or slightly tired images back into focus with thoughtful AI upscaling.</p><a class="hero-link" href="#studio">Open the enhancer <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a></div><div class="hero-art" aria-hidden="true"><div class="hero-art-glow"></div><div class="hero-photo photo-back"><div class="sun"></div><div class="ridge ridge-back"></div><div class="ridge ridge-front"></div><div class="field-lines"></div></div><div class="hero-photo-photo-label"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg> RESTORED IN DETAIL</div><div class="hero-art-stamp"><span>SHARPIFY</span><strong>AI</strong></div></div></section><section class="studio-section" id="studio" aria-labelledby="studio-title"><div class="section-heading"><div><p class="section-kicker">THE WORKSPACE</p><h2 id="studio-title">Make it feel new again.</h2></div><p class="section-aside">Uploaded images are used only for enhancement and are not permanently stored.</p></div><div class="enhancer-shell"><div class="studio-mode-toggle" role="group" aria-label="Enhancement mode"><button aria-pressed="true" class="is-selected" type="button">Single image</button><button aria-pressed="false" class="" type="button">Batch images</button></div><div><div class="studio-layout"><input aria-label="Choose an image to enhance" class="visually-hidden-input" accept="image/jpeg,image/png,image/webp,.jpg,.jpeg,.png,.webp" type="file"/><section class="image-workspace" aria-label="Image workspace"><div class="workspace-toolbar"><div class="workspace-status"><span class="status-dot status-dot-muted"></span>YOUR CANVAS</div><div class="workspace-actions"><span class="local-badge"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path></svg> <!-- -->HF ZERO-GPU</span></div></div><div class="image-stage"><div class="upload-dropzone"><div class="upload-icon-wrap"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image-plus" aria-hidden="true"><path d="M16 5h6"></path><path d="M19 2v6"></path><path d="M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5"></path><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path><circle cx="9" cy="9" r="2"></circle></svg></div><p class="upload-kicker">YOUR NEXT GREAT IMAGE STARTS HERE</p><h3>Enhance your image with AI</h3><p class="upload-description">Upload a blurry or low-resolution image and let AI restore the details.</p><button class="button button-dark upload-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-folder-up" aria-hidden="true"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path><path d="M12 10v6"></path><path d="m9 13 3-3 3 3"></path></svg> Choose an image</button><div class="upload-file-types" aria-label="Supported formats and file size"><span>JPG</span><span>PNG</span><span>WEBP</span><i></i> <span>Up to 20 MB</span></div><div class="upload-privacy"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg> Used only for enhancement, never permanently stored.</div><div class="drop-hint"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-image" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><circle cx="10" cy="12" r="2"></circle><path d="m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22"></path></svg> Drop a file anywhere in this panel</div></div></div><p class="paste-tip"><span>QUICK TIP</span> You can also paste an image from your clipboard with <kbd>Ctrl</kbd> <b>+</b> <kbd>V</kbd>.</p></section><aside class="settings-panel" aria-label="Enhancement settings"><div class="settings-heading"><div><p class="section-kicker">MAKE IT YOURS</p><h3>Enhancement settings</h3></div><span class="settings-step">01 <span>/ 02</span></span></div><fieldset class="settings-field" disabled=""><legend>Upscale size</legend><p class="field-caption">Give your image more room to breathe.</p><div class="scale-options" role="group" aria-label="Upscale factor"><button aria-pressed="false" class="scale-option" type="button"><span class="scale-option-top">2<!-- -->×</span><span class="scale-option-bottom">Balanced</span></button><button aria-pressed="true" class="scale-option is-selected" type="button"><span class="scale-option-top">4<!-- -->×</span><span class="scale-option-bottom">Maximum detail</span><span class="selected-mark"><svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span></button></div></fieldset><fieldset class="settings-field format-field" disabled=""><legend>Save format</legend><p class="field-caption">Choose how your result is delivered.</p><div class="format-options" role="group" aria-label="Output image format"><button aria-pressed="true" class="format-option is-selected" type="button"><span class="format-label">PNG</span><span class="format-detail">Lossless</span></button><button aria-pressed="false" class="format-option" type="button"><span class="format-label">JPG</span><span class="format-detail">Smaller file</span></button><button aria-pressed="false" class="format-option" type="button"><span class="format-label">WEBP</span><span class="format-detail">Modern</span></button></div></fieldset><div class="future-setting" aria-label="Face restoration will be available later"><div class="future-setting-icon"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wand-sparkles lucide-wand-2" aria-hidden="true"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72"></path><path d="m14 7 3 3"></path><path d="M5 6v4"></path><path d="M19 14v4"></path><path d="M10 2v2"></path><path d="M7 8H3"></path><path d="M21 16h-4"></path><path d="M11 3H9"></path></svg></div><div class="future-setting-copy"><strong>Face restoration</strong><span>Coming in a future model</span></div><span class="coming-soon">SOON</span></div><button class="button button-dark enhance-button" type="button" disabled=""><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wand-sparkles lucide-wand-2" aria-hidden="true"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72"></path><path d="m14 7 3 3"></path><path d="M5 6v4"></path><path d="M19 14v4"></path><path d="M10 2v2"></path><path d="M7 8H3"></path><path d="M21 16h-4"></path><path d="M11 3H9"></path></svg>Sign in to enhance<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right button-tail" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></button><p class="settings-footnote"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-question-mark lucide-help-circle lucide-circle-help" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path></svg> <!-- -->Processing uses your Hugging Face ZeroGPU quota.</p></aside></div></div><div hidden=""><div class="studio-layout batch-layout"><input aria-label="Choose images for batch enhancement" class="visually-hidden-input" accept="image/jpeg,image/png,image/webp,.jpg,.jpeg,.png,.webp" multiple="" type="file"/><section class="image-workspace" aria-label="Batch image workspace"><div class="workspace-toolbar"><div class="workspace-status"><span class="status-dot status-dot-muted"></span>BATCH QUEUE</div><div class="workspace-actions"><span class="local-badge"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path></svg> UP TO <!-- -->10<!-- --> IMAGES</span><button class="text-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg> Add images</button></div></div><div class="image-stage batch-image-stage"><div class="batch-dropzone"><div class="upload-icon-wrap"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-image" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><circle cx="10" cy="12" r="2"></circle><path d="m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22"></path></svg></div><p class="upload-kicker">PROCESS A SMALL SET TOGETHER</p><h3>Add images to your batch</h3><p class="upload-description">Choose up to <!-- -->10<!-- --> JPG, PNG, or WEBP images. Each image is enhanced in sequence.</p><button class="button button-dark upload-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-upload" aria-hidden="true"><path d="M12 3v12"></path><path d="m17 8-5-5-5 5"></path><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path></svg> Choose images</button><div class="upload-file-types"><span>JPG</span><span>PNG</span><span>WEBP</span><i></i> <span>20 MB each</span></div><div class="upload-privacy"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg> Images stay in this session and are not permanently stored.</div></div></div></section><aside class="settings-panel" aria-label="Batch enhancement settings"><div class="settings-heading"><div><p class="section-kicker">ONE SET OF SETTINGS</p><h3>Batch settings</h3></div><span class="settings-step">02 <span>/ 02</span></span></div><fieldset class="settings-field"><legend>Upscale size</legend><p class="field-caption">Applied to every image in the next run.</p><div class="scale-options" role="group" aria-label="Batch upscale factor"><button aria-pressed="false" class="scale-option" type="button"><span class="scale-option-top">2<!-- -->×</span><span class="scale-option-bottom">Balanced</span></button><button aria-pressed="true" class="scale-option is-selected" type="button"><span class="scale-option-top">4<!-- -->×</span><span class="scale-option-bottom">Maximum detail</span><span class="selected-mark"><svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span></button></div></fieldset><fieldset class="settings-field format-field"><legend>Save format</legend><p class="field-caption">Choose one output format for this run.</p><div class="format-options" role="group" aria-label="Batch output image format"><button aria-pressed="true" class="format-option is-selected" type="button"><span class="format-label">PNG</span><span class="format-detail">Lossless</span></button><button aria-pressed="false" class="format-option" type="button"><span class="format-label">JPG</span><span class="format-detail">Smaller file</span></button><button aria-pressed="false" class="format-option" type="button"><span class="format-label">WEBP</span><span class="format-detail">Modern</span></button></div></fieldset><div class="batch-settings-summary"><strong>0<!-- --> / <!-- -->10<!-- --> images</strong><span>0<!-- --> enhanced</span></div><p class="batch-output-budget">Batch output budget: <!-- -->0<!-- -->M / <!-- -->64<!-- -->M pixels</p><button class="button button-dark enhance-button" type="button" disabled=""><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wand-sparkles lucide-wand-2" aria-hidden="true"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72"></path><path d="m14 7 3 3"></path><path d="M5 6v4"></path><path d="M19 14v4"></path><path d="M10 2v2"></path><path d="M7 8H3"></path><path d="M21 16h-4"></path><path d="M11 3H9"></path></svg>Sign in to enhance</button><p class="settings-footnote"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-question-mark lucide-help-circle lucide-circle-help" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path></svg> Images run sequentially. A failed image won’t stop the rest.</p><p class="batch-memory-note">For stability, a batch is limited to 64 million total output pixels. Remove images or lower the upscale to stay within the limit. Completed files stay in this browser tab until removed or cleared.</p></aside></div></div></div></section><section class="how-section" id="how-it-works" aria-labelledby="how-title"><div class="how-heading"><p class="section-kicker">SIMPLE BY DESIGN</p><h2 id="how-title">Three steps. One better image.</h2></div><div class="steps-grid"><article class="step-card"><span class="step-number">01</span><h3>Bring your image</h3><p>Drop in a photo, scan, or graphic that could use a little more clarity.</p></article><article class="step-card"><span class="step-number">02</span><h3>Let AI restore detail</h3><p>Real-ESRGAN restores visual detail and enlarges your image with AI.</p></article><article class="step-card"><span class="step-number">03</span><h3>Keep the full-size result</h3><p>Compare both versions, zoom into the details, then download your image.</p></article></div></section><footer class="site-footer" id="about"><a class="brand-lockup" href="#top" aria-label="Sharpify AI home"><span class="brand-mark"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg></span><span>sharpify<span class="brand-ai">.ai</span></span></a><p>Powered by open-source AI super resolution.</p><a href="#studio">Back to the studio <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a></footer></main><!--$--><!--/$--><script src="/_next/static/chunks/12aruqaur5huj.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[23384,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"HfOAuthProvider\"]\n3:I[39756,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"default\"]\n5:I[26564,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\",\"/_next/static/chunks/0f8bek7psp5me.js\",\"/_next/static/chunks/37mvkrz0kpeh3.js\"],\"AppHeader\"]\n6:I[5014,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\",\"/_next/static/chunks/0f8bek7psp5me.js\",\"/_next/static/chunks/37mvkrz0kpeh3.js\"],\"default\"]\n7:I[21342,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\",\"/_next/static/chunks/0f8bek7psp5me.js\",\"/_next/static/chunks/37mvkrz0kpeh3.js\"],\"EnhancerStudio\"]\nf:I[68027,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/3mnriig4puhpm.css\",\"style\"]\n0:{\"P\":null,\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/3-vxe91e-zk3u.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"main\",null,{\"id\":\"top\",\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"section\",null,{\"className\":\"hero-shell\",\"aria-labelledby\":\"hero-title\",\"children\":[[\"$\",\"div\",null,{\"className\":\"hero-copy\",\"children\":[[\"$\",\"div\",null,{\"className\":\"eyebrow\",\"children\":[[\"$\",\"span\",null,{\"className\":\"status-dot\"}],\" AI IMAGE STUDIO\"]}],[\"$\",\"h1\",null,{\"id\":\"hero-title\",\"children\":[\"A clearer version\",[\"$\",\"br\",null,{}],\"of \",[\"$\",\"span\",null,{\"children\":\"your favorite moments.\"}]]}],[\"$\",\"p\",null,{\"className\":\"hero-description\",\"children\":\"Bring soft, small, or slightly tired images back into focus with thoughtful AI upscaling.\"}],[\"$\",\"a\",null,{\"className\":\"hero-link\",\"href\":\"#studio\",\"children\":[\"Open the enhancer \",[\"$\",\"$L6\",null,{\"ref\":\"$undefined\",\"icon\":{\"name\":\"arrow-right\",\"size\":24,\"node\":[[\"path\",{\"d\":\"M5 12h14\",\"key\":\"1ays0h\"}],[\"path\",{\"d\":\"m12 5 7 7-7 7\",\"key\":\"xquz4c\"}]]},\"className\":\"$undefined\",\"size\":16}]]}]]}],[\"$\",\"div\",null,{\"className\":\"hero-art\",\"aria-hidden\":\"true\",\"children\":[[\"$\",\"div\",null,{\"className\":\"hero-art-glow\"}],[\"$\",\"div\",null,{\"className\":\"hero-photo photo-back\",\"children\":[[\"$\",\"div\",null,{\"className\":\"sun\"}],[\"$\",\"div\",null,{\"className\":\"ridge ridge-back\"}],[\"$\",\"div\",null,{\"className\":\"ridge ridge-front\"}],[\"$\",\"div\",null,{\"className\":\"field-lines\"}]]}],[\"$\",\"div\",null,{\"className\":\"hero-photo-photo-label\",\"children\":[[\"$\",\"$L6\",null,{\"ref\":\"$undefined\",\"icon\":{\"name\":\"sparkles\",\"size\":24,\"node\":[[\"path\",{\"d\":\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z\",\"key\":\"1s2grr\"}],[\"path\",{\"d\":\"M20 2v4\",\"key\":\"1rf3ol\"}],[\"path\",{\"d\":\"M22 4h-4\",\"key\":\"gwowj6\"}],[\"circle\",{\"cx\":\"4\",\"cy\":\"20\",\"r\":\"2\",\"key\":\"6kqj1y\"}]],\"aliases\":[\"stars\"]},\"className\":\"$undefined\",\"size\":14}],\" RESTORED IN DETAIL\"]}],[\"$\",\"div\",null,{\"className\":\"hero-art-stamp\",\"children\":[[\"$\",\"span\",null,{\"children\":\"SHARPIFY\"}],[\"$\",\"strong\",null,{\"children\":\"AI\"}]]}]]}]]}],[\"$\",\"section\",null,{\"className\":\"studio-section\",\"id\":\"studio\",\"aria-labelledby\":\"studio-title\",\"children\":[[\"$\",\"div\",null,{\"className\":\"section-heading\",\"children\":[[\"$\",\"div\",null,{\"children\":[[\"$\",\"p\",null,{\"className\":\"section-kicker\",\"children\":\"THE WORKSPACE\"}],[\"$\",\"h2\",null,{\"id\":\"studio-title\",\"children\":\"Make it feel new again.\"}]]}],[\"$\",\"p\",null,{\"className\":\"section-aside\",\"children\":\"Uploaded images are used only for enhancement and are not permanently stored.\"}]]}],[\"$\",\"$L7\",null,{}]]}],[\"$\",\"section\",null,{\"className\":\"how-section\",\"id\":\"how-it-works\",\"aria-labelledby\":\"how-title\",\"children\":[[\"$\",\"div\",null,{\"className\":\"how-heading\",\"children\":[[\"$\",\"p\",null,{\"className\":\"section-kicker\",\"children\":\"SIMPLE BY DESIGN\"}],\"$L8\"]}],\"$L9\"]}],\"$La\"]}],[\"$Lb\",\"$Lc\"],\"$Ld\"]}],{},null,false,null]},null,false,null],\"$Le\",false]],\"m\":\"$undefined\",\"G\":[\"$f\",[\"$L10\"]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"GG2BNxemV0hcg8Nj315Fn\"}\n11:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"OutletBoundary\"]\n12:\"$Sreact.suspense\"\n14:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"ViewportBoundary\"]\n16:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"MetadataBoundary\"]\n8:[\"$\",\"h2\",null,{\"id\":\"how-title\",\"children\":\"Three steps. One better image.\"}]\n9:[\"$\",\"div\",null,{\"className\":\"steps-grid\",\"children\":[[\"$\",\"article\",\"01\",{\"className\":\"step-card\",\"children\":[[\"$\",\"span\",null,{\"className\":\"step-number\",\"children\":\"01\"}],[\"$\",\"h3\",null,{\"children\":\"Bring your image\"}],[\"$\",\"p\",null,{\"children\":\"Drop in a photo, scan, or graphic that could use a little more clarity.\"}]]}],[\"$\",\"article\",\"02\",{\"className\":\"step-card\",\"children\":[[\"$\",\"span\",null,{\"className\":\"step-number\",\"children\":\"02\"}],[\"$\",\"h3\",null,{\"children\":\"Let AI restore detail\"}],[\"$\",\"p\",null,{\"children\":\"Real-ESRGAN restores visual detail and enlarges your image with AI.\"}]]}],[\"$\",\"article\",\"03\",{\"className\":\"step-card\",\"children\":[[\"$\",\"span\",null,{\"className\":\"step-number\",\"children\":\"03\"}],[\"$\",\"h3\",null,{\"children\":\"Keep the full-size result\"}],[\"$\",\"p\",null,{\"children\":\"Compare both versions, zoom into the details, then download your image.\"}]]}]]}]\na:[\"$\",\"footer\",null,{\"className\":\"site-footer\",\"id\":\"about\",\"children\":[[\"$\",\"a\",null,{\"className\":\"brand-lockup\",\"href\":\"#top\",\"aria-label\":\"Sharpify AI home\",\"children\":[[\"$\",\"span\",null,{\"className\":\"brand-mark\",\"children\":[\"$\",\"$L6\",null,{\"ref\":\"$undefined\",\"icon\":\"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:1:props:children:2:props:children:0:props:icon\",\"className\":\"$undefined\",\"size\":16}]}],[\"$\",\"span\",null,{\"children\":[\"sharpify\",[\"$\",\"span\",null,{\"className\":\"brand-ai\",\"children\":\".ai\"}]]}]]}],[\"$\",\"p\",null,{\"children\":\"Powered by open-source AI super resolution.\"}],[\"$\",\"a\",null,{\"href\":\"#studio\",\"children\":[\"Back to the studio \",[\"$\",\"$L6\",null,{\"ref\":\"$undefined\",\"icon\":\"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:0:props:children:3:props:children:1:props:icon\",\"className\":\"$undefined\",\"size\":14}]]}]]}]\nb:[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0f8bek7psp5me.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nc:[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/37mvkrz0kpeh3.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nd:[\"$\",\"$L11\",null,{\"children\":[\"$\",\"$12\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@13\"}]}]\ne:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L14\",null,{\"children\":\"$L15\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L16\",null,{\"children\":[\"$\",\"$12\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L17\"}]}]}],null]}]\n10:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n15:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n18:I[27201,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"IconMark\"]\n13:null\n17:[[\"$\",\"title\",\"0\",{\"children\":\"Sharpify AI — Image enhancement, with more detail\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2vob68tjqpejf.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L18\",\"3\",{}]]\n"])</script></body></html>
|
|
|
|
| 1 |
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3mnriig4puhpm.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/12aruqaur5huj.js"/><script src="/_next/static/chunks/13yxs8tvcajse.js" async=""></script><script src="/_next/static/chunks/3g4px251sg85e.js" async=""></script><script src="/_next/static/chunks/turbopack-1rdgb0w8nih9e.js" async=""></script><script src="/_next/static/chunks/3wnd0kwwbm1vl.js" async=""></script><script src="/_next/static/chunks/0o7jtkzzo_70g.js" async=""></script><script src="/_next/static/chunks/0f8bek7psp5me.js" async=""></script><script src="/_next/static/chunks/2t1j0__40kfnp.js" async=""></script><title>Sharpify AI — Image enhancement, with more detail</title><meta name="description" content="Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."/><link rel="icon" href="/favicon.ico?favicon.2vob68tjqpejf.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><main id="top"><header class="site-header"><a class="brand-lockup" href="#top" aria-label="Sharpify AI home"><span class="brand-mark"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg></span><span>sharpify<span class="brand-ai">.ai</span></span></a><nav class="main-nav" aria-label="Main navigation"><a href="#studio">Enhance</a><a href="#how-it-works">How it works</a><a href="#about">About</a></nav><div class="header-actions"><div class="header-auth-wrap"><button class="header-cta header-auth-button" type="button" disabled=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-log-in" aria-hidden="true"><path d="m10 17 5-5-5-5"></path><path d="M15 12H3"></path><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path></svg><span>Checking sign-in…</span></button></div><a class="header-cta" href="#studio">Open studio <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></a></div></header><section class="hero-shell" aria-labelledby="hero-title"><div class="hero-copy"><div class="eyebrow"><span class="status-dot"></span> AI IMAGE STUDIO</div><h1 id="hero-title">A clearer version<br/>of <span>your favorite moments.</span></h1><p class="hero-description">Bring soft, small, or slightly tired images back into focus with thoughtful AI upscaling.</p><a class="hero-link" href="#studio">Open the enhancer <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a></div><div class="hero-art" aria-hidden="true"><div class="hero-art-glow"></div><div class="hero-photo photo-back"><div class="sun"></div><div class="ridge ridge-back"></div><div class="ridge ridge-front"></div><div class="field-lines"></div></div><div class="hero-photo-photo-label"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg> RESTORED IN DETAIL</div><div class="hero-art-stamp"><span>SHARPIFY</span><strong>AI</strong></div></div></section><section class="studio-section" id="studio" aria-labelledby="studio-title"><div class="section-heading"><div><p class="section-kicker">THE WORKSPACE</p><h2 id="studio-title">Make it feel new again.</h2></div><p class="section-aside">Uploaded images are used only for enhancement and are not permanently stored.</p></div><div class="enhancer-shell"><div class="studio-mode-toggle" role="group" aria-label="Enhancement mode"><button aria-pressed="true" class="is-selected" type="button">Single image</button><button aria-pressed="false" class="" type="button">Batch images</button></div><div><div class="studio-layout"><input aria-label="Choose an image to enhance" class="visually-hidden-input" accept="image/jpeg,image/png,image/webp,.jpg,.jpeg,.png,.webp" type="file"/><section class="image-workspace" aria-label="Image workspace"><div class="workspace-toolbar"><div class="workspace-status"><span class="status-dot status-dot-muted"></span>YOUR CANVAS</div><div class="workspace-actions"><span class="local-badge"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path></svg> <!-- -->HF ZERO-GPU</span></div></div><div class="image-stage"><div class="upload-dropzone"><div class="upload-icon-wrap"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image-plus" aria-hidden="true"><path d="M16 5h6"></path><path d="M19 2v6"></path><path d="M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5"></path><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path><circle cx="9" cy="9" r="2"></circle></svg></div><p class="upload-kicker">YOUR NEXT GREAT IMAGE STARTS HERE</p><h3>Enhance your image with AI</h3><p class="upload-description">Upload a blurry or low-resolution image and let AI restore the details.</p><button class="button button-dark upload-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-folder-up" aria-hidden="true"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path><path d="M12 10v6"></path><path d="m9 13 3-3 3 3"></path></svg> Choose an image</button><div class="upload-file-types" aria-label="Supported formats and file size"><span>JPG</span><span>PNG</span><span>WEBP</span><i></i> <span>Up to 20 MB</span></div><div class="upload-privacy"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg> Used only for enhancement, never permanently stored.</div><div class="drop-hint"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-image" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><circle cx="10" cy="12" r="2"></circle><path d="m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22"></path></svg> Drop a file anywhere in this panel</div></div></div><p class="paste-tip"><span>QUICK TIP</span> You can also paste an image from your clipboard with <kbd>Ctrl</kbd> <b>+</b> <kbd>V</kbd>.</p></section><aside class="settings-panel" aria-label="Enhancement settings"><div class="settings-heading"><div><p class="section-kicker">MAKE IT YOURS</p><h3>Enhancement settings</h3></div><span class="settings-step">01 <span>/ 02</span></span></div><fieldset class="settings-field" disabled=""><legend>Upscale size</legend><p class="field-caption">Give your image more room to breathe.</p><div class="scale-options" role="group" aria-label="Upscale factor"><button aria-pressed="false" class="scale-option" type="button"><span class="scale-option-top">2<!-- -->×</span><span class="scale-option-bottom">Balanced</span></button><button aria-pressed="true" class="scale-option is-selected" type="button"><span class="scale-option-top">4<!-- -->×</span><span class="scale-option-bottom">Maximum detail</span><span class="selected-mark"><svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span></button></div></fieldset><fieldset class="settings-field format-field" disabled=""><legend>Save format</legend><p class="field-caption">Choose how your result is delivered.</p><div class="format-options" role="group" aria-label="Output image format"><button aria-pressed="true" class="format-option is-selected" type="button"><span class="format-label">PNG</span><span class="format-detail">Lossless</span></button><button aria-pressed="false" class="format-option" type="button"><span class="format-label">JPG</span><span class="format-detail">Smaller file</span></button><button aria-pressed="false" class="format-option" type="button"><span class="format-label">WEBP</span><span class="format-detail">Modern</span></button></div></fieldset><div class="future-setting" aria-label="Face restoration will be available later"><div class="future-setting-icon"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wand-sparkles lucide-wand-2" aria-hidden="true"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72"></path><path d="m14 7 3 3"></path><path d="M5 6v4"></path><path d="M19 14v4"></path><path d="M10 2v2"></path><path d="M7 8H3"></path><path d="M21 16h-4"></path><path d="M11 3H9"></path></svg></div><div class="future-setting-copy"><strong>Face restoration</strong><span>Coming in a future model</span></div><span class="coming-soon">SOON</span></div><button class="button button-dark enhance-button" type="button" disabled=""><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wand-sparkles lucide-wand-2" aria-hidden="true"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72"></path><path d="m14 7 3 3"></path><path d="M5 6v4"></path><path d="M19 14v4"></path><path d="M10 2v2"></path><path d="M7 8H3"></path><path d="M21 16h-4"></path><path d="M11 3H9"></path></svg>Sign in to enhance<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right button-tail" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></button><p class="settings-footnote"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-question-mark lucide-help-circle lucide-circle-help" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path></svg> <!-- -->Processing uses your Hugging Face ZeroGPU quota.</p></aside></div></div><div hidden=""><div class="studio-layout batch-layout"><input aria-label="Choose images for batch enhancement" class="visually-hidden-input" accept="image/jpeg,image/png,image/webp,.jpg,.jpeg,.png,.webp" multiple="" type="file"/><section class="image-workspace" aria-label="Batch image workspace"><div class="workspace-toolbar"><div class="workspace-status"><span class="status-dot status-dot-muted"></span>BATCH QUEUE</div><div class="workspace-actions"><span class="local-badge"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path></svg> UP TO <!-- -->10<!-- --> IMAGES</span><button class="text-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg> Add images</button></div></div><div class="image-stage batch-image-stage"><div class="batch-dropzone"><div class="upload-icon-wrap"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-image" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><circle cx="10" cy="12" r="2"></circle><path d="m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22"></path></svg></div><p class="upload-kicker">PROCESS A SMALL SET TOGETHER</p><h3>Add images to your batch</h3><p class="upload-description">Choose up to <!-- -->10<!-- --> JPG, PNG, or WEBP images. Each image is enhanced in sequence.</p><button class="button button-dark upload-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-upload" aria-hidden="true"><path d="M12 3v12"></path><path d="m17 8-5-5-5 5"></path><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path></svg> Choose images</button><div class="upload-file-types"><span>JPG</span><span>PNG</span><span>WEBP</span><i></i> <span>20 MB each</span></div><div class="upload-privacy"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg> Images stay in this session and are not permanently stored.</div></div></div></section><aside class="settings-panel" aria-label="Batch enhancement settings"><div class="settings-heading"><div><p class="section-kicker">ONE SET OF SETTINGS</p><h3>Batch settings</h3></div><span class="settings-step">02 <span>/ 02</span></span></div><fieldset class="settings-field"><legend>Upscale size</legend><p class="field-caption">Applied to every image in the next run.</p><div class="scale-options" role="group" aria-label="Batch upscale factor"><button aria-pressed="false" class="scale-option" type="button"><span class="scale-option-top">2<!-- -->×</span><span class="scale-option-bottom">Balanced</span></button><button aria-pressed="true" class="scale-option is-selected" type="button"><span class="scale-option-top">4<!-- -->×</span><span class="scale-option-bottom">Maximum detail</span><span class="selected-mark"><svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span></button></div></fieldset><fieldset class="settings-field format-field"><legend>Save format</legend><p class="field-caption">Choose one output format for this run.</p><div class="format-options" role="group" aria-label="Batch output image format"><button aria-pressed="true" class="format-option is-selected" type="button"><span class="format-label">PNG</span><span class="format-detail">Lossless</span></button><button aria-pressed="false" class="format-option" type="button"><span class="format-label">JPG</span><span class="format-detail">Smaller file</span></button><button aria-pressed="false" class="format-option" type="button"><span class="format-label">WEBP</span><span class="format-detail">Modern</span></button></div></fieldset><div class="batch-settings-summary"><strong>0<!-- --> / <!-- -->10<!-- --> images</strong><span>0<!-- --> enhanced</span></div><p class="batch-output-budget">Batch output budget: <!-- -->0<!-- -->M / <!-- -->64<!-- -->M pixels</p><button class="button button-dark enhance-button" type="button" disabled=""><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wand-sparkles lucide-wand-2" aria-hidden="true"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72"></path><path d="m14 7 3 3"></path><path d="M5 6v4"></path><path d="M19 14v4"></path><path d="M10 2v2"></path><path d="M7 8H3"></path><path d="M21 16h-4"></path><path d="M11 3H9"></path></svg>Sign in to enhance</button><p class="settings-footnote"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-question-mark lucide-help-circle lucide-circle-help" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path></svg> Images run sequentially. A failed image won’t stop the rest.</p><p class="batch-memory-note">For stability, a batch is limited to 64 million total output pixels. Remove images or lower the upscale to stay within the limit. Completed files stay in this browser tab until removed or cleared.</p></aside></div></div></div></section><section class="how-section" id="how-it-works" aria-labelledby="how-title"><div class="how-heading"><p class="section-kicker">SIMPLE BY DESIGN</p><h2 id="how-title">Three steps. One better image.</h2></div><div class="steps-grid"><article class="step-card"><span class="step-number">01</span><h3>Bring your image</h3><p>Drop in a photo, scan, or graphic that could use a little more clarity.</p></article><article class="step-card"><span class="step-number">02</span><h3>Let AI restore detail</h3><p>Real-ESRGAN restores visual detail and enlarges your image with AI.</p></article><article class="step-card"><span class="step-number">03</span><h3>Keep the full-size result</h3><p>Compare both versions, zoom into the details, then download your image.</p></article></div></section><footer class="site-footer" id="about"><a class="brand-lockup" href="#top" aria-label="Sharpify AI home"><span class="brand-mark"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg></span><span>sharpify<span class="brand-ai">.ai</span></span></a><p>Powered by open-source AI super resolution.</p><a href="#studio">Back to the studio <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a></footer></main><!--$--><!--/$--><script src="/_next/static/chunks/12aruqaur5huj.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[23384,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"HfOAuthProvider\"]\n3:I[39756,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"default\"]\n5:I[26564,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\",\"/_next/static/chunks/0f8bek7psp5me.js\",\"/_next/static/chunks/2t1j0__40kfnp.js\"],\"AppHeader\"]\n6:I[5014,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\",\"/_next/static/chunks/0f8bek7psp5me.js\",\"/_next/static/chunks/2t1j0__40kfnp.js\"],\"default\"]\n7:I[21342,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\",\"/_next/static/chunks/0f8bek7psp5me.js\",\"/_next/static/chunks/2t1j0__40kfnp.js\"],\"EnhancerStudio\"]\nf:I[68027,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/3mnriig4puhpm.css\",\"style\"]\n0:{\"P\":null,\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0o7jtkzzo_70g.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"main\",null,{\"id\":\"top\",\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"section\",null,{\"className\":\"hero-shell\",\"aria-labelledby\":\"hero-title\",\"children\":[[\"$\",\"div\",null,{\"className\":\"hero-copy\",\"children\":[[\"$\",\"div\",null,{\"className\":\"eyebrow\",\"children\":[[\"$\",\"span\",null,{\"className\":\"status-dot\"}],\" AI IMAGE STUDIO\"]}],[\"$\",\"h1\",null,{\"id\":\"hero-title\",\"children\":[\"A clearer version\",[\"$\",\"br\",null,{}],\"of \",[\"$\",\"span\",null,{\"children\":\"your favorite moments.\"}]]}],[\"$\",\"p\",null,{\"className\":\"hero-description\",\"children\":\"Bring soft, small, or slightly tired images back into focus with thoughtful AI upscaling.\"}],[\"$\",\"a\",null,{\"className\":\"hero-link\",\"href\":\"#studio\",\"children\":[\"Open the enhancer \",[\"$\",\"$L6\",null,{\"ref\":\"$undefined\",\"icon\":{\"name\":\"arrow-right\",\"size\":24,\"node\":[[\"path\",{\"d\":\"M5 12h14\",\"key\":\"1ays0h\"}],[\"path\",{\"d\":\"m12 5 7 7-7 7\",\"key\":\"xquz4c\"}]]},\"className\":\"$undefined\",\"size\":16}]]}]]}],[\"$\",\"div\",null,{\"className\":\"hero-art\",\"aria-hidden\":\"true\",\"children\":[[\"$\",\"div\",null,{\"className\":\"hero-art-glow\"}],[\"$\",\"div\",null,{\"className\":\"hero-photo photo-back\",\"children\":[[\"$\",\"div\",null,{\"className\":\"sun\"}],[\"$\",\"div\",null,{\"className\":\"ridge ridge-back\"}],[\"$\",\"div\",null,{\"className\":\"ridge ridge-front\"}],[\"$\",\"div\",null,{\"className\":\"field-lines\"}]]}],[\"$\",\"div\",null,{\"className\":\"hero-photo-photo-label\",\"children\":[[\"$\",\"$L6\",null,{\"ref\":\"$undefined\",\"icon\":{\"name\":\"sparkles\",\"size\":24,\"node\":[[\"path\",{\"d\":\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z\",\"key\":\"1s2grr\"}],[\"path\",{\"d\":\"M20 2v4\",\"key\":\"1rf3ol\"}],[\"path\",{\"d\":\"M22 4h-4\",\"key\":\"gwowj6\"}],[\"circle\",{\"cx\":\"4\",\"cy\":\"20\",\"r\":\"2\",\"key\":\"6kqj1y\"}]],\"aliases\":[\"stars\"]},\"className\":\"$undefined\",\"size\":14}],\" RESTORED IN DETAIL\"]}],[\"$\",\"div\",null,{\"className\":\"hero-art-stamp\",\"children\":[[\"$\",\"span\",null,{\"children\":\"SHARPIFY\"}],[\"$\",\"strong\",null,{\"children\":\"AI\"}]]}]]}]]}],[\"$\",\"section\",null,{\"className\":\"studio-section\",\"id\":\"studio\",\"aria-labelledby\":\"studio-title\",\"children\":[[\"$\",\"div\",null,{\"className\":\"section-heading\",\"children\":[[\"$\",\"div\",null,{\"children\":[[\"$\",\"p\",null,{\"className\":\"section-kicker\",\"children\":\"THE WORKSPACE\"}],[\"$\",\"h2\",null,{\"id\":\"studio-title\",\"children\":\"Make it feel new again.\"}]]}],[\"$\",\"p\",null,{\"className\":\"section-aside\",\"children\":\"Uploaded images are used only for enhancement and are not permanently stored.\"}]]}],[\"$\",\"$L7\",null,{}]]}],[\"$\",\"section\",null,{\"className\":\"how-section\",\"id\":\"how-it-works\",\"aria-labelledby\":\"how-title\",\"children\":[[\"$\",\"div\",null,{\"className\":\"how-heading\",\"children\":[[\"$\",\"p\",null,{\"className\":\"section-kicker\",\"children\":\"SIMPLE BY DESIGN\"}],\"$L8\"]}],\"$L9\"]}],\"$La\"]}],[\"$Lb\",\"$Lc\"],\"$Ld\"]}],{},null,false,null]},null,false,null],\"$Le\",false]],\"m\":\"$undefined\",\"G\":[\"$f\",[\"$L10\"]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"hEX_6hBW_9USR_CiGdsoP\"}\n11:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"OutletBoundary\"]\n12:\"$Sreact.suspense\"\n14:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"ViewportBoundary\"]\n16:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"MetadataBoundary\"]\n8:[\"$\",\"h2\",null,{\"id\":\"how-title\",\"children\":\"Three steps. One better image.\"}]\n9:[\"$\",\"div\",null,{\"className\":\"steps-grid\",\"children\":[[\"$\",\"article\",\"01\",{\"className\":\"step-card\",\"children\":[[\"$\",\"span\",null,{\"className\":\"step-number\",\"children\":\"01\"}],[\"$\",\"h3\",null,{\"children\":\"Bring your image\"}],[\"$\",\"p\",null,{\"children\":\"Drop in a photo, scan, or graphic that could use a little more clarity.\"}]]}],[\"$\",\"article\",\"02\",{\"className\":\"step-card\",\"children\":[[\"$\",\"span\",null,{\"className\":\"step-number\",\"children\":\"02\"}],[\"$\",\"h3\",null,{\"children\":\"Let AI restore detail\"}],[\"$\",\"p\",null,{\"children\":\"Real-ESRGAN restores visual detail and enlarges your image with AI.\"}]]}],[\"$\",\"article\",\"03\",{\"className\":\"step-card\",\"children\":[[\"$\",\"span\",null,{\"className\":\"step-number\",\"children\":\"03\"}],[\"$\",\"h3\",null,{\"children\":\"Keep the full-size result\"}],[\"$\",\"p\",null,{\"children\":\"Compare both versions, zoom into the details, then download your image.\"}]]}]]}]\na:[\"$\",\"footer\",null,{\"className\":\"site-footer\",\"id\":\"about\",\"children\":[[\"$\",\"a\",null,{\"className\":\"brand-lockup\",\"href\":\"#top\",\"aria-label\":\"Sharpify AI home\",\"children\":[[\"$\",\"span\",null,{\"className\":\"brand-mark\",\"children\":[\"$\",\"$L6\",null,{\"ref\":\"$undefined\",\"icon\":\"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:1:props:children:2:props:children:0:props:icon\",\"className\":\"$undefined\",\"size\":16}]}],[\"$\",\"span\",null,{\"children\":[\"sharpify\",[\"$\",\"span\",null,{\"className\":\"brand-ai\",\"children\":\".ai\"}]]}]]}],[\"$\",\"p\",null,{\"children\":\"Powered by open-source AI super resolution.\"}],[\"$\",\"a\",null,{\"href\":\"#studio\",\"children\":[\"Back to the studio \",[\"$\",\"$L6\",null,{\"ref\":\"$undefined\",\"icon\":\"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:0:props:children:3:props:children:1:props:icon\",\"className\":\"$undefined\",\"size\":14}]]}]]}]\nb:[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0f8bek7psp5me.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nc:[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/2t1j0__40kfnp.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nd:[\"$\",\"$L11\",null,{\"children\":[\"$\",\"$12\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@13\"}]}]\ne:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L14\",null,{\"children\":\"$L15\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L16\",null,{\"children\":[\"$\",\"$12\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L17\"}]}]}],null]}]\n10:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n15:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n18:I[27201,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/0o7jtkzzo_70g.js\"],\"IconMark\"]\n13:null\n17:[[\"$\",\"title\",\"0\",{\"children\":\"Sharpify AI — Image enhancement, with more detail\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2vob68tjqpejf.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L18\",\"3\",{}]]\n"])</script></body></html>
|
index.txt
CHANGED
|
@@ -1,26 +1,26 @@
|
|
| 1 |
1:"$Sreact.fragment"
|
| 2 |
-
2:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 3 |
-
3:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 4 |
-
4:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 5 |
-
5:I[26564,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 6 |
-
6:I[5014,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 7 |
-
7:I[21342,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 8 |
-
f:I[68027,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 9 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 10 |
-
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/
|
| 11 |
-
11:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 12 |
12:"$Sreact.suspense"
|
| 13 |
-
14:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 14 |
-
16:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 15 |
8:["$","h2",null,{"id":"how-title","children":"Three steps. One better image."}]
|
| 16 |
9:["$","div",null,{"className":"steps-grid","children":[["$","article","01",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"01"}],["$","h3",null,{"children":"Bring your image"}],["$","p",null,{"children":"Drop in a photo, scan, or graphic that could use a little more clarity."}]]}],["$","article","02",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"02"}],["$","h3",null,{"children":"Let AI restore detail"}],["$","p",null,{"children":"Real-ESRGAN restores visual detail and enlarges your image with AI."}]]}],["$","article","03",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"03"}],["$","h3",null,{"children":"Keep the full-size result"}],["$","p",null,{"children":"Compare both versions, zoom into the details, then download your image."}]]}]]}]
|
| 17 |
a:["$","footer",null,{"className":"site-footer","id":"about","children":[["$","a",null,{"className":"brand-lockup","href":"#top","aria-label":"Sharpify AI home","children":[["$","span",null,{"className":"brand-mark","children":["$","$L6",null,{"ref":"$undefined","icon":"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:1:props:children:2:props:children:0:props:icon","className":"$undefined","size":16}]}],["$","span",null,{"children":["sharpify",["$","span",null,{"className":"brand-ai","children":".ai"}]]}]]}],["$","p",null,{"children":"Powered by open-source AI super resolution."}],["$","a",null,{"href":"#studio","children":["Back to the studio ",["$","$L6",null,{"ref":"$undefined","icon":"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:0:props:children:3:props:children:1:props:icon","className":"$undefined","size":14}]]}]]}]
|
| 18 |
b:["$","script","script-0",{"src":"/_next/static/chunks/0f8bek7psp5me.js","async":true,"nonce":"$undefined"}]
|
| 19 |
-
c:["$","script","script-1",{"src":"/_next/static/chunks/
|
| 20 |
d:["$","$L11",null,{"children":["$","$12",null,{"name":"Next.MetadataOutlet","children":"$@13"}]}]
|
| 21 |
e:["$","$1","h",{"children":[null,["$","$L14",null,{"children":"$L15"}],["$","div",null,{"hidden":true,"children":["$","$L16",null,{"children":["$","$12",null,{"name":"Next.Metadata","children":"$L17"}]}]}],null]}]
|
| 22 |
10:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
|
| 23 |
15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
| 24 |
-
18:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/
|
| 25 |
13:null
|
| 26 |
17:[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L18","3",{}]]
|
|
|
|
| 1 |
1:"$Sreact.fragment"
|
| 2 |
+
2:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"HfOAuthProvider"]
|
| 3 |
+
3:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default"]
|
| 4 |
+
4:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default"]
|
| 5 |
+
5:I[26564,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/2t1j0__40kfnp.js"],"AppHeader"]
|
| 6 |
+
6:I[5014,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/2t1j0__40kfnp.js"],"default"]
|
| 7 |
+
7:I[21342,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/2t1j0__40kfnp.js"],"EnhancerStudio"]
|
| 8 |
+
f:I[68027,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"default",1]
|
| 9 |
:HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
|
| 10 |
+
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0o7jtkzzo_70g.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","main",null,{"id":"top","children":[["$","$L5",null,{}],["$","section",null,{"className":"hero-shell","aria-labelledby":"hero-title","children":[["$","div",null,{"className":"hero-copy","children":[["$","div",null,{"className":"eyebrow","children":[["$","span",null,{"className":"status-dot"}]," AI IMAGE STUDIO"]}],["$","h1",null,{"id":"hero-title","children":["A clearer version",["$","br",null,{}],"of ",["$","span",null,{"children":"your favorite moments."}]]}],["$","p",null,{"className":"hero-description","children":"Bring soft, small, or slightly tired images back into focus with thoughtful AI upscaling."}],["$","a",null,{"className":"hero-link","href":"#studio","children":["Open the enhancer ",["$","$L6",null,{"ref":"$undefined","icon":{"name":"arrow-right","size":24,"node":[["path",{"d":"M5 12h14","key":"1ays0h"}],["path",{"d":"m12 5 7 7-7 7","key":"xquz4c"}]]},"className":"$undefined","size":16}]]}]]}],["$","div",null,{"className":"hero-art","aria-hidden":"true","children":[["$","div",null,{"className":"hero-art-glow"}],["$","div",null,{"className":"hero-photo photo-back","children":[["$","div",null,{"className":"sun"}],["$","div",null,{"className":"ridge ridge-back"}],["$","div",null,{"className":"ridge ridge-front"}],["$","div",null,{"className":"field-lines"}]]}],["$","div",null,{"className":"hero-photo-photo-label","children":[["$","$L6",null,{"ref":"$undefined","icon":{"name":"sparkles","size":24,"node":[["path",{"d":"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z","key":"1s2grr"}],["path",{"d":"M20 2v4","key":"1rf3ol"}],["path",{"d":"M22 4h-4","key":"gwowj6"}],["circle",{"cx":"4","cy":"20","r":"2","key":"6kqj1y"}]],"aliases":["stars"]},"className":"$undefined","size":14}]," RESTORED IN DETAIL"]}],["$","div",null,{"className":"hero-art-stamp","children":[["$","span",null,{"children":"SHARPIFY"}],["$","strong",null,{"children":"AI"}]]}]]}]]}],["$","section",null,{"className":"studio-section","id":"studio","aria-labelledby":"studio-title","children":[["$","div",null,{"className":"section-heading","children":[["$","div",null,{"children":[["$","p",null,{"className":"section-kicker","children":"THE WORKSPACE"}],["$","h2",null,{"id":"studio-title","children":"Make it feel new again."}]]}],["$","p",null,{"className":"section-aside","children":"Uploaded images are used only for enhancement and are not permanently stored."}]]}],["$","$L7",null,{}]]}],["$","section",null,{"className":"how-section","id":"how-it-works","aria-labelledby":"how-title","children":[["$","div",null,{"className":"how-heading","children":[["$","p",null,{"className":"section-kicker","children":"SIMPLE BY DESIGN"}],"$L8"]}],"$L9"]}],"$La"]}],["$Lb","$Lc"],"$Ld"]}],{},null,false,null]},null,false,null],"$Le",false]],"m":"$undefined","G":["$f",["$L10"]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"hEX_6hBW_9USR_CiGdsoP"}
|
| 11 |
+
11:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"OutletBoundary"]
|
| 12 |
12:"$Sreact.suspense"
|
| 13 |
+
14:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"ViewportBoundary"]
|
| 14 |
+
16:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"MetadataBoundary"]
|
| 15 |
8:["$","h2",null,{"id":"how-title","children":"Three steps. One better image."}]
|
| 16 |
9:["$","div",null,{"className":"steps-grid","children":[["$","article","01",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"01"}],["$","h3",null,{"children":"Bring your image"}],["$","p",null,{"children":"Drop in a photo, scan, or graphic that could use a little more clarity."}]]}],["$","article","02",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"02"}],["$","h3",null,{"children":"Let AI restore detail"}],["$","p",null,{"children":"Real-ESRGAN restores visual detail and enlarges your image with AI."}]]}],["$","article","03",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"03"}],["$","h3",null,{"children":"Keep the full-size result"}],["$","p",null,{"children":"Compare both versions, zoom into the details, then download your image."}]]}]]}]
|
| 17 |
a:["$","footer",null,{"className":"site-footer","id":"about","children":[["$","a",null,{"className":"brand-lockup","href":"#top","aria-label":"Sharpify AI home","children":[["$","span",null,{"className":"brand-mark","children":["$","$L6",null,{"ref":"$undefined","icon":"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:1:props:children:2:props:children:0:props:icon","className":"$undefined","size":16}]}],["$","span",null,{"children":["sharpify",["$","span",null,{"className":"brand-ai","children":".ai"}]]}]]}],["$","p",null,{"children":"Powered by open-source AI super resolution."}],["$","a",null,{"href":"#studio","children":["Back to the studio ",["$","$L6",null,{"ref":"$undefined","icon":"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:0:props:children:3:props:children:1:props:icon","className":"$undefined","size":14}]]}]]}]
|
| 18 |
b:["$","script","script-0",{"src":"/_next/static/chunks/0f8bek7psp5me.js","async":true,"nonce":"$undefined"}]
|
| 19 |
+
c:["$","script","script-1",{"src":"/_next/static/chunks/2t1j0__40kfnp.js","async":true,"nonce":"$undefined"}]
|
| 20 |
d:["$","$L11",null,{"children":["$","$12",null,{"name":"Next.MetadataOutlet","children":"$@13"}]}]
|
| 21 |
e:["$","$1","h",{"children":[null,["$","$L14",null,{"children":"$L15"}],["$","div",null,{"hidden":true,"children":["$","$L16",null,{"children":["$","$12",null,{"name":"Next.Metadata","children":"$L17"}]}]}],null]}]
|
| 22 |
10:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
|
| 23 |
15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
| 24 |
+
18:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/0o7jtkzzo_70g.js"],"IconMark"]
|
| 25 |
13:null
|
| 26 |
17:[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L18","3",{}]]
|