1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7352,(e,t,i)=>{!function(e){"use strict";var a="function",r="undefined",s="object",n="string",l="major",o="model",c="name",d="type",m="vendor",u="version",h="architecture",p="console",x="mobile",g="tablet",b="smarttv",f="wearable",w="embedded",v="Amazon",y="Apple",_="ASUS",j="BlackBerry",k="Browser",N="Chrome",C="Firefox",T="Google",E="Honor",S="Huawei",A="Microsoft",I="Motorola",O="Nvidia",M="OnePlus",P="Opera",R="OPPO",D="Samsung",L="Sharp",z="Sony",q="Xiaomi",B="Zebra",G="Facebook",H="Chromium OS",U="Mac OS",F=" Browser",$=function(e,t){var i={};for(var a in e)t[a]&&t[a].length%2==0?i[a]=t[a].concat(e[a]):i[a]=e[a];return i},V=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},X=function(e,t){return typeof e===n&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},Y=function(e,t){if(typeof e===n)return e=e.replace(/^\s\s*/,""),typeof t===r?e:e.substring(0,500)},K=function(e,t){for(var i,r,n,l,o,c,d=0;d<t.length&&!o;){var m=t[d],u=t[d+1];for(i=r=0;i<m.length&&!o&&m[i];)if(o=m[i++].exec(e))for(n=0;n<u.length;n++)c=o[++r],typeof(l=u[n])===s&&l.length>0?2===l.length?typeof l[1]==a?this[l[0]]=l[1].call(this,c):this[l[0]]=l[1]:3===l.length?typeof l[1]!==a||l[1].exec&&l[1].test?this[l[0]]=c?c.replace(l[1],l[2]):void 0:this[l[0]]=c?l[1].call(this,c,l[2]):void 0:4===l.length&&(this[l[0]]=c?l[3].call(this,c.replace(l[1],l[2])):void 0):this[l]=c||void 0;d+=2}},Z=function(e,t){for(var i in t)if(typeof t[i]===s&&t[i].length>0){for(var a=0;a<t[i].length;a++)if(X(t[i][a],e))return"?"===i?void 0:i}else if(X(t[i],e))return"?"===i?void 0:i;return t.hasOwnProperty("*")?t["*"]:e},Q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[u,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[u,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,u],[/opios[\/ ]+([\w\.]+)/i],[u,[c,P+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[u,[c,P+" GX"]],[/\bopr\/([\w\.]+)/i],[u,[c,P]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[u,[c,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[u,[c,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,u],[/quark(?:pc)?\/([-\w\.]+)/i],[u,[c,"Quark"]],[/\bddg\/([\w\.]+)/i],[u,[c,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[u,[c,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[u,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[u,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[u,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[u,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[u,[c,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+k],u],[/\bfocus\/([\w\.]+)/i],[u,[c,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[u,[c,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[u,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[u,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[u,[c,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[u,[c,"MIUI"+F]],[/fxios\/([\w\.-]+)/i],[u,[c,C]],[/\bqihoobrowser\/?([\w\.]*)/i],[u,[c,"360"]],[/\b(qq)\/([\w\.]+)/i],[[c,/(.+)/,"$1Browser"],u],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1"+F],u],[/samsungbrowser\/([\w\.]+)/i],[u,[c,D+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[u,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],u],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[c,u],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[c],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[u,c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,G],u],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[c,u],[/\bgsa\/([\w\.]+) .*safari\//i],[u,[c,"GSA"]],[/musical_ly(?:.
1+app_?version\/|_)([\w\.]+)/i],[u,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[u,[c,N+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,N+" WebView"],u],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[u,[c,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,u],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[u,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[u,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[u,Z,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,u],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],u],[/(wolvic|librewolf)\/([\w\.]+)/i],[c,u],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[u,[c,C+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[c,[u,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[c,[u,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[h,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[h,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[h,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[h,/ower/,"",W]],[/ sun4\w[;\)]/i],[[h,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[h,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[o,[m,D],[d,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[o,[m,D],[d,x]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[o,[m,y],[d,x]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[o,[m,y],[d,g]],[/(macintosh);/i],[o,[m,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[o,[m,L],[d,x]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[o,[m,E],[d,g]],[/honor([-\w ]+)[;\)]/i],[o,[m,E],[d,x]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[o,[m,S],[d,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[o,[m,S],[d,x]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[o,/_/g," "],[m,q],[d,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[o,/_/g," "],[m,q],[d,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[o,[m,R],[d,x]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[o,[m,Z,{OnePlus:["304","403","203"],"*":R}],[d,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[o,[m,"Vivo"],[d,x]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[o,[m,"Realme"],[d,x]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[o,[m,I],[d,x]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[o,[m,I],[d,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[o,[m,"LG"],[d,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[o,[m,"LG"],[d,x]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
1(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[o,[m,"Lenovo"],[d,g]],[/(nokia) (t[12][01])/i],[m,o,[d,g]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[o,/_/g," "],[d,x],[m,"Nokia"]],[/(pixel (c|tablet))\b/i],[o,[m,T],[d,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[o,[m,T],[d,x]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[o,[m,z],[d,x]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[o,"Xperia Tablet"],[m,z],[d,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[o,[m,M],[d,x]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[o,[m,v],[d,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[o,/(.+)/g,"Fire Phone $1"],[m,v],[d,x]],[/(playbook);[-\w\),; ]+(rim)/i],[o,m,[d,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[o,[m,j],[d,x]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[o,[m,_],[d,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[o,[m,_],[d,x]],[/(nexus 9)/i],[o,[m,"HTC"],[d,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[o,/_/g," "],[d,x]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[o,[m,"TCL"],[d,g]],[/(itel) ((\w+))/i],[[m,W],o,[d,Z,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[o,[m,"Acer"],[d,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[o,[m,"Meizu"],[d,x]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[o,[m,"Ulefone"],[d,x]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[o,[m,"Energizer"],[d,x]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[o,[m,"Cat"],[d,x]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[o,[m,"Smartfren"],[d,x]],[/droid.+; (a(?:015|06[35]|142p?))/i],[o,[m,"Nothing"],[d,x]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[o,[m,"Archos"],[d,g]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[o,[m,"Archos"],[d,x]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[m,o,[d,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[m,o,[d,x]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,o,[d,g]],[/(surface duo)/i],[o,[m,A],[d,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[o,[m,"Fairphone"],[d,x]],[/(u304aa)/i],[o,[m,"AT&T"],[d,x]],[/\bsie-(\w*)/i],[o,[m,"Siemens"],[d,x]],[/\b(rct\w+) b/i],[o,[m,"RCA"],[d,g]],[/\b(venue[\d ]{2,7}) b/i],[o,[m,"Dell"],[d,g]],[/\b(q(?:mv|ta)\w+) b/i],[o,[m,"Verizon"],[d,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[o,[m,"Barnes & Noble"],[d,g]],[/\b(tm\d{3}\w+) b/i],[o,[m,"NuVision"],[d,g]],[/\b(k88) b/i],[o,[m,"ZTE"],[d,g]],[/\b(nx\d{3}j) b/i],[o,[m,"ZTE"],[d,x]],[/\b(gen\d{3}) b.+49h/i],[o,[m,"Swiss"],[d,x]],[/\b(zur\d{3}) b/i],[o,[m,"Swiss"],[d,g]],[/\b((zeki)?tb.*\b) b/i],[o,[m,"Zeki"],[d,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],o,[d,g]],[/\b(ns-?\w{0,9}) b/i],[o,[m,"Insignia"],[d,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[o,[m,"NextBook"],[d,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],o,[d,x]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],o,[d,x]],[/\b(ph-1) /i],[o,[m,"Essential"],[d,x]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[o,[m,"Envizen"],[d,g]],[/\b(trio[-\w\. ]+) b/i],[o,[m,"MachSpeed"],[d,g]],[/\btu_(1491) b/i],[o,[m,"Rotor"],[d,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[o,[m,O],[d,g]],[/(sprint) (\w+)/i],[m,o,[d,x]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[m,A],[d,x]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[o,[m,B],[d,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[o,[m,B],[d,x]],[/smart-tv.+(samsung)/i],[m,[d,b]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[m,D],[d,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,"LG"],[d,b]],[/(apple) ?tv/i],[m,[o,y+" TV"],[d,b]],[/crkey/i],[[o,N+"cast"],[m,T],[d,b]],[/droid.+aft(\w+)( bui|\))/i],[o,[m,v],[d,b]],[/(shield \w+ tv)/i],[o,[m,O],[d,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[o,[m,L],[d,b]],[/(bravia[\w ]+)( bui|\))/i],[o,[m,z],[d,b]],[/(mi(tv|box)-?\w+) bui/i],[o,[m,q],[d,b]],[/Hbbtv.*(technisat) (.*);/i],[m,o,[d,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,Y],[o,Y],[d,b]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[o,[d,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,o,[d,p]],[/droid.+; (shield)( bui|\))/i],[o,[m,O],[d,p]],[/(playstation \w+)/i],[o,[m,z],[d,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[o,[m,A],[d,p]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[o,[m,D],[d,f]],[/((pebble))app/i,/(asu
vendor: 4,241 bytes, line 1
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[m,o,[d,f]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[o,[m,R],[d,f]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[o,[m,y],[d,f]],[/(opwwe\d{3})/i],[o,[m,M],[d,f]],[/(moto 360)/i],[o,[m,I],[d,f]],[/(smartwatch 3)/i],[o,[m,z],[d,f]],[/(g watch r)/i],[o,[m,"LG"],[d,f]],[/droid.+; (wt63?0{2,3})\)/i],[o,[m,B],[d,f]],[/droid.+; (glass) \d/i],[o,[m,T],[d,f]],[/(pico) (4|neo3(?: link|pro)?)/i],[m,o,[d,f]],[/; (quest( \d| pro)?)/i],[o,[m,G],[d,f]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[d,w]],[/(aeobc)\b/i],[o,[m,v],[d,w]],[/(homepod).+mac os/i],[o,[m,y],[d,w]],[/windows iot/i],[[d,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[o,[d,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[o,[d,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,x]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[o,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[u,[c,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[c,u],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,u],[/ladybird\//i],[[c,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[u,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,u],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[c,[u,Z,Q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,Z,Q],[c,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[u,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,U],[u,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[u,c],[/(ubuntu) ([\w\.]+) like android/i],[[c,/(.+)/,"$1 Touch"],u],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[c,u],[/\(bb(10);/i],[u,[c,j]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[u,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[u,[c,C+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[u,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[u,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[u,[c,N+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,H],u],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,u],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],u],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,u]]},ee=function(t,i){if(typeof t===s&&(i=t,t=void 0),!(this instanceof ee))return new ee(t,i).getResult();var p=typeof e!==r&&e.navigator?e.navigator:void 0,b=t||(p&&p.userAgent?p.userAgent:""),f=p&&p.userAgentData?p.userAgentData:void 0,w=i?$(J,i):J,v=p&&p.userAgent==b;return this.getBrowser=function(){var e,t={};return t[c]=void 0,t[u]=void 0,K.call(t,b,w.browser),t[l]=typeof(e=t[u])===n?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,v&&p&&p.brave&&typeof p.brave.isBrave==a&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=void 0,K.call(e,b,w.cpu),e},this.getDevice=function(){var e={};return e[m]=void 0,e[o]=void 0,e[d]=void 0,K.call(e,b,w.device),v&&!e[d]&&f&&f.mobile&&(e[d]=x),v&&"Macintosh"==e[o]&&p&&t
1ypeof p.standalone!==r&&p.maxTouchPoints&&p.maxTouchPoints>2&&(e[o]="iPad",e[d]=g),e},this.getEngine=function(){var e={};return e[c]=void 0,e[u]=void 0,K.call(e,b,w.engine),e},this.getOS=function(){var e={};return e[c]=void 0,e[u]=void 0,K.call(e,b,w.os),v&&!e[c]&&f&&f.platform&&"Unknown"!=f.platform&&(e[c]=f.platform.replace(/chrome os/i,H).replace(/macos/i,U)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return b},this.setUA=function(e){return b=typeof e===n&&e.length>500?Y(e,500):e,this},this.setUA(b),this};ee.VERSION="1.0.41",ee.BROWSER=V([c,u,l]),ee.CPU=V([h]),ee.DEVICE=V([o,m,d,p,x,b,g,f,w]),ee.ENGINE=ee.OS=V([c,u]),t.exports&&(i=t.exports=ee),i.UAParser=ee;var et=typeof e!==r&&(e.jQuery||e.Zepto);if(et&&!et.ua){var ei=new ee;et.ua=ei.getResult(),et.ua.get=function(){return ei.getUA()},et.ua.set=function(e){ei.setUA(e);var t=ei.getResult();for(var i in t)et.ua[i]=t[i]}}}("object"==typeof window?window:e.e)},3115,e=>{"use strict";var t,i=e.i(31082),a=e.i(21628),r=e.i(59292),s=e.i(44119),n=e.i(59108),l=e.i(91539),o=e.i(84100),c=e.i(35445),d=e.i(74410),m=e.i(23400),u=e.i(91462),h=e.i(79756),p=e.i(85407),x=e.i(86547),g=e.i(88575),b=e.i(9668),f=e.i(71389),w=e.i(90950),v=e.i(63320),y=e.i(30053),_=e.i(75961),j=e.i(93112),k=e.i(38455),N=e.i(16340),C=e.i(96249),T=e.i(82074),E=e.i(23447),S=e.i(15863),A=((t=A||{})[t.position=0]="position",t[t.career=1]="career",t[t.subscribeEmail=2]="subscribeEmail",t[t.installExtension=3]="installExtension",t[t.selectInterestTag=4]="selectInterestTag",t);let I=({me:e,close:t,onRequestClose:i,...r})=>{let s=(0,k.useRouter)(),{refetch:n}=(0,y.useAuth)(),{browserName:l,deviceType:o}=(0,N.useContext)(w.AppContext),[c]=(0,v.useUpsertUserInterestTagsMutation)(),d=(0,N.useMemo)(()=>C.ORDERED_MIX_CONTENT_TAG_ENUM.filter(e=>!C.SHINHAN_INVEST_TAG_LIST.includes(e)&&!C.TRIAL_TAG_LIST.includes(e)),[]),[m,u]=(0,N.useState)(0),[h,p]=(0,N.useState)(null),[A,I]=(0,N.useState)(null),[O,M]=(0,N.useState)(e?.subscribeEmail??!1),[P,R]=(0,N.useState)(new Set),[D,L]=(0,N.useState)(!0),[z,q]=(0,N.useState)(!1),B=(0,N.useCallback)(()=>{let e=l.toUpperCase();return C.EXTENSION_STORE_URLS[e]?.url||C.EXTENSION_STORE_URLS.CHROME?.url||""},[l]),G=(0,N.useMemo)(()=>"u">typeof navigator&&!!navigator.userAgentData&&navigator.userAgentData.brands.some(e=>"Chromium"===e.brand)&&"desktop"===o&&C.EXTENSION_STORE_URLS[l.toUpperCase()],[l,o]);(0,N.useEffect)(()=>{R(new Set([...d.map(e=>e),..."shinhaninvest"===e.group_id?C.SHINHAN_INVEST_TAG_LIST:[]]))},[d,e.group_id]);let H=0===P.size&&!D;(0,N.useEffect)(()=>{H||q(!1)},[H]);let U=async t=>{if(D){L(!1);let i=new Set(P);i.delete(t),R(i);try{if(i.size>0){let t=Array.from(i).map((t,i)=>({user_id:e.id,tag_value:t,priority:i+1}));await c({variables:{objects:t}})}}catch(e){L(!0),R(P)}}else R(e=>{let i=new Set(e);return i.has(t)?i.delete(t):i.add(t),i})},F=async t=>{let i=t.every(e=>P.has(e));if(D)if(L(!1),i){let i=new Set(P);t.forEach(e=>{i.delete(e)}),R(i);try{if(i.size>0){let t=Array.from(i).map((t,i)=>({user_id:e.id,tag_value:t,priority:i+1}));await c({variables:{objects:t}})}}catch(e){L(!0),R(P)}}else{let i=new Set(P);t.forEach(e=>{i.add(e)}),R(i);try{let t=Array.from(i).map((t,i)=>({user_id:e.id,tag_value:t,priority:i+1}));await c({variables:{objects:t}})}catch(e){L(!0),R(P)}}else i?R(e=>{let i=new Set(e);return t.forEach(e=>{i.has(e)&&i.delete(e)}),i}):R(e=>{let i=new Set(e);return t.forEach(e=>{i.has(e)||i.add(e)}),i})},$=e=>e.length>0&&e.every(e=>P.has(e)),V=(0,N.useCallback)(e=>e[m],[m]),[X]=(0,v.useUpdateMeMutation)({onCompleted:async i=>{if(i.update_mix_user_by_pk){let{career:t,position:a}=i.update_mix_user_by_pk,r="true"===s.query.prev_webview_access;(0,_.fireEvent)({event:"sign_up",params:{method:e?.method,subscribeEmail:O,prev_webview_access:r}}),(0,_.fireEvent)({params:{career:t,position:a}})}await t(),s.reload()}});return(0,N.useEffect)(()=>{n()},[n]),(0,a.jsx)(S.MixModal,{...r,children:(0,a.jsxs)("div",{className:(0,x.cn)(`relative mx-6 flex flex-col items-center justify-center 2 rounded-[24px] bg-common-white-main px-4 py-14 3 dark:bg-grey-100 [&_*]:text-center`,"md:rounded-[20px] md:px-8 md:py-12 md:pb-8",x.modalWidthClass,2===m&&"max-w-[342px] p-4 py-10",3===m&&"max-w-[342px] p-4 py-[33px]"),children:[(0,a.jsx)(b.Text,{className:(0,x.cn)("mb-10 whitespace-pre-wrap",`md:mb-8 md:text-2xl md:font-bold 4 md:leading-[135.0000023841858%]`,(2===m||3===m)&&"mb-2"),variant:"h2",tag:"header",children:V({0:"ëì ì§ë¬´ë¥¼ ì íí´ì£¼ì¸ì.",1:"ëì ì°ì°¨ë¥¼ ì íí´ì£¼ì¸ì.",4:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,a.jsx)("div",{children:"ê´ì¬ 주ì 를 ì íí´ ì£¼ì¸ì."}),(0,a.jsx)(b.Text,{variant:"body1",color:"text.secondary",className:"md:text-sm md:font-normal md:leading-[139.9999976158142%]",children:"ì´íìë ì
4¸ì ë ë³ê²½í ì ìì´ì."})]}),2:(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("div",{className:"mb-2 py-[13px]",children:(0,a.jsx)("div",{className:"relative h-[74px] w-[74px]",children:(0,a.jsx)(j.default,{alt:"newsletter",src:"/img/newsletter.png",fill:!0})})}),`ë¯¹ì¤ ë´ì¤ë í°ë¥¼ 5ë°ì ë³´ìê² ì´ì?`]}),3:(0,a.jsxs)("div",{className:"-m-[0.1rem] flex flex-col items-center",children:[(0,a.jsx)("div",{className:"mb-3 flex h-[89px] w-[99px] items-center justify-center py-[13px] text-[73px] text-primary-main",children:"ð¥"}),(0,a.jsxs)(b.Text,{variant:"h4",color:"text.primary",children:["íì¥ íë¡ê·¸ë¨ ì¬ì©ìë 매주",(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"font-bold text-primary-main",children:"íê· 13ê°ì ì½í ì¸ "}),"를 ë ì½ê³ ìì´ì!"]})]})})}),(0,a.jsxs)("div",{className:"flex w-full flex-col items-center",children:[V({0:(0,a.jsx)("div",{className:"flex w-full flex-col gap-2 md:grid md:grid-cols-[repeat(3,minmax(0,1fr))] md:gap-1.5",children:C.ORDERED_POSITION.map(e=>(0,a.jsx)("button",{className:(0,x.cn)(`h-[54px] w-full break-keep 6 rounded-xl text-base font-semibold 7 leading-[139.9999976158142%]`,h===e?`bg-primary-main font-bold 8 text-common-white-main`:`bg-grey-200 font-normal 9 text-text-secondary`),onClick:()=>{p(e)},children:C.POSITION_KOREAN[e]},e))}),1:(0,a.jsx)("div",{className:"flex w-full flex-col gap-2 md:grid md:grid-cols-[repeat(3,minmax(0,1fr))] md:gap-1.5",children:C.ORDERED_CAREERS.map(e=>(0,a.jsx)("button",{className:(0,x.cn)(`h-[54px] w-full break-keep 10 rounded-xl text-base font-semibold 11 leading-[139.9999976158142%]`,A===e?`bg-primary-main font-bold 12 text-common-white-main`:`bg-grey-200 font-normal 13 text-text-secondary`),onClick:()=>{I(e)},children:e},e))}),4:(0,a.jsxs)("div",{className:"flex flex-col items-start",children:["shinhaninvest"===e.group_id&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-2",children:[(0,a.jsx)(j.default,{src:"/img/logo/shinhaninvest.png",alt:"shinhaninvest",width:24,height:24}),(0,a.jsx)(b.Text,{variant:"button.small",color:"text.primary",children:"ì íí¬ìì¦ê¶ ì ì© ì¹´í ê³ ë¦¬"})]}),(0,a.jsxs)("div",{className:"mb-2 flex cursor-pointer flex-wrap items-center justify-start gap-0.5",onClick:()=>F(C.SHINHAN_INVEST_TAG_LIST),children:[(0,a.jsx)(E.Checkbox,{size:"medium",checked:$(C.SHINHAN_INVEST_TAG_LIST)}),(0,a.jsx)("span",{className:"text-primary-main",children:"모ë ì¹´í ê³ ë¦¬"})]}),(0,a.jsx)("div",{className:"mb-10 flex max-w-[483px] flex-wrap justify-start gap-3",children:C.SHINHAN_INVEST_TAG_LIST.map(e=>(0,a.jsx)(g.Button,{variant:"filled",color:P.has(e)?"primary":"grey",size:"medium",onClick:()=>U(e),className:(0,x.cn)(`h-[27px] rounded-xl 14 px-3.5 py-[14px] 15 pb-[14px] text-xs 16 font-semibold 17 leading-[139.9999976158142%] 18 transition-all 19 duration-200`,"hover:border-primary-main",!P.has(e)&&"hover:bg-primary-hover","md:px-[10px] md:py-4"),children:C.MIX_CONTENT_TAG_ENUM_KOREAN[e]},e))}),(0,a.jsx)(T.Divider,{className:"mb-10"}),(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-2",children:[(0,a.jsx)(j.default,{src:"/img/logo/mix.png",alt:"mix ",width:24,height:24}),(0,a.jsx)(b.Text,{variant:"button.small",color:"text.primary",children:"ë¯¹ì¤ ê¸°ë³¸ ì¹´í ê³ ë¦¬"})]})]}),(0,a.jsxs)("div",{className:"mb-2 flex cursor-pointer flex-wrap items-center justify-start gap-0.5",onClick:()=>F(d),children:[(0,a.jsx)(E.Checkbox,{size:"medium",checked:$(d)}),(0,a.jsx)("span",{className:"text-primary-main",children:"모ë ì¹´í ê³ ë¦¬"})]}),(0,a.jsx)("div",{className:"mb-10 flex max-w-[483px] flex-wrap justify-start gap-3",children:d.map(e=>(0,a.jsx)(g.Button,{variant:"filled",color:P.has(e)?"primary":"grey",size:"medium",onClick:()=>U(e),className:(0,x.cn)(`h-[27px] rounded-xl px-3.5 20 py-[14px] pb-[14px] text-xs 21 font-semibold 22 leading-[139.9999976158142%] 23 transition-all duration-200`,"hover:border-primary-main",!P.has(e)&&"hover:bg-primary-hover","md:px-[10px] md:py-4"),children:C.MIX_CONTENT_TAG_ENUM_KOREAN[e]},e))})]}),2:(0,a.jsxs)("div",{className:"flex max-w-[342px] flex-col",children:[(0,a.jsx)(b.Text,{className:"mb-10 whitespace-pre-wrap text-text-disabled",variant:"body3",children:`ì¤ë¦¬ì§ë ì½í ì¸ ì ì¸ê¸° ì½í ì¸ ë¥¼ 24ë©ì¼ë¡ ë³´ë´ëë ¤ì.`}),(0,a.jsxs)("div",{className:"flex gap-2 [&_button]:w-[140px]",children:[(0,a.jsx)(g.Button,{size:"xl",variant:"filled",color:"grey",onClick:()=>{M(!1),G?u(3):X({variables:{id:e.id,_set:{position:h,career:A,subscribeEmail:!1}}})},children:"ë¤ìì í ê²ì"}),(0,a.jsx)(g.Button,{size:"xl",onClick:()=>{M(!0),G?u(3):X({variables:{id:e.id,_set:{position:h,career:A,subscribeEmail:!0}}})},children:"ë°ìë³¼ëì"})]})]}),3:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(b.Text,{className:"mb-10 whitespace-pre-wrap text-text-disabled",variant:"body3",children:"ì§ê¸ ë°ë¡ í¬ë¡¬/ì¨ì¼ ì¤í ì´ìì ë§ëë³´ì¸ì."}),(0,a.jsxs)("div",{className:"flex gap-2 [&_button]:w-[140px]",children:[(0,a.jsx)(g.Button,{size:"xl",variant:"filled",color:"grey",onClick:()=>{X({variables:{id:e.id,_set:{position:h,career:A,subscribeEmail:O}}})},children:"ë¤ìì í ê²ì"}),(0,a.jsx)(g.Button,{size:"xl",onClick:()=>{window.open(B(),"_blank"),X({variables:{id:e.id,_set:{position:h,career:A,subscribeEmail:O}}})},children:"êµ¬ê²½í´ ë³¼ê²ì"})]})]})}),(0,a.jsxs)("div",{className:(0,x.cn)("mt-6 flex h-8 w-full items-center justify-between","md:mt-4",(2===m||3===m)&&"mt-0 h-full md:mt-0"),children:[(0,a.jsx)("div",{children:V({0:(0,a.jsx)(a.Fragment,{}),1:(0,a.jsx)(g.Button,{variant:"background",color:"grey",size:"medium",startIcon:"ChevronLeft",onClick:()=>u(0),children:"ì´ì "}),4:(0,a.jsx)(g.Button,{variant:"background",color:"grey",size:"medium",startIcon:"ChevronLeft",onClick:()=>u(1),children:"ì´ì "}),2:(0,a.jsx)(a.Fragment,{}),3:(0,a.jsx)(a.Fragment,{})})}),(0,a.jsx)("div",{className:"flex items-center justify-end gap-4 text-sm font-normal leading-[139.9999976158142%] text-text-placeholder",children:V({0:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(g.Button,{variant:"filled",color:"secondary",size:"medium",disabled:!h,onClick:()=>u(1),children:"ë¤ì"})}),1:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(g.Button,{variant:"filled",color:"secondary",size:"medium",disabled:!A,onClick:()=>u(4),children:"ë¤ì"})}),4:(0,a.jsxs)(f.Tooltip,{placement:"top",trigger:"mouseover",open:z||void 0,children:[(0,a.jsx)(f.Tooltip.Trigger,{asChild:!1,children:(0,a.jsx)(g.Button,{variant:"filled",color:"secondary",className:"px-4 py-2",disabled:H,onClick:()=>{let t=Array.from(P);t.length>0&&c({variables:{objects:t.map((t,i)=>({user_id:e.id,tag_value:t,priority:i+1}))}}),u(2)},children:"íì¸"})}),H&&(0,a.jsx)(f.Tooltip.Content,{className:"z-[1000] max-w-[260px] break-keep rounded-md px-2.5 py-2 text-xs",children:"ì¹´í ê³ ë¦¬ë¥¼ ìµì 1ê° ì´ì ì íí´ ì£¼ì¸ì"})]}),2:"",3:""})})]})]})]})})},O=({onHideForToday:e,...t})=>{let i=(0,k.useRouter)();return(0,a.jsx)(S.MixModal,{...t,children:(0,a.jsxs)("div",{className:(0,x.cn)(`relative flex min-h-[359px] flex-row items-stretch 25 overflow-hidden rounded-small md:min-h-0 md:flex-col`,x.modalWidthClass),children:[(0,a.jsx)(j.default,{src:"/img/dark-release.webp",alt:"ë¤í¬ëª¨ë ê¸°ë¥ ìê° ì´ë¯¸ì§",className:"max-[320px]:h-[359px] max-[320px]:w-[290px]",width:343,height:359}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col justify-between bg-white px-4 py-8 text-black dark:bg-grey-100 dark:text-white md:py-[15px]",children:[(0,a.jsxs)("div",{className:"px-[5px] md:mb-[15px]",children:[(0,a.jsx)("h2",{className:"m-0 mb-2 text-2xl font-bold leading-[1.3] text-text-primary md:mb-1.5 md:text-xl",children:"ë¤í¬ëª¨ë를 ì¶ìíììµëë¤"}),(0,a.jsx)("p",{className:"m-0 mb-2 text-sm font-semibold leading-[1.5] text-text-secondary md:mb-1.5 md:text-base",children:"ëì´ í¸ìí íë©´ì¼ë¡ 믹ì¤ë¥¼ ì¦ê²¨ë³´ì¸ì"})]}),(0,a.jsx)("div",{className:"flex flex-col items-start justify-center border-b border-t border-grey-300 px-[5px] py-6 md:mb-5 md:border-b-0 md:px-[5px] md:py-5 md:pt-5 md:text-[13px]",children:(0,a.jsxs)("div",{className:"text-base font-light leading-[139.9999976158142%] text-text-primary",children:["ëë°ì´ì¤ ì¤ì ê°ì ë°ë¼ ìë ì ì©ëë©°,",(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"text-base font-semibold leading-[139.9999976158142%] text-text-primary",children:"ì°ì¸¡ ìë¨ìì"})," ","ìì ë¡ê² ì¼ê³ ë ì ìì´ì"]})}),(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("button",{className:"h-[54px] w-full min-w-[120px] cursor-pointer rounded-small border-none bg-secondary-main px-5 py-3 text-lg font-semibold text-secondary-contrast transition-all duration-200 ease-in-out hover:bg-grey-600 dark:hover:bg-grey-500 md:min-w-[100px] md:px-4 md:py-2.5 md:text-lg",onClick:()=>{i.push("https://support.mix.day/27ddb7f5-8f0a-8020-883e-caa16894c052")},children:"ìì¸í ìì보기"}),(0,a.jsx)("button",{className:"mt-2.5 text-sm font-normal leading-[1.9] text-text-disabled underline underline-offset-[3px] md:mt-3 md:text-sm",onClick:()=>{e?.()},children:"ì¼ì£¼ì¼ ëì ê·¸ë§ë³´ê¸°"})]})]})]})})};
25var M=e.i(5357),P=e.i(53042),R=e.i(51323),D=e.i(46525),L=e.i(69420),z=e.i(34209),q=e.i(97864);let B=({className:e,...t})=>{let{isFeatureEnabled:i}=(0,D.useFeatureFlags)(),r=(0,L.usePathCheck)("/mypage"),s=(0,L.usePathCheck)("/mypage/orders"),n=(0,L.usePathCheck)("/mypage/courses"),l=(0,L.usePathCheck)("/bookmark*"),o=(0,L.usePathCheck)("/search*");return(0,a.jsxs)("aside",{className:(0,x.cn)(`sticky left-0 top-[var(--header-height)] 26 mr-[var(--sidebar-margin)] flex h-[calc(100vh-120px)] 27 w-[var(--sidebar-width)] flex-col justify-between gap-6`,e,i("UI_HEADER_DROPDOWN")?"h-[calc(100vh-300px)]":"h-[calc(100vh-120px)]",!i("UI_HEADER_DROPDOWN")&&(r||s||n||l||o?"-mt-[30px]":"-mt-[68px]")),...t,children:[(0,a.jsx)(q.NavMenu,{showSubMenu:!0}),!i("UI_HEADER_DROPDOWN")&&(0,a.jsx)(z.SideFooter,{})]})};var G=e.i(17968),H=e.i(28571),U=e.i(17594),F=e.i(65934),$=e.i(77097);let V=(0,$.default)(()=>e.A(28378).then(e=>({default:e.DndContainer})),{loadableGenerated:{modules:[39106]},ssr:!1,loading:()=>(0,a.jsx)("div",{children:"Loading..."})}),X=({showSubMenu:e,className:t,...r})=>{let s=(0,k.useRouter)(),{me:n,isLoggedIn:l}=(0,y.useAuth)(),{data:o}=(0,v.useSessionQuery)(),c=o?.session?.me?.id,{deviceType:d}=(0,N.useContext)(w.AppContext),{data:m}=(0,v.useGetUserInterestTagsQuery)({variables:{userId:c},skip:!c}),[u]=(0,v.useUpsertUserInterestTagsMutation)(),[h]=(0,v.useDeleteUserInterestTagsMutation)(),[p,g]=(0,N.useState)({}),[b,T]=(0,N.useState)(!1);(0,N.useEffect)(()=>{T(!0)},[]);let E=(0,N.useMemo)(()=>Object.values(s.query).flatMap(e=>Array.isArray(e)?e:[e]).includes("trial"),[s.query]),S=(0,N.useMemo)(()=>{if(Object.values(s.query).flatMap(e=>Array.isArray(e)?e:[e]).includes("trial"))return C.CAMPAIGN_TO_TAGS.trial||[];let e=o?.session?.me?.group_id,t=m?.mix_user_interest_tag,i=t?.slice()?.sort((e,t)=>e.priority-t.priority)?.map(e=>e.tag_value);if(l&&i&&i.length>0){let t=[...i];return"shinhaninvest"!==e&&(t=t.filter(e=>!C.SHINHAN_INVEST_TAG_LIST.includes(e))),"teammint"!==e&&(t=t.filter(e=>!C.TRIAL_TAG_LIST.includes(e))),t}let a="shinhaninvest"===e?[...C.ORDERED_MIX_CONTENT_TAG_ENUM]:C.ORDERED_MIX_CONTENT_TAG_ENUM.filter(e=>!C.SHINHAN_INVEST_TAG_LIST.includes(e));return"teammint"!==e&&(a=a.filter(e=>!C.TRIAL_TAG_LIST.includes(e))),a},[l,m,o,s.query]),A=(0,N.useMemo)(()=>{let e;return[new F.AppPage({href:"/trial",label:"ì½í ì¸ íë ì´ì ",external:!1,iconName:"All",hasRightButton:!0,hasHoverTooltip:!0,tooltipContent:(0,a.jsx)(a.Fragment,{children:"ê´ì¬ 주ì ì¤ì "}),children:(e=(S||[]).map(e=>{let t=C.MIX_CONTENT_TAG_ENUM_KOREAN[e];return t?new F.AppPage({href:`/trial?tag=${e}`,label:t,external:!1}):null}).filter(e=>null!==e),E&&C.CAMPAIGN_TO_TAGS.trial?[...C.CAMPAIGN_TO_TAGS.trial.map(e=>{let t=C.MIX_CONTENT_TAG_ENUM_KOREAN[e];return new F.AppPage({href:`/trial?tag=${e}`,label:t||e,external:!1})}),...e]:[...e])}),new F.AppPage({href:"/original",label:"ì¤ë¦¬ì§ë ì½í ì¸ ",external:!1,iconName:"Original"}),new F.AppPage({href:"/archive",label:"ìì¹´ì´ë¸ (Beta)",external:!1,iconName:"Folder",hasHoverTooltip:!0,tooltipContent:(0,a.jsxs)(a.Fragment,{children:["ìì¹´ì´ë¸ììë ë§ì¼í°ë¥¼ ìí ë¤ìí ìë£ë¥¼ 모ì ì ê³µí©ëë¤. íì¬ë ê´ê³ ìí ìê°ì ì¤ì¬ì¼ë¡",(0,a.jsx)("br",{}),"ì ê³µíë©°, í¸ë ë ì¸ì¬ì´í¸, ì¤ë¬´ í í릿 ë± ì ì°¨ ë¤ìí ìë£ë¡ íëí´ ëê° ìì ì ëë¤.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"italic",children:"(ë¡ê·¸ì¸ì´ íìí©ëë¤.)"})]})}),new F.AppPage({href:"/bookmark",label:"ë¶ë§í¬",external:!1,iconName:"BookmarkFilled"}),new F.AppPage({href:"https://support.mix.day",label:"ê³ ê°ì¼í°",external:!0,iconName:"InfoFilled"})]},[S]),I=(0,N.useMemo)(()=>[new F.AppPage({href:"/mypage",label:"ëì ì ë³´",external:!1,iconName:"AccountCircle"}),new F.AppPage({href:"/mypage/orders",label:"ëì 주문 ë´ì",external:!1,iconName:"List"}),...n?.has_lms_access?[new F.AppPage({href:"/mypage/courses",label:"ëì ê°ìì¤",external:!1,iconName:"Class"})]:[]],[n?.has_lms_access]),O=(0,N.useMemo)(()=>s.pathname.startsWith("/mypage")?I:A,[s.pathname,I,A]);(0,N.useEffect)(()=>{let e={};O.forEach(t=>{if(t.children&&t.children.length>0){let i=t.href;p[i]||(e[i]=t.children.map(e=>e.href))}}),Object.keys(e).length>0&&g(t=>({...t,...e}))},[S]),(0,N.useEffect)(()=>
27{if(!E&&l&&m?.mix_user_interest_tag){let e=[...m.mix_user_interest_tag].sort((e,t)=>e.priority-t.priority).map(e=>`/trial?tag=${e.tag_value}`);g(t=>({...t,"/trial":e}))}},[m,l,E]);let M=e=>{let t=e.match(/\?tag=(.+)$/);if(!t||!t[1])return!1;let i=t[1];return C.SHINHAN_INVEST_TAG_LIST.includes(i)},P=async(e,t)=>{if(g(i=>({...i,[e]:t})),"/trial"===e&&c&&m?.mix_user_interest_tag){let e=t.map(e=>{let t=e.toString().match(/\?tag=(.+)$/);return t?t[1]:null}).filter(e=>null!==e),i=[...m.mix_user_interest_tag];i.map(e=>[e.tag_value,e]);let a=e.map((e,t)=>({user_id:c,tag_value:e,priority:t+1})),r=e.length+1;i.forEach(t=>{e.includes(t.tag_value)||a.push({user_id:c,tag_value:t.tag_value,priority:r++})});try{let e=i.map((e,t)=>({user_id:c,tag_value:e.tag_value,priority:1e3+t}));await u({variables:{objects:e}}),await u({variables:{objects:a}})}catch(e){}}};return(0,a.jsx)("div",{className:(0,x.cn)("flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto",`[-ms-overflow-style]:none [scrollbar-width]:none 28 [&::-webkit-scrollbar]:hidden`,t),...r,children:O.map(t=>{let r=t.active(s.pathname);return(0,a.jsxs)("div",{children:[t.external?t.hasHoverTooltip?(0,a.jsxs)(f.Tooltip,{placement:"top",trigger:d!==C.DEVICE_TYPE.DESKTOP?"mousedown":"mouseover",children:[(0,a.jsx)(f.Tooltip.Trigger,{asChild:!1,children:(0,a.jsx)("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(U.ToggleButton,{name:t.iconName,active:t.active(s.pathname),children:t.label})},t.href)}),(0,a.jsx)(f.Tooltip.Content,{className:"-ml-1 max-w-[260px] break-keep rounded-md px-[10px] pb-0.5 pt-2 text-xs",backgroundColor:"#eeeeee",color:"#121212",children:(0,a.jsx)("div",{className:"mb-1.5 font-medium",children:t.tooltipContent})})]}):(0,a.jsx)("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(U.ToggleButton,{name:t.iconName,active:t.active(s.pathname),children:t.label})},t.href):(0,a.jsx)(G.ExtensionLink,{href:t.href,children:(0,a.jsxs)(f.Tooltip,{placement:"top",trigger:d!==C.DEVICE_TYPE.DESKTOP?"mousedown":"mouseover",children:[(0,a.jsx)(f.Tooltip.Trigger,{asChild:!1,children:(0,a.jsx)(U.ToggleButton,{name:t.iconName,rightIcon:t.hasRightButton&&r?"MoreHoriz":null,active:t.active(s.pathname),onRightIconClick:e=>{e.preventDefault(),e.stopPropagation();let t=n?"#interest-tags":"#signin";"extension"===i.default.env.BUILD_TARGET?s.push(`https://mix.day/${t}`):s.push({pathname:s.pathname,query:s.query,hash:t},void 0,{scroll:!1})},children:t.label})}),(t.hasRightButton&&r||t.hasHoverTooltip)&&(0,a.jsx)(f.Tooltip.Content,{className:(0,x.cn)(`max-w-[260px] break-keep 29 rounded-md px-[10px] pb-0.5 30 pt-2 text-xs`,t.hasRightButton?"ml-16":"-ml-1"),backgroundColor:"#eeeeee",color:"#121212",children:(0,a.jsx)("div",{className:"mb-1.5 font-medium",children:t.tooltipContent})})]})}),e&&t.children&&t.children.length>0&&(0,a.jsx)("div",{className:(0,x.cn)(`flex flex-col gap-1 overflow-hidden 31 transition-all duration-200`,r?"py-2 ease-in":"max-h-0 p-0 ease-out"),style:r?{maxHeight:`${30*t.children.length}px`}:{maxHeight:"0"},children:b&&l&&!E?(0,a.jsx)(V,{onDragEnd:e=>P(t.href,e),renderItems:(p[t.href]||t.children?.map(e=>e.href)||[]).map(e=>t.children?.find(t=>t.href===e)).filter(e=>void 0!==e).map(e=>(0,a.jsx)(G.ExtensionLink,{href:e.href,children:(0,a.jsxs)("div",{className:(0,x.cn)("relative flex cursor-pointer items-center overflow-hidden whitespace-nowrap py-0.5 pl-6 font-['Pretendard'] text-sm font-normal leading-[140%]",e.active(s.asPath)?"font-bold text-secondary-main":"text-text-disabled","group hover:text-secondary-main"),onClick:()=>{(0,_.fireEvent)({event:"content_category_click",params:{value:e.label}})},children:[(0,a.jsx)(H.IconBox,{className:"absolute left-6 cursor-grab opacity-0 transition-opacity duration-200 active:cursor-grabbing group-hover:opacity-100",name:"Menu",size:"small",color:"grey"}),(0,a.jsxs)("span",{className:(0,x.cn)("flex items-center gap-1 pl-6",M(e.href)&&"text-[#0246ff]",(E||"/trial"===s.pathname)&&(C.CAMPAIGN_COLOR.trial||C.CAMPAIGN_COLOR.trial_1)&&
31(e.href.includes("?tag=trial")||"/trial"===e.href)&&`text-[${C.CAMPAIGN_COLOR.trial||C.CAMPAIGN_COLOR.trial_1}]`),style:(E||"/trial"===s.pathname)&&(C.CAMPAIGN_COLOR.trial||C.CAMPAIGN_COLOR.trial_1)&&(e.href.includes("?tag=trial")||"/trial"===e.href)?{color:C.CAMPAIGN_COLOR.trial||C.CAMPAIGN_COLOR.trial_1}:void 0,children:[M(e.href)&&(0,a.jsx)(j.default,{src:"/img/logo/shinhaninvest.png",alt:"shinhaninvest",width:16,height:16}),(E||"/trial"===s.pathname)&&(C.CAMPAIGN_LOGO.trial||C.CAMPAIGN_LOGO.trial_1)&&(e.href.includes("?tag=trial")||"/trial"===e.href)&&(0,a.jsx)(j.default,{src:C.CAMPAIGN_LOGO.trial||C.CAMPAIGN_LOGO.trial_1,alt:"campaign",width:16,height:16}),e.label]})]})},e.href))}):(0,a.jsx)(a.Fragment,{children:t.children.map(e=>(0,a.jsx)(G.ExtensionLink,{href:e.href,children:(0,a.jsx)("div",{className:(0,x.cn)(`relative flex 32 cursor-pointer 33 items-center 34 overflow-hidden 35 whitespace-nowrap 36 py-0.5 pl-6 37 font-['Pretendard'] 38 text-sm 39 font-normal 40 leading-[140%]`,e.active(s.asPath)?`font-bold 41 text-secondary-main`:"text-text-disabled","hover:text-secondary-main"),onClick:()=>{(0,_.fireEvent)({event:"content_category_click",params:{value:e.label}})},children:(0,a.jsxs)("span",{className:"flex items-center gap-2 pl-6",style:(E||"/trial"===s.pathname)&&(C.CAMPAIGN_COLOR.trial||C.CAMPAIGN_COLOR.trial_1)&&(e.href.includes("?tag=trial")||"/trial"===e.href)?{color:C.CAMPAIGN_COLOR.trial||C.CAMPAIGN_COLOR.trial_1}:void 0,children:[M(e.href)&&(0,a.jsx)(j.default,{src:"/img/logo/shinhaninvest.png",alt:"shinhaninvest",width:16,height:16}),(E||"/trial"===s.pathname)&&(C.CAMPAIGN_LOGO.trial||C.CAMPAIGN_LOGO.trial_1)&&(e.href.includes("?tag=trial")||"/trial"===e.href)&&(0,a.jsx)(j.default,{src:C.CAMPAIGN_LOGO.trial||C.CAMPAIGN_LOGO.trial_1,alt:"campaign",width:16,height:16}),e.label]})})},e.href))})})]},t.href)})})},W=({className:e,...t})=>{let{isFeatureEnabled:i}=(0,D.useFeatureFlags)();return(0,L.usePathCheck)("/mypage"),(0,L.usePathCheck)("/mypage/orders"),(0,L.usePathCheck)("/mypage/courses"),(0,a.jsxs)("aside",{className:(0,x.cn)(`sticky left-0 top-[var(--header-height)] 42 mr-[var(--sidebar-margin)] flex h-[calc(100vh-120px)] 43 w-[var(--sidebar-width)] flex-col justify-between gap-6`,e),...t,children:[(0,a.jsx)(X,{showSubMenu:!0}),!i("UI_HEADER_DROPDOWN")&&(0,a.jsx)(z.SideFooter,{})]})};var Y=e.i(78701),K=e.i(53721),Z=e.i(43010);
43function Q({config:e,onChangeConfig:t,onSubmitTopSitesPermission:i}){return(0,a.jsx)(Y.Menu,{className:"hidden lg:block",anchorEl:(0,a.jsx)(Z.IconButton,{className:"p-1.5 [&_svg]:text-grey-500",name:"Setting",size:"medium",variant:"filled",color:"grey"}),placement:"left-start",offset:4,children:(0,a.jsxs)("div",{className:"auto-rows-6 grid grid-cols-[110px_1fr] gap-y-3 p-4 px-5 [&_label]:flex [&_label]:items-center",children:[(0,a.jsx)(b.Text,{variant:"body3",tag:"label",children:"êµ¬ê¸ ê²ìì°½"}),(0,a.jsx)(K.Switch,{checked:e.use_chrome_search,onChange:()=>{t({...e,use_chrome_search:!e.use_chrome_search})}}),(0,a.jsx)(b.Text,{variant:"body3",tag:"label",children:"ë°ë¡ê°ê¸° ìì´ì½"}),(0,a.jsx)(K.Switch,{checked:e.has_topSites_permission&&e.use_chrome_shortcut,onChange:async()=>{e.has_topSites_permission?t({...e,use_chrome_shortcut:!e.use_chrome_shortcut}):i(await chrome.permissions.request({permissions:["topSites"]}))}})]})})}function J(){let[e,t]=(0,N.useState)("");return(0,a.jsxs)("form",{className:"flex h-12 w-full items-center gap-2.5 rounded-[75px] bg-secondary-contrast px-4 shadow-center-blur",onSubmit:t=>{t.preventDefault(),e.trim()&&(window.location.href=`https://www.google.com/search?q=${encodeURIComponent(e)}`)},children:[(0,a.jsx)(H.IconBox,{size:"large",name:"SearchFilled"}),(0,a.jsx)("input",{className:"flex-1 border-none bg-secondary-contrast text-sm font-normal leading-6 outline-none placeholder:text-text-disabled",type:"text",value:e,placeholder:"Google ê²ì",onChange:e=>{t(e.target.value)}}),(0,a.jsx)(j.default,{alt:"google",src:"/img/google.png",width:24,height:24})]})}var ee=e.i(87678);let et=(0,N.forwardRef)(({children:e,autoPadding:t=!1,className:i,...r},s)=>(0,a.jsx)("div",{ref:s,className:(0,x.cn)("flex flex-col overflow-auto",t&&"py-2",i),...r,children:e})),ei=Object.assign(et,{Header:function({children:e,className:t,...i}){return(0,a.jsx)(b.Text,{className:(0,x.cn)("px-4 py-0.5",t),variant:"caption2",tag:"header",color:"text.secondary",...i,children:e})}});et.displayName="MenuList";var ea=e.i(35686),er=e.i(18985),es=e.i(29566);function en(){let[e,t]=(0,es.useChromeStorage)("topSites",[],"local"),[i,r]=(0,N.useState)(null),[s,n]=(0,N.useState)(!1);(0,N.useEffect)(()=>{(async()=>{let e=await chrome.storage.local.get("topSites");e.topSites?t(e.topSites):t((await chrome.topSites.get()).slice(0,9))})()},[]);let l=a=>{i?t(e.map(e=>e.url===i.url?a:e)):t([...e,a])};return(0,a.jsxs)("ul",{className:"flex w-full flex-wrap items-center justify-center",children:[e.length>0&&(0,a.jsx)(ea.DndContainer,{onDragEnd:t=>{let i=t.map(t=>e.find(e=>e.url===t));chrome.storage.local.set({topSites:i})},renderItems:e.map(l=>(0,a.jsx)(el,{title:l.title,imgEl:(0,a.jsx)(eo,{site:l,size:24}),menuEl:(0,a.jsx)(Y.Menu,{className:"min-w-[140px] max-w-[140px] -translate-x-[80%] -translate-y-[40%]",closeOnClick:!0,open:l===i&&!s,setOpen:e=>{e||r(null)},anchorEl:(0,a.jsx)("div",{className:"site-more-menu invisible absolute right-1 top-1 h-5 w-5 rounded-md hover:bg-action-hover hover:text-text-primary",onClick:e=>{e.stopPropagation(),r(l)},children:(0,a.jsx)(H.IconBox,{color:"text.secondary",size:"small",name:"MoreVert"})}),children:(0,a.jsxs)(ei,{children:[(0,a.jsx)(ee.MenuItem,{onClick:()=>{r(l),n(!0)},children:"ë°ë¡ê°ê¸° ìì "}),(0,a.jsx)(ee.MenuItem,{onClick:()=>{t(e.filter(e=>e.url!==l.url)),r(null)},children:"ìì "})]})}),onClick:()=>{window.location.href=l.url}},l.url))}),(0,a.jsxs)(a.Fragment,{children:[e.length<10&&(0,a.jsx)(el,{title:"ë°ë¡ê°ê¸° ì¶ê°",imgEl:(0,a.jsx)(H.IconBox,{size:"small",name:"Add"}),onClick:()=>n(!0)}),s&&(i?(0,a.jsx)(ec,{isOpen:s,title:"ë°ë¡ê°ê¸° ìì ",site:i,topSites:e,onClose:()=>{n(!1),r(null)},onSiteChange:l}):(0,a.jsx)(ec,{isOpen:s,title:"ë°ë¡ê°ê¸° ì¶ê°",site:null,topSites:e,onClose:()=>{n(!1),r(null)},onSiteChange:l}))]})]})}function el({title:e,imgEl:t,menuEl:i,loading:r,className:s,...n}){return(0,a.jsxs)("li",{className:(0,x.cn)(`relative flex aspect-square 44 w-[calc(var(--home-board-width)/5-2px)] cursor-pointer flex-col 45 items-center justify-center gap-2 rounded-lg 46 hover:bg-action-hover [&:hover_.site-more-menu]:visible`,s),...n,children:[i,(0,a.jsx)("div",{className:"flex aspect-square w-12 items-center justify-center rounded-xl bg-grey-100",children:t}),(0,a.jsx)(b.Text,{className:(0,x.cn)(`max-w-[80%] overflow-hidden text-ellipsis 47 whitespace-nowrap`,r&&"invisible"),variant:"caption2",children:e})]})}function eo({site:e,size:t}){let[i,r]=(0,N.useState)(!1),[s,n]=(0,N.useState)(!1);return s?(0,a.jsxs)("svg",{width:t,height:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{width:"100%",height:"100%",fill:"var(--grey-400)"}),(0,a.jsx)("text",{x:"50%",y:"50%",dy:".35em",textAnchor:"middle",fontSize:.6*t,fill:"var(--common-white-main)",children:e.title[0]?.toUpperCase()||"-"})]}):(0,a.jsx)(j.default,{className:(0,x.cn)(i?"visible":"invisible"),alt:"favicon",src:`https://www.google.com/s2/favicons?domain_url=${e.url}&sz=${2*t}`,width:t,height:t,onError:()=>{n(!0)},onLoad:e=>{r(!0),16===e.target.naturalHeight&&n(!0)}})}function ec({title:e,site:t,topSites:i,onClose:r,onSiteChange:s,...n}){let[l,o]=(0,N.useState)(t??{title:"",url:""}),[c,d]=(0,N.useState)(!1),m=(0,N.useMemo)(()=>!!l.title&&!!l.url&&!c,[l.title,l.url,c]);return(0,a.jsx)(S.MixModal,{onRequestClose:r,...n,children:(0,a.jsxs)("div",{className:"w-[400px] rounded-lg bg-secondary-contrast p-6",children:[(0,a.jsx)(b.Text,{variant:"body2",tag:"div",children:e}),(0,a.jsxs)("ul",{className:"my-4 flex flex-col gap-2 [&_li]:flex [&_li]:flex-col [&_li]:gap-1",children:[(0,a.jsx)("li",{children:(0,a.jsx)(er.TextField,{size:"large",type:"text",placeholder:"ì´ë¦ì ì ë ¥í´ì£¼ì¸ì",variant:"filled",value:l.title,onChange:e=>o(t=>({...t,title:e.target.value}))})}),(0,a.jsxs)("li",{children:[(0,a.jsx)(er.TextField,{size:"large",type:"text",placeholder:"URLì ì ë ¥í´ì£¼ì¸ì",variant:"filled",error:c,value:l.url,onChange:e=>o(t=>({...t,url:e.target.value})),onBlur:e=>{let t=e.target.value;i.some(e=>e.url===t||e.url===`https://${t}`)?d(!0):d(!1)}}),(0,a.jsx)(b.Text,{className:(0,x.cn)("ml-2.5",c?"visible":"invisible"),variant:"caption1",color:"error.main",children:"ì´ë¯¸ ì¡´ì¬íë URLì ëë¤."})]})]}),(0,a.jsx)("div",{className:"flex items-center justify-between",children:(0,a.jsxs)("div",{className:"flex flex-1 justify-end gap-2",children:[(0,a.jsx)(g.Button,{size:"large",color:"grey",variant:"filled",onClick:r,children:"ì·¨ì"}),(0,a.jsx)(g.Button,{size:"large",color:"primary",variant:"filled",disabled:!m,onClick:()=>{s({...l,url:l.url.startsWith("https://")||l.url.startsWith("http://")?l.url:`https://${l.url}`}),r()},children:"íì¸"})]})})]})})}function ed({onSubmitTopSitesPermission:e}){return(0,a.jsxs)("div",{className:"flex w-[var(--home-board-topSites-permission-width)] flex-col items-center gap-[21px]",children:[(0,a.jsx)("ul",{className:"flex w-full flex-wrap items-center justify-center",children:Array.from({length:10}).map((e,t)=>(0,a.jsx)("div",{className:"aspect-square w-20 p-4",children:(0,a.jsx)("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("rect",{width:"100%",height:"100%",rx:12,ry:12,fill:"var(--grey-100)"})})},t))}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"before:animate-ping-custom relative -left-1 top-3 inline-block h-3.5 w-3.5 rounded-full bg-orange-500 before:absolute before:left-0 before:top-0 before:h-[65%] before:w-[65%] before:rounded-full before:border-[2.7px] before:border-orange-500 before:content-['']"}),(0,a.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-line bg-grey-50 px-4 py-3",children:[(0,a.jsx)(b.Text,{variant:"caption2",color:"text.primary",children:"ë°ë¡ê°ê¸° ìì´ì½ì ì¬ì©íìê² ì´ì?"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(g.Button,{variant:"filled",color:"grey",size:"small",onClick:()=>e(!1),children:"ë¤ìì í ê²ì"}),(0,a.jsx)(g.Button,{variant:"filled",color:"primary",size:"small",onClick:async()=>{e(await chrome.permissions.request({permissions:["topSites"]}))},children:"ì¬ì© í ëì"})]})]})]})]})}function em(){(0,k.useRouter)();let[e,t]=(0,N.useState)({inquery_topSites_permission:!1,has_topSites_permission:!1,use_chrome_shortcut:!0,use_chrome_search:!0}),[i,r]=(0,N.useState)(!0),s=e.use_chrome_search,n=e.has_topSites_permission&&e.use_chrome_shortcut,l=i=>{let a={inquery_topSites_permission:!0,has_topSites_permission:i,use_chrome_shortcut:i,use_chrome_search:e.use_chrome_search};t(a),chrome.storage.local.set(a)};return((0,N.useEffect)(()=>{(async()=>{let{inquery_topSites_permission:e}=await chrome.storage.local.get("inquery_topSites_permission"),{has_topSites_permission:i}=await chrome.storage.local.get("has_topSites_permission"),{use_chrome_shortcut:a}=await chrome.storage.local.get("use_chrome_shortcut"),{use_chrome_search:s}=await chrome.storage.local.get("use_chrome_search");
47t({inquery_topSites_permission:e,has_topSites_permission:i,use_chrome_shortcut:!e||a,use_chrome_search:!e||s}),r(!1)})()},[]),i)?(0,a.jsx)("div",{className:"h-screen w-screen bg-background"}):(0,a.jsx)("div",{className:"mb-[var(--header-margin)] hidden [--home-board-topSites-permission-width:413px] [--home-board-width:510px] md:block",children:(0,a.jsxs)("div",{className:"flex h-full flex-col px-[var(--page-padding)]",children:[(s||n)&&(0,a.jsxs)("section",{className:"mx-auto flex w-[var(--home-board-width)] flex-col items-center gap-12 py-8",children:[s&&(0,a.jsx)(J,{}),e.inquery_topSites_permission?n&&(0,a.jsx)(en,{}):(0,a.jsx)(ed,{onSubmitTopSitesPermission:l})]}),(0,a.jsx)("section",{className:"flex justify-end",children:(0,a.jsx)(Q,{config:e,onChangeConfig:e=>{t(e),chrome.storage.local.set(e)},onSubmitTopSitesPermission:l})})]})})}var eu=e.i(60573),eh=e.i(16976),ep=e.i(38755),ex=e.i(67090),eg=e.i(48032),eb=e.i(74107),ef=e.i(11524);let ew=({streak:e,triggerKey:t})=>{let[i,r]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{if(!t||e<=0)return;r(!0);let i=setTimeout(()=>r(!1),2500);return()=>clearTimeout(i)},[t]),(0,a.jsx)(ef.AnimatePresence,{children:i&&(0,a.jsxs)(eb.motion.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},exit:{opacity:0,y:24},transition:{duration:.25},className:(0,x.cn)("fixed bottom-6 left-1/2 z-[200] -translate-x-1/2","rounded-full bg-orange-500 px-5 py-2.5 shadow-lg","text-sm font-semibold text-white"),children:["ð¥ ",e,"ì¼ ì°ì ë¬ì±!"]})})};var ev=e.i(76897),ey=e.i(55832),e_=e.i(24124),ej=e.i(50867),ek=e.i(31094);let eN=(0,ek.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),eC=(0,ek.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var eT=e.i(31406),eE=e.i(69007);let eS=(0,ek.default)("move-up-right",[["path",{d:"M13 5H19V11",key:"1n1gyv"}],["path",{d:"M19 5L5 19",key:"72u4yj"}]]);var eA=e.i(42505),eI=e.i(90858),eO=e.i(44106);e.i(29718);var eM=e.i(43046),eP=e.i(42245),eR=e.i(16995),eD=e.i(71113),eL=e.i(95567);let ez=({content:e,className:t,onContentClick:i})=>{let[r,s]=(0,N.useState)(!1),n=e.mix_content_tags?.map(e=>e.mix_content_tag_enum.value)||[],{relatedContent:l,loading:o}=(0,ex.useRelatedContent)({tags:n,limit:10}),c=l.filter(t=>t.id!==e.id),d=r?c:c.slice(0,3),m=c.length>3;return o||0!==c.length?(0,a.jsxs)("div",{className:(0,x.cn)("h-max rounded-xl bg-grey-100 p-3 dark:bg-[#242424]",t),children:[(0,a.jsx)("p",{className:"text-[16px] font-bold text-grey-900 dark:text-grey-800",children:"ê´ë ¨ ì½í
ì¸ "}),(0,a.jsx)(T.Divider,{className:"my-3"}),o?(0,a.jsx)(b.Text,{variant:"body4",tag:"p",className:"text-grey-500",children:"ê´ë ¨ ì½í
ì¸ ë¥¼ ë¶ë¬ì¤ë ì¤..."}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex flex-col gap-2",children:d.map(e=>(0,a.jsx)("button",{onClick:()=>i?.(e.id),className:"group flex w-full cursor-pointer flex-col gap-2 rounded-lg px-4 py-3 text-left transition-colors hover:bg-[#e0e0e0] dark:hover:bg-[#303030]",children:(0,a.jsxs)("div",{children:[(0,a.jsx)(eL.ContentTitle,{className:"mb-1 line-clamp-2 text-sm leading-tight text-grey-900 dark:hover:text-grey-800",children:e.title}),(0,a.jsxs)(b.Text,{variant:"caption1",tag:"p",className:"line-clamp-1 text-grey-600",children:[(0,a.jsx)("span",{className:"font-bold",children:e.authorname})," ","â¢"," ",(0,eg.default)(e.updatetime).format("YYYY.MM.DD")]})]})},e.id))}),m&&(0,a.jsxs)("button",{onClick:()=>s(!r),className:"mt-2 flex w-full items-center justify-center gap-1 rounded-lg px-4 py-3 text-sm text-grey-600 transition-colors hover:bg-[#e0e0e0] dark:hover:bg-[#303030]",children:[r?"ì 기":"ë보기",(0,a.jsx)(ej.ChevronDownIcon,{className:(0,x.cn)("size-4 transition-transform duration-200",r&&"rotate-180")})]})]})]}):null},eq=({currentContentId:e,className:t,onContentClick:i})=>{let{data:r,loading:s}=(0,v.useMixContentQuery)({variables:{where:{id:{_neq:e},_or:[{reaction_count:{_gt:0}},{comment_count:{_gt:0}}]},limit:6,orderBy:[{reaction_count:"desc_nulls_last"},{comment_count:"desc_nulls_last"}]}}),n=r?.mix_content??[],l=[(0,eh.useContentComments)({contentId:n[0]?.id??"",limit:1,skip:!n[0]}),(0,eh.useContentComments)({contentId:n[1]?.id??"",limit:1,skip:!n[1]}),(0,eh.useContentComments)({contentId:n[2]?.id??"",limit:1,skip:!n[2]}),(0,eh.useContentComments)({contentId:n[3]?.id??"",limit:1,skip:!n[3]}),(0,eh.useContentComments)({contentId:n[4]?.id??"",limit:1,skip:!n[4]}),(0,eh.useContentComments)({contentId:n[5]?.id??"",limit:1,skip:!n[5]})],o=n.map((e,t)=>
47({item:e,commentCount:l[t]?.totalCount??0,isSlotLoading:l[t]?.isLoading??!1})).filter(({item:e,commentCount:t,isSlotLoading:i})=>i||(e.reaction_count??0)>0||t>0).slice(0,3);return s||0!==o.length?(0,a.jsxs)("div",{className:(0,x.cn)("h-max rounded-xl bg-grey-100 p-3 dark:bg-[#242424]",t),children:[(0,a.jsx)("p",{className:"text-[16px] font-bold text-grey-900 dark:text-grey-800",children:"ì¸ê¸° í ë¡ "}),(0,a.jsx)(T.Divider,{className:"my-3"}),s?(0,a.jsx)(b.Text,{variant:"body4",tag:"p",className:"text-grey-500",children:"ì¸ê¸° í ë¡ ì ë¶ë¬ì¤ë ì¤..."}):(0,a.jsx)("div",{className:"flex flex-col gap-2",children:o.map(({item:e,commentCount:t})=>(0,a.jsx)("button",{onClick:()=>i?.(e.id),className:"group flex w-full cursor-pointer flex-col gap-2 rounded-lg px-4 py-3 text-left transition-colors hover:bg-[#e0e0e0] dark:hover:bg-[#303030]",children:(0,a.jsxs)("div",{children:[(0,a.jsx)(eL.ContentTitle,{className:"mb-1 line-clamp-2 text-sm leading-tight text-grey-900 dark:text-grey-800",children:e.title}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)(b.Text,{variant:"caption1",tag:"span",className:"flex items-center gap-1 text-grey-600",children:[(0,a.jsx)(eT.HeartIcon,{className:"size-3"}),e.reaction_count??0]}),(0,a.jsxs)(b.Text,{variant:"caption1",tag:"span",className:"flex items-center gap-1 text-grey-600",children:[(0,a.jsx)(eE.MessageCircleIcon,{className:"size-3"}),t]})]})]})},e.id))})]}):null},eB=({isOpen:e,onClose:t,content:i,onNavigate:r,canNavigatePrev:s=!1,canNavigateNext:n=!1,variant:l="modal",openMethod:o="direct_link",contentSection:c})=>{let d=(0,k.useRouter)(),m="fullscreen"===l,[u,h]=(0,N.useState)(!i.imgurl),{me:p,isLoggedIn:b,loading:f,openSignInModal:w}=(0,y.useAuth)(),{isFeatureEnabled:j}=(0,D.useFeatureFlags)(),C=j("DAILY_READING_STREAK"),[T]=(0,v.useInsertMixContentViewMutation)(),[E,A]=(0,N.useState)(null),{currentStreak:I,loading:O}=(0,ev.useReadingStreak)(C?p?.id:void 0);(0,N.useEffect)(()=>{e&&!f&&T({variables:{object:{contentid:i.id,userid:p?.id??null,source:"web"}}}).then(()=>{p?.id&&C&&setTimeout(()=>{A(`${i.id}-${Date.now()}`)},1500)}).catch(e=>console.error("[ContentDetailModal] view ì¶ì ì¤í¨:",e))},[e,i.id]),(0,N.useEffect)(()=>{if(!e||"direct_link"!==o)return;let t="extension"===d.query._src;(0,_.fireEvent)({event:"content_modal_open",params:{content_id:i.id,content_url:i.originalurl,content_title:i.title,content_isoriginal:i.isoriginal,content_released:i.released,open_method:t?"card_click":"direct_link",platform:t?"extension":"web"}})},[e,i.id]);let{toggle:M}=(0,eu.useBookmark)(i),P=!!i.bookmarked,{toggle:R,isReacted:L,reactionCount:z}=(0,ep.useContentReaction)(i),q=(0,N.useRef)(null),[B,G]=(0,N.useState)(!1),{totalCount:H}=(0,eh.useContentComments)({contentId:i.id}),U=(0,N.useCallback)(e=>{d.push({pathname:d.pathname,query:d.query,hash:`content?id=${e}`},void 0,{scroll:!1})},[d]),F=(0,N.useCallback)(()=>{q.current?.scrollIntoView({behavior:"smooth",block:"start"})},[]);(0,N.useEffect)(()=>{let i=i=>{e&&"Escape"===i.key&&t()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[e,t]);let $=async()=>{let e=`${window.location.origin}/contents/curated/${i.id}`;await navigator.clipboard.writeText(e),G(!0),setTimeout(()=>G(!1),2e3)},V="youtube"===i.source&&i.originalurl?(e=>{for(let t of[/(?:https?:\/\/)?(?:www\.)?youtube\.com\/watch\?v=([^&]+)/,/(?:https?:\/\/)?(?:www\.)?youtu\.be\/([^?]+)/,/(?:https?:\/\/)?(?:www\.)?youtube\.com\/embed\/([^?]+)/]){let i=e.match(t);if(i&&i[1])return i[1]}return null})(i.originalurl):null;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S.MixModal,{isOpen:e,onRequestClose:t,className:(0,x.cn)("overflow-y-auto backdrop-blur-sm",m?"items-stretch p-0":"items-start p-4 md:p-10"),children:(0,a.jsxs)("div",{className:(0,x.cn)("relative flex w-full flex-col bg-white dark:bg-[#171717]",m?"min-h-screen":"mt-5 max-w-5xl rounded-2xl shadow-2xl"),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-grey-200 px-4 py-3 dark:border-grey-300",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("div",{onClick:()=>r?.("prev"),className:(0,x.cn)(`cursor-pointer rounded-md p-2 transition-all 48 duration-300 hover:bg-gray-200 49 dark:hover:bg-gray-800`,!s&&"cursor-not-allowed opacity-30"),children:(0,a.jsx)(eN,{})}),(0,a.jsx)("div",{onClick:()=>r?.("next"),className:(0,x.cn)(`cursor-pointer rounded-md p-2 transition-all 50 duration-300 hover:bg-gray-200 51 dark:hover:bg-gray-800`,!n&&"cursor-not-allowed opacity-30"),children:(0,a.jsx)(eC,{})})]}),(0,a.jsx)("div",{onClick:t,className:"cursor-pointer rounded-md transition-all duration-300 hover:bg-gray-200 dark:hover:bg-gray-800",children:(0,a.jsx)(eb.motion.button,{onClick:t,className:"p-2",whileHover:{rotate:90},transition:{duration:.2,ease:[.25,.46,.45,.94]},children:(0,a.jsx)(eI.XIcon,{className:"size-6 text-black dark:text-white"})})})]}),(0,a.jsxs)("div",{className:(0,x.cn)(`flex flex-1 select-none gap-6 overflow-y-auto p-6 52 md:p-8`,m?"mx-auto w-full max-w-5xl":""),children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("div",{className:"mb-5",children:(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-3",children:[(0,a.jsx)(eR.ContentSourceAuthorHeader,{isContentDetailModal:!0,sourceImgSize:40,sourceImgUrl:i.mix_source_info.imgurl,authorname:i.authorname,updatetime:i.updatetime,offlinetime:i.offlinetime,category:i.category,className:"flex-1"}),(0,a.jsxs)("div",{onClick:()=>
52{if(i.originalurl){let e="extension"===d.query._src?"extension":"web";(0,_.fireEvent)({event:"content_external_click",params:{content_id:i.id,content_url:i.originalurl,content_title:i.title,content_section:c,content_isoriginal:i.isoriginal,content_released:i.released,platform:e}}),window.open(i.originalurl,"_blank","noopener,noreferrer")}},className:"flex cursor-pointer items-center gap-1 rounded-full bg-black px-[16px] py-2 text-white transition-all duration-300 hover:bg-grey-600 dark:bg-white dark:text-black dark:hover:bg-grey-300",children:["ì문 보기",(0,a.jsx)(eS,{className:"size-4"})]})]})}),(0,a.jsx)("h1",{className:"mb-4 text-xl font-bold leading-tight",children:i.title}),V?(0,a.jsx)("div",{className:"relative mb-5 h-[382px] overflow-hidden rounded-xl",children:(0,a.jsx)("iframe",{src:`https://www.youtube.com/embed/${V}`,className:"h-full w-full rounded-xl",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):i.imgurl?(0,a.jsx)("a",{href:i.originalurl??void 0,target:"_blank",rel:"noopener noreferrer",onClick:()=>{let e="extension"===d.query._src?"extension":"web";(0,_.fireEvent)({event:"content_external_click",params:{content_id:i.id,content_url:i.originalurl,content_title:i.title,content_section:c,content_isoriginal:i.isoriginal,content_released:i.released,platform:e}})},children:(0,a.jsx)("div",{className:"relative mb-5 h-[382px] overflow-hidden rounded-xl",children:(0,a.jsx)(eD.ContentThumbnailImg,{src:i.imgurl,fill:!0,unoptimized:!0,onFallbackChange:h,className:"rounded-xl object-cover"})})}):null,(0,a.jsxs)("div",{className:"mb-6 flex items-center justify-between",children:[i.mix_content_tags&&i.mix_content_tags.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:i.mix_content_tags.map(e=>(0,a.jsx)(eM.ContentTags,{tags:[e]},e.mix_content_tag_enum.value))}),i.category&&(0,a.jsx)("div",{children:(0,a.jsx)(eP.ContentCategoryChip,{category:i.category})})]}),i.abstractcontents&&(0,a.jsx)("p",{className:"mb-6 leading-relaxed",children:i.abstractcontents.length>150?`${i.abstractcontents.slice(0,150)}...`:i.abstractcontents}),(0,a.jsxs)("div",{className:"flex justify-center gap-4 border-y border-grey-200 py-5 dark:border-grey-300",children:[(0,a.jsxs)(g.Button,{variant:"outlined",color:"secondary",size:"small",onClick:b?R:w,className:(0,x.cn)(`flex items-center gap-2 rounded-md p-2 53 transition-all duration-300 54 hover:bg-gray-200 dark:hover:bg-gray-800`,L&&"text-red-500"),children:[(0,a.jsx)(eT.HeartIcon,{className:(0,x.cn)("size-5",L&&"fill-current text-[#FF6B6B]")}),(0,a.jsx)("span",{children:z})]}),(0,a.jsxs)(g.Button,{variant:"outlined",color:"secondary",size:"small",onClick:b?F:w,className:"flex items-center gap-2 rounded-md p-2 transition-all duration-300 hover:bg-gray-200 dark:hover:bg-gray-800",children:[(0,a.jsx)(eE.MessageCircleIcon,{className:"size-5"}),(0,a.jsx)("span",{children:H})]}),(0,a.jsx)(g.Button,{variant:"outlined",color:"secondary",size:"small",onClick:b?M:w,className:(0,x.cn)(`flex items-center gap-2 rounded-md p-2 55 transition-all duration-300 56 hover:bg-gray-200 dark:hover:bg-gray-800`,P&&"text-[var(--subcolor-orange)]"),children:(0,a.jsx)(ey.BookmarkIcon,{className:(0,x.cn)("size-5",P&&"fill-current text-orange-500")})}),(0,a.jsx)(g.Button,{variant:"outlined",color:"secondary",size:"small",onClick:$,className:(0,x.cn)(`flex items-center gap-2 rounded-md p-2 57 transition-all duration-300 58 hover:bg-gray-200 dark:hover:bg-gray-800`,B&&"text-green-500"),children:B?(0,a.jsx)(eb.motion.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:(0,a.jsx)(e_.CheckIcon,{className:"size-5"})}):(0,a.jsx)(eA.Share2Icon,{className:"size-5"})})]}),(0,a.jsx)("div",{ref:q,"data-comment-section":!0,children:(0,a.jsx)(eO.ContentCommentSection,{hideTopDivider:!0,contentId:i.id})})]}),(0,a.jsxs)("div",{className:"hidden w-64 flex-shrink-0 flex-col gap-4 lg:flex",children:[(0,a.jsx)(ez,{content:i,onContentClick:U}),(0,a.jsx)(eq,{currentContentId:i.id,onContentClick:U})]})]})]})}),C&&(0,a.jsx)(ew,{streak:I,triggerKey:E})]})};var eG=e.i(46143),eH=e.i(16283);let eU="dark-mode-release-modal-hide-until";var eF=e.i(97809),e$=e.i(81756);let eV=()=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",className:"h-4 w-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M5 12h14"}),(0,a.jsx)("path",{d:"m12 5 7 7-7 7"})]}),eX=N.default.forwardRef(({firstContent:e,secondaryContent:t,className:i,...r},s)=>(0,a.jsxs)("button",{ref:s,className:(0,x.cn)(`group relative w-auto cursor-pointer overflow-hidden 59 rounded-full bg-gray-200 px-6 py-2 text-center font-semibold 60 text-black dark:text-black`,i),...r,children:[(0,a.jsx)("div",{className:"flex items-center gap-2",children:(0,a.jsx)("span",{className:"primary-text inline-block transition-all duration-300 ease-in-out group-hover:translate-x-12 group-hover:opacity-0",children:e})}),(0,a.jsxs)("div",{className:"secondary-content absolute top-0 z-10 flex h-full w-full translate-x-12 items-center justify-center gap-2 opacity-0 transition-all duration-300 ease-in-out group-hover:-translate-x-5 group-hover:opacity-100",children:[(0,a.jsx)("span",{children:t}),(0,a.jsx)(eV,{})]})]}));eX.displayName="InteractiveHoverButton";let eW=e=>{let t=[];return void 0!==e.x&&t.push(`translateX(${e.x}
60px)`),void 0!==e.y&&t.push(`translateY(${e.y}px)`),void 0!==e.scale&&t.push(`scale(${e.scale})`),void 0!==e.rotateX&&t.push(`rotateX(${e.rotateX}deg)`),void 0!==e.rotateY&&t.push(`rotateY(${e.rotateY}deg)`),void 0!==e.rotateZ&&t.push(`rotateZ(${e.rotateZ}deg)`),t.length>0?t.join(" "):"none"},eY=({delay:e,duration:t,ease:i,from:r,to:s,isVisible:n,className:l,children:o})=>{let c={opacity:n?s.opacity:r.opacity,transform:n?eW(s):eW(r),transition:`all ${t}s ${{"power1.out":"cubic-bezier(0.25, 0.46, 0.45, 0.94)","power2.out":"cubic-bezier(0.165, 0.84, 0.44, 1)","power3.out":"cubic-bezier(0.215, 0.61, 0.355, 1)","power4.out":"cubic-bezier(0.23, 1, 0.32, 1)","back.out":"cubic-bezier(0.175, 0.885, 0.32, 1.275)","elastic.out":"cubic-bezier(0.25, 0.46, 0.45, 0.94)","bounce.out":"cubic-bezier(0.68, -0.55, 0.265, 1.55)",ease:"ease","ease-in":"ease-in","ease-out":"ease-out","ease-in-out":"ease-in-out",linear:"linear"}[i]||i} ${e}s`,willChange:"transform, opacity"};return(0,a.jsx)("span",{className:(0,x.cn)("inline-block text-[36px]",l),style:c,children:o})},eK=({textAlign:e,className:t,children:i})=>(0,a.jsx)("span",{className:(0,x.cn)("inline-block overflow-hidden whitespace-normal break-words",t),style:{textAlign:e},children:i}),eZ=({className:e,children:t})=>(0,a.jsx)("span",{className:(0,x.cn)("block overflow-hidden",e),children:t}),eQ=({className:e,children:t})=>(0,a.jsx)("span",{className:(0,x.cn)("inline-block whitespace-nowrap",e),children:t}),eJ=({text:e,className:t="",delay:i=100,duration:r=.6,ease:s="power3.out",splitType:n="chars",from:l={opacity:0,y:40},to:o={opacity:1,y:0},threshold:c=.1,rootMargin:d="0px",textAlign:m="center",tag:u="p",onLetterAnimationComplete:h})=>{let p=(0,N.useRef)(null),[x,g]=(0,N.useState)(!1),[b,f]=(0,N.useState)(!1),w=(0,N.useRef)(!1),v=(0,N.useMemo)(()=>({opacity:0,y:0,x:0,scale:1,rotateX:0,rotateY:0,rotateZ:0,...l}),[l]),y=(0,N.useMemo)(()=>({opacity:1,y:0,x:0,scale:1,rotateX:0,rotateY:0,rotateZ:0,...o}),[o]);(0,N.useEffect)(()=>{let e=setTimeout(()=>{f(!0)},100);if("u"<typeof document||!document.fonts){clearTimeout(e),f(!0);return}return"loaded"===document.fonts.status?(clearTimeout(e),f(!0)):document.fonts.ready.then(()=>{clearTimeout(e),f(!0)}).catch(()=>{clearTimeout(e),f(!0)}),()=>clearTimeout(e)},[]);let _=(0,N.useCallback)(()=>{if(!e||!b)return[];let t=0;if("lines"===n)return e.split("\n").map((e,n)=>(0,a.jsx)(eZ,{className:"split-line",children:e.split("").map((e,l)=>{let o=t++;return(0,a.jsx)(eY,{className:"split-char",delay:i/1e3*o,duration:r,ease:s,from:v,to:y,isVisible:x,children:" "===e?"Â ":e},`${n}-${l}`)})},n));if(n.includes("words")){let l=e.split(" ");return n.includes("chars")?l.map((e,n)=>{let o=e.split("").map((e,l)=>{let o=t++;return(0,a.jsx)(eY,{className:"split-char",delay:i/1e3*o,duration:r,ease:s,from:v,to:y,isVisible:x,children:e},`${n}-${l}`)});return(0,a.jsxs)(N.default.Fragment,{children:[(0,a.jsx)(eQ,{className:"split-word",children:o}),n<l.length-1&&(0,a.jsx)(eY,{className:"split-char",delay:t++*(i/1e3),duration:r,ease:s,from:v,to:y,isVisible:x,children:"Â "},`space-${n}`)]},n)}):l.map((e,n)=>{let o=t++;return(0,a.jsxs)(N.default.Fragment,{children:[(0,a.jsx)(eY,{className:"split-word",delay:i/1e3*o,duration:r,ease:s,from:v,to:y,isVisible:x,children:e}),n<l.length-1&&(0,a.jsx)(eY,{className:"split-char",delay:t++*(i/1e3),duration:r,ease:s,from:v,to:y,isVisible:x,children:"Â "},`space-${n}`)]},n)})}return e.split("").map((e,t)=>(0,a.jsx)(eY,{className:"split-char",delay:i/1e3*t,duration:r,ease:s,from:v,to:y,isVisible:x,children:" "===e?"Â ":e},t))},[e,n,i,r,s,v,y,x,b]),j=(0,N.useMemo)(()=>_(),[_]),k=(0,N.useCallback)(()=>{if(w.current)return;w.current=!0,g(!0);let t=i/1e3*(e.replace(/\s/g,"").length-1)+r;h&&setTimeout(h,1e3*t)},[e,i,r,h]);(0,N.useEffect)(()=>{if(!p.current||!b||0===j.length)return;let e=new IntersectionObserver(([e])=>{e?.isIntersecting&&k()},{threshold:c,rootMargin:d}),t=p.current;e.observe(t);let i=setTimeout(()=>{if(!t)return;let e=t.getBoundingClientRect();e.top<window.innerHeight&&e.bottom>0&&k()},50);return()=>{e.disconnect(),clearTimeout(i)}},[b,j.length,c,d,k]);let C=`split-parent ${t}`,T=(0,a.jsx)(eK,{textAlign:m,className:C,children:j});switch(u){case"h1":return(0,a.jsx)("h1",{ref:p,children:T});case"h2":return(0,a.jsx)("h2",{ref:p,children:T});case"h3":return(0,a.jsx)("h3",{ref:p,children:T});case"h4":return(0,a.jsx)("h4",{ref:p,children:T});case"h5":return(0,a.jsx)("h5",{ref:p,children:T});case"h6":return(0,a.jsx)("h6",{ref:p,children:T});case"span":return(0,a.jsx)("span",{ref:p,children:T});default:return(0,a.jsx)("p",{ref:p,children:T})}};var e0=e.i(25010);let e1=ef.AnimatePresence;function e2({className:e,...t}){let{me:i}=(0,y.useAuth)(),{browserName:r,deviceType:s}=(0,N.useContext)(w.AppContext),[n,l]=(0,N.useState)(!1),o=function(){let[e,t]=(0,N.useState)(null);return(0,N.useEffect)(()=>{!async function(){for(let e of["lmbbnpelmllcplpeelhghdbjjgcdickc","pjodaciajdicm
60nialbfcekikmkbjlknf"])try{if((await fetch(`chrome-extension://${e}/ping.html`,{method:"GET"})).ok)return void t(!0)}catch(e){continue}t(!1)}()},[]),e}();return((0,N.useEffect)(()=>{l(!!("u">typeof navigator&&navigator.userAgentData&&navigator.userAgentData.brands.some(e=>"Chromium"===e.brand)&&"desktop"===s&&C.EXTENSION_STORE_URLS[r.toUpperCase()]))},[r,s]),!0===o)?null:(0,a.jsxs)("div",{className:(0,x.cn)("flex flex-col items-center gap-1 py-11",e),...t,children:[i?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eJ,{text:"ì íìì 믹ì¤ì ì½í ì¸ ë¥¼ ë§ëë³´ì¸ì",delay:30,splitType:"chars",ease:"power3.out"}),(0,a.jsx)(b.Text,{color:"text.disabled",variant:"body1",tag:"p",children:"íì¥ íë¡ê·¸ë¨ ì¬ì©ìë í 주ì 13ê°ì ì½í ì¸ ë¥¼ ë ì½ê³ ìì´ì."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eJ,{text:"ë§ì¼í°ìê² íìí 모ë ì¸ì¬ì´í¸ë¥¼ í ê³³ì",delay:30,splitType:"chars",ease:"power3.out"}),(0,a.jsx)(b.Text,{color:"text.disabled",variant:"body1",tag:"p",children:"믹ì¤ìì ìµì í¸ë ëì ë§ì¼í ì¸ì¬ì´í¸ë¥¼ ë°ê²¬íì¸ì."})]}),n&&(0,a.jsxs)("div",{className:"mt-8 flex gap-3",children:[(0,a.jsx)(e3,{}),(0,a.jsx)(eX,{firstContent:`${r}ì ì¶ê°`,secondaryContent:"ì§ê¸ ì¤ì¹íì¸ì",onClick:()=>{window.open(C.EXTENSION_STORE_URLS[r.toUpperCase()]?.url,"_blank")}})]})]})}let e3=()=>{let[e,t]=(0,N.useState)(0),{resolvedTheme:i}=(0,e0.useTheme)(),r="dark"===i,s=[r?"/img/logo_animation_1_dark.png":"/img/logo_animation_1.png","/img/logo_animation_2.png",r?"/img/logo_animation_3_dark.png":"/img/logo_animation_3.png",r?"/img/logo_animation_4_dark.png":"/img/logo_animation_4.png",r?"/img/logo_animation_5_dark.png":"/img/logo_animation_5.png","/img/logo_animation_6.png"];(0,N.useEffect)(()=>{let e=setInterval(()=>{t(e=>(e+1)%s.length)},1305);return()=>clearInterval(e)},[]);let n=eb.motion.div;return(0,a.jsx)(e1,{mode:"wait",children:(0,a.jsx)(n,{initial:{opacity:0,x:-15,scale:.5},animate:{opacity:1,x:0,scale:1,transition:{duration:.3}},exit:{opacity:0,x:20,scale:.1,transition:{duration:.25}},transition:{delay:.35},children:(0,a.jsx)(j.default,{className:"h-12 w-12 rounded-2xl",src:s[e],alt:"logo",width:48,height:48})},e)})},e5=({style:e,height:t,items:i,direction:r,duration:s,edge:n,gap:l,className:o,...c})=>{let d=(0,N.useMemo)(()=>i,[i]),m=d.length*(n+l),u=()=>(0,a.jsx)(eb.motion.div,{className:"flex w-full flex-col",initial:{y:1===r?-m:0},animate:{y:1===r?0:-m},transition:{duration:s,ease:"linear",repeat:1/0},children:d.map((e,t)=>(0,a.jsx)("div",{className:"relative flex aspect-square select-none items-center justify-center overflow-hidden rounded-[20px] bg-white lg:rounded-xl",style:{width:n,height:n,marginBottom:l},children:(0,a.jsx)(j.default,{alt:"",src:e,fill:!0,className:"object-cover",sizes:"(max-width: 768px) 56px, (max-width: 1024px) 64px, 80px",loading:t<3?"eager":"lazy"})},t))});return(0,a.jsxs)("div",{className:(0,x.cn)("relative flex h-full flex-col overflow-hidden",o),style:{...e,width:n},...c,children:[u(),u()]})},e4=({className:e,...t})=>(0,a.jsxs)("div",{className:(0,x.cn)(`relative flex h-[88px] w-full select-none items-center 61 overflow-hidden rounded-xl bg-grey-100`,e),...t,children:[(0,a.jsxs)("div",{className:"absolute bottom-0 right-[18%] top-0 hidden lg:flex [&>*:not(:last-child)]:mr-2",children:[(0,a.jsx)(e5,{direction:1,items:["/img/tile_1.webp","/img/tile_2.webp","/img/tile_3.webp","/img/tile_4.webp","/img/tile_5.webp"],edge:80,duration:15,height:160,gap:8}),(0,a.jsx)(e5,{direction:-1,items:["/img/tile_6.webp","/img/tile_7.webp","/img/tile_8.webp","/img/tile_9.webp","/img/tile_10.webp"],edge:80,duration:15,height:160,gap:8}),(0,a.jsx)(e5,{direction:1,items:["/img/tile_11.webp","/img/tile_12.webp","/img/tile_13.webp","/img/tile_14.webp","/img/tile_15.webp"],edge:80,duration:15,height:160,gap:8})]}),(0,a.jsxs)("div",{className:"absolute bottom-0 right-[10%] top-0 hidden md:flex lg:hidden [&>*:not(:last-child)]:mr-2",children:[(0,a.jsx)(e5,{direction:1,items:["/img/tile_1.webp","/img/tile_2.webp","/img/tile_3.webp","/img/tile_4.webp","/img/tile_5.webp"],edge:64,duration:15,height:173,gap:8}),(0,a.jsx)(e5,{direction:-1,items:["/img/tile_6.webp","/img/tile_7.webp","/img/tile_8.webp","/img/tile_9.webp","/img/tile_10.webp"],edge:64,duration:15,height:173,gap:8}),(0,a.jsx)(e5,{direction:1,items:["/img/tile_11.webp","/img/tile_12.webp","/img/tile_13.webp","/img/tile_14.webp","/img/tile_15.webp"],edge:64,duration:15,height:173,gap:8})]}),(0,a.jsx)("div",{className:"absolute bottom-0 right-6 top-0 flex md:hidden [&>*:not(:last-child)]:mr-2",children:(0,a.jsx)(e5,{direction:1,items:["/img/tile_1.webp","/img/tile_2.webp","/img/tile_3.webp","/img/tile_4.webp","/img/tile_5.webp","/img/tile_6.webp","/img/tile_7.webp","/img/tile_8.webp","/img/tile_9.webp","/img/tile_10.webp","/img/tile_11.webp","/img/tile_12.webp","/img/tile_13.webp","/img/tile_14.webp","/img/tile_15.webp"],edge:56,duration:20,height:130,gap:8})}),(0,a.jsxs)("div",{className:"absolute z-[1] ml-5 flex h-full flex-col items-start justify-center gap-2 rounded-xl dark:bg-transparent md:px-6",children:[(0,a.jsx)(b.Text,{className:"md:text-body1 whitespace-pre-wrap font-normal",variant:"p",tag:"h1",children:"ë§ì¼í°ìê² íìí 모ë ì¸ì¬ì´í¸ë¥¼ í ê³³ì"}),(0,a.jsx)(b.Text,{className:"hidden md:block",variant:"body3",color:"text.disabled",tag:"h2",children:"믹ì¤ìì ìµì í¸ë ëì ë§ì¼í ì¸ì¬ì´í¸ë¥¼ ë°ê²¬íì¸ì."})]})]});function e6(){return(0,a.jsx)("div",{className:"mb-16 hidden px-[var(--page-padding)] md:block",children:(0,a.jsx)(e2,{})})}function e9(){return(0,a.jsx)("div",{className:"mb-6 block px-[var(--page-padding)] md:hidden",children:(0,a.jsx)(e4,{})})}function e8(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e6,{}),(0,a.jsx)(e9,{})]})}var e7=e.i(49359);let te=({text:e,url:t,endDate:i})=>{let[r,s]=(0,N.useState)(!1);return(0,N.useEffect)(()=>
61{if("u"<typeof document)return;if(!e||!i)return void s(!1);let t=`mix/topbanner-closed-${i}`,a="true"===localStorage.getItem(t),r=!(0,eg.default)().isAfter(i,"day");!a&&r&&s(!0)},[i,e]),r?(0,a.jsxs)("div",{className:"flex items-center justify-end bg-[#343862] px-4",children:[(0,a.jsx)("a",{href:t||"https://support.mix.day/dee2c9ae-495a-4672-8aa2-3fcc9d5feb77",target:"_blank",rel:"noreferrer",className:"relative flex h-16 w-full items-center overflow-hidden bg-[#343862] bg-[length:580px] bg-center bg-no-repeat text-[16px] text-white md:h-[70px] md:justify-center md:bg-[length:280px]",style:{zIndex:e7.zIndex.header},children:(0,a.jsxs)("div",{className:"banner-scroll-content flex whitespace-nowrap",children:[(0,a.jsx)("span",{className:"banner-content-item inline-block",dangerouslySetInnerHTML:{__html:e||""}}),(0,a.jsx)("span",{className:"banner-content-duplicate inline-block","aria-hidden":"true",dangerouslySetInnerHTML:{__html:e||""}})]})}),(0,a.jsx)(eI.XIcon,{className:"m-4 mr-3 size-6 cursor-pointer p-0.5 text-white",onClick:()=>{let e=`mix/topbanner-closed-${i}`;localStorage.setItem(e,"true"),s(!1)}})]}):(0,a.jsx)(a.Fragment,{})};var tt=e.i(15023),ti=e.i(40250);let ta="https://mix.day/archive",tr={text:"ìì¸í ìì보기",bgColor:"#333333",bgHoverColor:"#212121"},ts="/img/modal/archive_img_250811.webp",tn={pc:"/img/modal/archive_text_pc_250811.webp",mobile:"/img/modal/archive_text_mo_250811.webp"},tl=({startDate:e,endDate:t,interval:r,targetPages:s,isVisibleInExtension:n=!1,...l})=>{let o=(0,k.useRouter)(),[c,d]=(0,N.useState)(!1),[m,u]=(0,N.useState)(!1),p=(0,N.useMemo)(()=>(0,eg.default)(),[]),g=(0,N.useMemo)(()=>e?(0,eg.default)(e):(0,eg.default)(),[e]),b=(0,N.useMemo)(()=>t?(0,eg.default)(t):null,[t]),f=()=>{h.default.post("/api/hide_modal",{interval:r}),d(!1)};return(0,N.useEffect)(()=>{if("u"<typeof document)return;let e=document.cookie,t="true"===tt.default.parse(e)["mix/modal"],a=p.isAfter(g)&&(!b||p.isBefore(b)),r=!s||s.includes(o.pathname),l="extension"!==i.default.env.BUILD_TARGET||n;!t&&a&&r&&l&&d(!0)},[p,g,b,o.pathname,s,n]),(0,a.jsx)(S.MixModal,{isOpen:c,onRequestClose:()=>d(!1),...l,children:(0,a.jsxs)("div",{className:(0,x.cn)(`flex flex-row overflow-hidden rounded-small bg-white 62 text-black shadow-[0px_0px_16px_0px_rgba(0,0,0,0.32)] 63 dark:bg-grey-100 dark:text-white md:flex-col`,x.modalWidthClass),children:[(0,a.jsx)("div",{className:(0,x.cn)("relative h-[359px] w-[335px]",!m&&"bg-grey-100"),children:(0,a.jsx)(j.default,{alt:"ìì¹´ì´ë¸ íë¡ëª¨ì ë©ì¸ ì´ë¯¸ì§",src:ts,fill:!0,priority:!0,onLoad:()=>u(!0)})}),(0,a.jsxs)("div",{className:"flex flex-col justify-between gap-5 px-[18px] py-7 md:gap-[26px] md:p-6",children:[(0,a.jsx)("div",{className:"relative hidden h-[135px] w-[276px] md:block",children:(0,a.jsx)(j.default,{alt:"ìì¹´ì´ë¸ íë¡ëª¨ì ì¤ëª í ì¤í¸ (모ë°ì¼)",src:tn.mobile,fill:!0,priority:!0})}),(0,a.jsx)("div",{className:"relative block h-[199px] w-[296px] md:hidden",children:(0,a.jsx)(j.default,{alt:"ìì¹´ì´ë¸ íë¡ëª¨ì ì¤ëª í ì¤í¸ (PC)",src:tn.pc,fill:!0,priority:!0})}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,a.jsx)(ti.default,{className:(0,x.cn)(`flex w-full items-center justify-center 64 rounded-small px-[10px] py-[18px] text-lg 65 font-bold leading-none text-common-white-main`,p.isBefore("2024-07-17")?"bg-[#0095F7] hover:bg-[#0085e5]":"bg-[#333333] hover:bg-[#212121]"),href:ta,onClick:f,children:p.isBefore("2024-07-17")?"ì¼ë¦¬ë²ë í¹ê° íì¸í기":tr.text}),(0,a.jsx)("span",{className:"w-fit cursor-pointer text-sm font-medium leading-none text-text-secondary underline",onClick:f,children:1===r?"ì¤ë í루 ê·¸ë§ë³´ê¸°":`${r}ì¼ê° ë³´ì§ ì기`})]})]})]})})},to=(0,$.default)(()=>e.A(46150).then(e=>
65e.AnimatedCursor),{loadableGenerated:{modules:[2839]},ssr:!1}),tc=({children:e,browserName:t,deviceType:r})=>{let s,n,l=(0,k.useRouter)(),{isFeatureEnabled:o,loading:c}=(0,D.useFeatureFlags)(),d=(0,L.usePathCheck)("/"),m=(0,L.usePathCheck)("/trial"),u=(0,L.usePathCheck)("/contents/original/[id]"),h=(0,L.usePathCheck)("/course/[id]"),p=(0,L.usePathCheck)("/payments*"),g=(0,L.usePathCheck)("/goodbye"),b=(0,L.usePathCheck)("/maintenance"),f=(0,L.usePathCheck)("/vote"),y=(0,L.usePathCheck)("/mypage"),j=(0,L.usePathCheck)("/mypage/orders"),C=(0,L.usePathCheck)("/mypage/courses");(0,N.useEffect)(()=>{},[b,l]);let{data:T,loading:E,refetch:S}=(0,v.useSessionQuery)(),{data:A,loading:q}=(0,v.useMixNoticesQuery)(),G=(0,N.useMemo)(()=>T?.session??null,[T]),H=(0,N.useMemo)(()=>(0,e$.getHash)(l.asPath),[l]),U=(0,eF.useScrolled)(0),{isOpen:F,isLoaded:$,closeModal:V,hideForToday:X}=(()=>{let[e,t]=(0,N.useState)(!1),[i,a]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{let e=new Date("2025-10-17T00:00:00");if(new Date>=e){t(!1),a(!0);return}let i=localStorage.getItem(eU);if(i){let e=parseInt(i,10);if(Date.now()<e){t(!1),a(!0);return}localStorage.removeItem(eU)}t(!0),a(!0)},[]),{isOpen:e,isLoaded:i,closeModal:()=>{t(!1)},hideForToday:()=>{t(!1);let e=new Date(new Date().getTime()+6048e5);localStorage.setItem(eU,e.getTime().toString())},resetModal:()=>{localStorage.removeItem(eU),t(!0)}}})(),{isOpen:Y,content:K,loading:Z,closeContentModal:Q,redirectToSavedContent:J,handleNavigate:ee,canNavigatePrev:et,canNavigateNext:ei,openMethod:ea,contentSection:er}=(0,eH.useContentDetailModal)(),es=(0,N.useCallback)(async()=>{await l.push({pathname:l.pathname,query:l.query,hash:null},void 0,{scroll:!1})},[l]);return(0,N.useEffect)(()=>{E||(G?.me&&((0,_.fireEvent)({params:{user_id:G.me.id,career:G.me.career,position:G.me.position}}),window?.$crisp?.push(["set","user:email",G.me.email])),(0,_.initTagManager)())},[G,E]),(0,N.useEffect)(()=>{"signup-form"!==H||G?.me||E||S()},[H,G?.me,E,S]),(0,N.useEffect)(()=>{G?.me&&!E&&J()},[G?.me,E,J]),(0,a.jsx)(w.AppContext.Provider,{value:{browserName:t,deviceType:r},children:(0,a.jsxs)(eG.AuthContext.Provider,{value:{session:G,loading:E,refetch:S},children:[(0,a.jsx)(to,{}),u?(0,a.jsx)("main",{className:"flex min-h-screen flex-col",style:{backgroundColor:"var(--color-background)"},children:(0,a.jsx)("div",{className:"flex-1",children:e})}):h?(0,a.jsx)("main",{className:"flex flex-col",style:{backgroundColor:"var(--color-background)",height:"80dvh"},children:(0,a.jsx)("div",{className:"flex-1",children:e})}):m?(0,a.jsxs)(a.Fragment,{children:[!q&&(0,a.jsx)(te,{text:A?.mix_notices[0]?.content,url:A?.mix_notices[0]?.target_url??void 0,endDate:A?.mix_notices[0]?.end_at.split("T")[0]}),(0,a.jsx)(R.Header,{type:U?"border":"default",showSearch:!0,hideAuth:!1,className:"mb-[var(--header-margin)]"}),(0,a.jsx)("main",{className:"mx-auto max-w-[var(--page-max-width)]",style:{backgroundColor:"var(--color-background)"},children:(0,a.jsxs)("div",{className:"flex w-full px-[var(--page-padding)]",children:[(0,a.jsx)(W,{className:"hidden lg:block"}),(0,a.jsx)("div",{className:(0,x.cn)("w-full pb-16",o("UI_HEADER_DROPDOWN")&&"pb-0"),children:e})]})})]}):p||g?(0,a.jsxs)("main",{className:"flex min-h-screen flex-col",style:{backgroundColor:"var(--color-background)"},children:[(0,a.jsx)(R.Header,{showSearch:!1,hideAuth:!1,hideThemeToggle:!1,className:"mb-[var(--header-margin)] border-b border-text-focus-visible bg-[var(--color-background)]"}),(0,a.jsx)("div",{className:"flex-1 px-[var(--page-padding)]",children:e})]}):b?(0,a.jsxs)("main",{className:"flex min-h-screen flex-col",style:{backgroundColor:"var(--color-background)"},children:[(0,a.jsx)(R.Header,{showSearch:!0,hideAuth:!0,className:"h-14 px-6 py-3"}),e]}):f?(0,a.jsx)("main",{className:"flex min-h-screen flex-col",style:{backgroundColor:"var(--color-background)"},children:e}):(0,a.jsxs)(a.Fragment,{children:[!q&&(0,a.jsx)(te,{text:A?.mix_notices[0]?.content,url:A?.mix_notices[0]?.target_url??void 0,endDate:A?.mix_notices[0]?.end_at.split("T")[0]}),(0,a.jsx)(R.Header,{type:U?"border":"default",showSearch:!0,hideAuth:!1,className:"mb-[var(--header-margin)]"}),(0,a.jsxs)("main",{className:"mx-auto max-w-[var(--page-max-width)]",style:{backgroundColor:"var(--color-background)"},children:[d&&!l.query.tag&&("extension"===i.default.env.BUILD_TARGET?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(em,{}),(0,a.jsx)(e9,{})]}):(0,a.jsx)(e8,{})),(0,a.jsxs)("div",{className:"flex w-full px-[var(--page-padding)]",children:[(n=!(s=c||o("UI_HEADER_DROPDOWN"))||y||j||C,c?console.log("Layout - feature flags still loading, defaulting to dropdown nav"):console.log("Layout - UI_HEADER_DROPDOWN:",s,"shouldShow SideBar:",n),n&&(0,a.jsx)(B,{className:"hidden lg:flex"})),(0,a.jsx)("div",{className:(0,x.cn)("w-full pb-16",o("UI_HEADER_DROPDOWN")&&"pb-0"),children:e})]})]})]}),o("UI_HEADER_DROPDOWN")&&(0,a.jsx)(z.Footer,{}),"signin"===H&&(0,a.jsx)(P.SignInModal,{isOpen:!0,onRequestClose:es,close:es}),"signup-form"===H&&G?.me&&(0,a.jsx)(I,{me:G.me,isOpen:!0,onRequestClose:es,close:es}),"interest-tags"===H&&(0,a.jsx)(M.SelectInterestTagModal,{isOpen:!0,onRequestClose:es}),Y&&K&&(0,a.jsx)(eB,{isOpen:!0,onClose:Q,content:K,variant:"modal",onNavigate:ee,canNavigatePrev:et,canNavigateNext:ei,openMethod:ea,contentSection:er}
65),(0,a.jsx)(tl,{interval:1,startDate:"2025-08-10",endDate:"2025-08-22",targetPages:["/"],isVisibleInExtension:!1}),$&&(0,a.jsx)(O,{isOpen:F,onRequestClose:V,onHideForToday:X})]})})};var td=e.i(87715),tm=e.i(79997),tu=e.i(37831),th=e.i(52744),tp=e.i(52042),tx=e.i(38702),tg=e.i(7352),tb=e.i(1689),tf=e.i(69729);e.i(19261),"extension"===i.default.env.BUILD_TARGET&&(h.default.defaults.baseURL="https://mix.day",h.default.defaults.withCredentials=!0);let tw=null,tv=null;function ty({Component:e,pageProps:t,browserName:x,deviceType:g,...b}){let f=function(e){if(null===tv&&e?.__APOLLO_CACHE_DATA__&&(tv=e.__APOLLO_CACHE_DATA__),!tw){let e,t,a,n,u,x,g,b=new o.InMemoryCache;tv&&b.restore(tv),e=(0,m.onError)(({graphQLErrors:e,networkError:t,operation:i,forward:a})=>{if(e&&e.forEach(({message:e,locations:t,path:i,extensions:a})=>{console.error(`[GraphQL error]: Message: ${e}, Path: ${i}, Code: ${a?.code}`)}),e&&(0,tf.isHasuraJWTExpired)(e))return(0,d.fromPromise)(h.default.get("/api/refresh").then(()=>!0).catch(e=>{e instanceof p.AxiosError&&e.response&&401===e.response.status&&h.default.get("/api/signout").finally(()=>window.location.reload())})).filter(e=>"boolean"==typeof e).flatMap(()=>a(i));t&&console.log(`[Network error]: ${t}`)}),t="https://api.mix.day/v1/graphql","mix-stag.vercel.app"===window.location.hostname?t="https://night-api.mix.day/v1/graphql":"mix-prod.vercel.app"===window.location.hostname&&(t="https://api.mix.day/v1/graphql"),a="https:"===window.location.protocol&&t.startsWith("http://"),n=new l.HttpLink({uri:a?"/api/hasura-proxy":t,credentials:"include"}),u="extension"===i.default.env.NEXT_PUBLIC_BUILD_TARGET,x=null,g=new s.ApolloLink((e,t)=>{if(u)return t(e);let i=document.cookie.split("; ").find(e=>e.startsWith("accessTokenExp="))?.split("=")[1];return!i||1e3*Number(i)<Date.now()?(x||(x=h.default.get("/api/refresh").then(()=>{}).catch(()=>{}).finally(()=>{x=null})),(0,d.fromPromise)(x).flatMap(()=>t(e))):t(e)}),tw=new r.ApolloClient({link:(0,c.from)([g,e,n]),cache:b})}return tw}(t);return(0,k.useRouter)(),(0,a.jsxs)(N.default.Fragment,{children:[(0,a.jsxs)(tp.default,{children:[(0,a.jsx)("title",{children:"믹ì¤(Mix) - ë§ì¼í ì¸ì¬ì´í¸ 미ëì´"}),(0,a.jsx)("meta",{name:"description",content:"ë§ì¼í ì¸ì¬ì´í¸ê° ëë³´ì´ë ì½í ì¸ ë¥¼ ìì íì¬ ìê°í©ëë¤."}),(0,a.jsx)("meta",{name:"keywords",content:"믹ì¤, mix, ë§ì¼í ì¸ì¬ì´í¸, ë§ì¼í ì¸ì¬ì´í¸ 미ëì´, ë§ì¼í 믹ì¤, 민í¸, í민í¸, ë¸ëë ë§ì¼í , ì½í ì¸ ë§ì¼í , ì í´ ë§ì¼í , ê·¸ë¡ì¤í´í¹, CRM ë§ì¼í , SEO, í¼í¬ë¨¼ì¤ ë§ì¼í , ë§ì¼í í¸ë ë, ë°ì´ë´ ë§ì¼í , ëì§í¸ ë§ì¼í , ì¨ë¼ì¸ ë§ì¼í , B2B ë§ì¼í , ê²ì ìì§ ë§ì¼í , íì ì¤í ì´ ë§ì¼í , ìí¼ ë§ì¼í , ë©íë²ì¤ ë§ì¼í , ë§ì¼í°, í¼í¬ë¨¼ì¤ ë§ì¼í°, ê·¸ë¡ì¤ ë§ì¼í°, ë¸ëë ë§ì¼í°, ì½í ì¸ ë§ì¼í°, ë§ì¼í ì ëµ, ë§ì¼í ìì´ì ì, ë§ì¼í ëíì¬, ê´ê³ ëíì¬, 미ëì´, ë§ì¼í 미ëì´, ë§ì¼í ì½í ì¸ "}),(0,a.jsx)("meta",{name:"google-site-verification",content:"6xuMI3dr0H2XDiEaiyCo6VhJQTmJpCpuZYQ1kKsvHEU"}),(0,a.jsx)("meta",{name:"naver-site-verification",content:"f334b4ffc9a1a35575c6b33874a7b0cd42b1fbf8"}),(0,a.jsx)("meta",{property:"og:image",content:"https://mix.day/img/ogImage.png"},"og:image"),(0,a.jsx)("meta",{name:"facebook-domain-verification",content:"p300csc9it98a5zvw4zpq447kfz6c7"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"})]}),(0,a.jsx)(tx.default,{src:"https://developers.kakao.com/sdk/js/kakao.js",strategy:"afterInteractive"}),"extension"!==i.default.env.BUILD_TARGET&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tx.default,{id:"crisp",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:'window.$crisp=[];window.CRISP_WEBSITE_ID="ce54c92b-58fa-44bc-bde7-4b69cd6604da";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();'}}),(0,a.jsx)(tx.default,{id:"fb-pixel",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:` 66 !function(f,b,e,v,n,t,s) 67 {if(f.fbq)return;n=f.fbq=function(){n.callMethod? 68 n.callMethod.apply(n,arguments):n.queue.push(arguments)}; 69 if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; 70 n.queue=[];t=b.createElement(e);t.async=!0; 71 t.src=v;s=b.getElementsByTagName(e)[0]; 72 s.parentNode.insertBefore(t,s)}(window, document,'script', 73 'https://connect.facebook.net/en_US/fbevents.js'); 74 fbq('init', '${th.FB_PIXEL_ID}'); 75 `}})]}),(0,a.jsx)(e0.ThemeProvider,{attribute:"class",defaultTheme:"dark",enableSystem:!0,disableTransitionOnChange:!0,children:(0,a.jsx)(td.MixThemeProvider,{children:(0,a.jsx)(u.GoogleOAuthProvider,{clientId:"105758332346-n91di8vj08a4dohhjlcdv70qptank242.apps.googleusercontent.com",children:(0,a.jsx)(n.ApolloProvider,{client:f,children:(0,a.jsx)(tu.FeatureFlagsProvi
75der,{enableHasura:!0,children:(0,a.jsx)(tm.ContentNavigationProvider,{children:(0,a.jsx)(tc,{browserName:x,deviceType:g,children:(0,a.jsx)(e,{...t})})})})})})})})]})}ty.getInitialProps=async({ctx:e})=>{let t=e.req?.headers["user-agent"],i=new tg.UAParser(t).getResult(),a=i.browser.name??"",r="mobile"===i.device.type?C.DEVICE_TYPE.MOBILE:"tablet"===i.device.type?C.DEVICE_TYPE.TABLET:C.DEVICE_TYPE.DESKTOP;if(!e.req||!e.res)return{browserName:a,deviceType:r};let{cookies:s}=e.req,n=s?.refreshToken,l=s?.accessToken,o=!!l&&!(0,tf.isAccessTokenExpired)(l);if(n&&!o)try{let t=await (0,tf.fetchAccessToken)(n);e.res.setHeader("set-cookie",(0,tf.buildAccessTokenCookie)(t))}catch(t){e.res.setHeader("set-cookie",(0,tf.buildSignOutCookie)())}if(n&&o){let t=(0,tb.getClient)({headers:{cookie:e.req.headers.cookie},ctx:e}),i=(await t.query({query:v.SessionDocument})).data.session.me,a=e.query.signup_redirect;!i||i.position&&i.career||"true"===a||(e.res.writeHead(302,{Location:"/?signup_redirect=true#signup-form"}),e.res.end())}return{browserName:a,deviceType:r}},e.s(["default",0,ty],3115)},68146,(e,t,i)=>{let a="/_app";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(3115)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})}]); 76 77//# sourceMappingURL=0~l1sl~nqk2j7.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.