1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{82803:function(e,n,t){Promise.resolve().then(t.t.bind(t,50594,23)),Promise.resolve().then(t.t.bind(t,2778,23)),Promise.resolve().then(t.bind(t,85123)),Promise.resolve().then(t.bind(t,65129)),Promise.resolve().then(t.bind(t,64743)),Promise.resolve().then(t.bind(t,55701)),Promise.resolve().then(t.bind(t,15536)),Promise.resolve().then(t.bind(t,13624)),Promise.resolve().then(t.bind(t,70480)),Promise.resolve().then(t.bind(t,85504)),Promise.resolve().then(t.t.bind(t,46959,23)),Promise.resolve().then(t.t.bind(t,13291,23))},85504:function(e,n,t){"use strict";t.d(n,{default:function(){return o}});var i=t(37746);let r=new Set(["LCP","CLS","INP","FCP","TTFB"]);function o(){return(0,i.useReportWebVitals)(e=>{if(r.has(e.name))try{let n=JSON.stringify({name:e.name,value:Math.round(1e3*e.value)/1e3,rating:e.rating,path:window.location.pathname+window.location.hash});navigator.sendBeacon?navigator.sendBeacon("/api/vitals",n):fetch("/api/vitals",{method:"POST",body:n,keepalive:!0}).catch(()=>{})}catch(e){}}),null}},85123:function(e,n,t){"use strict";t.d(n,{default:function(){return c}});var i=t(57437),r=t(27526),o=t(98319),s=t(2265),a=t(42208),l=t(51817),d=t(47692);function c(){var e,n,t,c,u;let{data:v}=(0,r.kP)(),[m,f]=(0,s.useState)(!1),{showToast:h}=(0,o.p)();if(!(null==v?void 0:null===(e=v.user)||void 0===e?void 0:e.impersonatedBy))return null;let w=(null==v?void 0:null===(n=v.user)||void 0===n?void 0:n.name)||(null==v?void 0:null===(t=v.user)||void 0===t?void 0:t.email)||"ëì ì¬ì©ì",p=(null==v?void 0:null===(c=v.user)||void 0===c?void 0:c.impersonatedByName)||(null==v?void 0:null===(u=v.user)||void 0===u?void 0:u.impersonatedByEmail)||"ê´ë¦¬ì",g=async()=>{if(!m){f(!0);try{let e=await fetch("/api/admin/impersonate",{method:"DELETE"});if(!e.ok){let n=await e.json().catch(()=>({}));h((null==n?void 0:n.error)||"ê°ì¥ 모ë ì¢
ë£ì ì¤í¨íìµëë¤.","error"),f(!1);return}window.location.href="/admin/users"}catch(e){console.error("[Impersonation] stop failed",e),h("ê°ì¥ 모ë ì¢
ë£ì ì¤í¨íìµëë¤.","error"),f(!1)}}};return(0,i.jsxs)("div",{className:"sticky top-0 z-[100] flex items-center justify-between gap-3 border-b border-red-500/50 bg-red-600 px-4 py-2 text-white shadow-lg",role:"alert","aria-live":"polite",children:[(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[(0,i.jsx)(a.Z,{size:16,className:"shrink-0"}),(0,i.jsxs)("span",{className:"truncate",children:[(0,i.jsx)("strong",{className:"font-semibold",children:w}),(0,i.jsx)("span",{className:"opacity-80",children:" ê³ì ì¼ë¡ ë³´ë ì¤"}),(0,i.jsxs)("span",{className:"opacity-60 hidden sm:inline",children:[" \xb7 ì½ê¸° ì ì© \xb7 ê´ë¦¬ì: ",p]})]})]}),(0,i.jsxs)("button",{onClick:g,disabled:m,className:"flex shrink-0 items-center gap-1.5 rounded bg-white/10 px-3 py-1 text-xs font-semibold transition-colors hover:bg-white/20 disabled:opacity-50",children:[m?(0,i.jsx)(l.Z,{size:12,className:"animate-spin"}):(0,i.jsx)(d.Z,{size:12}),"ê´ë¦¬ìë¡ ëìê°ê¸°"]})]})}},65129:function(e,n,t){"use strict";t.d(n,{default:function(){return o}});var i=t(2265),r=t(41681);function o(){return(0,i.useEffect)(()=>{let e=e=>{var n;(0,r.F)(null!==(n=e.error)&&void 0!==n?n:e.message,{boundary:"window.onerror",filename:e.filename,lineno:e.lineno,colno:e.colno})},n=e=>{(0,r.F)(e.reason,{boundary:"unhandledrejection"})};return window.addEventListener("error",e),window.addEventListener("unhandledrejection",n),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",n)}},[]),null}},15536:function(e,n,t){"use strict";t.d(n,{default:function(){return s}});var i=t(2265),r=t(9244),o=t(12618);function s(){return(0,i.useEffect)(()=>{if(!(0,r.c)())return;(0,o.u)();let e=!1,n=requestAnimationFrame(()=>{requestAnimationFrame(async()=>{if(!e)try{let{SplashScreen:e}=await t.e(2409).then(t.bind(t,52409));await e.hide({fadeOutDuration:200})}catch(e){}})});return()=>{e=!0,cancelAnimationFrame(n)}},[]),null}},13624:function(e,n,t){"use strict";t.d(n,{AppProviders:function(){return j}});var i=t(57437),r=t(4908),o=t(98319),s=t(10136),a=t(84929),l=t(27526),d=t(98381),c=t(2
11623),u=t(87045),v=t(29827),m=t(2265);function f(e){let{children:n}=e,[t]=(0,m.useState)(()=>new c.S({defaultOptions:{queries:{staleTime:6e4,gcTime:18e5,retry:(e,n)=>{var t;return(null==n?void 0:n.message)==="Session Expired"||(null==n?void 0:null===(t=n.message)||void 0===t?void 0:t.includes("Session Expired"))?e<3:e<1},retryDelay:e=>Math.min(e>1?2**e*1e3:1e3,3e4),refetchOnWindowFocus:!0,refetchOnReconnect:!0},mutations:{retry:(e,n)=>{var t;return!!((null==n?void 0:n.message)==="Session Expired"||(null==n?void 0:null===(t=n.message)||void 0===t?void 0:t.includes("Session Expired")))&&e<2}}}}));return(0,m.useEffect)(()=>{function e(){u.j.setFocused("visible"===document.visibilityState)}function n(e){e.persisted&&u.j.setFocused(!0)}return document.addEventListener("visibilitychange",e),window.addEventListener("pageshow",n),()=>{document.removeEventListener("visibilitychange",e),window.removeEventListener("pageshow",n)}},[]),(0,i.jsx)(v.aH,{client:t,children:n})}var h=t(86315),w=t(67920),p=t(70809),g=t(93202),x=t(21751);function E(){return(0,m.useEffect)(()=>{if(window.__compositionClickFixInstalled)return;window.__compositionClickFixInstalled=!0;let e=!1,n=0,t=null,i=null;document.addEventListener("compositionstart",()=>{e=!0},!0),document.addEventListener("compositionend",()=>{e=!1,n=Date.now()},!0),document.addEventListener("pointerdown",r=>{if(0!==r.button)return;let o=r.target;!("INPUT"===o.tagName||"TEXTAREA"===o.tagName||o.isContentEditable)&&(e||Date.now()-n<200)&&(t=o,i&&clearTimeout(i),i=setTimeout(()=>{t&&(t.click(),t=null)},200))},!0),document.addEventListener("click",()=>{i&&(clearTimeout(i),i=null),t=null},!0)},[]),null}function b(){return(0,m.useEffect)(()=>{var e;if(null===(e=window.customElements)||void 0===e?void 0:e.get("lord-icon"))return;let n=!1;return Promise.all([t.e(9468),t.e(9099)]).then(t.bind(t,19099)).then(e=>{let{defineElement:t}=e;n||window.customElements.get("lord-icon")||(t(),function(){let e=window.customElements.get("lord-icon"),n=null==e?void 0:e.prototype;if(!n||"function"!=typeof n.loadIconData)return;let t=n.loadIconData;n.loadIconData=async function(){try{return await t.call(this)}catch(e){window.addEventListener("online",()=>{this.isConnected&&this.srcChanged()},{once:!0});return}}}())}).catch(e=>{console.error("[LordIconRegistry] failed to define lord-icon",e)}),()=>{n=!0}},[]),null}var y=t(19431);function j(e){let{children:n,session:t}=e;return(0,i.jsxs)(l.eA,{session:t,refetchOnWindowFocus:!1,children:[(0,i.jsx)(y.F,{}),(0,i.jsx)(f,{children:(0,i.jsx)(o.V,{children:(0,i.jsx)(s.W,{children:(0,i.jsx)(a.E,{children:(0,i.jsx)(w.EI,{children:(0,i.jsx)(r.Pl,{children:(0,i.jsx)(h.No,{children:(0,i.jsx)(d.f,{children:(0,i.jsx)(g.L,{children:(0,i.jsx)(p.x,{children:(0,i.jsxs)(x.nD,{children:[(0,i.jsx)(E,{}),(0,i.jsx)(b,{}),n]})})})})})})})})})})})]})}},70480:function(e,n,t){"use strict";t.d(n,{default:function(){return o}});var i=t(2265),r=t(96720);function o(){return(0,i.useEffect)(()=>{try{var e,n;null===(n=navigator.storage)||void 0===n||null===(e=n.persist)||void 0===e||e.call(n)}catch(e){}try{(0,r.Fv)(sessionStorage)}catch(e){}let t=window.setTimeout(()=>{try{(0,r.wt)(sessionStorage)}catch(e){}},4e3);if(!("serviceWorker"in navigator))return()=>window.clearTimeout(t);let i=!1,o=!!navigator.serviceWorker.controller,s=()=>{if(!i&&o){try{if(!(0,r.yl)(sessionStorage))return}catch(e){return}window.location.reload()}};return navigator.serviceWorker.addEventListener("controllerchange",s),(async()=>{try{let e=await navigator.serviceWorker.register("/sw.js",{scope:"/"});if(i)return;let n=()=>{var n;null===(n=e.waiting)||void 0===n||n.postMessage("SKIP_WAITING")};e.waiting&&n(),e.addEventListener("updatefound",()=>{var t;null===(t=e.installing)||void 0===t||t.addEventListener("statechange",function(){"installed"===this.state&&navigator.serviceWorker.controller&&n()})})}catch(e){}})(),()=>{i=!0,window.clearTimeout(t),navigator.serviceWorker.removeEventListener("controllerchange",s)}},[]),null}},2778:function(){},46959:function(){},13291:function(){}},function(e){e.O(0,[9930,2461,2750,4146,6137,4561,7526,2145,6689,3100,3145,4489,1727,8319,4908,809,3202,5101,7488,4743,2971,2117,1744],function(){return e(e.s=82803)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.