try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6202b501-4698-4f7e-be5b-ea239a5ee93f",e._sentryDebugIdIdentifier="sentry-dbid-6202b501-4698-4f7e-be5b-ea239a5ee93f")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4712],{88677:function(){},62808:function(){},46601:function(){},89214:function(){},15357:function(e,t,r){"use strict";r.d(t,{QY:function(){return a},VP:function(){return i},_j:function(){return n}});let n=[{title:"HOME",path:"/home"},{title:"ABOUT",path:"/about"},{title:"PROJECTS",path:"/project"},{title:"BLOG",path:"/post"},{title:"APP",path:"/portal"}];var s,a,l=r(60368);(s=a||(a={})).DASHBOARD="dashboard",s.ACTIVITY="activity",s.ANALYTICS="analytics",s.WALLET="wallet",s.PROJECTS="projects",s.CALENDAR="calendar",s.CHAT="chat",s.SPACE="space",s.SHOP="shop";let i=[{key:"dashboard",Icon:l.A,path:"overview"},{key:"activity",Icon:l.cS,path:"activity"},{key:"analytics",Icon:l.kJ,path:"analytics"},{key:"wallet",Icon:l.w5,path:"wallet"},{key:"projects",Icon:l.mO,path:"projects"},{key:"calendar",Icon:l.f,path:"calendar"},{key:"chat",Icon:l.en,path:"chat"},{key:"space",Icon:l.gt,path:"space"},{key:"shop",Icon:l.Nh,path:"shop"}]},46937:function(e,t,r){"use strict";r.d(t,{Toast:function(){return l}});var n=r(57437),s=r(9238),a=r(88840);let l=()=>{let e={success:"bg-green-600",error:"bg-red-600",info:"bg-gray-600",warning:"bg-orange-400",default:"bg-black"};return(0,n.jsx)(s.Ix,{position:"bottom-right",toastClassName:t=>{let{type:r}=t;return(0,a.cn)(e[r||"default"],"relative flex p-3 my-3 mx-3 min-h-10 rounded-md justify-between overflow-hidden cursor-pointer bg-opacity-30 backdrop-filter backdrop-blur-md border border-white/10 z-90")},bodyClassName:()=>"text-sm font-white font-med block p-3 flex",closeButton:i})},i=e=>{let{closeToast:t}=e;return(0,n.jsx)("div",{className:"m-1 h-3 w-3 fill-white",children:(0,n.jsx)("svg",{onClick:t,"aria-hidden":"true",viewBox:"0 0 14 16",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})})})}},7406:function(e,t,r){"use strict";r.d(t,{WagmiProvider:function(){return x}});var n=r(57437),s=r(49833),a=r(26034),l=r(67194),i=r(39647),o=r(42371),c=r(78651),M=r(65306),d=r(72350);let u={name:M.y.appName,description:M.y.tagline,url:M.y.url,icons:["".concat(M.y.url,"/app/icon/icon-64x64.png")]},m=new o.K({networks:[i.RJ0,i.Zjg,i.eGR,i.$qY],projectId:d.O.NEXT_PUBLIC_WEB3_PROJECT_ID,ssr:!0,storage:(0,l.o6)({storage:s.Dr})});(0,c.cz)({adapters:[m],networks:[i.RJ0,i.Zjg,i.eGR,i.$qY],defaultNetwork:i.eGR,projectId:d.O.NEXT_PUBLIC_WEB3_PROJECT_ID,metadata:u,debug:!1,termsConditionsUrl:"/help/terms-of-service",privacyPolicyUrl:"/help/privacy-policy",features:{analytics:!0,email:!0,socials:["google","x","discord","github","apple","facebook"],allWallets:!0}});let x=e=>{let{children:t,cookies:r}=e,l=(0,s.jx)(m.wagmiConfig,r);return(0,n.jsx)(a.F,{config:m.wagmiConfig,initialState:l,children:t})}},49684:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(57437),s=r(1126);let a=e=>e.stroke?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("svg",{viewBox:"0 0 1024 1024",style:{fill:"none"},className:(0,s.cn)("h-full w-full",e.className),...e.events,children:[(0,n.jsx)("path",{className:(0,s.cn)(e.stroke.strokeClassName),d:"M512.42,189.92,795.28,353.23V679.86L512.42,843.17,229.55,679.86V353.23L512.42,189.92m0-151.83L98.06,277.31V755.77L512.42,995,926.77,755.77V277.31L512.42,38.09Z"}),(0,n.jsx)("path",{className:(0,s.cn)(e.stroke.strokeClassName),d:"M511.89,1014,80.9,765.17V267.51l431-248.83,431,248.83V765.17ZM113.81,746.17,511.89,976,910,746.17V286.51L511.89,56.68,113.81,286.51Z"}),(0,n.jsx)("polygon",{className:(0,s.cn)(e.stroke.strokeClassName),points:"98.06 277.31 229.55 353.23 229.55 679.86 98.06 755.77 98.06 277.31"}),(0,n.jsx)("polygon",{className:(0,s.cn)(e.stroke.strokeClassName),points:"795.28 353.23 926.77 277.31 926.77 755.77 512.42 995 512.42 843.17 796.53 681.14 795.28 353.23"}),(0,n.jsx)("rect",{className:(0,s.cn)(e.stroke.solidClassName),opacity:.1,x:"507.77",y:"516.15",width:"8.23",height:"470.99"}),(0,n.jsx)("rect",{className:(0,s.cn)(e.stroke.solidClassName),opacity:.1,x:"304",y:"163.18",width:"8.23",height:"471.02",transform:"translate(-191.22 466.18) rotate(-60)"}),(0,n.jsx)("rect",{className:(0,s.cn)(e.stroke.solidClassName),opacity:.1,x:"480.7",y:"394.43",width:"470.43",height:"8.23",transform:"translate(-103.36 411.36) rotate(-30)"})]})}):(0,n.jsxs)("svg",{viewBox:"0 0 1024 1024",className:(0,s.cn)("h-full w-full",e.className),...e.events,children:[(0,n.jsx)("path",{opacity:.1,d:"M512.42,189.92,795.28,353.23V679.86L512.42,843.17,229.55,679.86V353.23L512.42,189.92m0-151.83L98.06,277.31V755.77L512.42,995,926.77,755.77V277.31L512.42,38.09Z"}),(0,n.jsx)("path",{d:"M511.89,1014,80.9,765.17V267.51l431-248.83,431,248.83V765.17ZM113.81,746.17,511.89,976,910,746.17V286.51L511.89,56.68,113.81,286.51Z"}),(0,n.jsx)("polygon",{points:"98.06 277.31 229.55 353.23 229.55 679.86 98.06 755.77 98.06 277.31"}),(0,n.jsx)("polygon",{points:"795.28 353.23 926.77 277.31 926.77 755.77 512.42 995 512.42 843.17 796.53 681.14 795.28 353.23"}),(0,n.jsx)("rect",{x:"507.77",y:"516.15",width:"8.23",height:"470.99"}),(0,n.jsx)("rect",{x:"304",y:"163.18",width:"8.23",height:"471.02",transform:"translate(-191.22 466.18) rotate(-60)"}),(0,n.jsx)("rect",{x:"480.7",y:"394.43",width:"470.43",height:"8.23",transform:"translate(-103.36 411.36) rotate(-30)"})]})},30907:function(e,t,r){"use strict";r.d(t,{Controllers:function(){return j}});var n=r(57437),s=r(2265),a=r(85638),l=r(60491);let i=()=>{let e=(0,a.mr)(e=>e.onAppInit),{data:t}=l.S.web.search.getSearchIndex.useQuery();return(0,s.useEffect)(()=>{console.log("\nMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXOxxOXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\nMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNKxl,....,lxKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\nMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXOo:'';lxOOxl;'':dOXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\nMMMMMMMMMMMMMMMMMMMMMMMMMMWKxl,.':dOKNNNNNNKOd:'.,lkKWMMMMMMMMMMMMMMMMMMMMMMMMMM\nMMMMMMMMMMMMMMMMMMMMMMWXOd:'';lx0XNNNNNNNNNNNNX0xl;'':dONWMMMMMMMMMMMMMMMMMMMMMM\nMMMMMMMMMMMMMMMMMMMWKkl;'':oOKNNNNNNNNNNNNNNNNNNNXKko:'';lkKWMMMMMMMMMMMMMMMMMMM\nMMMMMMMMMMMMMMMWN0d:'',lx0XNNNNNNNNNNNNNNNNNNNNNNNNNNX0xl,.'cdONWMMMMMMMMMMMMMMM\nMMMMMMMMMMMMWKkl;'':okKXNNNNNNNNNNNNNNWWWWNNNNNNNNNNNNNNXKko:'';lkKWMMMMMMMMMMMM\nMMMMMMMMMN0dc,.,cx0XNNNNNNNNNNNNNNWWWMMMMMMMWWNNNNNNNNNNNNNNX0dc,',cd0NMMMMMMMMM\nMMMMMWXko;'':okKXNNNNNNNNNNNNNNWWMMMMMMMMMMMMMMWWNNNNNNNNNNNNNNXKko:'';okXWMMMMM\nMMMMM0:..;dOXNNNNNNNNNNNNNNWWMMMMMMMMMMMMMMMMMMMMMMWWNNNNNNNNNNNNNNXOd;..:0MMMMM\nMMMMMO'..,cdOXNNNNNNNNNNWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNNNNNNNNNXOdc'..,OMMMMM\nMMMMMO'.....';okKXNNWWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNXKko;'.....,OMMMMM\nMMMMMO'.........,d.KWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWK0d;.........,OMMMMM\nMMMMMO'..........oK0.0KNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNK0.0Kd..........,OMMMMM\nMMMMMO'..........dWMWNK0.0XWMMMMMMMMMMMMMMMMMMMMMMMMWX0.0KNWMWx..........,OMMMMM\nMMMMMO'..........dWMMMMMNK0.0KNMMMMMMMMMMMMMMMMMMNK0.0KNMMMMMWx..........,OMMMMM\nMMMMMO'..........dWMMMMMMMMWNK0.0XWMMMMMMMMMMWX0.0KNWMMMMMMMMWx..........,OMMMMM\nMMMMMO'..........dWMMMMMMMMMMMMNK0.0KNMMMWNK0.0KNMMMMMMMMMMMMMx..........,OMMMMM\nMMMMMO'..........dWMMMMMMMMMMMMMMMWXK00..00KXWMMMMMMMMMMMMMMMMx..........,OMMMMM\nMMMMMO'..........dWMMMMMMMMMMMMMMMMMMMKxxKMMMMMMMMMMMMMMMMMMMMx..........,OMMMMM\nMMMMMO'..........dWMMMMMMMMMMMMMMMMMMMXxxXMMMMMMMMMMMMMMMMMMMMx..........,OMMMMM\nMMMMMO'..........dWMMMMMMMMMMMMMMMMMMMXxxXMMMMMMMMMMMMMMMMMMMMk'.........,OMMMMM\nMMMMMO'....':okKXNNNNWWMMMMMMMMMMMMMMMXxxXMMMMMMMMMMMMMMN0dc'............,OMMMMM\nMMMMMO'..:x0XNNNNNNNNNNNWWWMMMMMMMMMMMXxxXMMMMMMMMMMWKkl;................,OMMMMM\nMMMMMKc..;okKXNNNNNNNNNNNNNNWWMMMMMMMMXxxXMMMMMMWN0dc'...................cKMMMMM\nMMMMMWN0xc,.,cdOXNNNNNNNNNNNNNNWWWMMMMXxxXMMMWKkl;...................,cx0NWMMMMM\nMMMMMMMMMWXko;'':okKXNNNNNNNNNNNNNNWWMXxxKN0dc'...................;okXWMMMMMMMMM\nMMMMMMMMMMMMWN0dc,',cd0XNNNNNNNNNNNNNNKo:c;...................,cd0NWMMMMMMMMMMMM\nMMMMMMMMMMMMMMMMWKkl;'':okKXNNNNNNNNNN0:...................;lkXWMMMMMMMMMMMMMMMM\nMMMMMMMMMMMMMMMMMMMMN0d:'',lx0XNNNNNNN0:...............'cd0NWMMMMMMMMMMMMMMMMMMM\nMMMMMMMMMMMMMMMMMMMMMMMWKkl;'':okKNNNN0:............;lkKWMMMMMMMMMMMMMMMMMMMMMMM\nMMMMMMMMMMMMMMMMMMMMMMMMMMWNOd:'';lx0X0:........':dONWMMMMMMMMMMMMMMMMMMMMMMMMMM\nMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKxl,.':c,.....,lkKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\nMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXOd:'..':dOXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\nMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNOddONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\n\n.------------------------------------------------------------------------------.\n|                                                                              |\n|                       Welcome to TheIceJI Website . . .                      |\n|                                                                              |\n'------------------------------------------------------------------------------'\n")},[]),(0,s.useEffect)(()=>{t&&t.success&&e({searchDataIndex:t.data})},[t]),null};var o=r(550);let c=()=>{let[e,t]=(0,a.tN)((0,o.N)(e=>[e.isDark,e.setIsDark]));return(0,s.useEffect)(()=>{t(!0)},[t]),(0,s.useEffect)(()=>{document.documentElement.classList.toggle("dark",e)},[e]),null};var M=r(80916),d=r.n(M),u=r(1126),m=r(90140),x=r.n(m);let h=()=>{let[e,t,r]=(0,a.tN)((0,o.N)(e=>[e.cursor,e.mousePosition,e.setMousePosition])),l=(0,s.useRef)(null),i=(0,s.useRef)(null),c=e=>{let{clientX:t,clientY:r}=e;l.current&&(l.current.style.left="".concat(t,"px"),l.current.style.top="".concat(r,"px")),i.current&&(i.current.style.transform="translate3d(".concat(t,"px, ").concat(r,"px, 0px)"))},M=(0,s.useRef)(d()((e,t)=>{r({clientX:e,clientY:t})},22)).current;return(0,s.useEffect)(()=>{let e=e=>{c(e),M(e.clientX,e.clientY)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e),M.cancel()}},[M,c]),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:(0,u.cn)(x().cursor_little,e&&x()[e]),ref:l}),(0,n.jsx)("div",{ref:i,className:(0,u.cn)(x().cursor_big,e?e===a.WV.LENS?x().lens:x().active:"")})]})},f=()=>{let[e,t]=(0,a.tN)((0,o.N)(e=>[e.playBackgroundMusic,e.setPlayBackgroundMusic])),r=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(r.current){let t=r.current;e?t.play():t.pause()}},[e]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("audio",{ref:r,loop:!0,children:(0,n.jsx)("source",{src:"/layout/audio/WebSound.mp3",type:"audio/mpeg"})},"audioBG")})};var p=r(72301);let N=()=>{let e=(0,a.tN)(e=>e.onToggleModal),t=(0,p.useRouter)();return(0,s.useEffect)(()=>{let t=t=>{"k"===t.key&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),e(a.zr.SEARCH)),"i"===t.key&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),e(a.zr.APP_INFO))};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,t]),null};var g=r(76369);let v=()=>{let[e,t]=(0,a.tN)((0,o.N)(e=>[e.scrollTo,e.setScrollTo])),r=(0,g.LZ)();return(0,s.useLayoutEffect)(()=>{void 0!==e&&(null==r||r.scrollTo(e),t(void 0))},[e]),null},j=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i,{}),(0,n.jsx)(c,{}),(0,n.jsx)(h,{}),(0,n.jsx)(f,{}),(0,n.jsx)(N,{}),(0,n.jsx)(v,{})]})},68448:function(e,t,r){"use strict";r.d(t,{Modal:function(){return A}});var n=r(57437),s=r(2265),a=r(39785),l=r(53116),i=r(550),o=r(85638),c=r(63281),M=r(38895),d=r(63726),u=r(70591),m=r(49684),x=r(5999);let h=[{icon:x.tBk,href:"https://www.facebook.com/"+u.Jx.facebook},{icon:x.hJX,href:"https://github.com/"+u.Jx.github},{icon:x.V2E,href:"https://www.youtube.com/"+u.Jx.youtube},{icon:x.Zf_,href:"https://www.instagram.com/"+u.Jx.instagram},{icon:x.SRX,href:"mailto:"+u.Jx.mail},{icon:x.j2d,href:"https://discord.gg/"+u.Jx.discord}],f=()=>(0,n.jsx)("div",{className:"mt-0.5 flex items-center space-x-1 md:mt-1 md:space-x-2",children:h.map(e=>(0,n.jsx)("a",{href:e.href,className:"Anim opacity-40 hover:opacity-100",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(e.icon,{})},"nav_modalInfo-".concat(e.href)))}),p=()=>(0,n.jsxs)("p",{className:"opacity-60",children:["Celestia Network ",u.l2.Dependencies.Celestia,(0,n.jsx)("br",{}),"React ",u.l2.Dependencies.React," | NextJs ",u.l2.Dependencies.NextJs,(0,n.jsx)("br",{}),"Copyright\xa9TheIceJI.com ",(0,n.jsx)("br",{}),"All rights reserved",(0,n.jsx)("br",{}),(0,n.jsx)("a",{href:"https://nebula.theiceji.com",className:"text-2xs cursor-pointer font-light opacity-60 hover:opacity-100 md:text-base",target:"_blank",rel:"noopener noreferrer",children:"status"})]});var N=r(99485),g=r(1126);function v(e){let{brandColor:t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("svg",{viewBox:"0 0 49.802 21.792",className:"h-full w-full fill-inherit",children:(0,n.jsxs)("g",{transform:"translate(-122.08 -155.22)",children:[(0,n.jsx)("path",{d:"M649.25,360.121l.15-3.491,2.772,1.577-.1.435Z",transform:"translate(-484.356 -185.052)"}),(0,n.jsx)("path",{d:"M646.9,357.088l.175-4.088,3.141,1.787-.152.643Zm.507-3.492-.125,2.891,2.475-1.3.053-.227Z",transform:"translate(-482.197 -181.717)"}),(0,n.jsx)("path",{d:"M602.119,341.052h0a.74.74,0,0,1-.739-.74v-5.62a.738.738,0,0,1,1.071-.659l5.57,2.811a.738.738,0,0,1,0,1.318l-5.57,2.81A.727.727,0,0,1,602.119,341.052Zm0-6.626a.266.266,0,0,0-.266.266v5.62a.265.265,0,0,0,.266.266h0a.258.258,0,0,0,.119-.029l5.57-2.81a.265.265,0,0,0,0-.474l-5.57-2.809A.259.259,0,0,0,602.119,334.426Z",transform:"translate(-440.374 -164.217)"}),(0,n.jsx)("path",{d:"M600.107,339.215a.919.919,0,0,1-.917-.918v-5.62a.918.918,0,0,1,.917-.917.9.9,0,0,1,.412.1l5.57,2.811a.915.915,0,0,1,0,1.635l-5.57,2.811A.9.9,0,0,1,600.107,339.215Zm0-7.1a.563.563,0,0,0-.561.562v5.62a.562.562,0,0,0,.561.562h0a.536.536,0,0,0,.251-.062l5.57-2.809a.561.561,0,0,0,0-1l-5.57-2.81A.557.557,0,0,0,600.107,332.115Zm0,6.626a.444.444,0,0,1-.444-.443v-5.62a.444.444,0,0,1,.444-.443.451.451,0,0,1,.2.047l5.57,2.811a.443.443,0,0,1,0,.791l-5.57,2.811A.44.44,0,0,1,600.107,338.74Zm0-6.152a.089.089,0,0,0-.088.089v5.62a.088.088,0,0,0,.088.088.111.111,0,0,0,.04-.009l5.569-2.811a.089.089,0,0,0,0-.158l-5.566-2.808a.091.091,0,0,0-.042-.007Z",transform:"translate(-438.361 -162.202)"}),(0,n.jsx)("path",{d:"M647.077,341.05h0a.74.74,0,0,1-.737-.74v-5.62a.737.737,0,0,1,1.07-.659l5.571,2.811a.738.738,0,0,1,0,1.318l-5.571,2.81A.725.725,0,0,1,647.077,341.05Zm0-6.626a.266.266,0,0,0-.265.266v5.62a.266.266,0,0,0,.265.266h0a.262.262,0,0,0,.12-.029l5.57-2.81a.266.266,0,0,0,0-.474l-5.57-2.809A.263.263,0,0,0,647.077,334.425Z",transform:"translate(-481.682 -164.216)"}),(0,n.jsx)("path",{d:"M645.056,339.215a.919.919,0,0,1-.916-.918v-5.62a.918.918,0,0,1,.916-.917.907.907,0,0,1,.413.1l5.57,2.811a.915.915,0,0,1,0,1.635l-5.57,2.811A.911.911,0,0,1,645.056,339.215Zm0-7.1a.561.561,0,0,0-.56.562v5.62a.56.56,0,0,0,.56.562.542.542,0,0,0,.253-.062l5.57-2.809a.561.561,0,0,0,0-1l-5.57-2.81A.547.547,0,0,0,645.056,332.115Zm0,6.626a.443.443,0,0,1-.443-.443v-5.62a.443.443,0,0,1,.443-.443.452.452,0,0,1,.2.047l5.571,2.811a.444.444,0,0,1,0,.791l-5.57,2.811A.447.447,0,0,1,645.056,338.74Zm0-6.152a.089.089,0,0,0-.087.089v5.62a.087.087,0,0,0,.087.088.1.1,0,0,0,.04-.009l5.57-2.811a.086.086,0,0,0,0-.155L645.1,332.6a.086.086,0,0,0-.04-.007Z",transform:"translate(-479.661 -162.202)"}),(0,n.jsx)("path",{className:(0,g.cn)(t&&"fill-[#673090]"),d:"M122.08,156.24h6.054a5.9,5.9,0,0,1,4.172,1.278,3.5,3.5,0,0,1,1.137,2.742v.034a3.74,3.74,0,0,1-2.634,3.617l3.055,4.106h-4.1l-2.58-3.566h-1.554v3.566H122.08Zm5.89,5.653c1.207,0,1.9-.538,1.9-1.4v-.034c0-.926-.731-1.4-1.921-1.4h-2.324v2.825Z",transform:"translate(0 -0.937)"}),(0,n.jsx)("path",{className:(0,g.cn)(t&&"fill-[#673090]"),d:"M284,156.24h10.3v2.775h-6.787V160.8h6.15v2.574h-6.15v1.868H294.4v2.776H284Z",transform:"translate(-148.77 -0.937)"}),(0,n.jsx)("path",{className:(0,g.cn)(t&&"fill-[#673090]"),d:"M427.121,155.22h3.421l5.452,11.857h-3.806l-.932-2.1h-4.939l-.915,2.1H421.67Zm3.11,7.216-1.425-3.348-1.446,3.348Z",transform:"translate(-275.259)"}),(0,n.jsx)("path",{className:(0,g.cn)(t&&"fill-[#673090]"),d:"M613.36,156.24h3.549v8.914h6.2v2.86H613.36Z",transform:"translate(-451.381 -0.937)"}),(0,n.jsx)("path",{d:"M122.08,332.39h2.268l1.847,2.8,1.848-2.8h2.269v7.233h-2.134v-4.154L126.2,338.3h-.044l-1.967-2.811v4.133H122.08Z",transform:"translate(0 -162.781)"}),(0,n.jsx)("path",{d:"M237.08,334.391v-.02a4.2,4.2,0,0,1,8.345-.025v.022a4.2,4.2,0,0,1-8.345.024Zm6.154,0v-.02a1.945,1.945,0,0,0-1.992-1.953,1.9,1.9,0,0,0-1.959,1.931v.022a1.94,1.94,0,0,0,1.981,1.956A1.91,1.91,0,0,0,243.234,334.391Z",transform:"translate(-105.66 -161.146)"}),(0,n.jsx)("path",{d:"M346.514,334.145H344.19V332.39h6.794v1.755h-2.324v5.476h-2.147Z",transform:"translate(-204.071 -162.781)"}),(0,n.jsx)("path",{d:"M440,332.39h2.157v7.233H440Z",transform:"translate(-292.1 -162.781)"}),(0,n.jsx)("path",{d:"M480.72,334.391v-.02a4.2,4.2,0,0,1,8.345-.025v.022a4.2,4.2,0,0,1-8.345.024Zm6.154,0v-.02a1.945,1.945,0,0,0-1.992-1.953,1.9,1.9,0,0,0-1.959,1.931v.022a1.94,1.94,0,0,0,1.981,1.956A1.91,1.91,0,0,0,486.874,334.391Z",transform:"translate(-329.513 -161.146)"})]})})})}let j=e=>"stroke"===e.type?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("svg",{viewBox:"0 0 165 140",className:"h-full w-full stroke-inherit",children:(0,n.jsxs)("g",{transform:"translate(-9.538 -67.7)",fill:"none",children:[(0,n.jsx)("path",{d:"M367.136,148.551,357.7,164.893a2.149,2.149,0,0,0,0,2.149l17.128,29.67a2.149,2.149,0,0,1,0,2.145L368.253,210.3a2.149,2.149,0,0,1-3.726,0l-26.358-45.857a2.149,2.149,0,0,1,0-2.146l7.721-13.362.835-1.459.38-.655,9.794-16.968a2.149,2.149,0,0,1,1.861-1.075h33.81a2.149,2.149,0,0,0,1.861-1.074l21.989-38.084a2.149,2.149,0,0,0-1.861-3.223H385.713a2.149,2.149,0,0,1-1.861-3.223l2.44-4.224,5.873-10.175a2.149,2.149,0,0,1,1.861-1.075H446.5a2.149,2.149,0,0,1,1.863,3.219L404.984,146.4a2.149,2.149,0,0,1-1.863,1.078H369A2.149,2.149,0,0,0,367.136,148.551Z",transform:"translate(-274.587)"}),(0,n.jsx)("path",{d:"M102.975,79.968,35.6,80.044a2.149,2.149,0,0,0-2.145,2.23h0a2.149,2.149,0,0,0,2.133,2.068l62.187.411a2.149,2.149,0,0,1,1.85,3.217L61.542,154.413a2.149,2.149,0,0,1-3.727,0l-11.922-20.74a2.148,2.148,0,0,1,0-2.14l5.277-9.2a2.149,2.149,0,0,1,3.751.041l3.328,6.111a2.149,2.149,0,0,0,3.751.041l15.708-27.405a2.149,2.149,0,0,0-1.876-3.217L35.3,98.133a2.149,2.149,0,0,0-1.852,1.08l-1.811,3.159a2.149,2.149,0,0,1-3.727,0L9.827,70.92A2.149,2.149,0,0,1,11.69,67.7h95.851a2.149,2.149,0,0,1,1.864,3.217l-4.568,7.97A2.149,2.149,0,0,1,102.975,79.968Z"})]})})}):(0,n.jsx)("svg",{viewBox:"0 0 58.973 51.3",className:"h-full w-full fill-inherit",children:(0,n.jsxs)("g",{id:"IIJ_White",transform:"translate(-0.35 -69.85)",children:[(0,n.jsx)("path",{d:"M346.724,97.911l-3.756,6.5,6.461,11.192-3.186,5.542L336.1,103.5l2.933-5.077.294-.513.134-.23,3.663-6.347H355.89L364.5,76.427H351.731l1.513-2.62,2.284-3.957h20.2L359.6,97.911Z",transform:"translate(-316.407)"}),(0,n.jsx)("line",{x1:"0.045",y1:"0.077",transform:"translate(25.047 98.401)",fill:"none"}),(0,n.jsx)("path",{d:"M34.2,74.164l-24.92.029L9.341,75.7l23.892.158-14.7,25.637-5.066-8.813L16.216,87.9,18.68,92.42l6.851-11.952-16.006.09-1.508,2.63L.35,69.85H36.676Z",transform:"translate(0)"})]})});function y(e){let{brandColor:t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("svg",{viewBox:"0 0 57.324 24.19",className:"h-full w-full fill-inherit",children:(0,n.jsxs)("g",{transform:"translate(0 0.005)",children:[(0,n.jsx)("path",{className:(0,g.cn)(t&&"fill-[#07ebb5]"),d:"M1109.241,8.2h-17.217a4.1,4.1,0,1,1,0-8.207h17.217a4.1,4.1,0,1,1,0,8.207Z",transform:"translate(-1062.17)"}),(0,n.jsx)("path",{d:"M1369.061,683.472h-17.218a4.1,4.1,0,1,1,0-8.207h17.218a4.1,4.1,0,1,1,0,8.207Z",transform:"translate(-1315.84 -659.287)"}),(0,n.jsx)("path",{d:"M366.781,24.2a4.1,4.1,0,0,1-3.606-2.139L354.458,6.075a4.1,4.1,0,0,1,7.2-3.929l8.717,15.982a4.1,4.1,0,0,1-3.6,6.069Z",transform:"translate(-345.579 -0.011)"}),(0,n.jsx)("circle",{cx:"4.189",cy:"4.189",r:"4.189",transform:"translate(0 15.807)",className:(0,g.cn)(t&&"fill-[#07ebb5]")})]})})})}let b=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N.default,{href:"https://realmotion.co/",className:"h-full w-full fill-black dark:fill-white",children:(0,n.jsx)(v,{})}),(0,n.jsx)(N.default,{href:"https://theiceji.com/",className:"h-full w-full fill-black dark:fill-white",children:(0,n.jsx)(j,{})}),(0,n.jsx)(N.default,{href:"https://artscape.day/",className:"h-full w-full fill-black dark:fill-white",children:(0,n.jsx)(y,{})})]}),_=e=>{let{$ref:t,_onClearModal:r}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(l.E.div,{ref:t,initial:{y:"80%"},animate:{y:0},exit:{y:"80%"},transition:{duration:.8,ease:[.6,.05,.01,.9]},className:"flex h-[220px] w-[339px] overflow-hidden rounded-lg bg-white p-2 drop-shadow-xl md:h-[500px] md:w-[750px] md:p-4 dark:bg-[#171717]",children:[(0,n.jsxs)("div",{className:"flex h-full flex-grow flex-col items-start justify-between p-1 md:p-4",children:[(0,n.jsxs)("div",{className:"flex h-9 w-full items-center md:h-[57px]",children:[(0,n.jsx)("div",{className:"bg-primary mr-2 h-full w-[38px] rounded-lg p-1 md:w-[57px] md:p-2.5",children:(0,n.jsx)(m.j,{})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-xs font-semibold md:text-xl",children:"TheIceJi Cosmos"}),(0,n.jsxs)("p",{className:"text-2xs leading-3 font-light md:text-xs",children:["Ver ",u.l2.VERSION," | ",u.l2.UPDATE_DATE]})]})]}),(0,n.jsxs)("div",{className:"text-2xs leading-3 font-light md:text-base md:leading-5",children:[(0,n.jsx)("p",{className:"font-medium",children:"Engine:"}),(0,n.jsx)(p,{}),(0,n.jsx)("p",{className:"mt-1 font-medium md:mt-2",children:"Contact:"}),(0,n.jsx)(f,{})]}),(0,n.jsx)("div",{className:"flex h-3 w-[90px] space-x-2 md:h-6 md:w-[180px]",children:(0,n.jsx)(b,{})})]}),(0,n.jsx)("div",{className:"relative h-full w-[130px] overflow-hidden rounded-lg md:w-[415px]",children:(0,n.jsx)(d.default,{src:"/layout/appInfo-0.jpg",alt:"TheIceJi Splash Screen",placeholder:"blur",blurDataURL:"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",objectFit:"cover",fill:!0,className:"h-full duration-300 hover:scale-110 hover:duration-150"})})]})})},E=e=>{let{$ref:t}=e,[r,a]=(0,s.useState)(""),l=(0,o.mr)(e=>e.searchDataIndex),i=(0,s.useRef)(null);return(0,s.useEffect)(()=>{var e;null===(e=i.current)||void 0===e||e.focus()},[]),(0,n.jsxs)("div",{className:"w-[350px] xl:w-[650px]",ref:t,children:[(0,n.jsx)("input",{ref:i,className:"w-full rounded-xl bg-background/80 px-4 py-2 text-2xl xl:text-4xl",type:"text",placeholder:"Search..",value:r,onChange:e=>a(e.target.value)}),(0,n.jsx)("div",{className:"mt-4 h-[250px] w-full space-y-1 overflow-scroll rounded-xl bg-background/60 p-2",children:l.filter(e=>e.title.toLowerCase().includes(r.toLowerCase())).map(w)})]})},w=e=>{let{title:t,path:r}=e;return(0,n.jsxs)(N.default,{href:{pathname:r},className:"Anim flex w-full cursor-pointer rounded-md bg-foreground/5 px-4 py-2 hover:bg-foreground/10 justify-between",children:[(0,n.jsx)("p",{className:"truncate",children:t}),(r.includes("post")||r.includes("project"))&&(0,n.jsx)("span",{className:"rounded-sm bg-foreground/10 opacity-60 py-0.5 px-2 text-xs md:hidden",children:r.includes("post")?"post":r.includes("project")?"project":""}),(0,n.jsx)("button",{className:"hidden rounded-md bg-background/80 px-2 py-1 text-xs md:block",children:r})]},"nav_modalSearch-".concat(t))},A=()=>{let[e,t]=(0,o.tN)((0,i.N)(e=>[e.modal,e.onClearModal])),r=(0,s.useRef)(null);(0,c.t$)(r,()=>t());let[d,u]=(0,M.i8)();return(0,s.useEffect)(()=>{u(void 0!==e)},[e,u]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.M,{children:void 0!==e&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(l.E.div,{className:"bg-background/60 fixed top-0 left-0 z-100 flex h-dvh w-dvw items-center justify-center backdrop-blur-lg",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[e===o.zr.APP_INFO&&(0,n.jsx)(_,{$ref:r,_onClearModal:t}),e===o.zr.SEARCH&&(0,n.jsx)(E,{$ref:r})]})})})})}},79130:function(e,t,r){"use strict";r.d(t,{PageProgress:function(){return c}});var n=r(57437),s=r(2265),a=r(11467),l=r.n(a),i=r(550),o=r(85638);let c=e=>{let{color:t}=e,[r,a,c]=(0,o.tN)((0,i.N)(e=>[e.setCursor,e.onClearAllNavState,e.isDark])),M=c?t.dark:t.light,d=(0,n.jsx)("style",{children:"\n        #nprogress {\n          pointer-events: none;\n          z-index: 999;\n        }\n        #nprogress .bar {\n          background: ".concat(M,";\n          position: fixed;\n          z-index: 99999;\n          top: 0;\n          left: 0;\n          width: 100%;\n          height: ").concat("2px",";\n        }\n        /* Fancy blur effect */\n        #nprogress .peg {\n          display: block;\n          position: absolute;\n          right: 0px;\n          width: 100px;\n          height: 100%;\n          box-shadow: 0 0 10px ").concat(M,", 0 0 5px ").concat(M,";\n          opacity: 1.0;\n          -webkit-transform: rotate(3deg) translate(0px, -4px);\n              -ms-transform: rotate(3deg) translate(0px, -4px);\n                  transform: rotate(3deg) translate(0px, -4px);\n        }\n\n        #nprogress .spinner {\n          display: block;\n          position: fixed;\n          z-index: 1031;\n          top: -15px;\n          right: 15px;\n        }\n\n        #nprogress .spinner-icon {\n          width: 24px;\n          height: 24px;\n          box-sizing: border-box;\n\n          border: solid 3px transparent;\n          border-top-color: #fff;\n          border-left-color: #fff;\n          border-radius: 50%;\n\n          -webkit-animation: nprogress-spinner 400ms linear infinite;\n          animation: nprogress-spinner 400ms linear infinite;\n        }\n\n        .nprogress-custom-parent {\n          overflow: hidden;\n          position: relative;\n        }\n\n        .nprogress-custom-parent #nprogress .spinner,\n        .nprogress-custom-parent #nprogress .bar {\n          position: absolute;\n        }\n\n        @-webkit-keyframes nprogress-spinner {\n          0% {\n            -webkit-transform: rotate(0deg);\n          }\n          100% {\n            -webkit-transform: rotate(360deg);\n          }\n        }\n        @keyframes nprogress-spinner {\n          0% {\n            transform: rotate(0deg);\n          }\n          100% {\n            transform: rotate(360deg);\n          }\n        }\n    ")});return(0,s.useEffect)(()=>{l().configure({showSpinner:!1,parent:"#nprogress-nav-parent"});let e=e=>{r(void 0),a();let t=e.currentTarget.href;t===location.href||t.includes("mailto:")||t.includes("tel:")||t.includes("#")||l().start()},t=new MutationObserver(()=>{document.querySelectorAll("a").forEach(t=>t.addEventListener("click",e))});t.observe(document,{childList:!0,subtree:!0});let n=window.history.pushState;return window.history.pushState=new Proxy(window.history.pushState,{apply:(e,t,n)=>(r(void 0),l().done(),e.apply(t,n))}),()=>{document.querySelectorAll("a").forEach(t=>t.removeEventListener("click",e)),t.disconnect(),window.history.pushState=n}},[r,l()]),d}},23777:function(e,t,r){"use strict";r.d(t,{ClearUserStore:function(){return a},SetUserStore:function(){return l}});var n=r(2265),s=r(85638);let a=()=>{let e=(0,s.ec)(e=>e.onClearUser);return(0,n.useEffect)(()=>{e()},[e]),null},l=e=>{let{user:t}=e,r=(0,s.ec)(e=>e.onSetUser);return(0,n.useEffect)(()=>{r(t)},[r]),null}},26307:function(e,t,r){"use strict";r.d(t,{NavBar:function(){return I}});var n=r(57437),s=r(2265),a=r(72301),l=r(39785),i=r(53116),o=r(550),c=r(43547),M=r(63281),d=r(85638),u=r(15357),m=r(49684);let x=e=>{let{_setCursor:t,_onToggleModal:r}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"Anim flex aspect-square w-full cursor-pointer items-center rounded-t-md bg-primary p-2 lg:p-2 el:p-3",onMouseEnter:()=>{t(d.WV.LOGO)},onMouseLeave:()=>{t(void 0)},onClick:()=>{r(d.zr.APP_INFO),t(void 0)},children:(0,n.jsx)(m.j,{})})})};var h=r(99485),f=r(46774),p=r(23366),N=r(88840);let g={magnification:1,distance:80},v=e=>{let{mouseY:t,className:r,children:a,dockConfig:l=g,onClick:o,height:c=18,active:M,...d}=e,u=(0,s.useRef)(null),m=(0,f.H)(t,e=>{var t,r;let n=null!==(r=null===(t=u.current)||void 0===t?void 0:t.getBoundingClientRect())&&void 0!==r?r:{y:0,height:0};return e-n.y-n.height/2}),x=(0,f.H)(m,[-l.distance,0,l.distance],[.2,l.magnification+.2,.2]),h=(0,p.q)(x,{mass:.1,stiffness:150,damping:12});return(0,n.jsx)(i.E.div,{ref:u,style:{height:c,opacity:M?1:h},className:(0,N.cn)("cursor-pointer",r),onClick:o,...d,children:a})};var j=r(60368);let y=(0,s.memo)(e=>{let{mouseY:t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex w-full flex-col fill-foreground py-4 pl-1 [&>a]:my-2 [&>div]:my-2",children:[(0,n.jsx)(h.default,{href:"/",children:(0,n.jsx)(v,{mouseY:t,children:(0,n.jsx)(j.SK,{})})}),(0,n.jsx)(v,{mouseY:t,children:(0,n.jsx)(j.ol,{})})]})})});var b=r(1126);let _=(0,s.memo)(e=>{let{mouseY:t,page:r}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"flex w-full flex-col fill-foreground py-4 [&>a]:my-2 [&>div]:my-2",children:u.VP.map(e=>(0,n.jsx)(h.default,{href:{pathname:"/dashboard/".concat(e.path)},className:(0,b.cn)(e.key===r&&"border-l-2 border-primary"),children:(0,n.jsx)(v,{mouseY:t,active:e.key===r,children:(0,n.jsx)(e.Icon,{})})},"navApp-menuSession-".concat(e.key)))})})});var E=r(40862);let w=(0,s.memo)(e=>{let{mouseY:t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"flex w-full grow flex-col items-center fill-foreground [&>a]:my-2 [&>div]:my-2",children:(0,n.jsx)(v,{mouseY:t,height:32,className:"flex w-8 cursor-pointer items-center justify-center rounded-md bg-foreground/20",children:(0,n.jsx)(E.v3,{})})})})});var A=r(72844);let k=(0,s.memo)(e=>{let{mouseY:t,session:r,setOpenUserAction:s}=e;return r?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"relative aspect-square w-8 cursor-pointer overflow-hidden rounded-xs",onClick:()=>s(e=>!e),children:(0,n.jsx)(A.E,{src:r.user.image||"/images/app/user/default_profile.png",alt:"user profile",unoptimized:!0})})}):(0,n.jsx)(h.default,{href:"/portal",children:(0,n.jsx)(v,{mouseY:t,children:(0,n.jsx)(j.n5,{})})})});var C=r(19146);let S=e=>{let{session:t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.E.div,{className:"border-foreground/10 bg-background/90 absolute -bottom-2 left-14 z-90 rounded-md border p-3 backdrop-blur-md",initial:{y:20,opacity:0,x:0},animate:{y:0,opacity:1,x:0},exit:{y:20,opacity:0,x:0},children:(0,n.jsx)(C.n,{session:t})})})},T=(0,s.memo)(e=>{let{mouseY:t,session:r}=e,[a,i]=(0,s.useState)(!1),o=(0,s.useRef)(null);return(0,M.t$)(o,()=>i(!1)),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"fill-foreground relative flex w-full flex-col items-center [&>a]:my-2 [&>div]:my-2",ref:o,children:[(0,n.jsx)(v,{mouseY:t,children:(0,n.jsx)(j.Zr,{})}),(0,n.jsx)("div",{className:"bg-foreground/20 my-2 h-0.5 w-6 rounded-full"}),(0,n.jsx)(k,{mouseY:t,session:r,setOpenUserAction:i}),(0,n.jsx)(l.M,{children:r&&a&&(0,n.jsx)(S,{session:r})})]})})}),I=e=>{let{session:t}=e,[r,m,h]=(0,d.tN)((0,o.N)(e=>[e.nav,e.onClearNavAction,e.onToggleModal])),f=(0,d.tN)(e=>e.setCursor),p=(0,s.useRef)(null);(0,M.t$)(p,()=>m());let{mouse:N,Dock:g}=(0,c.D)(),[v,j]=(0,s.useState)(u.QY.DASHBOARD),b=(0,a.usePathname)();return(0,s.useEffect)(()=>{var e;let t=null!==(e=b.split("/dashboard/")[1])&&void 0!==e?e:b,r=u.VP.find(e=>t.includes(e.path));r?j(r.key):j(u.QY.DASHBOARD)},[b]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(l.M,{children:r&&(0,n.jsx)(i.E.div,{initial:{y:0,x:-150},animate:{y:0,x:0},exit:{y:0,x:-150},className:"fixed top-0 left-0 z-80 h-dvh px-4 py-5",ref:p,children:(0,n.jsxs)(g,{className:"relative flex h-full w-12 flex-col rounded-md el:w-16 dark:shadow-xl",options:{dockAlign:"Y"},children:[(0,n.jsxs)("div",{className:"flex min-h-14 w-full flex-col items-center rounded-t-md bg-black/[0.07] shadow-md backdrop-blur-md dark:bg-white/[0.07]",children:[(0,n.jsx)(x,{_setCursor:f,_onToggleModal:h}),t?(0,n.jsx)(_,{mouseY:N,page:v}):(0,n.jsx)(y,{mouseY:N})]}),(0,n.jsxs)("div",{className:"flex grow flex-col items-center justify-end rounded-b-md border border-foreground/[0.07] shadow-md backdrop-blur-md",children:[t&&(0,n.jsx)(w,{mouseY:N}),(0,n.jsx)(T,{mouseY:N,session:t})]})]})})})})}},65185:function(e,t,r){"use strict";r.d(t,{TrpcProvider:function(){return u}});var n=r(57437),s=r(29254),a=r(77359),l=r(45525),i=r(11292),o=r(2265),c=r(60491);let M={user:{invalidateAll:!0},data:{invalidateAll:!0}};r(25566);let d=e=>"",u=e=>{let[t]=(0,o.useState)(()=>new s.S({defaultOptions:{queries:{staleTime:5e3,retry:1,refetchOnWindowFocus:!1},mutations:{onSuccess:async()=>{try{await t.invalidateQueries({predicate:e=>{var t,r;let[n,s]=e.queryKey,a=M[n];return!!a&&(!!a.invalidateAll||(null===(t=a.exclude)||void 0===t||!t.includes(s))&&(null===(r=a.includeOnly)||void 0===r||!r.length||a.includeOnly.includes(s)))}})}catch(e){console.error("Error during cache invalidation:",e)}},onError:e=>{console.error("Mutation error:",e)}}}})),[r]=(0,o.useState)(()=>c.S.createClient({links:[(0,l.gb)({enabled:e=>"down"===e.direction&&e.result instanceof Error}),(0,l.N8)({url:"".concat(d(8989),"/api/trpc/"),transformer:i.ZP,headers:async()=>({celestia:"cosmos"}),fetch:(e,t)=>fetch(e,{...t,credentials:"include",headers:{...null==t?void 0:t.headers}})})]}));return(0,n.jsx)(c.S.Provider,{client:r,queryClient:t,children:(0,n.jsx)(a.aH,{client:t,children:e.children})})}},50848:function(e,t,r){"use strict";r.d(t,{default:function(){return f}});var n=r(57437),s=r(39785),a=r(53116),l=r(1126),i=r(85638),o=r(70591);let c=e=>({facebook:{name:"facebook",link:"https://www.facebook.com/"+e.facebook,href:"https://www.facebook.com/"+e.facebook},messenger:{name:"messenger",link:"https://m.me/"+e.messenger,href:"https://m.me/"+e.messenger},instagram:{name:"instagram",link:"https://www.instagram.com/"+e.instagram,href:"https://www.instagram.com/"+e.instagram},youtube:{name:"youtube",link:"https://www.youtube.com/"+e.youtube,href:"https://www.youtube.com/"+e.youtube},mail:{name:"mail",link:"mailto:"+e.mail,href:"mailto:"+e.mail},github:{name:"github",link:"https://github.com/"+e.github,href:"https://github.com/"+e.github},twitter:{name:"twitter",link:"https://twitter.com/"+e.twitter,href:"https://twitter.com/"+e.twitter},discord:{name:"discord",link:"https://discord.gg/"+e.discord,href:"https://discord.gg/"+e.discord}});var M=r(5999);function d(e){let{name:t,href:r,index:s}=e;return(0,n.jsx)(a.E.div,{children:(0,n.jsx)("a",{href:r,className:"Anim opacity-40 hover:opacity-100",target:"_blank",rel:"noopener noreferrer",children:u(t)})})}let u=e=>"facebook"===e?(0,n.jsx)(M.tBk,{}):"instagram"===e?(0,n.jsx)(M.Zf_,{}):"youtube"===e?(0,n.jsx)(M.V2E,{}):"mail"===e?(0,n.jsx)(M.SRX,{}):(0,n.jsx)(n.Fragment,{});var m=()=>{let e=(0,i.tN)(e=>e.setCursor),t=c(o.Jx),r=[t.facebook,t.instagram,t.youtube,t.mail,t.discord];return(0,n.jsx)("div",{className:"flex items-center space-x-4 md:space-x-7",onMouseEnter:()=>{e(i.WV.LOGO)},onMouseLeave:()=>{e(void 0)},onClick:()=>{e(void 0)},children:r.map((e,t)=>(0,n.jsx)(d,{name:e.name,href:e.href,index:t},"footer_contactLink-".concat(e.name)))})},x=r(550);function h(){let[e,t]=(0,i.tN)((0,x.N)(e=>[e.modal,e.onToggleModal]));return(0,n.jsx)("div",{className:"mt-2 flex items-center text-xs md:mt-0 md:text-base",children:(0,n.jsxs)(a.E.p,{children:[(0,n.jsx)("button",{className:"Anim AnimOpacity-60 cursor-pointer pr-2",onClick:()=>{t(i.zr.APP_INFO)},children:"TheIceJi Cosmos"}),(0,n.jsxs)("span",{className:"hidden pr-1 opacity-40 md:inline-flex",children:["| Copyright\xa9",new Date().getFullYear()," by"]}),(0,n.jsx)("a",{href:"http://TheIceJI.com/home",className:"Anim AnimOpacity-60 hidden md:inline-flex",children:"Jirayu Ninlapun"})]})})}function f(){let e=(0,i.tN)(e=>e.footer);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.M,{children:e&&(0,n.jsxs)(a.E.div,{className:(0,l.cn)(e===i.lW.DEFAULT&&"fixed","bottom-0 left-0 z-10 hidden w-screen flex-col items-center justify-between px-5 py-3 sm:flex sm:flex-row",e===i.lW.BLUR_BG&&"blur-md"),children:[(0,n.jsx)(m,{}),(0,n.jsx)(h,{})]})})})}},32879:function(e,t,r){"use strict";r.d(t,{NavCanvas:function(){return m}});var n=r(57437),s=r(2265),a=r(72301),l=r(39785),i=r(53116),o=r(550),c=r(85638),M=r(15357),d=r(66320),u=r.n(d);let m=()=>{let[e,t,r]=(0,c.tN)((0,o.N)(e=>[e.setCursor,e.navAction,e.onClearNavAction])),[d,m]=(0,s.useState)(""),x=(0,a.useRouter)(),h=t=>{r(),e(void 0),setTimeout(()=>{m(""),x.push(t)},1e3)},f={initial:{y:1e3},animate:{y:0}},p={duration:.8,ease:[.6,-.05,.01,.9]};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(l.M,{children:t===c.F1.MENU_CANVAS&&(0,n.jsx)("div",{className:"fixed top-4 left-0 z-70 h-dvh w-dvw overflow-hidden px-5 pb-8",children:(0,n.jsxs)(i.E.div,{initial:{y:"-100%"},exit:{y:"-100%"},animate:{y:0},transition:{duration:.8,ease:[.6,.05,.01,.9]},className:"relative h-full overflow-hidden rounded-md bg-white/20 shadow-xl backdrop-blur-lg dark:bg-black/20",children:[(0,n.jsx)("div",{className:"absolute flex h-full w-full items-center justify-center",children:(0,n.jsx)(i.E.div,{variants:{animate:{transition:{staggerChildren:.3,delayChildren:0}}},initial:"initial",animate:"animate",exit:"exit",children:M._j.map((t,r)=>(0,n.jsxs)(i.E.a,{className:u().canvas_menu_item,onClick:()=>h("".concat(t.path)),onMouseEnter:()=>{e(c.WV.GO),m(t.title)},onMouseLeave:()=>{e(void 0),m("")},variants:f,transition:p,children:[(0,n.jsxs)(i.E.h6,{children:["0",r+1]}),(0,n.jsx)(i.E.h1,{children:t.title})]},"nav_canvasLink-".concat(t.title,"-").concat(r)))})}),(0,n.jsx)("div",{className:u().canvas_bg_text,children:(0,n.jsx)(l.M,{children:d&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.E.h1,{initial:{x:"-20%",opacity:0},exit:{x:"-20%",opacity:0},animate:{x:d?0:"-20%",opacity:.03},transition:{duration:.8,ease:[.6,.05,.01,.9]},children:[d," ",d]}),(0,n.jsxs)(i.E.h1,{initial:{x:"-40%",opacity:0},exit:{x:"-40%",opacity:0},animate:{x:d?"40%":"-40%",opacity:.03},transition:{duration:.8,delay:.1,ease:[.6,.05,.01,.9]},children:[d," ",d]})]})})})]},"Nav_Canvas")})})})}},21069:function(e,t,r){"use strict";r.d(t,{NavBar:function(){return e_}});var n,s,a=r(57437),l=r(2265),i=r(39785),o=r(53116),c=r(550),M=r(43547),d=r(63281),u=r(85638),m=r(49684);let x=e=>{let{_setCursor:t,_onToggleModal:r}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"Anim flex h-full w-14 cursor-pointer items-center rounded-l-md bg-primary p-2 lg:p-2 el:p-3",onMouseEnter:()=>{t(u.WV.LOGO)},onMouseLeave:()=>{t(void 0)},onClick:()=>{r(u.zr.APP_INFO),t(void 0)},children:(0,a.jsx)(m.j,{})})})};var h=r(60368),f=r(46774),p=r(23366),N=r(88840);let g={magnification:60,distance:140},v=e=>{let{mouseX:t,className:r,children:n,dockConfig:s=g,onClick:i,width:c=18,...M}=e,d=(0,l.useRef)(null),u=(0,f.H)(t,e=>{var t,r;let n=null!==(r=null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect())&&void 0!==r?r:{x:0,width:0};return e-n.x-n.width/2}),m=(0,f.H)(u,[-s.distance,0,s.distance],[c,s.magnification+c-18,c]),x=(0,p.q)(m,{mass:.1,stiffness:150,damping:12});return(0,a.jsx)(o.E.div,{ref:d,style:{width:x},className:(0,N.cn)("cursor-pointer",r),onClick:i,...M,children:n})},j=e=>{let{_setCursor:t,_onClearNavAction:r,mouseX:n}=e,[s,l,i,o]=(0,u.tN)((0,c.N)(e=>[e.isDark,e.onToggleIsDark,e.playBackgroundMusic,e.onTogglePlayBackgroundMusic]));return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex h-full items-end fill-foreground px-4 pb-4 *:mx-2",children:[(0,a.jsx)(v,{mouseX:n,onClick:()=>{o(),r(),t(void 0)},children:i?(0,a.jsx)(h.pv,{}):(0,a.jsx)(h.SS,{})}),(0,a.jsx)(v,{mouseX:n,onClick:()=>{l(),r(),t(void 0)},children:s?(0,a.jsx)(h.rw,{}):(0,a.jsx)(h.kO,{})})]})})};var y=r(1126),b=r(61606);let _=e=>{let{}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"Anim relative -mb-1 flex h-full w-full rounded-md bg-foreground/10 hover:bg-foreground/30 [&:hover>p]:opacity-100",children:[(0,a.jsx)("p",{className:"Anim my-auto pl-2 opacity-40",children:"Search"}),(0,a.jsxs)("div",{className:"my-auto ml-1 flex items-center rounded-xs bg-foreground/15 px-1 py-px text-xs",children:[(0,a.jsx)(b.adf,{}),(0,a.jsx)("span",{children:"+K"})]}),(0,a.jsx)("div",{className:"absolute top-1/2 right-2 h-4 w-4 -translate-y-1/2",children:(0,a.jsx)(h.ol,{})})]})})},E=e=>{let{}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:(0,a.jsx)(h.ol,{})})})},w=e=>{let{_navAction:t,_setCursor:r,_onToggleNavAction:n,_onToggleModal:s,mouseX:l,session:i}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(o.E.div,{className:"flex h-full items-end fill-foreground pb-4 *:mx-2",children:[(0,a.jsx)(v,{mouseX:l,width:136,className:"hidden md:block",onClick:()=>s(u.zr.SEARCH),children:(0,a.jsx)(_,{})}),(0,a.jsx)(v,{mouseX:l,className:"md:hidden",onClick:()=>s(u.zr.SEARCH),children:(0,a.jsx)(E,{})}),(0,a.jsx)(v,{mouseX:l,onClick:()=>{n(i?u.F1.USER:u.F1.PORTAL),r(void 0)},className:(0,y.cn)(i&&"md:hidden"),children:(0,a.jsx)(h.n5,{})}),(0,a.jsx)(v,{mouseX:l,onClick:()=>{n(u.F1.CART),r(void 0)},children:(0,a.jsx)(h.AP,{})}),(0,a.jsx)(v,{mouseX:l,onClick:()=>{n(u.F1.MENU_CANVAS),r(void 0)},children:t===u.F1.MENU_CANVAS?(0,a.jsx)(h.x8,{}):(0,a.jsx)(h.v2,{})})]})})};var A=r(38895),k=r(77412),C=r(99020),S=r(83353),T=r(19521);let I=k.fC;k.ZA;let L=k.B4,O=l.forwardRef((e,t)=>{let{className:r,children:n,...s}=e;return(0,a.jsxs)(k.xz,{ref:t,className:(0,y.cn)("border-input bg-background ring-offset-background placeholder:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...s,children:[n,(0,a.jsx)(k.JO,{asChild:!0,children:(0,a.jsx)(C.Z,{className:"h-4 w-4 opacity-50"})})]})});O.displayName=k.xz.displayName;let R=l.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(k.u_,{ref:t,className:(0,y.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,a.jsx)(S.Z,{className:"h-4 w-4"})})});R.displayName=k.u_.displayName;let P=l.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(k.$G,{ref:t,className:(0,y.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,a.jsx)(C.Z,{className:"h-4 w-4"})})});P.displayName=k.$G.displayName;let W=l.forwardRef((e,t)=>{let{className:r,children:n,position:s="popper",...l}=e;return(0,a.jsx)(k.h_,{children:(0,a.jsxs)(k.VY,{ref:t,className:(0,y.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-background/90 text-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md backdrop-blur-md","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:s,...l,children:[(0,a.jsx)(R,{}),(0,a.jsx)(k.l_,{className:(0,y.cn)("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,a.jsx)(P,{})]})})});W.displayName=k.VY.displayName,l.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(k.__,{ref:t,className:(0,y.cn)("py-1.5 pr-2 pl-8 text-sm font-semibold",r),...n})}).displayName=k.__.displayName;let U=l.forwardRef((e,t)=>{let{className:r,children:n,...s}=e;return(0,a.jsxs)(k.ck,{ref:t,className:(0,y.cn)("focus:bg-primary focus:text-background relative flex w-full cursor-default items-center rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...s,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(k.wU,{children:(0,a.jsx)(T.Z,{className:"h-4 w-4"})})}),(0,a.jsx)(k.eT,{children:n})]})});U.displayName=k.ck.displayName,l.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(k.Z0,{ref:t,className:(0,y.cn)("bg-muted -mx-1 my-1 h-px",r),...n})}).displayName=k.Z0.displayName;var D=r(65639),X=r.n(D);let F=()=>{let[e,t,r,n,s,i]=(0,u.tN)((0,c.N)(e=>[e.interface,e.setInterface,e.isDark,e.setIsDark,e.nav,e.setNav])),[o,M]=(0,l.useState)({graphics:"performance"});return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("ul",{className:(0,y.cn)(X().action_settings,"text-sm"),children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("p",{children:"Interface"}),(0,a.jsx)("div",{className:"ml-4",children:(0,a.jsxs)(I,{onValueChange:e=>t(e),children:[(0,a.jsx)(O,{className:"h-8 w-[140px]",children:(0,a.jsx)(L,{placeholder:e})}),(0,a.jsxs)(W,{className:"z-90",children:[(0,a.jsx)(U,{value:u.r1.EXPERIENCE,children:"Experience"}),(0,a.jsx)(U,{value:u.r1.SIMPLE,children:"Simple"})]})]})})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("p",{children:"Theme"}),(0,a.jsx)("div",{className:"ml-4",children:(0,a.jsxs)(I,{onValueChange:e=>n("true"===e),children:[(0,a.jsx)(O,{className:"h-8 w-[140px]",children:(0,a.jsx)(L,{placeholder:r?"dark":"light"})}),(0,a.jsxs)(W,{className:"z-90",children:[(0,a.jsx)(U,{value:"true",children:"Dark"}),(0,a.jsx)(U,{value:"false",children:"Light"})]})]})})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("p",{children:"Graphics"}),(0,a.jsx)("div",{className:"ml-4",children:(0,a.jsxs)(I,{onValueChange:e=>M(t=>({...t,graphics:e})),children:[(0,a.jsx)(O,{className:"h-8 w-[140px]",children:(0,a.jsx)(L,{placeholder:o.graphics})}),(0,a.jsxs)(W,{className:"z-90",children:[(0,a.jsx)(U,{value:"performance",children:"Performance"}),(0,a.jsx)(U,{value:"balance",children:"Balance"}),(0,a.jsx)(U,{value:"low",children:"Low"})]})]})})]})]})})};var H=r(19146),B=r(72301),z=r(9238),K=r(60491);let G=e=>{let{isLoading:t,setIsLoading:r}=e,n=(0,B.useRouter)(),{mutateAsync:s}=K.S.user.portal.signin.useMutation({onSuccess(e){if(e&&!e.success&&e.message){z.Am.error("Error: "+e.message);return}z.Am.success("Sign in complete"),n.refresh()},onError:()=>{z.Am.error("Error: Connection failed"),r(!1)}}),{handleChange:l,handleSubmit:i}=(0,d.cI)({initialData:{email:"",password:""},onSubmit:async e=>{r(!0),e.email&&e.password&&await s({email:e.email,password:e.password})},onError:()=>{throw z.Am.error("Error: Can't set session"),Error("AUTH: Set session failed")}});return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(o.E.form,{className:(0,y.cn)("Form flex flex-col pt-4",t&&"pointer-events-none"),onSubmit:i,initial:{x:-20,opacity:0},animate:{x:0,opacity:1},exit:{x:20,opacity:0},children:[(0,a.jsx)("input",{className:(0,y.cn)("Border-40 rounded-md",t&&"opacity-40"),type:"email",name:"email",placeholder:"Email",required:!0,onChange:l,autoComplete:"one-time-code"}),(0,a.jsx)("input",{className:(0,y.cn)("Border-40 mt-2 rounded-md",t&&"opacity-40"),type:"password",name:"password",placeholder:"Password",required:!0,onChange:l,autoComplete:"one-time-code"}),(0,a.jsx)("button",{className:"Anim AnimOpacity-60 bg-foreground/20 mt-3 rounded-md py-1",type:"submit",children:t?"Loading ...":"Login"})]})})};var Z=r(75348);let V=e=>{let{isLoading:t,setIsLoading:r}=e,n=(0,B.useRouter)(),{mutateAsync:s}=K.S.user.portal.signup.useMutation({onMutate:()=>{r(!0)},onSuccess(e){if(r(!1),e&&!e.success&&e.message){z.Am.error("Error: "+e.message);return}z.Am.success("Sign up successfully, please login"),n.refresh()},onError:()=>{r(!1),z.Am.error("Error: Connection failed")}}),[i,c]=(0,l.useState)(null),{handleChange:M,handleSubmit:u}=(0,d.cI)({initialData:{email:"",password:""},onSubmit:async e=>{if(!(0,Z.oH)(e.email).isValid){z.Am.warn("Please enter a valid E-mail");return}if(e.password!==i){z.Am.warn("Passwords need to match!");return}let t=(0,Z.uo)(e.password);if(t.error){z.Am.warn(t.error);return}await s({email:e.email,password:e.password})},onError:()=>{throw z.Am.error("Error: Can't sign up"),Error("AUTH: Sign up failed")}});return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(o.E.form,{className:(0,y.cn)("Form flex flex-col pt-4",t&&"pointer-events-none"),onSubmit:u,initial:{x:20,opacity:0},animate:{x:0,opacity:1},exit:{x:-20,opacity:0},children:[(0,a.jsx)("input",{className:(0,y.cn)("Border-40 rounded-md",t&&"opacity-40"),type:"text",name:"email",placeholder:"Email",required:!0,onChange:M,autoComplete:"one-time-code"}),(0,a.jsx)("input",{className:(0,y.cn)("Border-40 mt-2 rounded-md",t&&"opacity-40"),type:"password",name:"password",placeholder:"Password",required:!0,onChange:M,autoComplete:"one-time-code"}),(0,a.jsx)("input",{className:(0,y.cn)("Border-40 mt-2 rounded-md",t&&"opacity-40"),type:"password",name:"confirm_password",placeholder:"Confirm Password",required:!0,onChange:e=>c(e.target.value)}),(0,a.jsx)("button",{className:"Anim AnimOpacity-60 bg-foreground/20 mt-3 rounded-md py-1",type:"submit",children:t?"Loading ...":"Register"})]})})};var Y=r(5999),q=r(13023);let J=e=>{let{providers:t,isLoading:r,setIsLoading:n}=e;return(0,a.jsx)(a.Fragment,{children:t&&(0,a.jsxs)("div",{className:(0,y.cn)("flex h-8 justify-center",r&&"pointer-events-none opacity-40"),children:[(0,a.jsx)("div",{className:"Anim bg-foreground/10 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full text-white hover:bg-blue-500",onClick:()=>{n(!0),(0,q.signIn)(t.facebook.id)},children:(0,a.jsx)(Y.tBk,{})}),(0,a.jsx)("div",{className:"Anim bg-foreground/10 ml-3 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full text-white hover:bg-red-500",onClick:()=>{n(!0),(0,q.signIn)(t.google.id)},children:(0,a.jsx)(Y.ldW,{})}),(0,a.jsx)("div",{className:"Anim bg-foreground/10 ml-3 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full text-white hover:bg-slate-800",onClick:()=>{n(!0),(0,q.signIn)(t.github.id)},children:(0,a.jsx)(Y.hJX,{})})]})})};(n=s||(s={})).SIGN_IN="sign_In",n.SIGN_UP="sign_Up";let $=e=>{let{providers:t}=e,[r,n]=(0,l.useState)("sign_In"),[s,o]=(0,l.useState)(!1),[M,d]=(0,u.ec)((0,c.N)(e=>[e.onSetUser,e.notifications]));return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"relative flex min-w-56 flex-col items-center py-6 text-sm",children:[(0,a.jsxs)("div",{className:(0,y.cn)("bg-foreground/10 ml-auto rounded-md",s&&"pointer-events-none opacity-40"),children:[(0,a.jsx)("button",{type:"button",className:(0,y.cn)("Anim rounded-md px-2 py-1","sign_In"===r&&"bg-primary text-black"),onClick:()=>n("sign_In"),children:"Sign in"}),(0,a.jsx)("button",{type:"button",className:(0,y.cn)("Anim rounded-md px-2 py-1","sign_Up"===r&&"bg-primary text-black"),onClick:()=>n("sign_Up"),children:"Sign up"})]}),(0,a.jsx)(i.M,{mode:"wait",children:"sign_In"===r?(0,a.jsx)(G,{isLoading:s,setIsLoading:o}):(0,a.jsx)(V,{isLoading:s,setIsLoading:o})}),(0,a.jsxs)("div",{className:(0,y.cn)("my-6 flex w-full justify-center",s&&"opacity-40"),children:[(0,a.jsx)("div",{className:"my-auto h-px w-8 bg-white/30"}),(0,a.jsx)("p",{className:"px-3 text-xs",children:"or Continue with"}),(0,a.jsx)("div",{className:"my-auto h-px w-8 bg-white/30"})]}),(0,a.jsx)(J,{providers:t,isLoading:s,setIsLoading:o})]})})};var Q=r(99485),ee=r(63726);let et=e=>(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"Anim bg-foreground/5 hover:bg-foreground/10 flex h-20 min-w-64 cursor-pointer rounded-md p-2",children:[(0,a.jsx)("div",{className:"relative h-16 min-w-16 overflow-hidden rounded-md",children:e.image?(0,a.jsx)(ee.default,{src:e.image,alt:"cart_".concat(e.name),fill:!0,objectFit:"cover"}):(0,a.jsx)("div",{className:"bg-foreground/30 absolute h-full w-full"})}),(0,a.jsxs)("div",{className:"pointer-events-none pl-2",children:[(0,a.jsx)("p",{className:"font-bold",children:e.name.length>38?e.name.slice(0,38)+"...":e.name}),(0,a.jsxs)("div",{className:"mt-1 flex items-center justify-end font-light opacity-80",children:[(0,a.jsxs)("p",{className:"mr-2 text-base",children:["$",e.price]}),(0,a.jsxs)("p",{className:"bg-background rounded-md px-2 py-0.5",children:["Quality: ",e.quantity]})]})]})]})}),er=()=>{let e=(0,u.ec)(e=>e.cart);return(0,a.jsx)(a.Fragment,{children:0===e.length?(0,a.jsxs)("div",{className:"flex flex-col items-center pb-6 pt-4 text-center text-sm",children:[(0,a.jsxs)("p",{children:["Wanna pick ",(0,a.jsx)("br",{})," your first item?"]}),(0,a.jsx)(Q.default,{href:"/shop",className:"opacity-60 hover:opacity-100",children:"go to shop"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"absolute right-4 top-4 flex cursor-pointer items-center space-x-1 rounded-md fill-foreground",children:[(0,a.jsx)("div",{className:"Anim flex h-8 w-8 items-center justify-center rounded-full bg-foreground/10 hover:bg-primary hover:fill-black",children:(0,a.jsx)("div",{className:"h-4 w-4",children:(0,a.jsx)(h.I8,{})})}),(0,a.jsx)("div",{className:"Anim flex h-8 w-8 items-center justify-center rounded-full bg-foreground/10 hover:bg-primary hover:fill-black",children:(0,a.jsx)("div",{className:"h-4 w-4",children:(0,a.jsx)(h.Nh,{})})})]}),(0,a.jsx)("div",{className:"h-[16rem] overflow-scroll",children:(0,a.jsx)("div",{className:"space-y-2 text-sm",children:e.map(e=>(0,l.createElement)(et,{...e,key:"nav_actionCart-".concat(e.id)}))})})]})})},en=()=>(0,a.jsx)(a.Fragment,{}),es=e=>{let{session:t,providers:r,action:n}=e,s=(0,l.useMemo)(()=>({settings:F,user:(0,l.memo)(()=>t?(0,a.jsx)(H.n,{session:t}):null),portal:(0,l.memo)(()=>(0,a.jsx)($,{providers:r})),cart:er,notifications:()=>null,wallet:()=>null,menu_canvas:()=>null,dyn_nav_mobile:en}),[t,r])[n],[c,M]=(0,A.i8)();(0,l.useEffect)(()=>{M(void 0!==n)},[n,M]);let d={initial:{y:20,opacity:0,x:"-50%"},animate:{y:0,opacity:1,x:"-50%"},exit:{y:20,opacity:0,x:"-50%"}};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(i.M,{children:n&&n!==u.F1.MENU_CANVAS&&(0,a.jsx)(o.E.div,{className:"border-foreground/10 bg-background/20 fixed bottom-20 left-1/2 z-90  rounded-md border p-3 backdrop-blur-md",initial:d.initial,animate:d.animate,exit:d.exit,children:(0,a.jsx)(s,{})})})})};var ea=r(40862);let el=e=>{let{dataState:t}=e,r=(0,u.tN)(e=>e.setScrollTo);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(o.E.div,{className:"relative flex aspect-square cursor-pointer p-1 [&_circle]:fill-foreground/[0.07] [&:hover_circle]:fill-foreground/[0.4]",onClick:()=>{r(0)},children:[(0,a.jsx)(ea.Up,{className:"absolute top-1/2 left-1/2 h-1/2 w-1/2 -translate-x-1/2 -translate-y-1/2"}),(0,a.jsx)("svg",{className:"h-full w-full -rotate-90 stroke-primary",viewBox:"0 0 90 90",children:(0,a.jsx)(o.E.circle,{r:"42",cx:"45",cy:"45",rotate:45,className:"transition-all will-change-transform",strokeWidth:6,pathLength:t.scrollProgress})})]})})},ei=e=>{let{dataState:t}=e,r=(0,B.useRouter)(),n=(0,u.tN)(e=>e.onClearAllNavState);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(o.E.div,{className:"aspect-square cursor-pointer p-1",children:(0,a.jsx)("div",{className:"Anim flex h-full w-full rounded-full bg-foreground/[0.07] hover:bg-primary hover:text-background",onClick:()=>{r.push(t.href),n()},children:(0,a.jsx)(ea.dv,{className:"m-auto h-1/2 w-1/2"})})})})};var eo=r(61959);let ec=e=>{let{children:t,title:r,index:n}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(o.E.div,{className:"flex items-center space-x-4 text-foreground backdrop-blur-lg hover:text-background [&:hover>button]:bg-primary/90 [&:hover>p]:bg-primary/90 [&>button]:bg-background/90 [&>p]:bg-background/90",initial:{opacity:0,y:10},animate:{opacity:1,rotateZ:4*n,y:-(7*n),x:30+-30*Math.cos(.3*n)},transition:{delay:.05*n,ease:"easeIn",duration:.3},children:[(0,a.jsx)("p",{className:"Anim rounded-md px-2 py-1 text-xs backdrop-blur-md",children:r}),(0,a.jsx)("button",{className:"Anim flex h-10 w-10 rounded-full backdrop-blur-md",type:"button",title:"facebook",children:t},"Fs_facebook")]})})},eM=e=>{let{_dataState:t,index:r}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(eo.Dk,{url:t.url,quote:t.title,hashtag:"theiceji",children:(0,a.jsx)(ec,{title:"Facebook",index:r,children:(0,a.jsx)(Y.tBk,{className:"m-auto text-xs"})})})})},ed=e=>{let{_dataState:t,index:r}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(eo.B,{url:t.url,title:t.title,hashtags:["theiceji"],children:(0,a.jsx)(ec,{title:"Twitter",index:r,children:(0,a.jsx)(Y.LCd,{className:"m-auto text-xs"})})})})},eu=e=>{let{_dataState:t,index:r}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(eo.MC,{url:t.url,media:t.img,description:t.title,children:(0,a.jsx)(ec,{title:"Pinterest",index:r,children:(0,a.jsx)(Y.cad,{className:"m-auto text-xs"})})})})},em=e=>{let{_dataState:t,index:r}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(eo.Ni,{url:t.url,title:t.title,children:(0,a.jsx)(ec,{title:"Line",index:r,children:(0,a.jsx)(Y.MtN,{className:"m-auto text-xs"})})})})},ex=e=>{let{_dataState:t,index:r}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(eo.m$,{url:t.url,title:t.title,image:t.img,children:(0,a.jsx)(ec,{title:"Weibo",index:r,children:(0,a.jsx)(Y.aJW,{className:"m-auto text-xs"})})})})},eh=e=>{let{_dataState:t,index:r}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{onClick:()=>navigator.clipboard.writeText(t.url),title:t.title,children:(0,a.jsx)(ec,{title:"Copy",index:r,children:(0,a.jsx)(Y.VD6,{className:"m-auto text-xs"})})})})},ef=e=>{let{_dataState:t,socialName:r,index:n}=e;switch(r){case u.ep.facebook:return(0,a.jsx)(eM,{_dataState:t,index:n});case u.ep.twitter:return(0,a.jsx)(ed,{_dataState:t,index:n});case u.ep.pinterest:return(0,a.jsx)(eu,{_dataState:t,index:n});case u.ep.line:return(0,a.jsx)(em,{_dataState:t,index:n});case u.ep.weibo:return(0,a.jsx)(ex,{_dataState:t,index:n});default:return null}},ep=e=>{let{dataState:t}=e,[r,n]=(0,l.useState)(!1);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(o.E.div,{className:"relative aspect-square cursor-pointer p-1",onClick:()=>{n(e=>!e)},children:[(0,a.jsx)("div",{className:(0,y.cn)("Anim flex h-full w-full rounded-full",r?"border-foreground/60 border border-dashed":"bg-foreground/[0.07] hover:bg-foreground/40"),children:r?(0,a.jsx)(ea.Rk,{className:"m-auto h-1/2 w-1/2"}):(0,a.jsx)(ea.mB,{className:"m-auto h-1/2 w-1/2"})}),(0,a.jsx)(i.M,{mode:"wait",children:r&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(o.E.div,{className:"absolute right-0 bottom-16 flex flex-col-reverse items-end",exit:{opacity:0},children:[t.social.map((e,r)=>(0,a.jsx)(ef,{socialName:e,_dataState:t,index:r},"nav_dynShare-".concat(e,"-").concat(r))),(0,a.jsx)(eh,{_dataState:t,index:t.social.length})]})})})]})})},eN=e=>{let{dataState:t}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(o.E.div,{className:"aspect-square cursor-pointer p-1",children:(0,a.jsx)("a",{className:"Anim flex h-full w-full rounded-full bg-foreground/[0.07] hover:bg-primary hover:text-background",href:t.href,target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(ea.dL,{className:"m-auto h-1/2 w-1/2"})})})})},eg=e=>{let{module:t,_setCursor:r,mouseX:n}=e,s=(0,l.useMemo)(()=>({[u.nS.PROGRESS]:el,[u.nS.BACK]:ei,[u.nS.SHARE]:ep,[u.nS.EXTERNAL_LINK]:eN}),[])[t.type];return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(v,{mouseX:n,width:46,onClick:()=>{r(void 0)},children:(0,a.jsx)(s,{dataState:t})})})},ev=(0,l.memo)(e=>{let{_setCursor:t,mouseX:r}=e,n=(0,u.tN)(e=>e.dynamicNav);return 0===n.length?null:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:(0,y.cn)("hidden grow items-center justify-end rounded-md border border-foreground/[0.07] bg-foreground/[0.05] shadow-md backdrop-blur-md md:flex",1===n.length?"ml-2":"ml-2 px-2"),children:(0,a.jsx)(o.E.div,{className:"flex h-full items-end fill-foreground",children:n.map(e=>(0,a.jsx)(eg,{module:e,_setCursor:t,mouseX:r},"nav_dyn-".concat(e.type)))})})})});var ej=r(72844);let ey=e=>{let{session:t,_onToggleNavAction:r,_setCursor:n}=e,s=t.user.name.length>8?t.user.name.slice(0,8)+".":t.user.name,l=t.user.username.length>8?t.user.username.slice(0,8)+".":t.user.username;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"h-full cursor-pointer px-4 py-1.5",style:{margin:"0 0 0 -8px"},onClick:()=>{r(u.F1.USER),n(void 0)},children:(0,a.jsxs)("div",{className:"flex h-full w-full items-center justify-center",children:[(0,a.jsx)("div",{className:"relative aspect-square h-full overflow-hidden rounded-md",children:(0,a.jsx)(ej.E,{src:t.user.image||"/images/app/user/default_profile.png",alt:"user profile",fill:!0})}),(0,a.jsxs)("div",{className:"grow pl-2 whitespace-nowrap",children:[(0,a.jsx)("p",{className:"text-sm font-bold",children:s}),(0,a.jsxs)("p",{className:"-mt-px text-xs opacity-60",children:["@",l]})]})]})})})},eb=(0,l.memo)(e=>{let{session:t,_onToggleNavAction:r,_setCursor:n}=e;return t?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"border-foreground/[0.07] bg-foreground/[0.05] ml-2 hidden grow items-center justify-end rounded-md border shadow-md backdrop-blur-md md:flex",children:(0,a.jsx)(o.E.div,{className:"fill-foreground flex h-full [&>div]:h-full",children:(0,a.jsx)(ey,{session:t,_onToggleNavAction:r,_setCursor:n})})})}):null}),e_=e=>{let{session:t,providers:r}=e,[n,s,m,h,f]=(0,u.tN)((0,c.N)(e=>[e.nav,e.navAction,e.onToggleNavAction,e.onClearNavAction,e.onToggleModal])),p=(0,u.tN)(e=>e.setCursor),N=(0,l.useRef)(null);(0,d.t$)(N,()=>h());let{mouse:g,Dock:v}=(0,M.D)();return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(i.M,{children:n&&(0,a.jsxs)(o.E.div,{initial:{y:150,x:"50%"},animate:{y:0,x:"50%"},exit:{y:150,x:"50%"},className:"fixed right-1/2 bottom-0 z-80 px-5 py-2 2xl:py-4",ref:N,children:[(0,a.jsxs)(v,{className:"relative flex h-12 scale-80 rounded-md 2xl:scale-100 dark:shadow-xl",whileHover:{scale:1.05,perspective:1,z:0},options:{dockAlign:"X"},children:[(0,a.jsxs)("div",{className:"flex h-full min-w-14 items-center rounded-l-md bg-black/[0.07] shadow-md backdrop-blur-md dark:bg-white/[0.07]",children:[(0,a.jsx)(x,{_setCursor:p,_onToggleModal:f}),(0,a.jsx)(j,{_setCursor:p,_onClearNavAction:h,mouseX:g})]}),(0,a.jsx)("div",{className:"flex grow items-center justify-end rounded-r-md border border-foreground/[0.07] px-4 shadow-md backdrop-blur-md",id:"nprogress-nav-parent",children:(0,a.jsx)(w,{_navAction:s,_setCursor:p,_onToggleNavAction:m,_onToggleModal:f,mouseX:g,session:t})}),(0,a.jsx)(eb,{session:t,_onToggleNavAction:m,_setCursor:p}),(0,a.jsx)(ev,{mouseX:g,_setCursor:p})]}),(0,a.jsx)(es,{action:s,session:t,providers:r})]})})})}},63281:function(e,t,r){"use strict";r.d(t,{cI:function(){return l},t$:function(){return a}});var n=r(2265),s=r(38895);function a(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mousedown";!function(e,t,r){let a=(0,n.useRef)(t);(0,s.LI)(()=>{a.current=t},[t]),(0,n.useEffect)(()=>{let t=window;if(!(t&&t.addEventListener))return;let r=e=>a.current(e);return t.addEventListener(e,r),()=>{t.removeEventListener(e,r)}},[e,void 0])}(r,r=>{let n=null==e?void 0:e.current;!n||n.contains(r.target)||t(r)})}function l(e){let{initialData:t,onInit:r,onSubmit:s,onError:a,validate:l,resetOnSubmit:i=!1}=e,[o,c]=(0,n.useState)(t),[M,d]=(0,n.useState)(!1),[u,m]=(0,n.useState)([]),[x,h]=(0,n.useState)(!1),f=(0,n.useCallback)(()=>{c(t),m([]),h(!1)},[t]);(0,n.useEffect)(()=>{(async()=>{if(r)try{await r()}catch(t){let e={error:t,message:"Failed to initialize form"};m([e]),null==a||a(e)}})()},[r]);let p=(0,n.useCallback)((e,t)=>{c(r=>({...r,[e]:t})),h(!0)},[]),N=(0,n.useCallback)(e=>{let{name:t,value:r,type:n}=e.target,s=r;if("checkbox"===n)s=e.target.checked;else if("number"===n||"range"===n)s=""===r?"":Number(r);else if("file"===n){var a,l;let t=e.target;s=t.multiple?t.files:null!==(l=null===(a=t.files)||void 0===a?void 0:a[0])&&void 0!==l?l:null}p(t,s)},[p]),g=async()=>{if(!l)return[];try{let e=await l(o);return Array.isArray(e)?e:[]}catch(e){return[{error:e,message:"Validation failed unexpectedly"}]}},v=async e=>{e.preventDefault(),m([]),d(!0);try{let t=await g();if(t.length>0){m(t),t.forEach(e=>null==a?void 0:a(e));return}await s(o,e),i&&f()}catch(t){let e={error:t,message:t instanceof Error?t.message:"Form submission failed"};m([e]),null==a||a(e)}finally{d(!1)}};return{formData:o,handleChange:N,handleSubmit:v,setFormData:c,reset:f,isSubmitting:M,errors:u,setFieldValue:p,isDirty:x}}},38895:function(e,t,r){"use strict";r.d(t,{LI:function(){return s},i8:function(){return a}});var n=r(2265);let s=n.useLayoutEffect;function a(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[t,r]=(0,n.useState)(e);return s(()=>{if(!t)return;let e=document.body.style.overflow,r=document.body.style.paddingRight;document.body.style.overflow="hidden";let n=document.getElementById("___gatsby"),s=n?n.offsetWidth-n.scrollWidth:0;return s&&(document.body.style.paddingRight="".concat(s,"px")),()=>{document.body.style.overflow=e,s&&(document.body.style.paddingRight=r)}},[t]),(0,n.useEffect)(()=>{t!==e&&r(e)},[e]),[t,r]}},75348:function(e,t,r){"use strict";r.d(t,{oH:function(){return a},uo:function(){return o}});var n=r(29);let s=n.z.string().regex(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,"Invalid email format").min(1,"Email is required").max(254,"Email must be less than 254 characters").transform(e=>e.toLowerCase()),a=e=>{try{let t=s.parse(e);return{isValid:!0,value:t}}catch(e){if(e instanceof n.z.ZodError)return{isValid:!1,error:e.errors[0].message};return{isValid:!1,error:"An unexpected error occurred during validation"}}},l="!@#$%^&*()_+=-[]{}|;:'\",.<>?/`",i=n.z.string().min(8,"Password must be at least 8 characters long").max(100,"Password must not exceed 100 characters").regex(/[A-Z]/,"Password must contain at least one uppercase letter").regex(/[a-z]/,"Password must contain at least one lowercase letter").regex(/[0-9]/,"Password must contain at least one number").regex(new RegExp("[".concat(l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"]")),"Password must contain at least one special character (#?!@$%^&*_-)").regex(/^\S*$/,"Password must not contain spaces"),o=e=>{let t={minLength:e.length>=8,uppercase:/[A-Z]/.test(e),lowercase:/[a-z]/.test(e),number:/[0-9]/.test(e),specialChar:new RegExp("[".concat(l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"]")).test(e),noSpace:!/\s/.test(e)};try{return i.parse(e),{isValid:!0,requirements:t}}catch(e){if(e instanceof n.z.ZodError)return{isValid:!1,requirements:t,error:e.errors[0].message};return{isValid:!1,requirements:t,error:"An unexpected error occurred during validation"}}}},43547:function(e,t,r){"use strict";r.d(t,{D:function(){return d}});var n,s,a=r(57437),l=r(2265),i=r(79550),o=r(53116),c=r(88840);(n=s||(s={})).X="X",n.Y="Y";let M={dockAlign:s.X},d=()=>{let e=(0,l.useRef)((0,i.c)(1/0)).current,t=(0,l.memo)(t=>{let{children:r,options:n=M,className:l,onClick:i,whileHover:d}=t;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(o.E.div,{className:(0,c.cn)(l),style:{perspective:1},whileHover:d,onMouseMove:t=>e.set(n.dockAlign===s.X?t.pageX:t.pageY),onTap:()=>e.set(1/0),onMouseLeave:()=>e.set(1/0),onClick:i,children:r})})});return{mouse:e,Dock:t}}},60491:function(e,t,r){"use strict";r.d(t,{S:function(){return n}});let n=(0,r(3226).ec)({})},40862:function(e,t,r){"use strict";r.d(t,{Rk:function(){return d},Up:function(){return M},a2:function(){return m},dL:function(){return c},dv:function(){return u},mB:function(){return o},v3:function(){return i}});var n=r(5999),s=r(72463),a=r(66057),l=r(61606);let i=a.$eR,o=l.wdf,c=s.Ma9,M=n.$Pg,d=n.iUH,u=n._HU,m=n.ZTc},72844:function(e,t,r){"use strict";r.d(t,{E:function(){return a}});var n=r(57437),s=r(63726);let a=e=>{let{unoptimized:t,src:r,alt:a,className:l,objectFit:i="cover",objectPosition:o="50% 50%",quality:c=90,...M}=e,d={objectFit:i,objectPosition:o};if(t){let{width:e,height:t,fill:s,blurDataURL:i,...o}=M,c=e&&t?d:{...d,position:"absolute",width:"100%",height:"100%"};return(0,n.jsx)("img",{src:r,alt:a,className:l,style:c,width:e,height:t,...o})}let{width:u,height:m,fill:x,blurDataURL:h,...f}=M;return(0,n.jsx)(s.default,{src:r,alt:a,className:l,style:d,quality:c,placeholder:"blur",blurDataURL:null!=h?h:"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",...f,...x?{fill:!0}:{width:u,height:m}})}},19146:function(e,t,r){"use strict";r.d(t,{n:function(){return x}});var n=r(57437),s=r(2265),a=r(99485),l=r(13023),i=r(550),o=r(1126),c=r(85638),M=r(72844),d=r(60368);let u=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("ul",{className:"&>li:hover]:duration-100 py-2 text-lg [&>li:hover]:opacity-100 [&>li]:opacity-60 [&>li]:duration-300",children:[(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/dashboard",children:"Dashboard"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/dashboard/activity?section=notifications",children:"Notifications"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/user/settings",children:"Settings"})})]})}),m=()=>{let e=[{id:"001",createdAt:new Date,isRead:!1,title:"Celestia Network 1.0",content:"We are thrilled to announce the official launch of Celestia Network 1.0, your gateway to a decentralized and scalable Web3 experience! As a valued user, you can now explore enhanced features, seamless interactions, and the power of true decentralization. Stay tuned for more updates as we continue to innovate and evolve the network. Join us as we build the next generation of the internet!",link:"https://constella.theiceji.com/changelog/celestia",userId:"theiceji"}];return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"ml-3 w-64 border-l border-foreground/10 pl-3",children:e.length>0&&e.map(e=>(0,n.jsx)(a.default,{href:{pathname:e.link},children:(0,n.jsxs)("div",{className:"Anim w-full overflow-hidden rounded-md bg-foreground/10 p-2 hover:bg-foreground/20",children:[(0,n.jsx)("h6",{className:"font-bold",children:e.title}),(0,n.jsx)("p",{className:"text-xs opacity-40",children:e.createdAt.toDateString()}),(0,n.jsx)("p",{className:"truncate text-sm",children:e.content})]})},"nav_actionUser-notification-".concat(e.id)))})})},x=e=>{let{session:t}=e,[r,x]=(0,s.useState)(!1),[h,f]=(0,c.ec)((0,i.N)(e=>[e.onSetUser,e.notifications])),p=t.user.username.length>8?t.user.username.slice(0,8)+".":t.user.username;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex h-fit",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)(a.default,{className:"Anim bg-foreground/10 hover:bg-foreground/20 flex w-48 cursor-pointer items-center justify-center rounded-md p-2",href:"/profile/".concat(t.user.username),children:[(0,n.jsx)("div",{className:"relative aspect-square w-8 overflow-hidden rounded-md",children:(0,n.jsx)(M.E,{src:t.user.image||"/images/app/user/default_profile.png",alt:"user profile",unoptimized:!0})}),(0,n.jsxs)("div",{className:"grow pl-2",children:[(0,n.jsx)("p",{className:"text-sm font-bold",children:t.user.name}),(0,n.jsxs)("p",{className:"-mt-px text-xs opacity-60",children:["@",p]})]})]}),(0,n.jsx)(u,{}),(0,n.jsxs)("button",{className:(0,o.cn)("Anim bg-foreground/10 fill-foreground flex w-full items-center justify-center rounded-md py-1 hover:bg-red-500 hover:fill-white hover:text-white",r&&"opacity-20"),onClick:()=>{x(!0),(0,l.signOut)()},disabled:r,children:[(0,n.jsx)("div",{className:"mr-2 aspect-square h-5",children:(0,n.jsx)(d.d6,{})}),r?"loading":"Sign Out"]})]}),(0,n.jsx)(m,{})]})})}},1126:function(e,t,r){"use strict";r.d(t,{cn:function(){return a}});var n=r(98099),s=r(18543);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.m6)((0,n.W)(t))}},85638:function(e,t,r){"use strict";r.d(t,{WV:function(){return f},lW:function(){return x},r1:function(){return d},zr:function(){return h},F1:function(){return m},nS:function(){return p},ep:function(){return N},mr:function(){return y},tN:function(){return v},ec:function(){return b}}),(a=d||(d={})).EXPERIENCE="experience",a.SIMPLE="simple",(l=u||(u={})).DRAGGABLE="draggable",l.TOP="top",l.BOTTOM="bottom",l.LEFT="left",l.RIGHT="right",(i=m||(m={})).NOTIFICATIONS="notifications",i.CART="cart",i.SETTINGS="settings",i.PORTAL="portal",i.USER="user",i.WALLET="wallet",i.MENU_CANVAS="menu_canvas",i.DYNAMIC_NAVBAR_MENU="dyn_nav_mobile",(o=x||(x={})).DEFAULT="default",o.BLUR_BG="blur_bg",(c=h||(h={})).APP_INFO="appInfo",c.SEARCH="search",c.SETTINGS="settings",c.USER="user",(M=f||(f={})).LOGO="logo",M.POINTER="pointer",M.GO="go",M.EXPANSE="expanse",M.LENS="lens",M.SCAN="scan";var n,s,a,l,i,o,c,M,d,u,m,x,h,f,p,N,g=r(91637);let v=(0,g.U)((e,t)=>({isDark:!0,setIsDark:t=>e({isDark:t}),onToggleIsDark:()=>e({isDark:!t().isDark}),interface:d.EXPERIENCE,setInterface:t=>e({interface:t}),cursor:void 0,setCursor:t=>e({cursor:t}),mousePosition:{clientX:0,clientY:0},setMousePosition:t=>e({mousePosition:t}),nav:u.BOTTOM,setNav:t=>e({nav:t}),navAction:void 0,onToggleNavAction:r=>e({navAction:t().navAction===r?void 0:r,modal:void 0}),onClearNavAction:()=>e({navAction:void 0}),footer:void 0,setFooter:t=>e({footer:t}),modal:void 0,onToggleModal:r=>e({modal:t().modal===r?void 0:r,navAction:void 0}),onClearModal:()=>e({modal:void 0}),playBackgroundMusic:!1,setPlayBackgroundMusic:t=>e({playBackgroundMusic:t}),onTogglePlayBackgroundMusic:()=>e({playBackgroundMusic:!t().playBackgroundMusic}),dynamicNav:[],setDynamicNav:t=>e(e=>{let{dynamicNav:r}=e;return{dynamicNav:"function"==typeof t?t(r):t}}),addDynamicNav:r=>{let{dynamicNav:n}=t();e({dynamicNav:[...n.filter(e=>e.type!==r.type),r]})},onClearDynamicNav:()=>e({dynamicNav:[]}),onClearAllNavState:()=>e({dynamicNav:[],modal:void 0,navAction:void 0}),scrollTo:void 0,setScrollTo:t=>e({scrollTo:t})}));(n=p||(p={})).PROGRESS="progress",n.BACK="back",n.SHARE="share",n.EXTERNAL_LINK="external_link",(s=N||(N={})).facebook="facebook",s.twitter="twitter",s.pinterest="pinterest",s.line="line",s.weibo="weibo";var j=r(96631);let y=(0,g.U)((e,t)=>({gpuTier:null,searchDataIndex:[],onAppInit:async t=>{let{searchDataIndex:r}=t,n=await (0,j.M)();e({gpuTier:n,searchDataIndex:r}),console.log({status:"set GPU complete",GPUdata:n})}})),b=(0,g.U)((e,t)=>({user:void 0,onSetUser:r=>{t().user||e({user:r})},onClearUser:()=>e({user:void 0}),notifications:[],setNotifications:t=>e({notifications:t}),cart:[],setCart:t=>e({cart:t}),onAddCart:r=>e({cart:[...t().cart,...r]}),onRemoveCart:r=>{let{cart:n}=t();e({cart:n.filter(e=>e.id!==r)})}}))},90140:function(e){e.exports={cursor_little:"controller_cursor_cursor_little__kjLCE",logo:"controller_cursor_logo__rcqtR",expanse:"controller_cursor_expanse__59IdX",square:"controller_cursor_square__D5pNn",go:"controller_cursor_go__hemu_",cursor_big:"controller_cursor_cursor_big__iARaq",active:"controller_cursor_active__9xk3N",lens:"controller_cursor_lens__qrfq7"}},65639:function(e){e.exports={action_settings:"nav_action_action_settings__O_MvL"}},66320:function(e){e.exports={canvas_menu_item:"nav_canvas_canvas_menu_item__sPDqr",canvas_bg_text:"nav_canvas_canvas_bg_text__rAKR8"}},72350:function(e,t,r){"use strict";r.d(t,{O:function(){return d}});var n=r(15970),s=r(29),a=r(25566);let l={NEXTAUTH_SECRET:s.z.string().min(1),NEXTAUTH_URL:s.z.preprocess(e=>{var t;return null!==(t=a.env.VERCEL_URL)&&void 0!==t?t:e},a.env.VERCEL?s.z.string().min(1):s.z.string().url()),TOKEN:s.z.string().min(1),GRAPHQL_POST_URL:s.z.string().url(),GRAPHQL_PROJECT_URL:s.z.string().url(),MONGODB_URI:s.z.string().url(),ACCELERATE_URI:s.z.string().url(),REDIS_URL:s.z.string().url(),AUTH_FB_APP_ID:s.z.string(),AUTH_FB_APP_SECRET:s.z.string(),AUTH_GITHUB_CLIENT_ID:s.z.string(),AUTH_GITHUB_CLIENT_SECRET:s.z.string(),AUTH_GOOGLE_CLIENT_ID:s.z.string(),AUTH_GOOGLE_CLIENT_SECRET:s.z.string(),AUTH_DISCORD_CLIENT_ID:s.z.string(),AUTH_DISCORD_CLIENT_SECRET:s.z.string(),S3_ORIGINS:s.z.preprocess(e=>String(e).split(","),s.z.array(s.z.string()).optional()),S3_UPLOAD_ENDPOINT:s.z.string(),S3_UPLOAD_KEY:s.z.string(),S3_UPLOAD_SECRET:s.z.string(),S3_UPLOAD_REGION:s.z.string(),S3_UPLOAD_BUCKET:s.z.string(),EMAIL_HOST:s.z.string(),EMAIL_PORT:s.z.preprocess(e=>parseInt(String(e)),s.z.number()),EMAIL_SECURE:s.z.preprocess(e=>!0===e||"true"===e,s.z.boolean()),EMAIL_USER:s.z.string(),EMAIL_PASS:s.z.string(),EMAIL_FROM:s.z.string(),STRIPE_SECRET_KEY:s.z.string(),STRIPE_WEBHOOK_SECRET:s.z.string(),STRIPE_DONATE_ID:s.z.string(),STRIPE_METADATA_KEY:s.z.string(),ALCHEMY_API:s.z.string()},i={NEXT_PUBLIC_GTM:s.z.string(),NEXT_PUBLIC_S3_DOWNLOAD_ENDPOINT:s.z.string(),NEXT_PUBLIC_WEB3_PROJECT_ID:s.z.string()};var o=r(25566);let c={NEXTAUTH_SECRET:o.env.NEXTAUTH_SECRET,NEXTAUTH_URL:o.env.NEXTAUTH_URL,TOKEN:o.env.TOKEN,GRAPHQL_POST_URL:o.env.GRAPHQL_POST_URL,GRAPHQL_PROJECT_URL:o.env.GRAPHQL_PROJECT_URL,MONGODB_URI:o.env.MONGODB_URI,ACCELERATE_URI:o.env.ACCELERATE_URI,REDIS_URL:o.env.REDIS_URL,AUTH_FB_APP_ID:o.env.AUTH_FB_APP_ID,AUTH_FB_APP_SECRET:o.env.AUTH_FB_APP_SECRET,AUTH_GITHUB_CLIENT_ID:o.env.AUTH_GITHUB_CLIENT_ID,AUTH_GITHUB_CLIENT_SECRET:o.env.AUTH_GITHUB_CLIENT_SECRET,AUTH_GOOGLE_CLIENT_ID:o.env.AUTH_GOOGLE_CLIENT_ID,AUTH_GOOGLE_CLIENT_SECRET:o.env.AUTH_GOOGLE_CLIENT_SECRET,AUTH_DISCORD_CLIENT_ID:o.env.AUTH_DISCORD_CLIENT_ID,AUTH_DISCORD_CLIENT_SECRET:o.env.AUTH_DISCORD_CLIENT_SECRET,S3_ORIGINS:o.env.S3_ORIGINS,S3_UPLOAD_ENDPOINT:o.env.S3_UPLOAD_ENDPOINT,S3_UPLOAD_KEY:o.env.S3_UPLOAD_KEY,S3_UPLOAD_SECRET:o.env.S3_UPLOAD_SECRET,S3_UPLOAD_REGION:o.env.S3_UPLOAD_REGION,S3_UPLOAD_BUCKET:o.env.S3_UPLOAD_BUCKET,EMAIL_HOST:o.env.EMAIL_HOST,EMAIL_PORT:o.env.EMAIL_PORT,EMAIL_SECURE:o.env.EMAIL_SECURE,EMAIL_USER:o.env.EMAIL_USER,EMAIL_PASS:o.env.EMAIL_PASS,EMAIL_FROM:o.env.EMAIL_FROM,STRIPE_SECRET_KEY:o.env.STRIPE_SECRET_KEY,STRIPE_WEBHOOK_SECRET:o.env.STRIPE_WEBHOOK_SECRET,STRIPE_DONATE_ID:o.env.STRIPE_DONATE_ID,STRIPE_METADATA_KEY:o.env.STRIPE_METADATA_KEY,ALCHEMY_API:o.env.ALCHEMY_API,NEXT_PUBLIC_WEB3_PROJECT_ID:"beb9e9886546a9c591a8d64d3dd3b6c9",NEXT_PUBLIC_GTM:"GTM-WLLVG6L",NEXT_PUBLIC_S3_DOWNLOAD_ENDPOINT:"https://orion.theiceji.com"};var M=r(25566);let d=(0,n.D)({server:l,client:i,runtimeEnv:c,skipValidation:!!M.env.SKIP_ENV_VALIDATION})}}]);